/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_1,_2,_3,_4,_5,_6,_7,_8){if(_7("ie")||_7("mozilla")){_6(90,function(){var _9=_4.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_2.blankGif||_1.toUrl("dojo/resources/blank.gif"))+"\");"}},_8.body());var cs=_5.getComputedStyle(_9);if(cs){var _a=cs.backgroundImage;var _b=(cs.borderTopColor==cs.borderRightColor)||(_a!=null&&(_a=="none"||_a=="url(invalid-url:)"));if(_b){_3.add(_8.body(),"dijit_a11y");}if(_7("ie")){_9.outerHTML="";}else{_8.body().removeChild(_9);}}});}});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_c,_d){return _c("dijit._Contained",null,{_getSibling:function(_e){var _f=this.domNode;do{_f=_f[_e+"Sibling"];}while(_f&&_f.nodeType!=1);return _f&&_d.byNode(_f);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dijit/Viewport":function(){define("dijit/Viewport",["dojo/Evented","dojo/on","dojo/ready","dojo/_base/sniff","dojo/_base/window","dojo/window"],function(_10,on,_11,has,win,_12){var _13=new _10();var _14;_11(200,function(){var _15=_12.getBox();_13._rlh=on(win.global,"resize",function(){var _16=_12.getBox();if(_15.h==_16.h&&_15.w==_16.w){return;}_15=_16;_13.emit("resize");});if(has("ie")==8){var _17=screen.deviceXDPI;setInterval(function(){if(screen.deviceXDPI!=_17){_17=screen.deviceXDPI;_13.emit("resize");}},500);}if(has("ios")){on(document,"focusin",function(evt){_14=evt.target;});on(document,"focusout",function(evt){_14=null;});}});_13.getEffectiveBox=function(doc){var box=_12.getBox(doc);var tag=_14&&_14.tagName&&_14.tagName.toLowerCase();if(has("ios")&&_14&&!_14.readOnly&&(tag=="textarea"||(tag=="input"&&/^(color|email|number|password|search|tel|text|url)$/.test(_14.type)))){box.h*=(orientation==0||orientation==180?0.66:0.4);var _18=_14.getBoundingClientRect();box.h=Math.max(box.h,_18.top+_18.height);}return box;};return _13;});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_19,_1a,_1b,_1c){return _1a("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1d,_1e){var _1f=this.containerNode;if(_1e&&typeof _1e=="number"){var _20=this.getChildren();if(_20&&_20.length>=_1e){_1f=_20[_1e-1].domNode;_1e="after";}}_1b.place(_1d.domNode,_1f,_1e);if(this._started&&!_1d._started){_1d.startup();}},removeChild:function(_21){if(typeof _21=="number"){_21=this.getChildren()[_21];}if(_21){var _22=_21.domNode;if(_22&&_22.parentNode){_22.parentNode.removeChild(_22);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_23,dir){var _24=_23.domNode,_25=(dir>0?"nextSibling":"previousSibling");do{_24=_24[_25];}while(_24&&(_24.nodeType!=1||!_1c.byNode(_24)));return _24&&_1c.byNode(_24);},getIndexOfChild:function(_26){return _19.indexOf(this.getChildren(),_26);}});});},"dijit/_base/scroll":function(){define("dijit/_base/scroll",["dojo/window",".."],function(_27,_28){_28.scrollIntoView=function(_29,pos){_27.scrollIntoView(_29,pos);};});},"dijit/layout/_LayoutWidget":function(){define("dijit/layout/_LayoutWidget",["dojo/_base/lang","../_Widget","../_Container","../_Contained","dojo/_base/declare","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/sniff","dojo/_base/window"],function(_2a,_2b,_2c,_2d,_2e,_2f,_30,_31,has,win){return _2e("dijit.layout._LayoutWidget",[_2b,_2c,_2d],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);_2f.add(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _32=this.getParent&&this.getParent();if(!(_32&&_32.isLayoutContainer)){this.resize();this.connect(win.global,"onresize",function(){this.resize();});}},resize:function(_33,_34){var _35=this.domNode;if(_33){_30.setMarginBox(_35,_33);}var mb=_34||{};_2a.mixin(mb,_33||{});if(!("h" in mb)||!("w" in mb)){mb=_2a.mixin(_30.getMarginBox(_35),mb);}var cs=_31.getComputedStyle(_35);var me=_30.getMarginExtents(_35,cs);var be=_30.getBorderExtents(_35,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=_30.getPadExtents(_35,cs);this._contentBox={l:_31.toPixelValue(_35,cs.paddingLeft),t:_31.toPixelValue(_35,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_36){var cls=this.baseClass+"-child "+(_36.baseClass?this.baseClass+"-"+_36.baseClass:"");_2f.add(_36.domNode,cls);},addChild:function(_37,_38){this.inherited(arguments);if(this._started){this._setupChild(_37);}},removeChild:function(_39){var cls=this.baseClass+"-child"+(_39.baseClass?" "+this.baseClass+"-"+_39.baseClass:"");_2f.remove(_39.domNode,cls);this.inherited(arguments);}});});},"dijit/_base":function(){define("dijit/_base",[".","./a11y","./WidgetSet","./_base/focus","./_base/manager","./_base/place","./_base/popup","./_base/scroll","./_base/sniff","./_base/typematic","./_base/wai","./_base/window"],function(_3a){return _3a._base;});},"dijit/form/_FormWidgetMixin":function(){define("dijit/form/_FormWidgetMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/mouse","dojo/_base/sniff","dojo/_base/window","dojo/window","../a11y"],function(_3b,_3c,_3d,_3e,_3f,_40,has,win,_41,_42){return _3c("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_43){this._set("disabled",_43);_3d.set(this.focusNode,"disabled",_43);if(this.valueNode){_3d.set(this.valueNode,"disabled",_43);}this.focusNode.setAttribute("aria-disabled",_43?"true":"false");if(_43){this._set("hovering",false);this._set("active",false);var _44="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_3b.forEach(_3f.isArray(_44)?_44:[_44],function(_45){var _46=this[_45];if(has("webkit")||_42.hasDefaultTabStop(_46)){_46.setAttribute("tabIndex","-1");}else{_46.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.set("tabIndex",this.tabIndex);}}},_onFocus:function(by){if(by=="mouse"&&this.isFocusable()){var _47=this.connect(this.focusNode,"onfocus",function(){this.disconnect(_48);this.disconnect(_47);});var _48=this.connect(win.body(),"onmouseup",function(){this.disconnect(_48);this.disconnect(_47);if(this.focused){this.focus();}});}if(this.scrollOnFocus){this.defer(function(){_41.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_3e.get(this.domNode,"display")!="none");},focus:function(){if(!this.disabled&&this.focusNode.focus){try{this.focusNode.focus();}catch(e){}}},compare:function(_49,_4a){if(typeof _49=="number"&&typeof _4a=="number"){return (isNaN(_49)&&isNaN(_4a))?0:_49-_4a;}else{if(_49>_4a){return 1;}else{if(_49<_4a){return -1;}else{return 0;}}}},onChange:function(){},_onChangeActive:false,_handleOnChange:function(_4b,_4c){if(this._lastValueReported==undefined&&(_4c===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_4b;}this._pendingOnChange=this._pendingOnChange||(typeof _4b!=typeof this._lastValueReported)||(this.compare(_4b,this._lastValueReported)!=0);if((this.intermediateChanges||_4c||_4c===undefined)&&this._pendingOnChange){this._lastValueReported=_4b;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_4b);});}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){this._onChangeHandle.remove();this.onChange(this._lastValueReported);}this.inherited(arguments);}});});},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",["require",".","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/_base/sniff","dojo/_base/window"],function(_4d,_4e,_4f,_50,_51,_52,on,has,win){has.add("bgIframe",has("ie")||has("mozilla"));var _53=new function(){var _54=[];this.pop=function(){var _55;if(_54.length){_55=_54.pop();_55.style.display="";}else{if(has("ie")<9){var _56=_4f["dojoBlankHtmlUrl"]||_4d.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var _57="");}};_e7.setInitialState=function(args){_ed=_fa(_eb,args,_ec);};_e7.addToHistory=function(args){_f1=[];var hash=null;var url=null;if(!_f0){if(_e1.config["useXDomain"]&&!_e1.config["dojoIframeHistoryUrl"]){console.warn("dojo.back: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");}_f0=window.frames["dj_history"];}if(!_ef){_ef=_e4.create("a",{style:{display:"none"}},_e5.body());}if(args["changeUrl"]){hash=""+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());if(_f2.length==0&&_ed.urlHash==hash){_ed=_fa(url,args,hash);return;}else{if(_f2.length>0&&_f2[_f2.length-1].urlHash==hash){_f2[_f2.length-1]=_fa(url,args,hash);return;}}_f4=true;setTimeout(function(){_e9(hash);_f4=false;},1);_ef.href=hash;if(_e3("ie")){url=_ff();var _101=args["back"]||args["backButton"]||args["handle"];var tcb=function(_102){if(_e8()!=""){setTimeout(function(){_e9(hash);},1);}_101.apply(this,[_102]);};if(args["back"]){args.back=tcb;}else{if(args["backButton"]){args.backButton=tcb;}else{if(args["handle"]){args.handle=tcb;}}}var _103=args["forward"]||args["forwardButton"]||args["handle"];var tfw=function(_104){if(_e8()!=""){_e9(hash);}if(_103){_103.apply(this,[_104]);}};if(args["forward"]){args.forward=tfw;}else{if(args["forwardButton"]){args.forwardButton=tfw;}else{if(args["handle"]){args.handle=tfw;}}}}else{if(!_e3("ie")){if(!_ee){_ee=setInterval(_100,200);}}}}else{url=_ff();}_f2.push(_fa(url,args,hash));};_e7._iframeLoaded=function(evt,_105){var _106=_fd(_105.href);if(_106==null){if(_f2.length==1){_f5();}return;}if(_f3){_f3=false;return;}if(_f2.length>=2&&_106==_fd(_f2[_f2.length-2].url)){_f5();}else{if(_f1.length>0&&_106==_fd(_f1[_f1.length-1].url)){_f8();}}};return _e1.back;});},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","./_base/xhr"],function(dojo,_107,has,xhr){var _108;if(1){_108=function(url,sync,load){xhr("GET",{url:url,sync:!!sync,load:load});};}else{if(_107.getText){_108=_107.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _109={},_10a=function(text){if(text){text=text.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _10b=text.match(/]*>\s*([\s\S]+)\s*<\/body>/im);if(_10b){text=_10b[1];}}else{text="";}return text;},_10c={},_10d={},_10e={dynamic:true,normalize:function(id,_10f){var _110=id.split("!"),url=_110[0];return (/^\./.test(url)?_10f(url):url)+(_110[1]?"!"+_110[1]:"");},load:function(id,_111,load){var _112=id.split("!"),_113=_112.length>1,_114=_112[0],url=_111.toUrl(_112[0]),text=_10c,_115=function(text){load(_113?_10a(text):text);};if(_114 in _109){text=_109[_114];}else{if(url in _111.cache){text=_111.cache[url];}else{if(url in _109){text=_109[url];}}}if(text===_10c){if(_10d[url]){_10d[url].push(_115);}else{var _116=_10d[url]=[_115];_108(url,!_111.async,function(text){_109[_114]=_109[url]=text;for(var i=0;i<_116.length;){_116[i++](text);}delete _10d[url];});}}else{_115(text);}}};dojo.cache=function(_117,url,_118){var key;if(typeof _117=="string"){if(/\//.test(_117)){key=_117;_118=url;}else{key=_107.toUrl(_117.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_117+"";_118=url;}var val=(_118!=undefined&&typeof _118!="string")?_118.value:_118,_119=_118&&_118.sanitize;if(typeof val=="string"){_109[key]=val;return _119?_10a(val):val;}else{if(val===null){delete _109[key];return null;}else{if(!(key in _109)){_108(key,true,function(text){_109[key]=text;});}return _119?_10a(_109[key]):_109[key];}}};return _10e;});},"dojo/DeferredList":function(){define("dojo/DeferredList",["./_base/kernel","./_base/Deferred","./_base/array"],function(dojo,_11a,_11b){dojo.DeferredList=function(list,_11c,_11d,_11e,_11f){var _120=[];_11a.call(this);var self=this;if(list.length===0&&!_11c){this.resolve([0,[]]);}var _121=0;_11b.forEach(list,function(item,i){item.then(function(_122){if(_11c){self.resolve([i,_122]);}else{_123(true,_122);}},function(_124){if(_11d){self.reject(_124);}else{_123(false,_124);}if(_11e){return null;}throw _124;});function _123(_125,_126){_120[i]=[_125,_126];_121++;if(_121===list.length){self.resolve(_120);}};});};dojo.DeferredList.prototype=new _11a();dojo.DeferredList.prototype.gatherResults=function(_127){var d=new dojo.DeferredList(_127,false,true,false);d.addCallback(function(_128){var ret=[];_11b.forEach(_128,function(_129){ret.push(_129[1]);});return ret;});return d;};return dojo.DeferredList;});},"dojo/cookie":function(){define("dojo/cookie",["./_base/kernel","./regexp"],function(dojo,_12a){dojo.cookie=function(name,_12b,_12c){var c=document.cookie,ret;if(arguments.length==1){var _12d=c.match(new RegExp("(?:^|; )"+_12a.escapeString(name)+"=([^;]*)"));ret=_12d?decodeURIComponent(_12d[1]):undefined;}else{_12c=_12c||{};var exp=_12c.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_12c.expires=d;}if(exp&&exp.toUTCString){_12c.expires=exp.toUTCString();}_12b=encodeURIComponent(_12b);var _12e=name+"="+_12b,_12f;for(_12f in _12c){_12e+="; "+_12f;var _130=_12c[_12f];if(_130!==true){_12e+="="+_130;}}document.cookie=_12e;}return ret;};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};return dojo.cookie;});},"dojo/regexp":function(){define("dojo/regexp",["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_131){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_131&&_131.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_132){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojo/data/util/simpleFetch":function(){define("dojo/data/util/simpleFetch",["../../_base/lang","../../_base/window","./sorter"],function(_1,_2,_3){var _4=_1.getObject("dojo.data.util.simpleFetch",true);_4.fetch=function(_5){_5=_5||{};if(!_5.store){_5.store=this;}var _6=this;var _7=function(_8,_9){if(_9.onError){var _a=_9.scope||_2.global;_9.onError.call(_a,_8,_9);}};var _b=function(_c,_d){var _e=_d.abort||null;var _f=false;var _10=_d.start?_d.start:0;var _11=(_d.count&&(_d.count!==Infinity))?(_10+_d.count):_c.length;_d.abort=function(){_f=true;if(_e){_e.call(_d);}};var _12=_d.scope||_2.global;if(!_d.store){_d.store=_6;}if(_d.onBegin){_d.onBegin.call(_12,_c.length,_d);}if(_d.sort){_c.sort(_3.createSortFunction(_d.sort,_6));}if(_d.onItem){for(var i=_10;(i<_c.length)&&(i<_11);++i){var _13=_c[i];if(!_f){_d.onItem.call(_12,_13,_d);}}}if(_d.onComplete&&!_f){var _14=null;if(!_d.onItem){_14=_c.slice(_10,_11);}_d.onComplete.call(_12,_14,_d);}};this._fetchItems(_5,_b,_7);return _5;};return _4;});},"dojo/data/ItemFileWriteStore":function(){define("dojo/data/ItemFileWriteStore",["../_base/lang","../_base/declare","../_base/array","../_base/json","../_base/window","./ItemFileReadStore","../date/stamp"],function(_15,_16,_17,_18,_19,_1a,_1b){return _16("dojo.data.ItemFileWriteStore",_1a,{constructor:function(_1c){this._features["dojo.data.api.Write"]=true;this._features["dojo.data.api.Notification"]=true;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};if(!this._datatypeMap["Date"].serialize){this._datatypeMap["Date"].serialize=function(obj){return _1b.toISOString(obj,{zulu:true});};}if(_1c&&(_1c.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_1d){if(!_1d){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){return this.getFeatures()["dojo.data.api.Identity"];},newItem:function(_1e,_1f){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _1e!="object"&&typeof _1e!="undefined"){throw new Error("newItem() was passed something other than an object");}var _20=null;var _21=this._getIdentifierAttribute();if(_21===Number){_20=this._arrayOfAllItems.length;}else{_20=_1e[_21];if(typeof _20==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(_15.isArray(_20)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_20]==="undefined");}this._assert(typeof this._pending._newItems[_20]==="undefined");this._assert(typeof this._pending._deletedItems[_20]==="undefined");var _22={};_22[this._storeRefPropName]=this;_22[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_20]=_22;_22[_21]=[_20];}this._arrayOfAllItems.push(_22);var _23=null;if(_1f&&_1f.parent&&_1f.attribute){_23={item:_1f.parent,attribute:_1f.attribute,oldValue:undefined};var _24=this.getValues(_1f.parent,_1f.attribute);if(_24&&_24.length>0){var _25=_24.slice(0,_24.length);if(_24.length===1){_23.oldValue=_24[0];}else{_23.oldValue=_24.slice(0,_24.length);}_25.push(_22);this._setValueOrValues(_1f.parent,_1f.attribute,_25,false);_23.newValue=this.getValues(_1f.parent,_1f.attribute);}else{this._setValueOrValues(_1f.parent,_1f.attribute,_22,false);_23.newValue=_22;}}else{_22[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_22);}this._pending._newItems[_20]=_22;for(var key in _1e){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _26=_1e[key];if(!_15.isArray(_26)){_26=[_26];}_22[key]=_26;if(this.referenceIntegrity){for(var i=0;i<_26.length;i++){var val=_26[i];if(this.isItem(val)){this._addReferenceToMap(val,_22,key);}}}}this.onNew(_22,_23);return _22;},_removeArrayElement:function(_27,_28){var _29=_17.indexOf(_27,_28);if(_29!=-1){_27.splice(_29,1);return true;}return false;},deleteItem:function(_2a){this._assert(!this._saveInProgress);this._assertIsItem(_2a);var _2b=_2a[this._itemNumPropName];var _2c=this.getIdentity(_2a);if(this.referenceIntegrity){var _2d=this.getAttributes(_2a);if(_2a[this._reverseRefMap]){_2a["backup_"+this._reverseRefMap]=_15.clone(_2a[this._reverseRefMap]);}_17.forEach(_2d,function(_2e){_17.forEach(this.getValues(_2a,_2e),function(_2f){if(this.isItem(_2f)){if(!_2a["backupRefs_"+this._reverseRefMap]){_2a["backupRefs_"+this._reverseRefMap]=[];}_2a["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_2f),attr:_2e});this._removeReferenceFromMap(_2f,_2a,_2e);}},this);},this);var _30=_2a[this._reverseRefMap];if(_30){for(var _31 in _30){var _32=null;if(this._itemsByIdentity){_32=this._itemsByIdentity[_31];}else{_32=this._arrayOfAllItems[_31];}if(_32){for(var _33 in _30[_31]){var _34=this.getValues(_32,_33)||[];var _35=_17.filter(_34,function(_36){return !(this.isItem(_36)&&this.getIdentity(_36)==_2c);},this);this._removeReferenceFromMap(_2a,_32,_33);if(_35.length<_34.length){this._setValueOrValues(_32,_33,_35,true);}}}}}}this._arrayOfAllItems[_2b]=null;_2a[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_2c];}this._pending._deletedItems[_2c]=_2a;if(_2a[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_2a);}this.onDelete(_2a);return true;},setValue:function(_37,_38,_39){return this._setValueOrValues(_37,_38,_39,true);},setValues:function(_3a,_3b,_3c){return this._setValueOrValues(_3a,_3b,_3c,true);},unsetAttribute:function(_3d,_3e){return this._setValueOrValues(_3d,_3e,[],true);},_setValueOrValues:function(_3f,_40,_41,_42){this._assert(!this._saveInProgress);this._assertIsItem(_3f);this._assert(_15.isString(_40));this._assert(typeof _41!=="undefined");var _43=this._getIdentifierAttribute();if(_40==_43){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _44=this._getValueOrValues(_3f,_40);var _45=this.getIdentity(_3f);if(!this._pending._modifiedItems[_45]){var _46={};for(var key in _3f){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_46[key]=_3f[key];}else{if(key===this._reverseRefMap){_46[key]=_15.clone(_3f[key]);}else{_46[key]=_3f[key].slice(0,_3f[key].length);}}}this._pending._modifiedItems[_45]=_46;}var _47=false;if(_15.isArray(_41)&&_41.length===0){_47=delete _3f[_40];_41=undefined;if(this.referenceIntegrity&&_44){var _48=_44;if(!_15.isArray(_48)){_48=[_48];}for(var i=0;i<_48.length;i++){var _49=_48[i];if(this.isItem(_49)){this._removeReferenceFromMap(_49,_3f,_40);}}}}else{var _4a;if(_15.isArray(_41)){_4a=_41.slice(0,_41.length);}else{_4a=[_41];}if(this.referenceIntegrity){if(_44){var _48=_44;if(!_15.isArray(_48)){_48=[_48];}var map={};_17.forEach(_48,function(_4b){if(this.isItem(_4b)){var id=this.getIdentity(_4b);map[id.toString()]=true;}},this);_17.forEach(_4a,function(_4c){if(this.isItem(_4c)){var id=this.getIdentity(_4c);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_4c,_3f,_40);}}},this);for(var rId in map){var _4d;if(this._itemsByIdentity){_4d=this._itemsByIdentity[rId];}else{_4d=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_4d,_3f,_40);}}else{for(var i=0;i<_4a.length;i++){var _49=_4a[i];if(this.isItem(_49)){this._addReferenceToMap(_49,_3f,_40);}}}}_3f[_40]=_4a;_47=true;}if(_42){this.onSet(_3f,_40,_44,_41);}return _47;},_addReferenceToMap:function(_4e,_4f,_50){var _51=this.getIdentity(_4f);var _52=_4e[this._reverseRefMap];if(!_52){_52=_4e[this._reverseRefMap]={};}var _53=_52[_51];if(!_53){_53=_52[_51]={};}_53[_50]=true;},_removeReferenceFromMap:function(_54,_55,_56){var _57=this.getIdentity(_55);var _58=_54[this._reverseRefMap];var _59;if(_58){for(_59 in _58){if(_59==_57){delete _58[_59][_56];if(this._isEmpty(_58[_59])){delete _58[_59];}}}if(this._isEmpty(_58)){delete _54[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i0){_6a=false;}}}return _6a;},save:function(_6b){this._assert(!this._saveInProgress);this._saveInProgress=true;var _6c=this;var _6d=function(){_6c._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};_6c._saveInProgress=false;if(_6b&&_6b.onComplete){var _6e=_6b.scope||_19.global;_6b.onComplete.call(_6e);}};var _6f=function(err){_6c._saveInProgress=false;if(_6b&&_6b.onError){var _70=_6b.scope||_19.global;_6b.onError.call(_70,err);}};if(this._saveEverything){var _71=this._getNewFileContentString();this._saveEverything(_6d,_6f,_71);}if(this._saveCustom){this._saveCustom(_6d,_6f);}if(!this._saveEverything&&!this._saveCustom){_6d();}},revert:function(){this._assert(!this._saveInProgress);var _72;for(_72 in this._pending._modifiedItems){var _73=this._pending._modifiedItems[_72];var _74=null;if(this._itemsByIdentity){_74=this._itemsByIdentity[_72];}else{_74=this._arrayOfAllItems[_72];}_73[this._storeRefPropName]=this;for(var key in _74){delete _74[key];}_15.mixin(_74,_73);}var _75;for(_72 in this._pending._deletedItems){_75=this._pending._deletedItems[_72];_75[this._storeRefPropName]=this;var _76=_75[this._itemNumPropName];if(_75["backup_"+this._reverseRefMap]){_75[this._reverseRefMap]=_75["backup_"+this._reverseRefMap];delete _75["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_76]=_75;if(this._itemsByIdentity){this._itemsByIdentity[_72]=_75;}if(_75[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_75);}}for(_72 in this._pending._deletedItems){_75=this._pending._deletedItems[_72];if(_75["backupRefs_"+this._reverseRefMap]){_17.forEach(_75["backupRefs_"+this._reverseRefMap],function(_77){var _78;if(this._itemsByIdentity){_78=this._itemsByIdentity[_77.id];}else{_78=this._arrayOfAllItems[_77.id];}this._addReferenceToMap(_78,_75,_77.attr);},this);delete _75["backupRefs_"+this._reverseRefMap];}}for(_72 in this._pending._newItems){var _79=this._pending._newItems[_72];_79[this._storeRefPropName]=null;this._arrayOfAllItems[_79[this._itemNumPropName]]=null;if(_79[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_79);}if(this._itemsByIdentity){delete this._itemsByIdentity[_72];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(_7a){if(_7a){var _7b=this.getIdentity(_7a);return new Boolean(this._pending._newItems[_7b]||this._pending._modifiedItems[_7b]||this._pending._deletedItems[_7b]).valueOf();}else{return !this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems);}},onSet:function(_7c,_7d,_7e,_7f){},onNew:function(_80,_81){},onDelete:function(_82){},close:function(_83){if(this.clearOnClose){if(!this.isDirty()){this.inherited(arguments);}else{throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store. Please save or revert the changes before invoking close.");}}}});});},"dojo/data/util/sorter":function(){define("dojo/data/util/sorter",["../../_base/lang"],function(_84){var _85=_84.getObject("dojo.data.util.sorter",true);_85.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};_85.createSortFunction=function(_86,_87){var _88=[];function _89(_8a,dir,_8b,s){return function(_8c,_8d){var a=s.getValue(_8c,_8a);var b=s.getValue(_8d,_8a);return dir*_8b(a,b);};};var _8e;var map=_87.comparatorMap;var bc=_85.basicComparator;for(var i=0;i<_86.length;i++){_8e=_86[i];var _8f=_8e.attribute;if(_8f){var dir=(_8e.descending)?-1:1;var _90=bc;if(map){if(typeof _8f!=="string"&&("toString" in _8f)){_8f=_8f.toString();}_90=map[_8f]||bc;}_88.push(_89(_8f,dir,_90,_87));}}return function(_91,_92){var i=0;while(i<_88.length){var ret=_88[i++](_91,_92);if(ret!==0){return ret;}}return 0;};};return _85;});},"dojo/data/util/filter":function(){define("dojo/data/util/filter",["../../_base/lang"],function(_93){var _94=_93.getObject("dojo.data.util.filter",true);_94.patternToRegExp=function(_95,_96){var rxp="^";var c=null;for(var i=0;i<_95.length;i++){c=_95.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_95.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_96){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};return _94;});},"dojo/data/ItemFileReadStore":function(){define("dojo/data/ItemFileReadStore",["../_base/kernel","../_base/lang","../_base/declare","../_base/array","../_base/xhr","../Evented","../_base/window","./util/filter","./util/simpleFetch","../date/stamp"],function(_97,_98,_99,_9a,xhr,_9b,_9c,_9d,_9e,_9f){var _a0=_99("dojo.data.ItemFileReadStore",[_9b],{constructor:function(_a1){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_a1.url;this._ccUrl=_a1.url;this.url=_a1.url;this._jsonData=_a1.data;this.data=null;this._datatypeMap=_a1.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_a2){return _9f.fromISOString(_a2);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_a1.urlPreventCache!==undefined){this.urlPreventCache=_a1.urlPreventCache?true:false;}if(_a1.hierarchical!==undefined){this.hierarchical=_a1.hierarchical?true:false;}if(_a1.clearOnClose){this.clearOnClose=true;}if("failOk" in _a1){this.failOk=_a1.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(_a3){if(!this.isItem(_a3)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_a4){if(typeof _a4!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(_a5,_a6,_a7){var _a8=this.getValues(_a5,_a6);return (_a8.length>0)?_a8[0]:_a7;},getValues:function(_a9,_aa){this._assertIsItem(_a9);this._assertIsAttribute(_aa);return (_a9[_aa]||[]).slice(0);},getAttributes:function(_ab){this._assertIsItem(_ab);var _ac=[];for(var key in _ab){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_ac.push(key);}}return _ac;},hasAttribute:function(_ad,_ae){this._assertIsItem(_ad);this._assertIsAttribute(_ae);return (_ae in _ad);},containsValue:function(_af,_b0,_b1){var _b2=undefined;if(typeof _b1==="string"){_b2=_9d.patternToRegExp(_b1,false);}return this._containsValue(_af,_b0,_b1,_b2);},_containsValue:function(_b3,_b4,_b5,_b6){return _9a.some(this.getValues(_b3,_b4),function(_b7){if(_b7!==null&&!_98.isObject(_b7)&&_b6){if(_b7.toString().match(_b6)){return true;}}else{if(_b5===_b7){return true;}}});},isItem:function(_b8){if(_b8&&_b8[this._storeRefPropName]===this){if(this._arrayOfAllItems[_b8[this._itemNumPropName]]===_b8){return true;}}return false;},isItemLoaded:function(_b9){return this.isItem(_b9);},loadItem:function(_ba){this._assertIsItem(_ba.item);},getFeatures:function(){return this._features;},getLabel:function(_bb){if(this._labelAttr&&this.isItem(_bb)){return this.getValue(_bb,this._labelAttr);}return undefined;},getLabelAttributes:function(_bc){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_bd,_be,_bf){var _c0=this,_c1=function(_c2,_c3){var _c4=[],i,key;if(_c2.query){var _c5,_c6=_c2.queryOptions?_c2.queryOptions.ignoreCase:false;var _c7={};for(key in _c2.query){_c5=_c2.query[key];if(typeof _c5==="string"){_c7[key]=_9d.patternToRegExp(_c5,_c6);}else{if(_c5 instanceof RegExp){_c7[key]=_c5;}}}for(i=0;i<_c3.length;++i){var _c8=true;var _c9=_c3[i];if(_c9===null){_c8=false;}else{for(key in _c2.query){_c5=_c2.query[key];if(!_c0._containsValue(_c9,key,_c5,_c7[key])){_c8=false;}}}if(_c8){_c4.push(_c9);}}_be(_c4,_c2);}else{for(i=0;i<_c3.length;++i){var _ca=_c3[i];if(_ca!==null){_c4.push(_ca);}}_be(_c4,_c2);}};if(this._loadFinished){_c1(_bd,this._getItemsArray(_bd.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){_97.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl. _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_bd,filter:_c1});}else{this._loadInProgress=true;var _cb={url:_c0._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _cc=xhr.get(_cb);_cc.addCallback(function(_cd){try{_c0._getItemsFromLoadedData(_cd);_c0._loadFinished=true;_c0._loadInProgress=false;_c1(_bd,_c0._getItemsArray(_bd.queryOptions));_c0._handleQueuedFetches();}catch(e){_c0._loadFinished=true;_c0._loadInProgress=false;_bf(e,_bd);}});_cc.addErrback(function(_ce){_c0._loadInProgress=false;_bf(_ce,_bd);});var _cf=null;if(_bd.abort){_cf=_bd.abort;}_bd.abort=function(){var df=_cc;if(df&&df.fired===-1){df.cancel();df=null;}if(_cf){_cf.call(_bd);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_c1(_bd,this._getItemsArray(_bd.queryOptions));}catch(e){_bf(e,_bd);}}else{_bf(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_bd);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i0?"-":"+")+_10f(Math.floor(_114/60))+":"+_10f(_114%60);}}_110.push(time);}return _110.join("T");};return dojo.date.stamp;});},"*noref":1}});define("dojo/_data",[],1);require(["dojo/data/ItemFileReadStore","dojo/data/ItemFileWriteStore","dojo/data/util/simpleFetch","dojo/data/util/sorter","dojo/data/util/filter"]);/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojo/dnd/autoscroll":function(){define("dojo/dnd/autoscroll",["../main","../window"],function(_1){_1.getObject("dnd",true,_1);_1.dnd.getViewport=_1.window.getBox;_1.dnd.V_TRIGGER_AUTOSCROLL=32;_1.dnd.H_TRIGGER_AUTOSCROLL=32;_1.dnd.V_AUTOSCROLL_VALUE=16;_1.dnd.H_AUTOSCROLL_VALUE=16;_1.dnd.autoScroll=function(e){var v=_1.window.getBox(),dx=0,dy=0;if(e.clientX<_1.dnd.H_TRIGGER_AUTOSCROLL){dx=-_1.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_1.dnd.H_TRIGGER_AUTOSCROLL){dx=_1.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<_1.dnd.V_TRIGGER_AUTOSCROLL){dy=-_1.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_1.dnd.V_TRIGGER_AUTOSCROLL){dy=_1.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};_1.dnd._validNodes={"div":1,"p":1,"td":1};_1.dnd._validOverflow={"auto":1,"scroll":1};_1.dnd.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_2,_3;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _1.dnd._validNodes)){var s=_1.getComputedStyle(n),_4=(s.overflow.toLowerCase() in _1.dnd._validOverflow),_5=(s.overflowX.toLowerCase() in _1.dnd._validOverflow),_6=(s.overflowY.toLowerCase() in _1.dnd._validOverflow);if(_4||_5||_6){b=_1._getContentBox(n,s);t=_1.position(n,true);}if(_4||_5){w=Math.min(_1.dnd.H_TRIGGER_AUTOSCROLL,b.w/2);rx=e.pageX-t.x;if(_1.isWebKit||_1.isOpera){rx+=_1.body().scrollLeft;}dx=0;if(rx>0&&rxb.w-w){dx=w;}}_2=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_4||_6){h=Math.min(_1.dnd.V_TRIGGER_AUTOSCROLL,b.h/2);ry=e.pageY-t.y;if(_1.isWebKit||_1.isOpera){ry+=_1.body().scrollTop;}dy=0;if(ry>0&&ryb.h-h){dy=h;}}_3=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}_1.dnd.autoScroll(e);};return _1.dnd;});},"dojo/dnd/Target":function(){define("dojo/dnd/Target",["./Source"],function(_7){return dojo.declare("dojo.dnd.Target",_7,{constructor:function(_8,_9){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");}});});},"dojo/dnd/common":function(){define("dojo/dnd/common",["../main"],function(_a){_a.getObject("dnd",true,_a);_a.dnd.getCopyKeyState=_a.isCopyKey;_a.dnd._uniqueId=0;_a.dnd.getUniqueId=function(){var id;do{id=_a._scopeName+"Unique"+(++_a.dnd._uniqueId);}while(_a.byId(id));return id;};_a.dnd._empty={};_a.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};return _a.dnd;});},"dojo/dnd/Selector":function(){define("dojo/dnd/Selector",["../main","./common","./Container"],function(_b){_b.declare("dojo.dnd.Selector",_b.dnd.Container,{constructor:function(_c,_d){if(!_d){_d={};}this.singular=_d.singular;this.autoSync=_d.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(_b.connect(this.node,"onmousedown",this,"onMouseDown"),_b.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new _b.NodeList();var e=_b.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(_b.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(_e,id){this._addItemClass(_b.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=_b.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=_b.byId(i);this.delItem(i);_b.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||_b.global;var s=this.selection,e=_b.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){_b.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=_b.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}_b.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_f,_10,_11,_12){var _13=this._normalizedCreator;this._normalizedCreator=function(_14,_15){var t=_13.call(this,_14,_15);if(_f){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};_b.dnd.Selector.superclass.insertNodes.call(this,_10,_11,_12);this._normalizedCreator=_13;return this;},destroy:function(){_b.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!_b.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===_b.mouseButtons.LEFT){_b.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!_b.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;ithis.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _28=this.getSelectedNodes();if(_28.length){m.startDrag(this,_28,this.copyState(_1b.isCopyKey(e),true));}}}if(this.isDragging){var _29=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=_1b.position(this.current,true);}if(this.horizontal){_29=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_29=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_29!=this.before){this._markTargetAnchor(_29);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!_1b.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;_1b.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;_1b.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_2a){if(this!=_2a){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=_1d.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_2b,_2c,_2d){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_2b?(_2d?"Copied":"Moved"):"");}var _2e=this.accept&&this.checkAcceptance(_2b,_2c);this._changeState("Target",_2e?"":"Disabled");if(this==_2b){_1d.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_2f,_30,_31,_32){if(this==_32){this.onDrop(_2f,_30,_31);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_33,_34,_35){if(this!=_33){this.onDropExternal(_33,_34,_35);}else{this.onDropInternal(_34,_35);}},onDropExternal:function(_36,_37,_38){var _39=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(_3a,_3b){return _39.call(this,_36.getItem(_3a.id).data,_3b);};}else{if(_38){this._normalizedCreator=function(_3c,_3d){var t=_36.getItem(_3c.id);var n=_3c.cloneNode(true);n.id=_1b.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(_3e,_3f){var t=_36.getItem(_3e.id);_36.delItem(_3e.id);return {node:_3e,data:t.data,type:t.type};};}}this.selectNone();if(!_38&&!this.creator){_36.selectNone();}this.insertNodes(true,_37,this.before,this.current);if(!_38&&this.creator){_36.deleteSelectedNodes();}this._normalizedCreator=_39;},onDropInternal:function(_40,_41){var _42=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(_41){if(this.creator){this._normalizedCreator=function(_43,_44){return _42.call(this,this.getItem(_43.id).data,_44);};}else{this._normalizedCreator=function(_45,_46){var t=this.getItem(_45.id);var n=_45.cloneNode(true);n.id=_1b.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(_47,_48){var t=this.getItem(_47.id);return {node:_47,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_40,this.before,this.current);this._normalizedCreator=_42;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){_1b.dnd.Source.superclass.onOverEvent.call(this);_1d.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){_1b.dnd.Source.superclass.onOutEvent.call(this);_1d.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_49){if(this.current==this.targetAnchor&&this.before==_49){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_49;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(_4a){this._changeState("Source",_4a?"Copied":"Moved");},_legalMouseDown:function(e){if(!_1b.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var _4b=e.target;_4b&&_4b!==this.node;_4b=_4b.parentNode){if(_1b.hasClass(_4b,"dojoDndHandle")){return true;}if(_1b.hasClass(_4b,"dojoDndItem")||_1b.hasClass(_4b,"dojoDndIgnore")){break;}}return false;}});});},"dojo/dnd/Container":function(){define("dojo/dnd/Container",["../main","../Evented","./common","../parser"],function(_4c,_4d){_4c.declare("dojo.dnd.Container",_4d,{skipForm:false,constructor:function(_4e,_4f){this.node=_4c.byId(_4e);if(!_4f){_4f={};}this.creator=_4f.creator||null;this.skipForm=_4f.skipForm;this.parent=_4f.dropParent&&_4c.byId(_4f.dropParent);this.map={};this.current=null;this.containerState="";_4c.addClass(this.node,"dojoDndContainer");if(!(_4f&&_4f._skipStartup)){this.startup();}this.events=[_4c.connect(this.node,"onmouseover",this,"onMouseOver"),_4c.connect(this.node,"onmouseout",this,"onMouseOut"),_4c.connect(this.node,"ondragstart",this,"onSelectStart"),_4c.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,_50){this.map[key]=_50;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||_4c.global;var m=this.map,e=_4c.dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return _4c.query("> .dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(_51){if(_51.id){var _52=this.getItem(_51.id);if(_52){map[_51.id]=_52;return;}}else{_51.id=_4c.dnd.getUniqueId();}var _53=_51.getAttribute("dndType"),_54=_51.getAttribute("dndData");map[_51.id]={data:_54||_51.innerHTML,type:_53?_53.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(_55,_56,_57){if(!this.parent.firstChild){_57=null;}else{if(_56){if(!_57){_57=this.parent.firstChild;}}else{if(_57){_57=_57.nextSibling;}}}if(_57){for(var i=0;i<_55.length;++i){var t=this._normalizedCreator(_55[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_57);}}else{for(var i=0;i<_55.length;++i){var t=this._normalizedCreator(_55[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){_4c.forEach(this.events,_4c.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_58,_59,_5a){_58._skipStartup=true;return new _5a(_59,_58);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=_4c.dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!_4c.dnd.isFormElement(e)){_4c.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(_5b,_5c){var _5d="dojoDnd"+_5b;var _5e=_5b.toLowerCase()+"State";_4c.replaceClass(this.node,_5d+_5c,_5d+this[_5e]);this[_5e]=_5c;},_addItemClass:function(_5f,_60){_4c.addClass(_5f,"dojoDndItem"+_60);},_removeItemClass:function(_61,_62){_4c.removeClass(_61,"dojoDndItem"+_62);},_getChildByEvent:function(e){var _63=e.target;if(_63){for(var _64=_63.parentNode;_64;_63=_64,_64=_63.parentNode){if(_64==this.parent&&_4c.hasClass(_63,"dojoDndItem")){return _63;}}}return null;},_normalizedCreator:function(_65,_66){var t=(this.creator||this.defaultCreator).call(this,_65,_66);if(!_4c.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=_4c.dnd.getUniqueId();}_4c.addClass(t.node,"dojoDndItem");return t;}});_4c.dnd._createNode=function(tag){if(!tag){return _4c.dnd._createSpan;}return function(_67){return _4c.create(tag,{innerHTML:_67});};};_4c.dnd._createTrTd=function(_68){var tr=_4c.create("tr");_4c.create("td",{innerHTML:_68},tr);return tr;};_4c.dnd._createSpan=function(_69){return _4c.create("span",{innerHTML:_69});};_4c.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};_4c.dnd._defaultCreator=function(_6a){var tag=_6a.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?_4c.dnd._createTrTd:_4c.dnd._createNode(_4c.dnd._defaultCreatorNodes[tag]);return function(_6b,_6c){var _6d=_6b&&_4c.isObject(_6b),_6e,_6f,n;if(_6d&&_6b.tagName&&_6b.nodeType&&_6b.getAttribute){_6e=_6b.getAttribute("dndData")||_6b.innerHTML;_6f=_6b.getAttribute("dndType");_6f=_6f?_6f.split(/\s*,\s*/):["text"];n=_6b;}else{_6e=(_6d&&_6b.data)?_6b.data:_6b;_6f=(_6d&&_6b.type)?_6b.type:["text"];n=(_6c=="avatar"?_4c.dnd._createSpan:c)(String(_6e));}if(!n.id){n.id=_4c.dnd.getUniqueId();}return {node:n,data:_6e,type:_6f};};};return _4c.dnd.Container;});},"dojo/dnd/Manager":function(){define("dojo/dnd/Manager",["../main","../Evented","./common","./autoscroll","./Avatar"],function(_70,_71){var _72=_70.declare("dojo.dnd.Manager",[_71],{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_73){if(this.avatar){this.target=(_73&&_73.targetState!="Disabled")?_73:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}_70.publish("/dnd/source/over",[_73]);},outSource:function(_74){if(this.avatar){if(this.target==_74){this.target=null;this.canDropFlag=false;this.avatar.update();_70.publish("/dnd/source/over",[null]);}}else{_70.publish("/dnd/source/over",[null]);}},startDrag:function(_75,_76,_77){this.source=_75;this.nodes=_76;this.copy=Boolean(_77);this.avatar=this.makeAvatar();_70.body().appendChild(this.avatar.node);_70.publish("/dnd/start",[_75,_76,this.copy]);this.events=[_70.connect(_70.doc,"onmousemove",this,"onMouseMove"),_70.connect(_70.doc,"onmouseup",this,"onMouseUp"),_70.connect(_70.doc,"onkeydown",this,"onKeyDown"),_70.connect(_70.doc,"onkeyup",this,"onKeyUp"),_70.connect(_70.doc,"ondragstart",_70.stopEvent),_70.connect(_70.body(),"onselectstart",_70.stopEvent)];var c="dojoDnd"+(_77?"Copy":"Move");_70.addClass(_70.body(),c);},canDrop:function(_78){var _79=Boolean(this.target&&_78);if(this.canDropFlag!=_79){this.canDropFlag=_79;this.avatar.update();}},stopDrag:function(){_70.removeClass(_70.body(),["dojoDndCopy","dojoDndMove"]);_70.forEach(this.events,_70.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new _70.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){_70.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var _7a=Boolean(this.source.copyState(_70.isCopyKey(e)));if(this.copy!=_7a){this._setCopyStatus(_7a);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var _7b=Boolean(this.source.copyState(_70.isCopyKey(e))),_7c=[this.source,this.nodes,_7b,this.target,e];_70.publish("/dnd/drop/before",_7c);_70.publish("/dnd/drop",_7c);}else{_70.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case _70.keys.CTRL:var _7d=Boolean(this.source.copyState(true));if(this.copy!=_7d){this._setCopyStatus(_7d);}break;case _70.keys.ESCAPE:_70.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==_70.keys.CTRL){var _7e=Boolean(this.source.copyState(false));if(this.copy!=_7e){this._setCopyStatus(_7e);}}},_setCopyStatus:function(_7f){this.copy=_7f;this.source._markDndStatus(this.copy);this.updateAvatar();_70.replaceClass(_70.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});_70.dnd._manager=null;_72.manager=_70.dnd.manager=function(){if(!_70.dnd._manager){_70.dnd._manager=new _70.dnd.Manager();}return _70.dnd._manager;};return _72;});},"dojo/dnd/Avatar":function(){define("dojo/dnd/Avatar",["../main","./common"],function(_80){_80.declare("dojo.dnd.Avatar",null,{constructor:function(_81){this.manager=_81;this.construct();},construct:function(){this.isA11y=_80.hasClass(_80.body(),"dijit_a11y");var a=_80.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_82=this.manager.source,_83,b=_80.create("tbody",null,a),tr=_80.create("tr",null,b),td=_80.create("td",null,tr),_84=this.isA11y?_80.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,_85=_80.create("span",{innerHTML:_82.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;_80.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojo/touch":function(){define("dojo/touch",["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./domReady","./_base/window"],function(_1,_2,_3,on,_4,_5,_6,_7){var _8=_4("touch");var _9=false;if(_4("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));_9=os<5;}var _a;function _b(_c,_d){if(_8){return function(_e,_f){var _10=on(_e,_d,_f),_11=on(_e,_c,function(evt){if(!_a||(new Date()).getTime()>_a+1000){_f.call(this,evt);}});return {remove:function(){_10.remove();_11.remove();}};};}else{return function(_12,_13){return on(_12,_c,_13);};}};var _14,_15;if(_8){_6(function(){_15=_7.body();_7.doc.addEventListener("touchstart",function(evt){_a=(new Date()).getTime();var _16=_15;_15=evt.target;on.emit(_16,"dojotouchout",{target:_16,relatedTarget:_15,bubbles:true});on.emit(_15,"dojotouchover",{target:_15,relatedTarget:_16,bubbles:true});},true);on(_7.doc,"touchmove",function(evt){_a=(new Date()).getTime();var _17=_7.doc.elementFromPoint(evt.pageX-(_9?0:_7.global.pageXOffset),evt.pageY-(_9?0:_7.global.pageYOffset));if(_17&&_15!==_17){on.emit(_15,"dojotouchout",{target:_15,relatedTarget:_17,bubbles:true});on.emit(_17,"dojotouchover",{target:_17,relatedTarget:_15,bubbles:true});_15=_17;}});});_14=function(_18,_19){return on(_7.doc,"touchmove",function(evt){if(_18===_7.doc||_3.isDescendant(_15,_18)){evt.target=_15;_19.call(this,evt);}});};}var _1a={press:_b("mousedown","touchstart"),move:_b("mousemove",_14),release:_b("mouseup","touchend"),cancel:_b(_5.leave,"touchcancel"),over:_b("mouseover","dojotouchover"),out:_b("mouseout","dojotouchout"),enter:_5._eventHandler(_b("mouseover","dojotouchover")),leave:_5._eventHandler(_b("mouseout","dojotouchout"))};1&&(_1.touch=_1a);return _1a;});},"dojo/dnd/TimedMoveable":function(){define("dojo/dnd/TimedMoveable",["../main","./Moveable"],function(_1b){var _1c=_1b.dnd.Moveable.prototype.onMove;_1b.declare("dojo.dnd.TimedMoveable",_1b.dnd.Moveable,{timeout:40,constructor:function(_1d,_1e){if(!_1e){_1e={};}if(_1e.timeout&&typeof _1e.timeout=="number"&&_1e.timeout>=0){this.timeout=_1e.timeout;}},onMoveStop:function(_1f){if(_1f._timer){clearTimeout(_1f._timer);_1c.call(this,_1f,_1f._leftTop);}_1b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_20,_21){_20._leftTop=_21;if(!_20._timer){var _22=this;_20._timer=setTimeout(function(){_20._timer=null;_1c.call(_22,_20,_20._leftTop);},this.timeout);}}});return _1b.dnd.TimedMoveable;});},"dojo/dnd/Moveable":function(){define("dojo/dnd/Moveable",["../main","../Evented","../touch","./Mover"],function(_23,_24,_25){_23.declare("dojo.dnd.Moveable",[_24],{handle:"",delay:0,skip:false,constructor:function(_26,_27){this.node=_23.byId(_26);if(!_27){_27={};}this.handle=_27.handle?_23.byId(_27.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_27.delay>0?_27.delay:0;this.skip=_27.skip;this.mover=_27.mover?_27.mover:_23.dnd.Mover;this.events=[_23.connect(this.handle,_25.press,this,"onMouseDown"),_23.connect(this.handle,"ondragstart",this,"onSelectStart"),_23.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_28,_29,_2a){return new _2a(_29,_28);},destroy:function(){_23.forEach(this.events,_23.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&_23.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(_23.connect(this.handle,_25.move,this,"onMouseMove"),_23.connect(this.handle,_25.release,this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}_23.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}_23.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){_23.disconnect(this.events.pop());}_23.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!_23.dnd.isFormElement(e)){_23.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_2b){_23.publish("/dnd/move/start",[_2b]);_23.addClass(_23.body(),"dojoMove");_23.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_2c){_23.publish("/dnd/move/stop",[_2c]);_23.removeClass(_23.body(),"dojoMove");_23.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_2d,e){},onMove:function(_2e,_2f,e){this.onMoving(_2e,_2f);var s=_2e.node.style;s.left=_2f.l+"px";s.top=_2f.t+"px";this.onMoved(_2e,_2f);},onMoving:function(_30,_31){},onMoved:function(_32,_33){}});return _23.dnd.Moveable;});},"dojo/window":function(){define("dojo/window",["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(_34,has,_35,dom,_36,_37,_38){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var _39=_35.body(doc),_3a=_38.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_39,"last"),div=_38.create("div",{style:{overflow:"hidden",direction:"ltr"}},_3a,"last"),ret=_36.position(div).x!=0;_3a.removeChild(div);_39.removeChild(_3a);return ret;});has.add("position-fixed-support",function(win,doc){var _3b=_35.body(doc),_3c=_38.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_3b,"last"),_3d=_38.create("span",{style:{position:"fixed",left:"0",top:"0"}},_3c,"last"),ret=_36.position(_3d).x!=_36.position(_3c).x;_3c.removeChild(_3d);_3b.removeChild(_3c);return ret;});var _3e=_34.getObject("dojo.window",true);_3e.getBox=function(){var _3f=(_35.doc.compatMode=="BackCompat")?_35.body():_35.doc.documentElement,_40=_36.docScroll(),w,h;if(has("touch")){var _41=_35.doc.parentWindow||_35.doc.defaultView;w=_41.innerWidth||_3f.clientWidth;h=_41.innerHeight||_3f.clientHeight;}else{w=_3f.clientWidth;h=_3f.clientHeight;}return {l:_40.x,t:_40.y,w:w,h:h};};_3e.get=function(doc){if(has("ie")<9&&_3e!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_3e.scrollIntoView=function(_42,pos){try{_42=dom.byId(_42);var doc=_42.ownerDocument||_35.doc,_43=_35.body(doc),_44=doc.documentElement||_43.parentNode,_45=has("ie"),_46=has("webkit");if(_42==_43||_42==_44){return;}if(!(has("mozilla")||_45||_46||has("opera")||has("trident"))&&("scrollIntoView" in _42)){_42.scrollIntoView(false);return;}var _47=doc.compatMode=="BackCompat",_48=Math.min(_43.clientWidth||_44.clientWidth,_44.clientWidth||_43.clientWidth),_49=Math.min(_43.clientHeight||_44.clientHeight,_44.clientHeight||_43.clientHeight),_4a=(_46||_47)?_43:_44,_4b=pos||_36.position(_42),el=_42.parentNode,_4c=function(el){return (_45<=6||(_45==7&&_47))?false:(has("position-fixed-support")&&(_37.get(el,"position").toLowerCase()=="fixed"));},_4d=this,_4e=function(el,x,y){if(el.tagName=="BODY"||el.tagName=="HTML"){_4d.get(el.ownerDocument).scrollBy(x,y);}else{x&&(el.scrollLeft+=x);y&&(el.scrollTop+=y);}};if(_4c(_42)){return;}while(el){if(el==_43){el=_4a;}var _4f=_36.position(el),_50=_4c(el),rtl=_37.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_4a){_4f.w=_48;_4f.h=_49;if(_4a==_44&&(_45||has("trident"))&&rtl){_4f.x+=_4a.offsetWidth-_4f.w;}if(_4f.x<0||!_45||_45>=9||has("trident")){_4f.x=0;}if(_4f.y<0||!_45||_45>=9||has("trident")){_4f.y=0;}}else{var pb=_36.getPadBorderExtents(el);_4f.w-=pb.w;_4f.h-=pb.h;_4f.x+=pb.l;_4f.y+=pb.t;var _51=el.clientWidth,_52=_4f.w-_51;if(_51>0&&_52>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_4f.x+=_52;}_4f.w=_51;}_51=el.clientHeight;_52=_4f.h-_51;if(_51>0&&_52>0){_4f.h=_51;}}if(_50){if(_4f.y<0){_4f.h+=_4f.y;_4f.y=0;}if(_4f.x<0){_4f.w+=_4f.x;_4f.x=0;}if(_4f.y+_4f.h>_49){_4f.h=_49-_4f.y;}if(_4f.x+_4f.w>_48){_4f.w=_48-_4f.x;}}var l=_4b.x-_4f.x,t=_4b.y-_4f.y,r=l+_4b.w-_4f.w,bot=t+_4b.h-_4f.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_4a||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_45==8&&!_47)||_45>=9||has("trident"))){s=-s;}old=el.scrollLeft;_4e(el,s,0);s=el.scrollLeft-old;_4b.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_4a||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_4e(el,0,s);s=el.scrollTop-old;_4b.y-=s;}el=(el!=_4a)&&!_50&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_42.scrollIntoView(false);}};return _3e;});},"dojo/dnd/Mover":function(){define("dojo/dnd/Mover",["../main","../Evented","../touch","./common","./autoscroll"],function(_53,_54,_55){_53.declare("dojo.dnd.Mover",[_54],{constructor:function(_56,e,_57){this.node=_53.byId(_56);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=(this.host=_57),d=_56.ownerDocument;this.events=[_53.connect(d,_55.move,this,"onFirstMove"),_53.connect(d,_55.move,this,"onMouseMove"),_53.connect(d,_55.release,this,"onMouseUp"),_53.connect(d,"ondragstart",_53.stopEvent),_53.connect(d.body,"onselectstart",_53.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_53.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);_53.stopEvent(e);},onMouseUp:function(e){if(_53.isWebKit&&_53.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}_53.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=_53.marginBox(this.node);var b=_53.doc.body;var bs=_53.getComputedStyle(b);var bm=_53._getMarginBox(b,bs);var bc=_53._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}_53.disconnect(this.events.shift());},destroy:function(){_53.forEach(this.events,_53.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});return _53.dnd.Mover;});},"dojo/dnd/move":function(){define("dojo/dnd/move",["../main","./Mover","./Moveable"],function(_58){_58.declare("dojo.dnd.move.constrainedMoveable",_58.dnd.Moveable,{constraints:function(){},within:false,constructor:function(_59,_5a){if(!_5a){_5a={};}this.constraints=_5a.constraints;this.within=_5a.within;},onFirstMove:function(_5b){var c=this.constraintBox=this.constraints.call(this,_5b);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=_58._getMarginSize(_5b.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_5c,_5d){var c=this.constraintBox,s=_5c.node.style;this.onMoving(_5c,_5d);_5d.l=_5d.l= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojo/touch":function(){define("dojo/touch",["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./domReady","./_base/window"],function(_1,_2,_3,on,_4,_5,_6,_7){var _8=_4("touch");var _9=false;if(_4("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));_9=os<5;}var _a;function _b(_c,_d){if(_8){return function(_e,_f){var _10=on(_e,_d,_f),_11=on(_e,_c,function(evt){if(!_a||(new Date()).getTime()>_a+1000){_f.call(this,evt);}});return {remove:function(){_10.remove();_11.remove();}};};}else{return function(_12,_13){return on(_12,_c,_13);};}};var _14,_15;if(_8){_6(function(){_15=_7.body();_7.doc.addEventListener("touchstart",function(evt){_a=(new Date()).getTime();var _16=_15;_15=evt.target;on.emit(_16,"dojotouchout",{target:_16,relatedTarget:_15,bubbles:true});on.emit(_15,"dojotouchover",{target:_15,relatedTarget:_16,bubbles:true});},true);on(_7.doc,"touchmove",function(evt){_a=(new Date()).getTime();var _17=_7.doc.elementFromPoint(evt.pageX-(_9?0:_7.global.pageXOffset),evt.pageY-(_9?0:_7.global.pageYOffset));if(_17&&_15!==_17){on.emit(_15,"dojotouchout",{target:_15,relatedTarget:_17,bubbles:true});on.emit(_17,"dojotouchover",{target:_17,relatedTarget:_15,bubbles:true});_15=_17;}});});_14=function(_18,_19){return on(_7.doc,"touchmove",function(evt){if(_18===_7.doc||_3.isDescendant(_15,_18)){evt.target=_15;_19.call(this,evt);}});};}var _1a={press:_b("mousedown","touchstart"),move:_b("mousemove",_14),release:_b("mouseup","touchend"),cancel:_b(_5.leave,"touchcancel"),over:_b("mouseover","dojotouchover"),out:_b("mouseout","dojotouchout"),enter:_5._eventHandler(_b("mouseover","dojotouchover")),leave:_5._eventHandler(_b("mouseout","dojotouchout"))};1&&(_1.touch=_1a);return _1a;});},"dojo/date/stamp":function(){define("dojo/date/stamp",["../_base/kernel","../_base/lang","../_base/array"],function(_1b,_1c,_1d){_1c.getObject("date.stamp",true,_1b);_1b.date.stamp.fromISOString=function(_1e,_1f){if(!_1b.date.stamp._isoRegExp){_1b.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _20=_1b.date.stamp._isoRegExp.exec(_1e),_21=null;if(_20){_20.shift();if(_20[1]){_20[1]--;}if(_20[6]){_20[6]*=1000;}if(_1f){_1f=new Date(_1f);_1d.forEach(_1d.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_22){return _1f["get"+_22]();}),function(_23,_24){_20[_24]=_20[_24]||_23;});}_21=new Date(_20[0]||1970,_20[1]||0,_20[2]||1,_20[3]||0,_20[4]||0,_20[5]||0,_20[6]||0);if(_20[0]<100){_21.setFullYear(_20[0]||1970);}var _25=0,_26=_20[7]&&_20[7].charAt(0);if(_26!="Z"){_25=((_20[8]||0)*60)+(Number(_20[9])||0);if(_26!="-"){_25*=-1;}}if(_26){_25-=_21.getTimezoneOffset();}if(_25){_21.setTime(_21.getTime()+_25*60000);}}return _21;};_1b.date.stamp.toISOString=function(_27,_28){var _29=function(n){return (n<10)?"0"+n:n;};_28=_28||{};var _2a=[],_2b=_28.zulu?"getUTC":"get",_2c="";if(_28.selector!="time"){var _2d=_27[_2b+"FullYear"]();_2c=["0000".substr((_2d+"").length)+_2d,_29(_27[_2b+"Month"]()+1),_29(_27[_2b+"Date"]())].join("-");}_2a.push(_2c);if(_28.selector!="date"){var _2e=[_29(_27[_2b+"Hours"]()),_29(_27[_2b+"Minutes"]()),_29(_27[_2b+"Seconds"]())].join(":");var _2f=_27[_2b+"Milliseconds"]();if(_28.milliseconds){_2e+="."+(_2f<100?"0":"")+_29(_2f);}if(_28.zulu){_2e+="Z";}else{if(_28.selector!="time"){var _30=_27.getTimezoneOffset();var _31=Math.abs(_30);_2e+=(_30>0?"-":"+")+_29(Math.floor(_31/60))+":"+_29(_31%60);}}_2a.push(_2e);}return _2a.join("T");};return _1b.date.stamp;});},"dojo/_base/url":function(){define("dojo/_base/url",["./kernel"],function(_32){var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_33=function(){var n=null,_34=arguments,uri=[_34[0]];for(var i=1;i<_34.length;i++){if(!_34[i]){continue;}var _35=new _33(_34[i]+""),_36=new _33(uri[0]+"");if(_35.path==""&&!_35.scheme&&!_35.authority&&!_35.query){if(_35.fragment!=n){_36.fragment=_35.fragment;}_35=_36;}else{if(!_35.scheme){_35.scheme=_36.scheme;if(!_35.authority){_35.authority=_36.authority;if(_35.path.charAt(0)!="/"){var _37=_36.path.substring(0,_36.path.lastIndexOf("/")+1)+_35.path;var _38=_37.split("/");for(var j=0;j<_38.length;j++){if(_38[j]=="."){if(j==_38.length-1){_38[j]="";}else{_38.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_38[0]=="")&&_38[j]==".."&&_38[j-1]!=".."){if(j==(_38.length-1)){_38.splice(j,1);_38[j-1]="";}else{_38.splice(j-1,2);j-=2;}}}}_35.path=_38.join("/");}}}}uri=[];if(_35.scheme){uri.push(_35.scheme,":");}if(_35.authority){uri.push("//",_35.authority);}uri.push(_35.path);if(_35.query){uri.push("?",_35.query);}if(_35.fragment){uri.push("#",_35.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};_33.prototype.toString=function(){return this.uri;};return _32._Url=_33;});},"dojo/html":function(){define("dojo/html",["./_base/kernel","./_base/lang","./_base/array","./_base/declare","./dom","./dom-construct","./parser"],function(_39,_3a,_3b,_3c,dom,_3d,_3e){_3a.getObject("html",true,_39);var _3f=0;_39.html._secureForInnerHtml=function(_40){return _40.replace(/(?:\s*]+>|]*>[\s\S]*?<\/title>)/ig,"");};_39.html._emptyNode=_3d.empty;_39.html._setNodeContent=function(_41,_42){_3d.empty(_41);if(_42){if(typeof _42=="string"){_42=_3d.toDom(_42,_41.ownerDocument);}if(!_42.nodeType&&_3a.isArrayLike(_42)){for(var _43=_42.length,i=0;i<_42.length;i=_43==_42.length?i+1:0){_3d.place(_42[i],_41,"last");}}else{_3d.place(_42,_41,"last");}}return _41;};_3c("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:_39._scopeName,startup:true,constructor:function(_44,_45){_3a.mixin(this,_44||{});_45=this.node=dom.byId(this.node||_45);if(!this.id){this.id=["Setter",(_45)?_45.id||_45.tagName:"",_3f++].join("_");}},set:function(_46,_47){if(undefined!==_46){this.content=_46;}if(_47){this._mixin(_47);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var _48=this.node;if(!_48){throw new Error(this.declaredClass+": setContent given no node");}try{_48=_39.html._setNodeContent(_48,this.content);}catch(e){var _49=this.onContentError(e);try{_48.innerHTML=_49;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=_48;},empty:function(){if(this.parseResults&&this.parseResults.length){_3b.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}_39.html._emptyNode(this.node);},onBegin:function(){var _4a=this.content;if(_3a.isString(_4a)){if(this.cleanContent){_4a=_39.html._secureForInnerHtml(_4a);}if(this.extractContent){var _4b=_4a.match(/]*>\s*([\s\S]+)\s*<\/body>/im);if(_4b){_4a=_4b[1];}}}this.empty();this.content=_4a;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_4c){var _4d={},key;for(key in _4c){if(key in _4d){continue;}this[key]=_4c[key];}},_parse:function(){var _4e=this.node;try{var _4f={};_3b.forEach(["dir","lang","textDir"],function(_50){if(this[_50]){_4f[_50]=this[_50];}},this);this.parseResults=_3e.parse({rootNode:_4e,noStart:!this.startup,inherited:_4f,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(_51,err,_52){var _53=this["on"+_51+"Error"].call(this,err);if(_52){console.error(_52,err);}else{if(_53){_39.html._setNodeContent(this.node,_53,true);}}}});_39.html.set=function(_54,_55,_56){if(undefined==_55){console.warn("dojo.html.set: no cont argument provided, using empty string");_55="";}if(!_56){return _39.html._setNodeContent(_54,_55,true);}else{var op=new _39.html._ContentSetter(_3a.mixin(_56,{content:_55,node:_54}));return op.set();}};return _39.html;});},"dojo/uacss":function(){define("dojo/uacss",["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_57,_58,_59,has,_5a){var _5b=_5a.doc.documentElement,ie=has("ie"),_5c=has("opera"),maj=Math.floor,ff=has("ff"),_5d=_57.boxModel.replace(/-/,""),_5e={"dj_quirks":has("quirks"),"dj_opera":_5c,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla")};if(ie){_5e["dj_ie"]=true;_5e["dj_ie"+maj(ie)]=true;_5e["dj_iequirks"]=has("quirks");}if(ff){_5e["dj_ff"+maj(ff)]=true;}_5e["dj_"+_5d]=true;var _5f="";for(var clz in _5e){if(_5e[clz]){_5f+=clz+" ";}}_5b.className=_58.trim(_5b.className+" "+_5f);_59(90,function(){if(!_57.isBodyLtr()){var _60="dj_rtl dijitRtl "+_5f.replace(/ /g,"-rtl ");_5b.className=_58.trim(_5b.className+" "+_60+"dj_rtl dijitRtl "+_5f.replace(/ /g,"-rtl "));}});return has;});},"dojo/window":function(){define("dojo/window",["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(_61,has,_62,dom,_63,_64,_65){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var _66=_62.body(doc),_67=_65.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_66,"last"),div=_65.create("div",{style:{overflow:"hidden",direction:"ltr"}},_67,"last"),ret=_63.position(div).x!=0;_67.removeChild(div);_66.removeChild(_67);return ret;});has.add("position-fixed-support",function(win,doc){var _68=_62.body(doc),_69=_65.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_68,"last"),_6a=_65.create("span",{style:{position:"fixed",left:"0",top:"0"}},_69,"last"),ret=_63.position(_6a).x!=_63.position(_69).x;_69.removeChild(_6a);_68.removeChild(_69);return ret;});var _6b=_61.getObject("dojo.window",true);_6b.getBox=function(){var _6c=(_62.doc.compatMode=="BackCompat")?_62.body():_62.doc.documentElement,_6d=_63.docScroll(),w,h;if(has("touch")){var _6e=_62.doc.parentWindow||_62.doc.defaultView;w=_6e.innerWidth||_6c.clientWidth;h=_6e.innerHeight||_6c.clientHeight;}else{w=_6c.clientWidth;h=_6c.clientHeight;}return {l:_6d.x,t:_6d.y,w:w,h:h};};_6b.get=function(doc){if(has("ie")<9&&_6b!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_6b.scrollIntoView=function(_6f,pos){try{_6f=dom.byId(_6f);var doc=_6f.ownerDocument||_62.doc,_70=_62.body(doc),_71=doc.documentElement||_70.parentNode,_72=has("ie"),_73=has("webkit");if(_6f==_70||_6f==_71){return;}if(!(has("mozilla")||_72||_73||has("opera")||has("trident"))&&("scrollIntoView" in _6f)){_6f.scrollIntoView(false);return;}var _74=doc.compatMode=="BackCompat",_75=Math.min(_70.clientWidth||_71.clientWidth,_71.clientWidth||_70.clientWidth),_76=Math.min(_70.clientHeight||_71.clientHeight,_71.clientHeight||_70.clientHeight),_77=(_73||_74)?_70:_71,_78=pos||_63.position(_6f),el=_6f.parentNode,_79=function(el){return (_72<=6||(_72==7&&_74))?false:(has("position-fixed-support")&&(_64.get(el,"position").toLowerCase()=="fixed"));},_7a=this,_7b=function(el,x,y){if(el.tagName=="BODY"||el.tagName=="HTML"){_7a.get(el.ownerDocument).scrollBy(x,y);}else{x&&(el.scrollLeft+=x);y&&(el.scrollTop+=y);}};if(_79(_6f)){return;}while(el){if(el==_70){el=_77;}var _7c=_63.position(el),_7d=_79(el),rtl=_64.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_77){_7c.w=_75;_7c.h=_76;if(_77==_71&&(_72||has("trident"))&&rtl){_7c.x+=_77.offsetWidth-_7c.w;}if(_7c.x<0||!_72||_72>=9||has("trident")){_7c.x=0;}if(_7c.y<0||!_72||_72>=9||has("trident")){_7c.y=0;}}else{var pb=_63.getPadBorderExtents(el);_7c.w-=pb.w;_7c.h-=pb.h;_7c.x+=pb.l;_7c.y+=pb.t;var _7e=el.clientWidth,_7f=_7c.w-_7e;if(_7e>0&&_7f>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_7c.x+=_7f;}_7c.w=_7e;}_7e=el.clientHeight;_7f=_7c.h-_7e;if(_7e>0&&_7f>0){_7c.h=_7e;}}if(_7d){if(_7c.y<0){_7c.h+=_7c.y;_7c.y=0;}if(_7c.x<0){_7c.w+=_7c.x;_7c.x=0;}if(_7c.y+_7c.h>_76){_7c.h=_76-_7c.y;}if(_7c.x+_7c.w>_75){_7c.w=_75-_7c.x;}}var l=_78.x-_7c.x,t=_78.y-_7c.y,r=l+_78.w-_7c.w,bot=t+_78.h-_7c.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_77||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_72==8&&!_74)||_72>=9||has("trident"))){s=-s;}old=el.scrollLeft;_7b(el,s,0);s=el.scrollLeft-old;_78.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_77||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_7b(el,0,s);s=el.scrollTop-old;_78.y-=s;}el=(el!=_77)&&!_7d&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_6f.scrollIntoView(false);}};return _6b;});},"dojo/parser":function(){define("dojo/parser",["./_base/kernel","./_base/lang","./_base/array","./_base/config","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./has","./query","./on","./ready"],function(_80,_81,_82,_83,_84,_85,_86,_87,_88,_89,has,_8a,don,_8b){new Date("X");if(1){var _8c=document.createElement("form");has.add("dom-attributes-explicit",_8c.attributes.length==0);has.add("dom-attributes-specified-flag",_8c.attributes.length<40);}_80.parser=new function(){var _8d={};function _8e(_8f){var map={};for(var _90 in _8f){if(_90.charAt(0)=="_"){continue;}map[_90.toLowerCase()]=_90;}return map;};_88.after(_81,"extend",function(){_8d={};},true);var _91={};function _92(_93){var map=_91[_93]||(_91[_93]={});return map["__type"]||(map["__type"]=(_81.getObject(_93)||require(_93)));};this._functionFromScript=function(_94,_95){var _96="";var _97="";var _98=(_94.getAttribute(_95+"args")||_94.getAttribute("args"));if(_98){_82.forEach(_98.split(/\s*,\s*/),function(_99,idx){_96+="var "+_99+" = arguments["+idx+"]; ";});}var _9a=_94.getAttribute("with");if(_9a&&_9a.length){_82.forEach(_9a.split(/\s*,\s*/),function(_9b){_96+="with("+_9b+"){";_97+="}";});}return new Function(_96+_94.innerHTML+_97);};this.instantiate=function(_9c,_9d,_9e){_9d=_9d||{};_9e=_9e||{};var _9f=(_9e.scope||_80._scopeName)+"Type",_a0="data-"+(_9e.scope||_80._scopeName)+"-",_a1=_a0+"type";var _a2=[];_82.forEach(_9c,function(_a3){var _a4=_9f in _9d?_9d[_9f]:_a3.getAttribute(_a1)||_a3.getAttribute(_9f);if(_a4){_a2.push({node:_a3,"type":_a4});}});return this._instantiate(_a2,_9d,_9e);};this._instantiate=function(_a5,_a6,_a7){var _a8=[];var _a9=(_a7.scope||_80._scopeName)+"Type",_aa="data-"+(_a7.scope||_80._scopeName)+"-",_ab=_aa+"type",_ac=_aa+"props",_ad=_aa+"attach-point",_ae=_aa+"attach-event",_af=_aa+"id",_b0=_aa+"mixins";var _b1={};_82.forEach([_ac,_ab,_a9,_af,"jsId",_ad,_ae,"dojoAttachPoint","dojoAttachEvent","class","style",_b0],function(_b2){_b1[_b2.toLowerCase()]=_b2.replace(_a7.scope,"dojo");});function _b3(_b4,_b5){return _b4.createSubclass&&_b4.createSubclass(_b5)||_b4.extend.apply(_b4,_b5);};_82.forEach(_a5,function(obj){if(!obj){return;}var _b6=obj.node,_b7=obj.type,_b8=_b6.getAttribute(_b0),_b9;if(_b8){var map=_91[_b7];_b8=_b8.replace(/ /g,"");_b9=map&&map[_b8];if(!_b9){_b9=_92(_b7);_b9=_91[_b7][_b8]=_b3(_b9,_82.map(_b8.split(","),_92));}}else{_b9=_92(_b7);}var _ba=_b9&&_b9.prototype;var _bb={};if(_a7.defaults){_81.mixin(_bb,_a7.defaults);}if(obj.inherited){_81.mixin(_bb,obj.inherited);}var _bc;if(has("dom-attributes-explicit")){_bc=_b6.attributes;}else{if(has("dom-attributes-specified-flag")){_bc=_82.filter(_b6.attributes,function(a){return a.specified;});}else{var _bd=/^input$|^img$/i.test(_b6.nodeName)?_b6:_b6.cloneNode(false),_be=_bd.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,"");_bc=_82.map(_be.split(/\s+/),function(_bf){var _c0=_bf.toLowerCase();return {name:_bf,value:(_b6.nodeName=="LI"&&_bf=="value")||_c0=="enctype"?_b6.getAttribute(_c0):_b6.getAttributeNode(_c0).value};});}}var i=0,_c1;while(_c1=_bc[i++]){var _c2=_c1.name,_c3=_c2.toLowerCase(),_c4=_c1.value;if(_c3 in _b1){switch(_b1[_c3]){case "data-dojo-props":var _c5=_c4;break;case "data-dojo-id":case "jsId":var _c6=_c4;break;case "data-dojo-attach-point":case "dojoAttachPoint":_bb.dojoAttachPoint=_c4;break;case "data-dojo-attach-event":case "dojoAttachEvent":_bb.dojoAttachEvent=_c4;break;case "class":_bb["class"]=_b6.className;break;case "style":_bb["style"]=_b6.style&&_b6.style.cssText;break;}}else{if(!(_c2 in _ba)){var map=(_8d[_b7]||(_8d[_b7]=_8e(_ba)));_c2=map[_c3]||_c2;}if(_c2 in _ba){switch(typeof _ba[_c2]){case "string":_bb[_c2]=_c4;break;case "number":_bb[_c2]=_c4.length?Number(_c4):NaN;break;case "boolean":_bb[_c2]=_c4.toLowerCase()!="false";break;case "function":if(_c4===""||_c4.search(/[^\w\.]+/i)!=-1){_bb[_c2]=new Function(_c4);}else{_bb[_c2]=_81.getObject(_c4,false)||new Function(_c4);}break;default:var _c7=_ba[_c2];_bb[_c2]=(_c7&&"length" in _c7)?(_c4?_c4.split(/\s*,\s*/):[]):(_c7 instanceof Date)?(_c4==""?new Date(""):_c4=="now"?new Date():_89.fromISOString(_c4)):(_c7 instanceof _80._Url)?(_80.baseUrl+_c4):_87.fromJson(_c4);}}else{_bb[_c2]=_c4;}}}if(_c5){try{_c5=_87.fromJson.call(_a7.propsThis,"{"+_c5+"}");_81.mixin(_bb,_c5);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_c5+"'");}}_81.mixin(_bb,_a6);var _c8=obj.scripts||(_b9&&(_b9._noScript||_ba._noScript)?[]:_8a("> script[type^='dojo/']",_b6));var _c9=[],_ca=[],_cb=[],on=[];if(_c8){for(i=0;i<_c8.length;i++){var _cc=_c8[i];_b6.removeChild(_cc);var _cd=(_cc.getAttribute(_aa+"event")||_cc.getAttribute("event")),_ce=_cc.getAttribute(_aa+"prop"),_cf=_cc.getAttribute("type"),nf=this._functionFromScript(_cc,_aa);if(_cd){if(_cf=="dojo/connect"){_c9.push({event:_cd,func:nf});}else{if(_cf=="dojo/on"){on.push({event:_cd,func:nf});}else{_bb[_cd]=nf;}}}else{if(_cf=="dojo/watch"){_cb.push({prop:_ce,func:nf});}else{_ca.push(nf);}}}}var _d0=_b9.markupFactory||_ba.markupFactory;var _d1=_d0?_d0(_bb,_b6,_b9):new _b9(_bb,_b6);_a8.push(_d1);if(_c6){_81.setObject(_c6,_d1);}for(i=0;i<_c9.length;i++){_88.after(_d1,_c9[i].event,_80.hitch(_d1,_c9[i].func),true);}for(i=0;i<_ca.length;i++){_ca[i].call(_d1);}for(i=0;i<_cb.length;i++){_d1.watch(_cb[i].prop,_cb[i].func);}for(i=0;i= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojo/i18n":function(){define("dojo/i18n",["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json"],function(_1,_2,_3,_4,_5,_6,_7,_8){_3.add("dojo-preload-i18n-Api",1);true||_3.add("dojo-v1x-i18n-Api",1);var _9=_1.i18n={},_a=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_b=function(_c,_d,_e,_f){for(var _10=[_e+_f],_11=_d.split("-"),_12="",i=0;i<_11.length;i++){_12+=(_12?"-":"")+_11[i];if(!_c||_c[_12]){_10.push(_e+_12+"/"+_f);}}return _10;},_13={},_14=_1.getL10nName=function(_15,_16,_17){_17=_17?_17.toLowerCase():_1.locale;_15="dojo/i18n!"+_15.replace(/\./g,"/");_16=_16.replace(/\./g,"/");return (/root/i.test(_17))?(_15+"/nls/"+_16):(_15+"/nls/"+_17+"/"+_16);},_18=function(_19,_1a,_1b,_1c,_1d,_1e){_19([_1a],function(_1f){var _20=_6.clone(_1f.root||_1f.ROOT),_21=_b(!_1f._v1x&&_1f,_1d,_1b,_1c);_19(_21,function(){for(var i=1;i<_21.length;i++){_20=_6.mixin(_6.clone(_20),arguments[i]);}var _22=_1a+"/"+_1d;_13[_22]=_20;_1e();});});},_23=function(id,_24){return /^\./.test(id)?_24(id):id;},_25=function(_26){var _27=_5.extraLocale||[];_27=_6.isArray(_27)?_27:[_27];_27.push(_26);return _27;},_28=function(id,_29,_2a){if(_3("dojo-preload-i18n-Api")){var _2b=id.split("*"),_2c=_2b[1]=="preload";if(_2c){if(!_13[id]){_13[id]=1;_2d(_2b[2],_8.parse(_2b[3]),1);}_2a(1);}if(_2c||_2e(id,_29,_2a)){return;}}var _2f=_a.exec(id),_30=_2f[1]+"/",_31=_2f[5]||_2f[4],_32=_30+_31,_33=(_2f[5]&&_2f[4]),_34=_33||_1.locale,_35=_32+"/"+_34,_36=_33?[_34]:_25(_34),_37=_36.length,_38=function(){if(!--_37){_2a(_6.delegate(_13[_35]));}};_4.forEach(_36,function(_39){var _3a=_32+"/"+_39;if(_3("dojo-preload-i18n-Api")){_3b(_3a);}if(!_13[_3a]){_18(_29,_32,_30,_31,_39,_38);}else{_38();}});};if(_3("dojo-unit-tests")){var _3c=_9.unitTests=[];}if(_3("dojo-preload-i18n-Api")||1){var _3d=_9.normalizeLocale=function(_3e){var _3f=_3e?_3e.toLowerCase():_1.locale;return _3f=="root"?"ROOT":_3f;},_40=function(mid){return (1&&1)?_2.isXdUrl(_2.toUrl(mid+".js")):true;},_41=0,_42=[],_2d=_9._preloadLocalizations=function(_43,_44,_45){function _46(_47,_48){var _49=_47.split("-");while(_49.length){if(_48(_49.join("-"))){return true;}_49.pop();}return _48("ROOT");};function _4a(_4b){_4b=_3d(_4b);_46(_4b,function(loc){if(_4.indexOf(_44,loc)>=0){var mid=_43.replace(/\./g,"/")+"_"+loc;_41++;(_40(mid)||_45?_2:_50)([mid],function(_4c){for(var p in _4c){_13[p+"/"+loc]=_4c[p];}--_41;while(!_41&&_42.length){_28.apply(null,_42.shift());}});return true;}return false;});};_4a();_4.forEach(_1.config.extraLocale,_4a);},_2e=function(id,_4d,_4e){if(_41){_42.push([id,_4d,_4e]);}return _41;};}if(1){var _4f=new Function("__bundle","__checkForLegacyModules","__mid","var define = function(){define.called = 1;},"+" require = function(){define.called = 1;};"+"try{"+"define.called = 0;"+"eval(__bundle);"+"if(define.called==1)"+"return 1;"+"if((__checkForLegacyModules = __checkForLegacyModules(__mid)))"+"return __checkForLegacyModules;"+"}catch(e){}"+"try{"+"return eval('('+__bundle+')');"+"}catch(e){"+"return e;"+"}"),_50=function(_51,_52){var _53=[];_4.forEach(_51,function(mid){var url=_2.toUrl(mid+".js");function _28(_54){var _55=_4f(_54,_3b,mid);if(_55===1){_2([mid],function(_56){_53.push(_13[url]=_56);});}else{if(_55 instanceof Error){console.error("failed to evaluate i18n bundle; url="+url,_55);_55={};}_53.push(_13[url]=(/nls\/[^\/]+\/[^\/]+$/.test(url)?_55:{root:_55,_v1x:1}));}};if(_13[url]){_53.push(_13[url]);}else{var _57=_2.syncLoadNls(mid);if(!_57){_57=_3b(mid.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1"));}if(_57){_53.push(_57);}else{if(!_7){try{_2.getText(url,true,_28);}catch(e){_53.push(_13[url]={});}}else{_7.get({url:url,sync:true,load:_28,error:function(){_53.push(_13[url]={});}});}}}});_52&&_52.apply(null,_53);},_3b=function(_58){for(var _59,_5a=_58.split("/"),_5b=_1.global[_5a[0]],i=1;_5b&&i<_5a.length-1;_5b=_5b[_5a[i++]]){}if(_5b){_59=_5b[_5a[i]];if(!_59){_59=_5b[_5a[i].replace(/-/g,"_")];}if(_59){_13[_58]=_59;}}return _59;};_9.getLocalization=function(_5c,_5d,_5e){var _5f,_60=_14(_5c,_5d,_5e).substring(10);_28(_60,(!_40(_60)?_50:_2),function(_61){_5f=_61;});return _5f;};if(_3("dojo-unit-tests")){_3c.push(function(doh){doh.register("tests.i18n.unit",function(t){var _62;_62=_4f("{prop:1}");t.is({prop:1},_62);t.is(undefined,_62[1]);_62=_4f("({prop:1})");t.is({prop:1},_62);t.is(undefined,_62[1]);_62=_4f("{'prop-x':1}");t.is({"prop-x":1},_62);t.is(undefined,_62[1]);_62=_4f("({'prop-x':1})");t.is({"prop-x":1},_62);t.is(undefined,_62[1]);_62=_4f("define({'prop-x':1})");t.is(1,_62);_62=_4f("this is total nonsense and should throw an error");t.is(_62 instanceof Error,true);});});}}return _6.mixin(_9,{dynamic:true,normalize:_23,load:_28,cache:_13});});},"dojo/string":function(){define("dojo/string",["./_base/kernel","./_base/lang"],function(_63,_64){_64.getObject("string",true,_63);_63.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("");};_63.string.pad=function(_65,_66,ch,end){if(!ch){ch="0";}var out=String(_65),pad=_63.string.rep(ch,Math.ceil((_66-out.length)/ch.length));return end?out+pad:pad+out;};_63.string.substitute=function(_67,map,_68,_69){_69=_69||_63.global;_68=_68?_64.hitch(_69,_68):function(v){return v;};return _67.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_6a,key,_6b){var _6c=_64.getObject(key,false,map);if(_6b){_6c=_64.getObject(_6b,false,_69).call(_69,_6c,key);}return _68(_6c,key).toString();});};_63.string.trim=String.prototype.trim?_64.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};return _63.string;});},"dojo/date":function(){define("dojo/date",["./_base/kernel","./_base/lang"],function(_6d,_6e){_6e.getObject("date",true,_6d);_6d.date.getDaysInMonth=function(_6f){var _70=_6f.getMonth();var _71=[31,28,31,30,31,30,31,31,30,31,30,31];if(_70==1&&_6d.date.isLeapYear(_6f)){return 29;}return _71[_70];};_6d.date.isLeapYear=function(_72){var _73=_72.getFullYear();return !(_73%400)||(!(_73%4)&&!!(_73%100));};_6d.date.getTimezoneName=function(_74){var str=_74.toString();var tz="";var _75;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_75=str.match(pat))){tz=_75[1];}else{str=_74.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_75=str.match(pat))){tz=_75[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};_6d.date.compare=function(_76,_77,_78){_76=new Date(+_76);_77=new Date(+(_77||new Date()));if(_78=="date"){_76.setHours(0,0,0,0);_77.setHours(0,0,0,0);}else{if(_78=="time"){_76.setFullYear(0,0,0);_77.setFullYear(0,0,0);}}if(_76>_77){return 1;}if(_76<_77){return -1;}return 0;};_6d.date.add=function(_79,_7a,_7b){var sum=new Date(+_79);var _7c=false;var _7d="Date";switch(_7a){case "day":break;case "weekday":var _7e,_7f;var mod=_7b%5;if(!mod){_7e=(_7b>0)?5:-5;_7f=(_7b>0)?((_7b-5)/5):((_7b+5)/5);}else{_7e=mod;_7f=parseInt(_7b/5);}var _80=_79.getDay();var adj=0;if(_80==6&&_7b>0){adj=1;}else{if(_80==0&&_7b<0){adj=-1;}}var _81=_80+_7e;if(_81==0||_81==6){adj=(_7b>0)?2:-2;}_7b=(7*_7f)+_7e+adj;break;case "year":_7d="FullYear";_7c=true;break;case "week":_7b*=7;break;case "quarter":_7b*=3;case "month":_7c=true;_7d="Month";break;default:_7d="UTC"+_7a.charAt(0).toUpperCase()+_7a.substring(1)+"s";}if(_7d){sum["set"+_7d](sum["get"+_7d]()+_7b);}if(_7c&&(sum.getDate()<_79.getDate())){sum.setDate(0);}return sum;};_6d.date.difference=function(_82,_83,_84){_83=_83||new Date();_84=_84||"day";var _85=_83.getFullYear()-_82.getFullYear();var _86=1;switch(_84){case "quarter":var m1=_82.getMonth();var m2=_83.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_85*4);_86=q2-q1;break;case "weekday":var _87=Math.round(_6d.date.difference(_82,_83,"day"));var _88=parseInt(_6d.date.difference(_82,_83,"week"));var mod=_87%7;if(mod==0){_87=_88*5;}else{var adj=0;var _89=_82.getDay();var _8a=_83.getDay();_88=parseInt(_87/7);mod=_87%7;var _8b=new Date(_82);_8b.setDate(_8b.getDate()+(_88*7));var _8c=_8b.getDay();if(_87>0){switch(true){case _89==6:adj=-1;break;case _89==0:adj=0;break;case _8a==6:adj=-1;break;case _8a==0:adj=-2;break;case (_8c+mod)>5:adj=-2;}}else{if(_87<0){switch(true){case _89==6:adj=0;break;case _89==0:adj=1;break;case _8a==6:adj=2;break;case _8a==0:adj=1;break;case (_8c+mod)<0:adj=2;}}}_87+=adj;_87-=(_88*2);}_86=_87;break;case "year":_86=_85;break;case "month":_86=(_83.getMonth()-_82.getMonth())+(_85*12);break;case "week":_86=parseInt(_6d.date.difference(_82,_83,"day")/7);break;case "day":_86/=24;case "hour":_86/=60;case "minute":_86/=60;case "second":_86/=1000;case "millisecond":_86*=_83.getTime()-_82.getTime();}return Math.round(_86);};return _6d.date;});},"dojo/cldr/supplemental":function(){define("dojo/cldr/supplemental",["../_base/kernel","../_base/lang","../i18n"],function(_8d,_8e){_8e.getObject("cldr.supplemental",true,_8d);_8d.cldr.supplemental.getFirstDayOfWeek=function(_8f){var _90={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0};var _91=_8d.cldr.supplemental._region(_8f);var dow=_90[_91];return (dow===undefined)?1:dow;};_8d.cldr.supplemental._region=function(_92){_92=_8d.i18n.normalizeLocale(_92);var _93=_92.split("-");var _94=_93[1];if(!_94){_94={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[_93[0]];}else{if(_94.length==4){_94=_93[2];}}return _94;};_8d.cldr.supplemental.getWeekend=function(_95){var _96={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5};var _97={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6};var _98=_8d.cldr.supplemental._region(_95);var _99=_96[_98];var end=_97[_98];if(_99===undefined){_99=6;}if(end===undefined){end=0;}return {start:_99,end:end};};return _8d.cldr.supplemental;});},"dojo/number":function(){define("dojo/number",["./_base/kernel","./_base/lang","./i18n","./i18n!./cldr/nls/number","./string","./regexp"],function(_9a,_9b,_9c,_9d,_9e,_9f){_9b.getObject("number",true,_9a);_9a.number.format=function(_a0,_a1){_a1=_9b.mixin({},_a1||{});var _a2=_9c.normalizeLocale(_a1.locale),_a3=_9c.getLocalization("dojo.cldr","number",_a2);_a1.customs=_a3;var _a4=_a1.pattern||_a3[(_a1.type||"decimal")+"Format"];if(isNaN(_a0)||Math.abs(_a0)==Infinity){return null;}return _9a.number._applyPattern(_a0,_a4,_a1);};_9a.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;_9a.number._applyPattern=function(_a5,_a6,_a7){_a7=_a7||{};var _a8=_a7.customs.group,_a9=_a7.customs.decimal,_aa=_a6.split(";"),_ab=_aa[0];_a6=_aa[(_a5<0)?1:0]||("-"+_ab);if(_a6.indexOf("%")!=-1){_a5*=100;}else{if(_a6.indexOf("‰")!=-1){_a5*=1000;}else{if(_a6.indexOf("¤")!=-1){_a8=_a7.customs.currencyGroup||_a8;_a9=_a7.customs.currencyDecimal||_a9;_a6=_a6.replace(/\u00a4{1,3}/,function(_ac){var _ad=["symbol","currency","displayName"][_ac.length-1];return _a7[_ad]||_a7.currency||"";});}else{if(_a6.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _ae=_9a.number._numberPatternRE;var _af=_ab.match(_ae);if(!_af){throw new Error("unable to find a number expression in pattern: "+_a6);}if(_a7.fractional===false){_a7.places=0;}return _a6.replace(_ae,_9a.number._formatAbsolute(_a5,_af[0],{decimal:_a9,group:_a8,places:_a7.places,round:_a7.round}));};_9a.number.round=function(_b0,_b1,_b2){var _b3=10/(_b2||10);return (_b3*+_b0).toFixed(_b1)/_b3;};if((0.9).toFixed()==0){var _b4=_9a.number.round;_9a.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d){d=0;}else{a/=d;if(a<0.5||a>=0.95){d=0;}}return _b4(v,p,m)+(v>0?d:-d);};}_9a.number._formatAbsolute=function(_b5,_b6,_b7){_b7=_b7||{};if(_b7.places===true){_b7.places=0;}if(_b7.places===Infinity){_b7.places=6;}var _b8=_b6.split("."),_b9=typeof _b7.places=="string"&&_b7.places.indexOf(","),_ba=_b7.places;if(_b9){_ba=_b7.places.substring(_b9+1);}else{if(!(_ba>=0)){_ba=(_b8[1]||[]).length;}}if(!(_b7.round<0)){_b5=_9a.number.round(_b5,_ba,_b7.round);}var _bb=String(Math.abs(_b5)).split("."),_bc=_bb[1]||"";if(_b8[1]||_b7.places){if(_b9){_b7.places=_b7.places.substring(0,_b9);}var pad=_b7.places!==undefined?_b7.places:(_b8[1]&&_b8[1].lastIndexOf("0")+1);if(pad>_bc.length){_bb[1]=_9e.pad(_bc,pad,"0",true);}if(_ba<_bc.length){_bb[1]=_bc.substr(0,_ba);}}else{if(_bb[1]){_bb.pop();}}var _bd=_b8[0].replace(",","");pad=_bd.indexOf("0");if(pad!=-1){pad=_bd.length-pad;if(pad>_bb[0].length){_bb[0]=_9e.pad(_bb[0],pad);}if(_bd.indexOf("#")==-1){_bb[0]=_bb[0].substr(_bb[0].length-pad);}}var _be=_b8[0].lastIndexOf(","),_bf,_c0;if(_be!=-1){_bf=_b8[0].length-_be-1;var _c1=_b8[0].substr(0,_be);_be=_c1.lastIndexOf(",");if(_be!=-1){_c0=_c1.length-_be-1;}}var _c2=[];for(var _c3=_bb[0];_c3;){var off=_c3.length-_bf;_c2.push((off>0)?_c3.substr(off):_c3);_c3=(off>0)?_c3.slice(0,off):"";if(_c0){_bf=_c0;delete _c0;}}_bb[0]=_c2.reverse().join(_b7.group||",");return _bb.join(_b7.decimal||".");};_9a.number.regexp=function(_c4){return _9a.number._parseInfo(_c4).regexp;};_9a.number._parseInfo=function(_c5){_c5=_c5||{};var _c6=_9c.normalizeLocale(_c5.locale),_c7=_9c.getLocalization("dojo.cldr","number",_c6),_c8=_c5.pattern||_c7[(_c5.type||"decimal")+"Format"],_c9=_c7.group,_ca=_c7.decimal,_cb=1;if(_c8.indexOf("%")!=-1){_cb/=100;}else{if(_c8.indexOf("‰")!=-1){_cb/=1000;}else{var _cc=_c8.indexOf("¤")!=-1;if(_cc){_c9=_c7.currencyGroup||_c9;_ca=_c7.currencyDecimal||_ca;}}}var _cd=_c8.split(";");if(_cd.length==1){_cd.push("-"+_cd[0]);}var re=_9f.buildGroupRE(_cd,function(_ce){_ce="(?:"+_9f.escapeString(_ce,".")+")";return _ce.replace(_9a.number._numberPatternRE,function(_cf){var _d0={signed:false,separator:_c5.strict?_c9:[_c9,""],fractional:_c5.fractional,decimal:_ca,exponent:false},_d1=_cf.split("."),_d2=_c5.places;if(_d1.length==1&&_cb!=1){_d1[1]="###";}if(_d1.length==1||_d2===0){_d0.fractional=false;}else{if(_d2===undefined){_d2=_c5.pattern?_d1[1].lastIndexOf("0")+1:Infinity;}if(_d2&&_c5.fractional==undefined){_d0.fractional=true;}if(!_c5.places&&(_d2<_d1[1].length)){_d2+=","+_d1[1].length;}_d0.places=_d2;}var _d3=_d1[0].split(",");if(_d3.length>1){_d0.groupSize=_d3.pop().length;if(_d3.length>1){_d0.groupSize2=_d3.pop().length;}}return "("+_9a.number._realNumberRegexp(_d0)+")";});},true);if(_cc){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_d4,_d5,_d6,_d7){var _d8=["symbol","currency","displayName"][_d6.length-1],_d9=_9f.escapeString(_c5[_d8]||_c5.currency||"");_d5=_d5?"[\\s\\xa0]":"";_d7=_d7?"[\\s\\xa0]":"";if(!_c5.strict){if(_d5){_d5+="*";}if(_d7){_d7+="*";}return "(?:"+_d5+_d9+_d7+")?";}return _d5+_d9+_d7;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_c9,decimal:_ca,factor:_cb};};_9a.number.parse=function(_da,_db){var _dc=_9a.number._parseInfo(_db),_dd=(new RegExp("^"+_dc.regexp+"$")).exec(_da);if(!_dd){return NaN;}var _de=_dd[1];if(!_dd[1]){if(!_dd[2]){return NaN;}_de=_dd[2];_dc.factor*=-1;}_de=_de.replace(new RegExp("["+_dc.group+"\\s\\xa0"+"]","g"),"").replace(_dc.decimal,".");return _de*_dc.factor;};_9a.number._realNumberRegexp=function(_df){_df=_df||{};if(!("places" in _df)){_df.places=Infinity;}if(typeof _df.decimal!="string"){_df.decimal=".";}if(!("fractional" in _df)||/^0/.test(_df.places)){_df.fractional=[true,false];}if(!("exponent" in _df)){_df.exponent=[true,false];}if(!("eSigned" in _df)){_df.eSigned=[true,false];}var _e0=_9a.number._integerRegexp(_df),_e1=_9f.buildGroupRE(_df.fractional,function(q){var re="";if(q&&(_df.places!==0)){re="\\"+_df.decimal;if(_df.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_df.places+"}";}}return re;},true);var _e2=_9f.buildGroupRE(_df.exponent,function(q){if(q){return "([eE]"+_9a.number._integerRegexp({signed:_df.eSigned})+")";}return "";});var _e3=_e0+_e1;if(_e1){_e3="(?:(?:"+_e3+")|(?:"+_e1+"))";}return _e3+_e2;};_9a.number._integerRegexp=function(_e4){_e4=_e4||{};if(!("signed" in _e4)){_e4.signed=[true,false];}if(!("separator" in _e4)){_e4.separator="";}else{if(!("groupSize" in _e4)){_e4.groupSize=3;}}var _e5=_9f.buildGroupRE(_e4.signed,function(q){return q?"[-+]":"";},true);var _e6=_9f.buildGroupRE(_e4.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=_9f.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_e4.groupSize,_e7=_e4.groupSize2;if(_e7){var _e8="(?:0|[1-9]\\d{0,"+(_e7-1)+"}(?:["+sep+"]\\d{"+_e7+"})*["+sep+"]\\d{"+grp+"})";return ((grp-_e7)>0)?"(?:"+_e8+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_e8;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _e5+_e6;};return _9a.number;});},"dojo/date/stamp":function(){define("dojo/date/stamp",["../_base/kernel","../_base/lang","../_base/array"],function(_e9,_ea,_eb){_ea.getObject("date.stamp",true,_e9);_e9.date.stamp.fromISOString=function(_ec,_ed){if(!_e9.date.stamp._isoRegExp){_e9.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _ee=_e9.date.stamp._isoRegExp.exec(_ec),_ef=null;if(_ee){_ee.shift();if(_ee[1]){_ee[1]--;}if(_ee[6]){_ee[6]*=1000;}if(_ed){_ed=new Date(_ed);_eb.forEach(_eb.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_f0){return _ed["get"+_f0]();}),function(_f1,_f2){_ee[_f2]=_ee[_f2]||_f1;});}_ef=new Date(_ee[0]||1970,_ee[1]||0,_ee[2]||1,_ee[3]||0,_ee[4]||0,_ee[5]||0,_ee[6]||0);if(_ee[0]<100){_ef.setFullYear(_ee[0]||1970);}var _f3=0,_f4=_ee[7]&&_ee[7].charAt(0);if(_f4!="Z"){_f3=((_ee[8]||0)*60)+(Number(_ee[9])||0);if(_f4!="-"){_f3*=-1;}}if(_f4){_f3-=_ef.getTimezoneOffset();}if(_f3){_ef.setTime(_ef.getTime()+_f3*60000);}}return _ef;};_e9.date.stamp.toISOString=function(_f5,_f6){var _f7=function(n){return (n<10)?"0"+n:n;};_f6=_f6||{};var _f8=[],_f9=_f6.zulu?"getUTC":"get",_fa="";if(_f6.selector!="time"){var _fb=_f5[_f9+"FullYear"]();_fa=["0000".substr((_fb+"").length)+_fb,_f7(_f5[_f9+"Month"]()+1),_f7(_f5[_f9+"Date"]())].join("-");}_f8.push(_fa);if(_f6.selector!="date"){var _fc=[_f7(_f5[_f9+"Hours"]()),_f7(_f5[_f9+"Minutes"]()),_f7(_f5[_f9+"Seconds"]())].join(":");var _fd=_f5[_f9+"Milliseconds"]();if(_f6.milliseconds){_fc+="."+(_fd<100?"0":"")+_f7(_fd);}if(_f6.zulu){_fc+="Z";}else{if(_f6.selector!="time"){var _fe=_f5.getTimezoneOffset();var _ff=Math.abs(_fe);_fc+=(_fe>0?"-":"+")+_f7(Math.floor(_ff/60))+":"+_f7(_ff%60);}}_f8.push(_fc);}return _f8.join("T");};return _e9.date.stamp;});},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","./_base/xhr"],function(dojo,_100,has,xhr){var _101;if(1){_101=function(url,sync,load){xhr("GET",{url:url,sync:!!sync,load:load});};}else{if(_100.getText){_101=_100.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _102={},_103=function(text){if(text){text=text.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _104=text.match(/]*>\s*([\s\S]+)\s*<\/body>/im);if(_104){text=_104[1];}}else{text="";}return text;},_105={},_106={},_107={dynamic:true,normalize:function(id,_108){var _109=id.split("!"),url=_109[0];return (/^\./.test(url)?_108(url):url)+(_109[1]?"!"+_109[1]:"");},load:function(id,_10a,load){var _10b=id.split("!"),_10c=_10b.length>1,_10d=_10b[0],url=_10a.toUrl(_10b[0]),text=_105,_10e=function(text){load(_10c?_103(text):text);};if(_10d in _102){text=_102[_10d];}else{if(url in _10a.cache){text=_10a.cache[url];}else{if(url in _102){text=_102[url];}}}if(text===_105){if(_106[url]){_106[url].push(_10e);}else{var _10f=_106[url]=[_10e];_101(url,!_10a.async,function(text){_102[_10d]=_102[url]=text;for(var i=0;i<_10f.length;){_10f[i++](text);}delete _106[url];});}}else{_10e(text);}}};dojo.cache=function(_110,url,_111){var key;if(typeof _110=="string"){if(/\//.test(_110)){key=_110;_111=url;}else{key=_100.toUrl(_110.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_110+"";_111=url;}var val=(_111!=undefined&&typeof _111!="string")?_111.value:_111,_112=_111&&_111.sanitize;if(typeof val=="string"){_102[key]=val;return _112?_103(val):val;}else{if(val===null){delete _102[key];return null;}else{if(!(key in _102)){_101(key,true,function(text){_102[key]=text;});}return _112?_103(_102[key]):_102[key];}}};return _107;});},"dojo/colors":function(){define("dojo/colors",["./_base/kernel","./_base/lang","./_base/Color","./_base/array"],function(dojo,lang,_113,_114){var _115=lang.getObject("dojo.colors",true);var _116=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=_113.fromRgb=function(_117,obj){var m=_117.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=_114.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return _113.fromArray(a,obj);}return _113.fromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_116(m1,m2,H+1/3)*256,_116(m1,m2,H)*256,_116(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return _113.fromArray(a,obj);}}return null;};var _118=function(c,low,high){c=Number(c);return isNaN(c)?high:chigh?high:c;};_113.prototype.sanitize=function(){var t=this;t.r=Math.round(_118(t.r,0,255));t.g=Math.round(_118(t.g,0,255));t.b=Math.round(_118(t.b,0,255));t.a=_118(t.a,0,1);return this;};_115.makeGrey=_113.makeGrey=function(g,a){return _113.fromArray([g,g,g,a]);};lang.mixin(_113.named,{"aliceblue":[240,248,255],"antiquewhite":[250,235,215],"aquamarine":[127,255,212],"azure":[240,255,255],"beige":[245,245,220],"bisque":[255,228,196],"blanchedalmond":[255,235,205],"blueviolet":[138,43,226],"brown":[165,42,42],"burlywood":[222,184,135],"cadetblue":[95,158,160],"chartreuse":[127,255,0],"chocolate":[210,105,30],"coral":[255,127,80],"cornflowerblue":[100,149,237],"cornsilk":[255,248,220],"crimson":[220,20,60],"cyan":[0,255,255],"darkblue":[0,0,139],"darkcyan":[0,139,139],"darkgoldenrod":[184,134,11],"darkgray":[169,169,169],"darkgreen":[0,100,0],"darkgrey":[169,169,169],"darkkhaki":[189,183,107],"darkmagenta":[139,0,139],"darkolivegreen":[85,107,47],"darkorange":[255,140,0],"darkorchid":[153,50,204],"darkred":[139,0,0],"darksalmon":[233,150,122],"darkseagreen":[143,188,143],"darkslateblue":[72,61,139],"darkslategray":[47,79,79],"darkslategrey":[47,79,79],"darkturquoise":[0,206,209],"darkviolet":[148,0,211],"deeppink":[255,20,147],"deepskyblue":[0,191,255],"dimgray":[105,105,105],"dimgrey":[105,105,105],"dodgerblue":[30,144,255],"firebrick":[178,34,34],"floralwhite":[255,250,240],"forestgreen":[34,139,34],"gainsboro":[220,220,220],"ghostwhite":[248,248,255],"gold":[255,215,0],"goldenrod":[218,165,32],"greenyellow":[173,255,47],"grey":[128,128,128],"honeydew":[240,255,240],"hotpink":[255,105,180],"indianred":[205,92,92],"indigo":[75,0,130],"ivory":[255,255,240],"khaki":[240,230,140],"lavender":[230,230,250],"lavenderblush":[255,240,245],"lawngreen":[124,252,0],"lemonchiffon":[255,250,205],"lightblue":[173,216,230],"lightcoral":[240,128,128],"lightcyan":[224,255,255],"lightgoldenrodyellow":[250,250,210],"lightgray":[211,211,211],"lightgreen":[144,238,144],"lightgrey":[211,211,211],"lightpink":[255,182,193],"lightsalmon":[255,160,122],"lightseagreen":[32,178,170],"lightskyblue":[135,206,250],"lightslategray":[119,136,153],"lightslategrey":[119,136,153],"lightsteelblue":[176,196,222],"lightyellow":[255,255,224],"limegreen":[50,205,50],"linen":[250,240,230],"magenta":[255,0,255],"mediumaquamarine":[102,205,170],"mediumblue":[0,0,205],"mediumorchid":[186,85,211],"mediumpurple":[147,112,219],"mediumseagreen":[60,179,113],"mediumslateblue":[123,104,238],"mediumspringgreen":[0,250,154],"mediumturquoise":[72,209,204],"mediumvioletred":[199,21,133],"midnightblue":[25,25,112],"mintcream":[245,255,250],"mistyrose":[255,228,225],"moccasin":[255,228,181],"navajowhite":[255,222,173],"oldlace":[253,245,230],"olivedrab":[107,142,35],"orange":[255,165,0],"orangered":[255,69,0],"orchid":[218,112,214],"palegoldenrod":[238,232,170],"palegreen":[152,251,152],"paleturquoise":[175,238,238],"palevioletred":[219,112,147],"papayawhip":[255,239,213],"peachpuff":[255,218,185],"peru":[205,133,63],"pink":[255,192,203],"plum":[221,160,221],"powderblue":[176,224,230],"rosybrown":[188,143,143],"royalblue":[65,105,225],"saddlebrown":[139,69,19],"salmon":[250,128,114],"sandybrown":[244,164,96],"seagreen":[46,139,87],"seashell":[255,245,238],"sienna":[160,82,45],"skyblue":[135,206,235],"slateblue":[106,90,205],"slategray":[112,128,144],"slategrey":[112,128,144],"snow":[255,250,250],"springgreen":[0,255,127],"steelblue":[70,130,180],"tan":[210,180,140],"thistle":[216,191,216],"tomato":[255,99,71],"turquoise":[64,224,208],"violet":[238,130,238],"wheat":[245,222,179],"whitesmoke":[245,245,245],"yellowgreen":[154,205,50]});return _113;});},"dojo/regexp":function(){define("dojo/regexp",["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_119){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_119&&_119.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_11a){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i2){var _150=_148["months-format-"+_14a[l-3]].concat();if(!_145.strict){v=v.replace(".","").toLowerCase();_150=dojo.map(_150,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_150,v);if(v==-1){return false;}}else{v--;}_14b[1]=v;break;case "E":case "e":var days=_148["days-format-"+_14a[l-3]].concat();if(!_145.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_14b[1]=0;case "d":_14b[2]=v;break;case "a":var am=_145.am||_148["dayPeriods-format-wide-am"],pm=_145.pm||_148["dayPeriods-format-wide-pm"];if(!_145.strict){var _151=/\./g;v=v.replace(_151,"").toLowerCase();am=am.replace(_151,"").toLowerCase();pm=pm.replace(_151,"").toLowerCase();}if(_145.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_14b[3]=v;break;case "m":_14b[4]=v;break;case "s":_14b[5]=v;break;case "S":_14b[6]=v;}return true;});var _152=+_14b[3];if(amPm==="p"&&_152<12){_14b[3]=_152+12;}else{if(amPm==="a"&&_152==12){_14b[3]=0;}}var _153=new Date(_14b[0],_14b[1],_14b[2],_14b[3],_14b[4],_14b[5],_14b[6]);if(_145.strict){_153.setFullYear(_14b[0]);}var _154=_147.join(""),_155=_154.indexOf("d")!=-1,_156=_154.indexOf("M")!=-1;if(!_14c||(_156&&_153.getMonth()>_14b[1])||(_155&&_153.getDate()>_14b[2])){return null;}if((_156&&_153.getMonth()<_14b[1])||(_155&&_153.getDate()<_14b[2])){_153=date.add(_153,"hour",1);}return _153;};function _136(_157,_158,_159,_15a){var _15b=function(x){return x;};_158=_158||_15b;_159=_159||_15b;_15a=_15a||_15b;var _15c=_157.match(/(''|[^'])+/g),_15d=_157.charAt(0)=="'";dojo.forEach(_15c,function(_15e,i){if(!_15e){_15c[i]="";}else{_15c[i]=(_15d?_159:_158)(_15e.replace(/''/g,"'"));_15d=!_15d;}});return _15a(_15c.join(""));};function _143(_15f,_160,_161,_162){_162=_11e.escapeString(_162);if(!_161.strict){_162=_162.replace(" a"," ?a");}return _162.replace(/([a-z])\1*/ig,function(_163){var s,c=_163.charAt(0),l=_163.length,p2="",p3="";if(_161.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":"1[0-2]|"+p2+"[1-9]";break;case "D":s="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p2+"[1-9][0-9]|"+p3+"[1-9]";break;case "d":s="3[01]|[12]\\d|"+p2+"[1-9]";break;case "w":s="[1-4][0-9]|5[0-3]|"+p2+"[1-9]";break;case "E":s="\\S+";break;case "h":s="1[0-2]|"+p2+"[1-9]";break;case "k":s="1[01]|"+p2+"\\d";break;case "H":s="1\\d|2[0-3]|"+p2+"\\d";break;case "K":s="1\\d|2[0-4]|"+p2+"[1-9]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_161.am||_160["dayPeriods-format-wide-am"],pm=_161.pm||_160["dayPeriods-format-wide-pm"];s=am+"|"+pm;if(!_161.strict){if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_15f){_15f.push(_163);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};var _164=[];dojo.date.locale.addCustomFormats=function(_165,_166){_164.push({pkg:_165,name:_166});};dojo.date.locale._getGregorianBundle=function(_167){var _168={};dojo.forEach(_164,function(desc){var _169=dojo.i18n.getLocalization(desc.pkg,desc.name,_167);_168=lang.mixin(_168,_169);},this);return _168;};dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_16a,_16b){var _16c,_16d=dojo.date.locale._getGregorianBundle(_16b),_16e=[item,_16a,type];if(_16a=="standAlone"){var key=_16e.join("-");_16c=_16d[key];if(_16c[0]==1){_16c=undefined;}}_16e[1]="format";return (_16c||_16d[_16e.join("-")]).concat();};dojo.date.locale.isWeekend=function(_16f,_170){var _171=cldr.getWeekend(_170),day=(_16f||new Date()).getDay();if(_171.end<_171.start){_171.end+=7;if(day<_171.start){day+=7;}}return day>=_171.start&&day<=_171.end;};dojo.date.locale._getDayOfYear=function(_172){return date.difference(new Date(_172.getFullYear(),0,1,_172.getHours()),_172)+1;};dojo.date.locale._getWeekOfYear=function(_173,_174){if(arguments.length==1){_174=0;}var _175=new Date(_173.getFullYear(),0,1).getDay(),adj=(_175-_174+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_173)+adj-1)/7);if(_175==_174){week++;}return week;};return dojo.date.locale;});},"dojo/cldr/monetary":function(){define("dojo/cldr/monetary",["../main"],function(dojo){dojo.getObject("cldr.monetary",true,dojo);dojo.cldr.monetary.getData=function(code){var _176={ADP:0,AFN:0,ALL:0,AMD:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,COP:0,CRC:0,DJF:0,ESP:0,GNF:0,GYD:0,HUF:0,IDR:0,IQD:0,IRR:3,ISK:0,ITL:0,JOD:3,JPY:0,KMF:0,KPW:0,KRW:0,KWD:3,LAK:0,LBP:0,LUF:0,LYD:3,MGA:0,MGF:0,MMK:0,MNT:0,MRO:0,MUR:0,OMR:3,PKR:0,PYG:0,RSD:0,RWF:0,SLL:0,SOS:0,STD:0,SYP:0,TMM:0,TND:3,TRL:0,TZS:0,UGX:0,UZS:0,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,YER:0,ZMK:0,ZWD:0};var _177={CHF:5};var _178=_176[code],_179=_177[code];if(typeof _178=="undefined"){_178=2;}if(typeof _179=="undefined"){_179=0;}return {places:_178,round:_179};};return dojo.cldr.monetary;});},"dojo/currency":function(){define("dojo/currency",["./_base/kernel","./_base/lang","./_base/array","./number","./i18n","./i18n!./cldr/nls/currency","./cldr/monetary"],function(dojo,lang,_17a,_17b,i18n,_17c,_17d){lang.getObject("currency",true,dojo);dojo.currency._mixInDefaults=function(_17e){_17e=_17e||{};_17e.type="currency";var _17f=i18n.getLocalization("dojo.cldr","currency",_17e.locale)||{};var iso=_17e.currency;var data=_17d.getData(iso);_17a.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_17f[iso+"_"+prop];});data.fractional=[true,false];return lang.mixin(data,_17e);};dojo.currency.format=function(_180,_181){return _17b.format(_180,dojo.currency._mixInDefaults(_181));};dojo.currency.regexp=function(_182){return _17b.regexp(dojo.currency._mixInDefaults(_182));};dojo.currency.parse=function(_183,_184){return _17b.parse(_183,dojo.currency._mixInDefaults(_184));};return dojo.currency;});},"*now":function(r){r(["dojo/i18n!*preload*dojo/nls/_fmt*[\"ar\",\"ca\",\"cs\",\"da\",\"de\",\"el\",\"en\",\"es\",\"fi\",\"fr\",\"he\",\"hr\",\"hu\",\"it\",\"ja\",\"kk\",\"ko\",\"nl\",\"no\",\"pl\",\"pt\",\"pt-br\",\"ro\",\"ru\",\"sk\",\"sl\",\"sv\",\"th\",\"tr\",\"uk\",\"zh\",\"zh-tw\",\"ROOT\"]"]);},"*noref":1}});define("dojo/_fmt",[],1);require(["dojo/currency","dojo/number","dojo/text","dojo/colors","dojo/date","dojo/date/locale","dojo/date/stamp"]);/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojo/fx":function(){define("dojo/fx",["./_base/lang","./Evented","./_base/kernel","./_base/array","./_base/connect","./_base/fx","./dom","./dom-style","./dom-geometry","./ready","require"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){if(!_3.isAsync){_a(0,function(){var _c=["./fx/Toggler"];_b(_c);});}var _d=_3.fx={};var _e={_fire:function(_f,_10){if(this[_f]){this[_f].apply(this,_10||[]);}return this;}};var _11=function(_12){this._index=-1;this._animations=_12||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;_4.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};_11.prototype=new _2();_1.extend(_11,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){_5.disconnect(this._onAnimateCtx);_5.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=_5.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=_5.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_13,_14){if(!this._current){this._current=this._animations[this._index=0];}if(!_14&&this._current.status()=="playing"){return this;}var _15=_5.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_16=_5.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_17=_5.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);_5.disconnect(_15);_5.disconnect(_16);_5.disconnect(_17);});if(this._onAnimateCtx){_5.disconnect(this._onAnimateCtx);}this._onAnimateCtx=_5.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){_5.disconnect(this._onEndCtx);}this._onEndCtx=_5.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=_5.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);_5.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_18,_19){this.pause();var _1a=this.duration*_18;this._current=null;_4.some(this._animations,function(a){if(a.duration<=_1a){this._current=a;return true;}_1a-=a.duration;return false;});if(this._current){this._current.gotoPercent(_1a/this._current.duration,_19);}return this;},stop:function(_1b){if(this._current){if(_1b){for(;this._index+1this._animations.length){this._fire("onEnd");}},_call:function(_23,_24){var t=this._pseudoAnimation;t[_23].apply(t,_24);},play:function(_25,_26){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(_27,_28){var ms=this.duration*_27;_4.forEach(this._animations,function(a){a.gotoPercent(a.duration= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(_1){return _1.dojox;});},"dojox/lang/aspect":function(){define("dojox/lang/aspect",["dijit","dojo","dojox"],function(_2,_3,_4){_3.provide("dojox.lang.aspect");(function(){var d=_3,_5=_4.lang.aspect,ap=Array.prototype,_6=[],_7;var _8=function(){this.next_before=this.prev_before=this.next_around=this.prev_around=this.next_afterReturning=this.prev_afterReturning=this.next_afterThrowing=this.prev_afterThrowing=this;this.counter=0;};d.extend(_8,{add:function(_9){var _a=d.isFunction(_9),_b={advice:_9,dynamic:_a};this._add(_b,"before","",_a,_9);this._add(_b,"around","",_a,_9);this._add(_b,"after","Returning",_a,_9);this._add(_b,"after","Throwing",_a,_9);++this.counter;return _b;},_add:function(_c,_d,_e,_f,_10){var _11=_d+_e;if(_f||_10[_d]||(_e&&_10[_11])){var _12="next_"+_11,_13="prev_"+_11;(_c[_13]=this[_13])[_12]=_c;(_c[_12]=this)[_13]=_c;}},remove:function(_14){this._remove(_14,"before");this._remove(_14,"around");this._remove(_14,"afterReturning");this._remove(_14,"afterThrowing");--this.counter;},_remove:function(_15,_16){var _17="next_"+_16,_18="prev_"+_16;if(_15[_17]){_15[_17][_18]=_15[_18];_15[_18][_17]=_15[_17];}},isEmpty:function(){return !this.counter;}});var _19=function(){return function(){var _1a=arguments.callee,_1b=_1a.advices,ret,i,a,e,t;if(_7){_6.push(_7);}_7={instance:this,joinPoint:_1a,depth:_6.length,around:_1b.prev_around,dynAdvices:[],dynIndex:0};try{for(i=_1b.prev_before;i!=_1b;i=i.prev_before){if(i.dynamic){_7.dynAdvices.push(a=new i.advice(_7));if(t=a.before){t.apply(a,arguments);}}else{t=i.advice;t.before.apply(t,arguments);}}try{ret=(_1b.prev_around==_1b?_1a.target:_5.proceed).apply(this,arguments);}catch(e){_7.dynIndex=_7.dynAdvices.length;for(i=_1b.next_afterThrowing;i!=_1b;i=i.next_afterThrowing){a=i.dynamic?_7.dynAdvices[--_7.dynIndex]:i.advice;if(t=a.afterThrowing){t.call(a,e);}if(t=a.after){t.call(a);}}throw e;}_7.dynIndex=_7.dynAdvices.length;for(i=_1b.next_afterReturning;i!=_1b;i=i.next_afterReturning){a=i.dynamic?_7.dynAdvices[--_7.dynIndex]:i.advice;if(t=a.afterReturning){t.call(a,ret);}if(t=a.after){t.call(a);}}var ls=_1a._listeners;for(i in ls){if(!(i in ap)){ls[i].apply(this,arguments);}}}finally{for(i=0;i<_7.dynAdvices.length;++i){a=_7.dynAdvices[i];if(a.destroy){a.destroy();}}_7=_6.length?_6.pop():null;}return ret;};};_5.advise=function(obj,_1c,_1d){if(typeof obj!="object"){obj=obj.prototype;}var _1e=[];if(!(_1c instanceof Array)){_1c=[_1c];}for(var j=0;j<_1c.length;++j){var t=_1c[j];if(t instanceof RegExp){for(var i in obj){if(d.isFunction(obj[i])&&t.test(i)){_1e.push(i);}}}else{if(d.isFunction(obj[t])){_1e.push(t);}}}if(!d.isArray(_1d)){_1d=[_1d];}return _5.adviseRaw(obj,_1e,_1d);};_5.adviseRaw=function(obj,_1f,_20){if(!_1f.length||!_20.length){return null;}var m={},al=_20.length;for(var i=_1f.length-1;i>=0;--i){var _21=_1f[i],o=obj[_21],ao=new Array(al),t=o.advices;if(!t){var x=obj[_21]=_19();x.target=o.target||o;x.targetName=_21;x._listeners=o._listeners||[];x.advices=new _8;t=x.advices;}for(var j=0;j=0;--i){t.remove(ao[i]);}if(t.isEmpty()){var _25=true,ls=o._listeners;if(ls.length){for(i in ls){if(!(i in ap)){_25=false;break;}}}if(_25){obj[_24]=o.target;}else{var x=obj[_24]=d._listener.getDispatcher();x.target=o.target;x._listeners=ls;}}}};_5.getContext=function(){return _7;};_5.getContextStack=function(){return _6;};_5.proceed=function(){var _26=_7.joinPoint,_27=_26.advices;for(var c=_7.around;c!=_27;c=_7.around){_7.around=c.prev_around;if(c.dynamic){var a=_7.dynAdvices[_7.dynIndex++],t=a.around;if(t){return t.apply(a,arguments);}}else{return c.advice.around.apply(c.advice,arguments);}}return _26.target.apply(_7.instance,arguments);};})();});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(_28){return _28.dijit;});},"*noref":1}});define("dojox/_dojox_aspect",[],1);require(["dojox/lang/aspect"]);/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/lang/functional/array":function(){define("dojox/lang/functional/array",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/window","./lambda"],function(_1,_2,_3,_4,df){var _5={};_2.mixin(df,{filter:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||_4.global;f=df.lambda(f);var t=[],v,i,n;if(_2.isArray(a)){for(i=0,n=a.length;i_16){_1d-=1;}return {text:(s.substring(0,_1d)+this.trailingSymbol),truncated:true};}var _1e=_1d+Math.round((end-_1d)*_19),_1f=this.getTextWidth(s.substring(0,_1e),_15);if(_1f<_16){_1d=_1e;end=end;}else{_1d=_1d;end=_1e;}}}},getTextWithLimitCharCount:function(s,_20,_21,_22){if(!s||s.length<=0){return {text:"",truncated:_22||false};}if(!_21||_21<=0||s.length<=_21){return {text:s,truncated:_22||false};}return {text:s.substring(0,_21)+this.trailingSymbol,truncated:true};},_plotFill:function(_23,dim,_24){if(!_23||!_23.type||!_23.space){return _23;}var _25=_23.space;switch(_23.type){case "linear":if(_25==="plot"||_25==="shapeX"||_25==="shapeY"){_23=_a.makeParameters(_a.defaultLinearGradient,_23);_23.space=_25;if(_25==="plot"||_25==="shapeX"){var _26=dim.height-_24.t-_24.b;_23.y1=_24.t+_26*_23.y1/100;_23.y2=_24.t+_26*_23.y2/100;}if(_25==="plot"||_25==="shapeY"){var _26=dim.width-_24.l-_24.r;_23.x1=_24.l+_26*_23.x1/100;_23.x2=_24.l+_26*_23.x2/100;}}break;case "radial":if(_25==="plot"){_23=_a.makeParameters(_a.defaultRadialGradient,_23);_23.space=_25;var _27=dim.width-_24.l-_24.r,_28=dim.height-_24.t-_24.b;_23.cx=_24.l+_27*_23.cx/100;_23.cy=_24.t+_28*_23.cy/100;_23.r=_23.r*Math.sqrt(_27*_27+_28*_28)/200;}break;case "pattern":if(_25==="plot"||_25==="shapeX"||_25==="shapeY"){_23=_a.makeParameters(_a.defaultPattern,_23);_23.space=_25;if(_25==="plot"||_25==="shapeX"){var _26=dim.height-_24.t-_24.b;_23.y=_24.t+_26*_23.y/100;_23.height=_26*_23.height/100;}if(_25==="plot"||_25==="shapeY"){var _26=dim.width-_24.l-_24.r;_23.x=_24.l+_26*_23.x/100;_23.width=_26*_23.width/100;}}break;}return _23;},_shapeFill:function(_29,_2a){if(!_29||!_29.space){return _29;}var _2b=_29.space;switch(_29.type){case "linear":if(_2b==="shape"||_2b==="shapeX"||_2b==="shapeY"){_29=_a.makeParameters(_a.defaultLinearGradient,_29);_29.space=_2b;if(_2b==="shape"||_2b==="shapeX"){var _2c=_2a.width;_29.x1=_2a.x+_2c*_29.x1/100;_29.x2=_2a.x+_2c*_29.x2/100;}if(_2b==="shape"||_2b==="shapeY"){var _2c=_2a.height;_29.y1=_2a.y+_2c*_29.y1/100;_29.y2=_2a.y+_2c*_29.y2/100;}}break;case "radial":if(_2b==="shape"){_29=_a.makeParameters(_a.defaultRadialGradient,_29);_29.space=_2b;_29.cx=_2a.x+_2a.width/2;_29.cy=_2a.y+_2a.height/2;_29.r=_29.r*_2a.width/200;}break;case "pattern":if(_2b==="shape"||_2b==="shapeX"||_2b==="shapeY"){_29=_a.makeParameters(_a.defaultPattern,_29);_29.space=_2b;if(_2b==="shape"||_2b==="shapeX"){var _2c=_2a.width;_29.x=_2a.x+_2c*_29.x/100;_29.width=_2c*_29.width/100;}if(_2b==="shape"||_2b==="shapeY"){var _2c=_2a.height;_29.y=_2a.y+_2c*_29.y/100;_29.height=_2c*_29.height/100;}}break;}return _29;},_pseudoRadialFill:function(_2d,_2e,_2f,_30,end){if(!_2d||_2d.type!=="radial"||_2d.space!=="shape"){return _2d;}var _31=_2d.space;_2d=_a.makeParameters(_a.defaultRadialGradient,_2d);_2d.space=_31;if(arguments.length<4){_2d.cx=_2e.x;_2d.cy=_2e.y;_2d.r=_2d.r*_2f/100;return _2d;}var _32=arguments.length<5?_30:(end+_30)/2;return {type:"linear",x1:_2e.x,y1:_2e.y,x2:_2e.x+_2d.r*_2f*Math.cos(_32)/100,y2:_2e.y+_2d.r*_2f*Math.sin(_32)/100,colors:_2d.colors};return _2d;}});});},"dojox/gfx/utils":function(){define("dojox/gfx/utils",["dojo/_base/kernel","dojo/_base/lang","./_base","dojo/_base/html","dojo/_base/array","dojo/_base/window","dojo/_base/json","dojo/_base/Deferred","dojo/_base/sniff","require","dojo/_base/config"],function(_33,_34,g,_35,arr,win,_36,_37,has,_38,_39){var gu=g.utils={};_34.mixin(gu,{forEach:function(_3a,f,o){o=o||win.global;f.call(o,_3a);if(_3a instanceof g.Surface||_3a instanceof g.Group){arr.forEach(_3a.children,function(_3b){gu.forEach(_3b,f,o);});}},serialize:function(_3c){var t={},v,_3d=_3c instanceof g.Surface;if(_3d||_3c instanceof g.Group){t.children=arr.map(_3c.children,gu.serialize);if(_3d){return t.children;}}else{t.shape=_3c.getShape();}if(_3c.getTransform){v=_3c.getTransform();if(v){t.transform=v;}}if(_3c.getStroke){v=_3c.getStroke();if(v){t.stroke=v;}}if(_3c.getFill){v=_3c.getFill();if(v){t.fill=v;}}if(_3c.getFont){v=_3c.getFont();if(v){t.font=v;}}return t;},toJson:function(_3e,_3f){return _36.toJson(gu.serialize(_3e),_3f);},deserialize:function(_40,_41){if(_41 instanceof Array){return arr.map(_41,_34.hitch(null,gu.deserialize,_40));}var _42=("shape" in _41)?_40.createShape(_41.shape):_40.createGroup();if("transform" in _41){_42.setTransform(_41.transform);}if("stroke" in _41){_42.setStroke(_41.stroke);}if("fill" in _41){_42.setFill(_41.fill);}if("font" in _41){_42.setFont(_41.font);}if("children" in _41){arr.forEach(_41.children,_34.hitch(null,gu.deserialize,_42));}return _42;},fromJson:function(_43,_44){return gu.deserialize(_43,_36.fromJson(_44));},toSvg:function(_45){var _46=new _37();if(g.renderer==="svg"){try{var svg=gu._cleanSvg(gu._innerXML(_45.rawNode));_46.callback(svg);}catch(e){_46.errback(e);}}else{if(!gu._initSvgSerializerDeferred){gu._initSvgSerializer();}var _47=gu.toJson(_45);var _48=function(){try{var _49=_45.getDimensions();var _4a=_49.width;var _4b=_49.height;var _4c=gu._gfxSvgProxy.document.createElement("div");gu._gfxSvgProxy.document.body.appendChild(_4c);win.withDoc(gu._gfxSvgProxy.document,function(){_35.style(_4c,"width",_4a);_35.style(_4c,"height",_4b);},this);var ts=gu._gfxSvgProxy[dojox._scopeName].gfx.createSurface(_4c,_4a,_4b);var _4d=function(_4e){try{gu._gfxSvgProxy[dojox._scopeName].gfx.utils.fromJson(_4e,_47);var svg=gu._cleanSvg(_4c.innerHTML);_4e.clear();_4e.destroy();gu._gfxSvgProxy.document.body.removeChild(_4c);_46.callback(svg);}catch(e){_46.errback(e);}};ts.whenLoaded(null,_4d);}catch(ex){_46.errback(ex);}};if(gu._initSvgSerializerDeferred.fired>0){_48();}else{gu._initSvgSerializerDeferred.addCallback(_48);}}return _46;},_gfxSvgProxy:null,_initSvgSerializerDeferred:null,_svgSerializerInitialized:function(){gu._initSvgSerializerDeferred.callback(true);},_initSvgSerializer:function(){if(!gu._initSvgSerializerDeferred){gu._initSvgSerializerDeferred=new _37();var f=win.doc.createElement("iframe");_35.style(f,{display:"none",position:"absolute",width:"1em",height:"1em",top:"-10000px"});var _4f;if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onreadystatechange=function(){};_4f=setInterval(function(){if(f.contentWindow[_33.scopeMap["dojo"][1]._scopeName]&&f.contentWindow[_33.scopeMap["dojox"][1]._scopeName].gfx&&f.contentWindow[_33.scopeMap["dojox"][1]._scopeName].gfx.utils){clearInterval(_4f);f.contentWindow.parent[_33.scopeMap["dojox"][1]._scopeName].gfx.utils._gfxSvgProxy=f.contentWindow;f.contentWindow.parent[_33.scopeMap["dojox"][1]._scopeName].gfx.utils._svgSerializerInitialized();}},50);}};}else{f.onload=function(){f.onload=function(){};_4f=setInterval(function(){if(f.contentWindow[_33.scopeMap["dojo"][1]._scopeName]&&f.contentWindow[_33.scopeMap["dojox"][1]._scopeName].gfx&&f.contentWindow[_33.scopeMap["dojox"][1]._scopeName].gfx.utils){clearInterval(_4f);f.contentWindow.parent[_33.scopeMap["dojox"][1]._scopeName].gfx.utils._gfxSvgProxy=f.contentWindow;f.contentWindow.parent[_33.scopeMap["dojox"][1]._scopeName].gfx.utils._svgSerializerInitialized();}},50);};}var uri=(_39["dojoxGfxSvgProxyFrameUrl"]||_38.toUrl("dojox/gfx/resources/gfxSvgProxyFrame.html"));f.setAttribute("src",uri.toString());win.body().appendChild(f);}},_innerXML:function(_50){if(_50.innerXML){return _50.innerXML;}else{if(_50.xml){return _50.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(_50);}}}return null;},_cleanSvg:function(svg){if(svg){if(svg.indexOf("xmlns=\"http://www.w3.org/2000/svg\"")==-1){svg=svg.substring(4,svg.length);svg=")/g,"=\"$1\"$2");svg=svg.replace(/\bstroke-opacity\w*\s*=\s*(['"])undefined\1/g,"");}return svg;}});return gu;});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(_51){return _51.dojox;});},"dojox/lang/functional/reversed":function(){define("dojox/lang/functional/reversed",["dojo/_base/lang","dojo/_base/window","./lambda"],function(_52,win,df){_52.mixin(df,{filterRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var t=[],v,i=a.length-1;for(;i>=0;--i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}return t;},forEachRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);for(var i=a.length-1;i>=0;f.call(o,a[i],i,a),--i){}},mapRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var n=a.length,t=new Array(n),i=n-1,j=0;for(;i>=0;t[j++]=f.call(o,a[i],i,a),--i){}return t;},everyRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(!f.call(o,a[i],i,a)){return false;}}return true;},someRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(f.call(o,a[i],i,a)){return true;}}return false;}});return df;});},"dojox/charting/Chart":function(){define("dojox/charting/Chart",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/html","dojo/dom","dojo/dom-geometry","dojo/dom-construct","dojo/_base/Color","dojo/_base/sniff","./Element","./Theme","./Series","./axis2d/common","dojox/gfx/shape","dojox/gfx","dojox/lang/functional","dojox/lang/functional/fold","dojox/lang/functional/reversed"],function(_53,arr,_54,_55,dom,_56,_57,_58,has,_59,_5a,_5b,_5c,_5d,g,_5e,_5f,_60){var dc=dojox.charting,_61=_5e.lambda("item.clear()"),_62=_5e.lambda("item.purgeGroup()"),_63=_5e.lambda("item.destroy()"),_64=_5e.lambda("item.dirty = false"),_65=_5e.lambda("item.dirty = true"),_66=_5e.lambda("item.name");_54("dojox.charting.Chart",null,{constructor:function(_67,_68){if(!_68){_68={};}this.margins=_68.margins?_68.margins:{l:10,t:10,r:10,b:10};this.stroke=_68.stroke;this.fill=_68.fill;this.delayInMs=_68.delayInMs||200;this.title=_68.title;this.titleGap=_68.titleGap;this.titlePos=_68.titlePos;this.titleFont=_68.titleFont;this.titleFontColor=_68.titleFontColor;this.chartTitle=null;this.theme=null;this.axes={};this.stack=[];this.plots={};this.series=[];this.runs={};this.dirty=true;this.coords=null;this._clearRects=[];this.node=dom.byId(_67);var box=_56.getMarginBox(_67);this.surface=g.createSurface(this.node,box.w||400,box.h||300);},destroy:function(){arr.forEach(this.series,_63);arr.forEach(this.stack,_63);_5e.forIn(this.axes,_63);if(this.chartTitle&&this.chartTitle.tagName){_57.destroy(this.chartTitle);}arr.forEach(this._clearRects,function(_69){_5d.dispose(_69);});this.surface.destroy();},getCoords:function(){return _55.coords(this.node,true);},setTheme:function(_6a){this.theme=_6a.clone();this.dirty=true;return this;},addAxis:function(_6b,_6c){var _6d,_6e=_6c&&_6c.type||"Default";if(typeof _6e=="string"){if(!dc.axis2d||!dc.axis2d[_6e]){throw Error("Can't find axis: "+_6e+" - Check "+"require() dependencies.");}_6d=new dc.axis2d[_6e](this,_6c);}else{_6d=new _6e(this,_6c);}_6d.name=_6b;_6d.dirty=true;if(_6b in this.axes){this.axes[_6b].destroy();}this.axes[_6b]=_6d;this.dirty=true;return this;},getAxis:function(_6f){return this.axes[_6f];},removeAxis:function(_70){if(_70 in this.axes){this.axes[_70].destroy();delete this.axes[_70];this.dirty=true;}return this;},addPlot:function(_71,_72){var _73,_74=_72&&_72.type||"Default";if(typeof _74=="string"){if(!dc.plot2d||!dc.plot2d[_74]){throw Error("Can't find plot: "+_74+" - didn't you forget to dojo"+".require() it?");}_73=new dc.plot2d[_74](this,_72);}else{_73=new _74(this,_72);}_73.name=_71;_73.dirty=true;if(_71 in this.plots){this.stack[this.plots[_71]].destroy();this.stack[this.plots[_71]]=_73;}else{this.plots[_71]=this.stack.length;this.stack.push(_73);}this.dirty=true;return this;},getPlot:function(_75){return this.stack[this.plots[_75]];},removePlot:function(_76){if(_76 in this.plots){var _77=this.plots[_76];delete this.plots[_76];this.stack[_77].destroy();this.stack.splice(_77,1);_5e.forIn(this.plots,function(idx,_78,_79){if(idx>_77){_79[_78]=idx-1;}});var ns=arr.filter(this.series,function(run){return run.plot!=_76;});if(ns.length_8f){_91[_90]=idx-1;}});this.dirty=true;}return this;},updateSeries:function(_92,_93){if(_92 in this.runs){var run=this.series[this.runs[_92]];run.update(_93);this._invalidateDependentPlots(run.plot,false);this._invalidateDependentPlots(run.plot,true);}return this;},getSeriesOrder:function(_94){return _5e.map(_5e.filter(this.series,function(run){return run.plot==_94;}),_66);},setSeriesOrder:function(_95){var _96,_97={},_98=_5e.filter(_95,function(_99){if(!(_99 in this.runs)||(_99 in _97)){return false;}var run=this.series[this.runs[_99]];if(_96){if(run.plot!=_96){return false;}}else{_96=run.plot;}_97[_99]=1;return true;},this);_5e.forEach(this.series,function(run){var _9a=run.name;if(!(_9a in _97)&&run.plot==_96){_98.push(_9a);}});var _9b=_5e.map(_98,function(_9c){return this.series[this.runs[_9c]];},this);this.series=_9b.concat(_5e.filter(this.series,function(run){return run.plot!=_96;}));_5e.forEach(this.series,function(run,i){this.runs[run.name]=i;},this);this.dirty=true;return this;},moveSeriesToFront:function(_9d){if(_9d in this.runs){var _9e=this.runs[_9d],_9f=this.getSeriesOrder(this.series[_9e].plot);if(_9d!=_9f[0]){_9f.splice(_9e,1);_9f.unshift(_9d);return this.setSeriesOrder(_9f);}}return this;},moveSeriesToBack:function(_a0){if(_a0 in this.runs){var _a1=this.runs[_a0],_a2=this.getSeriesOrder(this.series[_a1].plot);if(_a0!=_a2[_a2.length-1]){_a2.splice(_a1,1);_a2.push(_a0);return this.setSeriesOrder(_a2);}}return this;},resize:function(_a3,_a4){var box;switch(arguments.length){case 1:box=_53.mixin({},_a3);_56.setMarginBox(this.node,box);break;case 2:box={w:_a3,h:_a4};_56.setMarginBox(this.node,box);break;}box=_56.getMarginBox(this.node);var d=this.surface.getDimensions();if(d.width!=box.w||d.height!=box.h){this.surface.setDimensions(box.w,box.h);this.dirty=true;return this.render();}else{return this;}},getGeometry:function(){var ret={};_5e.forIn(this.axes,function(_a5){if(_a5.initialized()){ret[_a5.name]={name:_a5.name,vertical:_a5.vertical,scaler:_a5.scaler,ticks:_a5.ticks};}});return ret;},setAxisWindow:function(_a6,_a7,_a8,_a9){var _aa=this.axes[_a6];if(_aa){_aa.setWindow(_a7,_a8);arr.forEach(this.stack,function(_ab){if(_ab.hAxis==_a6||_ab.vAxis==_a6){_ab.zoom=_a9;}});}return this;},setWindow:function(sx,sy,dx,dy,_ac){if(!("plotArea" in this)){this.calculateGeometry();}_5e.forIn(this.axes,function(_ad){var _ae,_af,_b0=_ad.getScaler().bounds,s=_b0.span/(_b0.upper-_b0.lower);if(_ad.vertical){_ae=sy;_af=dy/s/_ae;}else{_ae=sx;_af=dx/s/_ae;}_ad.setWindow(_ae,_af);});arr.forEach(this.stack,function(_b1){_b1.zoom=_ac;});return this;},zoomIn:function(_b2,_b3){var _b4=this.axes[_b2];if(_b4){var _b5,_b6,_b7=_b4.getScaler().bounds;var _b8=Math.min(_b3[0],_b3[1]);var _b9=Math.max(_b3[0],_b3[1]);_b8=_b3[0]<_b7.lower?_b7.lower:_b8;_b9=_b3[1]>_b7.upper?_b7.upper:_b9;_b5=(_b7.upper-_b7.lower)/(_b9-_b8);_b6=_b8-_b7.lower;this.setAxisWindow(_b2,_b5,_b6);this.render();}},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}var _ba=arr.filter(this.stack,function(_bb){return _bb.dirty||(_bb.hAxis&&this.axes[_bb.hAxis].dirty)||(_bb.vAxis&&this.axes[_bb.vAxis].dirty);},this);_bc(_ba,this.plotArea);return this;},fullGeometry:function(){this._makeDirty();arr.forEach(this.stack,_61);if(!this.theme){this.setTheme(new _5a(dojox.charting._def));}arr.forEach(this.series,function(run){if(!(run.plot in this.plots)){if(!dc.plot2d||!dc.plot2d.Default){throw Error("Can't find plot: Default - didn't you forget to dojo"+".require() it?");}var _bd=new dc.plot2d.Default(this,{});_bd.name=run.plot;this.plots[run.plot]=this.stack.length;this.stack.push(_bd);}this.stack[this.plots[run.plot]].addSeries(run);},this);arr.forEach(this.stack,function(_be){if(_be.hAxis){_be.setAxis(this.axes[_be.hAxis]);}if(_be.vAxis){_be.setAxis(this.axes[_be.vAxis]);}},this);var dim=this.dim=this.surface.getDimensions();dim.width=g.normalizedLength(dim.width);dim.height=g.normalizedLength(dim.height);_5e.forIn(this.axes,_61);_bc(this.stack,dim);var _bf=this.offsets={l:0,r:0,t:0,b:0};_5e.forIn(this.axes,function(_c0){_5e.forIn(_c0.getOffsets(),function(o,i){_bf[i]+=o;});});if(this.title){this.titleGap=(this.titleGap==0)?0:this.titleGap||this.theme.chart.titleGap||20;this.titlePos=this.titlePos||this.theme.chart.titlePos||"top";this.titleFont=this.titleFont||this.theme.chart.titleFont;this.titleFontColor=this.titleFontColor||this.theme.chart.titleFontColor||"black";var _c1=g.normalizedLength(g.splitFontString(this.titleFont).size);_bf[this.titlePos=="top"?"t":"b"]+=(_c1+this.titleGap);}_5e.forIn(this.margins,function(o,i){_bf[i]+=o;});this.plotArea={width:dim.width-_bf.l-_bf.r,height:dim.height-_bf.t-_bf.b};_5e.forIn(this.axes,_61);_bc(this.stack,this.plotArea);return this;},render:function(){if(this.theme){this.theme.clear();}if(this.dirty){return this.fullRender();}this.calculateGeometry();_5e.forEachRev(this.stack,function(_c2){_c2.render(this.dim,this.offsets);},this);_5e.forIn(this.axes,function(_c3){_c3.render(this.dim,this.offsets);},this);this._makeClean();if(this.surface.render){this.surface.render();}return this;},fullRender:function(){this.fullGeometry();var _c4=this.offsets,dim=this.dim,_c5;arr.forEach(this.series,_62);_5e.forIn(this.axes,_62);arr.forEach(this.stack,_62);arr.forEach(this._clearRects,function(_c6){_5d.dispose(_c6);});this._clearRects=[];if(this.chartTitle&&this.chartTitle.tagName){_57.destroy(this.chartTitle);}this.surface.clear();this.chartTitle=null;var t=this.theme,_c7=t.plotarea&&t.plotarea.fill,_c8=t.plotarea&&t.plotarea.stroke,w=Math.max(0,dim.width-_c4.l-_c4.r),h=Math.max(0,dim.height-_c4.t-_c4.b),_c5={x:_c4.l-1,y:_c4.t-1,width:w+2,height:h+2};if(_c7){_c7=_59.prototype._shapeFill(_59.prototype._plotFill(_c7,dim,_c4),_c5);this._clearRects.push(this.surface.createRect(_c5).setFill(_c7));}if(_c8){this._clearRects.push(this.surface.createRect({x:_c4.l,y:_c4.t,width:w+1,height:h+1}).setStroke(_c8));}_5e.foldr(this.stack,function(z,_c9){return _c9.render(dim,_c4),0;},0);_c7=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);_c8=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);if(_c7=="inherit"){var _ca=this.node,_c7=new _58(_55.style(_ca,"backgroundColor"));while(_c7.a==0&&_ca!=document.documentElement){_c7=new _58(_55.style(_ca,"backgroundColor"));_ca=_ca.parentNode;}}if(_c7){_c7=_59.prototype._plotFill(_c7,dim,_c4);if(_c4.l){_c5={width:_c4.l,height:dim.height+1};this._clearRects.push(this.surface.createRect(_c5).setFill(_59.prototype._shapeFill(_c7,_c5)));}if(_c4.r){_c5={x:dim.width-_c4.r,width:_c4.r+1,height:dim.height+2};this._clearRects.push(this.surface.createRect(_c5).setFill(_59.prototype._shapeFill(_c7,_c5)));}if(_c4.t){_c5={width:dim.width+1,height:_c4.t};this._clearRects.push(this.surface.createRect(_c5).setFill(_59.prototype._shapeFill(_c7,_c5)));}if(_c4.b){_c5={y:dim.height-_c4.b,width:dim.width+1,height:_c4.b+2};this._clearRects.push(this.surface.createRect(_c5).setFill(_59.prototype._shapeFill(_c7,_c5)));}}if(_c8){this._clearRects.push(this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_c8));}if(this.title){var _cb=(g.renderer=="canvas"),_cc=_cb||!has("ie")&&!has("opera")?"html":"gfx",_cd=g.normalizedLength(g.splitFontString(this.titleFont).size);this.chartTitle=_5c.createText[_cc](this,this.surface,dim.width/2,this.titlePos=="top"?_cd+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);}_5e.forIn(this.axes,function(_ce){_ce.render(dim,_c4);});this._makeClean();if(this.surface.render){this.surface.render();}return this;},delayedRender:function(){if(!this._delayedRenderHandle){this._delayedRenderHandle=setTimeout(_53.hitch(this,function(){clearTimeout(this._delayedRenderHandle);this._delayedRenderHandle=null;this.render();}),this.delayInMs);}return this;},connectToPlot:function(_cf,_d0,_d1){return _cf in this.plots?this.stack[this.plots[_cf]].connect(_d0,_d1):null;},fireEvent:function(_d2,_d3,_d4){if(_d2 in this.runs){var _d5=this.series[this.runs[_d2]].plot;if(_d5 in this.plots){var _d6=this.stack[this.plots[_d5]];if(_d6){_d6.fireEvent(_d2,_d3,_d4);}}}return this;},_makeClean:function(){arr.forEach(this.axes,_64);arr.forEach(this.stack,_64);arr.forEach(this.series,_64);this.dirty=false;},_makeDirty:function(){arr.forEach(this.axes,_65);arr.forEach(this.stack,_65);arr.forEach(this.series,_65);this.dirty=true;},_invalidateDependentPlots:function(_d7,_d8){if(_d7 in this.plots){var _d9=this.stack[this.plots[_d7]],_da,_db=_d8?"vAxis":"hAxis";if(_d9[_db]){_da=this.axes[_d9[_db]];if(_da&&_da.dependOnData()){_da.dirty=true;arr.forEach(this.stack,function(p){if(p[_db]&&p[_db]==_d9[_db]){p.dirty=true;}});}}else{_d9.dirty=true;}}}});function _dc(_dd){return {min:_dd.hmin,max:_dd.hmax};};function _de(_df){return {min:_df.vmin,max:_df.vmax};};function _e0(_e1,h){_e1.hmin=h.min;_e1.hmax=h.max;};function _e2(_e3,v){_e3.vmin=v.min;_e3.vmax=v.max;};function _e4(_e5,_e6){if(_e5&&_e6){_e5.min=Math.min(_e5.min,_e6.min);_e5.max=Math.max(_e5.max,_e6.max);}return _e5||_e6;};function _bc(_e7,_e8){var _e9={},_ea={};arr.forEach(_e7,function(_eb){var _ec=_e9[_eb.name]=_eb.getSeriesStats();if(_eb.hAxis){_ea[_eb.hAxis]=_e4(_ea[_eb.hAxis],_dc(_ec));}if(_eb.vAxis){_ea[_eb.vAxis]=_e4(_ea[_eb.vAxis],_de(_ec));}});arr.forEach(_e7,function(_ed){var _ee=_e9[_ed.name];if(_ed.hAxis){_e0(_ee,_ea[_ed.hAxis]);}if(_ed.vAxis){_e2(_ee,_ea[_ed.vAxis]);}_ed.initializeScalers(_e8,_ee);});};return dojox.charting.Chart;});},"dojox/color/Palette":function(){define("dojox/color/Palette",["dojo/_base/kernel","../main","dojo/_base/lang","dojo/_base/array","./_base"],function(_ef,_f0,_f1,arr,dxc){dxc.Palette=function(_f2){this.colors=[];if(_f2 instanceof dxc.Palette){this.colors=_f2.colors.slice(0);}else{if(_f2 instanceof dxc.Color){this.colors=[null,null,_f2,null,null];}else{if(_f1.isArray(_f2)){this.colors=arr.map(_f2.slice(0),function(_f3){if(_f1.isString(_f3)){return new dxc.Color(_f3);}return _f3;});}else{if(_f1.isString(_f2)){this.colors=[null,null,new dxc.Color(_f2),null,null];}}}}};function _f4(p,_f5,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_f6){var r=(_f5=="dr")?_f6.r+val:_f6.r,g=(_f5=="dg")?_f6.g+val:_f6.g,b=(_f5=="db")?_f6.b+val:_f6.b,a=(_f5=="da")?_f6.a+val:_f6.a;ret.colors.push(new dxc.Color({r:Math.min(255,Math.max(0,r)),g:Math.min(255,Math.max(0,g)),b:Math.min(255,Math.max(0,b)),a:Math.min(1,Math.max(0,a))}));});return ret;};function _f7(p,_f8,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_f9){var o=_f9.toCmy(),c=(_f8=="dc")?o.c+val:o.c,m=(_f8=="dm")?o.m+val:o.m,y=(_f8=="dy")?o.y+val:o.y;ret.colors.push(dxc.fromCmy(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y))));});return ret;};function _fa(p,_fb,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_fc){var o=_fc.toCmyk(),c=(_fb=="dc")?o.c+val:o.c,m=(_fb=="dm")?o.m+val:o.m,y=(_fb=="dy")?o.y+val:o.y,k=(_fb=="dk")?o.b+val:o.b;ret.colors.push(dxc.fromCmyk(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y)),Math.min(100,Math.max(0,k))));});return ret;};function _fd(p,_fe,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_ff){var o=_ff.toHsl(),h=(_fe=="dh")?o.h+val:o.h,s=(_fe=="ds")?o.s+val:o.s,l=(_fe=="dl")?o.l+val:o.l;ret.colors.push(dxc.fromHsl(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,l))));});return ret;};function tHSV(p,_100,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(item){var o=item.toHsv(),h=(_100=="dh")?o.h+val:o.h,s=(_100=="ds")?o.s+val:o.s,v=(_100=="dv")?o.v+val:o.v;ret.colors.push(dxc.fromHsv(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,v))));});return ret;};function _101(val,low,high){return high-((high-val)*((high-low)/high));};_f1.extend(dxc.Palette,{transform:function(_102){var fn=_f4;if(_102.use){var use=_102.use.toLowerCase();if(use.indexOf("hs")==0){if(use.charAt(2)=="l"){fn=_fd;}else{fn=tHSV;}}else{if(use.indexOf("cmy")==0){if(use.charAt(3)=="k"){fn=_fa;}else{fn=_f7;}}}}else{if("dc" in _102||"dm" in _102||"dy" in _102){if("dk" in _102){fn=_fa;}else{fn=_f7;}}else{if("dh" in _102||"ds" in _102){if("dv" in _102){fn=tHSV;}else{fn=_fd;}}}}var _103=this;for(var p in _102){if(p=="use"){continue;}_103=fn(_103,p,_102[p]);}return _103;},clone:function(){return new dxc.Palette(this);}});_f1.mixin(dxc.Palette,{generators:{analogous:function(args){var high=args.high||60,low=args.low||18,base=_f1.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var h=[(hsv.h+low+360)%360,(hsv.h+Math.round(low/2)+360)%360,hsv.h,(hsv.h-Math.round(high/2)+360)%360,(hsv.h-high+360)%360];var s1=Math.max(10,(hsv.s<=95)?hsv.s+5:(100-(hsv.s-95))),s2=(hsv.s>1)?hsv.s-1:21-hsv.s,v1=(hsv.v>=92)?hsv.v-9:Math.max(hsv.v+9,20),v2=(hsv.v<=90)?Math.max(hsv.v+5,20):(95+Math.ceil((hsv.v-90)/2)),s=[s1,s2,hsv.s,s1,s1],v=[v1,v2,hsv.v,v1,v2];return new dxc.Palette(arr.map(h,function(hue,i){return dxc.fromHsv(hue,s[i],v[i]);}));},monochromatic:function(args){var base=_f1.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var s1=(hsv.s-30>9)?hsv.s-30:hsv.s+30,s2=hsv.s,v1=_101(hsv.v,20,100),v2=(hsv.v-20>20)?hsv.v-20:hsv.v+60,v3=(hsv.v-50>20)?hsv.v-50:hsv.v+30;return new dxc.Palette([dxc.fromHsv(hsv.h,s1,v1),dxc.fromHsv(hsv.h,s2,v3),base,dxc.fromHsv(hsv.h,s1,v3),dxc.fromHsv(hsv.h,s2,v2)]);},triadic:function(args){var base=_f1.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var h1=(hsv.h+57+360)%360,h2=(hsv.h-157+360)%360,s1=(hsv.s>20)?hsv.s-10:hsv.s+10,s2=(hsv.s>90)?hsv.s-10:hsv.s+10,s3=(hsv.s>95)?hsv.s-5:hsv.s+5,v1=(hsv.v-20>20)?hsv.v-20:hsv.v+20,v2=(hsv.v-30>20)?hsv.v-30:hsv.v+30,v3=(hsv.v-30>70)?hsv.v-30:hsv.v+30;return new dxc.Palette([dxc.fromHsv(h1,s1,hsv.v),dxc.fromHsv(hsv.h,s2,v2),base,dxc.fromHsv(h2,s2,v1),dxc.fromHsv(h2,s3,v3)]);},complementary:function(args){var base=_f1.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,s1=Math.max(hsv.s-10,0),s2=_101(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dxc.fromHsv(hsv.h,s1,v1),dxc.fromHsv(hsv.h,s2,v2),base,dxc.fromHsv(h1,s3,v2),dxc.fromHsv(h1,hsv.s,hsv.v)]);},splitComplementary:function(args){var base=_f1.isString(args.base)?new dxc.Color(args.base):args.base,_104=args.da||30,hsv=base.toHsv();var _105=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_105-_104+360)%360,h2=(_105+_104)%360,s1=Math.max(hsv.s-10,0),s2=_101(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dxc.fromHsv(h1,s1,v1),dxc.fromHsv(h1,s2,v2),base,dxc.fromHsv(h2,s3,v2),dxc.fromHsv(h2,hsv.s,hsv.v)]);},compound:function(args){var base=_f1.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+18<360)?(hsv.h*2)+18:Math.floor(hsv.h/2)-18,h2=((hsv.h*2)+120<360)?(hsv.h*2)+120:Math.floor(hsv.h/2)-120,h3=((hsv.h*2)+99<360)?(hsv.h*2)+99:Math.floor(hsv.h/2)-99,s1=(hsv.s-40>10)?hsv.s-40:hsv.s+40,s2=(hsv.s-10>80)?hsv.s-10:hsv.s+10,s3=(hsv.s-25>10)?hsv.s-25:hsv.s+25,v1=(hsv.v-40>10)?hsv.v-40:hsv.v+40,v2=(hsv.v-20>80)?hsv.v-20:hsv.v+20,v3=Math.max(hsv.v,20);return new dxc.Palette([dxc.fromHsv(h1,s1,v1),dxc.fromHsv(h1,s2,v2),base,dxc.fromHsv(h2,s3,v3),dxc.fromHsv(h3,s2,v2)]);},shades:function(args){var base=_f1.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var s=(hsv.s==100&&hsv.v==0)?0:hsv.s,v1=(hsv.v-50>20)?hsv.v-50:hsv.v+30,v2=(hsv.v-25>=20)?hsv.v-25:hsv.v+55,v3=(hsv.v-75>=20)?hsv.v-75:hsv.v+5,v4=Math.max(hsv.v-10,20);return new dxc.Palette([new dxc.fromHsv(hsv.h,s,v1),new dxc.fromHsv(hsv.h,s,v2),base,new dxc.fromHsv(hsv.h,s,v3),new dxc.fromHsv(hsv.h,s,v4)]);}},generate:function(base,type){if(_f1.isFunction(type)){return type({base:base});}else{if(dxc.Palette.generators[type]){return dxc.Palette.generators[type]({base:base});}}throw new Error("dojox.color.Palette.generate: the specified generator ('"+type+"') does not exist.");}});return dxc.Palette;});},"dojox/color/_base":function(){define("dojox/color/_base",["dojo/_base/kernel","../main","dojo/_base/lang","dojo/_base/Color","dojo/colors"],function(dojo,_106,lang,_107,_108){var cx=lang.getObject("dojox.color",true);cx.Color=_107;cx.blend=_107.blendColors;cx.fromRgb=_107.fromRgb;cx.fromHex=_107.fromHex;cx.fromArray=_107.fromArray;cx.fromString=_107.fromString;cx.greyscale=_108.makeGrey;lang.mixin(cx,{fromCmy:function(cyan,_109,_10a){if(lang.isArray(cyan)){_109=cyan[1],_10a=cyan[2],cyan=cyan[0];}else{if(lang.isObject(cyan)){_109=cyan.m,_10a=cyan.y,cyan=cyan.c;}}cyan/=100,_109/=100,_10a/=100;var r=1-cyan,g=1-_109,b=1-_10a;return new _107({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_10b,_10c,_10d){if(lang.isArray(cyan)){_10b=cyan[1],_10c=cyan[2],_10d=cyan[3],cyan=cyan[0];}else{if(lang.isObject(cyan)){_10b=cyan.m,_10c=cyan.y,_10d=cyan.b,cyan=cyan.c;}}cyan/=100,_10b/=100,_10c/=100,_10d/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_10d)+_10d);g=1-Math.min(1,_10b*(1-_10d)+_10d);b=1-Math.min(1,_10c*(1-_10d)+_10d);return new _107({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_10e,_10f){if(lang.isArray(hue)){_10e=hue[1],_10f=hue[2],hue=hue[0];}else{if(lang.isObject(hue)){_10e=hue.s,_10f=hue.l,hue=hue.h;}}_10e/=100;_10f/=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*_10e*Math.min(r,1)+(1-_10e);g=2*_10e*Math.min(g,1)+(1-_10e);b=2*_10e*Math.min(b,1)+(1-_10e);if(_10f<0.5){r*=_10f,g*=_10f,b*=_10f;}else{r=(1-_10f)*r+2*_10f-1;g=(1-_10f)*g+2*_10f-1;b=(1-_10f)*b+2*_10f-1;}return new _107({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});}});cx.fromHsv=function(hue,_110,_111){if(lang.isArray(hue)){_110=hue[1],_111=hue[2],hue=hue[0];}else{if(lang.isObject(hue)){_110=hue.s,_111=hue.v,hue=hue.h;}}if(hue==360){hue=0;}_110/=100;_111/=100;var r,g,b;if(_110==0){r=_111,b=_111,g=_111;}else{var _112=hue/60,i=Math.floor(_112),f=_112-i;var p=_111*(1-_110);var q=_111*(1-(_110*f));var t=_111*(1-(_110*(1-f)));switch(i){case 0:r=_111,g=t,b=p;break;case 1:r=q,g=_111,b=p;break;case 2:r=p,g=_111,b=t;break;case 3:r=p,g=q,b=_111;break;case 4:r=t,g=p,b=_111;break;case 5:r=_111,g=p,b=q;break;}}return new _107({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});};lang.extend(_107,{toCmy:function(){var cyan=1-(this.r/255),_113=1-(this.g/255),_114=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_113*100),y:Math.round(_114*100)};},toCmyk:function(){var cyan,_115,_116,_117;var r=this.r/255,g=this.g/255,b=this.b/255;_117=Math.min(1-r,1-g,1-b);cyan=(1-r-_117)/(1-_117);_115=(1-g-_117)/(1-_117);_116=(1-b-_117)/(1-_117);return {c:Math.round(cyan*100),m:Math.round(_115*100),y:Math.round(_116*100),b:Math.round(_117*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 _118=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_118/((l<0.5)?(2*l):(2-2*l));}if(_118>0){if(max==r&&max!=g){h+=(g-b)/_118;}if(max==g&&max!=b){h+=(2+(b-r)/_118);}if(max==b&&max!=r){h+=(4+(r-g)/_118);}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 _119=max-min;var h=null,s=(max==0)?0:(_119/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_119;}else{if(g==max){h=120+60*(b-r)/_119;}else{h=240+60*(r-g)/_119;}}if(h<0){h+=360;}}return {h:h,s:Math.round(s*100),v:Math.round(max*100)};}});return cx;});},"dojo/colors":function(){define("dojo/colors",["./_base/kernel","./_base/lang","./_base/Color","./_base/array"],function(dojo,lang,_11a,_11b){var _11c=lang.getObject("dojo.colors",true);var _11d=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=_11a.fromRgb=function(_11e,obj){var m=_11e.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=_11b.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return _11a.fromArray(a,obj);}return _11a.fromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_11d(m1,m2,H+1/3)*256,_11d(m1,m2,H)*256,_11d(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return _11a.fromArray(a,obj);}}return null;};var _11f=function(c,low,high){c=Number(c);return isNaN(c)?high:chigh?high:c;};_11a.prototype.sanitize=function(){var t=this;t.r=Math.round(_11f(t.r,0,255));t.g=Math.round(_11f(t.g,0,255));t.b=Math.round(_11f(t.b,0,255));t.a=_11f(t.a,0,1);return this;};_11c.makeGrey=_11a.makeGrey=function(g,a){return _11a.fromArray([g,g,g,a]);};lang.mixin(_11a.named,{"aliceblue":[240,248,255],"antiquewhite":[250,235,215],"aquamarine":[127,255,212],"azure":[240,255,255],"beige":[245,245,220],"bisque":[255,228,196],"blanchedalmond":[255,235,205],"blueviolet":[138,43,226],"brown":[165,42,42],"burlywood":[222,184,135],"cadetblue":[95,158,160],"chartreuse":[127,255,0],"chocolate":[210,105,30],"coral":[255,127,80],"cornflowerblue":[100,149,237],"cornsilk":[255,248,220],"crimson":[220,20,60],"cyan":[0,255,255],"darkblue":[0,0,139],"darkcyan":[0,139,139],"darkgoldenrod":[184,134,11],"darkgray":[169,169,169],"darkgreen":[0,100,0],"darkgrey":[169,169,169],"darkkhaki":[189,183,107],"darkmagenta":[139,0,139],"darkolivegreen":[85,107,47],"darkorange":[255,140,0],"darkorchid":[153,50,204],"darkred":[139,0,0],"darksalmon":[233,150,122],"darkseagreen":[143,188,143],"darkslateblue":[72,61,139],"darkslategray":[47,79,79],"darkslategrey":[47,79,79],"darkturquoise":[0,206,209],"darkviolet":[148,0,211],"deeppink":[255,20,147],"deepskyblue":[0,191,255],"dimgray":[105,105,105],"dimgrey":[105,105,105],"dodgerblue":[30,144,255],"firebrick":[178,34,34],"floralwhite":[255,250,240],"forestgreen":[34,139,34],"gainsboro":[220,220,220],"ghostwhite":[248,248,255],"gold":[255,215,0],"goldenrod":[218,165,32],"greenyellow":[173,255,47],"grey":[128,128,128],"honeydew":[240,255,240],"hotpink":[255,105,180],"indianred":[205,92,92],"indigo":[75,0,130],"ivory":[255,255,240],"khaki":[240,230,140],"lavender":[230,230,250],"lavenderblush":[255,240,245],"lawngreen":[124,252,0],"lemonchiffon":[255,250,205],"lightblue":[173,216,230],"lightcoral":[240,128,128],"lightcyan":[224,255,255],"lightgoldenrodyellow":[250,250,210],"lightgray":[211,211,211],"lightgreen":[144,238,144],"lightgrey":[211,211,211],"lightpink":[255,182,193],"lightsalmon":[255,160,122],"lightseagreen":[32,178,170],"lightskyblue":[135,206,250],"lightslategray":[119,136,153],"lightslategrey":[119,136,153],"lightsteelblue":[176,196,222],"lightyellow":[255,255,224],"limegreen":[50,205,50],"linen":[250,240,230],"magenta":[255,0,255],"mediumaquamarine":[102,205,170],"mediumblue":[0,0,205],"mediumorchid":[186,85,211],"mediumpurple":[147,112,219],"mediumseagreen":[60,179,113],"mediumslateblue":[123,104,238],"mediumspringgreen":[0,250,154],"mediumturquoise":[72,209,204],"mediumvioletred":[199,21,133],"midnightblue":[25,25,112],"mintcream":[245,255,250],"mistyrose":[255,228,225],"moccasin":[255,228,181],"navajowhite":[255,222,173],"oldlace":[253,245,230],"olivedrab":[107,142,35],"orange":[255,165,0],"orangered":[255,69,0],"orchid":[218,112,214],"palegoldenrod":[238,232,170],"palegreen":[152,251,152],"paleturquoise":[175,238,238],"palevioletred":[219,112,147],"papayawhip":[255,239,213],"peachpuff":[255,218,185],"peru":[205,133,63],"pink":[255,192,203],"plum":[221,160,221],"powderblue":[176,224,230],"rosybrown":[188,143,143],"royalblue":[65,105,225],"saddlebrown":[139,69,19],"salmon":[250,128,114],"sandybrown":[244,164,96],"seagreen":[46,139,87],"seashell":[255,245,238],"sienna":[160,82,45],"skyblue":[135,206,235],"slateblue":[106,90,205],"slategray":[112,128,144],"slategrey":[112,128,144],"snow":[255,250,250],"springgreen":[0,255,127],"steelblue":[70,130,180],"tan":[210,180,140],"thistle":[216,191,216],"tomato":[255,99,71],"turquoise":[64,224,208],"violet":[238,130,238],"wheat":[245,222,179],"whitesmoke":[245,245,245],"yellowgreen":[154,205,50]});return _11a;});},"dojox/charting/Theme":function(){define("dojox/charting/Theme",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/Color","dojox/color/_base","dojox/color/Palette","dojox/lang/utils","dojox/gfx/gradutils"],function(lang,arr,_120,_121,_122,_123,dlu,dgg){var _124=_120("dojox.charting.Theme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(_125){_125=_125||{};var def=_124.defaultTheme;arr.forEach(["chart","plotarea","axis","series","marker","indicator"],function(name){this[name]=lang.delegate(def[name],_125[name]);},this);if(_125.seriesThemes&&_125.seriesThemes.length){this.colors=null;this.seriesThemes=_125.seriesThemes.slice(0);}else{this.seriesThemes=null;this.colors=(_125.colors||_124.defaultColors).slice(0);}this.markerThemes=null;if(_125.markerThemes&&_125.markerThemes.length){this.markerThemes=_125.markerThemes.slice(0);}this.markers=_125.markers?lang.clone(_125.markers):lang.delegate(_124.defaultMarkers);this.noGradConv=_125.noGradConv;this.noRadialConv=_125.noRadialConv;if(_125.reverseFills){this.reverseFills();}this._current=0;this._buildMarkerArray();},clone:function(){var _126=new _124({chart:this.chart,plotarea:this.plotarea,axis:this.axis,series:this.series,marker:this.marker,colors:this.colors,markers:this.markers,indicator:this.indicator,seriesThemes:this.seriesThemes,markerThemes:this.markerThemes,noGradConv:this.noGradConv,noRadialConv:this.noRadialConv});arr.forEach(["clone","clear","next","skip","addMixin","post","getTick"],function(name){if(this.hasOwnProperty(name)){_126[name]=this[name];}},this);return _126;},clear:function(){this._current=0;},next:function(_127,_128,_129){var _12a=dlu.merge,_12b,_12c;if(this.colors){_12b=lang.delegate(this.series);_12c=lang.delegate(this.marker);var _12d=new _121(this.colors[this._current%this.colors.length]),old;if(_12b.stroke&&_12b.stroke.color){_12b.stroke=lang.delegate(_12b.stroke);old=new _121(_12b.stroke.color);_12b.stroke.color=new _121(_12d);_12b.stroke.color.a=old.a;}else{_12b.stroke={color:_12d};}if(_12c.stroke&&_12c.stroke.color){_12c.stroke=lang.delegate(_12c.stroke);old=new _121(_12c.stroke.color);_12c.stroke.color=new _121(_12d);_12c.stroke.color.a=old.a;}else{_12c.stroke={color:_12d};}if(!_12b.fill||_12b.fill.type){_12b.fill=_12d;}else{old=new _121(_12b.fill);_12b.fill=new _121(_12d);_12b.fill.a=old.a;}if(!_12c.fill||_12c.fill.type){_12c.fill=_12d;}else{old=new _121(_12c.fill);_12c.fill=new _121(_12d);_12c.fill.a=old.a;}}else{_12b=this.seriesThemes?_12a(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series;_12c=this.markerThemes?_12a(this.marker,this.markerThemes[this._current%this.markerThemes.length]):_12b;}var _12e=_12c&&_12c.symbol||this._markers[this._current%this._markers.length];var _12f={series:_12b,marker:_12c,symbol:_12e};++this._current;if(_128){_12f=this.addMixin(_12f,_127,_128);}if(_129){_12f=this.post(_12f,_127);}return _12f;},skip:function(){++this._current;},addMixin:function(_130,_131,_132,_133){if(lang.isArray(_132)){arr.forEach(_132,function(m){_130=this.addMixin(_130,_131,m);},this);}else{var t={};if("color" in _132){if(_131=="line"||_131=="area"){lang.setObject("series.stroke.color",_132.color,t);lang.setObject("marker.stroke.color",_132.color,t);}else{lang.setObject("series.fill",_132.color,t);}}arr.forEach(["stroke","outline","shadow","fill","font","fontColor","labelWiring"],function(name){var _134="marker"+name.charAt(0).toUpperCase()+name.substr(1),b=_134 in _132;if(name in _132){lang.setObject("series."+name,_132[name],t);if(!b){lang.setObject("marker."+name,_132[name],t);}}if(b){lang.setObject("marker."+name,_132[_134],t);}});if("marker" in _132){t.symbol=_132.marker;}_130=dlu.merge(_130,t);}if(_133){_130=this.post(_130,_131);}return _130;},post:function(_135,_136){var fill=_135.series.fill,t;if(!this.noGradConv&&this.shapeSpaces[fill.space]&&fill.type=="linear"){if(_136=="bar"){t={x1:fill.y1,y1:fill.x1,x2:fill.y2,y2:fill.x2};}else{if(!this.noRadialConv&&fill.space=="shape"&&(_136=="slice"||_136=="circle")){t={type:"radial",cx:0,cy:0,r:100};}}if(t){return dlu.merge(_135,{series:{fill:t}});}}return _135;},getTick:function(name,_137){var tick=this.axis.tick,_138=name+"Tick",_139=dlu.merge;if(tick){if(this.axis[_138]){tick=_139(tick,this.axis[_138]);}}else{tick=this.axis[_138];}if(_137){if(tick){if(_137[_138]){tick=_139(tick,_137[_138]);}}else{tick=_137[_138];}}return tick;},inspectObjects:function(f){arr.forEach(["chart","plotarea","axis","series","marker","indicator"],function(name){f(this[name]);},this);if(this.seriesThemes){arr.forEach(this.seriesThemes,f);}if(this.markerThemes){arr.forEach(this.markerThemes,f);}},reverseFills:function(){this.inspectObjects(function(o){if(o&&o.fill){o.fill=dgg.reverse(o.fill);}});},addMarker:function(name,_13a){this.markers[name]=_13a;this._buildMarkerArray();},setMarkers:function(obj){this.markers=obj;this._buildMarkerArray();},_buildMarkerArray:function(){this._markers=[];for(var p in this.markers){this._markers.push(this.markers[p]);}}});lang.mixin(_124,{defaultMarkers:{CIRCLE:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",SQUARE:"m-3,-3 l0,6 6,0 0,-6 z",DIAMOND:"m0,-3 l3,3 -3,3 -3,-3 z",CROSS:"m0,-3 l0,6 m-3,-3 l6,0",X:"m-3,-3 l6,6 m0,-6 l-6,6",TRIANGLE:"m-3,3 l3,-6 3,6 z",TRIANGLE_INVERTED:"m-3,-3 l3,6 3,-6 z"},defaultColors:["#54544c","#858e94","#6e767a","#948585","#474747"],defaultTheme:{chart:{stroke:null,fill:"white",pageStyle:null,titleGap:20,titlePos:"top",titleFont:"normal normal bold 14pt Tahoma",titleFontColor:"#333"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},tick:{color:"#666",position:"center",font:"normal normal normal 7pt Tahoma",fontColor:"#333",titleGap:15,titleFont:"normal normal normal 11pt Tahoma",titleFontColor:"#333",titleOrientation:"axis"},majorTick:{width:1,length:6},minorTick:{width:0.8,length:3},microTick:{width:0.5,length:1}},series:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000",labelWiring:{width:1,color:"#ccc"}},marker:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000"},indicator:{lineStroke:{width:1.5,color:"#333"},lineOutline:{width:0.1,color:"#ccc"},lineShadow:null,stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",radius:3,font:"normal normal normal 10pt Tahoma",fontColor:"#000",markerFill:"#ccc",markerSymbol:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",markerStroke:{width:1.5,color:"#333"},markerOutline:{width:0.1,color:"#ccc"},markerShadow:null}},defineColors:function(_13b){_13b=_13b||{};var l,c=[],n=_13b.num||5;if(_13b.colors){l=_13b.colors.length;for(var i=0;i1?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 _14b=function(s){var args=[],_14c=_14a.call(s,/\s*->\s*/m);if(_14c.length>1){while(_14c.length){s=_14c.pop();args=_14c.pop().split(/\s*,\s*|\s+/m);if(_14c.length){_14c.push("(function("+args+"){return ("+s+")})");}}}else{if(s.match(/\b_\b/)){args=["_"];}else{var l=s.match(/^\s*(?:[+*\/%&|\^\.=<>]|!=)/m),r=s.match(/[+\-*\/%&|\^\.=<>!]\s*$/m);if(l||r){if(l){args.push("$1");s="$1"+s;}if(r){args.push("$2");s=s+"$2";}}else{var vars=s.replace(/(?:\b[A-Z]|\.[a-zA-Z_$])[a-zA-Z_$\d]*|[a-zA-Z_$][a-zA-Z_$\d]*:|this|true|false|null|undefined|typeof|instanceof|in|delete|new|void|arguments|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|isFinite|isNaN|parseFloat|parseInt|unescape|dojo|dijit|dojox|window|document|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/g,"").match(/([a-z_$][a-z_$\d]*)/gi)||[],t={};arr.forEach(vars,function(v){if(!(v in t)){args.push(v);t[v]=1;}});}}}return {args:args,body:s};};var _14d=function(a){return a.length?function(){var i=a.length-1,x=df.lambda(a[i]).apply(this,arguments);for(--i;i>=0;--i){x=df.lambda(a[i]).call(this,x);}return x;}:function(x){return x;};};lang.mixin(df,{rawLambda:function(s){return _14b(s);},buildLambda:function(s){s=_14b(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _14d(s);}if(s in _149){return _149[s];}s=_14b(s);return _149[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_149={};}});return df;});},"dojox/lang/functional/fold":function(){define("dojox/lang/functional/fold",["dojo/_base/lang","dojo/_base/array","dojo/_base/window","./lambda"],function(lang,arr,win,df){var _14e={};lang.mixin(df,{foldl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var i,n;if(lang.isArray(a)){for(i=0,n=a.length;i0;--i,z=f.call(o,z,a[i],i,a)){}return z;},foldr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var n=a.length,z=a[n-1],i=n-1;for(;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},reduce:function(a,f,z){return arguments.length<3?df.foldl1(a,f):df.foldl(a,f,z);},reduceRight:function(a,f,z){return arguments.length<3?df.foldr1(a,f):df.foldr(a,f,z);},unfold:function(pr,f,g,z,o){o=o||win.global;f=df.lambda(f);g=df.lambda(g);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(f.call(o,z)),z=g.call(o,z)){}return t;}});});},"dojox/charting/Series":function(){define("dojox/charting/Series",["dojo/_base/lang","dojo/_base/declare","./Element"],function(lang,_150,_151){return _150("dojox.charting.Series",_151,{constructor:function(_152,data,_153){lang.mixin(this,_153);if(typeof this.plot!="string"){this.plot="default";}this.update(data);},clear:function(){this.dyn={};},update:function(data){if(lang.isArray(data)){this.data=data;}else{this.source=data;this.data=this.source.data;if(this.source.setSeriesObject){this.source.setSeriesObject(this);}}this.dirty=true;this.clear();}});});},"dojox/lang/functional":function(){define("dojox/lang/functional",["./functional/lambda","./functional/array","./functional/object"],function(df){return df;});},"dojox/gfx/gradutils":function(){define("dojox/gfx/gradutils",["./_base","dojo/_base/lang","./matrix","dojo/_base/Color"],function(g,lang,m,_154){var _155=g.gradutils={};function _156(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=o){if(i){var prev=c[i-1];return _154.blendColors(new _154(prev.color),new _154(stop.color),(o-prev.offset)/(stop.offset-prev.offset));}return stop.color;}}return c[len-1].color;};_155.getColor=function(fill,pt){var o;if(fill){switch(fill.type){case "linear":var _157=Math.atan2(fill.y2-fill.y1,fill.x2-fill.x1),_158=m.rotate(-_157),_159=m.project(fill.x2-fill.x1,fill.y2-fill.y1),p=m.multiplyPoint(_159,pt),pf1=m.multiplyPoint(_159,fill.x1,fill.y1),pf2=m.multiplyPoint(_159,fill.x2,fill.y2),_15a=m.multiplyPoint(_158,pf2.x-pf1.x,pf2.y-pf1.y).x;o=m.multiplyPoint(_158,p.x-pf1.x,p.y-pf1.y).x/_15a;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 _156(o,fill.colors);}return new _154(fill||[0,0,0,0]);};_155.reverse=function(fill){if(fill){switch(fill.type){case "linear":case "radial":fill=lang.delegate(fill);if(fill.colors){var c=fill.colors,l=c.length,i=0,stop,n=fill.colors=new Array(c.length);for(;i= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/collections":function(){define("dojox/collections",["./collections/_base"],function(_1){return _1;});},"dojox/collections/Queue":function(){define("dojox/collections/Queue",["dojo/_base/kernel","dojo/_base/array","./_base"],function(_2,_3,_4){_4.Queue=function(_5){var q=[];if(_5){q=q.concat(_5);}this.count=q.length;this.clear=function(){q=[];this.count=q.length;};this.clone=function(){return new _4.Queue(q);};this.contains=function(o){for(var i=0;ib.key){return 1;}if(a.key=0){_29.splice(i,1);}this.count=_29.length;};this.removeAt=function(i){_29.splice(i,1);this.count=_29.length;};this.reverse=function(){_29.reverse();};this.sort=function(fn){if(fn){_29.sort(fn);}else{_29.sort();}};this.setByIndex=function(i,obj){_29[i]=obj;this.count=_29.length;};this.toArray=function(){return [].concat(_29);};this.toString=function(_2b){return _29.join((_2b||","));};};return dxc.ArrayList;});},"dojox/collections/_base":function(){define("dojox/collections/_base",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array"],function(_2c,_2d,arr){var _2e=_2d.getObject("dojox.collections",true);_2e.DictionaryEntry=function(k,v){this.key=k;this.value=v;this.valueOf=function(){return this.value;};this.toString=function(){return String(this.value);};};_2e.Iterator=function(a){var _2f=0;this.element=a[_2f]||null;this.atEnd=function(){return (_2f>=a.length);};this.get=function(){if(this.atEnd()){return null;}this.element=a[_2f++];return this.element;};this.map=function(fn,_30){return arr.map(a,fn,_30);};this.reset=function(){_2f=0;this.element=a[_2f];};};_2e.DictionaryIterator=function(obj){var a=[];var _31={};for(var p in obj){if(!_31[p]){a.push(obj[p]);}}var _32=0;this.element=a[_32]||null;this.atEnd=function(){return (_32>=a.length);};this.get=function(){if(this.atEnd()){return null;}this.element=a[_32++];return this.element;};this.map=function(fn,_33){return arr.map(a,fn,_33);};this.reset=function(){_32=0;this.element=a[_32];};};return _2e;});},"dojox/collections/Dictionary":function(){define("dojox/collections/Dictionary",["dojo/_base/kernel","dojo/_base/array","./_base"],function(_34,_35,dxc){dxc.Dictionary=function(_36){var _37={};this.count=0;var _38={};this.add=function(k,v){var b=(k in _37);_37[k]=new dxc.DictionaryEntry(k,v);if(!b){this.count++;}};this.clear=function(){_37={};this.count=0;};this.clone=function(){return new dxc.Dictionary(this);};this.contains=this.containsKey=function(k){if(_38[k]){return false;}return (_37[k]!=null);};this.containsValue=function(v){var e=this.getIterator();while(e.get()){if(e.element.value==v){return true;}}return false;};this.entry=function(k){return _37[k];};this.forEach=function(fn,_39){var a=[];for(var p in _37){if(!_38[p]){a.push(_37[p]);}}_34.forEach(a,fn,_39);};this.getKeyList=function(){return (this.getIterator()).map(function(_3a){return _3a.key;});};this.getValueList=function(){return (this.getIterator()).map(function(_3b){return _3b.value;});};this.item=function(k){if(k in _37){return _37[k].valueOf();}return undefined;};this.getIterator=function(){return new dxc.DictionaryIterator(_37);};this.remove=function(k){if(k in _37&&!_38[k]){delete _37[k];this.count--;return true;}return false;};if(_36){var e=_36.getIterator();while(e.get()){this.add(e.element.key,e.element.value);}}};return dxc.Dictionary;});},"dojox/collections/BinaryTree":function(){define("dojox/collections/BinaryTree",["dojo/_base/kernel","dojo/_base/array","./_base"],function(_3c,_3d,dxc){dxc.BinaryTree=function(_3e){function _3f(_40,_41,_42){this.value=_40||null;this.right=_41||null;this.left=_42||null;this.clone=function(){var c=new _3f();if(this.value.value){c.value=this.value.clone();}else{c.value=this.value;}if(this.left!=null){c.left=this.left.clone();}if(this.right!=null){c.right=this.right.clone();}return c;};this.compare=function(n){if(this.value>n.value){return 1;}if(this.valued){return 1;}if(this.value0){return _4b(_4c.left,_4d);}else{return _4b(_4c.right,_4d);}};this.add=function(_4e){var n=new _3f(_4e);var i;var _4f=_50;var _51=null;while(_4f){i=_4f.compare(n);if(i==0){return;}_51=_4f;if(i>0){_4f=_4f.left;}else{_4f=_4f.right;}}this.count++;if(!_51){_50=n;}else{i=_51.compare(n);if(i>0){_51.left=n;}else{_51.right=n;}}};this.clear=function(){_50=null;this.count=0;};this.clone=function(){var c=new dxc.BinaryTree();var itr=this.getIterator();while(!itr.atEnd()){c.add(itr.get());}return c;};this.contains=function(_52){return this.search(_52)!=null;};this.deleteData=function(_53){var _54=_50;var _55=null;var i=_54.compareData(_53);while(i!=0&&_54!=null){if(i>0){_55=_54;_54=_54.left;}else{if(i<0){_55=_54;_54=_54.right;}}i=_54.compareData(_53);}if(!_54){return;}this.count--;if(!_54.right){if(!_55){_50=_54.left;}else{i=_55.compare(_54);if(i>0){_55.left=_54.left;}else{if(i<0){_55.right=_54.left;}}}}else{if(!_54.right.left){if(!_55){_50=_54.right;}else{i=_55.compare(_54);if(i>0){_55.left=_54.right;}else{if(i<0){_55.right=_54.right;}}}}else{var _56=_54.right.left;var _57=_54.right;while(_56.left!=null){_57=_56;_56=_56.left;}_57.left=_56.right;_56.left=_54.left;_56.right=_54.right;if(!_55){_50=_56;}else{i=_55.compare(_54);if(i>0){_55.left=_56;}else{if(i<0){_55.right=_56;}}}}}};this.getIterator=function(){var a=[];_43(_50,a);return new dxc.Iterator(a);};this.search=function(_58){return _4b(_50,_58);};this.toString=function(_59,sep){if(!_59){_59=dxc.BinaryTree.TraversalMethods.Inorder;}if(!sep){sep=",";}var s="";switch(_59){case dxc.BinaryTree.TraversalMethods.Preorder:s=_45(_50,sep);break;case dxc.BinaryTree.TraversalMethods.Inorder:s=_47(_50,sep);break;case dxc.BinaryTree.TraversalMethods.Postorder:s=_49(_50,sep);break;}if(s.length==0){return "";}else{return s.substring(0,s.length-sep.length);}};this.count=0;var _50=this.root=null;if(_3e){this.add(_3e);}};dxc.BinaryTree.TraversalMethods={Preorder:1,Inorder:2,Postorder:3};return dxc.BinaryTree;});},"dojox/collections/Stack":function(){define("dojox/collections/Stack",["dojo/_base/kernel","dojo/_base/array","./_base"],function(_5a,_5b,dxc){dxc.Stack=function(arr){var q=[];if(arr){q=q.concat(arr);}this.count=q.length;this.clear=function(){q=[];this.count=q.length;};this.clone=function(){return new dxc.Stack(q);};this.contains=function(o){for(var i=0;i= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/xml/parser":function(){define("dojox/xml/parser",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(_1){_1.getObject("xml.parser",true,dojox);dojox.xml.parser.parse=function(_2,_3){var _4=_1.doc;var _5;_3=_3||"text/xml";if(_2&&_1.trim(_2)&&"DOMParser" in _1.global){var _6=new DOMParser();_5=_6.parseFromString(_2,_3);var de=_5.documentElement;var _7="http://www.mozilla.org/newlayout/xml/parsererror.xml";if(de.nodeName=="parsererror"&&de.namespaceURI==_7){var _8=de.getElementsByTagNameNS(_7,"sourcetext")[0];if(_8){_8=_8.firstChild.data;}throw new Error("Error parsing text "+de.firstChild.data+" \n"+_8);}return _5;}else{if("ActiveXObject" in _1.global){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_1.some(dp,function(p){try{_5=new ActiveXObject(p);}catch(e){return false;}return true;});if(_2&&_5){_5.async=false;_5.loadXML(_2);var pe=_5.parseError;if(pe.errorCode!==0){throw new Error("Line: "+pe.line+"\n"+"Col: "+pe.linepos+"\n"+"Reason: "+pe.reason+"\n"+"Error Code: "+pe.errorCode+"\n"+"Source: "+pe.srcText);}}if(_5){return _5;}}else{if(_4.implementation&&_4.implementation.createDocument){if(_2&&_1.trim(_2)&&_4.createElement){var _9=_4.createElement("xml");_9.innerHTML=_2;var _a=_4.implementation.createDocument("foo","",null);_1.forEach(_9.childNodes,function(_b){_a.importNode(_b,true);});return _a;}else{return _4.implementation.createDocument("","",null);}}}}return null;};dojox.xml.parser.textContent=function(_c,_d){if(arguments.length>1){var _e=_c.ownerDocument||_1.doc;dojox.xml.parser.replaceChildren(_c,_e.createTextNode(_d));return _d;}else{if(_c.textContent!==undefined){return _c.textContent;}var _f="";if(_c){_1.forEach(_c.childNodes,function(_10){switch(_10.nodeType){case 1:case 5:_f+=dojox.xml.parser.textContent(_10);break;case 3:case 2:case 4:_f+=_10.nodeValue;}});}return _f;}};dojox.xml.parser.replaceChildren=function(_11,_12){var _13=[];if(_1.isIE){_1.forEach(_11.childNodes,function(_14){_13.push(_14);});}dojox.xml.parser.removeChildren(_11);_1.forEach(_13,_1.destroy);if(!_1.isArray(_12)){_11.appendChild(_12);}else{_1.forEach(_12,function(_15){_11.appendChild(_15);});}};dojox.xml.parser.removeChildren=function(_16){var _17=_16.childNodes.length;while(_16.hasChildNodes()){_16.removeChild(_16.firstChild);}return _17;};dojox.xml.parser.innerXML=function(_18){if(_18.innerXML){return _18.innerXML;}else{if(_18.xml){return _18.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(_18);}}}return null;};return dojox.xml.parser;});},"dojox/data/CsvStore":function(){define("dojox/data/CsvStore",["dojo/_base/lang","dojo/_base/declare","dojo/_base/xhr","dojo/_base/window","dojo/data/util/filter","dojo/data/util/simpleFetch"],function(_19,_1a,xhr,_1b,_1c,_1d){var _1e=_1a("dojox.data.CsvStore",null,{constructor:function(_1f){this._attributes=[];this._attributeIndexes={};this._dataArray=[];this._arrayOfAllItems=[];this._loadFinished=false;if(_1f.url){this.url=_1f.url;}this._csvData=_1f.data;if(_1f.label){this.label=_1f.label;}else{if(this.label===""){this.label=undefined;}}this._storeProp="_csvStore";this._idProp="_csvId";this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._loadInProgress=false;this._queuedFetches=[];this.identifier=_1f.identifier;if(this.identifier===""){delete this.identifier;}else{this._idMap={};}if("separator" in _1f){this.separator=_1f.separator;}if("urlPreventCache" in _1f){this.urlPreventCache=_1f.urlPreventCache?true:false;}},url:"",label:"",identifier:"",separator:",",urlPreventCache:false,_assertIsItem:function(_20){if(!this.isItem(_20)){throw new Error(this.declaredClass+": a function was passed an item argument that was not an item");}},_getIndex:function(_21){var idx=this.getIdentity(_21);if(this.identifier){idx=this._idMap[idx];}return idx;},getValue:function(_22,_23,_24){this._assertIsItem(_22);var _25=_24;if(typeof _23==="string"){var ai=this._attributeIndexes[_23];if(ai!=null){var _26=this._dataArray[this._getIndex(_22)];_25=_26[ai]||_24;}}else{throw new Error(this.declaredClass+": a function was passed an attribute argument that was not a string");}return _25;},getValues:function(_27,_28){var _29=this.getValue(_27,_28);return (_29?[_29]:[]);},getAttributes:function(_2a){this._assertIsItem(_2a);var _2b=[];var _2c=this._dataArray[this._getIndex(_2a)];for(var i=0;i<_2c.length;i++){if(_2c[i]!==""){_2b.push(this._attributes[i]);}}return _2b;},hasAttribute:function(_2d,_2e){this._assertIsItem(_2d);if(typeof _2e==="string"){var _2f=this._attributeIndexes[_2e];var _30=this._dataArray[this._getIndex(_2d)];return (typeof _2f!=="undefined"&&_2f<_30.length&&_30[_2f]!=="");}else{throw new Error(this.declaredClass+": a function was passed an attribute argument that was not a string");}},containsValue:function(_31,_32,_33){var _34=undefined;if(typeof _33==="string"){_34=_1c.patternToRegExp(_33,false);}return this._containsValue(_31,_32,_33,_34);},_containsValue:function(_35,_36,_37,_38){var _39=this.getValues(_35,_36);for(var i=0;i<_39.length;++i){var _3a=_39[i];if(typeof _3a==="string"&&_38){return (_3a.match(_38)!==null);}else{if(_37===_3a){return true;}}}return false;},isItem:function(_3b){if(_3b&&_3b[this._storeProp]===this){var _3c=_3b[this._idProp];if(this.identifier){var _3d=this._dataArray[this._idMap[_3c]];if(_3d){return true;}}else{if(_3c>=0&&_3c0){var _5d=_5c.split(this.separator);var j=0;while(j<_5d.length){var _5e=_5d[j];var _5f=_5e.replace(_57,"");var _60=_5f.replace(_58,"");var _61=_60.charAt(0);var _62=_60.charAt(_60.length-1);var _63=_60.charAt(_60.length-2);var _64=_60.charAt(_60.length-3);if(_60.length===2&&_60=="\"\""){_5d[j]="";}else{if((_61=="\"")&&((_62!="\"")||((_62=="\"")&&(_63=="\"")&&(_64!="\"")))){if(j+1===_5d.length){return;}var _65=_5d[j+1];_5d[j]=_5f+this.separator+_65;_5d.splice(j+1,1);}else{if((_61=="\"")&&(_62=="\"")){_60=_60.slice(1,(_60.length-1));_60=_60.replace(_59,"\"");}_5d[j]=_60;j+=1;}}}_5a.push(_5d);}}this._attributes=_5a.shift();for(i=0;i0){for(var i=0;i0){var _9d={};var _9e=true;var _9f=false;for(i=0;i<_9b.childNodes.length;i++){var _a0=_9b.childNodes[i];if(_a0.nodeType===1){var _a1=_a0.nodeName;if(!_9d[_a1]){_9c.push(_a1);_9d[_a1]=_a1;}_9e=true;}else{if(_a0.nodeType===3){_9f=true;}}}if(_9e){_9c.push("childNodes");}if(_9f){_9c.push("text()");}}for(i=0;i<_9b.attributes.length;i++){_9c.push("@"+_9b.attributes[i].nodeName);}if(this._attributeMap){for(var key in this._attributeMap){i=key.indexOf(".");if(i>0){var _a2=key.substring(0,i);if(_a2===_9b.nodeName){_9c.push(key.substring(i+1));}}else{_9c.push(key);}}}return _9c;},hasAttribute:function(_a3,_a4){return (this.getValue(_a3,_a4)!==undefined);},containsValue:function(_a5,_a6,_a7){var _a8=this.getValues(_a5,_a6);for(var i=0;i<_a8.length;i++){if((typeof _a7==="string")){if(_a8[i].toString&&_a8[i].toString()===_a7){return true;}}else{if(_a8[i]===_a7){return true;}}}return false;},isItem:function(_a9){if(_a9&&_a9.element&&_a9.store&&_a9.store===this){return true;}return false;},isItemLoaded:function(_aa){return this.isItem(_aa);},loadItem:function(_ab){},getFeatures:function(){var _ac={"dojo.data.api.Read":true,"dojo.data.api.Write":true};if(!this.sendQuery||this.keyAttribute!==""){_ac["dojo.data.api.Identity"]=true;}return _ac;},getLabel:function(_ad){if((this.label!=="")&&this.isItem(_ad)){var _ae=this.getValue(_ad,this.label);if(_ae){return _ae.toString();}}return undefined;},getLabelAttributes:function(_af){if(this.label!==""){return [this.label];}return null;},_fetchItems:function(_b0,_b1,_b2){var url=this._getFetchUrl(_b0);if(!url){_b2(new Error("No URL specified."),_b0);return;}var _b3=(!this.sendQuery?_b0:{});var _b4=this;var _b5={url:url,handleAs:"xml",preventCache:_b4.urlPreventCache};var _b6=xhr.get(_b5);_b6.addCallback(function(_b7){var _b8=_b4._getItems(_b7,_b3);if(_b8&&_b8.length>0){_b1(_b8,_b0);}else{_b1([],_b0);}});_b6.addErrback(function(_b9){_b2(_b9,_b0);});},_getFetchUrl:function(_ba){if(!this.sendQuery){return this.url;}var _bb=_ba.query;if(!_bb){return this.url;}if(_81.isString(_bb)){return this.url+_bb;}var _bc="";for(var _bd in _bb){var _be=_bb[_bd];if(_be){if(_bc){_bc+="&";}_bc+=(_bd+"="+_be);}}if(!_bc){return this.url;}var _bf=this.url;if(_bf.indexOf("?")<0){_bf+="?";}else{_bf+="&";}return _bf+_bc;},_getItems:function(_c0,_c1){var _c2=null;if(_c1){_c2=_c1.query;}var _c3=[];var _c4=null;if(this.rootItem!==""){_c4=_84(this.rootItem,_c0);}else{_c4=_c0.documentElement.childNodes;}var _c5=_c1.queryOptions?_c1.queryOptions.deep:false;if(_c5){_c4=this._flattenNodes(_c4);}for(var i=0;i<_c4.length;i++){var _c6=_c4[i];if(_c6.nodeType!=1){continue;}var _c7=this._getItem(_c6);if(_c2){var _c8=_c1.queryOptions?_c1.queryOptions.ignoreCase:false;var _c9;var _ca=false;var j;var _cb=true;var _cc={};for(var key in _c2){_c9=_c2[key];if(typeof _c9==="string"){_cc[key]=_87.patternToRegExp(_c9,_c8);}else{if(_c9){_cc[key]=_c9;}}}for(var _cd in _c2){_cb=false;var _ce=this.getValues(_c7,_cd);for(j=0;j<_ce.length;j++){_c9=_ce[j];if(_c9){var _cf=_c2[_cd];if((typeof _c9)==="string"&&(_cc[_cd])){if((_c9.match(_cc[_cd]))!==null){_ca=true;}else{_ca=false;}}else{if((typeof _c9)==="object"){if(_c9.toString&&(_cc[_cd])){var _d0=_c9.toString();if((_d0.match(_cc[_cd]))!==null){_ca=true;}else{_ca=false;}}else{if(_cf==="*"||_cf===_c9){_ca=true;}else{_ca=false;}}}}}if(_ca){break;}}if(!_ca){break;}}if(_cb||_ca){_c3.push(_c7);}}else{_c3.push(_c7);}}_85.forEach(_c3,function(_d1){if(_d1.element.parentNode){_d1.element.parentNode.removeChild(_d1.element);}},this);return _c3;},_flattenNodes:function(_d2){var _d3=[];if(_d2){var i;for(i=0;i<_d2.length;i++){var _d4=_d2[i];_d3.push(_d4);if(_d4.childNodes&&_d4.childNodes.length>0){_d3=_d3.concat(this._flattenNodes(_d4.childNodes));}}}return _d3;},close:function(_d5){},newItem:function(_d6,_d7){_d6=(_d6||{});var _d8=_d6.tagName;if(!_d8){_d8=this.rootItem;if(_d8===""){return null;}}var _d9=this._getDocument();var _da=_d9.createElement(_d8);for(var _db in _d6){var _dc;if(_db==="tagName"){continue;}else{if(_db==="text()"){_dc=_d9.createTextNode(_d6[_db]);_da.appendChild(_dc);}else{_db=this._getAttribute(_d8,_db);if(_db.charAt(0)==="@"){var _dd=_db.substring(1);_da.setAttribute(_dd,_d6[_db]);}else{var _de=_d9.createElement(_db);_dc=_d9.createTextNode(_d6[_db]);_de.appendChild(_dc);_da.appendChild(_de);}}}}var _df=this._getItem(_da);this._newItems.push(_df);var _e0=null;if(_d7&&_d7.parent&&_d7.attribute){_e0={item:_d7.parent,attribute:_d7.attribute,oldValue:undefined};var _e1=this.getValues(_d7.parent,_d7.attribute);if(_e1&&_e1.length>0){var _e2=_e1.slice(0,_e1.length);if(_e1.length===1){_e0.oldValue=_e1[0];}else{_e0.oldValue=_e1.slice(0,_e1.length);}_e2.push(_df);this.setValues(_d7.parent,_d7.attribute,_e2);_e0.newValue=this.getValues(_d7.parent,_d7.attribute);}else{this.setValue(_d7.parent,_d7.attribute,_df);_e0.newValue=_df;}}return _df;},deleteItem:function(_e3){var _e4=_e3.element;if(_e4.parentNode){this._backupItem(_e3);_e4.parentNode.removeChild(_e4);return true;}this._forgetItem(_e3);this._deletedItems.push(_e3);return true;},setValue:function(_e5,_e6,_e7){if(_e6==="tagName"){return false;}this._backupItem(_e5);var _e8=_e5.element;var _e9;var _ea;if(_e6==="childNodes"){_e9=_e7.element;_e8.appendChild(_e9);}else{if(_e6==="text()"){while(_e8.firstChild){_e8.removeChild(_e8.firstChild);}_ea=this._getDocument(_e8).createTextNode(_e7);_e8.appendChild(_ea);}else{_e6=this._getAttribute(_e8.nodeName,_e6);if(_e6.charAt(0)==="@"){var _eb=_e6.substring(1);_e8.setAttribute(_eb,_e7);}else{for(var i=0;i<_e8.childNodes.length;i++){var _ec=_e8.childNodes[i];if(_ec.nodeType===1&&_ec.nodeName===_e6){_e9=_ec;break;}}var _ed=this._getDocument(_e8);if(_e9){while(_e9.firstChild){_e9.removeChild(_e9.firstChild);}}else{_e9=_ed.createElement(_e6);_e8.appendChild(_e9);}_ea=_ed.createTextNode(_e7);_e9.appendChild(_ea);}}}return true;},setValues:function(_ee,_ef,_f0){if(_ef==="tagName"){return false;}this._backupItem(_ee);var _f1=_ee.element;var i;var _f2;var _f3;if(_ef==="childNodes"){while(_f1.firstChild){_f1.removeChild(_f1.firstChild);}for(i=0;i<_f0.length;i++){_f2=_f0[i].element;_f1.appendChild(_f2);}}else{if(_ef==="text()"){while(_f1.firstChild){_f1.removeChild(_f1.firstChild);}var _f4="";for(i=0;i<_f0.length;i++){_f4+=_f0[i];}_f3=this._getDocument(_f1).createTextNode(_f4);_f1.appendChild(_f3);}else{_ef=this._getAttribute(_f1.nodeName,_ef);if(_ef.charAt(0)==="@"){var _f5=_ef.substring(1);_f1.setAttribute(_f5,_f0[0]);}else{for(i=_f1.childNodes.length-1;i>=0;i--){var _f6=_f1.childNodes[i];if(_f6.nodeType===1&&_f6.nodeName===_ef){_f1.removeChild(_f6);}}var _f7=this._getDocument(_f1);for(i=0;i<_f0.length;i++){_f2=_f7.createElement(_ef);_f3=_f7.createTextNode(_f0[i]);_f2.appendChild(_f3);_f1.appendChild(_f2);}}}}return true;},unsetAttribute:function(_f8,_f9){if(_f9==="tagName"){return false;}this._backupItem(_f8);var _fa=_f8.element;if(_f9==="childNodes"||_f9==="text()"){while(_fa.firstChild){_fa.removeChild(_fa.firstChild);}}else{_f9=this._getAttribute(_fa.nodeName,_f9);if(_f9.charAt(0)==="@"){var _fb=_f9.substring(1);_fa.removeAttribute(_fb);}else{for(var i=_fa.childNodes.length-1;i>=0;i--){var _fc=_fa.childNodes[i];if(_fc.nodeType===1&&_fc.nodeName===_f9){_fa.removeChild(_fc);}}}}return true;},save:function(_fd){if(!_fd){_fd={};}var i;for(i=0;i=0||this._getItemIndex(this._deletedItems,_100)>=0||this._getItemIndex(this._modifiedItems,_100)>=0);}else{return (this._newItems.length>0||this._deletedItems.length>0||this._modifiedItems.length>0);}},_saveItem:function(item,_101,_102){var url;var _103;if(_102==="PUT"){url=this._getPutUrl(item);}else{if(_102==="DELETE"){url=this._getDeleteUrl(item);}else{url=this._getPostUrl(item);}}if(!url){if(_101.onError){_103=_101.scope||_86.global;_101.onError.call(_103,new Error("No URL for saving content: "+this._getPostContent(item)));}return;}var _104={url:url,method:(_102||"POST"),contentType:"text/xml",handleAs:"xml"};var _105;if(_102==="PUT"){_104.putData=this._getPutContent(item);_105=xhr.put(_104);}else{if(_102==="DELETE"){_105=xhr.del(_104);}else{_104.postData=this._getPostContent(item);_105=xhr.post(_104);}}_103=(_101.scope||_86.global);var self=this;_105.addCallback(function(data){self._forgetItem(item);if(_101.onComplete){_101.onComplete.call(_103);}});_105.addErrback(function(_106){if(_101.onError){_101.onError.call(_103,_106);}});},_getPostUrl:function(item){return this.url;},_getPutUrl:function(item){return this.url;},_getDeleteUrl:function(item){var url=this.url;if(item&&this.keyAttribute!==""){var _107=this.getValue(item,this.keyAttribute);if(_107){var key=this.keyAttribute.charAt(0)==="@"?this.keyAttribute.substring(1):this.keyAttribute;url+=url.indexOf("?")<0?"?":"&";url+=key+"="+_107;}}return url;},_getPostContent:function(item){return ""+_88.innerXML(item.element);},_getPutContent:function(item){return ""+_88.innerXML(item.element);},_getAttribute:function(_108,_109){if(this._attributeMap){var key=_108+"."+_109;var _10a=this._attributeMap[key];if(_10a){_109=_10a;}else{_10a=this._attributeMap[_109];if(_10a){_109=_10a;}}}return _109;},_getItem:function(_10b){try{var q=null;if(this.keyAttribute===""){q=this._getXPath(_10b);}return new _89(_10b,this,q);}catch(e){}return null;},_getItemIndex:function(_10c,_10d){for(var i=0;i<_10c.length;i++){if(_10c[i].element===_10d){return i;}}return -1;},_backupItem:function(item){var _10e=this._getRootElement(item.element);if(this._getItemIndex(this._newItems,_10e)>=0||this._getItemIndex(this._modifiedItems,_10e)>=0){return;}if(_10e!=item.element){item=this._getItem(_10e);}item._backup=_10e.cloneNode(true);this._modifiedItems.push(item);},_restoreItems:function(_10f){_85.forEach(_10f,function(item){if(item._backup){item.element=item._backup;item._backup=null;}},this);},_forgetItem:function(item){var _110=item.element;var _111=this._getItemIndex(this._newItems,_110);if(_111>=0){this._newItems.splice(_111,1);}_111=this._getItemIndex(this._deletedItems,_110);if(_111>=0){this._deletedItems.splice(_111,1);}_111=this._getItemIndex(this._modifiedItems,_110);if(_111>=0){this._modifiedItems.splice(_111,1);}},_getDocument:function(_112){if(_112){return _112.ownerDocument;}else{if(!this._document){return _88.parse();}}return null;},_getRootElement:function(_113){while(_113.parentNode){_113=_113.parentNode;}return _113;},_getXPath:function(_114){var _115=null;if(!this.sendQuery){var node=_114;_115="";while(node&&node!=_114.ownerDocument){var pos=0;var _116=node;var name=node.nodeName;while(_116){_116=_116.previousSibling;if(_116&&_116.nodeName===name){pos++;}}var temp="/"+name+"["+pos+"]";if(_115){_115=temp+_115;}else{_115=temp;}node=node.parentNode;}}return _115;},getIdentity:function(item){if(!this.isItem(item)){throw new Error("dojox.data.XmlStore: Object supplied to getIdentity is not an item");}else{var id=null;if(this.sendQuery&&this.keyAttribute!==""){id=this.getValue(item,this.keyAttribute).toString();}else{if(!this.serverQuery){if(this.keyAttribute!==""){id=this.getValue(item,this.keyAttribute).toString();}else{id=item.q;}}}return id;}},getIdentityAttributes:function(item){if(!this.isItem(item)){throw new Error("dojox.data.XmlStore: Object supplied to getIdentity is not an item");}else{if(this.keyAttribute!==""){return [this.keyAttribute];}else{return null;}}},fetchItemByIdentity:function(_117){var _118=null;var _119=null;var self=this;var url=null;var _11a=null;var _11b=null;if(!self.sendQuery){_118=function(data){if(data){if(self.keyAttribute!==""){var _11c={};_11c.query={};_11c.query[self.keyAttribute]=_117.identity;_11c.queryOptions={deep:true};var _11d=self._getItems(data,_11c);_119=_117.scope||_86.global;if(_11d.length===1){if(_117.onItem){_117.onItem.call(_119,_11d[0]);}}else{if(_11d.length===0){if(_117.onItem){_117.onItem.call(_119,null);}}else{if(_117.onError){_117.onError.call(_119,new Error("Items array size for identity lookup greater than 1, invalid keyAttribute."));}}}}else{var _11e=_117.identity.split("/");var i;var node=data;for(i=0;i<_11e.length;i++){if(_11e[i]&&_11e[i]!==""){var _11f=_11e[i];_11f=_11f.substring(0,_11f.length-1);var vals=_11f.split("[");var tag=vals[0];var _120=parseInt(vals[1],10);var pos=0;if(node){var _121=node.childNodes;if(_121){var j;var _122=null;for(j=0;j<_121.length;j++){var _123=_121[j];if(_123.nodeName===tag){if(pos<_120){pos++;}else{_122=_123;break;}}}if(_122){node=_122;}else{node=null;}}else{node=null;}}else{break;}}}var item=null;if(node){item=self._getItem(node);if(item.element.parentNode){item.element.parentNode.removeChild(item.element);}}if(_117.onItem){_119=_117.scope||_86.global;_117.onItem.call(_119,item);}}}};url=this._getFetchUrl(null);_11a={url:url,handleAs:"xml",preventCache:self.urlPreventCache};_11b=xhr.get(_11a);_11b.addCallback(_118);if(_117.onError){_11b.addErrback(function(_124){var s=_117.scope||_86.global;_117.onError.call(s,_124);});}}else{if(self.keyAttribute!==""){var _125={query:{}};_125.query[self.keyAttribute]=_117.identity;url=this._getFetchUrl(_125);_118=function(data){var item=null;if(data){var _126=self._getItems(data,{});if(_126.length===1){item=_126[0];}else{if(_117.onError){var _127=_117.scope||_86.global;_117.onError.call(_127,new Error("More than one item was returned from the server for the denoted identity"));}}}if(_117.onItem){_127=_117.scope||_86.global;_117.onItem.call(_127,item);}};_11a={url:url,handleAs:"xml",preventCache:self.urlPreventCache};_11b=xhr.get(_11a);_11b.addCallback(_118);if(_117.onError){_11b.addErrback(function(_128){var s=_117.scope||_86.global;_117.onError.call(s,_128);});}}else{if(_117.onError){var s=_117.scope||_86.global;_117.onError.call(s,new Error("XmlStore is not told that the server to provides identity support. No keyAttribute specified."));}}}}});_81.extend(_8a,_83);return _8a;});},"dojo/_base/query":function(){define("dojo/_base/query",["./kernel","../query","./NodeList"],function(dojo){return dojo.query;});},"*noref":1}});define("dojox/_dojox_data_basic",[],1);require(["dojox/data/XmlStore","dojox/data/CsvStore"]);/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/fx/easing":function(){define("dojox/fx/easing",["dojo/_base/lang","dojo/_base/kernel","dojo/fx/easing"],function(_1,_2,_3){_2.deprecated("dojox.fx.easing","Upgraded to Core, use dojo.fx.easing instead","2.0");var _4=_1.getObject("dojox.fx",true);_4.easing=_3;return _3;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/_base/sniff","./main"],function(_5,_6,_7,_8,_9,_a,_b){var _c;var _d={_isElementShown:function(_e){var s=_8.get(_e);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_7.get(_e,"type")!="hidden");},hasDefaultTabStop:function(_f){switch(_f.nodeName.toLowerCase()){case "a":return _7.has(_f,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _10;try{var _11=_f.contentDocument;if("designMode" in _11&&_11.designMode=="on"){return true;}_10=_11.body;}catch(e1){try{_10=_f.contentWindow.document.body;}catch(e2){return false;}}return _10&&(_10.contentEditable=="true"||(_10.firstChild&&_10.firstChild.contentEditable=="true"));default:return _f.contentEditable=="true";}},effectiveTabIndex:function(_12){if(_7.get(_12,"disabled")){return _c;}else{if(_7.has(_12,"tabIndex")){return +_7.get(_12,"tabIndex");}else{return _d.hasDefaultTabStop(_12)?0:_c;}}},isTabNavigable:function(_13){return _d.effectiveTabIndex(_13)>=0;},isFocusable:function(_14){return _d.effectiveTabIndex(_14)>=-1;},_getTabNavigable:function(_15){var _16,_17,_18,_19,_1a,_1b,_1c={};function _1d(_1e){return _1e&&_1e.tagName.toLowerCase()=="input"&&_1e.type&&_1e.type.toLowerCase()=="radio"&&_1e.name&&_1e.name.toLowerCase();};var _1f=_d._isElementShown,_20=_d.effectiveTabIndex;var _21=function(_22){for(var _23=_22.firstChild;_23;_23=_23.nextSibling){if(_23.nodeType!=1||(_a("ie")<=9&&_23.scopeName!=="HTML")||!_1f(_23)){continue;}var _24=_20(_23);if(_24>=0){if(_24==0){if(!_16){_16=_23;}_17=_23;}else{if(_24>0){if(!_18||_24<_19){_19=_24;_18=_23;}if(!_1a||_24>=_1b){_1b=_24;_1a=_23;}}}var rn=_1d(_23);if(_7.get(_23,"checked")&&rn){_1c[rn]=_23;}}if(_23.nodeName.toUpperCase()!="SELECT"){_21(_23);}}};if(_1f(_15)){_21(_15);}function rs(_25){return _1c[_1d(_25)]||_25;};return {first:rs(_16),last:rs(_17),lowest:rs(_18),highest:rs(_1a)};},getFirstInTabbingOrder:function(_26,doc){var _27=_d._getTabNavigable(_6.byId(_26,doc));return _27.lowest?_27.lowest:_27.first;},getLastInTabbingOrder:function(_28,doc){var _29=_d._getTabNavigable(_6.byId(_28,doc));return _29.last?_29.last:_29.highest;}};1&&_9.mixin(_b,_d);return _d;});},"dojo/NodeList-fx":function(){define("dojo/NodeList-fx",["./_base/NodeList","./_base/lang","./_base/connect","./_base/fx","./fx"],function(_2a,_2b,_2c,_2d,_2e){_2b.extend(_2a,{_anim:function(obj,_2f,_30){_30=_30||{};var a=_2e.combine(this.map(function(_31){var _32={node:_31};_2b.mixin(_32,_30);return obj[_2f](_32);}));return _30.auto?a.play()&&this:a;},wipeIn:function(_33){return this._anim(_2e,"wipeIn",_33);},wipeOut:function(_34){return this._anim(_2e,"wipeOut",_34);},slideTo:function(_35){return this._anim(_2e,"slideTo",_35);},fadeIn:function(_36){return this._anim(_2d,"fadeIn",_36);},fadeOut:function(_37){return this._anim(_2d,"fadeOut",_37);},animateProperty:function(_38){return this._anim(_2d,"animateProperty",_38);},anim:function(_39,_3a,_3b,_3c,_3d){var _3e=_2e.combine(this.map(function(_3f){return _2d.animateProperty({node:_3f,properties:_39,duration:_3a||350,easing:_3b});}));if(_3c){_2c.connect(_3e,"onEnd",_3c);}return _3e.play(_3d||0);}});return _2a;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_40,_41,_42,_43,_44,_45,dom,_46,_47,_48,_49,_4a,_4b,_4c,on,_4d,_4e,_4f,win,_50){if(!_4b.isAsync){_4d(0,function(){var _51=["dijit/_base/manager"];_40(_51);});}var _52={};function _53(obj){var ret={};for(var _54 in obj){ret[_54.toLowerCase()]=true;}return ret;};function _55(_56){return function(val){_46[val?"set":"remove"](this.domNode,_56,val);this._set(_56,val);};};function _57(a,b){return a===b||(a!==a&&b!==b);};return _45("dijit._WidgetBase",_4e,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_55("lang"),dir:"",_setDirAttr:_55("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_43.blankGif||_40.toUrl("dojo/resources/blank.gif"),postscript:function(_58,_59){this.create(_58,_59);},create:function(_5a,_5b){this.srcNodeRef=dom.byId(_5b);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_5a){this.params=_5a;_4c.mixin(this,_5a);}this.postMixInProperties();if(!this.id){this.id=_50.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_50.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _5c=this.srcNodeRef;if(_5c&&_5c.parentNode&&this.domNode!==_5c){_5c.parentNode.replaceChild(this.domNode,_5c);}}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 _5d=this.constructor,_5e=_5d._setterAttrs;if(!_5e){_5e=(_5d._setterAttrs=[]);for(var _5f in this.attributeMap){_5e.push(_5f);}var _60=_5d.prototype;for(var _61 in _60){if(_61 in this.attributeMap){continue;}var _62="_set"+_61.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_62 in _60){_5e.push(_61);}}}_41.forEach(_5e,function(_63){if(this.params&&_63 in this.params){}else{if(this[_63]){this.set(_63,this[_63]);}}},this);for(var _64 in this.params){this.set(_64,this[_64]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_48.create("div");}if(this.baseClass){var _65=this.baseClass.split(" ");if(!this.isLeftToRight()){_65=_65.concat(_41.map(_65,function(_66){return _66+"Rtl";}));}_47.add(this.domNode,_65);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_41.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_4c.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_67){this._beingDestroyed=true;this.destroyDescendants(_67);this.destroy(_67);},destroy:function(_68){this._beingDestroyed=true;this.uninitialize();var c;while((c=this._connects.pop())){c.remove();}var w;while((w=this._supportingWidgets.pop())){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_68);_50.remove(this.id);this._destroyed=true;},destroyRendering:function(_69){if(this.bgIframe){this.bgIframe.destroy(_69);delete this.bgIframe;}if(this.domNode){if(_69){_46.remove(this.domNode,"widgetId");}else{_48.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_69){_48.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_6a){_41.forEach(this.getChildren(),function(_6b){if(_6b.destroyRecursive){_6b.destroyRecursive(_6a);}});},uninitialize:function(){return false;},_setStyleAttr:function(_6c){var _6d=this.domNode;if(_4c.isObject(_6c)){_4a.set(_6d,_6c);}else{if(_6d.style.cssText){_6d.style.cssText+="; "+_6c;}else{_6d.style.cssText=_6c;}}this._set("style",_6c);},_attrToDom:function(_6e,_6f,_70){_70=arguments.length>=3?_70:this.attributeMap[_6e];_41.forEach(_4c.isArray(_70)?_70:[_70],function(_71){var _72=this[_71.node||_71||"domNode"];var _73=_71.type||"attribute";switch(_73){case "attribute":if(_4c.isFunction(_6f)){_6f=_4c.hitch(this,_6f);}var _74=_71.attribute?_71.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_6e)?_6e.toLowerCase():_6e);_46.set(_72,_74,_6f);break;case "innerText":_72.innerHTML="";_72.appendChild(win.doc.createTextNode(_6f));break;case "innerHTML":_72.innerHTML=_6f;break;case "class":_47.replace(_72,_6f,this[_6e]);break;}},this);},get:function(_75){var _76=this._getAttrNames(_75);return this[_76.g]?this[_76.g]():this[_75];},set:function(_77,_78){if(typeof _77==="object"){for(var x in _77){this.set(x,_77[x]);}return this;}var _79=this._getAttrNames(_77),_7a=this[_79.s];if(_4c.isFunction(_7a)){var _7b=_7a.apply(this,Array.prototype.slice.call(arguments,1));}else{var _7c=this.focusNode&&!_4c.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_7c].tagName,_7d=_52[tag]||(_52[tag]=_53(this[_7c])),map=_77 in this.attributeMap?this.attributeMap[_77]:_79.s in this?this[_79.s]:((_79.l in _7d&&typeof _78!="function")||/^aria-|^data-|^role$/.test(_77))?_7c:null;if(map!=null){this._attrToDom(_77,_78,map);}this._set(_77,_78);}return _7b||this;},_attrPairNames:{},_getAttrNames:function(_7e){var apn=this._attrPairNames;if(apn[_7e]){return apn[_7e];}var uc=_7e.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_7e]={n:_7e+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_7f,_80){var _81=this[_7f];this[_7f]=_80;if(this._watchCallbacks&&this._created&&!_57(_80,_81)){this._watchCallbacks(_7f,_81,_80);}},on:function(_82,_83){return _42.after(this,this._onMap(_82),_83,true);},_onMap:function(_84){var _85=this.constructor,map=_85._onMap;if(!map){map=(_85._onMap={});for(var _86 in _85.prototype){if(/^on/.test(_86)){map[_86.replace(/^on/,"").toLowerCase()]=_86;}}}return map[_84.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_50.findWidgets(this.containerNode):[];},getParent:function(){return _50.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_87,_88){var _89=_44.connect(obj,_87,this,_88);this._connects.push(_89);return _89;},disconnect:function(_8a){var i=_41.indexOf(this._connects,_8a);if(i!=-1){_8a.remove();this._connects.splice(i,1);}},subscribe:function(t,_8b){var _8c=_4f.subscribe(t,_4c.hitch(this,_8b));this._connects.push(_8c);return _8c;},unsubscribe:function(_8d){this.disconnect(_8d);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_49.isBodyLtr();},isFocusable:function(){return this.focus&&(_4a.get(this.domNode,"display")!="none");},placeAt:function(_8e,_8f){if(_8e.declaredClass&&_8e.addChild){_8e.addChild(this,_8f);}else{_48.place(this.domNode,_8e,_8f);}return this;},getTextDir:function(_90,_91){return _91;},applyTextDir:function(){},defer:function(fcn,_92){var _93=setTimeout(_4c.hitch(this,function(){if(!_93){return;}_93=null;if(!this._destroyed){_4c.hitch(this,fcn)();}}),_92||0);return {remove:function(){if(_93){clearTimeout(_93);_93=null;}return null;}};}});});},"dojox/fx":function(){define("dojox/fx",["./fx/_base"],function(_94){return _94;});},"dojo/Stateful":function(){define("dojo/Stateful",["./_base/declare","./_base/lang","./_base/array"],function(_95,_96,_97){return _95("dojo.Stateful",null,{postscript:function(_98){if(_98){_96.mixin(this,_98);}},get:function(_99){return this[_99];},set:function(_9a,_9b){if(typeof _9a==="object"){for(var x in _9a){if(_9a.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,_9a[x]);}}return this;}var _9c=this[_9a];this[_9a]=_9b;if(this._watchCallbacks){this._watchCallbacks(_9a,_9c,_9b);}return this;},watch:function(_9d,_9e){var _9f=this._watchCallbacks;if(!_9f){var _a0=this;_9f=this._watchCallbacks=function(_a1,_a2,_a3,_a4){var _a5=function(_a6){if(_a6){_a6=_a6.slice();for(var i=0,l=_a6.length;i=9||has("trident")){_f6.x=0;}if(_f6.y<0||!_ec||_ec>=9||has("trident")){_f6.y=0;}}else{var pb=_dd.getPadBorderExtents(el);_f6.w-=pb.w;_f6.h-=pb.h;_f6.x+=pb.l;_f6.y+=pb.t;var _f8=el.clientWidth,_f9=_f6.w-_f8;if(_f8>0&&_f9>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_f6.x+=_f9;}_f6.w=_f8;}_f8=el.clientHeight;_f9=_f6.h-_f8;if(_f8>0&&_f9>0){_f6.h=_f8;}}if(_f7){if(_f6.y<0){_f6.h+=_f6.y;_f6.y=0;}if(_f6.x<0){_f6.w+=_f6.x;_f6.x=0;}if(_f6.y+_f6.h>_f0){_f6.h=_f0-_f6.y;}if(_f6.x+_f6.w>_ef){_f6.w=_ef-_f6.x;}}var l=_f2.x-_f6.x,t=_f2.y-_f6.y,r=l+_f2.w-_f6.w,bot=t+_f2.h-_f6.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_f1||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_ec==8&&!_ee)||_ec>=9||has("trident"))){s=-s;}old=el.scrollLeft;_f5(el,s,0);s=el.scrollLeft-old;_f2.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_f1||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_f5(el,0,s);s=el.scrollTop-old;_f2.y-=s;}el=(el!=_f1)&&!_f7&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_e9.scrollIntoView(false);}};return _e5;});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(on,_fa,_fb,_fc,has,_fd,win){var _fe=null;if(has("ie")<9){(function(){var _ff=function(evt){_fe=evt.srcElement;};win.doc.attachEvent("onkeydown",_ff);_fd.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_ff);});})();}else{win.doc.addEventListener("keydown",function(evt){_fe=evt.target;},true);}var _100=function(node,_101){if(/input|button/i.test(node.nodeName)){return on(node,"click",_101);}else{function _102(e){return (e.keyCode==_fb.ENTER||e.keyCode==_fb.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _103=[on(node,"keypress",function(e){if(_102(e)){_fe=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_102(e)&&e.target==_fe){_fe=null;_101.call(this,e);}}),on(node,"click",function(e){_101.call(this,e);})];return {remove:function(){_fa.forEach(_103,function(h){h.remove();});}};}};return _fc("dijit._OnDijitClickMixin",null,{connect:function(obj,_104,_105){return this.inherited(arguments,[obj,_104=="ondijitclick"?_100:_104,_105]);}});});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_106,_107,_108,_109,_10a,_10b,has,win){if(has("ie")||has("mozilla")){_10b(90,function(){var div=_109.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_107.blankGif||_106.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_10a.getComputedStyle(div);if(cs){var _10c=cs.backgroundImage;var _10d=(cs.borderTopColor==cs.borderRightColor)||(_10c!=null&&(_10c=="none"||_10c=="url(invalid-url:)"));if(_10d){_108.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dojox/fx/_base":function(){define("dojox/fx/_base",["dojo/_base/array","dojo/_base/lang","dojo/_base/fx","dojo/fx","dojo/dom","dojo/dom-style","dojo/dom-geometry","dojo/_base/connect","dojo/_base/html"],function(_10e,lang,_10f,_110,dom,_111,_112,_113,_114){var _115=lang.getObject("dojox.fx",true);_115.sizeTo=function(args){var node=args.node=dom.byId(args.node),abs="absolute";var _116=args.method||"chain";if(!args.duration){args.duration=500;}if(_116=="chain"){args.duration=Math.floor(args.duration/2);}var top,_117,left,_118,_119,_11a=null;var init=(function(n){return function(){var cs=_111.getComputedStyle(n),pos=cs.position,w=cs.width,h=cs.height;top=(pos==abs?n.offsetTop:parseInt(cs.top)||0);left=(pos==abs?n.offsetLeft:parseInt(cs.left)||0);_119=(w=="auto"?0:parseInt(w));_11a=(h=="auto"?0:parseInt(h));_118=left-Math.floor((args.width-_119)/2);_117=top-Math.floor((args.height-_11a)/2);if(pos!=abs&&pos!="relative"){var ret=_111.coords(n,true);top=ret.y;left=ret.x;n.style.position=abs;n.style.top=top+"px";n.style.left=left+"px";}};})(node);var _11b=_10f.animateProperty(lang.mixin({properties:{height:function(){init();return {end:args.height||0,start:_11a};},top:function(){return {start:top,end:_117};}}},args));var _11c=_10f.animateProperty(lang.mixin({properties:{width:function(){return {start:_119,end:args.width||0};},left:function(){return {start:left,end:_118};}}},args));var anim=_110[(args.method=="combine"?"combine":"chain")]([_11b,_11c]);return anim;};_115.slideBy=function(args){var node=args.node=dom.byId(args.node),top,left;var init=(function(n){return function(){var cs=_111.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=_112.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var _11d=_10f.animateProperty(lang.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));_113.connect(_11d,"beforeBegin",_11d,init);return _11d;};_115.crossFade=function(args){var _11e=args.nodes[0]=dom.byId(args.nodes[0]),op1=_114.style(_11e,"opacity"),_11f=args.nodes[1]=dom.byId(args.nodes[1]),op2=_114.style(_11f,"opacity");var _120=_110.combine([_10f[(op1==0?"fadeIn":"fadeOut")](lang.mixin({node:_11e},args)),_10f[(op1==0?"fadeOut":"fadeIn")](lang.mixin({node:_11f},args))]);return _120;};_115.highlight=function(args){var node=args.node=dom.byId(args.node);args.duration=args.duration||400;var _121=args.color||"#ffff99",_122=_114.style(node,"backgroundColor");if(_122=="rgba(0, 0, 0, 0)"){_122="transparent";}var anim=_10f.animateProperty(lang.mixin({properties:{backgroundColor:{start:_121,end:_122}}},args));if(_122=="transparent"){_113.connect(anim,"onEnd",anim,function(){node.style.backgroundColor=_122;});}return anim;};_115.wipeTo=function(args){args.node=dom.byId(args.node);var node=args.node,s=node.style;var dir=(args.width?"width":"height"),_123=args[dir],_124={};_124[dir]={start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s[dir]="1px";s.display="";s.visibility="";return 1;}else{var now=_114.style(node,dir);return Math.max(now,1);}},end:_123};var anim=_10f.animateProperty(lang.mixin({properties:_124},args));return anim;};return _115;});},"dijit/_Widget":function(){define("dijit/_Widget",["dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/ready","./registry","./_WidgetBase","./_OnDijitClickMixin","./_FocusMixin","dojo/uacss","./hccss"],function(_125,_126,_127,_128,_129,lang,_12a,_12b,_12c,_12d,_12e,_12f){function _130(){};function _131(_132){return function(obj,_133,_134,_135){if(obj&&typeof _133=="string"&&obj[_133]==_130){return obj.on(_133.substring(2).toLowerCase(),lang.hitch(_134,_135));}return _132.apply(_127,arguments);};};_125.around(_127,"connect",_131);if(_129.connect){_125.around(_129,"connect",_131);}var _136=_128("dijit._Widget",[_12d,_12e,_12f],{onClick:_130,onDblClick:_130,onKeyDown:_130,onKeyPress:_130,onKeyUp:_130,onMouseDown:_130,onMouseMove:_130,onMouseOut:_130,onMouseOver:_130,onMouseLeave:_130,onMouseEnter:_130,onMouseUp:_130,constructor:function(_137){this._toConnect={};for(var name in _137){if(this[name]===_130){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_137[name];delete _137[name];}}},postCreate:function(){this.inherited(arguments);for(var name in this._toConnect){this.on(name,this._toConnect[name]);}delete this._toConnect;},on:function(type,func){if(this[this._onMap(type)]===_130){return _127.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_138){_129.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_138);},attr:function(name,_139){if(_126.isDebug){var _13a=arguments.callee._ach||(arguments.callee._ach={}),_13b=(arguments.callee.caller||"unknown caller").toString();if(!_13a[_13b]){_129.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_13b,"","2.0");_13a[_13b]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_129.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_12a("[widgetId]",this.containerNode).map(_12c.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_129.isAsync){_12b(0,function(){var _13c=["dijit/_base"];require(_13c);});}return _136;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_13d,_13e,_13f,lang){lang.extend(_13e,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _13f("dijit._FocusMixin",null,{_focusManager:_13d});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/domReady","dojo/_base/sniff","dojo/Stateful","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_140,_141,dom,_142,_143,_144,lang,on,_145,has,_146,win,_147,a11y,_148,_149){var _14a=_141([_146,_144],{curNode:null,activeStack:[],constructor:function(){var _14b=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_140.before(_143,"empty",_14b);_140.before(_143,"destroy",_14b);},registerIframe:function(_14c){return this.registerWin(_14c.contentWindow,_14c);},registerWin:function(_14d,_14e){var _14f=this,body=_14d.document&&_14d.document.body;if(body){var mdh=on(body,"mousedown",function(evt){_14f._justMouseDowned=true;setTimeout(function(){_14f._justMouseDowned=false;},13);if(evt&&evt.target&&evt.target.parentNode==null){return;}_14f._onTouchNode(_14e||evt.target,"mouse");});var fih=on(body,"focusin",function(evt){if(!evt.target.tagName){return;}var tag=evt.target.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.target)){_14f._onFocusNode(_14e||evt.target);}else{_14f._onTouchNode(_14e||evt.target);}});var foh=on(body,"focusout",function(evt){_14f._onBlurNode(_14e||evt.target);});return {remove:function(){mdh.remove();fih.remove();foh.remove();mdh=fih=foh=null;body=null;}};}},_onBlurNode:function(node){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(lang.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _150=[];try{while(node){var _151=_142.get(node,"dijitPopupParent");if(_151){node=_148.byId(_151).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_147.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_152=id&&_148.byId(id);if(_152&&!(by=="mouse"&&_152.get("disabled"))){_150.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_150,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",node);},_setStack:function(_153,by){var _154=this.activeStack,_155=_154.length-1,_156=_153.length-1;if(_153[_156]==_154[_155]){return;}this.set("activeStack",_153);var _157,i;for(i=_155;i>=0&&_154[i]!=_153[i];i--){_157=_148.byId(_154[i]);if(_157){_157._hasBeenBlurred=true;_157.set("focused",false);if(_157._focusManager==this){_157._onBlur(by);}this.emit("widget-blur",_157,by);}}for(i++;i<=_156;i++){_157=_148.byId(_153[i]);if(_157){_157.set("focused",true);if(_157._focusManager==this){_157._onFocus(by);}this.emit("widget-focus",_157,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _158=new _14a();_145(function(){var _159=_158.registerWin(_147.get(document));if(has("ie")){on(window,"unload",function(){if(_159){_159.remove();_159=null;}});}});_149.focus=function(node){_158.focus(node);};for(var attr in _158){if(!/^_/.test(attr)){_149.focus[attr]=typeof _158[attr]=="function"?lang.hitch(_158,attr):_158[attr];}}_158.watch(function(attr,_15a,_15b){_149.focus[attr]=_15b;});return _158;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojo/_base/query":function(){define("dojo/_base/query",["./kernel","../query","./NodeList"],function(dojo){return dojo.query;});},"*noref":1}});define("dojox/_dojox_fx",[],1);require(["dojox/fx","dojox/fx/Shadow","dojox/fx/easing"]);/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/gfx/arc":function(){define("dojox/gfx/arc",["./_base","dojo/_base/lang","./matrix"],function(g,_1,m){var _2=2*Math.PI,_3=Math.PI/4,_4=Math.PI/8,_5=_3+_4,_6=_7(_4);function _7(_8){var _9=Math.cos(_8),_a=Math.sin(_8),p2={x:_9+(4/3)*(1-_9),y:_a-(4/3)*_9*(1-_9)/_a};return {s:{x:_9,y:-_a},c1:{x:p2.x,y:-p2.y},c2:p2,e:{x:_9,y:_a}};};var _b=g.arc={unitArcAsBezier:_7,curvePI4:_6,arcAsBezier:function(_c,rx,ry,_d,_e,_f,x,y){_e=Boolean(_e);_f=Boolean(_f);var _10=m._degToRad(_d),rx2=rx*rx,ry2=ry*ry,pa=m.multiplyPoint(m.rotate(-_10),{x:(_c.x-x)/2,y:(_c.y-y)/2}),_11=pa.x*pa.x,_12=pa.y*pa.y,c1=Math.sqrt((rx2*ry2-rx2*_12-ry2*_11)/(rx2*_12+ry2*_11));if(isNaN(c1)){c1=0;}var ca={x:c1*rx*pa.y/ry,y:-c1*ry*pa.x/rx};if(_e==_f){ca={x:-ca.x,y:-ca.y};}var c=m.multiplyPoint([m.translate((_c.x+x)/2,(_c.y+y)/2),m.rotate(_10)],ca);var _13=m.normalize([m.translate(c.x,c.y),m.rotate(_10),m.scale(rx,ry)]);var _14=m.invert(_13),sp=m.multiplyPoint(_14,_c),ep=m.multiplyPoint(_14,x,y),_15=Math.atan2(sp.y,sp.x),_16=Math.atan2(ep.y,ep.x),_17=_15-_16;if(_f){_17=-_17;}if(_17<0){_17+=_2;}else{if(_17>_2){_17-=_2;}}var _18=_4,_19=_6,_1a=_f?_18:-_18,_1b=[];for(var _1c=_17;_1c>0;_1c-=_3){if(_1c<_5){_18=_1c/2;_19=_7(_18);_1a=_f?_18:-_18;_1c=0;}var c2,e,M=m.normalize([_13,m.rotate(_15+_1a)]);if(_f){c1=m.multiplyPoint(M,_19.c1);c2=m.multiplyPoint(M,_19.c2);e=m.multiplyPoint(M,_19.e);}else{c1=m.multiplyPoint(M,_19.c2);c2=m.multiplyPoint(M,_19.c1);e=m.multiplyPoint(M,_19.s);}_1b.push([c1.x,c1.y,c2.x,c2.y,e.x,e.y]);_15+=2*_1a;}return _1b;}};return _b;});},"dojox/gfx":function(){define("dojox/gfx",["dojo/_base/lang","./gfx/_base","./gfx/renderer!"],function(_1d,_1e,_1f){_1e.switchTo(_1f);return _1e;});},"dojox/gfx/gradient":function(){define("dojox/gfx/gradient",["dojo/_base/lang","./matrix","dojo/_base/Color"],function(_20,m,_21){var _22=_20.getObject("dojox.gfx.gradient",true);var C=_21;_22.rescale=function(_23,_24,to){var len=_23.length,_25=(to<_24),_26;if(_25){var tmp=_24;_24=to;to=tmp;}if(!len){return [];}if(to<=_23[0].offset){_26=[{offset:0,color:_23[0].color},{offset:1,color:_23[0].color}];}else{if(_24>=_23[len-1].offset){_26=[{offset:0,color:_23[len-1].color},{offset:1,color:_23[len-1].color}];}else{var _27=to-_24,_28,_29,i;_26=[];if(_24<0){_26.push({offset:0,color:new C(_23[0].color)});}for(i=0;i=_24){break;}}if(i){_29=_23[i-1];_26.push({offset:0,color:_21.blendColors(new C(_29.color),new C(_28.color),(_24-_29.offset)/(_28.offset-_29.offset))});}else{_26.push({offset:0,color:new C(_28.color)});}for(;i=to){break;}_26.push({offset:(_28.offset-_24)/_27,color:new C(_28.color)});}if(i=4)?"auto":"optimizeLegibility";function _42(ns,_43){if(win.doc.createElementNS){return win.doc.createElementNS(ns,_43);}else{return win.doc.createElement(_43);}};function _44(_45){if(svg.useSvgWeb){return win.doc.createTextNode(_45,true);}else{return win.doc.createTextNode(_45);}};function _46(){if(svg.useSvgWeb){return win.doc.createDocumentFragment(true);}else{return win.doc.createDocumentFragment();}};svg.xmlns={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"};svg.getRef=function(_47){if(!_47||_47=="none"){return null;}if(_47.match(/^url\(#.+\)$/)){return dom.byId(_47.slice(5,-1));}if(_47.match(/^#dojoUnique\d+$/)){return dom.byId(_47.slice(1));}return null;};svg.dasharray={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};_3b("dojox.gfx.svg.Shape",gs.Shape,{setFill:function(_48){if(!_48){this.fillStyle=null;this.rawNode.setAttribute("fill","none");this.rawNode.setAttribute("fill-opacity",0);return this;}var f;var _49=function(x){this.setAttribute(x,f[x].toFixed(8));};if(typeof (_48)=="object"&&"type" in _48){switch(_48.type){case "linear":f=g.makeParameters(g.defaultLinearGradient,_48);var _4a=this._setFillObject(f,"linearGradient");arr.forEach(["x1","y1","x2","y2"],_49,_4a);break;case "radial":f=g.makeParameters(g.defaultRadialGradient,_48);var _4b=this._setFillObject(f,"radialGradient");arr.forEach(["cx","cy","r"],_49,_4b);break;case "pattern":f=g.makeParameters(g.defaultPattern,_48);var _4c=this._setFillObject(f,"pattern");arr.forEach(["x","y","width","height"],_49,_4c);break;}this.fillStyle=f;return this;}f=g.normalizeColor(_48);this.fillStyle=f;this.rawNode.setAttribute("fill",f.toCss());this.rawNode.setAttribute("fill-opacity",f.a);this.rawNode.setAttribute("fill-rule","evenodd");return this;},setStroke:function(_4d){var rn=this.rawNode;if(!_4d){this.strokeStyle=null;rn.setAttribute("stroke","none");rn.setAttribute("stroke-opacity",0);return this;}if(typeof _4d=="string"||_3a.isArray(_4d)||_4d instanceof _3d){_4d={color:_4d};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_4d);s.color=g.normalizeColor(s.color);if(s){rn.setAttribute("stroke",s.color.toCss());rn.setAttribute("stroke-opacity",s.color.a);rn.setAttribute("stroke-width",s.width);rn.setAttribute("stroke-linecap",s.cap);if(typeof s.join=="number"){rn.setAttribute("stroke-linejoin","miter");rn.setAttribute("stroke-miterlimit",s.join);}else{rn.setAttribute("stroke-linejoin",s.join);}var da=s.style.toLowerCase();if(da in svg.dasharray){da=svg.dasharray[da];}if(da instanceof Array){da=_3a._toArray(da);for(var i=0;ix){this.bbox.l=x;}if(this.bbox.ry){this.bbox.t=y;}if(this.bbox.b=_98){_99={action:_96,args:_97.slice(0,_97.length-_97.length%_98)};this.segments.push(_99);this._updateWithSegment(_99);}}else{_99={action:_96,args:[]};this.segments.push(_99);this._updateWithSegment(_99);}}},_collectArgs:function(_9a,_9b){for(var i=0;i<_9b.length;++i){var t=_9b[i];if(typeof t=="boolean"){_9a.push(t?1:0);}else{if(typeof t=="number"){_9a.push(t);}else{if(t instanceof Array){this._collectArgs(_9a,t);}else{if("x" in t&&"y" in t){_9a.push(t.x,t.y);}}}}}},moveTo:function(){this._confirmSegmented();var _9c=[];this._collectArgs(_9c,arguments);this._pushSegment(this.absolute?"M":"m",_9c);return this;},lineTo:function(){this._confirmSegmented();var _9d=[];this._collectArgs(_9d,arguments);this._pushSegment(this.absolute?"L":"l",_9d);return this;},hLineTo:function(){this._confirmSegmented();var _9e=[];this._collectArgs(_9e,arguments);this._pushSegment(this.absolute?"H":"h",_9e);return this;},vLineTo:function(){this._confirmSegmented();var _9f=[];this._collectArgs(_9f,arguments);this._pushSegment(this.absolute?"V":"v",_9f);return this;},curveTo:function(){this._confirmSegmented();var _a0=[];this._collectArgs(_a0,arguments);this._pushSegment(this.absolute?"C":"c",_a0);return this;},smoothCurveTo:function(){this._confirmSegmented();var _a1=[];this._collectArgs(_a1,arguments);this._pushSegment(this.absolute?"S":"s",_a1);return this;},qCurveTo:function(){this._confirmSegmented();var _a2=[];this._collectArgs(_a2,arguments);this._pushSegment(this.absolute?"Q":"q",_a2);return this;},qSmoothCurveTo:function(){this._confirmSegmented();var _a3=[];this._collectArgs(_a3,arguments);this._pushSegment(this.absolute?"T":"t",_a3);return this;},arcTo:function(){this._confirmSegmented();var _a4=[];this._collectArgs(_a4,arguments);this._pushSegment(this.absolute?"A":"a",_a4);return this;},closePath:function(){this._confirmSegmented();this._pushSegment("Z",[]);return this;},_confirmSegmented:function(){if(!this.segmented){var _a5=this.shape.path;this.shape.path=[];this._setPath(_a5);this.shape.path=this.shape.path.join("");this.segmented=true;}},_setPath:function(_a6){var p=_89.isArray(_a6)?_a6:_a6.match(g.pathSvgRegExp);this.segments=[];this.absolute=true;this.bbox={};this.last={};if(!p){return;}var _a7="",_a8=[],l=p.length;for(var i=0;i0){var _b2=m.normalize(arg[0]);for(var i=1;i1){return new m.Matrix2D({dx:a,dy:b});}return new m.Matrix2D({dx:a.x,dy:a.y});},scale:function(a,b){if(arguments.length>1){return new m.Matrix2D({xx:a,yy:b});}if(typeof a=="number"){return new m.Matrix2D({xx:a,yy:a});}return new m.Matrix2D({xx:a.x,yy:a.y});},rotate:function(_b3){var c=Math.cos(_b3);var s=Math.sin(_b3);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_b4){return m.rotate(m._degToRad(_b4));},skewX:function(_b5){return new m.Matrix2D({xy:Math.tan(_b5)});},skewXg:function(_b6){return m.skewX(m._degToRad(_b6));},skewY:function(_b7){return new m.Matrix2D({yx:Math.tan(_b7)});},skewYg:function(_b8){return m.skewY(m._degToRad(_b8));},reflect:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=2*a*b/n2;return new m.Matrix2D({xx:2*a2/n2-1,xy:xy,yx:xy,yy:2*b2/n2-1});},project:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=a*b/n2;return new m.Matrix2D({xx:a2/n2,xy:xy,yx:xy,yy:b2/n2});},normalize:function(_b9){return (_b9 instanceof m.Matrix2D)?_b9:new m.Matrix2D(_b9);},clone:function(_ba){var obj=new m.Matrix2D();for(var i in _ba){if(typeof (_ba[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_ba[i]){obj[i]=_ba[i];}}return obj;},invert:function(_bb){var M=m.normalize(_bb),D=M.xx*M.yy-M.xy*M.yx;M=new m.Matrix2D({xx:M.yy/D,xy:-M.xy/D,yx:-M.yx/D,yy:M.xx/D,dx:(M.xy*M.dy-M.yy*M.dx)/D,dy:(M.yx*M.dx-M.xx*M.dy)/D});return M;},_multiplyPoint:function(_bc,x,y){return {x:_bc.xx*x+_bc.xy*y+_bc.dx,y:_bc.yx*x+_bc.yy*y+_bc.dy};},multiplyPoint:function(_bd,a,b){var M=m.normalize(_bd);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_be){var M=m.normalize(_be);for(var i=1;i2){return m._sandwich(m.rotate(_c0),a,b);}return m._sandwich(m.rotate(_c0),a.x,a.y);},rotategAt:function(_c1,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_c1),a,b);}return m._sandwich(m.rotateg(_c1),a.x,a.y);},skewXAt:function(_c2,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_c2),a,b);}return m._sandwich(m.skewX(_c2),a.x,a.y);},skewXgAt:function(_c3,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_c3),a,b);}return m._sandwich(m.skewXg(_c3),a.x,a.y);},skewYAt:function(_c4,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_c4),a,b);}return m._sandwich(m.skewY(_c4),a.x,a.y);},skewYgAt:function(_c5,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_c5),a,b);}return m._sandwich(m.skewYg(_c5),a.x,a.y);}});g.Matrix2D=m.Matrix2D;return m;});},"dojox/gfx/_base":function(){define("dojox/gfx/_base",["dojo/_base/lang","dojo/_base/html","dojo/_base/Color","dojo/_base/sniff","dojo/_base/window","dojo/_base/array","dojo/dom","dojo/dom-construct","dojo/dom-geometry"],function(_c6,_c7,_c8,has,win,arr,dom,_c9,_ca){var g=_c6.getObject("dojox.gfx",true),b=g._base={};g._hasClass=function(_cb,_cc){var cls=_cb.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_cc+" ")>=0;};g._addClass=function(_cd,_ce){var cls=_cd.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_ce+" ")<0){_cd.setAttribute("className",cls+(cls?" ":"")+_ce);}};g._removeClass=function(_cf,_d0){var cls=_cf.getAttribute("className");if(cls){_cf.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_d0+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _d1={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};var p;if(has("ie")){win.doc.documentElement.style.fontSize="100%";}var div=_c9.create("div",{style:{position:"absolute",left:"0",top:"-100px",width:"30px",height:"1000em",borderWidth:"0",margin:"0",padding:"0",outline:"none",lineHeight:"1",overflow:"hidden"}},win.body());for(p in _d1){div.style.fontSize=p;_d1[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}win.body().removeChild(div);return _d1;};var _d2=null;b._getCachedFontMeasurements=function(_d3){if(_d3||!_d2){_d2=b._getFontMeasurements();}return _d2;};var _d4=null,_d5={};b._getTextBox=function(_d6,_d7,_d8){var m,s,al=arguments.length;var i;if(!_d4){_d4=_c9.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},win.body());}m=_d4;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_d7){for(i in _d7){if(i in _d5){continue;}s[i]=_d7[i];}}if(al>2&&_d8){m.className=_d8;}m.innerHTML=_d6;if(m["getBoundingClientRect"]){var bcr=m.getBoundingClientRect();return {l:bcr.left,t:bcr.top,w:bcr.width||(bcr.right-bcr.left),h:bcr.height||(bcr.bottom-bcr.top)};}else{return _ca.getMarginBox(m);}};var _d9=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"xUnique"+(++_d9);}while(dom.byId(id));return id;};_c6.mixin(g,{defaultPath:{type:"path",path:""},defaultPolyline:{type:"polyline",points:[]},defaultRect:{type:"rect",x:0,y:0,width:100,height:100,r:0},defaultEllipse:{type:"ellipse",cx:0,cy:0,rx:200,ry:100},defaultCircle:{type:"circle",cx:0,cy:0,r:100},defaultLine:{type:"line",x1:0,y1:0,x2:100,y2:100},defaultImage:{type:"image",x:0,y:0,width:0,height:0,src:""},defaultText:{type:"text",x:0,y:0,text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultTextPath:{type:"textpath",text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultStroke:{type:"stroke",color:"black",style:"solid",width:1,cap:"butt",join:4},defaultLinearGradient:{type:"linear",x1:0,y1:0,x2:100,y2:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultRadialGradient:{type:"radial",cx:0,cy:0,r:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultPattern:{type:"pattern",x:0,y:0,width:0,height:0,src:""},defaultFont:{type:"font",style:"normal",variant:"normal",weight:"normal",size:"10pt",family:"serif"},getDefault:(function(){var _da={};return function(_db){var t=_da[_db];if(t){return new t();}t=_da[_db]=new Function();t.prototype=g["default"+_db];return new t();};})(),normalizeColor:function(_dc){return (_dc instanceof _c8)?_dc:new _c8(_dc);},normalizeParameters:function(_dd,_de){var x;if(_de){var _df={};for(x in _dd){if(x in _de&&!(x in _df)){_dd[x]=_de[x];}}}return _dd;},makeParameters:function(_e0,_e1){var i=null;if(!_e1){return _c6.delegate(_e0);}var _e2={};for(i in _e0){if(!(i in _e2)){_e2[i]=_c6.clone((i in _e1)?_e1[i]:_e0[i]);}}return _e2;},formatNumber:function(x,_e3){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _e4=val.indexOf(".");if(_e4>=0&&val.length-_e4>5){val=x.toFixed(4);}}if(x<0){return val;}return _e3?" "+val:val;},makeFontString:function(_e5){return _e5.style+" "+_e5.variant+" "+_e5.weight+" "+_e5.size+" "+_e5.family;},splitFontString:function(str){var _e6=g.getDefault("Font");var t=str.split(/\s+/);do{if(t.length<5){break;}_e6.style=t[0];_e6.variant=t[1];_e6.weight=t[2];var i=t[3].indexOf("/");_e6.size=i<0?t[3]:t[3].substring(0,i);var j=4;if(i<0){if(t[4]=="/"){j=6;}else{if(t[4].charAt(0)=="/"){j=5;}}}if(j2){var _e7=g.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_e7;case "in":return val*72*_e7;case "pc":return val*12*_e7;case "mm":return val*g.mm_in_pt*_e7;case "cm":return val*g.cm_in_pt*_e7;}}return parseFloat(len);},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-Za-z])|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,equalSources:function(a,b){return a&&b&&a===b;},switchTo:function(_e8){var ns=typeof _e8=="string"?g[_e8]:_e8;if(ns){arr.forEach(["Group","Rect","Ellipse","Circle","Line","Polyline","Image","Text","Path","TextPath","Surface","createSurface","fixTarget"],function(_e9){g[_e9]=ns[_e9];});}}});return g;});},"dojox/gfx/shape":function(){define("dojox/gfx/shape",["./_base","dojo/_base/lang","dojo/_base/declare","dojo/_base/window","dojo/_base/sniff","dojo/_base/connect","dojo/_base/array","dojo/dom-construct","dojo/_base/Color","./matrix"],function(g,_ea,_eb,win,has,_ec,arr,_ed,_ee,_ef){var _f0=g.shape={};var _f1={};var _f2={};var _f3=0,_f4=has("ie")<9;function _f5(_f6){var _f7={};for(var key in _f6){if(_f6.hasOwnProperty(key)){_f7[key]=_f6[key];}}return _f7;};_f0.register=function(_f8){var t=_f8.declaredClass.split(".").pop();var i=t in _f1?++_f1[t]:((_f1[t]=0));var uid=t+i;_f2[uid]=_f8;return uid;};_f0.byId=function(id){return _f2[id];};_f0.dispose=function(_f9){delete _f2[_f9.getUID()];++_f3;if(_f4&&_f3>10000){_f2=_f5(_f2);_f3=0;}};_eb("dojox.gfx.shape.Shape",null,{constructor:function(){this.rawNode=null;this.shape=null;this.matrix=null;this.fillStyle=null;this.strokeStyle=null;this.bbox=null;this.parent=null;this.parentMatrix=null;var uid=_f0.register(this);this.getUID=function(){return uid;};},getNode:function(){return this.rawNode;},getShape:function(){return this.shape;},getTransform:function(){return this.matrix;},getFill:function(){return this.fillStyle;},getStroke:function(){return this.strokeStyle;},getParent:function(){return this.parent;},getBoundingBox:function(){return this.bbox;},getTransformedBoundingBox:function(){var b=this.getBoundingBox();if(!b){return null;}var m=this._getRealMatrix(),gm=_ef;return [gm.multiplyPoint(m,b.x,b.y),gm.multiplyPoint(m,b.x+b.width,b.y),gm.multiplyPoint(m,b.x+b.width,b.y+b.height),gm.multiplyPoint(m,b.x,b.y+b.height)];},getEventSource:function(){return this.rawNode;},setShape:function(_fa){this.shape=g.makeParameters(this.shape,_fa);this.bbox=null;return this;},setFill:function(_fb){if(!_fb){this.fillStyle=null;return this;}var f=null;if(typeof (_fb)=="object"&&"type" in _fb){switch(_fb.type){case "linear":f=g.makeParameters(g.defaultLinearGradient,_fb);break;case "radial":f=g.makeParameters(g.defaultRadialGradient,_fb);break;case "pattern":f=g.makeParameters(g.defaultPattern,_fb);break;}}else{f=g.normalizeColor(_fb);}this.fillStyle=f;return this;},setStroke:function(_fc){if(!_fc){this.strokeStyle=null;return this;}if(typeof _fc=="string"||_ea.isArray(_fc)||_fc instanceof _ee){_fc={color:_fc};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_fc);s.color=g.normalizeColor(s.color);return this;},setTransform:function(_fd){this.matrix=_ef.clone(_fd?_ef.normalize(_fd):_ef.identity);return this._applyTransform();},_applyTransform:function(){return this;},moveToFront:function(){var p=this.getParent();if(p){p._moveChildToFront(this);this._moveToFront();}return this;},moveToBack:function(){var p=this.getParent();if(p){p._moveChildToBack(this);this._moveToBack();}return this;},_moveToFront:function(){},_moveToBack:function(){},applyRightTransform:function(_fe){return _fe?this.setTransform([this.matrix,_fe]):this;},applyLeftTransform:function(_ff){return _ff?this.setTransform([_ff,this.matrix]):this;},applyTransform:function(_100){return _100?this.setTransform([this.matrix,_100]):this;},removeShape:function(_101){if(this.parent){this.parent.remove(this,_101);}return this;},_setParent:function(_102,_103){this.parent=_102;return this._updateParentMatrix(_103);},_updateParentMatrix:function(_104){this.parentMatrix=_104?_ef.clone(_104):null;return this._applyTransform();},_getRealMatrix:function(){var m=this.matrix;var p=this.parent;while(p){if(p.matrix){m=_ef.multiply(p.matrix,m);}p=p.parent;}return m;}});_f0._eventsProcessing={connect:function(name,_105,_106){return _ec.connect(this.getEventSource(),name,_f0.fixCallback(this,g.fixTarget,_105,_106));},disconnect:function(_107){_ec.disconnect(_107);}};_f0.fixCallback=function(_108,_109,_10a,_10b){if(!_10b){_10b=_10a;_10a=null;}if(_ea.isString(_10b)){_10a=_10a||win.global;if(!_10a[_10b]){throw (["dojox.gfx.shape.fixCallback: scope[\"",_10b,"\"] is null (scope=\"",_10a,"\")"].join(""));}return function(e){return _109(e,_108)?_10a[_10b].apply(_10a,arguments||[]):undefined;};}return !_10a?function(e){return _109(e,_108)?_10b.apply(_10a,arguments):undefined;}:function(e){return _109(e,_108)?_10b.apply(_10a,arguments||[]):undefined;};};_ea.extend(_f0.Shape,_f0._eventsProcessing);_f0.Container={_init:function(){this.children=[];},openBatch:function(){},closeBatch:function(){},add:function(_10c){var _10d=_10c.getParent();if(_10d){_10d.remove(_10c,true);}this.children.push(_10c);return _10c._setParent(this,this._getRealMatrix());},remove:function(_10e,_10f){for(var i=0;it.x){bbox.l=t.x;}if(bbox.rt.y){bbox.t=t.y;}if(bbox.b";var _132=("adj" in _131.firstChild);_131.innerHTML="";return _132;});return {load:function(id,_133,load){if(_12e&&id!="force"){load(_12e);return;}var _134=_12d.forceGfxRenderer,_135=!_134&&(lang.isString(_12d.gfxRenderer)?_12d.gfxRenderer:"svg,vml,canvas,silverlight").split(","),_136,_137;while(!_134&&_135.length){switch(_135.shift()){case "svg":if("SVGAngle" in win.global){_134="svg";}break;case "vml":if(has("vml")){_134="vml";}break;case "silverlight":try{if(has("ie")){_136=new ActiveXObject("AgControl.AgControl");if(_136&&_136.IsVersionSupported("1.0")){_137=true;}}else{if(navigator.plugins["Silverlight Plug-In"]){_137=true;}}}catch(e){_137=false;}finally{_136=null;}if(_137){_134="silverlight";}break;case "canvas":if(win.global.CanvasRenderingContext2D){_134="canvas";}break;}}if(_134==="canvas"&&_12d.canvasEvents!==false){_134="canvasWithEvents";}if(_12d.isDebug){}function _138(){_133(["dojox/gfx/"+_134],function(_139){g.renderer=_134;_12e=_139;load(_139);});};if(_134=="svg"&&typeof window.svgweb!="undefined"){window.svgweb.addOnLoad(_138);}else{_138();}}};});},"dojox/gfx/vml":function(){define("dojox/gfx/vml",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","dojo/_base/Color","dojo/_base/sniff","dojo/_base/config","dojo/dom","dojo/dom-geometry","dojo/_base/window","./_base","./shape","./path","./arc","./gradient","./matrix"],function(lang,_13a,arr,_13b,has,_13c,dom,_13d,win,g,gs,_13e,_13f,_140,m){var vml=g.vml={};vml.xmlns="urn:schemas-microsoft-com:vml";document.namespaces.add("v",vml.xmlns);var _141=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],i=0,l=1,s=document.createStyleSheet();if(has("ie")>=8){i=1;l=_141.length;}for(;i0){a.push({offset:1,color:g.normalizeColor(f.colors[0].color)});}arr.forEach(f.colors,function(v,i){a.push({offset:1-v.offset*c,color:g.normalizeColor(v.color)});});i=a.length-1;while(i>=0&&a[i].offset<0){--i;}if(i2){a.pop();}}i=a.length-1,s=[];if(a[i].offset>0){s.push("0 "+a[i].color.toHex());}for(;i>=0;--i){s.push(a[i].offset.toFixed(5)+" "+a[i].color.toHex());}fo=this.rawNode.fill;fo.colors.value=s.join(";");fo.method="sigma";fo.type="gradientradial";if(isNaN(w)||isNaN(h)||isNaN(l)||isNaN(t)){fo.focusposition="0.5 0.5";}else{fo.focusposition=((f.cx-l)/w).toFixed(5)+" "+((f.cy-t)/h).toFixed(5);}fo.focussize="0 0";fo.on=true;break;case "pattern":f=g.makeParameters(g.defaultPattern,fill);this.fillStyle=f;fo=this.rawNode.fill;fo.type="tile";fo.src=f.src;if(f.width&&f.height){fo.size.x=g.px2pt(f.width);fo.size.y=g.px2pt(f.height);}fo.alignShape="f";fo.position.x=0;fo.position.y=0;fo.origin.x=f.width?f.x/f.width:0;fo.origin.y=f.height?f.y/f.height:0;fo.on=true;break;}this.rawNode.fill.opacity=1;return this;}this.fillStyle=g.normalizeColor(fill);fo=this.rawNode.fill;if(!fo){fo=this.rawNode.ownerDocument.createElement("v:fill");}fo.method="any";fo.type="solid";fo.opacity=this.fillStyle.a;var _144=this.rawNode.filters["DXImageTransform.Microsoft.Alpha"];if(_144){_144.opacity=Math.round(this.fillStyle.a*100);}this.rawNode.fillcolor=this.fillStyle.toHex();this.rawNode.filled=true;return this;},setStroke:function(_145){if(!_145){this.strokeStyle=null;this.rawNode.stroked="f";return this;}if(typeof _145=="string"||lang.isArray(_145)||_145 instanceof _13b){_145={color:_145};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_145);s.color=g.normalizeColor(s.color);var rn=this.rawNode;rn.stroked=true;rn.strokecolor=s.color.toCss();rn.strokeweight=s.width+"px";if(rn.stroke){rn.stroke.opacity=s.color.a;rn.stroke.endcap=this._translate(this._capMap,s.cap);if(typeof s.join=="number"){rn.stroke.joinstyle="miter";rn.stroke.miterlimit=s.join;}else{rn.stroke.joinstyle=s.join;}rn.stroke.dashstyle=s.style=="none"?"Solid":s.style;}return this;},_capMap:{butt:"flat"},_capMapReversed:{flat:"butt"},_translate:function(dict,_146){return (_146 in dict)?dict[_146]:_146;},_applyTransform:function(){var _147=this._getRealMatrix();if(_147){var skew=this.rawNode.skew;if(typeof skew=="undefined"){for(var i=0;i7){var node=this.rawNode.ownerDocument.createElement("v:roundrect");node.arcsize=r;node.style.display="inline-block";this.rawNode=node;this.rawNode.__gfxObject__=this.getUID();}else{this.rawNode.arcsize=r;}if(_152){if(_153){_152.insertBefore(this.rawNode,_153);}else{_152.appendChild(this.rawNode);}}var _154=this.rawNode.style;_154.left=_151.x.toFixed();_154.top=_151.y.toFixed();_154.width=(typeof _151.width=="string"&&_151.width.indexOf("%")>=0)?_151.width:Math.max(_151.width.toFixed(),0);_154.height=(typeof _151.height=="string"&&_151.height.indexOf("%")>=0)?_151.height:Math.max(_151.height.toFixed(),0);return this.setTransform(this.matrix).setFill(this.fillStyle).setStroke(this.strokeStyle);}});vml.Rect.nodeType="roundrect";_13a("dojox.gfx.vml.Ellipse",[vml.Shape,gs.Ellipse],{setShape:function(_155){var _156=this.shape=g.makeParameters(this.shape,_155);this.bbox=null;var _157=this.rawNode.style;_157.left=(_156.cx-_156.rx).toFixed();_157.top=(_156.cy-_156.ry).toFixed();_157.width=(_156.rx*2).toFixed();_157.height=(_156.ry*2).toFixed();return this.setTransform(this.matrix);}});vml.Ellipse.nodeType="oval";_13a("dojox.gfx.vml.Circle",[vml.Shape,gs.Circle],{setShape:function(_158){var _159=this.shape=g.makeParameters(this.shape,_158);this.bbox=null;var _15a=this.rawNode.style;_15a.left=(_159.cx-_159.r).toFixed();_15a.top=(_159.cy-_159.r).toFixed();_15a.width=(_159.r*2).toFixed();_15a.height=(_159.r*2).toFixed();return this;}});vml.Circle.nodeType="oval";_13a("dojox.gfx.vml.Line",[vml.Shape,gs.Line],{constructor:function(_15b){if(_15b){_15b.setAttribute("dojoGfxType","line");}},setShape:function(_15c){var _15d=this.shape=g.makeParameters(this.shape,_15c);this.bbox=null;this.rawNode.path.v="m"+_15d.x1.toFixed()+" "+_15d.y1.toFixed()+"l"+_15d.x2.toFixed()+" "+_15d.y2.toFixed()+"e";return this.setTransform(this.matrix);}});vml.Line.nodeType="shape";_13a("dojox.gfx.vml.Polyline",[vml.Shape,gs.Polyline],{constructor:function(_15e){if(_15e){_15e.setAttribute("dojoGfxType","polyline");}},setShape:function(_15f,_160){if(_15f&&_15f instanceof Array){this.shape=g.makeParameters(this.shape,{points:_15f});if(_160&&this.shape.points.length){this.shape.points.push(this.shape.points[0]);}}else{this.shape=g.makeParameters(this.shape,_15f);}this.bbox=null;this._normalizePoints();var attr=[],p=this.shape.points;if(p.length>0){attr.push("m");attr.push(p[0].x.toFixed(),p[0].y.toFixed());if(p.length>1){attr.push("l");for(var i=1;i0&&_163.yy>0){s.filter="";s.width=Math.floor(_163.xx*_165.width);s.height=Math.floor(_163.yy*_165.height);s.left=Math.floor(_163.dx);s.top=Math.floor(_163.dy);}else{var ps=_164.parentNode.style;s.left="0px";s.top="0px";s.width=ps.width;s.height=ps.height;_163=m.multiply(_163,{xx:_165.width/parseInt(s.width),yy:_165.height/parseInt(s.height)});var f=_164.filters["DXImageTransform.Microsoft.Matrix"];if(f){f.M11=_163.xx;f.M12=_163.xy;f.M21=_163.yx;f.M22=_163.yy;f.Dx=_163.dx;f.Dy=_163.dy;}else{s.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+_163.xx+", M12="+_163.xy+", M21="+_163.yx+", M22="+_163.yy+", Dx="+_163.dx+", Dy="+_163.dy+")";}}return this;},_setDimensions:function(_166,_167){var r=this.rawNode,f=r.filters["DXImageTransform.Microsoft.Matrix"];if(f){var s=r.style;s.width=_166;s.height=_167;return this._applyTransform();}return this;}});vml.Image.nodeType="rect";_13a("dojox.gfx.vml.Text",[vml.Shape,gs.Text],{constructor:function(_168){if(_168){_168.setAttribute("dojoGfxType","text");}this.fontStyle=null;},_alignment:{start:"left",middle:"center",end:"right"},setShape:function(_169){this.shape=g.makeParameters(this.shape,_169);this.bbox=null;var r=this.rawNode,s=this.shape,x=s.x,y=s.y.toFixed(),path;switch(s.align){case "middle":x-=5;break;case "end":x-=10;break;}path="m"+x.toFixed()+","+y+"l"+(x+10).toFixed()+","+y+"e";var p=null,t=null,c=r.childNodes;for(var i=0;i1){return;}var path=this[this.renderers[_16f.action]](_16f,last);if(typeof this.vmlPath=="string"){this.vmlPath+=path.join("");this.rawNode.path.v=this.vmlPath+" r0,0 e";}else{Array.prototype.push.apply(this.vmlPath,path);}},setShape:function(_170){this.vmlPath=[];this.lastControl.type="";this.inherited(arguments);this.vmlPath=this.vmlPath.join("");this.rawNode.path.v=this.vmlPath+" r0,0 e";return this;},_pathVmlToSvgMap:{m:"M",l:"L",t:"m",r:"l",c:"C",v:"c",qb:"Q",x:"z",e:""},renderers:{M:"_moveToA",m:"_moveToR",L:"_lineToA",l:"_lineToR",H:"_hLineToA",h:"_hLineToR",V:"_vLineToA",v:"_vLineToR",C:"_curveToA",c:"_curveToR",S:"_smoothCurveToA",s:"_smoothCurveToR",Q:"_qCurveToA",q:"_qCurveToR",T:"_qSmoothCurveToA",t:"_qSmoothCurveToR",A:"_arcTo",a:"_arcTo",Z:"_closePath",z:"_closePath"},_addArgs:function(path,_171,from,upto){var n=_171 instanceof Array?_171:_171.args;for(var i=from;i2){p.push(" l");this._addArgs(p,n,2,l);}this.lastControl.type="";return p;},_moveToR:function(_177,last){return this._moveToA(this._adjustRelCrd(last,_177));},_lineToA:function(_178){var p=[" l"],n=_178 instanceof Array?_178:_178.args;this._addArgs(p,n,0,n.length);this.lastControl.type="";return p;},_lineToR:function(_179,last){return this._lineToA(this._adjustRelCrd(last,_179));},_hLineToA:function(_17a,last){var p=[" l"],y=" "+last.y.toFixed(),n=_17a instanceof Array?_17a:_17a.args,l=n.length;for(var i=0;i7){rs.display="inline-block";}s._parent=p;s._nodes.push(c);p.style.width=_18f;p.style.height=_190;cs.position="absolute";cs.width=_18f;cs.height=_190;cs.clip="rect(0px "+_18f+" "+_190+" 0px)";rs.position="absolute";rs.width=_18f;rs.height=_190;r.coordsize=(_18f==="100%"?_18f:parseFloat(_18f))+" "+(_190==="100%"?_190:parseFloat(_190));r.coordorigin="0 0";var b=s.bgNode=r.ownerDocument.createElement("v:rect"),bs=b.style;bs.left=bs.top=0;bs.width=rs.width;bs.height=rs.height;b.filled=b.stroked="f";r.appendChild(b);c.appendChild(r);p.appendChild(c);s.width=g.normalizedLength(_18f);s.height=g.normalizedLength(_190);return s;};function _191(_192,f,o){o=o||win.global;f.call(o,_192);if(_192 instanceof g.Surface||_192 instanceof g.Group){arr.forEach(_192.children,function(_193){_191(_193,f,o);});}};var _194=function(_195){if(this!=_195.getParent()){var _196=_195.getParent();if(_196){_196.remove(_195);}this.rawNode.appendChild(_195.rawNode);C.add.apply(this,arguments);_191(this,function(s){if(typeof (s.getFont)=="function"){s.setShape(s.getShape());s.setFont(s.getFont());}if(typeof (s.setFill)=="function"){s.setFill(s.getFill());s.setStroke(s.getStroke());}});}return this;};var _197=function(_198){if(this!=_198.getParent()){this.rawNode.appendChild(_198.rawNode);if(!_198.getParent()){_198.setFill(_198.getFill());_198.setStroke(_198.getStroke());}C.add.apply(this,arguments);}return this;};var C=gs.Container,_199={add:_13c.fixVmlAdd===true?_194:_197,remove:function(_19a,_19b){if(this==_19a.getParent()){if(this.rawNode==_19a.rawNode.parentNode){this.rawNode.removeChild(_19a.rawNode);}C.remove.apply(this,arguments);}return this;},clear:function(){var r=this.rawNode;while(r.firstChild!=r.lastChild){if(r.firstChild!=this.bgNode){r.removeChild(r.firstChild);}if(r.lastChild!=this.bgNode){r.removeChild(r.lastChild);}}return C.clear.apply(this,arguments);},_moveChildToFront:C._moveChildToFront,_moveChildToBack:C._moveChildToBack};var _19c={createGroup:function(){var node=this.createObject(vml.Group,null);var r=node.rawNode.ownerDocument.createElement("v:rect");r.style.left=r.style.top=0;r.style.width=node.rawNode.style.width;r.style.height=node.rawNode.style.height;r.filled=r.stroked="f";node.rawNode.appendChild(r);node.bgNode=r;return node;},createImage:function(_19d){if(!this.rawNode){return null;}var _19e=new vml.Image(),doc=this.rawNode.ownerDocument,node=doc.createElement("v:rect");node.stroked="f";node.style.width=this.rawNode.style.width;node.style.height=this.rawNode.style.height;var img=doc.createElement("v:imagedata");node.appendChild(img);_19e.setRawNode(node);this.rawNode.appendChild(node);_19e.setShape(_19d);this.add(_19e);return _19e;},createRect:function(rect){if(!this.rawNode){return null;}var _19f=new vml.Rect,node=this.rawNode.ownerDocument.createElement("v:roundrect");if(has("ie")>7){node.style.display="inline-block";}_19f.setRawNode(node);this.rawNode.appendChild(node);_19f.setShape(rect);this.add(_19f);return _19f;},createObject:function(_1a0,_1a1){if(!this.rawNode){return null;}var _1a2=new _1a0(),node=this.rawNode.ownerDocument.createElement("v:"+_1a0.nodeType);_1a2.setRawNode(node);this.rawNode.appendChild(node);switch(_1a0){case vml.Group:case vml.Line:case vml.Polyline:case vml.Image:case vml.Text:case vml.Path:case vml.TextPath:this._overrideSize(node);}_1a2.setShape(_1a1);this.add(_1a2);return _1a2;},_overrideSize:function(node){var s=this.rawNode.style,w=s.width,h=s.height;node.style.width=w;node.style.height=h;node.coordsize=parseInt(w)+" "+parseInt(h);}};lang.extend(vml.Group,_199);lang.extend(vml.Group,gs.Creator);lang.extend(vml.Group,_19c);lang.extend(vml.Surface,_199);lang.extend(vml.Surface,gs.Creator);lang.extend(vml.Surface,_19c);vml.fixTarget=function(_1a3,_1a4){if(!_1a3.gfxTarget){_1a3.gfxTarget=gs.byId(_1a3.target.__gfxObject__);}return true;};return vml;});},"*noref":1}});define("dojox/_dojox_gfx",[],1);require(["dojox/gfx"]);/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/atom/io/Connection":function(){define("dojox/atom/io/Connection",["dojo/_base/kernel","dojo/_base/xhr","dojo/_base/window","./model","dojo/_base/declare"],function(_1,_2,_3,_4){return _1.declare("dojox.atom.io.Connection",null,{constructor:function(_5,_6){this.sync=_5;this.preventCache=_6;},preventCache:false,alertsEnabled:false,getFeed:function(_7,_8,_9,_a){this._getXmlDoc(_7,"feed",new _4.Feed(),_4._Constants.ATOM_NS,_8,_9,_a);},getService:function(_b,_c,_d,_e){this._getXmlDoc(_b,"service",new _4.Service(_b),_4._Constants.APP_NS,_c,_d,_e);},getEntry:function(_f,_10,_11,_12){this._getXmlDoc(_f,"entry",new _4.Entry(),_4._Constants.ATOM_NS,_10,_11,_12);},_getXmlDoc:function(url,_13,_14,_15,_16,_17,_18){if(!_18){_18=_3.global;}var ae=this.alertsEnabled;var _19={url:url,handleAs:"xml",sync:this.sync,preventCache:this.preventCache,load:function(_1a,_1b){var _1c=null;var _1d=_1a;var _1e;if(_1d){if(typeof (_1d.getElementsByTagNameNS)!="undefined"){_1e=_1d.getElementsByTagNameNS(_15,_13);if(_1e&&_1e.length>0){_1c=_1e.item(0);}else{if(_1d.lastChild){_1c=_1d.lastChild;}}}else{if(typeof (_1d.getElementsByTagName)!="undefined"){_1e=_1d.getElementsByTagName(_13);if(_1e&&_1e.length>0){for(var i=0;i<_1e.length;i++){if(_1e[i].namespaceURI==_15){_1c=_1e[i];break;}}}else{if(_1d.lastChild){_1c=_1d.lastChild;}}}else{if(_1d.lastChild){_1c=_1d.lastChild;}else{_16.call(_18,null,null,_1b);return;}}}_14.buildFromDom(_1c);if(_16){_16.call(_18,_14,_1d,_1b);}else{if(ae){throw new Error("The callback value does not exist.");}}}else{_16.call(_18,null,null,_1b);}}};if(this.user&&this.user!==null){_19.user=this.user;}if(this.password&&this.password!==null){_19.password=this.password;}if(_17){_19.error=function(_1f,_20){_17.call(_18,_1f,_20);};}else{_19.error=function(){throw new Error("The URL requested cannot be accessed");};}_2.get(_19);},updateEntry:function(_21,_22,_23,_24,_25,_26){if(!_26){_26=_3.global;}_21.updated=new Date();var url=_21.getEditHref();if(!url){throw new Error("A URL has not been specified for editing this entry.");}var _27=this;var ae=this.alertsEnabled;var _28={url:url,handleAs:"text",contentType:"text/xml",sync:this.sync,preventCache:this.preventCache,load:function(_29,_2a){var _2b=null;if(_24){_2b=_2a.xhr.getResponseHeader("Location");if(!_2b){_2b=url;}var _2c=function(_2d,dom,_2e){if(_22){_22.call(_26,_2d,_2b,_2e);}else{if(ae){throw new Error("The callback value does not exist.");}}};_27.getEntry(_2b,_2c);}else{if(_22){_22.call(_26,_21,_2a.xhr.getResponseHeader("Location"),_2a);}else{if(ae){throw new Error("The callback value does not exist.");}}}return _29;}};if(this.user&&this.user!==null){_28.user=this.user;}if(this.password&&this.password!==null){_28.password=this.password;}if(_23){_28.error=function(_2f,_30){_23.call(_26,_2f,_30);};}else{_28.error=function(){throw new Error("The URL requested cannot be accessed");};}if(_25){_28.postData=_21.toString(true);_28.headers={"X-Method-Override":"PUT"};_2.post(_28);}else{_28.putData=_21.toString(true);var xhr=_2.put(_28);}},addEntry:function(_31,url,_32,_33,_34,_35){if(!_35){_35=_3.global;}_31.published=new Date();_31.updated=new Date();var _36=_31.feedUrl;var ae=this.alertsEnabled;if(!url&&_36){url=_36;}if(!url){if(ae){throw new Error("The request cannot be processed because the URL parameter is missing.");}return;}var _37=this;var _38={url:url,handleAs:"text",contentType:"text/xml",sync:this.sync,preventCache:this.preventCache,postData:_31.toString(true),load:function(_39,_3a){var _3b=_3a.xhr.getResponseHeader("Location");if(!_3b){_3b=url;}if(!_3a.retrieveEntry){if(_32){_32.call(_35,_31,_3b,_3a);}else{if(ae){throw new Error("The callback value does not exist.");}}}else{var _3c=function(_3d,dom,_3e){if(_32){_32.call(_35,_3d,_3b,_3e);}else{if(ae){throw new Error("The callback value does not exist.");}}};_37.getEntry(_3b,_3c);}return _39;}};if(this.user&&this.user!==null){_38.user=this.user;}if(this.password&&this.password!==null){_38.password=this.password;}if(_33){_38.error=function(_3f,_40){_33.call(_35,_3f,_40);};}else{_38.error=function(){throw new Error("The URL requested cannot be accessed");};}_2.post(_38);},deleteEntry:function(_41,_42,_43,_44,_45){if(!_45){_45=_3.global;}var url=null;if(typeof (_41)=="string"){url=_41;}else{url=_41.getEditHref();}if(!url){_42.call(_45,false,null);throw new Error("The request cannot be processed because the URL parameter is missing.");}var _46={url:url,handleAs:"text",sync:this.sync,preventCache:this.preventCache,load:function(_47,_48){_42.call(_45,_48);return _47;}};if(this.user&&this.user!==null){_46.user=this.user;}if(this.password&&this.password!==null){_46.password=this.password;}if(_43){_46.error=function(_49,_4a){_43.call(_45,_49,_4a);};}else{_46.error=function(){throw new Error("The URL requested cannot be accessed");};}if(_44){_46.headers={"X-Method-Override":"DELETE"};dhxr.post(_46);}else{_2.del(_46);}}});});},"dojox/atom/io/model":function(){define("dojox/atom/io/model",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/date/stamp","dojox/xml/parser"],function(_4b,_4c,_4d,_4e,_4f){var _50=_4b.getObject("dojox.atom.io.model",true);_50._Constants={"ATOM_URI":"http://www.w3.org/2005/Atom","ATOM_NS":"http://www.w3.org/2005/Atom","PURL_NS":"http://purl.org/atom/app#","APP_NS":"http://www.w3.org/2007/app"};_50._actions={"link":function(obj,_51){if(obj.links===null){obj.links=[];}var _52=new _50.Link();_52.buildFromDom(_51);obj.links.push(_52);},"author":function(obj,_53){if(obj.authors===null){obj.authors=[];}var _54=new _50.Person("author");_54.buildFromDom(_53);obj.authors.push(_54);},"contributor":function(obj,_55){if(obj.contributors===null){obj.contributors=[];}var _56=new _50.Person("contributor");_56.buildFromDom(_55);obj.contributors.push(_56);},"category":function(obj,_57){if(obj.categories===null){obj.categories=[];}var cat=new _50.Category();cat.buildFromDom(_57);obj.categories.push(cat);},"icon":function(obj,_58){obj.icon=_4f.textContent(_58);},"id":function(obj,_59){obj.id=_4f.textContent(_59);},"rights":function(obj,_5a){obj.rights=_4f.textContent(_5a);},"subtitle":function(obj,_5b){var cnt=new _50.Content("subtitle");cnt.buildFromDom(_5b);obj.subtitle=cnt;},"title":function(obj,_5c){var cnt=new _50.Content("title");cnt.buildFromDom(_5c);obj.title=cnt;},"updated":function(obj,_5d){obj.updated=_50.util.createDate(_5d);},"issued":function(obj,_5e){obj.issued=_50.util.createDate(_5e);},"modified":function(obj,_5f){obj.modified=_50.util.createDate(_5f);},"published":function(obj,_60){obj.published=_50.util.createDate(_60);},"entry":function(obj,_61){if(obj.entries===null){obj.entries=[];}var _62=obj.createEntry?obj.createEntry():new _50.Entry();_62.buildFromDom(_61);obj.entries.push(_62);},"content":function(obj,_63){var cnt=new _50.Content("content");cnt.buildFromDom(_63);obj.content=cnt;},"summary":function(obj,_64){var _65=new _50.Content("summary");_65.buildFromDom(_64);obj.summary=_65;},"name":function(obj,_66){obj.name=_4f.textContent(_66);},"email":function(obj,_67){obj.email=_4f.textContent(_67);},"uri":function(obj,_68){obj.uri=_4f.textContent(_68);},"generator":function(obj,_69){obj.generator=new _50.Generator();obj.generator.buildFromDom(_69);}};_50.util={createDate:function(_6a){var _6b=_4f.textContent(_6a);if(_6b){return _4e.fromISOString(_4d.trim(_6b));}return null;},escapeHtml:function(str){return str.replace(/&/gm,"&").replace(//gm,">").replace(/"/gm,""").replace(/'/gm,"'");},unEscapeHtml:function(str){return str.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,"\"").replace(/'/gm,"'").replace(/&/gm,"&");},getNodename:function(_6c){var _6d=null;if(_6c!==null){_6d=_6c.localName?_6c.localName:_6c.nodeName;if(_6d!==null){var _6e=_6d.indexOf(":");if(_6e!==-1){_6d=_6d.substring((_6e+1),_6d.length);}}}return _6d;}};_50.Node=_4b.declare(null,{constructor:function(_6f,_70,_71,_72,_73){this.name_space=_6f;this.name=_70;this.attributes=[];if(_71){this.attributes=_71;}this.content=[];this.rawNodes=[];this.textContent=null;if(_72){this.content.push(_72);}this.shortNs=_73;this._objName="Node";this.nodeType="Node";},buildFromDom:function(_74){this._saveAttributes(_74);this.name_space=_74.namespaceURI;this.shortNs=_74.prefix;this.name=_50.util.getNodename(_74);for(var x=0;x<_74.childNodes.length;x++){var c=_74.childNodes[x];if(_50.util.getNodename(c)!="#text"){this.rawNodes.push(c);var n=new _50.Node();n.buildFromDom(c,true);this.content.push(n);}else{this.content.push(c.nodeValue);}}this.textContent=_4f.textContent(_74);},_saveAttributes:function(_75){if(!this.attributes){this.attributes=[];}var _76=function(_77){var _78=_77.attributes;if(_78===null){return false;}return (_78.length!==0);};if(_76(_75)&&this._getAttributeNames){var _79=this._getAttributeNames(_75);if(_79&&_79.length>0){for(var x in _79){var _7a=_75.getAttribute(_79[x]);if(_7a){this.attributes[_79[x]]=_7a;}}}}},addAttribute:function(_7b,_7c){this.attributes[_7b]=_7c;},getAttribute:function(_7d){return this.attributes[_7d];},_getAttributeNames:function(_7e){var _7f=[];for(var i=0;i<_7e.attributes.length;i++){_7f.push(_7e.attributes[i].nodeName);}return _7f;},toString:function(){var xml=[];var x;var _80=(this.shortNs?this.shortNs+":":"")+this.name;var _81=(this.name=="#cdata-section");if(_81){xml.push("");xml.push(this.textContent);xml.push("");}else{xml.push("<");xml.push(_80);if(this.name_space){xml.push(" xmlns='"+this.name_space+"'");}if(this.attributes){for(x in this.attributes){xml.push(" "+x+"='"+this.attributes[x]+"'");}}if(this.content){xml.push(">");for(x in this.content){xml.push(this.content[x]);}xml.push("\n");}else{xml.push("/>\n");}}return xml.join("");},addContent:function(_82){this.content.push(_82);}});_50.AtomItem=_4b.declare(_50.Node,{constructor:function(_83){this.ATOM_URI=_50._Constants.ATOM_URI;this.links=null;this.authors=null;this.categories=null;this.contributors=null;this.icon=this.id=this.logo=this.xmlBase=this.rights=null;this.subtitle=this.title=null;this.updated=this.published=null;this.issued=this.modified=null;this.content=null;this.extensions=null;this.entries=null;this.name_spaces={};this._objName="AtomItem";this.nodeType="AtomItem";},_getAttributeNames:function(){return null;},_accepts:{},accept:function(tag){return Boolean(this._accepts[tag]);},_postBuild:function(){},buildFromDom:function(_84){var i,c,n;for(i=0;i<_84.attributes.length;i++){c=_84.attributes.item(i);n=_50.util.getNodename(c);if(c.prefix=="xmlns"&&c.prefix!=n){this.addNamespace(c.nodeValue,n);}}c=_84.childNodes;for(i=0;i\n");return s.join("");},buildFromDom:function(_a8){this._saveAttributes(_a8);this.label=this.attributes.label;this.scheme=this.attributes.scheme;this.term=this.attributes.term;if(this._postBuild){this._postBuild();}}});_50.Content=_4b.declare(_50.Node,{constructor:function(_a9,_aa,src,_ab,_ac){this.tagName=_a9;this.value=_aa;this.src=src;this.type=_ab;this.xmlLang=_ac;this.HTML="html";this.TEXT="text";this.XHTML="xhtml";this.XML="xml";this._useTextContent="true";this.nodeType="Content";},_getAttributeNames:function(){return ["type","src"];},_postBuild:function(){},buildFromDom:function(_ad){var _ae=_ad.getAttribute("type");if(_ae){_ae=_ae.toLowerCase();if(_ae=="xml"||"text/xml"){_ae=this.XML;}}else{_ae="text";}if(_ae===this.XML){if(_ad.firstChild){var i;this.value="";for(i=0;i<_ad.childNodes.length;i++){var c=_ad.childNodes[i];if(c){this.value+=_4f.innerXML(c);}}}}else{if(_ad.innerHTML){this.value=_ad.innerHTML;}else{this.value=_4f.textContent(_ad);}}this._saveAttributes(_ad);if(this.attributes){this.type=this.attributes.type;this.scheme=this.attributes.scheme;this.term=this.attributes.term;}if(!this.type){this.type="text";}var _af=this.type.toLowerCase();if(_af==="html"||_af==="text/html"||_af==="xhtml"||_af==="text/xhtml"){this.value=this.value?_50.util.unEscapeHtml(this.value):"";}if(this._postBuild){this._postBuild();}},toString:function(){var s=[];s.push("<"+this.tagName+" ");if(!this.type){this.type="text";}if(this.type){s.push(" type=\""+this.type+"\" ");}if(this.xmlLang){s.push(" xml:lang=\""+this.xmlLang+"\" ");}if(this.xmlBase){s.push(" xml:base=\""+this.xmlBase+"\" ");}if(this.type.toLowerCase()==this.HTML){s.push(">"+_50.util.escapeHtml(this.value)+"\n");}else{s.push(">"+this.value+"\n");}var ret=s.join("");return ret;}});_50.Link=_4b.declare(_50.Node,{constructor:function(_b0,rel,_b1,_b2,_b3){this.href=_b0;this.hrefLang=_b1;this.rel=rel;this.title=_b2;this.type=_b3;this.nodeType="Link";},_getAttributeNames:function(){return ["href","jrefLang","rel","title","type"];},_postBuild:function(){},buildFromDom:function(_b4){this._saveAttributes(_b4);this.href=this.attributes.href;this.hrefLang=this.attributes.hreflang;this.rel=this.attributes.rel;this.title=this.attributes.title;this.type=this.attributes.type;if(this._postBuild){this._postBuild();}},toString:function(){var s=[];s.push("\n");return s.join("");}});_50.Person=_4b.declare(_50.Node,{constructor:function(_b5,_b6,_b7,uri){this.author="author";this.contributor="contributor";if(!_b5){_b5=this.author;}this.personType=_b5;this.name=_b6||"";this.email=_b7||"";this.uri=uri||"";this._objName="Person";this.nodeType="Person";},_getAttributeNames:function(){return null;},_postBuild:function(){},accept:function(tag){return Boolean(this._accepts[tag]);},buildFromDom:function(_b8){var c=_b8.childNodes;for(var i=0;i\n");if(this.name){s.push("\t"+this.name+"\n");}if(this.email){s.push("\t"+this.email+"\n");}if(this.uri){s.push("\t"+this.uri+"\n");}s.push("\n");return s.join("");}});_50.Generator=_4b.declare(_50.Node,{constructor:function(uri,_bb,_bc){this.uri=uri;this.version=_bb;this.value=_bc;},_postBuild:function(){},buildFromDom:function(_bd){this.value=_4f.textContent(_bd);this._saveAttributes(_bd);this.uri=this.attributes.uri;this.version=this.attributes.version;if(this._postBuild){this._postBuild();}},toString:function(){var s=[];s.push(""+this.value+"\n");var ret=s.join("");return ret;}});_50.Entry=_4b.declare(_50.AtomItem,{constructor:function(id){this.id=id;this._objName="Entry";this.feedUrl=null;},_getAttributeNames:function(){return null;},_accepts:{"author":true,"content":true,"category":true,"contributor":true,"created":true,"id":true,"link":true,"published":true,"rights":true,"summary":true,"title":true,"updated":true,"xmlbase":true,"issued":true,"modified":true},toString:function(_be){var s=[];var i;if(_be){s.push("");s.push("\n");s.push(""+(this.id?this.id:"")+"\n");if(this.issued&&!this.published){this.published=this.issued;}if(this.published){s.push(""+_4e.toISOString(this.published)+"\n");}if(this.created){s.push(""+_4e.toISOString(this.created)+"\n");}if(this.issued){s.push(""+_4e.toISOString(this.issued)+"\n");}if(this.modified){s.push(""+_4e.toISOString(this.modified)+"\n");}if(this.modified&&!this.updated){this.updated=this.modified;}if(this.updated){s.push(""+_4e.toISOString(this.updated)+"\n");}if(this.rights){s.push(""+this.rights+"\n");}if(this.title){s.push(this.title.toString());}if(this.summary){s.push(this.summary.toString());}var _bf=[this.authors,this.categories,this.links,this.contributors,this.extensions];for(var x in _bf){if(_bf[x]){for(var y in _bf[x]){s.push(_bf[x][y]);}}}if(this.content){s.push(this.content.toString());}s.push("\n");return s.join("");},getEditHref:function(){if(this.links===null||this.links.length===0){return null;}for(var x in this.links){if(this.links[x].rel&&this.links[x].rel=="edit"){return this.links[x].href;}}return null;},setEditHref:function(url){if(this.links===null){this.links=[];}for(var x in this.links){if(this.links[x].rel&&this.links[x].rel=="edit"){this.links[x].href=url;return;}}this.addLink(url,"edit");}});_50.Feed=_4b.declare(_50.AtomItem,{_accepts:{"author":true,"content":true,"category":true,"contributor":true,"created":true,"id":true,"link":true,"published":true,"rights":true,"summary":true,"title":true,"updated":true,"xmlbase":true,"entry":true,"logo":true,"issued":true,"modified":true,"icon":true,"subtitle":true},addEntry:function(_c0){if(!_c0.id){throw new Error("The entry object must be assigned an ID attribute.");}if(!this.entries){this.entries=[];}_c0.feedUrl=this.getSelfHref();this.entries.push(_c0);},getFirstEntry:function(){if(!this.entries||this.entries.length===0){return null;}return this.entries[0];},getEntry:function(_c1){if(!this.entries){return null;}for(var x in this.entries){if(this.entries[x].id==_c1){return this.entries[x];}}return null;},removeEntry:function(_c2){if(!this.entries){return;}var _c3=0;for(var i=0;i\n");s.push("\n");s.push(""+(this.id?this.id:"")+"\n");if(this.title){s.push(this.title);}if(this.copyright&&!this.rights){this.rights=this.copyright;}if(this.rights){s.push(""+this.rights+"\n");}if(this.issued){s.push(""+_4e.toISOString(this.issued)+"\n");}if(this.modified){s.push(""+_4e.toISOString(this.modified)+"\n");}if(this.modified&&!this.updated){this.updated=this.modified;}if(this.updated){s.push(""+_4e.toISOString(this.updated)+"\n");}if(this.published){s.push(""+_4e.toISOString(this.published)+"\n");}if(this.icon){s.push(""+this.icon+"\n");}if(this.language){s.push(""+this.language+"\n");}if(this.logo){s.push(""+this.logo+"\n");}if(this.subtitle){s.push(this.subtitle.toString());}if(this.tagline){s.push(this.tagline.toString());}var _c5=[this.alternateLinks,this.authors,this.categories,this.contributors,this.otherLinks,this.extensions,this.entries];for(i in _c5){if(_c5[i]){for(var x in _c5[i]){s.push(_c5[i][x]);}}}s.push("");return s.join("");},createEntry:function(){var _c6=new _50.Entry();_c6.feedUrl=this.getSelfHref();return _c6;},getSelfHref:function(){if(this.links===null||this.links.length===0){return null;}for(var x in this.links){if(this.links[x].rel&&this.links[x].rel=="self"){return this.links[x].href;}}return null;}});_50.Service=_4b.declare(_50.AtomItem,{constructor:function(_c7){this.href=_c7;},buildFromDom:function(_c8){var i;this.workspaces=[];if(_c8.tagName!="service"){return;}if(_c8.namespaceURI!=_50._Constants.PURL_NS&&_c8.namespaceURI!=_50._Constants.APP_NS){return;}var ns=_c8.namespaceURI;this.name_space=_c8.namespaceURI;var _c9;if(typeof (_c8.getElementsByTagNameNS)!="undefined"){_c9=_c8.getElementsByTagNameNS(ns,"workspace");}else{_c9=[];var _ca=_c8.getElementsByTagName("workspace");for(i=0;i<_ca.length;i++){if(_ca[i].namespaceURI==ns){_c9.push(_ca[i]);}}}if(_c9&&_c9.length>0){var _cb=0;var _cc;for(i=0;i<_c9.length;i++){_cc=(typeof (_c9.item)==="undefined"?_c9[i]:_c9.item(i));var _cd=new _50.Workspace();_cd.buildFromDom(_cc);this.workspaces[_cb++]=_cd;}}},getCollection:function(url){for(var i=0;i= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/_base/sniff","./main"],function(_1,_2,_3,_4,_5,_6,_7){var _8;var _9={_isElementShown:function(_a){var s=_4.get(_a);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_3.get(_a,"type")!="hidden");},hasDefaultTabStop:function(_b){switch(_b.nodeName.toLowerCase()){case "a":return _3.has(_b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _c;try{var _d=_b.contentDocument;if("designMode" in _d&&_d.designMode=="on"){return true;}_c=_d.body;}catch(e1){try{_c=_b.contentWindow.document.body;}catch(e2){return false;}}return _c&&(_c.contentEditable=="true"||(_c.firstChild&&_c.firstChild.contentEditable=="true"));default:return _b.contentEditable=="true";}},effectiveTabIndex:function(_e){if(_3.get(_e,"disabled")){return _8;}else{if(_3.has(_e,"tabIndex")){return +_3.get(_e,"tabIndex");}else{return _9.hasDefaultTabStop(_e)?0:_8;}}},isTabNavigable:function(_f){return _9.effectiveTabIndex(_f)>=0;},isFocusable:function(_10){return _9.effectiveTabIndex(_10)>=-1;},_getTabNavigable:function(_11){var _12,_13,_14,_15,_16,_17,_18={};function _19(_1a){return _1a&&_1a.tagName.toLowerCase()=="input"&&_1a.type&&_1a.type.toLowerCase()=="radio"&&_1a.name&&_1a.name.toLowerCase();};var _1b=_9._isElementShown,_1c=_9.effectiveTabIndex;var _1d=function(_1e){for(var _1f=_1e.firstChild;_1f;_1f=_1f.nextSibling){if(_1f.nodeType!=1||(_6("ie")<=9&&_1f.scopeName!=="HTML")||!_1b(_1f)){continue;}var _20=_1c(_1f);if(_20>=0){if(_20==0){if(!_12){_12=_1f;}_13=_1f;}else{if(_20>0){if(!_14||_20<_15){_15=_20;_14=_1f;}if(!_16||_20>=_17){_17=_20;_16=_1f;}}}var rn=_19(_1f);if(_3.get(_1f,"checked")&&rn){_18[rn]=_1f;}}if(_1f.nodeName.toUpperCase()!="SELECT"){_1d(_1f);}}};if(_1b(_11)){_1d(_11);}function rs(_21){return _18[_19(_21)]||_21;};return {first:rs(_12),last:rs(_13),lowest:rs(_14),highest:rs(_16)};},getFirstInTabbingOrder:function(_22,doc){var _23=_9._getTabNavigable(_2.byId(_22,doc));return _23.lowest?_23.lowest:_23.first;},getLastInTabbingOrder:function(_24,doc){var _25=_9._getTabNavigable(_2.byId(_24,doc));return _25.last?_25.last:_25.highest;}};1&&_5.mixin(_7,_9);return _9;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_26,_27,_28,_29,_2a,_2b,dom,_2c,_2d,_2e,_2f,_30,_31,_32,on,_33,_34,_35,win,_36){if(!_31.isAsync){_33(0,function(){var _37=["dijit/_base/manager"];_26(_37);});}var _38={};function _39(obj){var ret={};for(var _3a in obj){ret[_3a.toLowerCase()]=true;}return ret;};function _3b(_3c){return function(val){_2c[val?"set":"remove"](this.domNode,_3c,val);this._set(_3c,val);};};function _3d(a,b){return a===b||(a!==a&&b!==b);};return _2b("dijit._WidgetBase",_34,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_3b("lang"),dir:"",_setDirAttr:_3b("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_29.blankGif||_26.toUrl("dojo/resources/blank.gif"),postscript:function(_3e,_3f){this.create(_3e,_3f);},create:function(_40,_41){this.srcNodeRef=dom.byId(_41);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_40){this.params=_40;_32.mixin(this,_40);}this.postMixInProperties();if(!this.id){this.id=_36.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_36.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _42=this.srcNodeRef;if(_42&&_42.parentNode&&this.domNode!==_42){_42.parentNode.replaceChild(this.domNode,_42);}}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 _43=this.constructor,_44=_43._setterAttrs;if(!_44){_44=(_43._setterAttrs=[]);for(var _45 in this.attributeMap){_44.push(_45);}var _46=_43.prototype;for(var _47 in _46){if(_47 in this.attributeMap){continue;}var _48="_set"+_47.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_48 in _46){_44.push(_47);}}}_27.forEach(_44,function(_49){if(this.params&&_49 in this.params){}else{if(this[_49]){this.set(_49,this[_49]);}}},this);for(var _4a in this.params){this.set(_4a,this[_4a]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_2e.create("div");}if(this.baseClass){var _4b=this.baseClass.split(" ");if(!this.isLeftToRight()){_4b=_4b.concat(_27.map(_4b,function(_4c){return _4c+"Rtl";}));}_2d.add(this.domNode,_4b);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_27.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_32.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_4d){this._beingDestroyed=true;this.destroyDescendants(_4d);this.destroy(_4d);},destroy:function(_4e){this._beingDestroyed=true;this.uninitialize();var c;while((c=this._connects.pop())){c.remove();}var w;while((w=this._supportingWidgets.pop())){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_4e);_36.remove(this.id);this._destroyed=true;},destroyRendering:function(_4f){if(this.bgIframe){this.bgIframe.destroy(_4f);delete this.bgIframe;}if(this.domNode){if(_4f){_2c.remove(this.domNode,"widgetId");}else{_2e.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_4f){_2e.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_50){_27.forEach(this.getChildren(),function(_51){if(_51.destroyRecursive){_51.destroyRecursive(_50);}});},uninitialize:function(){return false;},_setStyleAttr:function(_52){var _53=this.domNode;if(_32.isObject(_52)){_30.set(_53,_52);}else{if(_53.style.cssText){_53.style.cssText+="; "+_52;}else{_53.style.cssText=_52;}}this._set("style",_52);},_attrToDom:function(_54,_55,_56){_56=arguments.length>=3?_56:this.attributeMap[_54];_27.forEach(_32.isArray(_56)?_56:[_56],function(_57){var _58=this[_57.node||_57||"domNode"];var _59=_57.type||"attribute";switch(_59){case "attribute":if(_32.isFunction(_55)){_55=_32.hitch(this,_55);}var _5a=_57.attribute?_57.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_54)?_54.toLowerCase():_54);_2c.set(_58,_5a,_55);break;case "innerText":_58.innerHTML="";_58.appendChild(win.doc.createTextNode(_55));break;case "innerHTML":_58.innerHTML=_55;break;case "class":_2d.replace(_58,_55,this[_54]);break;}},this);},get:function(_5b){var _5c=this._getAttrNames(_5b);return this[_5c.g]?this[_5c.g]():this[_5b];},set:function(_5d,_5e){if(typeof _5d==="object"){for(var x in _5d){this.set(x,_5d[x]);}return this;}var _5f=this._getAttrNames(_5d),_60=this[_5f.s];if(_32.isFunction(_60)){var _61=_60.apply(this,Array.prototype.slice.call(arguments,1));}else{var _62=this.focusNode&&!_32.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_62].tagName,_63=_38[tag]||(_38[tag]=_39(this[_62])),map=_5d in this.attributeMap?this.attributeMap[_5d]:_5f.s in this?this[_5f.s]:((_5f.l in _63&&typeof _5e!="function")||/^aria-|^data-|^role$/.test(_5d))?_62:null;if(map!=null){this._attrToDom(_5d,_5e,map);}this._set(_5d,_5e);}return _61||this;},_attrPairNames:{},_getAttrNames:function(_64){var apn=this._attrPairNames;if(apn[_64]){return apn[_64];}var uc=_64.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_64]={n:_64+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_65,_66){var _67=this[_65];this[_65]=_66;if(this._watchCallbacks&&this._created&&!_3d(_66,_67)){this._watchCallbacks(_65,_67,_66);}},on:function(_68,_69){return _28.after(this,this._onMap(_68),_69,true);},_onMap:function(_6a){var _6b=this.constructor,map=_6b._onMap;if(!map){map=(_6b._onMap={});for(var _6c in _6b.prototype){if(/^on/.test(_6c)){map[_6c.replace(/^on/,"").toLowerCase()]=_6c;}}}return map[_6a.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_36.findWidgets(this.containerNode):[];},getParent:function(){return _36.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_6d,_6e){var _6f=_2a.connect(obj,_6d,this,_6e);this._connects.push(_6f);return _6f;},disconnect:function(_70){var i=_27.indexOf(this._connects,_70);if(i!=-1){_70.remove();this._connects.splice(i,1);}},subscribe:function(t,_71){var _72=_35.subscribe(t,_32.hitch(this,_71));this._connects.push(_72);return _72;},unsubscribe:function(_73){this.disconnect(_73);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_2f.isBodyLtr();},isFocusable:function(){return this.focus&&(_30.get(this.domNode,"display")!="none");},placeAt:function(_74,_75){if(_74.declaredClass&&_74.addChild){_74.addChild(this,_75);}else{_2e.place(this.domNode,_74,_75);}return this;},getTextDir:function(_76,_77){return _77;},applyTextDir:function(){},defer:function(fcn,_78){var _79=setTimeout(_32.hitch(this,function(){if(!_79){return;}_79=null;if(!this._destroyed){_32.hitch(this,fcn)();}}),_78||0);return {remove:function(){if(_79){clearTimeout(_79);_79=null;}return null;}};}});});},"dojox/layout/ContentPane":function(){define("dojox/layout/ContentPane",["dojo/_base/lang","dojo/_base/xhr","dijit/layout/ContentPane","dojox/html/_base","dojo/_base/declare"],function(_7a,_7b,_7c,_7d,_7e){return _7e("dojox.layout.ContentPane",_7c,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=_7b.get;},onExecError:function(e){},_setContent:function(_7f){var _80=this._contentSetter;if(!(_80&&_80 instanceof _7d._ContentSetter)){_80=this._contentSetter=new _7d._ContentSetter({node:this.containerNode,_onError:_7a.hitch(this,this._onError),onContentError:_7a.hitch(this,function(e){var _81=this.onContentError(e);try{this.containerNode.innerHTML=_81;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};this.inherited("_setContent",arguments);},destroy:function(){var _82=this._contentSetter;if(_82){_82.tearDown();}this.inherited(arguments);}});});},"dojox/html/_base":function(){define("dojox/html/_base",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/xhr","dojo/_base/window","dojo/_base/sniff","dojo/_base/url","dojo/dom-construct","dojo/html","dojo/_base/declare"],function(_83,_84,_85,_86,has,_87,_88,_89){var _8a=_83.getObject("dojox.html",true);if(has("ie")){var _8b=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _8c=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _8d=_8a._adjustCssPaths=function(_8e,_8f){if(!_8f||!_8e){return;}if(_8b){_8f=_8f.replace(_8b,function(_90,pre,_91,url,_92){return pre+(new _87(_8e,"./"+url).toString())+_92;});}return _8f.replace(_8c,function(_93,_94,_95,_96,_97,_98){if(_95){return "@import \""+(new _87(_8e,"./"+_95).toString())+"\""+_98;}else{return "url("+(new _87(_8e,"./"+_97).toString())+")"+_98;}});};var _99=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _9a=_8a._adjustHtmlPaths=function(_9b,_9c){var url=_9b||"./";return _9c.replace(_99,function(tag,_9d,_9e,_9f,_a0,_a1,_a2,end){return _9d+(_9e?(_9e+"="+_9f+(new _87(url,_a0).toString())+_9f):("style="+_a1+_8d(url,_a2)+_a1))+end;});};var _a3=_8a._snarfStyles=function(_a4,_a5,_a6){_a6.attributes=[];return _a5.replace(/(?:]*)>([\s\S]*?)<\/style>|]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_a7,_a8,_a9,_aa,_ab,_ac){var i,_ad=(_a8||_aa||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_a9){i=_a6.push(_a4?_8d(_a4,_a9):_a9);}else{i=_a6.push("@import \""+_ac+"\";");_ad=_ad.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(_ad){_ad=_ad.split(/\s+/);var _ae={},tmp;for(var j=0,e=_ad.length;j/g,function(_b2){return _b2.replace(/<(\/?)script\b/ig,"<$1Script");});function _b3(src){if(_b1.downloadRemote){src=src.replace(/&([a-z0-9#]+);/g,function(m,_b4){switch(_b4){case "amp":return "&";case "gt":return ">";case "lt":return "<";default:return _b4.charAt(0)=="#"?String.fromCharCode(_b4.substring(1)):"&"+_b4+";";}});_85.get({url:src,sync:true,load:function(_b5){_b1.code+=_b5+";";},error:_b1.errBack});}};return _b0.replace(/]*type=['"]?(?:dojo\/|text\/html\b))(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_b6,_b7,src,_b8){if(src){_b3(src);}else{_b1.code+=_b8;}return "";});};var _b9=_8a.evalInGlobal=function(_ba,_bb){_bb=_bb||_86.doc.body;var n=_bb.ownerDocument.createElement("script");n.type="text/javascript";_bb.appendChild(n);n.text=_ba;};_8a._ContentSetter=_83.declare(_89._ContentSetter,{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_bc){this._styleNodes=[];var st,att,_bd,doc=this.node.ownerDocument;var _be=doc.getElementsByTagName("head")[0];for(var i=0,e=_bc.length;i|)/g,"");}if(this.scriptHasHooks){_c4=_c4.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_b9(_c4,this.node);}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}this.inherited("onEnd",arguments);},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){_88.destroy(this._styleNodes.pop());}}delete this._styleNodes;_83.mixin(this,_8a._ContentSetter.prototype);}});_8a.set=function(_c6,_c7,_c8){if(!_c8){return _89._setNodeContent(_c6,_c7,true);}else{var op=new _8a._ContentSetter(_83.mixin(_c8,{content:_c7,node:_c6}));return op.set();}};return _8a;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_c9,_ca,_cb,_cc){_c9.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(_cd){_cc[_cd]=_cb[_cd];});_cc.defaultDuration=_ca["defaultDuration"]||200;return _cc;});},"dojox/layout/ResizeHandle":function(){define("dojox/layout/ResizeHandle",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/connect","dojo/_base/array","dojo/_base/event","dojo/_base/fx","dojo/_base/window","dojo/fx","dojo/window","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dijit/_base/manager","dijit/_Widget","dijit/_TemplatedMixin","dojo/_base/declare"],function(_ce,_cf,_d0,_d1,_d2,_d3,_d4,_d5,_d6,_d7,_d8,_d9,_da,_db,_dc,_dd,_de){_ce.experimental("dojox.layout.ResizeHandle");var _df=_de("dojox.layout.ResizeHandle",[_dc,_dd],{targetId:"",targetContainer:null,resizeAxis:"xy",activeResize:false,activeResizeClass:"dojoxResizeHandleClone",animateSizing:true,animateMethod:"chain",animateDuration:225,minHeight:100,minWidth:100,constrainMax:false,maxHeight:0,maxWidth:0,fixedAspect:false,intermediateChanges:false,startTopic:"/dojo/resize/start",endTopic:"/dojo/resize/stop",templateString:"
",postCreate:function(){this.connect(this.resizeHandle,"onmousedown","_beginSizing");if(!this.activeResize){this._resizeHelper=_db.byId("dojoxGlobalResizeHelper");if(!this._resizeHelper){this._resizeHelper=new _e0({id:"dojoxGlobalResizeHelper"}).placeAt(_d4.body());_d8.add(this._resizeHelper.domNode,this.activeResizeClass);}}else{this.animateSizing=false;}if(!this.minSize){this.minSize={w:this.minWidth,h:this.minHeight};}if(this.constrainMax){this.maxSize={w:this.maxWidth,h:this.maxHeight};}this._resizeX=this._resizeY=false;var _e1=_cf.partial(_d8.add,this.resizeHandle);switch(this.resizeAxis.toLowerCase()){case "xy":this._resizeX=this._resizeY=true;_e1("dojoxResizeNW");break;case "x":this._resizeX=true;_e1("dojoxResizeW");break;case "y":this._resizeY=true;_e1("dojoxResizeN");break;}},_beginSizing:function(e){if(this._isSizing){return;}_d0.publish(this.startTopic,[this]);this.targetWidget=_db.byId(this.targetId);this.targetDomNode=this.targetWidget?this.targetWidget.domNode:_d7.byId(this.targetId);if(this.targetContainer){this.targetDomNode=this.targetContainer;}if(!this.targetDomNode){return;}if(!this.activeResize){var c=_d9.position(this.targetDomNode,true);this._resizeHelper.resize({l:c.x,t:c.y,w:c.w,h:c.h});this._resizeHelper.show();if(!this.isLeftToRight()){this._resizeHelper.startPosition={l:c.x,t:c.y};}}this._isSizing=true;this.startPoint={x:e.clientX,y:e.clientY};var _e2=_da.getComputedStyle(this.targetDomNode),_e3=_d9.boxModel==="border-model",_e4=_e3?{w:0,h:0}:_d9.getPadBorderExtents(this.targetDomNode,_e2),_e5=_d9.getMarginExtents(this.targetDomNode,_e2),mb;mb=this.startSize={w:_da.get(this.targetDomNode,"width",_e2),h:_da.get(this.targetDomNode,"height",_e2),pbw:_e4.w,pbh:_e4.h,mw:_e5.w,mh:_e5.h};if(!this.isLeftToRight()&&dojo.style(this.targetDomNode,"position")=="absolute"){var p=_d9.position(this.targetDomNode,true);this.startPosition={l:p.x,t:p.y};}this._pconnects=[_d0.connect(_d4.doc,"onmousemove",this,"_updateSizing"),_d0.connect(_d4.doc,"onmouseup",this,"_endSizing")];_d2.stop(e);},_updateSizing:function(e){if(this.activeResize){this._changeSizing(e);}else{var tmp=this._getNewCoords(e,"border",this._resizeHelper.startPosition);if(tmp===false){return;}this._resizeHelper.resize(tmp);}e.preventDefault();},_getNewCoords:function(e,box,_e6){try{if(!e.clientX||!e.clientY){return false;}}catch(e){return false;}this._activeResizeLastEvent=e;var dx=(this.isLeftToRight()?1:-1)*(this.startPoint.x-e.clientX),dy=this.startPoint.y-e.clientY,_e7=this.startSize.w-(this._resizeX?dx:0),_e8=this.startSize.h-(this._resizeY?dy:0),r=this._checkConstraints(_e7,_e8);_e6=(_e6||this.startPosition);if(_e6&&this._resizeX){r.l=_e6.l+dx;if(r.w!=_e7){r.l+=(_e7-r.w);}r.t=_e6.t;}switch(box){case "margin":r.w+=this.startSize.mw;r.h+=this.startSize.mh;case "border":r.w+=this.startSize.pbw;r.h+=this.startSize.pbh;break;}return r;},_checkConstraints:function(_e9,_ea){if(this.minSize){var tm=this.minSize;if(_e9ms.w){_e9=ms.w;}if(_ea>ms.h){_ea=ms.h;}}if(this.fixedAspect){var w=this.startSize.w,h=this.startSize.h,_eb=w*_ea-h*_e9;if(_eb<0){_e9=_ea*w/h;}else{if(_eb>0){_ea=_e9*h/w;}}}return {w:_e9,h:_ea};},_changeSizing:function(e){var _ec=this.targetWidget&&_cf.isFunction(this.targetWidget.resize),tmp=this._getNewCoords(e,_ec&&"margin");if(tmp===false){return;}if(_ec){this.targetWidget.resize(tmp);}else{if(this.animateSizing){var _ed=_d5[this.animateMethod]([_d3.animateProperty({node:this.targetDomNode,properties:{width:{start:this.startSize.w,end:tmp.w}},duration:this.animateDuration}),_d3.animateProperty({node:this.targetDomNode,properties:{height:{start:this.startSize.h,end:tmp.h}},duration:this.animateDuration})]);_ed.play();}else{_da.set(this.targetDomNode,{width:tmp.w+"px",height:tmp.h+"px"});}}if(this.intermediateChanges){this.onResize(e);}},_endSizing:function(e){_d1.forEach(this._pconnects,_d0.disconnect);var pub=_cf.partial(_d0.publish,this.endTopic,[this]);if(!this.activeResize){this._resizeHelper.hide();this._changeSizing(e);setTimeout(pub,this.animateDuration+15);}else{pub();}this._isSizing=false;this.onResize(e);},onResize:function(e){}});var _e0=dojo.declare("dojox.layout._ResizeHelper",_dc,{show:function(){_da.set(this.domNode,"display","");},hide:function(){_da.set(this.domNode,"display","none");},resize:function(dim){_d9.setMarginBox(this.domNode,dim);}});return _df;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_ee,has,_ef,win,_f0){var _f1={},_f2={};var _f3={length:0,add:function(_f4){if(_f2[_f4.id]){throw new Error("Tried to register widget with id=="+_f4.id+" but that id is already registered");}_f2[_f4.id]=_f4;this.length++;},remove:function(id){if(_f2[id]){delete _f2[id];this.length--;}},byId:function(id){return typeof id=="string"?_f2[id]:id;},byNode:function(_f5){return _f2[_f5.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _f2){ar.push(_f2[id]);}return ar;},getUniqueId:function(_f6){var id;do{id=_f6+"_"+(_f6 in _f1?++_f1[_f6]:_f1[_f6]=0);}while(_f2[id]);return _f0._scopeName=="dijit"?id:_f0._scopeName+"_"+id;},findWidgets:function(_f7){var _f8=[];function _f9(_fa){for(var _fb=_fa.firstChild;_fb;_fb=_fb.nextSibling){if(_fb.nodeType==1){var _fc=_fb.getAttribute("widgetId");if(_fc){var _fd=_f2[_fc];if(_fd){_f8.push(_fd);}}else{_f9(_fb);}}}};_f9(_f7);return _f8;},_destroyAll:function(){_f0._curFocus=null;_f0._prevFocus=null;_f0._activeStack=[];_ee.forEach(_f3.findWidgets(win.body()),function(_fe){if(!_fe._destroyed){if(_fe.destroyRecursive){_fe.destroyRecursive();}else{if(_fe.destroy){_fe.destroy();}}}});},getEnclosingWidget:function(_ff){while(_ff){var id=_ff.getAttribute&&_ff.getAttribute("widgetId");if(id){return _f2[id];}_ff=_ff.parentNode;}return null;},_hash:_f2};_f0.registry=_f3;return _f3;});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(on,_100,keys,_101,has,_102,win){var _103=null;if(has("ie")<9){(function(){var _104=function(evt){_103=evt.srcElement;};win.doc.attachEvent("onkeydown",_104);_102.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_104);});})();}else{win.doc.addEventListener("keydown",function(evt){_103=evt.target;},true);}var _105=function(node,_106){if(/input|button/i.test(node.nodeName)){return on(node,"click",_106);}else{function _107(e){return (e.keyCode==keys.ENTER||e.keyCode==keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _108=[on(node,"keypress",function(e){if(_107(e)){_103=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_107(e)&&e.target==_103){_103=null;_106.call(this,e);}}),on(node,"click",function(e){_106.call(this,e);})];return {remove:function(){_100.forEach(_108,function(h){h.remove();});}};}};return _101("dijit._OnDijitClickMixin",null,{connect:function(obj,_109,_10a){return this.inherited(arguments,[obj,_109=="ondijitclick"?_105:_109,_10a]);}});});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_10b,_10c,_10d,_10e,_10f,_110,has,win){if(has("ie")||has("mozilla")){_110(90,function(){var div=_10e.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_10c.blankGif||_10b.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_10f.getComputedStyle(div);if(cs){var _111=cs.backgroundImage;var _112=(cs.borderTopColor==cs.borderRightColor)||(_111!=null&&(_111=="none"||_111=="url(invalid-url:)"));if(_112){_10d.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dijit/_TemplatedMixin":function(){define("dijit/_TemplatedMixin",["dojo/_base/lang","dojo/touch","./_WidgetBase","dojo/string","dojo/cache","dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(lang,_113,_114,_115,_116,_117,_118,_119,has,_11a,win){var _11b=_118("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _11c=this.declaredClass,_11d=this;return _115.substitute(tmpl,this,function(_11e,key){if(key.charAt(0)=="!"){_11e=lang.getObject(key.substr(1),false,_11d);}if(typeof _11e=="undefined"){throw new Error(_11c+" template:"+key);}if(_11e==null){return "";}return key.charAt(0)=="!"?_11e:_11e.toString().replace(/"/g,""");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_116(this.templatePath,{sanitize:true});}var _11f=_11b.getCachedTemplate(this.templateString,this._skipNodeCache);var node;if(lang.isString(_11f)){node=_119.toDom(this._stringRepl(_11f));if(node.nodeType!=1){throw new Error("Invalid template: "+_11f);}}else{node=_11f.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node,function(n,p){return n.getAttribute(p);});this._beforeFillContent();this._fillContent(this.srcNodeRef);},_beforeFillContent:function(){},_fillContent:function(_120){var dest=this.containerNode;if(_120&&dest){while(_120.hasChildNodes()){dest.appendChild(_120.firstChild);}}},_attachTemplateNodes:function(_121,_122){var _123=lang.isArray(_121)?_121:(_121.all||_121.getElementsByTagName("*"));var x=lang.isArray(_121)?0:-1;for(;x<_123.length;x++){var _124=(x==-1)?_121:_123[x];if(this.widgetsInTemplate&&(_122(_124,"dojoType")||_122(_124,"data-dojo-type"))){continue;}var _125=_122(_124,"dojoAttachPoint")||_122(_124,"data-dojo-attach-point");if(_125){var _126,_127=_125.split(/\s*,\s*/);while((_126=_127.shift())){if(lang.isArray(this[_126])){this[_126].push(_124);}else{this[_126]=_124;}this._attachPoints.push(_126);}}var _128=_122(_124,"dojoAttachEvent")||_122(_124,"data-dojo-attach-event");if(_128){var _129,_12a=_128.split(/\s*,\s*/);var trim=lang.trim;while((_129=_12a.shift())){if(_129){var _12b=null;if(_129.indexOf(":")!=-1){var _12c=_129.split(":");_129=trim(_12c[0]);_12b=trim(_12c[1]);}else{_129=trim(_129);}if(!_12b){_12b=_129;}this._attachEvents.push(this.connect(_124,_113[_129]||_129,_12b));}}}}},destroyRendering:function(){_117.forEach(this._attachPoints,function(_12d){delete this[_12d];},this);this._attachPoints=[];_117.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_11b._templateCache={};_11b.getCachedTemplate=function(_12e,_12f){var _130=_11b._templateCache;var key=_12e;var _131=_130[key];if(_131){try{if(!_131.ownerDocument||_131.ownerDocument==win.doc){return _131;}}catch(e){}_119.destroy(_131);}_12e=_115.trim(_12e);if(_12f||_12e.match(/\$\{([^\}]+)\}/g)){return (_130[key]=_12e);}else{var node=_119.toDom(_12e);if(node.nodeType!=1){throw new Error("Invalid template: "+_12e);}return (_130[key]=node);}};if(has("ie")){_11a.addOnWindowUnload(function(){var _132=_11b._templateCache;for(var key in _132){var _133=_132[key];if(typeof _133=="object"){_119.destroy(_133);}delete _132[key];}});}lang.extend(_114,{dojoAttachEvent:"",dojoAttachPoint:""});return _11b;});},"dijit/_Widget":function(){define("dijit/_Widget",["dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/ready","./registry","./_WidgetBase","./_OnDijitClickMixin","./_FocusMixin","dojo/uacss","./hccss"],function(_134,_135,_136,_137,_138,lang,_139,_13a,_13b,_13c,_13d,_13e){function _13f(){};function _140(_141){return function(obj,_142,_143,_144){if(obj&&typeof _142=="string"&&obj[_142]==_13f){return obj.on(_142.substring(2).toLowerCase(),lang.hitch(_143,_144));}return _141.apply(_136,arguments);};};_134.around(_136,"connect",_140);if(_138.connect){_134.around(_138,"connect",_140);}var _145=_137("dijit._Widget",[_13c,_13d,_13e],{onClick:_13f,onDblClick:_13f,onKeyDown:_13f,onKeyPress:_13f,onKeyUp:_13f,onMouseDown:_13f,onMouseMove:_13f,onMouseOut:_13f,onMouseOver:_13f,onMouseLeave:_13f,onMouseEnter:_13f,onMouseUp:_13f,constructor:function(_146){this._toConnect={};for(var name in _146){if(this[name]===_13f){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_146[name];delete _146[name];}}},postCreate:function(){this.inherited(arguments);for(var name in this._toConnect){this.on(name,this._toConnect[name]);}delete this._toConnect;},on:function(type,func){if(this[this._onMap(type)]===_13f){return _136.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_147){_138.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_147);},attr:function(name,_148){if(_135.isDebug){var _149=arguments.callee._ach||(arguments.callee._ach={}),_14a=(arguments.callee.caller||"unknown caller").toString();if(!_149[_14a]){_138.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_14a,"","2.0");_149[_14a]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_138.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_139("[widgetId]",this.containerNode).map(_13b.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_138.isAsync){_13a(0,function(){var _14b=["dijit/_base"];require(_14b);});}return _145;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_14c,_14d,_14e,lang){lang.extend(_14d,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _14e("dijit._FocusMixin",null,{_focusManager:_14c});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/domReady","dojo/_base/sniff","dojo/Stateful","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_14f,_150,dom,_151,_152,_153,lang,on,_154,has,_155,win,_156,a11y,_157,_158){var _159=_150([_155,_153],{curNode:null,activeStack:[],constructor:function(){var _15a=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_14f.before(_152,"empty",_15a);_14f.before(_152,"destroy",_15a);},registerIframe:function(_15b){return this.registerWin(_15b.contentWindow,_15b);},registerWin:function(_15c,_15d){var _15e=this,body=_15c.document&&_15c.document.body;if(body){var mdh=on(body,"mousedown",function(evt){_15e._justMouseDowned=true;setTimeout(function(){_15e._justMouseDowned=false;},13);if(evt&&evt.target&&evt.target.parentNode==null){return;}_15e._onTouchNode(_15d||evt.target,"mouse");});var fih=on(body,"focusin",function(evt){if(!evt.target.tagName){return;}var tag=evt.target.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.target)){_15e._onFocusNode(_15d||evt.target);}else{_15e._onTouchNode(_15d||evt.target);}});var foh=on(body,"focusout",function(evt){_15e._onBlurNode(_15d||evt.target);});return {remove:function(){mdh.remove();fih.remove();foh.remove();mdh=fih=foh=null;body=null;}};}},_onBlurNode:function(node){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(lang.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _15f=[];try{while(node){var _160=_151.get(node,"dijitPopupParent");if(_160){node=_157.byId(_160).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_156.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_161=id&&_157.byId(id);if(_161&&!(by=="mouse"&&_161.get("disabled"))){_15f.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_15f,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",node);},_setStack:function(_162,by){var _163=this.activeStack,_164=_163.length-1,_165=_162.length-1;if(_162[_165]==_163[_164]){return;}this.set("activeStack",_162);var _166,i;for(i=_164;i>=0&&_163[i]!=_162[i];i--){_166=_157.byId(_163[i]);if(_166){_166._hasBeenBlurred=true;_166.set("focused",false);if(_166._focusManager==this){_166._onBlur(by);}this.emit("widget-blur",_166,by);}}for(i++;i<=_165;i++){_166=_157.byId(_162[i]);if(_166){_166.set("focused",true);if(_166._focusManager==this){_166._onFocus(by);}this.emit("widget-focus",_166,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _167=new _159();_154(function(){var _168=_167.registerWin(_156.get(document));if(has("ie")){on(window,"unload",function(){if(_168){_168.remove();_168=null;}});}});_158.focus=function(node){_167.focus(node);};for(var attr in _167){if(!/^_/.test(attr)){_158.focus[attr]=typeof _167[attr]=="function"?lang.hitch(_167,attr):_167[attr];}}_167.watch(function(attr,_169,_16a){_158.focus[attr]=_16a;});return _167;});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_16b,_16c){return _16b("dijit._Contained",null,{_getSibling:function(_16d){var node=this.domNode;do{node=node[_16d+"Sibling"];}while(node&&node.nodeType!=1);return node&&_16c.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"*noref":1}});define("dojox/_dojox_layout_basic",[],1);require(["dojox/layout/ResizeHandle","dojox/layout/ContentPane"]);/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/uuid":function(){define("dojox/uuid",["dojox/uuid/_base"],function(_1){return _1;});},"dojox/uuid/Uuid":function(){define("dojox/uuid/Uuid",["dojo/_base/lang","./_base"],function(_2,_3){dojox.uuid.Uuid=function(_4){this._uuidString=dojox.uuid.NIL_UUID;if(_4){dojox.uuid.assert(_2.isString(_4));this._uuidString=_4.toLowerCase();dojox.uuid.assert(this.isValid());}else{var _5=dojox.uuid.Uuid.getGenerator();if(_5){this._uuidString=_5();dojox.uuid.assert(this.isValid());}}};dojox.uuid.Uuid.compare=function(_6,_7){var _8=_6.toString();var _9=_7.toString();if(_8>_9){return 1;}if(_8<_9){return -1;}return 0;};dojox.uuid.Uuid.setGenerator=function(_a){dojox.uuid.assert(!_a||_2.isFunction(_a));dojox.uuid.Uuid._ourGenerator=_a;};dojox.uuid.Uuid.getGenerator=function(){return dojox.uuid.Uuid._ourGenerator;};dojox.uuid.Uuid.prototype.toString=function(){return this._uuidString;};dojox.uuid.Uuid.prototype.compare=function(_b){return dojox.uuid.Uuid.compare(this,_b);};dojox.uuid.Uuid.prototype.isEqual=function(_c){return (this.compare(_c)==0);};dojox.uuid.Uuid.prototype.isValid=function(){return dojox.uuid.isValid(this);};dojox.uuid.Uuid.prototype.getVariant=function(){return dojox.uuid.getVariant(this);};dojox.uuid.Uuid.prototype.getVersion=function(){if(!this._versionNumber){this._versionNumber=dojox.uuid.getVersion(this);}return this._versionNumber;};dojox.uuid.Uuid.prototype.getNode=function(){if(!this._nodeString){this._nodeString=dojox.uuid.getNode(this);}return this._nodeString;};dojox.uuid.Uuid.prototype.getTimestamp=function(_d){if(!_d){_d=null;}switch(_d){case "string":case String:return this.getTimestamp(Date).toUTCString();break;case "hex":if(!this._timestampAsHexString){this._timestampAsHexString=dojox.uuid.getTimestamp(this,"hex");}return this._timestampAsHexString;break;case null:case "date":case Date:if(!this._timestampAsDate){this._timestampAsDate=dojox.uuid.getTimestamp(this,Date);}return this._timestampAsDate;break;default:dojox.uuid.assert(false,"The getTimestamp() method dojox.uuid.Uuid was passed a bogus returnType: "+_d);break;}};return dojox.uuid.Uuid;});},"dojox/uuid/_base":function(){define("dojox/uuid/_base",["dojo/_base/kernel","dojo/_base/lang"],function(_e){_e.getObject("uuid",true,dojox);dojox.uuid.NIL_UUID="00000000-0000-0000-0000-000000000000";dojox.uuid.version={UNKNOWN:0,TIME_BASED:1,DCE_SECURITY:2,NAME_BASED_MD5:3,RANDOM:4,NAME_BASED_SHA1:5};dojox.uuid.variant={NCS:"0",DCE:"10",MICROSOFT:"110",UNKNOWN:"111"};dojox.uuid.assert=function(_f,_10){if(!_f){if(!_10){_10="An assert statement failed.\n"+"The method dojox.uuid.assert() was called with a 'false' value.\n";}throw new Error(_10);}};dojox.uuid.generateNilUuid=function(){return dojox.uuid.NIL_UUID;};dojox.uuid.isValid=function(_11){_11=_11.toString();var _12=(_e.isString(_11)&&(_11.length==36)&&(_11==_11.toLowerCase()));if(_12){var _13=_11.split("-");_12=((_13.length==5)&&(_13[0].length==8)&&(_13[1].length==4)&&(_13[2].length==4)&&(_13[3].length==4)&&(_13[4].length==12));var _14=16;for(var i in _13){var _15=_13[i];var _16=parseInt(_15,_14);_12=_12&&isFinite(_16);}}return _12;};dojox.uuid.getVariant=function(_17){if(!dojox.uuid._ourVariantLookupTable){var _18=dojox.uuid.variant;var _19=[];_19[0]=_18.NCS;_19[1]=_18.NCS;_19[2]=_18.NCS;_19[3]=_18.NCS;_19[4]=_18.NCS;_19[5]=_18.NCS;_19[6]=_18.NCS;_19[7]=_18.NCS;_19[8]=_18.DCE;_19[9]=_18.DCE;_19[10]=_18.DCE;_19[11]=_18.DCE;_19[12]=_18.MICROSOFT;_19[13]=_18.MICROSOFT;_19[14]=_18.UNKNOWN;_19[15]=_18.UNKNOWN;dojox.uuid._ourVariantLookupTable=_19;}_17=_17.toString();var _1a=_17.charAt(19);var _1b=16;var _1c=parseInt(_1a,_1b);dojox.uuid.assert((_1c>=0)&&(_1c<=16));return dojox.uuid._ourVariantLookupTable[_1c];};dojox.uuid.getVersion=function(_1d){var _1e="dojox.uuid.getVersion() was not passed a DCE Variant UUID.";dojox.uuid.assert(dojox.uuid.getVariant(_1d)==dojox.uuid.variant.DCE,_1e);_1d=_1d.toString();var _1f=_1d.charAt(14);var _20=16;var _21=parseInt(_1f,_20);return _21;};dojox.uuid.getNode=function(_22){var _23="dojox.uuid.getNode() was not passed a TIME_BASED UUID.";dojox.uuid.assert(dojox.uuid.getVersion(_22)==dojox.uuid.version.TIME_BASED,_23);_22=_22.toString();var _24=_22.split("-");var _25=_24[4];return _25;};dojox.uuid.getTimestamp=function(_26,_27){var _28="dojox.uuid.getTimestamp() was not passed a TIME_BASED UUID.";dojox.uuid.assert(dojox.uuid.getVersion(_26)==dojox.uuid.version.TIME_BASED,_28);_26=_26.toString();if(!_27){_27=null;}switch(_27){case "string":case String:return dojox.uuid.getTimestamp(_26,Date).toUTCString();break;case "hex":var _29=_26.split("-");var _2a=_29[0];var _2b=_29[1];var _2c=_29[2];_2c=_2c.slice(1);var _2d=_2c+_2b+_2a;dojox.uuid.assert(_2d.length==15);return _2d;break;case null:case "date":case Date:var _2e=3394248;var _2f=16;var _30=_26.split("-");var _31=parseInt(_30[0],_2f);var _32=parseInt(_30[1],_2f);var _33=parseInt(_30[2],_2f);var _34=_33&4095;_34<<=16;_34+=_32;_34*=4294967296;_34+=_31;var _35=_34/10000;var _36=60*60;var _37=_2e;var _38=_37*_36;var _39=_38*1000;var _3a=_35-_39;var _3b=new Date(_3a);return _3b;break;default:dojox.uuid.assert(false,"dojox.uuid.getTimestamp was not passed a valid returnType: "+_27);break;}};return dojox.uuid;});},"dojox/uuid/generateTimeBasedUuid":function(){define("dojox/uuid/generateTimeBasedUuid",["dojo/_base/lang","./_base"],function(_3c){dojox.uuid.generateTimeBasedUuid=function(_3d){var _3e=dojox.uuid.generateTimeBasedUuid._generator.generateUuidString(_3d);return _3e;};dojox.uuid.generateTimeBasedUuid.isValidNode=function(_3f){var _40=16;var _41=parseInt(_3f,_40);var _42=_3c.isString(_3f)&&_3f.length==12&&isFinite(_41);return _42;};dojox.uuid.generateTimeBasedUuid.setNode=function(_43){dojox.uuid.assert((_43===null)||this.isValidNode(_43));this._uniformNode=_43;};dojox.uuid.generateTimeBasedUuid.getNode=function(){return this._uniformNode;};dojox.uuid.generateTimeBasedUuid._generator=new function(){this.GREGORIAN_CHANGE_OFFSET_IN_HOURS=3394248;var _44=null;var _45=null;var _46=null;var _47=0;var _48=null;var _49=null;var _4a=16;function _4b(_4c){_4c[2]+=_4c[3]>>>16;_4c[3]&=65535;_4c[1]+=_4c[2]>>>16;_4c[2]&=65535;_4c[0]+=_4c[1]>>>16;_4c[1]&=65535;dojox.uuid.assert((_4c[0]>>>16)===0);};function _4d(x){var _4e=new Array(0,0,0,0);_4e[3]=x%65536;x-=_4e[3];x/=65536;_4e[2]=x%65536;x-=_4e[2];x/=65536;_4e[1]=x%65536;x-=_4e[1];x/=65536;_4e[0]=x;return _4e;};function _4f(_50,_51){dojox.uuid.assert(_3c.isArray(_50));dojox.uuid.assert(_3c.isArray(_51));dojox.uuid.assert(_50.length==4);dojox.uuid.assert(_51.length==4);var _52=new Array(0,0,0,0);_52[3]=_50[3]+_51[3];_52[2]=_50[2]+_51[2];_52[1]=_50[1]+_51[1];_52[0]=_50[0]+_51[0];_4b(_52);return _52;};function _53(_54,_55){dojox.uuid.assert(_3c.isArray(_54));dojox.uuid.assert(_3c.isArray(_55));dojox.uuid.assert(_54.length==4);dojox.uuid.assert(_55.length==4);var _56=false;if(_54[0]*_55[0]!==0){_56=true;}if(_54[0]*_55[1]!==0){_56=true;}if(_54[0]*_55[2]!==0){_56=true;}if(_54[1]*_55[0]!==0){_56=true;}if(_54[1]*_55[1]!==0){_56=true;}if(_54[2]*_55[0]!==0){_56=true;}dojox.uuid.assert(!_56);var _57=new Array(0,0,0,0);_57[0]+=_54[0]*_55[3];_4b(_57);_57[0]+=_54[1]*_55[2];_4b(_57);_57[0]+=_54[2]*_55[1];_4b(_57);_57[0]+=_54[3]*_55[0];_4b(_57);_57[1]+=_54[1]*_55[3];_4b(_57);_57[1]+=_54[2]*_55[2];_4b(_57);_57[1]+=_54[3]*_55[1];_4b(_57);_57[2]+=_54[2]*_55[3];_4b(_57);_57[2]+=_54[3]*_55[2];_4b(_57);_57[3]+=_54[3]*_55[3];_4b(_57);return _57;};function _58(_59,_5a){while(_59.length<_5a){_59="0"+_59;}return _59;};function _5b(){var _5c=Math.floor((Math.random()%1)*Math.pow(2,32));var _5d=_5c.toString(_4a);while(_5d.length<8){_5d="0"+_5d;}return _5d;};this.generateUuidString=function(_5e){if(_5e){dojox.uuid.assert(dojox.uuid.generateTimeBasedUuid.isValidNode(_5e));}else{if(dojox.uuid.generateTimeBasedUuid._uniformNode){_5e=dojox.uuid.generateTimeBasedUuid._uniformNode;}else{if(!_44){var _5f=32768;var _60=Math.floor((Math.random()%1)*Math.pow(2,15));var _61=(_5f|_60).toString(_4a);_44=_61+_5b();}_5e=_44;}}if(!_45){var _62=32768;var _63=Math.floor((Math.random()%1)*Math.pow(2,14));_45=(_62|_63).toString(_4a);}var now=new Date();var _64=now.valueOf();var _65=_4d(_64);if(!_48){var _66=_4d(60*60);var _67=_4d(dojox.uuid.generateTimeBasedUuid._generator.GREGORIAN_CHANGE_OFFSET_IN_HOURS);var _68=_53(_67,_66);var _69=_4d(1000);_48=_53(_68,_69);_49=_4d(10000);}var _6a=_65;var _6b=_4f(_48,_6a);var _6c=_53(_6b,_49);if(now.valueOf()==_46){_6c[3]+=_47;_4b(_6c);_47+=1;if(_47==10000){while(now.valueOf()==_46){now=new Date();}}}else{_46=now.valueOf();_47=1;}var _6d=_6c[2].toString(_4a);var _6e=_6c[3].toString(_4a);var _6f=_58(_6d,4)+_58(_6e,4);var _70=_6c[1].toString(_4a);_70=_58(_70,4);var _71=_6c[0].toString(_4a);_71=_58(_71,3);var _72="-";var _73="1";var _74=_6f+_72+_70+_72+_73+_71+_72+_45+_72+_5e;_74=_74.toLowerCase();return _74;};}();return dojox.uuid.generateTimeBasedUuid;});},"dojox/uuid/generateRandomUuid":function(){define("dojox/uuid/generateRandomUuid",["./_base"],function(){dojox.uuid.generateRandomUuid=function(){var _75=16;function _76(){var _77=Math.floor((Math.random()%1)*Math.pow(2,32));var _78=_77.toString(_75);while(_78.length<8){_78="0"+_78;}return _78;};var _79="-";var _7a="4";var _7b="8";var a=_76();var b=_76();b=b.substring(0,4)+_79+_7a+b.substring(5,8);var c=_76();c=_7b+c.substring(1,4)+_79+c.substring(4,8);var d=_76();var _7c=a+_79+b+_79+c+d;_7c=_7c.toLowerCase();return _7c;};return dojox.uuid.generateRandomUuid;});},"*noref":1}});define("dojox/_dojox_uuid",[],1);require(["dojox/uuid","dojox/uuid/Uuid","dojox/uuid/generateRandomUuid","dojox/uuid/generateTimeBasedUuid"]);/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/data/dom":function(){define("dojox/data/dom",["dojo/_base/kernel","dojo/_base/lang","dojox/xml/parser"],function(_1,_2,_3){dojo.deprecated("dojox.data.dom","Use dojox.xml.parser instead.","2.0");var _4=_2.getObject("dojox.data.dom",true);_4.createDocument=function(_5,_6){dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0");try{return _3.parse(_5,_6);}catch(e){return null;}};_4.textContent=function(_7,_8){dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0");if(arguments.length>1){return _3.textContent(_7,_8);}else{return _3.textContent(_7);}};_4.replaceChildren=function(_9,_a){dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0");_3.replaceChildren(_9,_a);};_4.removeChildren=function(_b){dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0");return dojox.xml.parser.removeChildren(_b);};_4.innerXML=function(_c){dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0");return _3.innerXML(_c);};return _4;});},"dojox/xml/parser":function(){define("dojox/xml/parser",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(_d){_d.getObject("xml.parser",true,dojox);dojox.xml.parser.parse=function(_e,_f){var _10=_d.doc;var doc;_f=_f||"text/xml";if(_e&&_d.trim(_e)&&"DOMParser" in _d.global){var _11=new DOMParser();doc=_11.parseFromString(_e,_f);var de=doc.documentElement;var _12="http://www.mozilla.org/newlayout/xml/parsererror.xml";if(de.nodeName=="parsererror"&&de.namespaceURI==_12){var _13=de.getElementsByTagNameNS(_12,"sourcetext")[0];if(_13){_13=_13.firstChild.data;}throw new Error("Error parsing text "+de.firstChild.data+" \n"+_13);}return doc;}else{if("ActiveXObject" in _d.global){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_d.some(dp,function(p){try{doc=new ActiveXObject(p);}catch(e){return false;}return true;});if(_e&&doc){doc.async=false;doc.loadXML(_e);var pe=doc.parseError;if(pe.errorCode!==0){throw new Error("Line: "+pe.line+"\n"+"Col: "+pe.linepos+"\n"+"Reason: "+pe.reason+"\n"+"Error Code: "+pe.errorCode+"\n"+"Source: "+pe.srcText);}}if(doc){return doc;}}else{if(_10.implementation&&_10.implementation.createDocument){if(_e&&_d.trim(_e)&&_10.createElement){var tmp=_10.createElement("xml");tmp.innerHTML=_e;var _14=_10.implementation.createDocument("foo","",null);_d.forEach(tmp.childNodes,function(_15){_14.importNode(_15,true);});return _14;}else{return _10.implementation.createDocument("","",null);}}}}return null;};dojox.xml.parser.textContent=function(_16,_17){if(arguments.length>1){var _18=_16.ownerDocument||_d.doc;dojox.xml.parser.replaceChildren(_16,_18.createTextNode(_17));return _17;}else{if(_16.textContent!==undefined){return _16.textContent;}var _19="";if(_16){_d.forEach(_16.childNodes,function(_1a){switch(_1a.nodeType){case 1:case 5:_19+=dojox.xml.parser.textContent(_1a);break;case 3:case 2:case 4:_19+=_1a.nodeValue;}});}return _19;}};dojox.xml.parser.replaceChildren=function(_1b,_1c){var _1d=[];if(_d.isIE){_d.forEach(_1b.childNodes,function(_1e){_1d.push(_1e);});}dojox.xml.parser.removeChildren(_1b);_d.forEach(_1d,_d.destroy);if(!_d.isArray(_1c)){_1b.appendChild(_1c);}else{_d.forEach(_1c,function(_1f){_1b.appendChild(_1f);});}};dojox.xml.parser.removeChildren=function(_20){var _21=_20.childNodes.length;while(_20.hasChildNodes()){_20.removeChild(_20.firstChild);}return _21;};dojox.xml.parser.innerXML=function(_22){if(_22.innerXML){return _22.innerXML;}else{if(_22.xml){return _22.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(_22);}}}return null;};return dojox.xml.parser;});},"*noref":1}});define("dojox/_dojox_xml",[],1);require(["dojox/data/dom","dojox/xml/parser"]);var OpenAjax=OpenAjax||{}; if(!OpenAjax.hub){ OpenAjax.hub=function(){ var _1={}; var _2="org.openajax.hub."; return {implementer:"http://openajax.org",implVersion:"2.0.7",specVersion:"2.0",implExtraData:{},libraries:_1,registerLibrary:function(_3,_4,_5,_6){ _1[_3]={prefix:_3,namespaceURI:_4,version:_5,extraData:_6}; this.publish(_2+"registerLibrary",_1[_3]); },unregisterLibrary:function(_7){ this.publish(_2+"unregisterLibrary",_1[_7]); delete _1[_7]; }}; }(); OpenAjax.hub.Error={BadParameters:"OpenAjax.hub.Error.BadParameters",Disconnected:"OpenAjax.hub.Error.Disconnected",Duplicate:"OpenAjax.hub.Error.Duplicate",NoContainer:"OpenAjax.hub.Error.NoContainer",NoSubscription:"OpenAjax.hub.Error.NoSubscription",NotAllowed:"OpenAjax.hub.Error.NotAllowed",WrongProtocol:"OpenAjax.hub.Error.WrongProtocol",IncompatBrowser:"OpenAjax.hub.Error.IncompatBrowser"}; OpenAjax.hub.SecurityAlert={LoadTimeout:"OpenAjax.hub.SecurityAlert.LoadTimeout",FramePhish:"OpenAjax.hub.SecurityAlert.FramePhish",ForgedMsg:"OpenAjax.hub.SecurityAlert.ForgedMsg"}; OpenAjax.hub._debugger=function(){ }; OpenAjax.hub.ManagedHub=function(_8){ if(!_8||!_8.onPublish||!_8.onSubscribe){ throw new Error(OpenAjax.hub.Error.BadParameters); } this._p=_8; this._onUnsubscribe=_8.onUnsubscribe?_8.onUnsubscribe:null; this._scope=_8.scope||window; if(_8.log){ var _9=this; this._log=function(_a){ try{ _8.log.call(_9._scope,"ManagedHub: "+_a); } catch(e){ OpenAjax.hub._debugger(); } }; }else{ this._log=function(){ }; } this._subscriptions={c:{},s:null}; this._containers={}; this._seq=0; this._active=true; this._isPublishing=false; this._pubQ=[]; }; OpenAjax.hub.ManagedHub.prototype.subscribeForClient=function(_b,_c,_d){ this._assertConn(); if(this._invokeOnSubscribe(_c,_b)){ return this._subscribe(_c,this._sendToClient,this,{c:_b,sid:_d}); } throw new Error(OpenAjax.hub.Error.NotAllowed); }; OpenAjax.hub.ManagedHub.prototype.unsubscribeForClient=function(_e,_f){ this._unsubscribe(_f); this._invokeOnUnsubscribe(_e,_f); }; OpenAjax.hub.ManagedHub.prototype.publishForClient=function(_10,_11,_12){ this._assertConn(); this._publish(_11,_12,_10); }; OpenAjax.hub.ManagedHub.prototype.disconnect=function(){ this._active=false; for(var c in this._containers){ this.removeContainer(this._containers[c]); } }; OpenAjax.hub.ManagedHub.prototype.getContainer=function(_13){ var _14=this._containers[_13]; return _14?_14:null; }; OpenAjax.hub.ManagedHub.prototype.listContainers=function(){ var res=[]; for(var c in this._containers){ res.push(this._containers[c]); } return res; }; OpenAjax.hub.ManagedHub.prototype.addContainer=function(_15){ this._assertConn(); var _16=_15.getClientID(); if(this._containers[_16]){ throw new Error(OpenAjax.hub.Error.Duplicate); } this._containers[_16]=_15; }; OpenAjax.hub.ManagedHub.prototype.removeContainer=function(_17){ var _18=_17.getClientID(); if(!this._containers[_18]){ throw new Error(OpenAjax.hub.Error.NoContainer); } _17.remove(); delete this._containers[_18]; }; OpenAjax.hub.ManagedHub.prototype.subscribe=function(_19,_1a,_1b,_1c,_1d){ this._assertConn(); this._assertSubTopic(_19); if(!_1a){ throw new Error(OpenAjax.hub.Error.BadParameters); } _1b=_1b||window; if(!this._invokeOnSubscribe(_19,null)){ this._invokeOnComplete(_1c,_1b,null,false,OpenAjax.hub.Error.NotAllowed); return; } var _1e=this; function _1f(_20,_21,sd,_22){ if(_1e._invokeOnPublish(_20,_21,_22,null)){ try{ _1a.call(_1b,_20,_21,_1d); } catch(e){ OpenAjax.hub._debugger(); _1e._log("caught error from onData callback to Hub.subscribe(): "+e.message); } } }; var _23=this._subscribe(_19,_1f,_1b,_1d); this._invokeOnComplete(_1c,_1b,_23,true); return _23; }; OpenAjax.hub.ManagedHub.prototype.publish=function(_24,_25){ this._assertConn(); this._assertPubTopic(_24); this._publish(_24,_25,null); }; OpenAjax.hub.ManagedHub.prototype.unsubscribe=function(_26,_27,_28){ this._assertConn(); if(!_26){ throw new Error(OpenAjax.hub.Error.BadParameters); } this._unsubscribe(_26); this._invokeOnUnsubscribe(null,_26); this._invokeOnComplete(_27,_28,_26,true); }; OpenAjax.hub.ManagedHub.prototype.isConnected=function(){ return this._active; }; OpenAjax.hub.ManagedHub.prototype.getScope=function(){ return this._scope; }; OpenAjax.hub.ManagedHub.prototype.getSubscriberData=function(_29){ this._assertConn(); var _2a=_29.split("."); var sid=_2a.pop(); var sub=this._getSubscriptionObject(this._subscriptions,_2a,0,sid); if(sub){ return sub.data; } throw new Error(OpenAjax.hub.Error.NoSubscription); }; OpenAjax.hub.ManagedHub.prototype.getSubscriberScope=function(_2b){ this._assertConn(); var _2c=_2b.split("."); var sid=_2c.pop(); var sub=this._getSubscriptionObject(this._subscriptions,_2c,0,sid); if(sub){ return sub.scope; } throw new Error(OpenAjax.hub.Error.NoSubscription); }; OpenAjax.hub.ManagedHub.prototype.getParameters=function(){ return this._p; }; OpenAjax.hub.ManagedHub.prototype._sendToClient=function(_2d,_2e,sd,_2f){ if(!this.isConnected()){ return; } if(this._invokeOnPublish(_2d,_2e,_2f,sd.c)){ sd.c.sendToClient(_2d,_2e,sd.sid); } }; OpenAjax.hub.ManagedHub.prototype._assertConn=function(){ if(!this.isConnected()){ throw new Error(OpenAjax.hub.Error.Disconnected); } }; OpenAjax.hub.ManagedHub.prototype._assertPubTopic=function(_30){ if(!_30||_30===""||(_30.indexOf("*")!=-1)||(_30.indexOf("..")!=-1)||(_30.charAt(0)==".")||(_30.charAt(_30.length-1)==".")){ throw new Error(OpenAjax.hub.Error.BadParameters); } }; OpenAjax.hub.ManagedHub.prototype._assertSubTopic=function(_31){ if(!_31){ throw new Error(OpenAjax.hub.Error.BadParameters); } var _32=_31.split("."); var len=_32.length; for(var i=0;i0){ var pub=this._pubQ.shift(); this._safePublish(pub.t,pub.d,pub.p); } }; OpenAjax.hub.ManagedHub.prototype._safePublish=function(_4e,_4f,_50){ this._isPublishing=true; var _51=_4e.split("."); this._recursivePublish(this._subscriptions,_51,0,_4e,_4f,_50); this._isPublishing=false; }; OpenAjax.hub.ManagedHub.prototype._recursivePublish=function(_52,_53,_54,_55,msg,_56){ if(typeof _52!="undefined"){ var _57; if(_54==_53.length){ _57=_52; }else{ this._recursivePublish(_52.c[_53[_54]],_53,_54+1,_55,msg,_56); this._recursivePublish(_52.c["*"],_53,_54+1,_55,msg,_56); _57=_52.c["**"]; } if(typeof _57!="undefined"){ var sub=_57.s; while(sub){ var sc=sub.scope; var cb=sub.cb; var d=sub.data; if(typeof cb=="string"){ cb=sc[cb]; } cb.call(sc,_55,msg,d,_56); sub=sub.next; } } } }; OpenAjax.hub.ManagedHub.prototype._unsubscribe=function(_58){ var _59=_58.split("."); var sid=_59.pop(); if(!this._recursiveUnsubscribe(this._subscriptions,_59,0,sid)){ throw new Error(OpenAjax.hub.Error.NoSubscription); } }; OpenAjax.hub.ManagedHub.prototype._recursiveUnsubscribe=function(_5a,_5b,_5c,sid){ if(typeof _5a=="undefined"){ return false; } if(_5c<_5b.length){ var _5d=_5a.c[_5b[_5c]]; if(!_5d){ return false; } this._recursiveUnsubscribe(_5d,_5b,_5c+1,sid); if(!_5d.s){ for(var x in _5d.c){ return true; } delete _5a.c[_5b[_5c]]; } }else{ var sub=_5a.s; var _5e=null; var _5f=false; while(sub){ if(sid==sub.sid){ _5f=true; if(sub==_5a.s){ _5a.s=sub.next; }else{ _5e.next=sub.next; } break; } _5e=sub; sub=sub.next; } if(!_5f){ return false; } } return true; }; OpenAjax.hub.ManagedHub.prototype._getSubscriptionObject=function(_60,_61,_62,sid){ if(typeof _60!="undefined"){ if(_62<_61.length){ var _63=_60.c[_61[_62]]; return this._getSubscriptionObject(_63,_61,_62+1,sid); } var sub=_60.s; while(sub){ if(sid==sub.sid){ return sub; } sub=sub.next; } } return null; }; OpenAjax.hub._hub=new OpenAjax.hub.ManagedHub({onSubscribe:function(_64,_65){ return true; },onPublish:function(_66,_67,_68,_69){ return true; }}); OpenAjax.hub.subscribe=function(_6a,_6b,_6c,_6d){ if(typeof _6b==="string"){ _6c=_6c||window; _6b=_6c[_6b]||null; } return OpenAjax.hub._hub.subscribe(_6a,_6b,_6c,null,_6d); }; OpenAjax.hub.unsubscribe=function(_6e){ return OpenAjax.hub._hub.unsubscribe(_6e); }; OpenAjax.hub.publish=function(_6f,_70){ OpenAjax.hub._hub.publish(_6f,_70); }; OpenAjax.hub.registerLibrary("OpenAjax","http://openajax.org/hub","2.0",{}); } OpenAjax.hub.InlineContainer=function(hub,_71,_72){ if(!hub||!_71||!_72||!_72.Container||!_72.Container.onSecurityAlert){ throw new Error(OpenAjax.hub.Error.BadParameters); } var _73=_72.Container.scope||window; var _74=false; var _75=[]; var _76=0; var _77=null; if(_72.Container.log){ var log=function(msg){ try{ _72.Container.log.call(_73,"InlineContainer::"+_71+": "+msg); } catch(e){ OpenAjax.hub._debugger(); } }; }else{ log=function(){ }; } this._init=function(){ hub.addContainer(this); }; this.getHub=function(){ return hub; }; this.sendToClient=function(_78,_79,_7a){ if(_74){ var sub=_75[_7a]; try{ sub.cb.call(sub.sc,_78,_79,sub.d); } catch(e){ OpenAjax.hub._debugger(); _77._log("caught error from onData callback to HubClient.subscribe(): "+e.message); } } }; this.remove=function(){ if(_74){ _7b(); } }; this.isConnected=function(){ return _74; }; this.getClientID=function(){ return _71; }; this.getPartnerOrigin=function(){ if(_74){ return window.location.protocol+"//"+window.location.hostname; } return null; }; this.getParameters=function(){ return _72; }; this.connect=function(_7c,_7d,_7e){ if(_74){ throw new Error(OpenAjax.hub.Error.Duplicate); } _74=true; _77=_7c; if(_72.Container.onConnect){ try{ _72.Container.onConnect.call(_73,this); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onConnect callback to constructor: "+e.message); } } _7f(_7d,_7e,_7c,true); }; this.disconnect=function(_80,_81,_82){ if(!_74){ throw new Error(OpenAjax.hub.Error.Disconnected); } _7b(); if(_72.Container.onDisconnect){ try{ _72.Container.onDisconnect.call(_73,this); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onDisconnect callback to constructor: "+e.message); } } _7f(_81,_82,_80,true); }; this.subscribe=function(_83,_84,_85,_86,_87){ _88(); _89(_83); if(!_84){ throw new Error(OpenAjax.hub.Error.BadParameters); } var _8a=""+_76++; var _8b=false; var msg=null; try{ var _8c=hub.subscribeForClient(this,_83,_8a); _8b=true; } catch(e){ _8a=null; msg=e.message; } _85=_85||window; if(_8b){ _75[_8a]={h:_8c,cb:_84,sc:_85,d:_87}; } _7f(_86,_85,_8a,_8b,msg); return _8a; }; this.publish=function(_8d,_8e){ _88(); _8f(_8d); hub.publishForClient(this,_8d,_8e); }; this.unsubscribe=function(_90,_91,_92){ _88(); if(typeof _90==="undefined"||_90===null){ throw new Error(OpenAjax.hub.Error.BadParameters); } var sub=_75[_90]; if(!sub){ throw new Error(OpenAjax.hub.Error.NoSubscription); } hub.unsubscribeForClient(this,sub.h); delete _75[_90]; _7f(_91,_92,_90,true); }; this.getSubscriberData=function(_93){ _88(); return _94(_93).d; }; this.getSubscriberScope=function(_95){ _88(); return _94(_95).sc; }; function _7f(_96,_97,_98,_99,_9a){ if(_96){ try{ _97=_97||window; _96.call(_97,_98,_99,_9a); } catch(e){ OpenAjax.hub._debugger(); _77._log("caught error from onComplete callback: "+e.message); } } }; function _7b(){ for(var _9b in _75){ hub.unsubscribeForClient(this,_75[_9b].h); } _75=[]; _76=0; _74=false; }; function _88(){ if(!_74){ throw new Error(OpenAjax.hub.Error.Disconnected); } }; function _8f(_9c){ if((_9c==null)||(_9c==="")||(_9c.indexOf("*")!=-1)||(_9c.indexOf("..")!=-1)||(_9c.charAt(0)==".")||(_9c.charAt(_9c.length-1)==".")){ throw new Error(OpenAjax.hub.Error.BadParameters); } }; function _89(_9d){ if(!_9d){ throw new Error(OpenAjax.hub.Error.BadParameters); } var _9e=_9d.split("."); var len=_9e.length; for(var i=0;i=0;i--){ var src=_b3[i].getAttribute("src"); if(!src){ continue; } var m=src.match(_b4); if(m){ var _b5=_b3[i].getAttribute("oaaConfig"); if(_b5){ try{ oaaConfig=eval("({ "+_b5+" })"); } catch(e){ } } break; } } } if(typeof oaaConfig!=="undefined"&&oaaConfig.gadgetsGlobal){ gadgets=OpenAjax.gadgets; } } })(); if(!OpenAjax.hub.IframeContainer){ (function(){ OpenAjax.hub.IframeContainer=function(hub,_b6,_b7){ _b8(arguments); var _b9=this; var _ba=_b7.Container.scope||window; var _bb=false; var _bc={}; var _bd; var _be; var _bf=_b7.IframeContainer.timeout||15000; var _c0; if(_b7.Container.log){ var log=function(msg){ try{ _b7.Container.log.call(_ba,"IframeContainer::"+_b6+": "+msg); } catch(e){ OpenAjax.hub._debugger(); } }; }else{ log=function(){ }; } this._init=function(){ hub.addContainer(this); _be=OpenAjax.hub.IframeContainer._rpcRouter.add(_b6,this); _bd=_114(_b7,_ba,log); var _c1=_b7.IframeContainer.clientRelay; var _c2=OpenAjax.gadgets.rpc.getRelayChannel(); if(_b7.IframeContainer.tunnelURI){ if(_c2!=="wpm"&&_c2!=="ifpc"){ throw new Error(OpenAjax.hub.Error.IncompatBrowser); } }else{ log("WARNING: Parameter 'IframeContaienr.tunnelURI' not specified. Connection will not be fully secure."); if(_c2==="rmr"&&!_c1){ _c1=OpenAjax.gadgets.rpc.getOrigin(_b7.IframeContainer.uri)+"/robots.txt"; } } _c3(); OpenAjax.gadgets.rpc.setupReceiver(_be,_c1); _c4(); }; this.sendToClient=function(_c5,_c6,_c7){ OpenAjax.gadgets.rpc.call(_be,"openajax.pubsub",null,"pub",_c5,_c6,_c7); }; this.remove=function(){ _c8(); clearTimeout(_c0); OpenAjax.gadgets.rpc.removeReceiver(_be); var _c9=document.getElementById(_be); _c9.parentNode.removeChild(_c9); OpenAjax.hub.IframeContainer._rpcRouter.remove(_be); }; this.isConnected=function(){ return _bb; }; this.getClientID=function(){ return _b6; }; this.getPartnerOrigin=function(){ if(_bb){ var _ca=OpenAjax.gadgets.rpc.getReceiverOrigin(_be); if(_ca){ return (/^([a-zA-Z]+:\/\/[^:]+).*/.exec(_ca)[1]); } } return null; }; this.getParameters=function(){ return _b7; }; this.getHub=function(){ return hub; }; this.getIframe=function(){ return document.getElementById(_be); }; function _b8(_cb){ var hub=_cb[0],_b6=_cb[1],_b7=_cb[2]; if(!hub||!_b6||!_b7||!_b7.Container||!_b7.Container.onSecurityAlert||!_b7.IframeContainer||!_b7.IframeContainer.parent||!_b7.IframeContainer.uri){ throw new Error(OpenAjax.hub.Error.BadParameters); } }; this._handleIncomingRPC=function(_cc,_cd,_ce){ switch(_cc){ case "pub": hub.publishForClient(_b9,_cd,_ce); break; case "sub": var _cf=""; try{ _bc[_ce]=hub.subscribeForClient(_b9,_cd,_ce); } catch(e){ _cf=e.message; } return _cf; case "uns": var _d0=_bc[_ce]; hub.unsubscribeForClient(_b9,_d0); delete _bc[_ce]; return _ce; case "con": _d1(); return true; case "dis": _c4(); _c8(); if(_b7.Container.onDisconnect){ try{ _b7.Container.onDisconnect.call(_ba,_b9); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onDisconnect callback to constructor: "+e.message); } } return true; } }; this._onSecurityAlert=function(_d2){ _d3(_113[_d2]); }; function _c3(){ var _d4=document.createElement("span"); _b7.IframeContainer.parent.appendChild(_d4); var _d5=""; _d4.innerHTML=_d5; var _da; if(_b7.IframeContainer.tunnelURI){ _da="&parent="+encodeURIComponent(_b7.IframeContainer.tunnelURI)+"&forcesecure=true"; }else{ _da="&oahParent="+encodeURIComponent(OpenAjax.gadgets.rpc.getOrigin(window.location.href)); } var _db=""; if(_be!==_b6){ _db="&oahId="+_be.substring(_be.lastIndexOf("_")+1); } document.getElementById(_be).src=_b7.IframeContainer.uri+"#rpctoken="+_bd+_da+_db; }; function _d1(){ function _dc(_dd){ if(_dd){ _bb=true; clearTimeout(_c0); document.getElementById(_be).style.visibility="visible"; if(_b7.Container.onConnect){ try{ _b7.Container.onConnect.call(_ba,_b9); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onConnect callback to constructor: "+e.message); } } } }; OpenAjax.gadgets.rpc.call(_be,"openajax.pubsub",_dc,"cmd","con"); }; function _c8(){ if(_bb){ _bb=false; document.getElementById(_be).style.visibility="hidden"; for(var s in _bc){ hub.unsubscribeForClient(_b9,_bc[s]); } _bc={}; } }; function _d3(_de){ try{ _b7.Container.onSecurityAlert.call(_ba,_b9,_de); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onSecurityAlert callback to constructor: "+e.message); } }; function _c4(){ _c0=setTimeout(function(){ _d3(OpenAjax.hub.SecurityAlert.LoadTimeout); _b9._handleIncomingRPC=function(){ }; },_bf); }; this._init(); }; OpenAjax.hub.IframeHubClient=function(_df){ if(!_df||!_df.HubClient||!_df.HubClient.onSecurityAlert){ throw new Error(OpenAjax.hub.Error.BadParameters); } var _e0=this; var _e1=_df.HubClient.scope||window; var _e2=false; var _e3={}; var _e4=0; var _e5; if(_df.HubClient.log){ var log=function(msg){ try{ _df.HubClient.log.call(_e1,"IframeHubClient::"+_e5+": "+msg); } catch(e){ OpenAjax.hub._debugger(); } }; }else{ log=function(){ }; } this._init=function(){ var _e6=OpenAjax.gadgets.util.getUrlParameters(); if(!_e6.parent){ var _e7=_e6.oahParent+"/robots.txt"; OpenAjax.gadgets.rpc.setupReceiver("..",_e7); } if(_df.IframeHubClient&&_df.IframeHubClient.requireParentVerifiable&&OpenAjax.gadgets.rpc.getReceiverOrigin("..")===null){ OpenAjax.gadgets.rpc.removeReceiver(".."); throw new Error(OpenAjax.hub.Error.IncompatBrowser); } OpenAjax.hub.IframeContainer._rpcRouter.add("..",this); _e5=OpenAjax.gadgets.rpc.RPC_ID; if(_e6.oahId){ _e5=_e5.substring(0,_e5.lastIndexOf("_")); } }; this.connect=function(_e8,_e9){ if(_e2){ throw new Error(OpenAjax.hub.Error.Duplicate); } function _ea(_eb){ if(_eb){ _e2=true; if(_e8){ try{ _e8.call(_e9||window,_e0,true); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onComplete callback to connect(): "+e.message); } } } }; OpenAjax.gadgets.rpc.call("..","openajax.pubsub",_ea,"con"); }; this.disconnect=function(_ec,_ed){ if(!_e2){ throw new Error(OpenAjax.hub.Error.Disconnected); } _e2=false; var _ee=null; if(_ec){ _ee=function(_ef){ try{ _ec.call(_ed||window,_e0,true); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onComplete callback to disconnect(): "+e.message); } }; } OpenAjax.gadgets.rpc.call("..","openajax.pubsub",_ee,"dis"); }; this.getPartnerOrigin=function(){ if(_e2){ var _f0=OpenAjax.gadgets.rpc.getReceiverOrigin(".."); if(_f0){ return (/^([a-zA-Z]+:\/\/[^:]+).*/.exec(_f0)[1]); } } return null; }; this.getClientID=function(){ return _e5; }; this.subscribe=function(_f1,_f2,_f3,_f4,_f5){ _f6(); _f7(_f1); if(!_f2){ throw new Error(OpenAjax.hub.Error.BadParameters); } _f3=_f3||window; var _f8=""+_e4++; _e3[_f8]={cb:_f2,sc:_f3,d:_f5}; function _f9(_fa){ if(_fa!==""){ delete _e3[_f8]; } if(_f4){ try{ _f4.call(_f3,_f8,_fa==="",_fa); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onComplete callback to subscribe(): "+e.message); } } }; OpenAjax.gadgets.rpc.call("..","openajax.pubsub",_f9,"sub",_f1,_f8); return _f8; }; this.publish=function(_fb,_fc){ _f6(); _fd(_fb); OpenAjax.gadgets.rpc.call("..","openajax.pubsub",null,"pub",_fb,_fc); }; this.unsubscribe=function(_fe,_ff,_100){ _f6(); if(!_fe){ throw new Error(OpenAjax.hub.Error.BadParameters); } if(!_e3[_fe]||_e3[_fe].uns){ throw new Error(OpenAjax.hub.Error.NoSubscription); } _e3[_fe].uns=true; function _101(_102){ delete _e3[_fe]; if(_ff){ try{ _ff.call(_100||window,_fe,true); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onComplete callback to unsubscribe(): "+e.message); } } }; OpenAjax.gadgets.rpc.call("..","openajax.pubsub",_101,"uns",null,_fe); }; this.isConnected=function(){ return _e2; }; this.getScope=function(){ return _e1; }; this.getSubscriberData=function(_103){ _f6(); if(_e3[_103]){ return _e3[_103].d; } throw new Error(OpenAjax.hub.Error.NoSubscription); }; this.getSubscriberScope=function(_104){ _f6(); if(_e3[_104]){ return _e3[_104].sc; } throw new Error(OpenAjax.hub.Error.NoSubscription); }; this.getParameters=function(){ return _df; }; this._handleIncomingRPC=function(_105,_106,data,_107){ if(_105==="pub"){ if(_e3[_107]&&!_e3[_107].uns){ try{ _e3[_107].cb.call(_e3[_107].sc,_106,data,_e3[_107].d); } catch(e){ OpenAjax.hub._debugger(); log("caught error from onData callback to subscribe(): "+e.message); } } } if(_106==="con"){ return true; } return false; }; function _f6(){ if(!_e2){ throw new Error(OpenAjax.hub.Error.Disconnected); } }; function _f7(_108){ if(!_108){ throw new Error(OpenAjax.hub.Error.BadParameters); } var path=_108.split("."); var len=path.length; for(var i=0;i>5]|=(str.charCodeAt(i/_119)&mask)<<(32-_119-i%32); } return bin; },"hmac_sha1":function(_11a,_11b,_11c){ var ipad=Array(16),opad=Array(16); for(var i=0;i<16;i++){ ipad[i]=_11a[i]^909522486; opad[i]=_11a[i]^1549556828; } var hash=this.sha1(ipad.concat(this.strToWA(_11b,_11c)),512+_11b.length*_11c); return this.sha1(opad.concat(hash),512+160); },"newPRNG":function(_11d){ var that=this; if((typeof _11d!="string")||(_11d.length<12)){ alert("WARNING: Seed length too short ..."); } var _11e=[43417,15926,18182,33130,9585,30800,49772,40144,47678,55453,4659,38181,65340,6787,54417,65301]; var _11f=[]; var _120=0; function _121(_122){ return that.hmac_sha1(_11e,_122,8); }; function _123(_124){ var _125=_121(_124); for(var i=0;i<5;i++){ _11f[i]^=_125[i]; } }; _123(_11d); return {"addSeed":function(seed){ _123(seed); },"nextRandomOctets":function(len){ var _126=[]; while(len>0){ _120+=1; var _127=that.hmac_sha1(_11f,(_120).toString(16),8); for(i=0;(i<20)&(len>0);i++,len--){ _126.push((_127[i>>2]>>(i%4))%256); } } return _126; },"nextRandomB64Str":function(len){ var _128="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; var _129=this.nextRandomOctets(len); var _12a=""; for(var i=0;i>16)+(y>>16)+(lsw>>16); return (msw<<16)|(lsw&65535); }; var rol=function(num,cnt){ return (num<>>(32-cnt)); }; function _12c(t,b,c,d){ if(t<20){ return (b&c)|((~b)&d); } if(t<40){ return b^c^d; } if(t<60){ return (b&c)|(b&d)|(c&d); } return b^c^d; }; function _12d(t){ return (t<20)?1518500249:(t<40)?1859775393:(t<60)?-1894007588:-899497514; }; return function(_12e,_12f){ _12e[_12f>>5]|=128<<(24-_12f%32); _12e[((_12f+64>>9)<<4)+15]=_12f; var W=Array(80); var H0=1732584193; var H1=-271733879; var H2=-1732584194; var H3=271733878; var H4=-1009589776; for(var i=0;i<_12e.length;i+=16){ var a=H0; var b=H1; var c=H2; var d=H3; var e=H4; for(var j=0;j<80;j++){ W[j]=((j<16)?_12e[i+j]:rol(W[j-3]^W[j-8]^W[j-14]^W[j-16],1)); var T=_12b(_12b(rol(a,5),_12c(j,b,c,d)),_12b(_12b(e,W[j]),_12d(j))); e=d; d=c; c=rol(b,30); b=a; a=T; } H0=_12b(a,H0); H1=_12b(b,H1); H2=_12b(c,H2); H3=_12b(d,H3); H4=_12b(e,H4); } return Array(H0,H1,H2,H3,H4); }; }()}; if(!this.JSON){ JSON={}; } (function(){ function f(n){ return n<10?"0"+n:n; }; if(typeof Date.prototype.toJSON!=="function"){ Date.prototype.toJSON=function(key){ return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"; }; String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){ return this.valueOf(); }; } var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_130=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,_131,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\"":"\\\"","\\":"\\\\"},rep; function _132(_133){ _130.lastIndex=0; return _130.test(_133)?"\""+_133.replace(_130,function(a){ var c=meta[a]; return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4); })+"\"":"\""+_133+"\""; }; function str(key,_134){ var i,k,v,_135,mind=gap,_136,_137=_134[key]; if(_137&&typeof _137==="object"&&typeof _137.toJSON==="function"){ _137=_137.toJSON(key); } if(typeof rep==="function"){ _137=rep.call(_134,key,_137); } switch(typeof _137){ case "string": return _132(_137); case "number": return isFinite(_137)?String(_137):"null"; case "boolean": case "null": return String(_137); case "object": if(!_137){ return "null"; } gap+=_131; _136=[]; if(Object.prototype.toString.apply(_137)==="[object Array]"){ _135=_137.length; for(i=0;i<_135;i+=1){ _136[i]=str(i,_137)||"null"; } v=_136.length===0?"[]":gap?"[\n"+gap+_136.join(",\n"+gap)+"\n"+mind+"]":"["+_136.join(",")+"]"; gap=mind; return v; } if(rep&&typeof rep==="object"){ _135=rep.length; for(i=0;i<_135;i+=1){ k=rep[i]; if(typeof k==="string"){ v=str(k,_137); if(v){ _136.push(_132(k)+(gap?": ":":")+v); } } } }else{ for(k in _137){ if(Object.hasOwnProperty.call(_137,k)){ v=str(k,_137); if(v){ _136.push(_132(k)+(gap?": ":":")+v); } } } } v=_136.length===0?"{}":gap?"{\n"+gap+_136.join(",\n"+gap)+"\n"+mind+"}":"{"+_136.join(",")+"}"; gap=mind; return v; } }; if(typeof JSON.stringify!=="function"){ JSON.stringify=function(_138,_139,_13a){ var i; gap=""; _131=""; if(typeof _13a==="number"){ for(i=0;i<_13a;i+=1){ _131+=" "; } }else{ if(typeof _13a==="string"){ _131=_13a; } } rep=_139; if(_139&&typeof _139!=="function"&&(typeof _139!=="object"||typeof _139.length!=="number")){ throw new Error("JSON.stringify"); } return str("",{"":_138}); }; } if(typeof JSON.parse!=="function"){ JSON.parse=function(text,_13b){ var j; function walk(_13c,key){ var k,v,_13d=_13c[key]; if(_13d&&typeof _13d==="object"){ for(k in _13d){ if(Object.hasOwnProperty.call(_13d,k)){ v=walk(_13d,k); if(v!==undefined){ _13d[k]=v; }else{ delete _13d[k]; } } } } return _13b.call(_13c,key,_13d); }; cx.lastIndex=0; if(cx.test(text)){ text=text.replace(cx,function(a){ return "\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4); }); } if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){ j=eval("("+text+")"); return typeof _13b==="function"?walk({"":j},""):j; } throw new SyntaxError("JSON.parse"); }; } })(); OpenAjax.gadgets.util=function(){ function _13e(url){ var _13f; var _140=url.indexOf("?"); var _141=url.indexOf("#"); if(_141===-1){ _13f=url.substr(_140+1); }else{ _13f=[url.substr(_140+1,_141-_140-1),"&",url.substr(_141+1)].join(""); } return _13f.split("&"); }; var _142=null; var _143=[]; return {getUrlParameters:function(_144){ if(_142!==null&&typeof _144==="undefined"){ return _142; } var _145={}; var _146=_13e(_144||document.location.href); var _147=window.decodeURIComponent?decodeURIComponent:unescape; for(var i=0,j=_146.length;i=0;--i){ var ifr=_16a[i]; try{ if(ifr&&(ifr.recyclable||ifr.readyState==="complete")){ ifr.parentNode.removeChild(ifr); if(window.ActiveXObject){ _16a[i]=ifr=null; _16a.splice(i,1); }else{ ifr.recyclable=false; _172=ifr; break; } } } catch(e){ } } if(!_172){ _172=document.createElement("iframe"); _172.style.border=_172.style.width=_172.style.height="0px"; _172.style.visibility="hidden"; _172.style.position="absolute"; _172.onload=function(){ this.recyclable=true; }; _16a.push(_172); } _172.src=src; window.setTimeout(function(){ document.body.appendChild(_172); },0); }; function _173(arr,_174){ for(var i=_174-1;i>=0;--i){ if(typeof arr[i]==="undefined"){ return false; } } return true; }; return {getCode:function(){ return "ifpc"; },isParentVerifiable:function(){ return true; },init:function(_175,_176){ _16c=_176; _16c("..",true); return true; },setup:function(_177,_178){ _16c(_177,true); return true; },call:function(_179,from,rpc){ var _17a=OpenAjax.gadgets.rpc.getRelayUrl(_179); ++_16b; if(!_17a){ OpenAjax.gadgets.warn("No relay file assigned for IFPC"); return; } var src=null,_17b=[]; if(rpc.l){ var _17c=rpc.a; src=[_17a,"#",_16f([from,_16b,1,0,_16f([from,rpc.s,"","",from].concat(_17c))])].join(""); _17b.push(src); }else{ src=[_17a,"#",_179,"&",from,"@",_16b,"&"].join(""); var _17d=encodeURIComponent(OpenAjax.gadgets.json.stringify(rpc)),_17e=_16d-src.length,_17f=Math.ceil(_17d.length/_17e),_180=0,part; while(_17d.length>0){ part=_17d.substring(0,_17e); _17d=_17d.substring(_17e); _17b.push([src,_17f,"&",_180,"&",part].join("")); _180+=1; } } do{ _171(_17b.shift()); }while(_17b.length>0); return true; },_receiveMessage:function(_181,_182){ var from=_181[1],_183=parseInt(_181[2],10),_184=parseInt(_181[3],10),_185=_181[_181.length-1],_186=_183===1; if(_183>1){ if(!_16e[from]){ _16e[from]=[]; } _16e[from][_184]=_185; if(_173(_16e[from],_183)){ _185=_16e[from].join(""); delete _16e[from]; _186=true; } } if(_186){ _182(OpenAjax.gadgets.json.parse(decodeURIComponent(_185))); } }}; }(); } OpenAjax.gadgets.rpctx=OpenAjax.gadgets.rpctx||{}; if(!OpenAjax.gadgets.rpctx.rmr){ OpenAjax.gadgets.rpctx.rmr=function(){ var _187=500; var _188=10; var _189={}; var _18a; var _18b; function _18c(_18d,_18e,data,_18f){ var _190=function(){ document.body.appendChild(_18d); _18d.src="about:blank"; if(_18f){ _18d.onload=function(){ _1a5(_18f); }; } _18d.src=_18e+"#"+data; }; if(document.body){ _190(); }else{ OpenAjax.gadgets.util.registerOnLoadHandler(function(){ _190(); }); } }; function _191(_192){ if(typeof _189[_192]==="object"){ return; } var _193=document.createElement("iframe"); var _194=_193.style; _194.position="absolute"; _194.top="0px"; _194.border="0"; _194.opacity="0"; _194.width="10px"; _194.height="1px"; _193.id="rmrtransport-"+_192; _193.name=_193.id; var _195=OpenAjax.gadgets.rpc.getRelayUrl(_192); if(!_195){ _195=OpenAjax.gadgets.rpc.getOrigin(OpenAjax.gadgets.util.getUrlParameters()["parent"])+"/robots.txt"; } _189[_192]={frame:_193,receiveWindow:null,relayUri:_195,searchCounter:0,width:10,waiting:true,queue:[],sendId:0,recvId:0}; if(_192!==".."){ _18c(_193,_195,_196(_192)); } _197(_192); }; function _197(_198){ var _199=null; _189[_198].searchCounter++; try{ var _19a=OpenAjax.gadgets.rpc._getTargetWin(_198); if(_198===".."){ _199=_19a.frames["rmrtransport-"+OpenAjax.gadgets.rpc.RPC_ID]; }else{ _199=_19a.frames["rmrtransport-.."]; } } catch(e){ } var _19b=false; if(_199){ _19b=_19c(_198,_199); } if(!_19b){ if(_189[_198].searchCounter>_188){ return; } window.setTimeout(function(){ _197(_198); },_187); } }; function _19d(_19e,_19f,from,rpc){ var _1a0=null; if(from!==".."){ _1a0=_189[".."]; }else{ _1a0=_189[_19e]; } if(_1a0){ if(_19f!==OpenAjax.gadgets.rpc.ACK){ _1a0.queue.push(rpc); } if(_1a0.waiting||(_1a0.queue.length===0&&!(_19f===OpenAjax.gadgets.rpc.ACK&&rpc&&rpc.ackAlone===true))){ return true; } if(_1a0.queue.length>0){ _1a0.waiting=true; } var url=_1a0.relayUri+"#"+_196(_19e); try{ _1a0.frame.contentWindow.location=url; var _1a1=_1a0.width==10?20:10; _1a0.frame.style.width=_1a1+"px"; _1a0.width=_1a1; } catch(e){ return false; } } return true; }; function _196(_1a2){ var _1a3=_189[_1a2]; var _1a4={id:_1a3.sendId}; if(_1a3){ _1a4.d=Array.prototype.slice.call(_1a3.queue,0); _1a4.d.push({s:OpenAjax.gadgets.rpc.ACK,id:_1a3.recvId}); } return OpenAjax.gadgets.json.stringify(_1a4); }; function _1a5(_1a6){ var _1a7=_189[_1a6]; var data=_1a7.receiveWindow.location.hash.substring(1); var _1a8=OpenAjax.gadgets.json.parse(decodeURIComponent(data))||{}; var _1a9=_1a8.d||[]; var _1aa=false; var _1ab=false; var _1ac=0; var _1ad=(_1a7.recvId-_1a8.id); for(var i=0;i<_1a9.length;++i){ var rpc=_1a9[i]; if(rpc.s===OpenAjax.gadgets.rpc.ACK){ _18b(_1a6,true); if(_1a7.waiting){ _1ab=true; } _1a7.waiting=false; var _1ae=Math.max(0,rpc.id-_1a7.sendId); _1a7.queue.splice(0,_1ae); _1a7.sendId=Math.max(_1a7.sendId,rpc.id||0); continue; } _1aa=true; if(++_1ac<=_1ad){ continue; } ++_1a7.recvId; _18a(rpc); } if(_1aa||(_1ab&&_1a7.queue.length>0)){ var from=(_1a6==="..")?OpenAjax.gadgets.rpc.RPC_ID:".."; _19d(_1a6,OpenAjax.gadgets.rpc.ACK,from,{ackAlone:_1aa}); } }; function _19c(_1af,_1b0){ var _1b1=_189[_1af]; try{ var _1b2=false; _1b2="document" in _1b0; if(!_1b2){ return false; } _1b2=typeof _1b0["document"]=="object"; if(!_1b2){ return false; } var loc=_1b0.location.href; if(loc==="about:blank"){ return false; } } catch(ex){ return false; } _1b1.receiveWindow=_1b0; function _1b3(){ _1a5(_1af); }; if(typeof _1b0.attachEvent==="undefined"){ _1b0.onresize=_1b3; }else{ _1b0.attachEvent("onresize",_1b3); } if(_1af===".."){ _18c(_1b1.frame,_1b1.relayUri,_196(_1af),_1af); }else{ _1a5(_1af); } return true; }; return {getCode:function(){ return "rmr"; },isParentVerifiable:function(){ return true; },init:function(_1b4,_1b5){ _18a=_1b4; _18b=_1b5; return true; },setup:function(_1b6,_1b7){ try{ _191(_1b6); } catch(e){ OpenAjax.gadgets.warn("Caught exception setting up RMR: "+e); return false; } return true; },call:function(_1b8,from,rpc){ return _19d(_1b8,rpc.s,from,rpc); }}; }(); } OpenAjax.gadgets.rpctx=OpenAjax.gadgets.rpctx||{}; if(!OpenAjax.gadgets.rpctx.wpm){ OpenAjax.gadgets.rpctx.wpm=function(){ var _1b9,_1ba; var _1bb; var _1bc=false; var _1bd=false; function _1be(){ var hit=false; function _1bf(_1c0){ if(_1c0.data=="postmessage.test"){ hit=true; if(typeof _1c0.origin==="undefined"){ _1bd=true; } } }; OpenAjax.gadgets.util.attachBrowserEvent(window,"message",_1bf,false); window.postMessage("postmessage.test","*"); if(hit){ _1bc=true; } OpenAjax.gadgets.util.removeBrowserEvent(window,"message",_1bf,false); }; function _1c1(_1c2){ var rpc=OpenAjax.gadgets.json.parse(_1c2.data); if(!rpc||!rpc.f){ return; } var _1c3=OpenAjax.gadgets.rpc.getRelayUrl(rpc.f)||OpenAjax.gadgets.util.getUrlParameters()["parent"]; var _1c4=OpenAjax.gadgets.rpc.getOrigin(_1c3); if(!_1bd?_1c2.origin!==_1c4:_1c2.domain!==/^.+:\/\/([^:]+).*/.exec(_1c4)[1]){ return; } _1b9(rpc); }; return {getCode:function(){ return "wpm"; },isParentVerifiable:function(){ return true; },init:function(_1c5,_1c6){ _1b9=_1c5; _1ba=_1c6; _1be(); if(!_1bc){ _1bb=function(win,msg,_1c7){ win.postMessage(msg,_1c7); }; }else{ _1bb=function(win,msg,_1c8){ window.setTimeout(function(){ win.postMessage(msg,_1c8); },0); }; } OpenAjax.gadgets.util.attachBrowserEvent(window,"message",_1c1,false); _1ba("..",true); return true; },setup:function(_1c9,_1ca,_1cb){ if(_1c9===".."){ if(_1cb){ OpenAjax.gadgets.rpc._createRelayIframe(_1ca); }else{ OpenAjax.gadgets.rpc.call(_1c9,OpenAjax.gadgets.rpc.ACK); } } return true; },call:function(_1cc,from,rpc){ var _1cd=OpenAjax.gadgets.rpc._getTargetWin(_1cc); var _1ce=OpenAjax.gadgets.rpc.getRelayUrl(_1cc)||OpenAjax.gadgets.util.getUrlParameters()["parent"]; var _1cf=OpenAjax.gadgets.rpc.getOrigin(_1ce); if(_1cf){ _1bb(_1cd,OpenAjax.gadgets.json.stringify(rpc),_1cf); }else{ OpenAjax.gadgets.error("No relay set (used as window.postMessage targetOrigin)"+", cannot send cross-domain message"); } return true; },relayOnload:function(_1d0,data){ _1ba(_1d0,true); }}; }(); } if(!OpenAjax.gadgets.rpc){ OpenAjax.gadgets.rpc=function(){ var _1d1="__cb"; var _1d2=""; var ACK="__ack"; var _1d3=500; var _1d4=10; var _1d5={}; var _1d6={}; var _1d7={}; var _1d8={}; var _1d9=0; var _1da={}; var _1db={}; var _1dc={}; var _1dd={}; var _1de={}; var _1df={}; var _1e0=(window.top!==window.self); var _1e1=window.name; var _1e2=function(){ }; var _1e3=0; var _1e4=1; var _1e5=2; var _1e6=(function(){ function _1e7(name){ return function(){ OpenAjax.gadgets.log("gadgets.rpc."+name+"("+OpenAjax.gadgets.json.stringify(Array.prototype.slice.call(arguments))+"): call ignored. [caller: "+document.location+", isChild: "+_1e0+"]"); }; }; return {getCode:function(){ return "noop"; },isParentVerifiable:function(){ return true; },init:_1e7("init"),setup:_1e7("setup"),call:_1e7("call")}; })(); if(OpenAjax.gadgets.util){ _1dd=OpenAjax.gadgets.util.getUrlParameters(); } function _1e8(){ return typeof window.postMessage==="function"?OpenAjax.gadgets.rpctx.wpm:typeof window.postMessage==="object"?OpenAjax.gadgets.rpctx.wpm:navigator.userAgent.indexOf("WebKit")>0?OpenAjax.gadgets.rpctx.rmr:navigator.product==="Gecko"?OpenAjax.gadgets.rpctx.frameElement:OpenAjax.gadgets.rpctx.ifpc; }; function _1e9(_1ea,_1eb){ var tx=_1ec; if(!_1eb){ tx=_1e6; } _1de[_1ea]=tx; var _1ed=_1df[_1ea]||[]; for(var i=0;i<_1ed.length;++i){ var rpc=_1ed[i]; rpc.t=_1ee(_1ea); tx.call(_1ea,rpc.f,rpc); } _1df[_1ea]=[]; }; var _1ef=false,_1f0=false; function _1f1(){ if(_1f0){ return; } function _1f2(){ _1ef=true; }; OpenAjax.gadgets.util.attachBrowserEvent(window,"unload",_1f2,false); _1f0=true; }; function _1f3(_1f4,_1f5,_1f6,data,_1f7){ if(!_1d8[_1f5]||_1d8[_1f5]!==_1f6){ OpenAjax.gadgets.error("Invalid auth token. "+_1d8[_1f5]+" vs "+_1f6); _1e2(_1f5,_1e5); } _1f7.onunload=function(){ if(_1db[_1f5]&&!_1ef){ _1e2(_1f5,_1e4); OpenAjax.gadgets.rpc.removeReceiver(_1f5); } }; _1f1(); data=OpenAjax.gadgets.json.parse(decodeURIComponent(data)); _1ec.relayOnload(_1f5,data); }; function _1f8(rpc){ if(rpc&&typeof rpc.s==="string"&&typeof rpc.f==="string"&&rpc.a instanceof Array){ if(_1d8[rpc.f]){ if(_1d8[rpc.f]!==rpc.t){ OpenAjax.gadgets.error("Invalid auth token. "+_1d8[rpc.f]+" vs "+rpc.t); _1e2(rpc.f,_1e5); } } if(rpc.s===ACK){ window.setTimeout(function(){ _1e9(rpc.f,true); },0); return; } if(rpc.c){ rpc.callback=function(_1f9){ OpenAjax.gadgets.rpc.call(rpc.f,_1d1,null,rpc.c,_1f9); }; } var _1fa=(_1d5[rpc.s]||_1d5[_1d2]).apply(rpc,rpc.a); if(rpc.c&&typeof _1fa!=="undefined"){ OpenAjax.gadgets.rpc.call(rpc.f,_1d1,null,rpc.c,_1fa); } } }; function _1fb(url){ if(!url){ return ""; } url=url.toLowerCase(); if(url.indexOf("//")==0){ url=window.location.protocol+url; } if(url.indexOf("://")==-1){ url=window.location.protocol+"//"+url; } var host=url.substring(url.indexOf("://")+3); var _1fc=host.indexOf("/"); if(_1fc!=-1){ host=host.substring(0,_1fc); } var _1fd=url.substring(0,url.indexOf("://")); var _1fe=""; var _1ff=host.indexOf(":"); if(_1ff!=-1){ var port=host.substring(_1ff+1); host=host.substring(0,_1ff); if((_1fd==="http"&&port!=="80")||(_1fd==="https"&&port!=="443")){ _1fe=":"+port; } } return _1fd+"://"+host+_1fe; }; function _200(id){ if(typeof id==="undefined"||id===".."){ return window.parent; } id=String(id); var _201=window.frames[id]; if(_201){ return _201; } _201=document.getElementById(id); if(_201&&_201.contentWindow){ return _201.contentWindow; } return null; }; var _1ec=_1e8(); _1d5[_1d2]=function(){ OpenAjax.gadgets.warn("Unknown RPC service: "+this.s); }; _1d5[_1d1]=function(_202,_203){ var _204=_1da[_202]; if(_204){ delete _1da[_202]; _204(_203); } }; function _205(_206,_207,_208){ if(_1db[_206]===true){ return; } if(typeof _1db[_206]==="undefined"){ _1db[_206]=0; } var _209=document.getElementById(_206); if(_206===".."||_209!=null){ if(_1ec.setup(_206,_207,_208)===true){ _1db[_206]=true; return; } } if(_1db[_206]!==true&&_1db[_206]++<_1d4){ window.setTimeout(function(){ _205(_206,_207,_208); },_1d3); }else{ _1de[_206]=_1e6; _1db[_206]=true; } }; function _20a(_20b,rpc){ if(typeof _1dc[_20b]==="undefined"){ _1dc[_20b]=false; var _20c=OpenAjax.gadgets.rpc.getRelayUrl(_20b); if(_1fb(_20c)!==_1fb(window.location.href)){ return false; } var _20d=_200(_20b); try{ _1dc[_20b]=_20d.OpenAjax.gadgets.rpc.receiveSameDomain; } catch(e){ OpenAjax.gadgets.error("Same domain call failed: parent= incorrectly set."); } } if(typeof _1dc[_20b]==="function"){ _1dc[_20b](rpc); return true; } return false; }; function _20e(_20f,url,_210){ if(!/http(s)?:\/\/.+/.test(url)){ if(url.indexOf("//")==0){ url=window.location.protocol+url; }else{ if(url.charAt(0)=="/"){ url=window.location.protocol+"//"+window.location.host+url; }else{ if(url.indexOf("://")==-1){ url=window.location.protocol+"//"+url; } } } } _1d6[_20f]=url; _1d7[_20f]=!!_210; }; function _1ee(_211){ return _1d8[_211]; }; function _212(_213,_214,_215){ _214=_214||""; _1d8[_213]=String(_214); _205(_213,_214,_215); }; function _216(_217,_218){ function init(_219){ var _21a=_219?_219.rpc:{}; var _21b=_21a.parentRelayUrl; if(_21b.substring(0,7)!=="http://"&&_21b.substring(0,8)!=="https://"&&_21b.substring(0,2)!=="//"){ if(typeof _1dd.parent==="string"&&_1dd.parent!==""){ if(_21b.substring(0,1)!=="/"){ var _21c=_1dd.parent.lastIndexOf("/"); _21b=_1dd.parent.substring(0,_21c+1)+_21b; }else{ _21b=_1fb(_1dd.parent)+_21b; } } } var _21d=!!_21a.useLegacyProtocol; _20e("..",_21b,_21d); if(_21d){ _1ec=OpenAjax.gadgets.rpctx.ifpc; _1ec.init(_1f8,_1e9); } var _21e=_218||_1dd.forcesecure||false; _212("..",_217,_21e); }; var _21f={parentRelayUrl:OpenAjax.gadgets.config.NonEmptyStringValidator}; OpenAjax.gadgets.config.register("rpc",_21f,init); }; function _220(_221,_222,_223){ var _224=_223||_1dd.forcesecure||false; var _225=_222||_1dd.parent; if(_225){ _20e("..",_225); _212("..",_221,_224); } }; function _226(_227,_228,_229,_22a){ if(!OpenAjax.gadgets.util){ return; } var _22b=document.getElementById(_227); if(!_22b){ throw new Error("Cannot set up gadgets.rpc receiver with ID: "+_227+", element not found."); } var _22c=_228||_22b.src; _20e(_227,_22c); var _22d=OpenAjax.gadgets.util.getUrlParameters(_22b.src); var _22e=_229||_22d.rpctoken; var _22f=_22a||_22d.forcesecure; _212(_227,_22e,_22f); }; function _230(_231,_232,_233,_234){ if(_231===".."){ var _235=_233||_1dd.rpctoken||_1dd.ifpctok||""; if(window["__isgadget"]===true){ _216(_235,_234); }else{ _220(_235,_232,_234); } }else{ _226(_231,_232,_233,_234); } }; return {config:function(_236){ if(typeof _236.securityCallback==="function"){ _1e2=_236.securityCallback; } },register:function(_237,_238){ if(_237===_1d1||_237===ACK){ throw new Error("Cannot overwrite callback/ack service"); } if(_237===_1d2){ throw new Error("Cannot overwrite default service:"+" use registerDefault"); } _1d5[_237]=_238; },unregister:function(_239){ if(_239===_1d1||_239===ACK){ throw new Error("Cannot delete callback/ack service"); } if(_239===_1d2){ throw new Error("Cannot delete default service:"+" use unregisterDefault"); } delete _1d5[_239]; },registerDefault:function(_23a){ _1d5[_1d2]=_23a; },unregisterDefault:function(){ delete _1d5[_1d2]; },forceParentVerifiable:function(){ if(!_1ec.isParentVerifiable()){ _1ec=OpenAjax.gadgets.rpctx.ifpc; } },call:function(_23b,_23c,_23d,_23e){ _23b=_23b||".."; var from=".."; if(_23b===".."){ from=_1e1; } ++_1d9; if(_23d){ _1da[_1d9]=_23d; } var rpc={s:_23c,f:from,c:_23d?_1d9:0,a:Array.prototype.slice.call(arguments,3),t:_1d8[_23b],l:_1d7[_23b]}; if(_23b!==".."&&!document.getElementById(_23b)){ OpenAjax.gadgets.log("WARNING: attempted send to nonexistent frame: "+_23b); return; } if(_20a(_23b,rpc)){ return; } var _23f=_1de[_23b]; if(!_23f){ if(!_1df[_23b]){ _1df[_23b]=[rpc]; }else{ _1df[_23b].push(rpc); } return; } if(_1d7[_23b]){ _23f=OpenAjax.gadgets.rpctx.ifpc; } if(_23f.call(_23b,from,rpc)===false){ _1de[_23b]=_1e6; _1ec.call(_23b,from,rpc); } },getRelayUrl:function(_240){ var url=_1d6[_240]; if(url&&url.substring(0,1)==="/"){ if(url.substring(1,2)==="/"){ url=document.location.protocol+url; }else{ url=document.location.protocol+"//"+document.location.host+url; } } return url; },setRelayUrl:_20e,setAuthToken:_212,setupReceiver:_230,getAuthToken:_1ee,removeReceiver:function(_241){ delete _1d6[_241]; delete _1d7[_241]; delete _1d8[_241]; delete _1db[_241]; delete _1dc[_241]; delete _1de[_241]; },getRelayChannel:function(){ return _1ec.getCode(); },receive:function(_242,_243){ if(_242.length>4){ _1ec._receiveMessage(_242,_1f8); }else{ _1f3.apply(null,_242.concat(_243)); } },receiveSameDomain:function(rpc){ rpc.a=Array.prototype.slice.call(rpc.a); window.setTimeout(function(){ _1f8(rpc); },0); },getOrigin:_1fb,getReceiverOrigin:function(_244){ var _245=_1de[_244]; if(!_245){ return null; } if(!_245.isParentVerifiable(_244)){ return null; } var _246=OpenAjax.gadgets.rpc.getRelayUrl(_244)||OpenAjax.gadgets.util.getUrlParameters().parent; return OpenAjax.gadgets.rpc.getOrigin(_246); },init:function(){ if(_1ec.init(_1f8,_1e9)===false){ _1ec=_1e6; } if(_1e0){ _230(".."); } },_getTargetWin:_200,_createRelayIframe:function(_247,data){ var _248=OpenAjax.gadgets.rpc.getRelayUrl(".."); if(!_248){ return; } var src=_248+"#..&"+_1e1+"&"+_247+"&"+encodeURIComponent(OpenAjax.gadgets.json.stringify(data)); var _249=document.createElement("iframe"); _249.style.border=_249.style.width=_249.style.height="0px"; _249.style.visibility="hidden"; _249.style.position="absolute"; function _24a(){ document.body.appendChild(_249); _249.src="javascript:\"\""; _249.src=src; }; if(document.body){ _24a(); }else{ OpenAjax.gadgets.util.registerOnLoadHandler(function(){ _24a(); }); } return _249; },ACK:ACK,RPC_ID:_1e1,SEC_ERROR_LOAD_TIMEOUT:_1e3,SEC_ERROR_FRAME_PHISH:_1e4,SEC_ERROR_FORGED_MSG:_1e5}; }(); OpenAjax.gadgets.rpc.init(); } /** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2009, 2010, 2011 - All Rights reserved. **/ (function(){var _1={};var _2=[];var _3=1;var _4={};_4.register=function(_5){var id=_6();_1[id]=_5;_2.push(_5);return id;};_4.deregister=function(_7){_1[_7]=null;_2=[];};_4.notify=function(_8,_9,_a){var _b=_c();var i=0;var _d=_b.length;if(!_a){_a={type:"AJAX"};}var _e=function(){if(i<_d){var _f=_b[i];i++;if(_f){_f(_8,_e,_a);}else{_e();}}};_e();if(_9){_9();}};_4.isActive=function(){return _2.length>0;};var _6=function(){return _3++;};var _c=function(){if(!_2||_2.length<=0){for(var _10 in _1){if(_1.hasOwnProperty(_10)){_2.push(_10);}}}return _2;};if(typeof (com)=="undefined"){com={};}if(typeof (com.ibm)=="undefined"){com.ibm={};}if(typeof (com.ibm.portal)=="undefined"){com.ibm.portal={};}if(typeof (com.ibm.portal.analytics)=="undefined"){com.ibm.portal.analytics={};}com.ibm.portal.analytics.SiteAnalyticsMediator=_4;com.ibm.portal.analytics.getSiteAnalyticsMediator=function(){return _4;};})();(function(){var _11=function(e){if(_12()){var _13=ibmCfg.portalConfig.currentPageOID;_14(null,null,{type:"PAGE",id:_13});var _15=_16();if(_15&&_15.length>0){for(var i=0;i<_15.length;++i){var _17=_15[i];var _18={};_18.type="PORTLET";_18.id=_19(_17);_1a(_17,_18.id);_14([_17],null,_18);}}}};var _14=function(_1b,_1c,_1d){com.ibm.portal.analytics.SiteAnalyticsMediator.notify(_1b,_1c,_1d);};var _12=function(){return com.ibm.portal.analytics.SiteAnalyticsMediator.isActive();};var _16=function(){var _1e=document.getElementById("layoutContainers");return _1f("div","component-control",_1e);};var _19=function(_20){var _21=_20.className,id=null;if(_21){var _22=_21.split(" ");for(var i=0,l=_22.length;i=0){id=cls.substring(_23+3);break;}}}return id;};var _1a=function(_24,_25){var _26=_24.className&&_24.className.indexOf("asa.portlet.selected")>=0;if(_26){var _27=document.getElementById("asa.portlet."+_25);if(_27){var _28=document.createElement("span");_28.className="asa.portlet.selected";_28.innerHTML="true";_27.appendChild(_28);}}};var _1f=function(_29,_2a,_2b){if(!_2b){_2b=document;}if(document.getElementsByClassName){return _2b.getElementsByClassName(_2a);}else{var _2c=[];_2a=_2a.toLowerCase();var _2d=_2b.getElementsByTagName(_29);if(_2d&&_2d.length>0){for(var i=0,l=_2d.length;i=0){_2c.push(e);}}}return _2c;}};i$.addOnLoad(_11);})(); /** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2011, 2012 - All Rights reserved. **/ (function(){ i$.Promise=function(){ this._cbs=[]; this._stat=-1; }; i$.promise={}; i$.promise.Promise=i$.Promise; i$.mash(i$.promise,{isPromise:function(o){ return o&&i$.isFunction(o.then); },resolved:function(o){ var p=new i$.Promise(); p.resolve(o); return p; },rejected:function(_1){ var p=new i$.Promise(); p.reject(_1); return p; },join:function(_2){ var _3=new i$.Promise(),_4=new Array(_2.length),_5=0,_6=false,_7=function(){ if(++_5>=_4.length){ _3[_6?"reject":"resolve"](_4); } }; if(_2.length>0){ i$.each(_2,function(p,i){ p.then(function(v){ _4[i]=v; _7(); },function(e){ _6=true; _4[i]=e; _7(); }); }); }else{ _3.resolve([]); } return _3; }}); i$.mash(i$,{when:function(o){ return i$.promise.isPromise(o)?o:i$.promise.resolved(o); },whenAll:function(o){ var a=[]; i$.each(arguments,function(p){ a.push(i$.when(p)); }); return i$.promise.join(a); }}); i$.promise.when=i$.when; i$.promise.whenAll=i$.whenAll; i$.Promise.prototype={_fin:function(v,s){ if(this._stat!==-1){ throw new Error("Promise already resolved"); } this._v=v; this._stat=s; this._cbk(); return this; },_cbk:function(){ var st=this._stat,_8=this._cbs,v=this._v,f; if(st===0){ if(i$.promise.isPromise(v)){ while(_8.length>0){ v.then.apply(v,_8.shift()); } } } while(_8.length>0){ f=_8.shift()[st]; if(f){ try{ f(v); } catch(err){ } } } },_delegate:function(fn){ var p=new i$.Promise(); this.then(i$.partial(fn,p),i$.scope(p,"reject")); return p; },resolve:function(v){ return this._fin(v,0); },reject:function(e){ return this._fin(e,1); },progress:function(p){ i$.each(this._cbs,function(_9){ if(_9[2]){ _9[2](p); } }); return this; },then:function(_a,_b,_c){ var p=new i$.Promise(); this._cbs.push([function(v){ try{ if(_a){ var rv=_a(v); if(rv!==undefined){ v=rv; } } p.resolve(v); } catch(exc){ p.reject(exc); } },function(e){ var rv=e; try{ if(_b){ rv=_b(e); if(rv===undefined){ rv=e; } } } catch(exc){ rv=exc; } p.reject(rv); },_c]); if(this._stat!==-1){ this._cbk(); } return p; },call:function(_d,_e){ return this._delegate(function(p,_f){ if(_f&&i$.isFunction(_f[_d])){ p.resolve(_f[_d].apply(_f,_e)); }else{ p.reject(new Error(_d+" is not a function on "+o)); } }); },get:function(_10){ return this._delegate(function(p,_11){ if(_11){ p.resolve(_11[_10]); }else{ p.reject(new Error(_11+" is null or undefined")); } }); }}; })(); (function(){ i$.getXHR=typeof XMLHttpRequest!=="undefined"?function(){ return new XMLHttpRequest(); }:function(){ return new ActiveXObject("MSXML2.XMLHTTP.3.0"); }; i$.toQuery=function(o){ var q=[]; i$.each(o,function(v,k){ if(i$.isString(v)){ q.push(k+"="+v); }else{ if(i$.isArray(v)){ i$.each(v,function(av,i){ q.push(k+"="+av); }); } } }); return q.join("&"); }; i$.fromQuery=function(q){ var o={}; i$.each(q.split("&"),function(av,i){ var p=av.split("="),k=p[0],v=p[1],cv=o[k]; if(cv){ if(!i$.isArray(cv)){ cv=o[k]=[cv]; } cv.push(v); }else{ o[k]=v; } }); return o; }; i$.xhr=function(_12,_13){ var _12=_12||"GET",_14=new i$.Promise(),url=_13.url||"",_15=_13.sync||false,cb=_13.callback||function(){ },_16=_13.responseType||"text",_17=_13.postData||null,xhr=i$.getXHR(); var _18=function(){ if(xhr.readyState===4){ try{ xhr.onreadystatechange=i$.isIE<=8?new Function():null; } catch(xhrERR){ } if(xhr.status>=400){ var err=new Error(xhr.status+": "+xhr.responseText); try{ cb(err,xhr); } finally{ _14.reject({data:err,xhr:xhr}); } }else{ try{ var ret=""; if(i$.xhrFmts[_16]){ ret=i$.xhrFmts[_16](xhr); } } catch(err){ cb(err,xhr); return; } try{ cb(ret,xhr); } finally{ _14.resolve({data:ret,xhr:xhr}); } } } }; if(!_15){ xhr.onreadystatechange=_18; } xhr.open(_12,url,!_15); i$.each(_13.headers,function(v,k){ xhr.setRequestHeader(k,v); }); xhr.send(_17); if(_15){ _18(); } return _14; }; i$.each(["Get","Put","Post","Delete"],function(m){ i$["xhr"+m]=i$.partial(i$.xhr,m.toUpperCase()); }); i$.loadScript=function(_19){ var _1a=document.getElementsByTagName("head")[0],_1b=document.createElement("script"),_1c=new i$.Promise(),_1d=false,_1e=function(_1f,_20){ _1b.onreadystatechange=_1b.onload=null; _1d=true; _1c[_1f?"resolve":"reject"](_20); if(_19.callback){ _19.callback(_1f,_20); } _1a.removeChild(_1b); _1b=null; }; _1b.type="text/javascript"; _1b.onreadystatechange=function(){ if(this.readyState==="loaded"||this.readyState==="complete"){ _1e(true); } }; _1b.onload=function(){ _1e(true); }; i$.each(_19.scriptAttrs,function(v,k){ if(v!=null){ _1b.setAttribute(k,v); } }); _1b.src=_19.url; _1a.appendChild(_1b); if(_19.timeout){ setTimeout(function(){ if(!_1d){ _1e(false,new Error("Timeout exceeded")); } },_19.timeout); } return _1c; }; })(); (function(){ if(typeof (JSON)!="undefined"&&JSON.parse){ i$.fromJson=function(str){ return JSON.parse(str); }; i$.toJson=function(obj,_21){ return JSON.stringify(obj,null,_21?"\t":""); }; }else{ i$.fromJson=function(str){ return eval(["(",str,")"].join("")); }; var _22=function(str){ return ["\"",str.replace(/[\\]/g,"\\\\").replace(/["]/g,"\\\"").replace(/[\r]/g,"\\r").replace(/[\n]/g,"\\n").replace(/[\b]/g,"\\b").replace(/[\t]/g,"\\t").replace(/[\f]/g,"\\f"),"\""].join(""); },_23=function(obj,p,_24,_25){ var ap,_26; if(_24){ _25=_25||""; _26=_25+"\t"; } if(obj===null){ p.push("null"); }else{ if(obj===undefined){ p.push("undefined"); }else{ if(i$.isBoolean(obj)||i$.isNumber(obj)){ p.push(obj); }else{ if(i$.isString(obj)){ p.push(_22(obj)); }else{ if(i$.isFunction(obj.toJson)){ p.push(obj.toJson()); }else{ if(i$.isArray(obj)){ p.push("["); ap=[]; i$.each(obj,function(el){ var _27=[]; _23(el,_27,_24,_26); ap.push(_27.join("")); }); if(ap.length>0){ if(_24){ p.push("\n"+_26); } p.push(ap.join(_24?",\n"+_26:",")); if(_24){ p.push("\n"+_25); } } p.push("]"); }else{ if(i$.isObject(obj)){ p.push("{"); ap=[]; i$.each(obj,function(el,key){ var _28=[_22(key),": "]; _23(el,_28,_24,_26); ap.push(_28.join("")); }); if(ap.length>0){ if(_24){ p.push("\n"+_26); } p.push(ap.join(_24?",\n"+_26:",")); if(_24){ p.push("\n"+_25); } } p.push("}"); } } } } } } } }; i$.toJson=function(obj,_29){ var p=[]; _23(obj,p,_29); return p.join(""); }; } i$.xhrFmts.json=function(xhr){ return i$.fromJson(xhr.responseText); }; })(); (function(){ var _2a=function(){ this._evts={}; },_2b=function(_2c,_2d){ return _2c._evts[_2d]||(_2c._evts[_2d]={l:[],b:[]}); },add=function(_2e,_2f,_30,fn){ var e=_2b(_2e,_2f),c=e[_30].push(fn); return [_2f,_30,c-1]; },_31=function(_32,_33){ var e=_2b(_32,_33[0]); delete e[_33[1]][_33[2]]; },_34=function(evt,_35,_36){ var _37=evt.b,_36=_36||0,b,r; for(var i=_36;i<_37.length;i++){ b=_37[i]; if(b){ _35=typeof _35==="undefined"?[]:_35; r=b.apply(null,_35||[]); if(i$.promise.isPromise(r)){ return r.then(function(_38){ if(_38!==false){ return _34(evt,_35,i+1); } return _38; }); } } } },_39=function(evt,_3a){ var _3b=evt.l,l; for(var i=0;i<_3b.length;i++){ l=_3b[i]; if(l){ l.apply(null,_3a||[]); } } },_3c=function(_3d,_3e,_3f){ var e=_2b(_3d,_3e); return i$.when(_34(e,_3f)).then(function(_40){ if(_40!==false){ _39(e,_3f); } return _40; }); }; i$.augment(_2a,{addListener:function(_41,fn){ return add(this,_41,"l",fn); },removeListener:function(_42){ return _31(this,_42); },addBroker:function(_43,fn){ return add(this,_43,"b",fn); },removeBroker:function(_44){ return _31(this,_44); },fireEvent:function(_45,_46){ return _3c(this,_45,_46); }}); var _47=new _2a(); i$.each(["addListener","removeListener","addBroker","removeBroker","fireEvent"],function(n){ i$[n]=i$.scope(_47,n); }); })(); (function(){ var _48=document.createElement("div"); i$.byId=function(id){ if(i$.isNode(id)){ return id; }else{ return document.getElementById(id); } }; i$.createDom=function(_49,_4a,_4b){ var el=document.createElement(_49); i$.each(_4a,function(v,k){ el.setAttribute(k,v); }); if(_4b){ _4b.appendChild(el); } return el; }; var _4c=_48.addEventListener?function(n){ return n.indexOf("on")==0?n.substr(2):n; }:function(n){ return n.indexOf("on")!=0?"on"+n:n; },add=_48.addEventListener?function(_4d,_4e,f){ _4d.addEventListener(_4e,f,false); }:function(_4f,_50,f){ _4f.attachEvent(_50,f); },_51=_48.removeEventListener?function(_52,_53,f){ _52.removeEventListener(_53,f,false); }:function(_54,_55,f){ _54.detachEvent(_55,f); }; i$.isDescendant=function(_56,anc){ if(anc){ while(_56){ if(_56==anc){ return true; } _56=_56.parentNode; } } return false; }; i$.bindDomEvt=function(_57,_58,f){ _58=_4c(_58); if((_58=="mouseleave"||_58=="mouseenter")&&!i$.isIE){ var fp=f; _58=_58=="mouseleave"?"mouseout":"mouseover"; f=function(e){ if(!i$.isDescendant(e.relatedTarget,_57)){ return fp.call(this,e); } }; } add(_57,_58,f); return [_57,_58,f]; }; i$.unbindDomEvt=function(_59){ if(_59[0]){ _51(_59[0],_59[1],_59[2]); } _59.splice(0,3); }; if("classList" in _48){ i$.mash(i$,{addClass:function(_5a,_5b){ _5a&&_5a.classList&&_5a.classList.add(_5b); },removeClass:function(_5c,_5d){ _5c&&_5c.classList&&_5c.classList.remove(_5d); },hasClass:function(_5e,_5f){ return _5e&&_5e.classList&&_5e.classList.contains(_5f); },toggleClass:function(_60,_61){ _60&&_60.classList&&_60.classList.toggle(_61); }}); }else{ var _62=function(str,_63){ if(!str){ return -1; } var len=_63.length,i=str.indexOf(_63),_64,_65; while(i>-1){ _65=str.charAt(i+len); _64=str.charAt(i-1); if((!_65||_65==" ")&&(!_64||_64==" ")){ break; } i=str.indexOf(_63,i+1); } return i; }; i$.mash(i$,{addClass:function(_66,_67){ if(!_66){ return; } if(_62(_66.className,_67)<0){ _66.className+=" "+_67; } },removeClass:function(_68,_69){ if(!_68){ return; } var str=_68.className,len=_69.length,i=_62(str,_69),val=[]; if(i>-1){ if(i>0){ val.push(str.substring(0,i)); } if(str.length>i+len){ val.push(str.substr(i+len)); } _68.className=i$.trim(val.join()); } },hasClass:function(_6a,_6b){ if(!_6a){ return; } return _62(_6a.className,_6b)>-1; },toggleClass:function(_6c,_6d){ if(!_6c){ return; } i$[i$.hasClass(_6c,_6d)?"removeClass":"addClass"](_6c,_6d); }}); } })(); (function(){ var _6e=/([^_]+)_([^_]+)_deferred_?([\d]+)?/,_6f=/alternate/i,_70=function(t){ return document.getElementsByTagName(t); },_71=function(){ return _70("head")[0]; },_72=function(url){ i$.createDom("link",{rel:"stylesheet",type:"text/css",href:url},_71()); return i$.promise.resolved(); },_73=function(url){ return i$.loadScript({url:url}); },_74=function(mod){ return i$.xhrGet({url:mod.url,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_75){ return {mod:mod,data:_75.data}; }); },_76=function(_77){ i$.each(_77,function(_78){ var m=_78.mod; var _79=m.node.parentNode; var _7a=m.p!="head"?m.node:null; var _7b=document.createDocumentFragment(),tmp=i$.createDom("div"); tmp.innerHTML=_78.data; while(tmp.firstChild){ _7b.appendChild(tmp.firstChild); } _79.insertBefore(_7b,_7a); }); },_7c=function(_7d){ if(_6f.test(_7d.rel)){ var id=_7d.id,_7e=id.match(_6e); if(_7e){ return {node:_7d,url:_7d.href,id:id,p:_7e[1],t:_7e[2],i:_7e[3]}; } } },_7f=function(){ var m={head:[],config:[]},_80={},_81={length:0},_82=_70("link"),_83=_70("a"); i$.each([_82,_83],function(_84){ i$.each(_84,function(_85){ var mod=_7c(_85); if(mod&&!_80[mod.id]){ _80[mod.id]=mod; if(!_81[mod.t]){ _81[mod.t]=[]; _81.length=_81.length+1; } _81[mod.t].push(mod); } }); }); return _81; },_86=function(_87){ var _88=[]; var _89=[]; i$.each(_87["markup"],function(mod){ _89.push(_74(mod)); }); return i$.whenAll.apply(this,_89).then(function(_8a){ _88=_8a; _89=[]; i$.each(_87["css"],function(mod){ _89.push(_72(mod.url)); }); return i$.whenAll.apply(this,_89); },function(err){ console.log("Error: ",err); }).then(function(_8b){ return _8c(_87["js"]); }).then(function(){ _76(_88); }); },_8c=function(_8d){ var m=_8d.shift(),p; if(m){ p=_73(m.url); } return i$.when(p).then(function(){ return _8d.length>0?_8c(_8d):true; },function(err){ console.log("Error: ",err); }); },_8e=false,_8f=null,_90=false,_91=false,_92=new i$.Promise(),_93=function(cbk){ i$.addOnLoad(function(){ if(!_8e){ _8f=_7f(); _90=_8f.length>0?false:true; if(_90){ _92.resolve(); } _8e=true; } if(cbk){ cbk(); } }); }; i$.modules={}; i$.mash(i$.modules,{areLoaded:function(){ return _90; },areLoading:function(){ return _91; },loadDeferred:function(){ if(_91){ return _92; } var cbk=function(){ if(!_90){ _91=true; _86(_8f).then(function(){ _90=true; _91=false; _92.resolve(); },function(e){ _92.reject(e); }); } }; _93(cbk); return _92; },addAfterLoaded:function(f){ var cbk=function(){ _92.then(f); }; _93(cbk); }}); var _94=i$.addOnLoad,_95=[]; i$.addOnLoad=function(f,o){ if(_91){ if(o){ f=i$.scope(o,f); } _95.push(f); }else{ _94(f,o); } }; i$.modules.addAfterLoaded(function(){ while(_95.length>0){ if(fn=_95.shift()){ fn(); } } }); })(); (function(){ i$.getCookie=function(n){ var cs=document.cookie.split(";"),c="",cn="",cv=null; for(var i=0;i1){ cv=i$.trim(c[1]); } return cv; } } return null; }; i$.setCookie=function(n,v,e,p,d,s){ if(!e){ var m=new Date().getTime(); m+=(1000*60*60*24*365*100); e=new Date(m); } var c=n+"="+v+((e)?"; e="+e.toGMTString():"")+((p)?"; path="+p:"; path=/")+((d)?"; domain="+d:"")+((s)?"; secure":""); document.cookie=c; }; i$.deleteCookie=function(n,p,d){ if(i$.getCookie(n)){ document.cookie=n+"="+((p)?"; path="+p:"; path=/")+((d)?"; domain="+d:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"; } }; })(); /** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2011, 2012 - All Rights reserved. **/ (function(){ var w=window,i$=function(){ if(i$.qel){ return i$.qel.apply(this,arguments); } }; w.i$=i$; i$.global=w; if(typeof (console)=="undefined"){ var f=function(){ }; console={log:f,debug:f,info:f,warn:f,error:f,assert:f}; } i$.partial=function(f){ var _1=i$.toArray(arguments).slice(1); return function(){ var _2=_1.slice(0),_3=i$.toArray(arguments),i=0; for(;i<_2.length;i++){ if(_2[i]===undefined){ _2[i]=_3.shift(); } } _2.push.apply(_2,_3); return f.apply(this,_2); }; }; i$.scope=function(s,f){ var of=f; f=function(){ return (i$.isString(of)?s[of]:of).apply(s,arguments); }; return i$.partial.apply(this,i$.toArray(arguments).slice(1)); }; i$.error=function(_4,_5){ console.error(_5||new Error(_4)); }; i$.forEach=function(_6,f,_7){ if(_7==null){ _7=0; } for(var i=(_7>=0)?_7:0;i<_6.length;i++){ f(_6[i],i,_6); } }; i$.forIn=function(o,f){ for(var i in o){ f(o[i],i,o); } }; i$.each=function(o,f,s){ if(s){ f=i$.scope(s,f); } if(o){ if(o instanceof Array||typeof o.length==="number"){ i$.forEach(o,f); }else{ i$.forIn(o,f); } } }; i$.some=function(a,f,s){ if(s){ f=i$.scope(s,f); } for(var i=0;i1){ i$["is"+_1c[0]]=_19(m[1]); } }); })(navigator.userAgent); var _1d=document.documentMode; if(_1d&&_1d!=5&&Math.floor(i$.isIE)!=_1d){ i$.isIE=_1d; } i$.isNode=function(o){ return typeof o==="object"&&typeof o.nodeType==="number"&&typeof o.nodeName==="string"; }; i$.isFunction=function(o){ return typeof o==="function"||o instanceof Function; }; i$.isObject=function(o){ return typeof o==="object"; }; i$.isArray=function(o){ return o instanceof Array; }; i$.isString=function(o){ return typeof o==="string"; }; i$.isNumber=function(o){ return typeof o==="number"; }; i$.isBoolean=function(o){ return typeof o==="boolean"; }; i$.isLikeArray=function(o){ return o instanceof Array||typeof o.length==="number"; }; i$.toArray=function(o){ return Array.prototype.slice.call(o); }; if(i$.isIE){ var _1e=i$.toArray; i$.toArray=function(o){ try{ return _1e(o); } catch(err){ var a=new Array(o.length); for(var i=0;i0){ if(fn=_20.shift()){ try{ fn(); } catch(err){ console.log(err); } } } }; i$._exitPage=function(){ var fn; while(_21.length>0){ if(fn=_21.shift()){ try{ fn(); } catch(err){ console.log(err); } } } }; i$._addEvent=function(e,f,o){ var w=o?o:window; var s=w.attachEvent?e:e.substring(2); var a=w.attachEvent||w.addEventListener; a(s,function(){ f.apply(w,arguments); },false); }; if(!_1f){ i$._addEvent("onload",i$._initPage); if(document.addEventListener){ document.addEventListener("DOMContentLoaded",i$._initPage,false); } } i$._addEvent("onunload",i$._exitPage); i$.addOnLoad=function(f,o){ if(o){ f=i$.scope(o,f); } if(_1f){ f(); }else{ _20.push(f); } }; i$.addOnUnload=function(f,o){ if(o){ f=i$.scope(o,f); } _21.push(f); }; var mx=function(o,m){ for(var p in m){ if(m.hasOwnProperty(p)){ o[p]=m[p]; } } },mxn=function(o,m,_22){ i$.forEach(_22,function(p){ if(m.hasOwnProperty(p)){ o[p]=m[p]; } }); }; i$.mash=function(o){ i$.forEach(arguments,function(v){ mx(o,v); },1); return o; }; i$.mashSpec=function(n,o){ i$.forEach(arguments,function(v){ mxn(o,v,n); },2); return o; }; i$.augment=function(f){ var r=f; if(f&&f.prototype){ f=f.prototype; i$.mash.apply(i$,arguments); } return r; }; i$.make=(function(){ var l=function(){ }; return function(o){ l.prototype=o; o=new l(); return i$.mash.apply(i$,arguments); }; })(); var _23=/^\s+/g; i$.trim=function(str){ str=str.replace(_23,""); var i=str.length-1; while(str.charAt(i)==" "||str.charAt(i)=="\t"||str.charAt(i)=="\n"||str.charAt(i)=="\r"){ i--; } return str.substring(0,i+1); }; var _24=i$.isArray,_25=i$.isObject; i$.merge=function(_26,_27,_28){ var _28=_28||[],v,c; _27=_27||i$.global; if(_24(_26)&&_24(_27)){ _27.push.apply(_27,_26); }else{ for(var x in _26){ if(_26.hasOwnProperty(x)){ v=_26[x],c=_27[x]; if(c!=null&&((_24(v)&&_24(c))||(_25(v)&&_25(c)))){ _27[x]=i$.merge(v,c,_28.concat(x)); }else{ _27[x]=v; } } } } return _27; }; var _29; i$.isRTL=function(_2a){ if(!_29){ _29=i$.fromPath("ibmCfg.themeConfig.RTLMap"); } var _2b=_29||{"iw":1,"he":1,"ar":1}; return (_2a.substring(0,2) in _2b); }; })(); /** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2009, 2010, 2011 - All Rights reserved. **/ if(!dojo._hasResource["com.ibm.portal.xslt"]){dojo._hasResource["com.ibm.portal.xslt"]=true;dojo.provide("com.ibm.portal.xslt");dojo.require("dojox.data.dom");dojo.declare("com.ibm.portal.xslt.TransformerFactory",null,{constructor:function(){this._xsltMap=new Array();},newTransformer:function(_1){ibm.portal.debug.entry("newTransformer",[_1]);var _2=this._getCached(_1);if(_2==null){_2=new com.ibm.portal.xslt.Transformer(_1);this._xsltMap.push({url:_1,transformer:_2});}return _2;},_getCached:function(_3){var _4=null;for(i=0;i0){try{var _1e=new ActiveXObject(_1d[0]);if(_1e){return _1e;}}catch(err){}_1d.splice(0,1);}throw new Error("No MSXML implementation exists");};com.ibm.portal.xslt.ie.loadXml=function(_1f){var _20=this._getMSXMLImpl(this.DOM_PROG_IDS);_20.async=0;_20.resolveExternals=0;if(!_20.load(_1f)){throw new Error("Error loading xml file "+_1f);}return _20;};com.ibm.portal.xslt.ie.loadXmlString=function(_21){var _22=this._getMSXMLImpl(this.DOM_PROG_IDS);_22.async=0;_22.resolveExternals=0;if(_21){if(!_22.loadXML(_21)){throw new Error("Error loading xml string "+_21);}}return _22;};com.ibm.portal.xslt.ie.loadXsl=function(_23){var _24=this._getMSXMLImpl(this.FTDOM_PROG_IDS);_24.async=0;_24.resolveExternals=0;_24.setProperty("ForcedResync",false);if(!_24.load(_23)){throw new Error("Error loading xsl file "+_23);}return _24;};com.ibm.portal.xslt.ie.transform=function(_25,xsl,_26,_27,_28){var _29=_25;var _2a=xsl;try{if(!_2a.documentElement){_2a=this.loadXsl(xsl);}}catch(e){var _2b=e.message;throw new Error(""+_2b,""+_2b);}var _2c=this._getMSXMLImpl(this.XSLT_PROG_IDS);_2c.stylesheet=_2a;var _2d=_2c.createProcessor();_2d.input=_29;if(_27){for(var p in _27){_2d.addParameter(p,_27[p]);}}if(_26){_2d.addParameter("mode",_26);}if(_28){if(!_2d.transform()){throw new Error("Error transforming xml doc "+_29);}return _2d.output;}else{var _2e=this._getMSXMLImpl(this.DOM_PROG_IDS);_2e.async=false;_2e.validateOnParse=false;_29.transformNodeToObject(_2a,_2e);return _2e;}};com.ibm.portal.xslt.gecko.loadXml=function(_2f){var _30=null;if(dojo.isSafari){var xhr=new XMLHttpRequest();xhr.open("GET",_2f,false);xhr.send(null);if(xhr.status==200){_30=xhr.responseXML;}}else{_30=document.implementation.createDocument("","",null);_30.async=0;_30.load(_2f);}return _30;};com.ibm.portal.xslt.gecko.loadXmlString=function(_31){var _32=new DOMParser();var _33=null;if(_31){try{_33=_32.parseFromString(_31,"text/xml");}catch(exc){throw new Error("Error loading xml string "+_31);}}else{return document.implementation.createDocument("","",null);}return _33;};com.ibm.portal.xslt.gecko.loadXsl=function(_34){var _35=null;if(dojo.isWebKit){var xhr=new XMLHttpRequest();xhr.open("GET",_34,false);xhr.send(null);if(xhr.status==200){_35=xhr.responseXML;}}else{_35=document.implementation.createDocument("","",null);_35.async=0;_35.load(_34);}return _35;};com.ibm.portal.xslt.gecko._getXSLTProc=function(_36,xsl,_37,_38){var _39=xsl;if(!_39.documentElement){_39=this.loadXsl(xsl);}var _3a=new XSLTProcessor();_3a.importStylesheet(_39);if(_38){for(var p in _38){_3a.setParameter(null,p,_38[p]);}}if(_37){_3a.setParameter(null,"mode",_37);}return _3a;};com.ibm.portal.xslt.gecko._transformToFragment=function(_3b,xsl,_3c,_3d,doc){var _3e=com.ibm.portal.xslt.gecko._getXSLTProc(_3b,xsl,_3c,_3d);var _3f=null;_3f=_3e.transformToFragment(_3b,doc);_3e.clearParameters();return _3f;};com.ibm.portal.xslt.gecko.transform=function(_40,xsl,_41,_42,_43){try{var _44=null;if(!_43){var _45=com.ibm.portal.xslt.gecko._getXSLTProc(_40,xsl,_41,_42);_44=_45.transformToDocument(_40);return _44;}else{_44=com.ibm.portal.xslt.gecko._transformToFragment(_40,xsl,_41,_42,document);}var _46=new XMLSerializer();var _47=dojo.string.trim(_46.serializeToString(_44));if(dojo.isOpera&&_44.firstChild&&_44.firstChild.nodeName=="result"){var _48=_47.indexOf("")+8;var end=_47.lastIndexOf("");_47=dojo.string.trim(_47.substring(_48,end));}return _47;}catch(exc){throw new Error("Error transforming xml doc "+exc);}};com.ibm.portal.xslt.setLayerContentByXml=function(_49,xml,xsl,_4a,_4b){var _4c=com.ibm.portal.xslt.transform(xml,xsl,null,_4a,_4b);if(_49.innerHTML){_49.innerHTML=_4c;}else{var obj=document.getElementById(_49);obj.innerHTML=_4c;}};}if(!dojo._hasResource["com.ibm.domUtilities"]){dojo._hasResource["com.ibm.domUtilities"]=true;dojo.provide("com.ibm.domUtilities");dojo.require("dojox.xml.parser");dojo.require("com.ibm.portal.xslt");(function(){var _4d=com.ibm.domUtilities={constants:{NodeTypes:{element:1,attribute:2,text:3,cdata:4,entity_reference:5,entity:6,processing_instruction:7,comment:8,document:9,document_type:10,document_fragment:11,notation:12}},nsInfo:function(str,_4e){var _4f=str.split(":");var _50,_51;if(_4f.length>1){_50=_4f[0];_51=_4f[1];return {namespaceURI:_4e[_50],prefix:_50,localName:_51};}else{return {namespaceURI:null,prefix:null,localName:str};}},getAttribute:function(_52,_53,_54){var ret=null;var _55=_4d.nsInfo(_53,_54);if(_55.namespaceURI){if(_52.getAttributeNS){ret=_52.getAttributeNS(_55.namespaceURI,_55.localName);}else{if(dojo.isIE||window.ActiveXObject!==undefined){ret=_52.attributes.getQualifiedItem(_55.localName,_55.namespaceURI);if(ret){ret=ret.value;}}else{ret=_52.getAttribute(_53);}}}else{ret=_52.getAttribute(_53);}return ret;},setAttribute:function(_56,_57,_58,_59){if(_58===true){_58="true";}else{if(_58===false){_58="false";}else{if(_58===null){_58="";}}}var _5a=_4d.nsInfo(_57,_59);if(_5a.namespaceURI){if(_56.setAttributeNS){_56.setAttributeNS(_5a.namespaceURI,_57,_58);}else{if((dojo.isIE||window.ActiveXObject!==undefined)&&_56.ownerDocument){var _5b=_56.ownerDocument.createNode(_4d.constants.NodeTypes.attribute,_57,_5a.namespaceURI);_5b.value=_58;_56.setAttributeNode(_5b);}else{_56.setAttribute(_57,_58);}}}else{_56.setAttribute(_57,_58);}},removeAttribute:function(_5c,_5d,_5e){var _5f=_4d.nsInfo(_5d,_5e);if(_5f.namespaceURI){if(_5c.removeAttributeNS){_5c.removeAttributeNS(_5f.namespaceURI,_5d);}else{if(dojo.isIE||window.ActiveXObject!==undefined){_5c.attributes.removeQualifiedItem(_5f.localName,_5f.namespaceURI);}else{_5c.removeAttribute(_5d);}}}else{_5c.removeAttribute(_5d);}},hasAttribute:function(_60,_61,_62){var ret=null;var _63=_4d.nsInfo(_61,_62);if(_63.namespaceURI){if(_60.hasAttributeNS){ret=_60.hasAttributeNS(_63.namespaceURI,_63.localName);}else{if(dojo.isIE||window.ActiveXObject!==undefined){ret=_60.attributes.getQualifiedItem(_63.localName,_63.namespaceURI)!==null;}else{ret=_60.hasAttribute(_61);}}}else{if(!(dojo.isIE||window.ActiveXObject!==undefined)){ret=_60.hasAttribute(_61);}else{ret=_60.getAttributeNode(_61)!==null;}}return ret;},createDocument:function(_64,_65){if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){var _66=["MSXML2.FreeThreadedDOMDocument.6.0","Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.3.0"];for(var i=0;i<_66.length;i++){try{oXml=new ActiveXObject(_66[i]);if(oXml){break;}}catch(e){if(i==_66.length){console.warn("Error creating Msxml.DOMDocument; reason: ",e);}}}oXml.async=false;if(_64){oXml.loadXML(_64);if(oXml.parseError.errorCode!=0){var _67=oXml.parseError;console.warn("Error parsing XML data. Reason: '"+_67.reason+"'; data: '"+_64+"'.");}}return oXml;}else{return dojox.xml.parser.parse(_64,_65);}},createElement:function(doc,_68,_69,_6a){var _6b=null;var _6c=_4d.nsInfo(_68,_69);if(_6c.namespaceURI){if(doc.createElementNS){_6b=doc.createElementNS(_6c.namespaceURI,_68);}else{if(dojo.isIE||window.ActiveXObject!==undefined){_6b=doc.createNode("element",_68,_6c.namespaceURI);}}}if(!_6b){_6b=doc.createElement(_68);}for(var _6d in _6a){_4d.setAttribute(_6b,_6d,_6a[_6d],_69);}return _6b;},createFromJson:function(doc,def,_6e,_6f){var obj=null;if(!dojo.isObject(def)){obj=doc.createTextNode(def);if(_6f){_6f.appendChild(obj);}}else{obj=_4d.createElement(doc,def.name,_6e,def.attributes);if(_6f){_6f.appendChild(obj);}dojo.forEach(def.children,function(_70){_4d.createFromJson(doc,_70,_6e,obj);});}return obj;},removeChildren:function(_71){var arr=[];while(_71.hasChildNodes()){arr.push(_71.removeChild(_71.firstChild));}return dojo.NodeList.apply(null,arr);},textContent:function(_72,_73){return dojox.xml.parser.textContent.apply(null,arguments);},innerXML:function(_74){return dojox.xml.parser.innerXML(_74);},stringFromDoc:function(_75){return _4d.innerXML(_75);},docFromString:function(str){return _4d.createDocument(str&&str.length>0?str:null);},encodeXML:function(_76,_77){if(dojo.isString(_76)){_76=_76.replace(/&/gm,"&").replace(//gm,">");if(_77){_76=_76.replace(/'/gm,"'").replace(/"/gm,""");}return _76;}else{if(_76!==null){return _76;}else{return "";}}},decodeXML:function(_78,_79){if(dojo.isString(_78)){_78=_78.replace(/</gm,"<").replace(/>/gm,">").replace(/&/gm,"&");if(_79){_78=_78.replace(/'/gm,"'").replace(/"/gm,"\"");}return _78;}else{if(_78!=null){return _78;}else{return "";}}}};_4d.constants.MSXML_NodeTypes=_4d.constants.NodeTypes;})();}if(!dojo._hasResource["com.ibm.utilities"]){dojo._hasResource["com.ibm.utilities"]=true;dojo.provide("com.ibm.utilities");dojo.require("dojo.string");com.ibm.utilities={urlToProxyUrl:function(url,_7a){var ret=_7a?_7a:"/proxy";var _7b="http";var _7c=url.indexOf("://");if(_7c>-1){_7b=url.substring(0,_7c);url=url.substring(_7c+3);}url=url.replace(/:/g,"%3A");return ret+"/"+_7b+"/"+url;},withBaseUrl:function(_7d){if(_7d.charAt(0)=="/"){return _7d;}return com.ibm.utilities.baseUrl()+_7d;},baseUrl:function(){if(!this._baseUrl){var _7e=dojo.doc.getElementsByTagName("base")[0];if(_7e){this._baseUrl=_7e.getAttribute("href");}if(!this._baseUrl){this._baseUrl="";}}return this._baseUrl;},stripUrlFragment:function(url){var h=url.indexOf("#");if(h>-1){url=url.substr(0,h);}return url;},stripTrailingSlash:function(url){if(!url){return "";}else{return url.replace(/\/+$/g,"");}},actionIO:function(url,_7f){if(url){var _80=dojo.doc.createElement("form");_80.setAttribute("action",url);if(_7f){_7f=_7f.toLowerCase();}switch(_7f){case "get":_80.setAttribute("method","GET");break;case "post":case "delete":case "put":_80.setAttribute("method","POST");break;default:}dojo.body().appendChild(_80);_80.submit();}},refreshPage:function(){var url,_81=-1,_82=document.getElementsByTagName("base");if(_82.length>0){url=_82[0].href;}else{url=top.location.href;_81=url.indexOf("#");if(dojo.isSafari<4&&_81>-1){window.location.reload();}if(_81>-1){url=url.substring(0,_81);}}window.location.assign(url);}};(function(){var _83="{EB2F8DA2-5B2C-F66A-CDD0-A2D42143F5AC}";var _84="\r\n";var sep="--";var _85=_84+sep+_83+_84;var _86=sep+_83+sep+_84;var _87=new RegExp(_84+_84);var _88=new RegExp(_84+"s*([^\r]*)s*","mg");var _89=/\s*([^:]*):\s*(.+)/;var _8a=/boundary\s*=\s*\"?([^\"]*)\"?/;var _8b=function(_8c,_8d,_8e){try{if(_8d instanceof Error){if(_8c.error){_8c.error(_8d,_8e);}}else{try{if(_8c.load){_8c.load(_8d,_8e);}}catch(err){if(_8c.error){_8c.error(err,_8e);}}}if(_8c.handle){_8c.handle(_8d,_8e);}}catch(err2){}};function _8f(){this.respHeaders=[];this.responseText="";this.responseXML=null;this.status=0;this.statusText="";this.readyState=0;this.onreadystatechange=function(){};};dojo.extend(_8f,{getResponseHeader:function(key){key=key.toLowerCase();for(var i=0,_90,l=this.respHeaders.length;i0)){var _a6=_a2[1].match(_89);if(_a6){_a0.respHeaders.push([_a6[1],_a6[2]]);}}_a1=dojo.string.trim(_a5);_a0.responseText=_a1;if(_9b.args.partContentHandler){_a1=_9b.args.partContentHandler(_99[j],_a0,_94);}else{_a1=_94(_99[j],_a0);}_8b(_99[j],_a1,dojo.mixin({},_9b,{xhr:_a0}));}},multiPartXhr:function(_a7,_a8,_a9){var _aa="",_ab=null;dojo.forEach(_a9,function(_ac){_ac.handleAs=_ac.handleAs?_ac.handleAs.toLowerCase():"text";_ab="";for(var x in _ac.headers){_ab+=x+": "+_ac.headers[x]+_84;}_aa+=_85+_ab+_84;if(_ac.data&&_ac.data.length>0){_aa+=_ac.data+_84;}});_aa+=_86;if(_a7.toUpperCase()!="PUT"){_a7="POST";}_a8.headers=dojo.mixin({},_a8.headers,{"Content-type":"multipart/mixed; boundary=\""+_83+"\""});var _ad=dojo.mixin({},_a8,{load:function(_ae,_af){if(_a8.preHandle){_a8.preHandle(_ae,_af);}com.ibm.utilities.handleMultiPartResponse(_a9,_ae,_af);if(_a8.postHandle){_a8.postHandle(_ae,_af);}},error:function(_b0,_b1){if(_a8.preHandle){_a8.preHandle(_b0,_b1);}dojo.forEach(_a9,function(_b2){_8b(_b2,_b0,_b1,null);});if(_a8.error){_a8.error(_b0,_b1);}if(_a8.postHandle){_a8.postHandle(_b0,_b1);}},handleAs:"text",form:null,content:null,postData:null,putData:null});_ad[_a7.toLowerCase()+"Data"]=_aa;return dojo.xhr(_a7,_ad,true);}});})();}if(!dojo._hasResource["com.ibm.portal.xpath"]){dojo._hasResource["com.ibm.portal.xpath"]=true;dojo.provide("com.ibm.portal.xpath");com.ibm.portal.xpath.evaluateXPath=function(_b3,doc,_b4){if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){return com.ibm.portal.xpath.ie.evaluateXPath(_b3,doc,_b4);}else{return com.ibm.portal.xpath.gecko.evaluateXPath(_b3,doc,_b4);}};dojo.provide("com.ibm.portal.xpath.ie");com.ibm.portal.xpath.ie.evaluateXPath=function(_b5,doc,_b6){if(_b6){var ns="";for(var _b7 in _b6){ns+="xmlns:"+_b7+"='"+_b6[_b7]+"' ";}if(doc.ownerDocument){doc.ownerDocument.setProperty("SelectionNamespaces",ns);}else{doc.setProperty("SelectionNamespaces",ns);}}var _b8=doc.selectNodes(_b5);var _b9;var _ba=new Array();var len=0;for(var i=0;i<_b8.length;i++){_b9=_b8[i];if(_b9){_ba[len]=_b9;len++;}}return _ba;};dojo.provide("com.ibm.portal.xpath.gecko");com.ibm.portal.xpath.gecko.evaluateXPath=function(_bb,doc,_bc){var _bd;try{var _be=doc;if(!_be.evaluate){_be=doc.ownerDocument;}if(!_be){return new Array();}_bd=_be.evaluate(_bb,doc,function(_bf){return _bc[_bf]||null;},XPathResult.ANY_TYPE,null);}catch(exc){throw new Error("Error with xpath expression"+exc);}var _c0;var _c1=new Array();var len=0;do{_c0=_bd.iterateNext();if(_c0){_c1[len]=_c0;len++;}}while(_c0);return _c1;};}if(!dojo._hasResource["ibm.portal.xml.xslt"]){dojo._hasResource["ibm.portal.xml.xslt"]=true;dojo.provide("ibm.portal.xml.xslt");dojo.require("com.ibm.portal.xslt");ibm.portal.xml.xslt.ie={};ibm.portal.xml.xslt.gecko={};ibm.portal.xml.xslt.getXmlHttpRequest=function(){return com.ibm.portal.xslt.getXmlHttpRequest();};ibm.portal.xml.xslt.loadXml=function(_c2){return com.ibm.portal.xslt.loadXml(_c2);};ibm.portal.xml.xslt.loadXmlString=function(_c3){return com.ibm.portal.xslt.loadXmlString(_c3);};ibm.portal.xml.xslt.loadXsl=function(_c4){return com.ibm.portal.xslt.loadXsl(_c4);};ibm.portal.xml.xslt.transform=function(xml,xsl,_c5,_c6,_c7){ibm.portal.debug.entry("transform",[xml,xsl,_c5,_c6,_c7]);return com.ibm.portal.xslt.transform(xml,xsl,_c5,_c6,_c7);};ibm.portal.xml.xslt.transformAndUpdate=function(_c8,xml,xsl,_c9,_ca){ibm.portal.debug.entry("transformAndUpdate",[_c8,xml,xsl,_c9,_ca]);com.ibm.portal.xslt.transformAndUpdate(_c8,xml,xsl,_c9,_ca);ibm.portal.debug.exit("transformAndUpdate");};ibm.portal.xml.xslt.ie.loadXml=function(_cb){return com.ibm.portal.xslt.ie.loadXml(_cb);};ibm.portal.xml.xslt.ie.loadXmlString=function(_cc){return com.ibm.portal.xslt.ie.loadXmlString(_cc);};ibm.portal.xml.xslt.ie.loadXsl=function(_cd){return com.ibm.portal.xslt.ie.loadXsl(_cd);};ibm.portal.xml.xslt.ie.transform=function(_ce,xsl,_cf,_d0,_d1){return com.ibm.portal.xslt.ie.transform(_ce,xsl,_cf,_d0,_d1);};ibm.portal.xml.xslt.gecko.loadXml=function(_d2){return com.ibm.portal.xslt.gecko.loadXml(_d2);};ibm.portal.xml.xslt.gecko.loadXmlString=function(_d3){return com.ibm.portal.xslt.gecko.loadXmlString(_d3);};ibm.portal.xml.xslt.gecko.loadXsl=function(_d4){return com.ibm.portal.xslt.gecko.loadXsl(_d4);};ibm.portal.xml.xslt.gecko.transform=function(_d5,xsl,_d6,_d7,_d8){return com.ibm.portal.xslt.gecko.transform(_d5,xsl,_d6,_d7,_d8);};ibm.portal.xml.xslt.setLayerContentByXml=function(_d9,xml,xsl,_da,_db){com.ibm.portal.xslt.setLayerContentByXml(_d9,xml,xsl,_da,_db);};}if(!dojo._hasResource["ibm.portal.xml.xpath"]){dojo._hasResource["ibm.portal.xml.xpath"]=true;dojo.provide("ibm.portal.xml.xpath");dojo.require("com.ibm.portal.xpath");ibm.portal.xml.xpath.evaluateXPath=function(_dc,doc,_dd){return com.ibm.portal.xpath.evaluateXPath(_dc,doc,_dd);};dojo.provide("ibm.portal.xml.xpath.ie");ibm.portal.xml.xpath.ie.evaluateXPath=function(_de,doc,_df){return com.ibm.portal.xpath.ie.evaluateXPath(_de,doc,_df);};dojo.provide("ibm.portal.xml.xpath.gecko");ibm.portal.xml.xpath.gecko.evaluateXPath=function(_e0,doc,_e1){return com.ibm.portal.xpath.gecko.evaluateXPath(_e0,doc,_e1);};}if(!dojo._hasResource["com.ibm.portal.utilities"]){dojo._hasResource["com.ibm.portal.utilities"]=true;dojo.provide("com.ibm.portal.utilities");com.ibm.portal.utilities={findPortletIdByElement:function(_e2){ibm.portal.debug.entry("findPortletID",[_e2]);var id="";var _e3=_e2.parentNode;while(_e3&&id.length==0){ibm.portal.debug.text("examining element "+_e3.tagName+"; class="+_e3.className,"findPortletID");if(typeof (_e3.className)=="string"){if(_e3.className&&(_e3.className.match(/\bwpsPortletBody\b/)||_e3.className.match(/\bwpsPortletBodyInlineMode\b/))){id=_e3.id;var _e4=id.indexOf("_mode");if(_e4>=0){id=id.substring(0,_e4);}}}_e3=_e3.parentNode;}if(id.indexOf("portletActions_")>=0){id=id.substring("portletActions_".length);}ibm.portal.debug.exit("findPortletID",[id]);return id;},findFormByElement:function(_e5){var _e6=_e5;while(_e6){if(_e6.tagName&&_e6.tagName.toLowerCase()=="form"){break;}_e6=_e6.parentNode;}return _e6;},encodeURI:function(uri){ibm.portal.debug.entry("encodeURI",[uri]);var _e7=uri;var _e8=uri.lastIndexOf(":");while(_e8>=0){var _e9=_e7.substring(0,_e8);var _ea=_e7.substring(_e8+1);_e7=_e9+":"+encodeURIComponent(_ea);_e8=_e9.lastIndexOf(":");}_e7=encodeURIComponent(_e7);ibm.portal.debug.exit("encodeURI",[_e7]);return _e7;},decodeURI:function(uri){ibm.portal.debug.entry("decodeURI",[uri]);var _eb=decodeURIComponent(uri);var _ec=_eb.indexOf(":");while(_ec>=0){var _ed=_eb.substring(0,_ec);var _ee=_eb.substring(_ec+1);_eb=_ed+":"+decodeURIComponent(_ee);_ec=_eb.indexOf(":",_ec+1);}ibm.portal.debug.exit("decodeURI",[_eb]);return _eb;},getSelectionNodeId:function(_ef){ibm.portal.debug.entry("getSelectionNodeId",[_ef]);var _f0=_ef.split("@oid:");ibm.portal.debug.exit("getSelectionNodeId",[_f0[1]]);return _f0[1];},getControlId:function(_f1){ibm.portal.debug.entry("_getControlId",[_f1]);var _f2=_f1.split("@oid:");var _f3=_f2[0].split("oid:");ibm.portal.debug.exit("getControlId",[_f3[1]]);return _f3[1];},getOverwriteMap:function(obj,_f4){var _f5=null;var _f6=com.ibm.portal.utilities.domData.getManager(obj);if(_f6){_f5=_f6.data(obj,"_overwritten_");if(!_f5&&_f4){_f5={};_f6.data(obj,"_overwritten_",_f5);}}else{_f5=obj["_overwritten_"];if(!_f5&&_f4){obj["_overwritten_"]=_f5={};}}return _f5;},overwriteProperty:function(obj,_f7,_f8,_f9){ibm.portal.debug.entry("overwriteProperty",[obj,_f7,_f8,_f9]);var _fa=com.ibm.portal.utilities.getOverwriteMap(obj,true);if(!_f9){_f9=false;}var _fb=(_f9&&(_fa[_f7]!=null));if(!_fb){if(_fa[_f7]==null){_fa[_f7]=obj[_f7];}else{_fa[_f7]=null;}var _fc=com.ibm.portal.utilities.domData.getManager(obj);if(_fc){_fc.trackProperty(obj,_f7);}obj[_f7]=_f8;ibm.portal.debug.text("Property overwrite successful!");}ibm.portal.debug.exit("overwriteProperty");},restoreProperty:function(obj,_fd){ibm.portal.debug.entry("utilities.restoreProperty",[obj,_fd]);var _fe=obj[_fd];var _ff=com.ibm.portal.utilities.getOverwriteMap(obj);if(_ff!=null){ibm.portal.debug.text("overwritten property value: "+_ff);obj[_fd]=_ff[_fd];_ff[_fd]=null;}else{obj[_fd]=null;}ibm.portal.debug.exit("utilities.restoreProperty",_fe);return _fe;},getOverwrittenProperty:function(obj,_100){var _101=com.ibm.portal.utilities.getOverwriteMap(obj);if(_101){return _101[_100];}else{return null;}},setOverwrittenProperty:function(obj,_102,_103){ibm.portal.debug.entry("utilities.setOverwrittenProperty",[obj,_102,_103]);var _104=com.ibm.portal.utilities.getOverwriteMap(obj,true);_104[_102]=_103;ibm.portal.debug.exit("utilities.setOverwrittenProperty");},callOverwrittenFunction:function(_105,_106,args){ibm.portal.debug.entry("utilities.callOverwrittenFunction",[_105,_106,args]);var _107=null;var _108=this.getOverwrittenProperty(_105,_106);ibm.portal.debug.text("Overwritten property: "+_108);if(_108){ibm.portal.debug.text("old property's apply function: "+_108.apply);if(args){_107=_108.apply(_105,args);}else{_107=_108.apply(_105);}}ibm.portal.debug.exit("utilities.callOverwrittenFunction",_107);return _107;},clearOverwrittenProperties:function(obj){ibm.portal.debug.entry("utilities.clearOverwrittenProperties",[obj]);if(obj){com.ibm.portal.utilities.domData(obj,"_overwritten_",null);if(obj["_overwritten_"]){delete obj["_overwritten_"];}}ibm.portal.debug.exit("utilities.clearOverwrittenProperties");},isExternalUrl:function(_109){ibm.portal.debug.entry("isExternalUrl",[_109]);var host=window.location.host;var _10a=window.location.protocol;var _10b=_109.split("?")[0];var _10c=!(_10b.indexOf("://")<0||(_10b.indexOf(_10a)==0&&_10b.indexOf(host)==_10a.length+2));ibm.portal.debug.text("urlStringNoQuery.indexOf(\"://\") = "+_10b.indexOf("://"));ibm.portal.debug.text("urlStringNoQuery.indexOf(protocol) = "+_10b.indexOf(_10a));ibm.portal.debug.exit("isExternalUrl",_10c);return _10c;},isJavascriptUrl:function(_10d){ibm.portal.debug.entry("isJavascriptUrl",[_10d]);var url=com.ibm.portal.utilities.string.trim(_10d.toLowerCase());var _10e=(url.indexOf("javascript:")==0);ibm.portal.debug.exit("isJavascriptUrl",_10e);return _10e;},isPortalUrl:function(_10f){ibm.portal.debug.entry("utilities.isPortalUrl",[_10f]);var _110=(_10f.indexOf(ibmPortalConfig["portalURI"])>=0);ibm.portal.debug.exit("utilities.isPortalUrl",_110);return _110;},addExternalNode:function(doc,node){var _111=false;try{_111=doc.importNode;}catch(e){}var _112=null;if(_111!=false){_112=doc.importNode(node,true);}else{_112=node;}try{doc.appendChild(_112);}catch(e){}},decodeXML:function(_113){ibm.portal.debug.entry("decodeXML",[_113]);var _114=_113.replace(/&/g,"&");var _115=_114.replace(/&/g,"&");_114=_115.replace(/'/g,"'");_115=_114.replace(/"/g,"\"");_115=_115.replace(/</g,"<");_115=_115.replace(/>/g,">");ibm.portal.debug.exit("decodeXML",[_115]);return _115;},eventHandlerToString:function(_116){var _117=_116.toString();var _118=_117.indexOf("{");var _119=_117.lastIndexOf("}");onclickStr=_117.substring(_118+1,_119);return onclickStr;},_waitingForScript:false,_isWaitingForScript:function(){return com.ibm.portal.utilities._waitingForScript;},stopWaitingForScript:function(){com.ibm.portal.utilities._waitingForScript=false;},waitFor:function(_11a,_11b,_11c,args){var _11d=setInterval(function(){if(_11a()){clearInterval(_11d);if(!args){_11c();}else{_11c(args);}}},_11b);},waitForScript:function(_11e,args){com.ibm.portal.utilities._waitingForScript=true;com.ibm.portal.utilities.waitFor(function(){return (!com.ibm.portal.utilities._isWaitingForScript());},500,_11e,args);}};(function(){var _11f=0,_120=0,mgrs=[],_121={};com.ibm.portal.utilities.DomDataManager=function(_122){this.trackAll=_122;this.dataSet={};this.tracked={};this.trackedProps={};this.trackedConnections={};this.id="DomDataManager"+_120++;mgrs.push(this);_121[this.id]=this;};var _123=["onclick","click","submit","onsubmit"];dojo.extend(com.ibm.portal.utilities.DomDataManager,{getDuid:function(node,set){var d;if(node.nodeType==1){d=node.getAttribute("duid");if(!d){d="duid"+_11f++;node.setAttribute("duid",d);}}else{d=node.duid;if(!d){d=node.duid="duid"+_11f++;}}if(_11f==Number.MAX_VALUE){_11f=0;}return d;},data:function(node,key,_124){if(node){var d,duid;if(arguments.length>2){duid=this.getDuid(node,true);if(this.trackAll){this.track(node);}d=this.dataSet[duid];if(!d){d=this.dataSet[duid]={};}d[key]=_124;node._domMgrId=this.id;return _124;}else{duid=this.getDuid(node);if(duid){d=this.dataSet[duid];if(d){return d[key];}}return null;}}},track:function(node){if(node&&node.nodeType==1){var d=this.getDuid(node,true);this.tracked[d]=node;return d;}return null;},trackProperty:function(node,prop){var duid=this.track(node);if(duid){if(!this.trackedProps[duid]){this.trackedProps[duid]={};}this.trackedProps[duid][prop]=true;}},trackConnection:function(node,conn){var duid=this.track(node);if(duid&&!this.trackedConnections[duid]){this.trackedConnections[duid]=[];}this.trackedConnections[duid].push(conn);},toString:function(){return this.id;},_nodeExists:function(n){while(n){if(n.parentNode==dojo.body()){return true;}n=n.parentNode;}return false;},cleanNode:function(node){if(node&&this.tracked){var i=this.track(node);if(i){for(var p in this.trackedProps[i]){this.tracked[i][p]=null;}for(var x=0;x<_123.length;x++){try{this.tracked[i][_123[x]]=null;}catch(err){}}if(this.trackedConnections[i]){while(this.trackedConnections[i].length>0){dojo.disconnect(this.trackedConnections[i].pop());}}delete this.trackedConnections[i];delete this.trackedProps[i];delete this.dataSet[i];delete this.tracked[i];}}},clean:function(_125){for(var i in this.tracked){if(_125||!this._nodeExists(this.tracked[i])){this.cleanNode(this.tracked[i]);}}},destroy:function(){this.clean(true);delete this.dataSet;delete this.tracked;delete this.trackedProps;delete this.trackedConnections;for(var i=0;i0){mgrs.pop().destroy();}});com.ibm.portal.utilities.domData=function(){var mgr=com.ibm.portal.utilities.domData.getManager(arguments[0]);if(mgr){return mgr.data.apply(mgr,arguments);}};dojo.mixin(com.ibm.portal.utilities.domData,{setCurrent:function(mgr){if(mgr!=null){_128=mgr;}},resetCurrent:function(){_128=_127;},getCurrent:function(){return _128;},getManager:function(node){if(node==document||node==dojo.body()){return _127;}else{if(node==window||typeof node.nodeName!="string"||typeof node.nodeType!="number"){return null;}else{if(node._domMgrId){return _121[node._domMgrId]||_128;}else{return _128;}}}},register:function(mgr,id){_126[id]=mgr;},get:function(id){return _126[id];}});dojo.subscribe("/portal/DOM/StartUpdate",function(id){var mgr=com.ibm.portal.utilities.domData.get(id);if(mgr){com.ibm.portal.utilities.domData.setCurrent(mgr);}});dojo.subscribe("/portal/DOM/StopUpdate",function(id){var mgr=com.ibm.portal.utilities.domData.get(id);if(mgr==com.ibm.portal.utilities.domData.getCurrent()){com.ibm.portal.utilities.domData.resetCurrent();}});})();com.ibm.portal.utilities.string={findNext:function(_129,_12a,from){ibm.portal.debug.entry("string.findNext",[_129,_12a]);var _12b=-1;for(var i=0;i<_12a.length;i++){var _12c=null;if(from){_12c=from+_12a[i].length;}var _12d=_129.indexOf(_12a[i],_12c);if(_12d>-1&&(_12d<_12b||_12b==-1)){_12b=_12d;}}ibm.portal.debug.exit("string.findNext",[_12b]);return _12b;},contains:function(_12e,_12f){ibm.portal.debug.entry("string.contains",[_12e,_12f]);var _130=false;if(_12e!=null&&_12f!=null){_130=(_12e.indexOf(_12f)!=-1);}ibm.portal.debug.exit("string.contains",[_130]);return _130;},strip:function(_131,_132){ibm.portal.debug.entry("string.strip",[_131,_132]);var _133=_131.replace(new RegExp(_132,"g"),"");ibm.portal.debug.exit("string.strip",[_133]);return _133;},properCase:function(_134){if(_134==null||_134.length<1){return "";}ibm.portal.debug.entry("string.properCase",[_134]);var _135=_134.charAt(0).toUpperCase();if(_134.length>1){_135+=_134.substring(1).toLowerCase();}ibm.portal.debug.exit("string.properCase",[_135]);return _135;},trim:function(_136){ibm.portal.debug.entry("string.trim",[_136]);var _137=_136;_137=_137.replace(/^\s+/,"");_137=_137.replace(/\s+$/,"");ibm.portal.debug.exit("string.trim",_137);return _137;}};dojo.declare("com.ibm.portal.utilities.HttpUrl",null,{constructor:function(_138){this.scheme=window.location.protocol+"//";this.server=this._extractServer(_138);this.port=this._extractPort(_138);this.path=this._extractPath(_138);this.query=this._extractQuery(_138);this.anchor="";},addParameter:function(name,_139){this.query+="&"+name+"="+_139;},toString:function(){var str="";if(this.server!=""){str+=this.scheme+this.server;}if(this.port!=""){str+=":"+this.port;}str+="/"+this.path;if(this.query!=""){str+="?"+this.query;}if(this.anchor!=""){str+="#"+this.anchor;}return str;},_extractServer:function(_13a){var _13b=_13a.indexOf(this.scheme);var _13c="";if(_13b==0){var _13d=_13a.indexOf("/",_13b+this.scheme.length);var _13e=_13a.substring(_13b+this.scheme.length,_13d);_13c=_13e.split(":")[0];}return _13c;},_extractPort:function(_13f){var _140=_13f.indexOf(this.server);var _141="";if(_140>=0){var _142=_13f.indexOf("/",_140);var _143=_13f.substring(_140,_142);var _144=_143.split(":");if(_144.length>1){_141=_144[1];}}return _141;},_extractPath:function(_145){var _146=_145.indexOf(this.server);var _147="";if(_146>=0){var _148=_145.indexOf("/",_146);var _149=_145.indexOf("?");var _14a=_145.lastIndexOf("#");if(_149>=0){_147=_145.substring(_148+1,_149);}else{if(_14a>=0){_147=_145.substring(_148+1,_14a);}else{_147=_145.substring(_148+1);}}}return _147;},_extractQuery:function(_14b){var _14c="";var _14d=_14b.split("?");if(_14d.length>1){_14c=_14d[1].split("#")[0];}return _14c;},_extractAnchor:function(_14e){var _14f="";var _150=_14e.split("#");if(_150.length>1){_14f=_150[_150.length-1];}return _14f;}});}if(!dojo._hasResource["com.ibm.portal.debug"]){dojo._hasResource["com.ibm.portal.debug"]=true;dojo.provide("com.ibm.portal.debug");dojo.provide("ibm.portal.debug");ibm.portal.debug.setTrace=function(_151){ibm.portal.debug._traceString=_151;};ibm.portal.debug._isDebugEnabled=function(){var _152=false;if(typeof (ibmPortalConfig)!="undefined"){if(ibmPortalConfig&&ibmPortalConfig.isDebug){_152=true;}}return _152;};ibm.portal.debug.text=function(str,_153){if(typeof (ibmPortalConfig)!="undefined"){if(ibmPortalConfig&&ibmPortalConfig.isDebug){var _154=ibm.portal.debug._traceString;if(_154){if(_153){if(_153.indexOf(_154)>=0){window.console.log(str);}}}else{window.console.log(str);}}}};ibm.portal.debug.entry=function(_155,args){if(ibm.portal.debug._isDebugEnabled()){var _156=_155+" --> entry; { ";if(args&&args.length>0){for(arg in args){_156=_156+args[arg]+" ";}}_156=_156+" } ";ibm.portal.debug.text(_156,_155);}};ibm.portal.debug.exit=function(_157,_158){if(ibm.portal.debug._isDebugEnabled()){var _159=_157+" --> exit;";if(typeof (_158)!="undefined"){_159=_159+" { "+_158+" } ";}ibm.portal.debug.text(_159,_157);}};ibm.portal.debug.escapeXmlForHTMLDisplay=function(_15a){_15a=_15a.replace(//g,">");return _15a;};}if(!dojo._hasResource["com.ibm.ajax.auth"]){dojo._hasResource["com.ibm.ajax.auth"]=true;dojo.provide("com.ibm.ajax.auth");com.ibm.ajax.auth={prepareSecure:function(args,_15b,_15c){args._handle=args.handle;args.handle=dojo.partial(this.testAuthenticationHandler,this,_15b,_15c);return args;},setAuthenticationHandler:function(_15d){this.authenticationHandler=_15d;},setTestAuthenticationHandler:function(_15e){this.testAuthenticationHandler=_15e;},setDefaultAuthenticationTests:function(_15f,_160,_161){this.checkFromCaller=_15f;this.checkByContentType=_160;this.checkByStatusCode=_161;},addAuthenticationCheck:function(_162){if(_162){this.authenticationChecks.push(_162);}},isAuthenticationRequired:function(_163,_164){var _165=_164.args.handleAs;var _166=false;if(!_163||dojo.indexOf(["cancel","timeout"],_163.dojoType)==-1){if(this.checkByContentType&&dojo.indexOf(["xml","json","json-comment-optional","text"],_165)!=-1&&_164.xhr&&/^text\/html/.exec(_164.xhr.getResponseHeader("Content-Type"))&&_164.xhr.status>=200&&_164.xhr.status<300){ibm.portal.debug.text("auth::isAuthenticationRequired DEBUG content type does not match request, assume logged out");return true;}else{if(this.checkByStatusCode&&dojo.indexOf(["xml","json","json-comment-optional","text"],_165)!=-1&&_164.xhr&&_164.xhr.status==302){ibm.portal.debug.text("auth::isAuthenticationRequired DEBUG redirect received, assume login request");return true;}else{if(this.checkByStatusCode&&_164.xhr&&(_164.xhr.status==401||_164.xhr.status==0)&&_164.xhr.getResponseHeader("WWW-Authenticate")&&_164.xhr.getResponseHeader("WWW-Authenticate").indexOf("IBMXHR")!=-1){ibm.portal.debug.text("auth::isAuthenticationRequired DEBUG Portal 401 received, assume login required");return true;}}}}if(!_166){for(var i=0;i0){var _16f=args[i].indexOf("=");if(_16f==-1){var key=decodeURIComponent(args[i]);var _170=_16e[key];if(dojo.isArray(_170)){_170.push("");}else{if(_170){_16e[key]=[_170,""];}else{_16e[key]="";}}}else{if(_16f>0){var key=decodeURIComponent(args[i].substring(0,_16f));var _171=decodeURIComponent(args[i].substring(_16f+1));var _170=_16e[key];if(dojo.isArray(_170)){_170.push(_171);}else{if(_170){_16e[key]=[_170,_171];}else{_16e[key]=_171;}}}}}}return _16e;},checkFromCaller:true,checkByContentType:true,checkByStatusCode:true,authenticationChecks:[],authenticationHandler:function(){ibm.portal.debug.text("auth::authenticationHandler DEBUG authentication was required");}};} /** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2009, 2010, 2011 - All Rights reserved. **/ if(!dojo._hasResource["com.ibm.portal.EventBroker"]){dojo._hasResource["com.ibm.portal.EventBroker"]=true;dojo.provide("com.ibm.portal.EventBroker");dojo.require("com.ibm.portal.debug");dojo.declare("com.ibm.portal.Event",null,{constructor:function(_1){this.eventName=_1;this._listeners=new Array();},fire:function(_2){ibm.portal.debug.text("Firing event: "+this.eventName+" with parameters: ");dojo.publish(this.eventName,[_2]);},register:function(_3,_4){if(!_4){return dojo.subscribe(this.eventName,null,_3);}else{return dojo.subscribe(this.eventName,_3,_4);}},unregister:function(_5){dojo.unsubscribe(_5);},cancel:function(_6){dojo.publish(this.id+"/cancel");}});dojo.declare("com.ibm.portal.EventBroker",null,{startPage:new com.ibm.portal.Event("portal/StartPage"),endPage:new com.ibm.portal.Event("portal/EndPage"),startFragment:new com.ibm.portal.Event("portal/StartFragment"),endFragment:new com.ibm.portal.Event("portal/EndFragment"),fragmentUpdated:new com.ibm.portal.Event("portal/FragmentUpdated"),startRequest:new com.ibm.portal.Event("portal/StartRequest"),endRequest:new com.ibm.portal.Event("portal/EndRequest"),cancelAll:new com.ibm.portal.Event("portal/CancelAll"),cancelFragmentUpdate:new com.ibm.portal.Event("portal/CancelFragmentUpdate"),stateChanged:new com.ibm.portal.Event("portal/StateChanged"),startScriptHandling:new com.ibm.portal.Event("portal/StartScriptHandling"),endScriptHandling:new com.ibm.portal.Event("portal/EndScriptHandling"),startScriptExecution:new com.ibm.portal.Event("portal/StartScriptExecution"),endScriptExecution:new com.ibm.portal.Event("portal/EndScriptExecution"),javascriptCleanup:new com.ibm.portal.Event("portal/JavascriptCleanup"),beforeSnapShot:new com.ibm.portal.Event("portal/BeforeSnapShot"),afterSnapShot:new com.ibm.portal.Event("portal/AfterSnapShot"),restorePointUpdated:new com.ibm.portal.Event("portal/RestorePointUpdated"),clearRestorePoint:new com.ibm.portal.Event("portal/ClearRestorePoint"),stopEvent:new com.ibm.portal.Event("portal/StopEvent"),redirect:new com.ibm.portal.Event("portal/Redirect")});com.ibm.portal.EVENT_BROKER=new com.ibm.portal.EventBroker();}if(!dojo._hasResource["com.ibm.portal.services.PortalRestServiceRequestQueue"]){dojo._hasResource["com.ibm.portal.services.PortalRestServiceRequestQueue"]=true;dojo.provide("com.ibm.portal.services.PortalRestServiceRequestQueue");dojo.declare("com.ibm.portal.services.PortalRestServiceRequestQueue",null,{maxNumberOfActiveRequests:4,constructor:function(){var _7="PortalRestServiceRequestQueue.constructor";ibm.portal.debug.entry(_7);this._activeRequests=0;this._requestQueue=[];ibm.portal.debug.exit(_7);},add:function(_8){var _9="PortalRestServiceRequestQueue.add";ibm.portal.debug.entry(_9,[_8]);this._requestQueue.push(_8);var me=this;setTimeout(function(){me._executeNextRequest();},5);ibm.portal.debug.exit(_9);},_executeNextRequest:function(){var _a="PortalRestServiceRequestQueue._executeNextRequest";ibm.portal.debug.entry(_a);ibm.portal.debug.text(this._requestQueue.length+" request(s) in the queue. "+this._activeRequests+" active request(s) currently.",_a);if(this._requestQueue.length>0&&this._activeRequests 

"+_1f.markup;ibm.portal.debug.exit("html.createTemporaryMarkupDiv",[div]);return {node:div,objects:_1f.objects};},replaceTemporaryMarkup:function(_20,_21){var c=_20.node.childNodes;if(c&&_20.node!=_21){while(c.length>0){_21.appendChild(c[0]);}}if(dojo.isIE||window.ActiveXObject!==undefined){com.ibm.portal.utilities.html.replaceObjectElementsInMarkup(_20.objects);com.ibm.portal.utilities.html.replaceFormMarkers(_21);}},extractObjectElementsFromString:function(_22){var _23={};var _24=//gi;var _26=_22;var _27=null;try{_27=_24.exec(_26);if(_27&&_27.index>-1){var _28=_27.index;var buf;var end;var _29;var id;while(_28>-1){buf=_26.substring(0,_28);end=_26.indexOf(">",_28);if(_26.charAt(end-1)=="/"){_24.lastIndex=end;_27=_24.exec(_26);if(_27){_28=_27.index;continue;}else{break;}}_25.lastIndex=_28;_27=_25.exec(_26);if(_27){end=_27.index;}else{break;}_29=_26.substring(_28,end+9);id=dojo.dnd.getUniqueId();_26=buf+"
"+_26.substring(end+9);_23[id]=_29;_24.lastIndex=0;_27=_24.exec(_26);if(_27){_28=_27.index;}else{break;}}}_22=_26;}catch(e){_23={};}return {markup:_22,objects:_23};},replaceObjectElementsInMarkup:function(_2a){for(var id in _2a){var _2b=dojo.byId(id);if(_2b){_2b.outerHTML=_2a[id];}}},removeNodesOnCondition:function(_2c,_2d){if(!_2d){_2d=function(){return false;};}if(_2c&&_2c.childNodes){for(var i=0;i<_2c.childNodes.length;i++){if(_2d(_2c.childNodes[i])){var _2e=_2c.childNodes[i];_2c.removeChild(_2e);delete _2e;i--;}else{this.removeNodesOnCondition(_2c.childNodes[i],_2d);}}}},getElementsByTagNames:function(_2f){ibm.portal.debug.entry("html.getElementsByTagNames",[_2f]);var _30=new Array();for(var i=1;i]*)>/i,_50=/([\w-]+)=/i;var _51={formNodes:[],getAttributeNames:function(_52){var ret=[];if(_52){var o=_52.outerHTML;var m=_4f.exec(o);if(m&&m.length>1){var _53=m[1];m=_50.exec(_53);while(m&&m.index>-1){ret.push(m[1]);_53=_53.substr(m.index+m[0].length);m=_50.exec(_53);}}}return ret;},replaceForms:function(_54){return _54.replace(/
/ig,"");},replaceFormMarkers:function(_55){dojo.query("[data-csa-xform]",_55).forEach(function(_56){var _57=_51.getNode(_56.getAttribute("name"));_56.parentNode.insertBefore(_57,_56);_51.moveContents(_56,_57);_56.innerHTML="";_51.copyAttributes(_56,_57);dojo.destroy(_56);_56=null;});},getNode:function(_58){var _59;if(_51.formNodes.length>0){if(_58){_59=_51.checkFormBank(_58);if(_59){ibm.portal.debug.text("getNode: returning form with name from bank: "+_59.outerHTML);return _59;}else{ibm.portal.debug.text("getNode: bank did not have a form with name");return _51.createForm(_58);}}else{_59=_51.checkFormBank(null);if(_59){ibm.portal.debug.text("getNode: no name specified, returning form from bank: "+_59.outerHTML);return _59;}else{ibm.portal.debug.text("getNode: no name specified, no blank form in bank");return _51.createForm(null);}}}else{ibm.portal.debug.text("getNode: no forms in bank");return _51.createForm(_58);}},checkFormBank:function(_5a){var i;var _5b;var j=_51.formNodes.length;if(j>0){for(i=0;i");}else{ibm.portal.debug.text("createForm: creating blank form");_5d=document.createElement("form");}_5d._attachEvent=_5d.attachEvent;_5d._listeners=[];_5d.attachEvent=function(nom,fn){this._listeners.push(fn);return this._attachEvent(nom,fn);};return _5d;},returnNode:function(_5e){if(_5e){if(_5e._listeners){while(_5e._listeners.length>0){_5e.detachEvent(_5e._listeners.shift());}}var _5f=com.ibm.portal.utilities.domData.getManager(_5e);if(_5f){_5f.cleanNode(_5e);}com.ibm.portal.utilities.html.safeClean(_5e);_51.clearAttributes(_5e);if(_5e.parentNode){_5e.parentNode.removeChild(_5e);}_51.formNodes.push(_5e);}},clearAttributes:function(_60){if(_60){var _61=_51.getAttributeNames(_60),n;if(_61){for(var j=0;j<_61.length;j++){n=_61[j];if(n!="duid"&&n.toLowerCase()!="name"){_60.removeAttribute(n);}}}}},copyAttributes:function(_62,_63){if(_62){var _64=_51.getAttributeNames(_62),n,_65;if(_64){for(var j=0;j<_64.length;j++){n=_64[j];if(n=="data-csa-xform"){continue;}_65=_62.getAttributeNode(n);if(_65){ibm.portal.debug.text("copyAttributes is setting both enctype and encoding to: "+_65.value);if(n=="enctype"||n=="encoding"){_63.setAttribute("enctype",_65.value);_63.setAttribute("encoding",_65.value);}else{ibm.portal.debug.text("copyAttributes is setting: "+n+" to: "+_65.value);_63.setAttribute(n.toLowerCase(),_65.value);}}}}_63.style.cssText=_62.style.cssText;}},moveContents:function(_66,_67){var c=_66.childNodes;if(c&&_66!=_67){while(c.length>0){_67.appendChild(c[0]);}}},cleanForms:function(_68){if(_68){var _69=dojo.query("form",_68).forEach(function(_6a){_51.returnNode(_6a);});}}};dojo.mixin(com.ibm.portal.utilities.html,{replaceForms:_51.replaceForms,replaceFormMarkers:_51.replaceFormMarkers,cleanForms:_51.cleanForms});dojo.addOnWindowUnload(function(){var _6b;while(_51.formNodes.length>0){_6b=_51.formNodes.shift();if(_6b){var _6c=com.ibm.portal.utilities.domData.getManager(_6b);if(_6c){_6c.cleanNode(_6b);}_6b._attachEvent=null;_6b.attachEvent=null;_6b._listeners=null;}}});})();}if(!dojo._hasResource["com.ibm.portal.services.PortalRestServiceRequest"]){dojo._hasResource["com.ibm.portal.services.PortalRestServiceRequest"]=true;dojo.provide("com.ibm.portal.services.PortalRestServiceRequest");dojo.require("com.ibm.ajax.auth");dojo.require("com.ibm.portal.EventBroker");dojo.require("dojo.dnd.common");dojo.require("com.ibm.portal.services.PortalRestServiceRequestQueue");dojo.declare("com.ibm.portal.services.ContentHandlerURL",null,{constructor:function(uri,_6d,_6e,_6f){ibm.portal.debug.entry("ContentHandlerURL.constructor",[uri,_6d,_6e,_6f]);if(uri==null){return null;}if(!_6d){_6d=2;}var _70=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();var _71=_70.getLocale();if(_71){if(_6f){_6f+="&locale="+_71;}else{_6f="&locale="+_71;}}this.url="";if(uri.charAt(0)=="?"){this.url=this._fromQueryString(uri,_6f);}else{if(uri.charAt(0)=="/"){this.url=uri;if(this.url.indexOf("rep=compact")<0&&this.url.indexOf("rep=full")<0){if(uri.indexOf("?")!=-1){this.url=this.url+"&rep=compact";}else{this.url=this.url+"?rep=compact";}}if(_6f){this.url=this.url+_6f;}}else{this.url=this._fromURI(uri,_6d,"download",_6f);}}ibm.portal.debug.exit("ContentHandlerURL.constructor");},_fromQueryString:function(_72,_73){ibm.portal.debug.entry("fromQueryString",[_72]);var str=ibmPortalConfig["contentHandlerURI"]+_72;str=str.replace(/&/g,"&");if(_73){str=str+_73;}if(str.indexOf("rep=compact")<0&&str.indexOf("rep=full")<0){str=str+"&rep=compact";}ibm.portal.debug.exit("fromQueryString",[str]);return str;},_fromURI:function(uri,_74,_75,_76){ibm.portal.debug.entry("ContentHandlerURL._fromURI",[uri,_74,_75,_76]);uri=com.ibm.portal.utilities.encodeURI(uri);var _77="?uri="+uri;if(_74){_77=_77+"&levels="+encodeURIComponent(_74);}if(_75){_77=_77+"&mode="+encodeURIComponent(_75);}if(_76){_77=_77+_76;}if(_77.indexOf("rep=compact")<0&&_77.indexOf("rep=full")<0){_77=_77+"&rep=compact";}return this._fromQueryString(_77);},getURI:function(){ibm.portal.debug.entry("ContentHandlerURL.getURI");return com.ibm.portal.utilities.decodeURI(this._extractParamValue("uri"));},getLevels:function(){return this._extractParamValue("levels");},getVerb:function(){return this._extractParamValue("verb");},_extractParamValue:function(_78){ibm.portal.debug.entry("ContentHandlerURL._extractParamValue",[_78]);var _79=this.url.indexOf(_78);var _7a=this.url.indexOf("&",_79);var _7b=this.url.slice(_79+_78.length+1,_7a);ibm.portal.debug.exit("ContentHandlerURL._extractParamValue",[_7b]);return _7b;}});dojo.require("com.ibm.portal.utilities.html");dojo.declare("com.ibm.portal.services.PortalRestServiceForm",null,{method:"GET",isMultipart:false,encoding:"application/x-www-form-urlencoded",DomId:null,constructor:function(_7c){if(_7c.getAttributeNode("method")){this.method=_7c.getAttributeNode("method").value;}if(_7c.getAttributeNode("encType")){this.encoding=_7c.getAttributeNode("encType").value;}if(_7c.getAttributeNode("id")){this.DomId=_7c.getAttributeNode("id").value;}else{DomId=_7c;}this.isMultipart=(this.encoding=="multipart/form-data");},getDOMElement:function(){return dojo.byId(this.DomId);},submit:function(){this.getDOMElement().submit();},toQuery:function(){return com.ibm.portal.utilities.html.convertFormToQuery(this.getDOMElement());}});com.ibm.portal.services.REQUEST_QUEUE=new com.ibm.portal.services.PortalRestServiceRequestQueue();dojo.declare("com.ibm.portal.services.PortalRestServiceRequest",null,{constructor:function(_7d,_7e,_7f,_80){ibm.portal.debug.entry("PortalRestServiceRequest.constructor",[_7d,_7e,_7f,_80]);this._feedURI=_7d.url;this._textOnly=_7f;this._sync=_80;this._form=_7e;this._customResponseValidator=null;this._onauthenticated=null;if(!this._sync){this._sync=false;}ibm.portal.debug.exit("PortalRestServiceRequest.constructor");},cancelled:false,_deferred:undefined,setAuthenticationValidator:function(_81){this._customResponseValidator=_81;},setOnAuthenticatedHandler:function(_82){this._onauthenticated=_82;},create:function(_83,_84,_85){if(!this.cancelled){this._doXmlHttpRequest("POST",_83,_84,_85);}},read:function(_86,_87){ibm.portal.debug.entry("PortalRestServiceRequest.read",[_86,_87]);if(!this.cancelled){if(!this._sync){ibm.portal.debug.text("Queueing request!");var q=com.ibm.portal.services.REQUEST_QUEUE;var me=this;q.add({execute:function(_88){if(!me.cancelled){com.ibm.portal.EVENT_BROKER.startRequest.fire({uri:me._feedURI});var _89=function(_8a,_8b,_8c,_8d){_86(_8a,_8b,_8c,_8d);if(_88){_88();}};if(me._textOnly){me._retrieveRawFeed(_89,_87);}else{me._retrieve(_89,_87);}}else{if(_88){_88();}}}});}else{com.ibm.portal.EVENT_BROKER.startRequest.fire({uri:this._feedURI});if(this._textOnly){this._retrieveRawFeed(_86,_87);}else{this._retrieve(_86,_87);}}}ibm.portal.debug.exit("PortalRestServiceRequest.read");},update:function(_8e,_8f,_90){if(!this.cancelled){this._doXmlHttpRequest("Put",_8e,_8f,_90);}},remove:function(_91,_92){if(!this.cancelled){this._doXmlHttpRequest("Delete",null,_91,_92);}},cancel:function(){this.cancelled=true;if(this._deferred!==undefined){this._deferred.cancel();}},_retrieveRawFeed:function(_93,_94){ibm.portal.debug.entry("_retrieveRawFeed",[_93,_94]);var me=this;dojo.xhrGet({url:this._feedURI,load:function(_95,_96,evt){_93(_96,_94);com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});},sync:this._sync});ibm.portal.debug.exit("_retrieveRawFeed");},_retrieve:function(_97,_98,_99,_9a){ibm.portal.debug.entry("_retrieve",[_97]);if(this._form&&this._form.isMultipart){this._doIframeRequest(_97,_98);}else{this._doXmlHttpRequest("Get",null,_97,_98);}ibm.portal.debug.exit("PortalRestServiceRequest._retrieve");},_doIframeRequest:function(_9b,_9c){ibm.portal.debug.entry("PortalRestServiceRequest._doIframeRequest",[_9b]);var _9d=null;var _9e=dojo.dnd.getUniqueId();if(dojo.isIE||window.ActiveXObject!==undefined){_9d=document.createElement("");com.ibm.portal.aggregation.forms.PORTLET_FORM_HANDLER._callbackfns[_9e]={fn:_9b,args:_9c};var url=new com.ibm.portal.utilities.HttpUrl(this._feedURI);url.addParameter("ibm.web2.contentType","text/plain");this._form.getDOMElement().setAttribute("action",url.toString());}else{ibm.portal.debug.text("Creating the iframe... name is: "+_9e+"; url is: "+this._feedURI);_9d=document.createElement("IFRAME");_9d.setAttribute("name",_9e);_9d.setAttribute("id",_9e);var me=this;_9d.onload=function(){var xml=window.frames[_9e].document;_9b("load",xml,null,_9c);com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});};this._form.getDOMElement().setAttribute("action",this._feedURI);}_9d.style.visibility="hidden";_9d.style.height="1px";_9d.style.width="1px";document.body.appendChild(_9d);if(window.frames[_9e].name!=_9e){window.frames[_9e].name=_9e;}ibm.portal.debug.text("Setting the iframe target attribute to: "+_9e);this._form.getDOMElement().setAttribute("target",_9e);this._form.submit();ibm.portal.debug.exit("PortalRestServiceRequest._doIframeRequest");},isValidRedirect:function(_9f,_a0){ibm.portal.debug.text("URLS request: "+_9f+" redirect: "+_a0);var _a1=_9f.indexOf("http");var _a2=_a0.indexOf("http");var _a3=false;if(_a2==0){var _a4=_9f.indexOf("//");var _a5=_a0.indexOf("//");if((_a4>0)&&(_a5>0)){var _a6=_9f.indexOf(":",_a4);var _a7=_a0.indexOf(":",_a5);if(_a6<0){_a6=_9f.indexOf("/",_a4+2);}if(_a7<0){_a7=_a0.indexOf("/",_a5+2);}var _a8=_9f.substring(_a4+2,_a6);ibm.portal.debug.text("request Host is: "+_a8);var _a9=_a0.substring(_a5+2,_a7);ibm.portal.debug.text("redirect Host is: "+_a9);if(_a8.toLowerCase()==_a9.toLowerCase()){_a3=true;}}}else{_a3=true;ibm.portal.debug.text("PortalRestServiceRequest.isValid returning true - relative url");}ibm.portal.debug.text("PortalRestServiceRequest._isValidRedirect returning:"+_a3);return _a3;},_doXmlHttpRequest:function(_aa,_ab,_ac,_ad){ibm.portal.debug.entry("PortalRestServiceRequest._doXmlHttpRequest",[_aa,_ab,_ac,_ad]);ibm.portal.debug.text("Attempting to retrieve: "+this._feedURI+" using method: "+_aa+"; synchronously? "+this._sync);var me=this;var _ae={url:this._feedURI,content:{},headers:{"X-IBM-XHR":"true"},handle:function(_af,_b0){ibm.portal.debug.entry("PortalRestServiceRequest.handle",[_af,_b0]);if(_af instanceof Error&&_af.dojoType==="cancel"){_ac("cancel",_af,null,_ad);return;}var xhr=_b0.xhr;ibm.portal.debug.text("XHR object: "+xhr);var _b1=com.ibm.portal.services.PortalRestServiceConfig;var _b2=xhr.getResponseHeader("X-Request-Digest");if(_b2){_b1.digest=_b2;}if(xhr.status==200){var _b3=_af;var loc=xhr.getResponseHeader("IBM-Web2-Location");if((loc)&&me.isValidRedirect(top.location.href,loc)){if(loc.indexOf(ibmPortalConfig["portalProtectedURI"])>=0&&me._feedURI.indexOf(ibmPortalConfig["portalPublicURI"])>=0){top.location.href=loc;return;}}var _b4=xhr.getResponseHeader("Content-Type");ibm.portal.debug.text("content-type is: "+_b4);if(/^text\/html/.exec(_b4)&&loc&&(loc.indexOf(ibmPortalConfig["portalProtectedURI"])>-1||loc.indexOf(ibmPortalConfig["portalPublicURI"])>-1)&&me.isValidRedirect(top.location.href,loc)){ibm.portal.debug.text("content-type is text .. follow IBM-Web2-Location");top.location.href=loc;return;}var _b5=com.ibm.ajax.auth;var _b6=false;if(me._customResponseValidator){_b6=me._customResponseValidator(_af,_b0);}if(!_b6){_b6=_b5.isAuthenticationRequired(_af,_b0);}if(_b6){_b5.authenticationHandler(_af,_b0,me._onauthenticated);return;}ibm.portal.debug.text("Read feed: "+me._feedURI);if(dojo.isIE||window.ActiveXObject!==undefined){var doc=com.ibm.portal.xslt.loadXmlString(_b3);_ac("load",doc,xhr,_ad);}else{_ac("load",_b3,xhr,_ad);}}else{if(dojo.isFF&&_b0.xhr.status==0){return;}else{if(xhr.status==401||xhr.status==0){ibm.portal.debug.text("Basic auth 401 found, trigger reload");com.ibm.ajax.auth.authenticationHandler();return;}else{_ac("error",_af,xhr,_ad);}}}com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});ibm.portal.debug.exit("PortalRestServiceRequest.handle");},sync:this._sync,handleAs:"xml"};if(this._form){_ae.content=dojo.queryToObject(this._form.toQuery());_aa=this._form.method;}_aa=_aa.toUpperCase();if(_aa!="GET"&&_aa!="POST"){if(ibmPortalConfig&&ibmPortalConfig.xMethodOverride){_ae.headers["X-Method-Override"]=_aa.toUpperCase();_aa="Post";}}if(_aa=="PUT"&&_ab){_ae.putData=_ab;}else{if(_aa=="POST"&&_ab){_ae.postData=_ab;}}if(dojo.isIE||window.ActiveXObject!==undefined){_ae.content["ibm.web2.contentType"]="text/xml";_ae.handleAs="text";}var _b7=com.ibm.portal.services.PortalRestServiceConfig;if(_b7.timeout){_ae.timeout=_b7.timeout;}if(_b7.digest){_ae.content["digest"]=_b7.digest;}_aa=com.ibm.portal.utilities.string.properCase(_aa);var _b8=dojo["xhr"+_aa];if(_b8){this._deferred=_b8(_ae);}else{throw new Error("Invalid request method attempted: "+_aa);}ibm.portal.debug.exit("PortalRestServiceRequest._doXmlHttpRequest");},toString:function(){return this._feedURI;}});com.ibm.portal.services.PortalRestServiceConfig={timeout:null,digest:null};(function(){var _b9=false;com.ibm.ajax.auth.setAuthenticationHandler(function(){if(_b9){return;}if(typeof (document.isCSA)=="undefined"){top.location.reload();}else{_b9=true;ibm.portal.debug.entry("DefaultAuthenticationHandler");ibm.portal.debug.text("Illegal response content-type detected!");ibm.portal.debug.text("Parameterized redirect URL is: "+ibmPortalConfig["contentModelBlankURL"]);var _ba=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();var _bb=ibmPortalConfig["contentModelBlankURL"].replace("-----oid-----",_ba.getPageSelection());ibm.portal.debug.text("fullPageRefreshURL is currently: "+_bb);if(dojo.cookie("WASReqURL")!=null){var _bc=_ba.createLinkToCurrentState();var _bd="WASReqURL="+_bc+"; path=/";document.cookie=_bd;}ibm.portal.debug.text("Redirecting to: "+_bb);com.ibm.portal.EVENT_BROKER.redirect.fire({url:_bb});_b9=false;top.location.href=_bb;ibm.portal.debug.exit("DefaultAuthenticationHandler");}});})();}if(!dojo._hasResource["com.ibm.portal.services.PortletFragmentService"]){dojo._hasResource["com.ibm.portal.services.PortletFragmentService"]=true;dojo.provide("com.ibm.portal.services.PortletFragmentService");dojo.require("dojox.data.dom");dojo.require("com.ibm.portal.services.PortalRestServiceRequest");dojo.require("com.ibm.portal.utilities");dojo.require("com.ibm.portal.debug");dojo.require("com.ibm.portal.EventBroker");dojo.declare("com.ibm.portal.services.PortletFragmentURL",null,{constructor:function(uri){if(uri.indexOf("?uri=")==0){this.url=ibmPortalConfig["portalURI"]+uri;this.url=this.url.replace(/&/g,"&");this.url=this.url.replace(/lm:/,"pm:");}else{if(uri.indexOf("lm:")==0){this.url=ibmPortalConfig["portalURI"]+"?uri=fragment:"+uri;this.url=this.url.replace(/lm:/,"pm:");}else{this.url=uri;}}}});dojo.declare("com.ibm.portal.services.PortletInfo",null,{constructor:function(wId,pId,_be,_bf,_c0,_c1,_c2,_c3,_c4,_c5,_c6,_c7){ibm.portal.debug.entry("PortletInfo.constructor",[wId,pId,_be,_bf,_c0,_c1,_c3,_c7]);this.windowId=wId;this.portletId=pId;this.uri="fragment:pm:oid:"+wId+"@oid:"+pId;this.markup=_be;this.portletModes=_bf;this.windowStates=_c0;this.dependentPortlets=_c1;this.otherPortlets=_c2;this.stateVaryExpressions=_c4;this.updatedState=_c3;this.currentMode=_c5;this.currentWindowState=_c6;this.portletTitle=_c7;ibm.portal.debug.exit("PortletInfo.constructor");}});dojo.declare("com.ibm.portal.services.PortletFragmentService",null,{namespaces:{"xsl":"http://www.w3.org/1999/XSL/Transform","thr":"http://purl.org/syndication/thread/1.0","atom":"http://www.w3.org/2005/Atom","xhtml":"http://www.w3.org/1999/xhtml","model":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements","base":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/ibm-portal-composite-base","portal":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model","xsi":"http://www.w3.org/2001/XMLSchema-instance","state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state","state-vary":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state-vary"},activeRequests:{},constructor:function(){this.staticContext=com.ibm.portal.services.PortletFragmentService.prototype;},_flagPortletUrl:function(url,_c8){ibm.portal.debug.entry("PortletFragmentService._flagPortletUrl",[url]);var _c9=url.indexOf("uri=fragment:pm:oid:");var _ca=new com.ibm.portal.utilities.HttpUrl(url);_ca.addParameter("ibm.web2.keepRenderMode","false");if(_c9<0){_c8=_c8.replace(/lm:/g,"fragment:pm:");_ca.addParameter("uri",_c8);}ibm.portal.debug.exit("PortletFragmentService._flagPortletUrl",[_ca.toString()]);return _ca.toString();},getPortletInfo:function(_cb,_cc,_cd,_ce,_cf){ibm.portal.debug.entry("PortletFragmentService.getPortletInfo",[_cb,_cc,_cd,_ce,_cf]);if(_cc=="#"||_cc==window.location.href+"#"){ibm.portal.debug.text("Illegal portlet url provided: "+_cc);ibm.portal.debug.text("Aborting request.");return false;}if(com.ibm.portal.utilities.isJavascriptUrl(_cc)){return eval(_cc);}var _d0=_cc;if(_d0.indexOf(top.location.href)==0){_d0=_d0.substring(top.location.href.length);while(_d0.length>0&&_d0.charAt(0)=="/"){_d0=_d0.substring(1);}}if(_d0.indexOf("?")==0){var _d1=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();_cc=_d1.resolveRelativePortletURL(_d0);}if(com.ibm.portal.utilities.isExternalUrl(_cc)){self.location.href=_cc;}else{var url={url:this._flagPortletUrl(_cc,_cb)};var _d2=ibmPortalConfig.enforceOneActivePortletRequest;if(_d2){var _d3=this.staticContext.activeRequests;if(_d3[_cb]!==undefined&&_d3[_cb]!==null){_d3[_cb].cancel();com.ibm.portal.EVENT_BROKER.cancelFragmentUpdate.fire({id:_cb});_d3[_cb]=null;}}var _d4=new com.ibm.portal.services.PortalRestServiceRequest(url,_ce);if(!_cf){com.ibm.portal.EVENT_BROKER.startFragment.fire({id:_cb});}if(_d2){_d3[_cb]=_d4;}var me=this;_d4.read(function(_d5,_d6,xhr){if(_d2){_d3[_cb]=null;}if(xhr.status==404){var _d7=false;for(var i=0;i0){for(var i=0;i0){_e4=dojox.data.dom.textContent(_e3[0]);}ibm.portal.debug.exit("PortletFragmentService.readMarkup",[_e4]);return _e4;},readPortletModes:function(_e5){ibm.portal.debug.entry("PortletFragmentService.readPortletModes",[_e5]);var _e6="/atom:feed/atom:entry/atom:link[@portal:rel='portlet-mode']";var _e7=com.ibm.portal.xpath.evaluateXPath(_e6,_e5,this.namespaces);var _e8=new Array();if(_e7!=null&&_e7.length>0){var _e9=_e7.length;for(var i=0;i<_e9;i++){_e8.push({"link":_e7[i].getAttribute("href"),"mode":_e7[i].getAttribute("title")});}}ibm.portal.debug.exit("PortletFragmentService.readPortletModes",[_e8]);return _e8;},readWindowStates:function(_ea){ibm.portal.debug.entry("PortletFragmentService.readWindowStates",[_ea]);var _eb="/atom:feed/atom:entry/atom:link[@portal:rel='window-state']";var _ec=com.ibm.portal.xpath.evaluateXPath(_eb,_ea,this.namespaces);var _ed=new Array();if(_ec!=null&&_ec.length>0){var _ee=_ec.length;for(var i=0;i<_ee;i++){_ed.push({"link":_ec[i].getAttribute("href"),"mode":_ec[i].getAttribute("title")});}}ibm.portal.debug.exit("PortletFragmentService.readWindowStates",[_ed]);return _ed;},readDependentPortlets:function(_ef){ibm.portal.debug.entry("PortletFragmentService.readDependentPortlets",[_ef]);var _f0="/atom:feed/atom:link[@portal:rel='dependent']";var _f1=com.ibm.portal.xpath.evaluateXPath(_f0,_ef,this.namespaces);var _f2=new Array();if(_f1!=null&&_f1.length>0){var _f3=_f1.length;for(var i=0;i<_f3;i++){_f2.push({"link":_f1[i].getAttribute("href"),"portlet":_f1[i].getAttribute("title"),"uri":_f1[i].getAttribute("portal:uri")?_f1[i].getAttribute("portal:uri"):_f1[i].getAttribute("uri")});}}ibm.portal.debug.exit("PortletFragmentService.readDependentPortlets",[_f2]);return _f2;},readOtherPortlets:function(_f4){ibm.portal.debug.entry("PortletFragmentService.readOtherPortlets",[_f4]);var _f5="/atom:feed/atom:link[@portal:rel='other']";var _f6=com.ibm.portal.xpath.evaluateXPath(_f5,_f4,this.namespaces);var _f7=new Array();if(_f6!=null&&_f6.length>0){var _f8=_f6.length;for(var i=0;i<_f8;i++){_f7.push({"link":_f6[i].getAttribute("href"),"portlet":_f6[i].getAttribute("title"),"uri":_f6[i].getAttribute("portal:uri")});}}ibm.portal.debug.exit("PortletFragmentService.readOtherPortlets",[_f7]);return _f7;},readStateVaryExpressions:function(_f9){ibm.portal.debug.entry("PortletFragmentService.readStateVaryExpressions",[_f9]);var _fa="/atom:feed/atom:entry/state-vary:state-vary/state-vary:expr";var _fb=com.ibm.portal.xpath.evaluateXPath(_fa,_f9,this.namespaces);var _fc=new Array();if(_fb!=null&&_fb.length>0){var _fd=_fb.length;for(var i=0;i<_fd;i++){var _fe=_fb[i].firstChild;if(_fe!=null){_fc.push(_fe.nodeValue);}}}ibm.portal.debug.exit("PortletFragmentService.readStateVaryExpressions",[_fc]);return _fc;},readPortletState:function(_ff){return this._readPortletState(_ff);},_readPortletState:function(_100){ibm.portal.debug.entry("PortletFragmentService.readPortletState",[_100]);var _101="/atom:feed/atom:entry/state:root";var _102=com.ibm.portal.xpath.evaluateXPath(_101,_100,this.namespaces);var _103=null;if(_102!=null&&_102.length>0){var doc=com.ibm.portal.xslt.loadXmlString();com.ibm.portal.utilities.addExternalNode(doc,_102[0]);_103=doc;}else{_101="/atom:feed/state:root";_102=com.ibm.portal.xpath.evaluateXPath(_101,_100,this.namespaces);if(_102!=null&&_102.length>0){var doc=com.ibm.portal.xslt.loadXmlString();com.ibm.portal.utilities.addExternalNode(doc,_102[0]);_103=doc;}}ibm.portal.debug.exit("PortletFragmentService.readPortletState",[_103]);return _103;},readPortletTitle:function(_104){return this._readPortletTitle(_104);},_readPortletTitle:function(_105){ibm.portal.debug.entry("PortletFragmentService.readPortletTitle",[_105]);var _106="/atom:feed/atom:entry/atom:title";var _107=com.ibm.portal.xpath.evaluateXPath(_106,_105,this.namespaces);var _108=dojox.data.dom.textContent(_107[0]);ibm.portal.debug.exit("PortletFragmentService.readPortletTitle",_108);return _108;},_fireEvents:function(_109,_10a,xhr){this._fireGlobalPortletStateChange(_109,_10a,xhr);},_fireGlobalPortletStateChange:function(_10b,_10c,xhr){com.ibm.portal.EVENT_BROKER.endFragment.fire({portletInfo:_10b,id:_10c,xhr:xhr});},_fireIndividualPortletStateChange:function(_10d){},createPortletInfo:function(_10e){var _10f=this.readWindowID(_10e);var _110=this.readPortletID(_10e);var _111=this.readMarkup(_10e);var _112=this.readPortletModes(_10e);var _113=this.readWindowStates(_10e);var _114=this.readDependentPortlets(_10e);var _115=this.readOtherPortlets(_10e);var _116=this.readPortletState(_10e);var _117=this.readStateVaryExpressions(_10e);var _118=this.readPortletTitle(_10e);var _119=_116;if(_119==null){_119=this._readPortletState(_10e);}var _11a=new com.ibm.portal.state.StateManager();var _11b=_11a.newPortletAccessor(_10f,_119);var mode=_11b.getPortletMode();var _11c=_11b.getWindowState();return new com.ibm.portal.services.PortletInfo(_10f,_110,_111,_112,_113,_114,_115,_116,_117,mode,_11c,_118);}});dojo.declare("com.ibm.portal.services.IndependentPortletFragmentService",com.ibm.portal.services.PortletFragmentService,{readDependentPortlets:function(_11d){ibm.portal.debug.entry("DependentPortletFragmentService.readDependentPortlets",[_11d]);var _11e=new Array();ibm.portal.debug.exit("DependentPortletFragmentService.readDependentPortlets",[_11e]);return _11e;},readOtherPortlets:function(_11f){ibm.portal.debug.entry("DependentPortletFragmentService.readOtherPortlets",[_11f]);var _120=new Array();ibm.portal.debug.exit("DependentPortletFragmentService.readOtherPortlets",[_120]);return _120;},readPortletState:function(_121){return null;}});}if(!dojo._hasResource["com.ibm.portal.state"]){dojo._hasResource["com.ibm.portal.state"]=true;dojo.provide("com.ibm.portal.state");dojo.require("dojo.string");dojo.require("dojox.data.dom");dojo.declare("com.ibm.portal.state.StateManager",null,{constructor:function(_122){this.stateDOM=null;this.stateNode=null;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};this.serializationManager=new com.ibm.portal.state.SerializationManager(_122);},getState:function(){return this.stateDOM;},newState:function(_123,_124,_125){var _126=null;if(_123==null){_126=com.ibm.portal.xslt.loadXmlString();}else{if(_124==null){_126=com.ibm.portal.xslt.loadXmlString(dojox.data.dom.innerXML(_123));}else{var xslt=com.ibm.portal.xslt;var _127=xslt.transform(_123,_124,null,_125,true);_126=com.ibm.portal.xslt.loadXmlString(_127);}}return _126;},reset:function(_128){this.stateDOM=_128;this.stateNode=this._getStateNode(_128);},getSerializationManager:function(){return this.serializationManager;},newExpansionsListAccessor:function(_129){var _12a;var _12b;if(_129==null||this.stateDOM==_129){_12a=this.stateNode;_12b=this.stateDOM;}else{_12a=this._getStateNode(_129);_12b=_129;}return new com.ibm.portal.state.ExpansionsListAccessor(_12a,_12b);},newPortletAccessor:function(_12c,_12d){var _12e;var _12f;if(_12d==null||this.stateDOM==_12d){_12e=this.stateNode;_12f=this.stateDOM;}else{_12e=this._getStateNode(_12d);_12f=_12d;}var expr="state:portlet[@id='"+_12c+"']";var _130=this._getSpecificStateNode("portlet",expr,_12e,_12f);_130.setAttribute("id",_12c);return new com.ibm.portal.state.PortletAccessor(_130,_12f);},newPortletListAccessor:function(_131){var _132;var _133;if(_131==null||this.stateDOM==_131){_132=this.stateNode;_133=this.stateDOM;}else{_132=this._getStateNode(_131);_133=_131;}return new com.ibm.portal.state.PortletListAccessor(_132,_133);},newSelectionAccessor:function(_134){var _135;var _136;if(_134==null||this.stateDOM==_134){_135=this.stateNode;_136=this.stateDOM;}else{_135=this._getStateNode(_134);_136=_134;}var _137=this._getSpecificStateNode("selection","state:selection",_135,_136);return new com.ibm.portal.state.SelectionAccessor(_137,_136);},newSoloStateAccessor:function(_138){var _139;var _13a;if(_138==null||this.stateDOM==_138){_139=this.stateNode;_13a=this.stateDOM;}else{_139=this._getStateNode(_138);_13a=_138;}var _13b=this._getSpecificStateNode("solo","state:solo",_139,_13a);return new com.ibm.portal.state.SoloStateAccessor(_13b,_13a);},newThemeTemplateAccessor:function(_13c){var _13d;var _13e;if(_13c==null||this.stateDOM==_13c){_13d=this.stateNode;_13e=this.stateDOM;}else{_13d=this._getStateNode(_13c);_13e=_13c;}var _13f=this._getSpecificStateNode("theme-template","state:theme-template",_13d,_13e);return new com.ibm.portal.state.ThemeTemplateAccessor(_13f,_13e);},newThemePolicyAccessor:function(_140){var _141;var _142;if(_140==null||this.stateDOM==_140){_141=this.stateNode;_142=this.stateDOM;}else{_141=this._getStateNode(_140);_142=_140;}var _143=this._getSpecificStateNode("theme-policy","state:theme-policy",_141,_142);return new com.ibm.portal.state.ThemePolicyAccessor(_143,_142);},newScreenTemplateAccessor:function(_144){var _145;var _146;if(_144==null||this.stateDOM==_144){_145=this.stateNode;_146=this.stateDOM;}else{_145=this._getStateNode(_144);_146=_144;}var _147=this._getSpecificStateNode("screen-template","state:screen-template",_145,_146);return new com.ibm.portal.state.ScreenTemplateAccessor(_147,_146);},newLocaleAccessor:function(_148){var _149;var _14a;if(_148==null||this.stateDOM==_148){_149=this.stateNode;_14a=this.stateDOM;}else{_149=this._getStateNode(_148);_14a=_148;}var _14b=this._getSpecificStateNode("locale","state:locale",_149,_14a);return new com.ibm.portal.state.LocaleAccessor(_14b,_14a);},newStatePartitionAccessor:function(_14c){var _14d;var _14e;if(_14c==null||this.stateDOM==_14c){_14d=this.stateNode;_14e=this.stateDOM;}else{_14d=this._getStateNode(_14c);_14e=_14c;}var _14f=this._getSpecificStateNode("statepartition","state:statepartition",_14d,_14e);return new com.ibm.portal.state.StatePartitionAccessor(_14f,_14e);},newSharedStateListAccessor:function(_150){var _151;var _152;if(_150==null||this.stateDOM==_150){_151=this.stateNode;_152=this.stateDOM;}else{_151=this._getStateNode(_150);_152=_150;}return new com.ibm.portal.state.SharedStateListAccessor(_151,_152);},newSharedStateAccessor:function(_153,_154){var _155;var _156;if(_154==null||this.stateDOM==_154){_155=this.stateNode;_156=this.stateDOM;}else{_155=this._getStateNode(_154);_156=_154;}var expr="state:shared-parameters[@id='"+_153+"']";var _157=this._getSpecificStateNode("shared-parameters",expr,_155,_156);_157.setAttribute("id",_153);return new com.ibm.portal.state.SharedStateAccessor(_153,_157,_156);},_getStateNode:function(_158){var expr="state:root/state:state";var _159=com.ibm.portal.xpath.evaluateXPath(expr,_158,this.ns);var _15a=null;if(_159&&_159.length>0){_15a=_159[0];}else{var root=null;var _15b="state:root";var _15c=com.ibm.portal.xpath.evaluateXPath(_15b,_158,this.ns);if(_15c&&_15c.length>0){root=_15c[0];}else{root=this._createElement(_158,"root");this._prependChild(root,_158);}_15a=this._createElement(_158,"state");this._prependChild(_15a,root);_15a.setAttribute("type","navigational");}return _15a;},_getSpecificStateNode:function(_15d,_15e,_15f,_160){var _161=com.ibm.portal.xpath.evaluateXPath(_15e,_15f,this.ns);var node;if(_161==null||_161.length<=0){node=this._createElement(_160,_15d);this._prependChild(node,_15f);}else{node=_161[0];}return node;},_prependChild:function(node,_162){try{_162.firstChild?_162.insertBefore(node,_162.firstChild):_162.appendChild(node);}catch(e){console.log("Error happend while prepending child node: "+e);}},_createElement:function(dom,name){var _163;if(dojo.isIE||window.ActiveXObject!==undefined){_163=dom.createNode(1,name,this.ns.state);}else{_163=dom.createElementNS(this.ns.state,name);}return _163;}});dojo.declare("com.ibm.portal.state.PortletAccessor",null,{constructor:function(_164,_165){this.portletNode=_164;this.stateDOM=_165;this.parameters=new com.ibm.portal.state.Parameters(_164,_165);this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};this.xsltURL=dojo.moduleUrl("com","ibm/portal/state/");},getPortletMode:function(){var expr="state:portlet-mode";var _166=com.ibm.portal.xpath.evaluateXPath(expr,this.portletNode,this.ns);var _167=ibm.portal.portlet.PortletMode.VIEW;if(_166!=null&&_166.length>0){var _168=_166[0].firstChild;if(_168!=null){_167=_168.nodeValue;}}return _167;},getWindowState:function(){var expr="state:window-state";var _169=com.ibm.portal.xpath.evaluateXPath(expr,this.portletNode,this.ns);var _16a=ibm.portal.portlet.WindowState.NORMAL;if(_169!=null&&_169.length>0){var _16b=_169[0].firstChild;if(_16b!=null){_16a=_16b.nodeValue;}}return _16a;},getRenderParameters:function(){return this.parameters;},setPortletMode:function(_16c){var expr="state:portlet-mode";var _16d=com.ibm.portal.xpath.evaluateXPath(expr,this.portletNode,this.ns);if(_16d==null||_16d.length<=0){var _16e=this._createElement(this.stateDOM,"portlet-mode");this._prependChild(_16e,this.portletNode);var _16f=this.stateDOM.createTextNode(_16c);this._prependChild(_16f,_16e);}else{_16d[0].firstChild.nodeValue=_16c;}},setWindowState:function(_170){var expr="state:window-state";var _171=com.ibm.portal.xpath.evaluateXPath(expr,this.portletNode,this.ns);if(_171==null||_171.length<=0){var _172=this._createElement(this.stateDOM,"window-state");this._prependChild(_172,this.portletNode);var _173=this.stateDOM.createTextNode(_170);this._prependChild(_173,_172);}else{_171[0].firstChild.nodeValue=_170;}},getPortletState:function(){var _174=com.ibm.portal.xslt.loadXmlString();var _175=com.ibm.portal.state.STATE_MANAGER.newPortletAccessor(this.portletNode.getAttribute("id"),_174);_175.setPortletMode(this.getPortletMode());_175.setWindowState(this.getWindowState());var _176=this.getRenderParameters().getMap();if(_176.length>0){_175.getRenderParameters().putAll(_176);}return _174;},setPortletState:function(_177,_178){var _179=com.ibm.portal.state.STATE_MANAGER.newPortletAccessor(this.portletNode.getAttribute("id"),_177);this.setPortletMode(_179.getPortletMode());this.setWindowState(_179.getWindowState());var _17a=_179.getRenderParameters().getMap();if(_178==null||_178==false){this.getRenderParameters().clear();}if(_17a.length>0){this.getRenderParameters().putAll(_17a);}},_prependChild:function(node,_17b){_17b.firstChild?_17b.insertBefore(node,_17b.firstChild):_17b.appendChild(node);},_createElement:function(dom,name){var _17c;if(dojo.isIE||window.ActiveXObject!==undefined){_17c=dom.createNode(1,name,this.ns.state);}else{_17c=dom.createElementNS(this.ns.state,name);}return _17c;}});dojo.declare("com.ibm.portal.state.Parameters",null,{constructor:function(_17d,_17e){this.baseNode=_17d;this.stateDOM=_17e;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getMap:function(){var _17f=this.getNames();var map=new Array(_17f.length);for(var i=0;i<_17f.length;i++){var name=_17f[i];map[i]={name:name,values:this.getValues(name)};}return map;},getNames:function(){var expr="state:parameters/state:param";var _180=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);var _181=new Array();if(_180!=null&&_180.length>0){var _182=_180.length;for(var i=0;i<_182;i++){_181[i]=_180[i].getAttribute("name");}}return _181;},getValue:function(name){var _183=this.getValues(name);var _184=null;if(_183!=null&&_183.length>0){_184=_183[0];}return _184;},getValues:function(name){var expr="state:parameters/state:param[@name='"+name+"']/state:value";var _185=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);var _186=null;if(_185!=null&&_185.length>0){_186=[];dojo.forEach(_185,function(node){var _187=dojox.xml.parser.textContent(node);_186.push(_187);});}return _186;},remove:function(name){var expr="state:parameters/state:param[@name='"+name+"']";var _188=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);if(_188!=null){var _189=_188[0];if(_189&&_189.parentNode){_189.parentNode.removeChild(_189);}}},putAll:function(map){if(map!=null&&map.length>0){for(var i=map.length-1;i>=0;i--){var _18a=map[i].name;var _18b=map[i].values;this.setValues(_18a,_18b);}}},setValue:function(name,_18c){this.setValues(name,new Array(_18c));},setValues:function(name,_18d){var _18e=this._getParamsRoot();var expr="state:param[@name='"+name+"']";var _18f=com.ibm.portal.xpath.evaluateXPath(expr,_18e,this.ns);var _190;if(_18f&&_18f.length>0){_190=_18f[0];dojox.data.dom.removeChildren(_190);}else{_190=this._createElement(this.stateDOM,"param");_190.setAttribute("name",name);this._prependChild(_190,_18e);}if(_18d){for(var i=_18d.length-1;i>=0;i--){var _191=this._createElement(this.stateDOM,"value");this._prependChild(_191,_190);var _192=_18d[i];if(dojo.isString(_192)){var _193=this.stateDOM.createTextNode(_192);this._prependChild(_193,_191);}}}},clear:function(){var expr="state:parameters";var _194=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);if(_194!=null){var _195=_194[0];if(_195&&_195.parentNode){_195.parentNode.removeChild(_195);}}},_getParamsRoot:function(){if(!this.params){var expr="state:parameters";var _196=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);if(_196&&_196.length>0){this.params=_196[0];}else{var _197=this._createElement(this.stateDOM,"parameters");this._prependChild(_197,this.baseNode);this.params=_197;}}return this.params;},_prependChild:function(node,_198){_198.firstChild?_198.insertBefore(node,_198.firstChild):_198.appendChild(node);},_createElement:function(dom,name){var _199;if(dojo.isIE||window.ActiveXObject!==undefined){_199=dom.createNode(1,name,this.ns.state);}else{_199=dom.createElementNS(this.ns.state,name);}return _199;}});dojo.declare("com.ibm.portal.state.ExpansionsListAccessor",null,{constructor:function(_19a,_19b){this.stateNode=_19a;this.stateDOM=_19b;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getExpansions:function(){var expr="state:expansions/state:node";var _19c=com.ibm.portal.xpath.evaluateXPath(expr,this.stateNode,this.ns);var _19d=null;if(_19c!=null&&_19c.length>0){_19d=new Array(_19c.length);for(var i=0;i<_19c.length;i++){var node=_19c[i];_19d[i]=node.getAttribute("id");}}return _19d;},setExpansions:function(ids){var expr="state:expansions";var _19e=com.ibm.portal.xpath.evaluateXPath(expr,this.stateNode,this.ns);if(_19e!=null){var _19f=_19e[0],node;if(!_19f){_19f=this._createElement(this.stateDOM,"expansions");this.stateNode.appendChild(_19f);}while(_19f.childNodes.length>0){_19f.removeChild(_19f.childNodes[0]);}for(var i=0;i0){_1a4=new Array(_1a3.length);for(var i=0;i<_1a3.length;i++){var node=_1a3[i];_1a4[i]=node.getAttribute("id");}}return _1a4;}});dojo.declare("com.ibm.portal.state.SharedStateListAccessor",null,{constructor:function(_1a5,_1a6){this.stateNode=_1a5;this.stateDOM=_1a6;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getScopeIDs:function(){var expr="state:shared-parameters";var _1a7=com.ibm.portal.xpath.evaluateXPath(expr,this.stateNode,this.ns);var _1a8=[];if(_1a7&&_1a7.length>0){dojo.forEach(_1a7,function(node){var id=node.getAttribute("id");if(id){_1a8.push(id);}});}return _1a8;}});dojo.declare("com.ibm.portal.state.SharedStateAccessor",null,{constructor:function(_1a9,_1aa,_1ab){this.scopeID=_1a9;this.sharedStateNode=_1aa;this.stateDOM=_1ab;this.xpath=com.ibm.portal.xpath;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};this.xsltURL=dojo.moduleUrl("com","ibm/portal/state/");},getScopeID:function(){return this.scopeID;},getQNames:function(){var expr="state:shared-parameter";var _1ac=this.xpath.evaluateXPath(expr,this.sharedStateNode,this.ns);var _1ad=[];if(_1ac&&_1ac.length>0){var acc=this;dojo.forEach(_1ac,function(node){var uri=node.getAttribute("nsuri");var _1ae=node.getAttribute("localpart");_1ad.push(acc._serializeQName(uri,_1ae));});}return _1ad;},_serializeQName:function(uri,_1af){return "{"+uri+"}"+_1af;},_deserializeQName:function(_1b0){var _1b1=_1b0.split("}");var _1b2={};if(_1b1&&_1b1.length==2){_1b2.nsuri=_1b1[0].substring(1);_1b2.localpart=_1b1[1];}return _1b2;},getValues:function(_1b3){var _1b4=this._deserializeQName(_1b3);var uri=_1b4.nsuri;var _1b5=_1b4.localpart;if(dojo.isString(uri)&&_1b5){var expr="state:shared-parameter[@nsuri='"+uri+"'][@localpart='"+_1b5+"']/state:value";var _1b6=this.xpath.evaluateXPath(expr,this.sharedStateNode,this.ns);if(_1b6&&_1b6.length>0){var _1b7=[];dojo.forEach(_1b6,function(node){var _1b8=dojox.xml.parser.textContent(node);if(_1b8){_1b7.push(_1b8);}});return _1b7;}else{return null;}}},getValue:function(_1b9){var _1ba=this.getValues(_1b9);if(_1ba&&_1ba.length>0){return _1ba[0];}else{return null;}},setValues:function(_1bb,_1bc){var _1bd=this._deserializeQName(_1bb);var uri=_1bd.nsuri;var _1be=_1bd.localpart;var expr="state:shared-parameter[@nsuri='"+uri+"'][@localpart='"+_1be+"']";var _1bf=this.xpath.evaluateXPath(expr,this.sharedStateNode,this.ns);var _1c0=null;if(_1bf&&_1bf.length>0){_1c0=_1bf[0];dojox.xml.parser.removeChildren(_1c0);}else{_1c0=this._createElement(this.stateDOM,"shared-parameter");_1c0.setAttribute("nsuri",uri);_1c0.setAttribute("localpart",_1be);this._prependChild(_1c0,this.sharedStateNode);}if(_1c0&&_1bc){for(var i=_1bc.length-1;i>=0;i--){var _1c1=this._createElement(this.stateDOM,"value");this._prependChild(_1c1,_1c0);var _1c2=_1bc[i];if(dojo.isString(_1c2)){var _1c3=this.stateDOM.createTextNode(_1c2);this._prependChild(_1c3,_1c1);}}}},setValue:function(_1c4,_1c5){if(_1c5){this.setValues(_1c4,[_1c5]);}},_prependChild:function(node,_1c6){_1c6.firstChild?_1c6.insertBefore(node,_1c6.firstChild):_1c6.appendChild(node);},_createElement:function(dom,name){var _1c7;if(dojo.isIE||window.ActiveXObject!==undefined){_1c7=dom.createNode(1,name,this.ns.state);}else{_1c7=dom.createElementNS(this.ns.state,name);}return _1c7;}});dojo.declare("com.ibm.portal.state.SelectionAccessor",null,{constructor:function(_1c8,_1c9){this.selectionNode=_1c8;this.stateDOM=_1c9;this.parameters=new com.ibm.portal.state.Parameters(this.selectionNode,_1c9);this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getPageSelection:function(){return this.selectionNode.getAttribute("selection-node");},getFragmentSelection:function(){var _1ca=this.getParameters();var _1cb=_1ca.getValues("frg");var _1cc=null;if(_1cb!=null&&_1cb.length>0){_1cc=_1cb[0];if(_1cb.length>1){if(_1cc=="pw"){_1cc=_1cb[1];}}}return _1cc;},getMapping:function(_1cd){var expr="state:mapping[@src='"+_1cd+"']";var _1ce=com.ibm.portal.xpath.evaluateXPath(expr,this.selectionNode,this.ns);var _1cf=null;if(_1ce!=null&&_1ce.length>0){var _1d0=_1ce[0];_1cf=_1d0.getAttribute("dst");}return _1cf;},getMappingSources:function(){var expr="state:mapping";var _1d1=com.ibm.portal.xpath.evaluateXPath(expr,this.selectionNode,this.ns);var _1d2=[];if(_1d1&&_1d1.length>0){dojo.forEach(_1d1,function(node){var src=node.getAttribute("src");if(src){_1d2.push(src);}});}return _1d2;},getParameters:function(){return this.parameters;},setPageSelection:function(_1d3){this.selectionNode.setAttribute("selection-node",_1d3);},setURI:function(uri){this.selectionNode.setAttribute("selection-uri",uri);},getURI:function(){return this.selectionNode.getAttribute("selection-uri");},setFragmentSelection:function(_1d4,_1d5){var _1d6=this.getParameters();if(_1d5==null||_1d5==true){var _1d7=new Array(2);_1d7[0]=_1d4;_1d7[1]="pw";_1d6.setValues("frg",_1d7);}else{_1d6.setValue("frg",_1d4);}},setMapping:function(_1d8,_1d9){if(_1d9!=null){var expr="state:mapping[@src='"+_1d8+"']";var _1da=com.ibm.portal.xpath.evaluateXPath(expr,this.selectionNode,this.ns);var _1db;if(_1da!=null&&_1da.length>0){_1db=_1da[0];}else{_1db=this._createElement(this.stateDOM,"mapping");this._prependChild(_1db,this.selectionNode);_1db.setAttribute("src",_1d8);}_1db.setAttribute("dst",_1d9);}else{this.removeMapping(_1d8);}},removeMapping:function(_1dc){var expr="state:mapping[@src='"+_1dc+"']";var _1dd=com.ibm.portal.xpath.evaluateXPath(expr,this.selectionNode,this.ns);var _1de=false;if(_1dd!=null&&_1dd.length>0){for(var i=0;i<_1dd.length;i++){var _1df=_1dd[i];if(_1df&&_1df.parentNode){_1df.parentNode.removeChild(_1df);}}_1de=true;}return _1de;},_prependChild:function(node,_1e0){_1e0.firstChild?_1e0.insertBefore(node,_1e0.firstChild):_1e0.appendChild(node);},_createElement:function(dom,name){var _1e1;if(dojo.isIE||window.ActiveXObject!==undefined){_1e1=dom.createNode(1,name,this.ns.state);}else{_1e1=dom.createElementNS(this.ns.state,name);}return _1e1;},getSelection:function(){return this.getPageSelection();},setSelection:function(_1e2){this.setPageSelection(_1e2);}});dojo.declare("com.ibm.portal.state.SingleTokenAccessor",null,{constructor:function(node,_1e3){this.node=node;this.stateDOM=_1e3;},setValue:function(_1e4){dojox.xml.parser.removeChildren(this.node);if(_1e4){dojox.xml.parser.textContent(this.node,_1e4);}},getValue:function(){return dojox.xml.parser.textContent(this.node);},setAttribute:function(name,_1e5){this.node.setAttribute(name,_1e5);},getAttribute:function(name){return this.node.getAttribute(name);}});dojo.declare("com.ibm.portal.state.SoloStateAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_1e6,_1e7){this.soloNode=_1e6;this.stateDOM=_1e7;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},setSoloPortlet:function(_1e8){this.setValue(_1e8);},getSoloPortlet:function(){return this.getValue();},setReturnSelection:function(_1e9){this.setAttribute("return-selection",_1e9);},getReturnSelection:function(){return this.getAttribute("return-selection");}});dojo.declare("com.ibm.portal.state.ThemeTemplateAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_1ea,_1eb){this.themeTemplateNode=_1ea;this.stateDOM=_1eb;},setThemeTemplate:function(_1ec){this.setValue(_1ec);},getThemeTemplate:function(){return this.getValue();}});dojo.declare("com.ibm.portal.state.ScreenTemplateAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_1ed,_1ee){this.screenTemplateNode=_1ed;this.stateDOM=_1ee;},setScreenTemplate:function(_1ef){this.setValue(_1ef);},getScreenTemplate:function(){return this.getValue();}});dojo.declare("com.ibm.portal.state.LocaleAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_1f0,_1f1){this.localeNode=_1f0;this.stateDOM=_1f1;},setLocale:function(_1f2){this.setValue(_1f2);},getLocale:function(){return this.getValue();}});dojo.declare("com.ibm.portal.state.ThemePolicyAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_1f3,_1f4){this.localeNode=_1f3;this.stateDOM=_1f4;},setThemePolicy:function(_1f5){this.setValue(_1f5);},getThemePolicy:function(){return this.getValue();}});dojo.declare("com.ibm.portal.state.StatePartitionAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_1f6,_1f7){this.statePartitionNode=_1f6;this.stateDOM=_1f7;},includeStatePartition:function(){this.setStatePartition(this._generateID());},setStatePartition:function(_1f8){this.setValue(_1f8);},getStatePartition:function(){return this.getValue();},_generateID:function(){return Math.floor(Math.random()*100);}});dojo.declare("com.ibm.portal.state.SerializationManager",null,{STATE_URI_SCHEME:"state",STATE_URI_POST:"state:encode",DOWNLOAD_MODE:"download",STATUS_UNDEFINED:0,STATUS_OK:1,STATUS_ERROR:2,STATE_NS_URI:"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state",JSON_SERIALIZATION:{names:{expansions:"exp",portlets:"pp",pMode:"m",pWState:"w",locale:"lcl",screenTemplate:"scrtm",selection:"sel",selPg:"pg",selFrg:"frg",selURI:"uri",selMaps:"mp",sharedState:"ss",statePartition:"sp",solo:"solo",soloPortlet:"soloP",soloReturn:"soloR",themePolicy:"thp",themeTemplate:"thtm",params:"parm",paramValue:"v"},portlet:{defMode:"view",defWState:"normal"}},constructor:function(_1f9){this.serviceURL=_1f9;},sendDebugRequest:function(_1fa,_1fb,_1fc){ibm.portal.debug.entry("SerializationManager.sendDebugRequest",[]);var _1fd=_1fc?_1fc:{};_1fd.portalURI=ibmPortalConfig["portalURI"];_1fd.stateServiceURL=this.serviceURL.substring(0,40);var _1fe=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();_1fd.currPage=_1fe.getPageSelection();if(_1fb){_1fd.cType=_1fb.xhr.getResponseHeader("Content-Type");_1fd.status=_1fb.xhr.status;}var _1ff=ibmPortalConfig["portalURI"]+"/DEBUG"+this.buildDebugURLContent(_1fd)+"/DEBUG";dojo.xhrGet({url:_1ff,sync:false,content:{},headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:function(_200,_201){ibm.portal.debug.text("DebugRequest:Response: "+_200);com.ibm.ajax.auth.authenticationHandler();},transport:"XMLHTTPTransport"});ibm.portal.debug.exit("SerializationManager.sendDebugRequest",[]);},buildDebugURLContent:function(_202){ibm.portal.debug.entry("SerializationManager.buildDebugURLContent",[]);var _203="";for(var key in _202){_203+=("/"+key+":"+_202[key]);}ibm.portal.debug.exit("SerializationManager.buildDebugURLContent",_203);return _203;},isDebugReqNeeded:function(_204,_205){return _204 instanceof Error||!(_205.xhr.status>=200&&_205.xhr.status<300)||com.ibm.ajax.auth.isAuthenticationRequired(_204,_205);},jsonCoders:{to:{expansions:function(obj,mgr){var acc=mgr.newExpansionsListAccessor(),val=acc.getExpansions();if(val&&val.length>0){obj[this.JSON_SERIALIZATION.names.expansions]=val;}},portlets:function(obj,mgr){var acc=mgr.newPortletListAccessor(),fn=this.jsonCoders.to.portlet;dojo.forEach(acc.getPortlets(),function(pid){fn.call(this,pid,obj,mgr);},this);},portlet:function(pid,obj,mgr){var pAcc=mgr.newPortletAccessor(pid),mode=pAcc.getPortletMode(),_206=pAcc.getWindowState(),_207=pAcc.getRenderParameters(),_208=this.JSON_SERIALIZATION.names,_209=this.JSON_SERIALIZATION.portlet,pObj=null,path=[_208.portlets,pid].join(".");if(mode&&mode!=_209.defMode){if(!pObj){pObj=dojo.setObject(path,{},obj);}pObj[_208.pMode]=mode;}if(_206&&_206!=_209.defWState){if(!pObj){pObj=dojo.setObject(path,{},obj);}pObj[_208.pWState]=_206;}var _20a=_207.getNames();if(_20a.length>0){if(!pObj){pObj=dojo.setObject(path,{},obj);}this.jsonCoders.to.params.call(this,pObj,_207);}},selection:function(obj,mgr){var acc=mgr.newSelectionAccessor(),_20b=this.JSON_SERIALIZATION.names,sel=obj[_20b.selection]={},val=acc.getPageSelection(),_20c=acc.getParameters();if(val){sel[_20b.selPg]=val;}val=acc.getFragmentSelection();if(val){sel[_20b.selFrg]=val;}val=acc.getURI();if(val){sel[_20b.selURI]=val;}var _20d=acc.getMappingSources();if(_20d.length>0){var map=sel[_20b.selMaps]={};for(var i=0;i<_20d.length;i++){map[_20d[i]]=acc.getMapping(_20d[i]);}}var _20e=_20c.getNames();if(_20e.length>0){this.jsonCoders.to.params.call(this,sel,_20c);}},sharedStateList:function(obj,mgr){var acc=mgr.newSharedStateListAccessor(),fn=this.jsonCoders.to.sharedState;dojo.forEach(acc.getScopeIDs(),function(sid){fn.call(this,sid,obj,mgr);},this);},sharedState:function(_20f,obj,mgr){var acc=mgr.newSharedStateAccessor(_20f),_210=this.JSON_SERIALIZATION.names,_211=acc.getQNames();if(_211.length>0){var pObj=dojo.setObject([_210.sharedState,_20f].join("."),{},obj);for(var i=0;i<_211.length;i++){pObj[_211[i]]=acc.getValues(_211[i]);}}},params:function(obj,_212){var _213=_212.getNames();if(_213.length>0){var _214=obj[this.JSON_SERIALIZATION.names.params]={};for(var i=0;i<_213.length;i++){_214[_213[i]]=_212.getValues(_213[i]);}}}},from:{expansions:function(obj,mgr){var val=obj[this.JSON_SERIALIZATION.names.expansions];if(val&&val.length>0){mgr.newExpansionsListAccessor().setExpansions(val);}},portlets:function(obj,mgr){var fn=this.jsonCoders.from.portlet;for(var pid in obj[this.JSON_SERIALIZATION.names.portlets]){fn.call(this,pid,obj,mgr);}},portlet:function(pid,obj,mgr){var _215=this.JSON_SERIALIZATION.names,_216=this.JSON_SERIALIZATION.portlet,pObj=dojo.getObject([_215.portlets,pid].join("."),false,obj);if(pObj){var pAcc=mgr.newPortletAccessor(pid),mode=pObj[_215.pMode],_217=pObj[_215.pWState];if(mode&&mode!=_216.defMode){pAcc.setPortletMode(mode);}if(_217&&_217!=_216.defWState){pAcc.setWindowState(_217);}var _218=pObj[_215.params];if(_218){var _219=pAcc.getRenderParameters();this.jsonCoders.from.params.call(this,pObj,_219);}}},selection:function(obj,mgr){var _21a=this.JSON_SERIALIZATION.names,sel=obj[_21a.selection],acc;if(sel){var val=sel[_21a.selPg];if(val){acc=mgr.newSelectionAccessor();acc.setPageSelection(val);}val=sel[_21a.selFrg];if(val){if(!acc){acc=mgr.newSelectionAccessor();}acc.setFragmentSelection(val);}val=sel[_21a.selURI];if(val){if(!acc){acc=mgr.newSelectionAccessor();}acc.setURI(val);}val=sel[_21a.selMaps];for(var n in val){acc.setMapping(n,val[n]);}val=sel[_21a.params];if(val){var _21b=acc.getParameters();this.jsonCoders.from.params.call(this,sel,_21b);}}},sharedStateList:function(obj,mgr){var fn=this.jsonCoders.from.sharedState;for(var sid in obj[this.JSON_SERIALIZATION.names.sharedState]){fn.call(this,sid,obj,mgr);}},sharedState:function(_21c,obj,mgr){var acc=mgr.newSharedStateAccessor(_21c),_21d=this.JSON_SERIALIZATION.names,_21e=obj[_21d.sharedState][_21c];for(var n in _21e){acc.setValues(n,_21e[n]);}},params:function(obj,_21f){var _220=obj[this.JSON_SERIALIZATION.names.params];for(var n in _220){_21f.setValues(n,_220[n]);}}}},toJSON:function(_221){var mgr=new com.ibm.portal.state.StateManager(ibmPortalConfig.contentHandlerURI),obj={},acc,val,_222=this.JSON_SERIALIZATION.names;mgr.reset(_221);acc=mgr.newLocaleAccessor(),val=acc.getLocale();if(val){obj[_222.locale]=val;}this.jsonCoders.to.portlets.call(this,obj,mgr);this.jsonCoders.to.expansions.call(this,obj,mgr);acc=mgr.newScreenTemplateAccessor();val=acc.getScreenTemplate();if(val){obj[_222.screenTemplate]=val;}this.jsonCoders.to.selection.call(this,obj,mgr);this.jsonCoders.to.sharedStateList.call(this,obj,mgr);acc=mgr.newSoloStateAccessor();val=acc.getSoloPortlet();if(val){dojo.setObject([_222.solo,_222.soloPortlet].join("."),val,obj);}val=acc.getReturnSelection();if(val){dojo.setObject([_222.solo,_222.soloReturn].join("."),val,obj);}acc=mgr.newStatePartitionAccessor();val=acc.getStatePartition();if(val){obj[_222.statePartition]=val;}acc=mgr.newThemePolicyAccessor();val=acc.getThemePolicy();if(val){obj[_222.themePolicy]=val;}acc=mgr.newThemeTemplateAccessor();val=acc.getThemeTemplate();if(val){obj[_222.themeTemplate]=val;}return obj;},fromJSON:function(obj){var mgr=new com.ibm.portal.state.StateManager(ibmPortalConfig.contentHandlerURI),acc,val,_223=this.JSON_SERIALIZATION.names;mgr.reset(com.ibm.portal.xslt.loadXmlString());val=obj[_223.locale];if(val){mgr.newLocaleAccessor().setLocale(val);}this.jsonCoders.from.portlets.call(this,obj,mgr);this.jsonCoders.from.expansions.call(this,obj,mgr);val=obj[_223.screenTemplate];if(val){mgr.newScreenTemplateAccessor().setScreenTemplate(val);}this.jsonCoders.from.selection.call(this,obj,mgr);this.jsonCoders.from.sharedStateList.call(this,obj,mgr);acc=null;val=dojo.getObject([_223.solo,_223.soloPortlet].join("."),false,obj);if(val){acc=mgr.newSoloStateAccessor();acc.setSoloPortlet(val);}val=dojo.getObject([_223.solo,_223.soloReturn].join("."),false,obj);if(val){if(!acc){acc=mgr.newSoloStateAccessor();}acc.setReturnSelection(val);}val=obj[_223.statePartition];if(val){mgr.newStatePartitionAccessor().setStatePartition(val);}val=obj[_223.themePolicy];if(val){mgr.newThemePolicyAccessor().setThemePolicy(val);}val=obj[_223.themeTemplate];if(val){mgr.newThemeTemplateAccessor().setThemeTemplate(val);}return mgr.stateDOM;},serialize:function(_224,_225,_226,_227,_228){var _229=dojox.data.dom.innerXML(_224).replace(/[\r\n]/mg,"");ibm.portal.debug.entry("SerializationManager.serialize",[_229,_225,_226,_227,_228]);var _22a=encodeURIComponent(_229);var _22b=this._getMimeType();var _22c=null;var me=this;var auth=com.ibm.ajax.auth;var _22d=typeof ibmCfg!="undefined"&&ibmCfg?(ibmCfg&&ibmCfg.themeConfig?ibmCfg.themeConfig.onauthenticated:null):null;var _22e=com.ibm.portal.services.PortalRestServiceConfig.digest;if(typeof ibmPortalConfig!="undefined"&&_22a.length<=ibmPortalConfig.stateThreshold){var _22f=this.STATE_URI_SCHEME+":"+_22a;var _230={"uri":_22f,"mode":this.DOWNLOAD_MODE,"xmlns":this.STATE_NS_URI,"sessionDependencyAllowed":"true"};_225=(_225!=null&&_225==true);if(_225===true){_230.preprocessors="true";}if(_22e){_230.digest=_22e;}if(_227===true){_230.forceAbsolute=true;}var _231=false;if(_228&&(_228.project||(_228.project===null))){_230.project=_228.project;_231=true;}if(_231){var url=this.serviceURL;var _232=url.indexOf("$project");if(_232>=0){var _233=url.indexOf("!ut/p");if(_233<0){this.serviceURL=url.substring(0,_232);}else{this.serviceURL=url.substring(0,_232)+url.substring(_233);}}}dojo.xhrGet({url:this.serviceURL,sync:true,content:_230,handleAs:_22b,handle:function(_234,_235){if(auth.isAuthenticationRequired(_234,_235)){ibm.portal.debug.text("Authentication required.");auth.authenticationHandler(_234,_235,_22d);}else{_22c=me._handleSerializationResponse.call(me,_234,_226,_224,_225);return _234;}},transport:"XMLHTTPTransport"});}else{if(dojo.isIE||window.ActiveXObject!==undefined){var idx=_229.indexOf("UTF-16");if(idx>=0){_229=_229.replace(/UTF-16/,"UTF-8");}}var url=this.serviceURL;if(url.indexOf("?")==-1){url+="?";}else{url+="&";}url+="uri="+this.STATE_URI_POST+"&xmlns="+this.STATE_NS_URI+"&sessionDependencyAllowed=true";if(_22e!=null){url+="&digest="+_22e;}if(_225===true){url+="&preprocessors=true";}if(_227===true){url+="&forceAbsolute=true";}if(_228&&_228.project){url+="&project="+encodeURIComponent(_228.project);}var _231=false;if(_228&&(_228.project===null)){url+="&project=";_231=true;}if(_231){var _232=url.indexOf("$project");if(_232>=0){var _233=url.indexOf("!ut/p");if(_233<0){url=url.substring(0,_232);}else{url=url.substring(0,_232)+url.substring(_233);}}}dojo.rawXhrPost({url:url,sync:true,postData:_229,handleAs:_22b,headers:{"Content-Type":"text/xml","X-IBM-XHR":"true"},handle:function(_236,_237){if(auth.isAuthenticationRequired(_236,_237)){ibm.portal.debug.text("Authentication required.");auth.authenticationHandler(_236,_237,_22d);}else{_22c=me._handleSerializationResponse.call(me,_236,_226,_224,_225);return _236;}},transport:"XMLHTTPTransport"});}return _22c;},deserialize:function(url,_238){ibm.portal.debug.entry("SerializationManager.deserialize",[url]);var _239=this.STATE_URI_SCHEME+":"+encodeURIComponent(url);var _23a=null;var _23b=this._getMimeType();var me=this;var _23c=com.ibm.portal.services.PortalRestServiceConfig.digest;var auth=com.ibm.ajax.auth;var _23d=typeof ibmCfg!="undefined"&&ibmCfg?(ibmCfg&&ibmCfg.themeConfig?ibmCfg.themeConfig.onauthenticated:null):null;var _23e={"uri":_239,"mode":this.DOWNLOAD_MODE,"xmlns":this.STATE_NS_URI,"preprocessors":"true"};if(_23c!=null){_23e.digest=_23c;}dojo.xhrGet({url:this.serviceURL,sync:(_238)?false:true,content:_23e,headers:{"X-IBM-XHR":"true"},handleAs:_23b,handle:function(_23f,_240){var type=(_23f instanceof Error)?"error":"load";if(type=="load"){var _241=me._getResponseXML(_23f);if(_241.documentElement.nodeName=="parsererror"){_241=com.ibm.portal.xslt.loadXmlString();}if(_238){_238(1,url,_241);}else{_23a={"status":1,"input":me.serviceURL,"url":me.serviceURL,"returnObject":_241,"state":_241};}}else{if(type=="error"){if(auth.isAuthenticationRequired(_23f,_240)){ibm.portal.debug.text("Authentication required.");auth.authenticationHandler(_23f,_240,_23d);}else{if(_238){_238(2,url,null);}else{_23a={"status":2,"input":me.serviceURL,"url":me.serviceURL,"returnObject":null,"state":null};}}}}},transport:"XMLHTTPTransport"});return _23a;},_handleSerializationResponse:function(_242,_243,_244,_245){var _246=null;var type=(_242 instanceof Error)?"error":"load";if(type=="load"){var _247=this._getResponseXML(_242);var _248="atom:entry/atom:link";var ns={"atom":"http://www.w3.org/2005/Atom","state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};var _249=null;var _24a=com.ibm.portal.xpath.evaluateXPath(_248,_247,ns);if(_24a!=null&&_24a.length>0){_249=_24a[0].getAttribute("href");}else{com.ibm.ajax.auth.authenticationHandler();_246={"status":this.STATUS_ERROR,"input":_244,"state":_244,"returnObject":null,"url":null};return _246;}var _24b=_244;if(_245==true){var _24c="atom:entry/atom:content/state:root";var _24d=com.ibm.portal.xpath.evaluateXPath(_24c,_247,ns);if(_24d!=null&&_24d.length>0){var _24e=dojox.data.dom.innerXML(_24d[0]);_24b=com.ibm.portal.xslt.loadXmlString(_24e);}}if(_243){_243(1,_24b,_249);}else{_246={"status":1,"input":_24b,"state":_24b,"returnObject":_249,"url":_249};}}else{if(type=="error"){if(_243){_243(this.STATUS_ERROR,_244,null);}else{_246={"status":this.STATUS_ERROR,"input":_244,"state":_244,"returnObject":null,"url":null};}}}return _246;},_getMimeType:function(){var _24f="xml";if(dojo.isIE||window.ActiveXObject!==undefined){_24f="text";}return _24f;},_getResponseXML:function(data){var _250=data;if(dojo.isIE||window.ActiveXObject!==undefined){_250=com.ibm.portal.xslt.loadXmlString(data);}return _250;}});dojo.declare("com.ibm.portal.navigation.controller.StateVaryManager",null,{constructor:function(){this._expr=new Array();},setExpressions:function(id,_251){var _252=this._findBucket(id);if(_252==null){_252={"id":id,"expr":null};this._expr.push(_252);}_252.expr=_251;},getExpressions:function(id){var _253=null;var _254=this._findBucket(id);if(_254!=null){_253=_254.expr;}return _253;},_findBucket:function(id){var _255=null;for(i=0;i"+""+""+"pm:cid:0"+""+""+""+""+"";dojo.rawXhrPost({url:_277,sync:true,postData:_278,contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:dojo.hitch(this,function(_279,_27a){var type=(_279 instanceof Error)?"error":"load";if(type=="load"){var _27b=_279;if(!_27b||(typeof (dojox.data.dom.innerXML(_279))=="undefined")){_27b=com.ibm.portal.xslt.loadXmlString(_27a.xhr.responseText);}var ns={"atom":"http://www.w3.org/2005/Atom"};var expr="/atom:feed/atom:entry/atom:id";var _27c=ibm.portal.xml.xpath.evaluateXPath(expr,_27b,ns);this.requestedPreferenceID=dojox.data.dom.textContent(_27c[0]);}else{if(_27a.xhr.status==409){var _27b=com.ibm.portal.xslt.loadXmlString(_27a.xhr.responseText);var ns={"atom":"http://www.w3.org/2005/Atom"};var expr="/atom:feed/atom:entry/atom:id";var _27c=ibm.portal.xml.xpath.evaluateXPath(expr,_27b,ns);this.requestedPreferenceID=dojox.data.dom.textContent(_27c[0]);}}}),transport:"XMLHTTPTransport"});}else{this.requestedPreferenceID="pm:oid:"+this.preferenceEditID;}}}}var _271=this;var _272=null;dojo.xhrGet({url:_276,handleAs:"xml",preventCache:true,headers:{"X-IBM-XHR":"true","If-Modified-Since":"Thu, 1 Jan 1970 00:00:00 GMT"},sync:(_26f)?false:true,handle:function(_27d,_27e){if(_271.isAuthenticationRequired(_27e.xhr,_27e.args.handleAs)){_271.doAuthentication();}else{var type=(_27d instanceof Error)?"error":"load";if(type=="load"){var _27f=_27d;if(!_27f||(typeof (dojox.data.dom.innerXML(_27d))=="undefined")||(typeof (_27f.contentType)=="undefined")){_27f=com.ibm.portal.xslt.loadXmlString(_27e.xhr.responseText);}var _280=new ibm.portal.portlet.PortletPreferences(_271.isEnablerAvailable,_271.windowID,_271.pageID,_271.requestedPreferenceID,_27f,_271.widgetModel);if(_26f){_26f(_271,ibm.portal.portlet.PortletWindow.STATUS_OK,_280);}else{_272={"portletWindow":_271,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_280};}}else{if(type=="error"){if(_26f){_26f(_271,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_272={"portletWindow":_271,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_270,_272);}return _272;},setPortletPreferences:function(_281,_282){if(this.isEnablerAvailable){var _283="setPortletPreferences()";this.logger.logEntry(_283,_282);}if(!ibm.portal.portlet._SafeToExecute){if(_282){var me=this;this._queueUp(function(){me.setPortletPreferences(_281,_282);});return false;}else{return this._throwInappropriateRequestError("setPortletPreferences");}}if(this.isEnablerAvailable){this.widgetModel.commit().start();var _284=this;var _285=null;if(_282){_282(_284,ibm.portal.portlet.PortletWindow.STATUS_OK,_281);}else{_285={"portletWindow":_284,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_281};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _286=document.getElementById("com.ibm.wps.web2.portlet.root."+this.windowID).innerHTML;var idx=_286.indexOf("--portletwindowid--");var _287=_286.replace(/--portletwindowid--/g,this.windowID);if(_287.indexOf("?")<0){_287+="?verb=download";}else{_287+="&verb=download";}var _288=_281.requestedPreferenceID;var expr="/atom:feed/atom:entry[atom:id='"+_288+"']";var _289=ibm.portal.xml.xpath.evaluateXPath(expr,_281.xmlData,_281.ns);var _28a;if(_289&&_289.length>0){_28a=_289[0];}else{return null;}var _28b=_28a.parentNode;expr="/atom:feed/atom:entry";_289=ibm.portal.xml.xpath.evaluateXPath(expr,_281.xmlData,_281.ns);for(var i=0;i<_289.length;i++){var node=_289[i];if(node!=_28a){_28b.removeChild(node);}}var _284=this;var _285=null;var _28c={url:_287,sync:(_282)?false:true,contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:function(_28d,_28e){if(_284.isAuthenticationRequired(_28e.xhr,_28e.args.handleAs)){_284.doAuthentication();}else{var type=(_28d instanceof Error)?"error":"load";if(type=="load"){if(_282){_282(_284,ibm.portal.portlet.PortletWindow.STATUS_OK,_281);}else{_285={"portletWindow":_284,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_281};}}else{if(type=="error"){if(_282){_282(_284,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_285={"portletWindow":_284,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"};var _28f="rawXhrPut";if(ibmPortalConfig&&ibmPortalConfig.xMethodOverride){_28c.headers["X-Method-Override"]="PUT";_28f="xhrPost";_28c.postData=dojox.data.dom.innerXML(_281.xmlData);}else{_28c.putData=dojox.data.dom.innerXML(_281.xmlData);}dojo[_28f](_28c);}if(this.isEnablerAvailable){this.logger.logExit(_283,_285);}return _285;},getUserProfile:function(_290){if(this.isEnablerAvailable){var _291="getUserProfile()";this.logger.logEntry(_291,_290);}if(!ibm.portal.portlet._SafeToExecute){if(_290){var me=this;this._queueUp(function(){me.getUserProfile(_290);});return false;}else{return this._throwInappropriateRequestError("getUserProfile");}}if(this.isEnablerAvailable){var _292=this;var _293=null;var _294=new ibm.portal.portlet.UserProfile(_292.isEnablerAvailable,_292.windowID,null,_292.userModel);if(_290){_290(_292,ibm.portal.portlet.PortletWindow.STATUS_OK,_294);}else{_293={"portletWindow":_292,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_294};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _295=document.getElementById("com.ibm.wps.web2.portlet.user."+this.windowID).innerHTML;var _292=this;var _293=null;dojo.xhrGet({url:_295,headers:{"X-IBM-XHR":"true","If-Modified-Since":"Thu, 1 Jan 1970 00:00:00 GMT"},sync:(_290)?false:true,handleAs:"xml",handle:function(_296,_297){if(_292.isAuthenticationRequired(_297.xhr,_297.args.handleAs)){_292.doAuthentication();}else{var type=(_296 instanceof Error)?"error":"load";if(type=="load"){var _298=_296;if(!_298||(typeof (dojox.data.dom.innerXML(_296))=="undefined")){_298=com.ibm.portal.xslt.loadXmlString(_297.xhr.responseText);}var _299=new ibm.portal.portlet.UserProfile(_292.isEnablerAvailable,_292.windowID,_298,_292.userModel);if(_290){_290(_292,ibm.portal.portlet.PortletWindow.STATUS_OK,_299);}else{_293={"portletWindow":_292,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_299};}}else{if(type=="error"){if(_290){_290(_292,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_293={"portletWindow":_292,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_291,_293);}return _293;},setUserProfile:function(_29a,_29b){if(this.isEnablerAvailable){var _29c="setUserProfile()";this.logger.logEntry(_29c,_29b);}if(!ibm.portal.portlet._SafeToExecute){if(_29b){var me=this;this._queueUp(function(){me.setUserProfile(_29a,_29b);});return false;}else{return this._throwInappropriateRequestError("setUserProfile");}}if(this.isEnablerAvailable){this.userModel.commit().start();var _29d=this;var _29e=null;if(_29b){_29b(_29d,ibm.portal.portlet.PortletWindow.STATUS_OK,_29d.userProfile);}else{_29e={"portletWindow":_29d,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_29a};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _29f=document.getElementById("com.ibm.wps.web2.portlet.user."+this.windowID).innerHTML;var _29d=this;var _29e=null;dojo.rawXhrPost({url:_29f,sync:(_29b)?false:true,postData:dojox.data.dom.innerXML(_29a.xmlData),contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:function(_2a0,_2a1){if(_29d.isAuthenticationRequired(_2a1.xhr,_2a1.args.handleAs)){_29d.doAuthentication();}else{var type=(_2a0 instanceof Error)?"error":"load";if(type=="load"){if(_29b){_29b(_29d,ibm.portal.portlet.PortletWindow.STATUS_OK,_29a);}else{_29e={"portletWindow":_29d,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_29a};}}else{if(type=="error"){if(_29b){_29b(_29d,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_29e={"portletWindow":_29d,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_29c,_29e);}return _29e;},newXMLPortletRequest:function(){return new ibm.portal.portlet.XMLPortletRequest(this);},isAuthenticationRequired:function(_2a2,_2a3){if(_2a2.readyState!=4){throw new Error("isAuthenticationRequired should only be called with a COMPLETED XMLHttpRequest! The readyState on the given XMLHttpRequest is not 4 (COMPLETE)!");}var _2a4={dojoType:"valid"};var _2a5={xhr:_2a2,args:{handleAs:_2a3}};return com.ibm.ajax.auth.isAuthenticationRequired(_2a4,_2a5);},setAuthenticationHandler:function(_2a6){this._authenticationFn=_2a6;},doAuthentication:function(){if(this._authenticationFn){this._authenticationFn();}else{com.ibm.ajax.auth.authenticationHandler();}}});if(typeof (ibmPortalConfig)=="undefined"||!ibmPortalConfig.isCSAListening){ibm.portal.portlet._SafeToExecuteDfd=new dojo.Deferred();ibm.portal.portlet._SafeToExecuteDfd.addCallback(function(){ibm.portal.portlet._SafeToExecute=true;});var f=new Function("ibm.portal.portlet._SafeToExecuteDfd.callback();");if(window.addEventListener){window.addEventListener("load",f,false);}else{if(window.attachEvent){window.attachEvent("onload",f);}}}dojo.declare("ibm.portal.portlet.PortletPreferences",null,{constructor:function(_2a7,_2a8,_2a9,_2aa,data,_2ab){this.windowID=_2a8;this.pageID=_2a9;this.requestedPreferenceID=_2aa;this.xmlData=data;this.xsltURL=dojo.moduleUrl("ibm","portal/portlet/");this.ns={"xsl":"http://www.w3.org/1999/XSL/Transform","thr":"http://purl.org/syndication/thread/1.0","atom":"http://www.w3.org/2005/Atom","xhtml":"http://www.w3.org/1999/xhtml","model":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements","base":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/ibm-portal-composite-base","portal":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model","xsi":"http://www.w3.org/2001/XMLSchema-instance"};this.isEnablerAvailable=_2a7;if(this.isEnablerAvailable){var _2ac="ibm.portal.portlet.PortletPreferences";this.logger=new ibm.portal.portlet.Logger(_2ac);var _2ad="constructor()";this.logger.logEntry(_2ad);this.logger.log(_2ad,"windowid: ${0}",_2a8);this.logger.log(_2ad,"pageid: ${0}",_2a9);this.logger.log(_2ad,"requestedpreferenceid: ${0}",_2aa);this.logger.log(_2ad,"data: ${0}",data);this.logger.log(_2ad,"widgetModel: ${0}",_2ab);this.widgetModel=_2ab;this.logger.logExit(_2ad);}else{this.widgetModel=null;this.internal_reset();}},getMap:function(){if(this.isEnablerAvailable){var _2ae="getMap()";this.logger.logEntry(_2ae);var _2af=this.getNames();var _2b0=new Array();for(var n=0;n<_2af.length;n++){var _2b1=this.getValues(_2af[n]);var _2b2=this.isReadOnly(_2af[n]);_2b0[n]={name:_2af[n],values:_2b1,readOnly:_2b2};}this.logger.logExit(_2ae,_2b0);return _2b0;}else{if(this.result_getMap){return this.result_getMap;}var _2b3=ibm.portal.xml.xslt.loadXsl(this.xsltURL+"PortletPreferencesMap.xsl");if(_2b3.documentElement==null){alert("xslDoc is null");}var _2b4=ibm.portal.xml.xslt.transform(this.xmlData,_2b3,null,{"selectionid":this.requestedPreferenceID},true);if(_2b4==null){this.result_getNames=null;return null;}var _2b5=eval(_2b4);if(_2b5){_2b5=_2b5.preferences;}this.result_getMap=_2b5;return this.result_getMap;}},getNames:function(){if(this.isEnablerAvailable){var _2b6="getNames()";this.logger.logEntry(_2b6);var _2b7=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _2b8=_2b7.getNames();this.logger.logExit(_2b6,_2b8);return _2b8;}else{if(this.result_getNames){return this.result_getNames;}var _2b9=ibm.portal.xml.xslt.loadXsl(this.xsltURL+"PortletPreferencesNames.xsl");if(_2b9.documentElement==null){alert("xslDoc is null");}var _2ba=ibm.portal.xml.xslt.transform(this.xmlData,_2b9,null,{"selectionid":this.requestedPreferenceID},true);if(_2ba==null){this.result_getNames=null;return null;}var _2bb=eval(_2ba);if(_2bb){_2bb=_2bb.names;}this.result_getNames=_2bb;return this.result_getNames;}},getValue:function(key,def){if(this.isEnablerAvailable){var _2bc="getValue()";this.logger.logEntry(_2bc);this.logger.log(_2bc,"key: ${0}",key);var _2bd=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _2be=_2bd.getValue(key);this.logger.logExit(_2bc,_2be);return _2be;}else{var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']/base:value";var _2bf=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _2be;if(_2bf&&_2bf.length>0){_2be=_2bf[0].getAttribute("value");}else{_2be=def;}return _2be;}},getValues:function(key,def){if(this.isEnablerAvailable){var _2c0="getValues()";this.logger.logEntry(_2c0);this.logger.log(_2c0,"key: ${0}",key);var _2c1=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _2c2=_2c1.getValues(key);this.logger.logExit(_2c0,_2c2);return _2c2;}else{var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']/base:value";var _2c3=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _2c2;if(_2c3&&_2c3.length>0){_2c2=new Array();for(var i=0;i<_2c3.length;i++){_2c2[i]=_2c3[i].getAttribute("value");}}else{_2c2=def;}return _2c2;}},isReadOnly:function(key){if(this.isEnablerAvailable){var _2c4="isReadOnly()";this.logger.logEntry(_2c4);this.logger.log(_2c4,"key: ${0}",key);var _2c5=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _2c6=_2c5.isReadOnly(key);this.logger.logExit(_2c4,_2c6);return _2c6;}else{var id=this.requestedPreferenceID;var expr="/atom:feed/atom:entry[atom:id='"+id+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _2c7=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _2c6=false;if(_2c7&&_2c7.length>0){var temp=_2c7[0].getAttribute("read-only");if(temp!=null){if(temp=="true"){_2c6=true;}}}return _2c6;}},reset:function(key){if(this.isEnablerAvailable){var _2c8="reset()";this.logger.logEntry(_2c8);this.logger.log(_2c8,"key: ${0}",key);var _2c9=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_2c9.remove(key);this.logger.logExit(_2c8);}else{this.internal_reset();var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _2ca=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);if(_2ca&&_2ca.length>0){var _2cb=_2ca[0];_2cb.parentNode.removeChild(_2cb);}}},setValue:function(key,_2cc){if(this.isEnablerAvailable){var _2cd="setValue()";this.logger.logEntry(_2cd);this.logger.log(_2cd,"key: ${0}",key);this.logger.log(_2cd,"value: ${0}",_2cc);var _2ce=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_2ce.setValue(key,_2cc);this.logger.logExit(_2cd);}else{var _2cf=new Array();_2cf[0]=_2cc;this.setValues(key,_2cf);}},setValues:function(key,_2d0){if(this.isEnablerAvailable){var _2d1="setValues()";this.logger.logEntry(_2d1);this.logger.log(_2d1,"key: ${0}",key);this.logger.log(_2d1,"values: ${0}",_2d0);var _2d2=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_2d2.setValues(key,_2d0);this.logger.logExit(_2d1);}else{this.internal_reset();var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _2d3=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _2d4=null;if(_2d3&&_2d3.length>0){_2d4=_2d3[0];for(var i=_2d4.childNodes.length-1;i>=0;i--){_2d4.removeChild(_2d4.childNodes[i]);}}else{var _2d5="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*";var _2d6=ibm.portal.xml.xpath.evaluateXPath(_2d5,this.xmlData,this.ns);if(dojo.isIE||window.ActiveXObject!==undefined){_2d4=this.xmlData.createNode(1,"model:portletpreferences",this.ns.model);}else{_2d4=this.xmlData.createElementNS(this.ns.model,"model:portletpreferences");}_2d4.setAttribute("name",key);_2d4.setAttribute("read-only","false");_2d6[0].appendChild(_2d4);}for(var i=0;i<_2d0.length;i++){var _2d7;if(dojo.isIE||window.ActiveXObject!==undefined){_2d7=this.xmlData.createNode(1,"base:value",this.ns.base);var _2d8=this.xmlData.createNode(2,"xsi:type",this.ns.xsi);_2d8.nodeValue="String";_2d7.setAttributeNode(_2d8);}else{_2d7=this.xmlData.createElementNS(this.ns.base,"base:value");_2d7.setAttributeNS(this.ns.xsi,"xsi:type","String");}_2d7.setAttribute("value",_2d0[i]);_2d4.appendChild(_2d7);}}},internal_reset:function(){this.result_getMap=null;this.result_getNames=null;},clone:function(){var _2d9=dojox.data.dom.innerXML(this.xmlData);var _2da=com.ibm.portal.xslt.loadXmlString(_2d9);return new ibm.portal.portlet.PortletPreferences(this.isEnablerAvailable,this.windowID,this.pageID,this.requestedPreferenceID,_2da,this.widgetModel);},getModifiablePreferences:function(_2db,_2dc,_2dd){var _2de="getModifiablePreferences()";this.logger.logEntry(_2de);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_2de,"widgetModel: ${0}",_2db);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_2de,"windowID: ${0}",_2dd);var _2df=com.ibm.mashups.enabler.navigation.Factory.getNavigationModel();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_2de,"navigationModel: ${0}",_2df);var _2e0=_2df.find(_2dc).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_2de,"selectedNode: ${0}",_2e0);var _2e1=_2df.getLayoutModel(_2e0);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_2de,"layoutModel: ${0}",_2e1);var _2e2=_2e1.find(_2dd).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_2de,"layoutControl: ${0}",_2e2);var _2e3=_2db.getWidgetWindow(_2e2).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_2de,"widgetInstance: ${0}",_2e3);var _2e4=_2db.getHierarchicalPreferences(_2e3).start();this.logger.logExit(_2de,_2e4);return _2e4;}});dojo.declare("ibm.portal.portlet.PortletMode",null,{VIEW:"view",EDIT:"edit",EDIT_DEFAULTS:"edit_defaults",HELP:"help",CONFIG:"config"});dojo.declare("ibm.portal.portlet.WindowState",null,{NORMAL:"normal",MINIMIZED:"minimized",MAXIMIZED:"maximized"});dojo.declare("ibm.portal.portlet.PortletState",null,{constructor:function(_2e5,_2e6,_2e7,_2e8){this.windowID=_2e6;this.isEnablerAvailable=_2e5;if(this.isEnablerAvailable){var _2e9="ibm.portal.portlet.PortletState";this.logger=new ibm.portal.portlet.Logger(_2e9);var _2ea="constructor()";this.logger.logEntry(_2ea);this.logger.log(_2ea,"windowid: ${0}",_2e6);this.logger.log(_2ea,"portletWindowId: ${0}",_2e7);this.logger.log(_2ea,"navigationStateModel: ${0}",_2e8);this.navigationStateModel=_2e8;this.widgetAccessor=com.ibm.mashups.enabler.model.state.AccessorFactory.getWidgetAccessor(this.navigationStateModel,this.windowID);this.logger.logExit(_2ea);}else{var _2eb=new com.ibm.portal.state.StateManager(ibmPortalConfig["contentHandlerURI"]);if(dojo.isString(_2e6)){var _2ec=this._getExistingState(_2e6,_2eb.getSerializationManager());_2eb.reset(_2ec);}else{_2eb.reset(_2e6);_2e6=_2e7;}this.portletAccessor=_2eb.newPortletAccessor(_2e6);this.renderParameters=this.portletAccessor.getRenderParameters();}},_isCSA:function(){var _2ed=false;try{_2ed=(typeof (document.isCSA)!="undefined");}catch(e){}return _2ed;},_getExistingState:function(_2ee,_2ef){var _2f0=null;if(this._isCSA()){_2f0=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState().stateDOM;}else{if(_2ef!=null){var _2f1=_2ef.deserialize(location.href);_2f0=_2f1.returnObject;}else{_2f0=com.ibm.portal.xslt.loadXmlString();}}return _2f0;},getPortletMode:function(){if(this.isEnablerAvailable){var _2f2="getPortletMode()";this.logger.logEntry(_2f2);var _2f3=this.widgetAccessor.getWidgetMode();var _2f4=null;switch(_2f3){case "view":_2f4=new ibm.portal.portlet.PortletMode().VIEW;break;case "personalize":_2f4=new ibm.portal.portlet.PortletMode().EDIT;break;case "edit":_2f4=new ibm.portal.portlet.PortletMode().EDIT_DEFAULTS;break;case "config":_2f4=new ibm.portal.portlet.PortletMode().CONFIG;break;case "help":_2f4=new ibm.portal.portlet.PortletMode().HELP;break;}this.logger.logExit(_2f2,_2f4);return _2f4;}else{return this.portletAccessor.getPortletMode();}},setPortletMode:function(_2f5){if(this.isEnablerAvailable){var _2f6="setPortletMode()";this.logger.logEntry(_2f6);this.logger.log(_2f6,"portletMode: ${0}",_2f5);var _2f7=null;switch(_2f5){case new ibm.portal.portlet.PortletMode().VIEW:_2f7="view";break;case new ibm.portal.portlet.PortletMode().EDIT:_2f7="personalize";break;case new ibm.portal.portlet.PortletMode().EDIT_DEFAULTS:_2f7="edit";break;case new ibm.portal.portlet.PortletMode().CONFIG:_2f7="config";break;case new ibm.portal.portlet.PortletMode().HELP:_2f7="help";break;}this.widgetAccessor.setWidgetMode(_2f7);this.logger.logExit(_2f6,_2f5);return _2f5;}else{this.portletAccessor.setPortletMode(_2f5);return _2f5;}},getWindowState:function(){if(this.isEnablerAvailable){var _2f8="getWindowState()";this.logger.logEntry(_2f8);var _2f9=this.widgetAccessor.getWindowState();var _2fa=null;switch(_2f9){case "normal":_2fa=new ibm.portal.portlet.WindowState().NORMAL;break;case "minimize":_2fa=new ibm.portal.portlet.WindowState().MINIMIZED;break;case "maximize":_2fa=new ibm.portal.portlet.WindowState().MAXIMIZED;break;}this.logger.logExit(_2f8,_2fa);return _2fa;}else{return this.portletAccessor.getWindowState();}},setWindowState:function(_2fb){if(this.isEnablerAvailable){var _2fc="setWindowState()";this.logger.logEntry(_2fc);this.logger.log(_2fc,"windowState: ${0}",_2fb);var _2fd=null;switch(_2fb){case new ibm.portal.portlet.WindowState().NORMAL:_2fd="normal";break;case new ibm.portal.portlet.WindowState().MINIMIZED:_2fd="minimize";break;case new ibm.portal.portlet.WindowState().MAXIMIZED:_2fd="maximize";break;}this.widgetAccessor.setWindowState(_2fd);this.logger.logExit(_2fc,_2fb);return _2fb;}else{this.portletAccessor.setWindowState(_2fb);return _2fb;}},getParameterNames:function(){if(this.isEnablerAvailable){var _2fe="getParameterNames()";this.logger.logEntry(_2fe);var _2ff=this.widgetAccessor.getWidgetStateNames();this.logger.logExit(_2fe,_2ff);return _2ff;}else{return this.renderParameters.getNames();}},getParameterValue:function(name){if(this.isEnablerAvailable){var _300="getParameterValue()";this.logger.logEntry(_300);this.logger.log(_300,"name: ${0}",name);var _301=this.widgetAccessor.getWidgetState(name);this.logger.logExit(_300,_301);return _301;}else{return this.renderParameters.getValue(name);}},getParameterValues:function(name){if(this.isEnablerAvailable){var _302="getParameterValues()";this.logger.logEntry(_302);this.logger.log(_302,"name: ${0}",name);var _303=this.widgetAccessor.getWidgetStateValues(name);this.logger.logExit(_302,_303);return _303;}else{return this.renderParameters.getValues(name);}},getParameterMap:function(){if(this.isEnablerAvailable){var _304="getParameterMap()";this.logger.logEntry(_304);var _305=this.getParameterNames();var _306=new Array();for(var n=0;n<_305.length;n++){var _307=this.getParameterValues(_305[n]);_306[n]={name:_305[n],values:_307};}this.logger.logExit(_304,_306);return _306;}else{return this.renderParameters.getMap();}},setParameterValue:function(name,_308){if(this.isEnablerAvailable){var _309="setParameterValue()";this.logger.logEntry(_309);this.logger.log(_309,"name: ${0}",name);this.logger.log(_309,"value: ${0}",_308);this.widgetAccessor.setWidgetState(name,_308);this.logger.logExit(_309,_308);return _308;}else{this.renderParameters.setValue(name,_308);return _308;}},setParameterValues:function(name,_30a){if(this.isEnablerAvailable){var _30b="setParameterValues()";this.logger.logEntry(_30b);this.logger.log(_30b,"name: ${0}",name);this.logger.log(_30b,"values: ${0}",_30a);this.widgetAccessor.setWidgetState(name,_30a);this.logger.logExit(_30b,_30a);return _30a;}else{this.renderParameters.setValues(name,_30a);return _30a;}},setParameterMap:function(map,_30c){if(this.isEnablerAvailable){var _30d="setParameterMap()";this.logger.logEntry(_30d);this.logger.log(_30d,"map: ${0}",map);this.logger.log(_30d,"replace: ${0}",_30c);for(var n=0;n0){window.location.href=this._newPageURL(_31f);}}ibm.portal.debug.exit(_320);},_isCSA:function(){var _321=this.declaredClass+"._isCSA";ibm.portal.debug.entry(_321);var _322=false;try{_322=(typeof (document.isCSA)!="undefined");}catch(e){}ibm.portal.debug.exit(_321,_322);return _322;},_flag:function(_323){var _324=this.declaredClass+"._flag";ibm.portal.debug.entry(_324,[_323]);var id="lm:oid:"+this.windowID+"@oid:"+this.pageID;var _325=new com.ibm.portal.services.PortletFragmentService();var url=_325._flagPortletUrl(_323,id);ibm.portal.debug.exit(_324,url);return url;},_newPageURL:function(_326){var _327=this.declaredClass+"._newPageURL";ibm.portal.debug.entry(_327,[_326]);ibm.portal.debug.text(dojox.data.dom.innerXML(_326));var _328=new com.ibm.portal.state.StateManager(ibmPortalConfig["contentHandlerURI"]);var _329=_326;if(!_326){_329=com.ibm.portal.xslt.loadXmlString();}_328.reset(_329);var _32a=_328.getSerializationManager();var _32b=_32a.serialize(_329);var _32c=_32b["returnObject"];var url=_32c;ibm.portal.debug.exit(_327,url);return url;},open:function(_32d,uri){var _32e=this.declaredClass+".open";ibm.portal.debug.entry(_32e,[_32d,uri]);this.open(_32d,uri,false);ibm.portal.debug.exit(_32e);},open:function(_32f,uri,_330){var _331=this.declaredClass+".open";ibm.portal.debug.entry(_331,[_32f,uri,_330]);var xhr=this._getXHR();var me=this;this._location=uri;if(_330==undefined){_330=false;}this._async=_330;xhr.onreadystatechange=function(){me._onreadystatechangehandler();};xhr.open(_32f,this._flag(uri),_330);xhr.setRequestHeader("X-IBM-XHR","true");ibm.portal.debug.exit(_331);},setRequestHeader:function(_332,_333){var _334=this.declaredClass+".setRequestHeader";ibm.portal.debug.entry(_334,[_332,_333]);this._getXHR().setRequestHeader(_332,_333);ibm.portal.debug.exit(_334);},send:function(data){var _335=this.declaredClass+".send";ibm.portal.debug.entry(_335,[data]);this._getXHR().send(data);if(!this._async){this._onreadystatechangehandler();}ibm.portal.debug.exit(_335);},abort:function(){var _336=this.declaredClass+".abort";ibm.portal.debug.entry(_336);this._getXHR().abort();ibm.portal.debug.exit(_336);},getAllResponseHeaders:function(){return this._getXHR().getAllResponseHeaders();},getResponseHeader:function(_337){return this._getXHR().getResponseHeader(_337);}});dojo.declare("ibm.portal.portlet.UserProfile",null,{constructor:function(_338,_339,data,_33a){this.windowID=_339;this.xmlData=data;this.ns={"xsl":"http://www.w3.org/1999/XSL/Transform","atom":"http://www.w3.org/2005/Atom","xhtml":"http://www.w3.org/1999/xhtml","xsi":"http://www.w3.org/2001/XMLSchema-instance","um":"http://www.ibm.com/xmlns/prod/websphere/um.xsd"};this.isEnablerAvailable=_338;if(this.isEnablerAvailable){var _33b="ibm.portal.portlet.UserProfile";this.logger=new ibm.portal.portlet.Logger(_33b);var _33c="constructor()";this.logger.logEntry(_33c);this.logger.log(_33c,"windowid: ${0}",_339);this.logger.log(_33c,"data: ${0}",data);this.logger.log(_33c,"userModel: ${0}",_33a);this.userModel=_33a;this.logger.logExit(_33c);}else{this.userModel=null;}},getAttribute:function(name){if(this.isEnablerAvailable){var _33d="getAttribute()";this.logger.logEntry(_33d);this.logger.log(_33d,"name: ${0}",name);var user=this.userModel.findCurrentUser().start();var _33e=user.getAttribute(name);this.logger.logExit(_33d,_33e);return _33e;}else{var expr="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']/um:attributeValue";var _33f=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _33e=null;if(_33f&&_33f.length>0){if(_33f[0].textContent){_33e=_33f[0].textContent;}else{_33e=_33f[0].text;}}return _33e;}},setAttribute:function(name,_340){if(this.isEnablerAvailable){var _341="setAttribute()";this.logger.logEntry(_341);this.logger.log(_341,"name: ${0}",name);this.logger.log(_341,"value: ${0}",_340);var user=this.userModel.findCurrentUser().start();var _342=user.setAttribute(name,_340);this.logger.logExit(_341,_342);return _342;}else{var expr="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']/um:attributeValue";var _343=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _342=null;if(_343&&_343.length>0){if(_343[0].textContent){_342=_343[0].textContent;_343[0].textContent=_340;}else{_342=_343[0].text;_343[0].text=_340;}}else{var _344="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']";var _345=ibm.portal.xml.xpath.evaluateXPath(_344,this.xmlData,this.ns);var _346=null;if(_345&&_345.length>0){_346=_345[0];}else{var _347="/atom:entry/atom:content/um:profile[@type='user']";var _348=ibm.portal.xml.xpath.evaluateXPath(_347,this.xmlData,this.ns);if(dojo.isIE||window.ActiveXObject!==undefined){_346=this.xmlData.createNode(1,"um:attribute",this.ns.um);}else{_346=this.xmlData.createElementNS(this.ns.um,"um:attribute");}_346.setAttribute("type","xs:string");_346.setAttribute("multiValued","false");_346.setAttribute("name",name);_348[0].appendChild(_346);}var _349;if(dojo.isIE||window.ActiveXObject!==undefined){_349=this.xmlData.createNode(1,"um:attributeValue",this.ns.um);_349.text=_340;}else{_349=this.xmlData.createElementNS(this.ns.um,"um:attributeValue");_349.textContent=_340;}_346.appendChild(_349);}return _342;}},clone:function(){var _34a=dojox.data.dom.innerXML(this.xmlData);var _34b=com.ibm.portal.xslt.loadXmlString(_34a);return new ibm.portal.portlet.UserProfile(this.isEnablerAvailable,this.windowID,_34b,this.userModel);}});dojo.declare("ibm.portal.portlet.Error",null,{INFO:0,WARN:1,ERROR:2,constructor:function(_34c,_34d,_34e){this.errorCode=_34c;this.message=_34d;this.description=_34e;},getErrorCode:function(){return this.errorCode;},getMessage:function(){return this.message;},getDescription:function(){return this.description;}});dojo.declare("ibm.portal.portlet.Logger",null,{constructor:function(_34f){this.className=_34f;this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(_34f);this.LOG_LEVEL=com.ibm.mashups.enabler.logging.LogLevel.TRACE;},logEntry:function(name,args){var _350=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_350){this.LOGGER.entering(name,args);}},log:function(name,msg,args){var _351=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_351){this.LOGGER.log(this.LOG_LEVEL,name,msg,args);}},logLevel:function(_352,name,msg,args){var _353=this.LOGGER.isLoggable(_352);if(_353){this.LOGGER.log(_352,name,msg,args);}},logExit:function(name,_354){var _355=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_355){this.LOGGER.exiting(name,_354);}}});var com_ibm_portal_portlet_portletwindow=new ibm.portal.portlet.PortletWindow();ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED=com_ibm_portal_portlet_portletwindow.STATUS_UNDEFINED;ibm.portal.portlet.PortletWindow.STATUS_OK=com_ibm_portal_portlet_portletwindow.STATUS_OK;ibm.portal.portlet.PortletWindow.STATUS_ERROR=com_ibm_portal_portlet_portletwindow.STATUS_ERROR;com_ibm_portal_portlet_portletwindow=null;var com_ibm_portal_portlet_portletmode=new ibm.portal.portlet.PortletMode();ibm.portal.portlet.PortletMode.VIEW=com_ibm_portal_portlet_portletmode.VIEW;ibm.portal.portlet.PortletMode.EDIT=com_ibm_portal_portlet_portletmode.EDIT;ibm.portal.portlet.PortletMode.EDIT_DEFAULTS=com_ibm_portal_portlet_portletmode.EDIT_DEFAULTS;ibm.portal.portlet.PortletMode.HELP=com_ibm_portal_portlet_portletmode.HELP;ibm.portal.portlet.PortletMode.CONFIG=com_ibm_portal_portlet_portletmode.CONFIG;com_ibm_portal_portlet_portletmode=null;var com_ibm_portal_portlet_windowstate=new ibm.portal.portlet.WindowState();ibm.portal.portlet.WindowState.NORMAL=com_ibm_portal_portlet_windowstate.NORMAL;ibm.portal.portlet.WindowState.MINIMIZED=com_ibm_portal_portlet_windowstate.MINIMIZED;ibm.portal.portlet.WindowState.MAXIMIZED=com_ibm_portal_portlet_windowstate.MAXIMIZED;com_ibm_portal_portlet_windowstate=null;var com_ibm_portal_portlet_error=new ibm.portal.portlet.Error();ibm.portal.portlet.Error.INFO=com_ibm_portal_portlet_error.INFO;ibm.portal.portlet.Error.WARN=com_ibm_portal_portlet_error.WARN;ibm.portal.portlet.Error.ERROR=com_ibm_portal_portlet_error.ERROR;com_ibm_portal_portlet_error=null;}if(!dojo._hasResource["com.ibm.wcm.layer.base"]){dojo._hasResource["com.ibm.wcm.layer.base"]=true;dojo.provide("com.ibm.wcm.layer.base");} (function(){ if(i$.isIE){ document.createElement('article'); document.createElement('aside'); document.createElement('footer'); document.createElement('header'); document.createElement('hgroup'); document.createElement('nav'); document.createElement('section'); } if(i$.isIE == 7){ document.getElementsByTagName("html")[0].className+=" wptheme_ie7"; } if(i$.isIE == 8){ document.getElementsByTagName("html")[0].className+=" wptheme_ie8"; } })();