/* 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/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_10,_11,_12,_13){return _11("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_14,_15){var _16=this.containerNode;if(_15&&typeof _15=="number"){var _17=this.getChildren();if(_17&&_17.length>=_15){_16=_17[_15-1].domNode;_15="after";}}_12.place(_14.domNode,_16,_15);if(this._started&&!_14._started){_14.startup();}},removeChild:function(_18){if(typeof _18=="number"){_18=this.getChildren()[_18];}if(_18){var _19=_18.domNode;if(_19&&_19.parentNode){_19.parentNode.removeChild(_19);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_1a,dir){var _1b=_1a.domNode,_1c=(dir>0?"nextSibling":"previousSibling");do{_1b=_1b[_1c];}while(_1b&&(_1b.nodeType!=1||!_13.byNode(_1b)));return _1b&&_13.byNode(_1b);},getIndexOfChild:function(_1d){return _10.indexOf(this.getChildren(),_1d);}});});},"dijit/_base/scroll":function(){define("dijit/_base/scroll",["dojo/window",".."],function(_1e,_1f){_1f.scrollIntoView=function(_20,pos){_1e.scrollIntoView(_20,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(_21,_22,_23,_24,_25,_26,_27,_28,has,win){return _25("dijit.layout._LayoutWidget",[_22,_23,_24],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);_26.add(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _29=this.getParent&&this.getParent();if(!(_29&&_29.isLayoutContainer)){this.resize();this.connect(win.global,"onresize",function(){this.resize();});}},resize:function(_2a,_2b){var _2c=this.domNode;if(_2a){_27.setMarginBox(_2c,_2a);}var mb=_2b||{};_21.mixin(mb,_2a||{});if(!("h" in mb)||!("w" in mb)){mb=_21.mixin(_27.getMarginBox(_2c),mb);}var cs=_28.getComputedStyle(_2c);var me=_27.getMarginExtents(_2c,cs);var be=_27.getBorderExtents(_2c,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=_27.getPadExtents(_2c,cs);this._contentBox={l:_28.toPixelValue(_2c,cs.paddingLeft),t:_28.toPixelValue(_2c,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_2d){var cls=this.baseClass+"-child "+(_2d.baseClass?this.baseClass+"-"+_2d.baseClass:"");_26.add(_2d.domNode,cls);},addChild:function(_2e,_2f){this.inherited(arguments);if(this._started){this._setupChild(_2e);}},removeChild:function(_30){var cls=this.baseClass+"-child"+(_30.baseClass?" "+this.baseClass+"-"+_30.baseClass:"");_26.remove(_30.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(_31){return _31._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(_32,_33,_34,_35,_36,_37,has,win,_38,_39){return _33("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_3a){this._set("disabled",_3a);_34.set(this.focusNode,"disabled",_3a);if(this.valueNode){_34.set(this.valueNode,"disabled",_3a);}this.focusNode.setAttribute("aria-disabled",_3a?"true":"false");if(_3a){this._set("hovering",false);this._set("active",false);var _3b="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_32.forEach(_36.isArray(_3b)?_3b:[_3b],function(_3c){var _3d=this[_3c];if(has("webkit")||_39.hasDefaultTabStop(_3d)){_3d.setAttribute("tabIndex","-1");}else{_3d.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.set("tabIndex",this.tabIndex);}}},_onFocus:function(by){if(by=="mouse"&&this.isFocusable()){var _3e=this.connect(this.focusNode,"onfocus",function(){this.disconnect(_3f);this.disconnect(_3e);});var _3f=this.connect(win.body(),"onmouseup",function(){this.disconnect(_3f);this.disconnect(_3e);if(this.focused){this.focus();}});}if(this.scrollOnFocus){this.defer(function(){_38.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_35.get(this.domNode,"display")!="none");},focus:function(){if(!this.disabled&&this.focusNode.focus){try{this.focusNode.focus();}catch(e){}}},compare:function(_40,_41){if(typeof _40=="number"&&typeof _41=="number"){return (isNaN(_40)&&isNaN(_41))?0:_40-_41;}else{if(_40>_41){return 1;}else{if(_40<_41){return -1;}else{return 0;}}}},onChange:function(){},_onChangeActive:false,_handleOnChange:function(_42,_43){if(this._lastValueReported==undefined&&(_43===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_42;}this._pendingOnChange=this._pendingOnChange||(typeof _42!=typeof this._lastValueReported)||(this.compare(_42,this._lastValueReported)!=0);if((this.intermediateChanges||_43||_43===undefined)&&this._pendingOnChange){this._lastValueReported=_42;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_42);});}}},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(_44,_45,_46,_47,_48,_49,on,has,win){var _4a=new function(){var _4b=[];this.pop=function(){var _4c;if(_4b.length){_4c=_4b.pop();_4c.style.display="";}else{if(has("ie")<9){var _4d=_46["dojoBlankHtmlUrl"]||_44.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var _4e="");}};_e1.setInitialState=function(_fc){_e7=_f4(_e5,_fc,_e6);};_e1.addToHistory=function(_fd){_eb=[];var _fe=null;var url=null;if(!_ea){if(_db.config["useXDomain"]&&!_db.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");}_ea=window.frames["dj_history"];}if(!_e9){_e9=_de.create("a",{style:{display:"none"}},_df.body());}if(_fd["changeUrl"]){_fe=""+((_fd["changeUrl"]!==true)?_fd["changeUrl"]:(new Date()).getTime());if(_ec.length==0&&_e7.urlHash==_fe){_e7=_f4(url,_fd,_fe);return;}else{if(_ec.length>0&&_ec[_ec.length-1].urlHash==_fe){_ec[_ec.length-1]=_f4(url,_fd,_fe);return;}}_ee=true;setTimeout(function(){_e3(_fe);_ee=false;},1);_e9.href=_fe;if(_dd("ie")){url=_f9();var _ff=_fd["back"]||_fd["backButton"]||_fd["handle"];var tcb=function(_100){if(_e2()!=""){setTimeout(function(){_e3(_fe);},1);}_ff.apply(this,[_100]);};if(_fd["back"]){_fd.back=tcb;}else{if(_fd["backButton"]){_fd.backButton=tcb;}else{if(_fd["handle"]){_fd.handle=tcb;}}}var _101=_fd["forward"]||_fd["forwardButton"]||_fd["handle"];var tfw=function(_102){if(_e2()!=""){_e3(_fe);}if(_101){_101.apply(this,[_102]);}};if(_fd["forward"]){_fd.forward=tfw;}else{if(_fd["forwardButton"]){_fd.forwardButton=tfw;}else{if(_fd["handle"]){_fd.handle=tfw;}}}}else{if(!_dd("ie")){if(!_e8){_e8=setInterval(_fa,200);}}}}else{url=_f9();}_ec.push(_f4(url,_fd,_fe));};_e1._iframeLoaded=function(evt,_103){var _104=_f7(_103.href);if(_104==null){if(_ec.length==1){_ef();}return;}if(_ed){_ed=false;return;}if(_ec.length>=2&&_104==_f7(_ec[_ec.length-2].url)){_ef();}else{if(_eb.length>0&&_104==_f7(_eb[_eb.length-1].url)){_f2();}}};return _db.back;});},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","./_base/xhr"],function(dojo,_105,has,xhr){var _106;if(1){_106=function(url,sync,load){xhr("GET",{url:url,sync:!!sync,load:load});};}else{if(_105.getText){_106=_105.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _107={},_108=function(text){if(text){text=text.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _109=text.match(/]*>\s*([\s\S]+)\s*<\/body>/im);if(_109){text=_109[1];}}else{text="";}return text;},_10a={},_10b={},_10c={dynamic:true,normalize:function(id,_10d){var _10e=id.split("!"),url=_10e[0];return (/^\./.test(url)?_10d(url):url)+(_10e[1]?"!"+_10e[1]:"");},load:function(id,_10f,load){var _110=id.split("!"),_111=_110.length>1,_112=_110[0],url=_10f.toUrl(_110[0]),text=_10a,_113=function(text){load(_111?_108(text):text);};if(_112 in _107){text=_107[_112];}else{if(url in _10f.cache){text=_10f.cache[url];}else{if(url in _107){text=_107[url];}}}if(text===_10a){if(_10b[url]){_10b[url].push(_113);}else{var _114=_10b[url]=[_113];_106(url,!_10f.async,function(text){_107[_112]=_107[url]=text;for(var i=0;i<_114.length;){_114[i++](text);}delete _10b[url];});}}else{_113(text);}}};dojo.cache=function(_115,url,_116){var key;if(typeof _115=="string"){if(/\//.test(_115)){key=_115;_116=url;}else{key=_105.toUrl(_115.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_115+"";_116=url;}var val=(_116!=undefined&&typeof _116!="string")?_116.value:_116,_117=_116&&_116.sanitize;if(typeof val=="string"){_107[key]=val;return _117?_108(val):val;}else{if(val===null){delete _107[key];return null;}else{if(!(key in _107)){_106(key,true,function(text){_107[key]=text;});}return _117?_108(_107[key]):_107[key];}}};return _10c;});},"dojo/DeferredList":function(){define("dojo/DeferredList",["./_base/kernel","./_base/Deferred","./_base/array"],function(dojo,_118,_119){dojo.DeferredList=function(list,_11a,_11b,_11c,_11d){var _11e=[];_118.call(this);var self=this;if(list.length===0&&!_11a){this.resolve([0,[]]);}var _11f=0;_119.forEach(list,function(item,i){item.then(function(_120){if(_11a){self.resolve([i,_120]);}else{_121(true,_120);}},function(_122){if(_11b){self.reject(_122);}else{_121(false,_122);}if(_11c){return null;}throw _122;});function _121(_123,_124){_11e[i]=[_123,_124];_11f++;if(_11f===list.length){self.resolve(_11e);}};});};dojo.DeferredList.prototype=new _118();dojo.DeferredList.prototype.gatherResults=function(_125){var d=new dojo.DeferredList(_125,false,true,false);d.addCallback(function(_126){var ret=[];_119.forEach(_126,function(_127){ret.push(_127[1]);});return ret;});return d;};return dojo.DeferredList;});},"dojo/cookie":function(){define("dojo/cookie",["./_base/kernel","./regexp"],function(dojo,_128){dojo.cookie=function(name,_129,_12a){var c=document.cookie,ret;if(arguments.length==1){var _12b=c.match(new RegExp("(?:^|; )"+_128.escapeString(name)+"=([^;]*)"));ret=_12b?decodeURIComponent(_12b[1]):undefined;}else{_12a=_12a||{};var exp=_12a.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_12a.expires=d;}if(exp&&exp.toUTCString){_12a.expires=exp.toUTCString();}_129=encodeURIComponent(_129);var _12c=name+"="+_129,_12d;for(_12d in _12a){_12c+="; "+_12d;var _12e=_12a[_12d];if(_12e!==true){_12c+="="+_12e;}}document.cookie=_12c;}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,_12f){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_12f&&_12f.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_130){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",["dojo/_base/lang","dojo/_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",["dojo/_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",["dojo/_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","./on","./has","./mouse"],function(_1,on,_2,_3){function _4(_5){return function(_6,_7){return on(_6,_5,_7);};};var _8=_2("touch");_1.touch={press:_4(_8?"touchstart":"mousedown"),move:_4(_8?"touchmove":"mousemove"),release:_4(_8?"touchend":"mouseup"),cancel:_8?_4("touchcancel"):_3.leave};return _1.touch;});},"dojo/dnd/TimedMoveable":function(){define("dojo/dnd/TimedMoveable",["../main","./Moveable"],function(_9){var _a=_9.dnd.Moveable.prototype.onMove;_9.declare("dojo.dnd.TimedMoveable",_9.dnd.Moveable,{timeout:40,constructor:function(_b,_c){if(!_c){_c={};}if(_c.timeout&&typeof _c.timeout=="number"&&_c.timeout>=0){this.timeout=_c.timeout;}},onMoveStop:function(_d){if(_d._timer){clearTimeout(_d._timer);_a.call(this,_d,_d._leftTop);}_9.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_e,_f){_e._leftTop=_f;if(!_e._timer){var _10=this;_e._timer=setTimeout(function(){_e._timer=null;_a.call(_10,_e,_e._leftTop);},this.timeout);}}});return _9.dnd.TimedMoveable;});},"dojo/dnd/Moveable":function(){define("dojo/dnd/Moveable",["../main","../Evented","../touch","./Mover"],function(_11,_12,_13){_11.declare("dojo.dnd.Moveable",[_12],{handle:"",delay:0,skip:false,constructor:function(_14,_15){this.node=_11.byId(_14);if(!_15){_15={};}this.handle=_15.handle?_11.byId(_15.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_15.delay>0?_15.delay:0;this.skip=_15.skip;this.mover=_15.mover?_15.mover:_11.dnd.Mover;this.events=[_11.connect(this.handle,_13.press,this,"onMouseDown"),_11.connect(this.handle,"ondragstart",this,"onSelectStart"),_11.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_16,_17,_18){return new _18(_17,_16);},destroy:function(){_11.forEach(this.events,_11.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&_11.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(_11.connect(this.handle,_13.move,this,"onMouseMove"),_11.connect(this.handle,_13.release,this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}_11.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);}_11.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){_11.disconnect(this.events.pop());}_11.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!_11.dnd.isFormElement(e)){_11.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_19){_11.publish("/dnd/move/start",[_19]);_11.addClass(_11.body(),"dojoMove");_11.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_1a){_11.publish("/dnd/move/stop",[_1a]);_11.removeClass(_11.body(),"dojoMove");_11.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_1b,e){},onMove:function(_1c,_1d,e){this.onMoving(_1c,_1d);var s=_1c.node.style;s.left=_1d.l+"px";s.top=_1d.t+"px";this.onMoved(_1c,_1d);},onMoving:function(_1e,_1f){},onMoved:function(_20,_21){}});return _11.dnd.Moveable;});},"dojo/window":function(){define("dojo/window",["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(_22,has,_23,dom,_24,_25){var _26=_22.getObject("dojo.window",true);_26.getBox=function(){var _27=(_23.doc.compatMode=="BackCompat")?_23.body():_23.doc.documentElement,_28=_24.docScroll(),w,h;if(has("touch")){var _29=_23.doc.parentWindow||_23.doc.defaultView;w=_29.innerWidth||_27.clientWidth;h=_29.innerHeight||_27.clientHeight;}else{w=_27.clientWidth;h=_27.clientHeight;}return {l:_28.x,t:_28.y,w:w,h:h};};_26.get=function(doc){if(has("ie")&&_26!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_26.scrollIntoView=function(_2a,pos){try{_2a=dom.byId(_2a);var doc=_2a.ownerDocument||_23.doc,_2b=doc.body||_23.body(),_2c=doc.documentElement||_2b.parentNode,_2d=has("ie"),_2e=has("webkit");if((!(has("mozilla")||_2d||_2e||has("opera"))||_2a==_2b||_2a==_2c)&&(typeof _2a.scrollIntoView!="undefined")){_2a.scrollIntoView(false);return;}var _2f=doc.compatMode=="BackCompat",_30=(_2d>=9&&_2a.ownerDocument.parentWindow.frameElement)?((_2c.clientHeight>0&&_2c.clientWidth>0&&(_2b.clientHeight==0||_2b.clientWidth==0||_2b.clientHeight>_2c.clientHeight||_2b.clientWidth>_2c.clientWidth))?_2c:_2b):(_2f?_2b:_2c),_31=_2e?_2b:_30,_32=_30.clientWidth,_33=_30.clientHeight,rtl=!_24.isBodyLtr(),_34=pos||_24.position(_2a),el=_2a.parentNode,_35=function(el){return ((_2d<=6||(_2d&&_2f))?false:(_25.get(el,"position").toLowerCase()=="fixed"));};if(_35(_2a)){return;}while(el){if(el==_2b){el=_31;}var _36=_24.position(el),_37=_35(el);if(el==_31){_36.w=_32;_36.h=_33;if(_31==_2c&&_2d&&rtl){_36.x+=_31.offsetWidth-_36.w;}if(_36.x<0||!_2d){_36.x=0;}if(_36.y<0||!_2d){_36.y=0;}}else{var pb=_24.getPadBorderExtents(el);_36.w-=pb.w;_36.h-=pb.h;_36.x+=pb.l;_36.y+=pb.t;var _38=el.clientWidth,_39=_36.w-_38;if(_38>0&&_39>0){_36.w=_38;_36.x+=(rtl&&(_2d||el.clientLeft>pb.l))?_39:0;}_38=el.clientHeight;_39=_36.h-_38;if(_38>0&&_39>0){_36.h=_38;}}if(_37){if(_36.y<0){_36.h+=_36.y;_36.y=0;}if(_36.x<0){_36.w+=_36.x;_36.x=0;}if(_36.y+_36.h>_33){_36.h=_33-_36.y;}if(_36.x+_36.w>_32){_36.w=_32-_36.x;}}var l=_34.x-_36.x,t=_34.y-Math.max(_36.y,0),r=l+_34.w-_36.w,bot=t+_34.h-_36.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((_2d==8&&!_2f)||_2d>=9)){s=-s;}_34.x+=el.scrollLeft;el.scrollLeft+=s;_34.x-=el.scrollLeft;}if(bot*t>0){_34.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_34.y-=el.scrollTop;}el=(el!=_31)&&!_37&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_2a.scrollIntoView(false);}};return _26;});},"dojo/dnd/Mover":function(){define("dojo/dnd/Mover",["../main","../Evented","../touch","./common","./autoscroll"],function(_3a,_3b,_3c){_3a.declare("dojo.dnd.Mover",[_3b],{constructor:function(_3d,e,_3e){this.node=_3a.byId(_3d);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=(this.host=_3e),d=_3d.ownerDocument;this.events=[_3a.connect(d,_3c.move,this,"onFirstMove"),_3a.connect(d,_3c.move,this,"onMouseMove"),_3a.connect(d,_3c.release,this,"onMouseUp"),_3a.connect(d,"ondragstart",_3a.stopEvent),_3a.connect(d.body,"onselectstart",_3a.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_3a.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);_3a.stopEvent(e);},onMouseUp:function(e){if(_3a.isWebKit&&_3a.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}_3a.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=_3a.marginBox(this.node);var b=_3a.doc.body;var bs=_3a.getComputedStyle(b);var bm=_3a._getMarginBox(b,bs);var bc=_3a._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);}_3a.disconnect(this.events.shift());},destroy:function(){_3a.forEach(this.events,_3a.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});return _3a.dnd.Mover;});},"dojo/dnd/move":function(){define("dojo/dnd/move",["../main","./Mover","./Moveable"],function(_3f){_3f.declare("dojo.dnd.move.constrainedMoveable",_3f.dnd.Moveable,{constraints:function(){},within:false,constructor:function(_40,_41){if(!_41){_41={};}this.constraints=_41.constraints;this.within=_41.within;},onFirstMove:function(_42){var c=this.constraintBox=this.constraints.call(this,_42);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=_3f._getMarginSize(_42.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_43,_44){var c=this.constraintBox,s=_43.node.style;this.onMoving(_43,_44);_44.l=_44.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","./on","./has","./mouse"],function(_1,on,_2,_3){function _4(_5){return function(_6,_7){return on(_6,_5,_7);};};var _8=_2("touch");_1.touch={press:_4(_8?"touchstart":"mousedown"),move:_4(_8?"touchmove":"mousemove"),release:_4(_8?"touchend":"mouseup"),cancel:_8?_4("touchcancel"):_3.leave};return _1.touch;});},"dojo/date/stamp":function(){define("dojo/date/stamp",["../_base/kernel","../_base/lang","../_base/array"],function(_9,_a,_b){_a.getObject("date.stamp",true,_9);_9.date.stamp.fromISOString=function(_c,_d){if(!_9.date.stamp._isoRegExp){_9.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _e=_9.date.stamp._isoRegExp.exec(_c),_f=null;if(_e){_e.shift();if(_e[1]){_e[1]--;}if(_e[6]){_e[6]*=1000;}if(_d){_d=new Date(_d);_b.forEach(_b.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_10){return _d["get"+_10]();}),function(_11,_12){_e[_12]=_e[_12]||_11;});}_f=new Date(_e[0]||1970,_e[1]||0,_e[2]||1,_e[3]||0,_e[4]||0,_e[5]||0,_e[6]||0);if(_e[0]<100){_f.setFullYear(_e[0]||1970);}var _13=0,_14=_e[7]&&_e[7].charAt(0);if(_14!="Z"){_13=((_e[8]||0)*60)+(Number(_e[9])||0);if(_14!="-"){_13*=-1;}}if(_14){_13-=_f.getTimezoneOffset();}if(_13){_f.setTime(_f.getTime()+_13*60000);}}return _f;};_9.date.stamp.toISOString=function(_15,_16){var _17=function(n){return (n<10)?"0"+n:n;};_16=_16||{};var _18=[],_19=_16.zulu?"getUTC":"get",_1a="";if(_16.selector!="time"){var _1b=_15[_19+"FullYear"]();_1a=["0000".substr((_1b+"").length)+_1b,_17(_15[_19+"Month"]()+1),_17(_15[_19+"Date"]())].join("-");}_18.push(_1a);if(_16.selector!="date"){var _1c=[_17(_15[_19+"Hours"]()),_17(_15[_19+"Minutes"]()),_17(_15[_19+"Seconds"]())].join(":");var _1d=_15[_19+"Milliseconds"]();if(_16.milliseconds){_1c+="."+(_1d<100?"0":"")+_17(_1d);}if(_16.zulu){_1c+="Z";}else{if(_16.selector!="time"){var _1e=_15.getTimezoneOffset();var _1f=Math.abs(_1e);_1c+=(_1e>0?"-":"+")+_17(Math.floor(_1f/60))+":"+_17(_1f%60);}}_18.push(_1c);}return _18.join("T");};return _9.date.stamp;});},"dojo/_base/url":function(){define("dojo/_base/url",["./kernel"],function(_20){var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_21=function(){var n=null,_22=arguments,uri=[_22[0]];for(var i=1;i<_22.length;i++){if(!_22[i]){continue;}var _23=new _21(_22[i]+""),_24=new _21(uri[0]+"");if(_23.path==""&&!_23.scheme&&!_23.authority&&!_23.query){if(_23.fragment!=n){_24.fragment=_23.fragment;}_23=_24;}else{if(!_23.scheme){_23.scheme=_24.scheme;if(!_23.authority){_23.authority=_24.authority;if(_23.path.charAt(0)!="/"){var _25=_24.path.substring(0,_24.path.lastIndexOf("/")+1)+_23.path;var _26=_25.split("/");for(var j=0;j<_26.length;j++){if(_26[j]=="."){if(j==_26.length-1){_26[j]="";}else{_26.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_26[0]=="")&&_26[j]==".."&&_26[j-1]!=".."){if(j==(_26.length-1)){_26.splice(j,1);_26[j-1]="";}else{_26.splice(j-1,2);j-=2;}}}}_23.path=_26.join("/");}}}}uri=[];if(_23.scheme){uri.push(_23.scheme,":");}if(_23.authority){uri.push("//",_23.authority);}uri.push(_23.path);if(_23.query){uri.push("?",_23.query);}if(_23.fragment){uri.push("#",_23.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;}};_21.prototype.toString=function(){return this.uri;};return _20._Url=_21;});},"dojo/html":function(){define("dojo/html",["./_base/kernel","./_base/lang","./_base/array","./_base/declare","./dom","./dom-construct","./parser"],function(_27,_28,_29,_2a,dom,_2b,_2c){_28.getObject("html",true,_27);var _2d=0;_27.html._secureForInnerHtml=function(_2e){return _2e.replace(/(?:\s*]+>|]*>[\s\S]*?<\/title>)/ig,"");};_27.html._emptyNode=_2b.empty;_27.html._setNodeContent=function(_2f,_30){_2b.empty(_2f);if(_30){if(typeof _30=="string"){_30=_2b.toDom(_30,_2f.ownerDocument);}if(!_30.nodeType&&_28.isArrayLike(_30)){for(var _31=_30.length,i=0;i<_30.length;i=_31==_30.length?i+1:0){_2b.place(_30[i],_2f,"last");}}else{_2b.place(_30,_2f,"last");}}return _2f;};_2a("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:_27._scopeName,startup:true,constructor:function(_32,_33){_28.mixin(this,_32||{});_33=this.node=dom.byId(this.node||_33);if(!this.id){this.id=["Setter",(_33)?_33.id||_33.tagName:"",_2d++].join("_");}},set:function(_34,_35){if(undefined!==_34){this.content=_34;}if(_35){this._mixin(_35);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var _36=this.node;if(!_36){throw new Error(this.declaredClass+": setContent given no node");}try{_36=_27.html._setNodeContent(_36,this.content);}catch(e){var _37=this.onContentError(e);try{_36.innerHTML=_37;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=_36;},empty:function(){if(this.parseResults&&this.parseResults.length){_29.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}_27.html._emptyNode(this.node);},onBegin:function(){var _38=this.content;if(_28.isString(_38)){if(this.cleanContent){_38=_27.html._secureForInnerHtml(_38);}if(this.extractContent){var _39=_38.match(/]*>\s*([\s\S]+)\s*<\/body>/im);if(_39){_38=_39[1];}}}this.empty();this.content=_38;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(_3a){var _3b={},key;for(key in _3a){if(key in _3b){continue;}this[key]=_3a[key];}},_parse:function(){var _3c=this.node;try{var _3d={};_29.forEach(["dir","lang","textDir"],function(_3e){if(this[_3e]){_3d[_3e]=this[_3e];}},this);this.parseResults=_2c.parse({rootNode:_3c,noStart:!this.startup,inherited:_3d,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(_3f,err,_40){var _41=this["on"+_3f+"Error"].call(this,err);if(_40){console.error(_40,err);}else{if(_41){_27.html._setNodeContent(this.node,_41,true);}}}});_27.html.set=function(_42,_43,_44){if(undefined==_43){console.warn("dojo.html.set: no cont argument provided, using empty string");_43="";}if(!_44){return _27.html._setNodeContent(_42,_43,true);}else{var op=new _27.html._ContentSetter(_28.mixin(_44,{content:_43,node:_42}));return op.set();}};return _27.html;});},"dojo/uacss":function(){define("dojo/uacss",["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_45,_46,_47,has,_48){var _49=_48.doc.documentElement,ie=has("ie"),_4a=has("opera"),maj=Math.floor,ff=has("ff"),_4b=_45.boxModel.replace(/-/,""),_4c={"dj_ie":ie,"dj_ie6":maj(ie)==6,"dj_ie7":maj(ie)==7,"dj_ie8":maj(ie)==8,"dj_ie9":maj(ie)==9,"dj_quirks":has("quirks"),"dj_iequirks":ie&&has("quirks"),"dj_opera":_4a,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla"),"dj_ff3":maj(ff)==3};_4c["dj_"+_4b]=true;var _4d="";for(var clz in _4c){if(_4c[clz]){_4d+=clz+" ";}}_49.className=_46.trim(_49.className+" "+_4d);_47(90,function(){if(!_45.isBodyLtr()){var _4e="dj_rtl dijitRtl "+_4d.replace(/ /g,"-rtl ");_49.className=_46.trim(_49.className+" "+_4e+"dj_rtl dijitRtl "+_4d.replace(/ /g,"-rtl "));}});return has;});},"dojo/window":function(){define("dojo/window",["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(_4f,has,_50,dom,_51,_52){var _53=_4f.getObject("dojo.window",true);_53.getBox=function(){var _54=(_50.doc.compatMode=="BackCompat")?_50.body():_50.doc.documentElement,_55=_51.docScroll(),w,h;if(has("touch")){var _56=_50.doc.parentWindow||_50.doc.defaultView;w=_56.innerWidth||_54.clientWidth;h=_56.innerHeight||_54.clientHeight;}else{w=_54.clientWidth;h=_54.clientHeight;}return {l:_55.x,t:_55.y,w:w,h:h};};_53.get=function(doc){if(has("ie")&&_53!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_53.scrollIntoView=function(_57,pos){try{_57=dom.byId(_57);var doc=_57.ownerDocument||_50.doc,_58=doc.body||_50.body(),_59=doc.documentElement||_58.parentNode,_5a=has("ie"),_5b=has("webkit");if((!(has("mozilla")||_5a||_5b||has("opera"))||_57==_58||_57==_59)&&(typeof _57.scrollIntoView!="undefined")){_57.scrollIntoView(false);return;}var _5c=doc.compatMode=="BackCompat",_5d=(_5a>=9&&_57.ownerDocument.parentWindow.frameElement)?((_59.clientHeight>0&&_59.clientWidth>0&&(_58.clientHeight==0||_58.clientWidth==0||_58.clientHeight>_59.clientHeight||_58.clientWidth>_59.clientWidth))?_59:_58):(_5c?_58:_59),_5e=_5b?_58:_5d,_5f=_5d.clientWidth,_60=_5d.clientHeight,rtl=!_51.isBodyLtr(),_61=pos||_51.position(_57),el=_57.parentNode,_62=function(el){return ((_5a<=6||(_5a&&_5c))?false:(_52.get(el,"position").toLowerCase()=="fixed"));};if(_62(_57)){return;}while(el){if(el==_58){el=_5e;}var _63=_51.position(el),_64=_62(el);if(el==_5e){_63.w=_5f;_63.h=_60;if(_5e==_59&&_5a&&rtl){_63.x+=_5e.offsetWidth-_63.w;}if(_63.x<0||!_5a){_63.x=0;}if(_63.y<0||!_5a){_63.y=0;}}else{var pb=_51.getPadBorderExtents(el);_63.w-=pb.w;_63.h-=pb.h;_63.x+=pb.l;_63.y+=pb.t;var _65=el.clientWidth,_66=_63.w-_65;if(_65>0&&_66>0){_63.w=_65;_63.x+=(rtl&&(_5a||el.clientLeft>pb.l))?_66:0;}_65=el.clientHeight;_66=_63.h-_65;if(_65>0&&_66>0){_63.h=_65;}}if(_64){if(_63.y<0){_63.h+=_63.y;_63.y=0;}if(_63.x<0){_63.w+=_63.x;_63.x=0;}if(_63.y+_63.h>_60){_63.h=_60-_63.y;}if(_63.x+_63.w>_5f){_63.w=_5f-_63.x;}}var l=_61.x-_63.x,t=_61.y-Math.max(_63.y,0),r=l+_61.w-_63.w,bot=t+_61.h-_63.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((_5a==8&&!_5c)||_5a>=9)){s=-s;}_61.x+=el.scrollLeft;el.scrollLeft+=s;_61.x-=el.scrollLeft;}if(bot*t>0){_61.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_61.y-=el.scrollTop;}el=(el!=_5e)&&!_64&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_57.scrollIntoView(false);}};return _53;});},"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(_67,_68,_69,_6a,_6b,_6c,_6d,_6e,_6f,_70,has,_71,don,_72){new Date("X");if(1){var _73=document.createElement("form");has.add("dom-attributes-explicit",_73.attributes.length==0);has.add("dom-attributes-specified-flag",_73.attributes.length<40);}_67.parser=new function(){var _74={};function _75(_76){var map={};for(var _77 in _76){if(_77.charAt(0)=="_"){continue;}map[_77.toLowerCase()]=_77;}return map;};_6f.after(_68,"extend",function(){_74={};},true);var _78={};function _79(_7a){var map=_78[_7a]||(_78[_7a]={});return map["__type"]||(map["__type"]=(_68.getObject(_7a)||require(_7a)));};this._functionFromScript=function(_7b,_7c){var _7d="";var _7e="";var _7f=(_7b.getAttribute(_7c+"args")||_7b.getAttribute("args"));if(_7f){_69.forEach(_7f.split(/\s*,\s*/),function(_80,idx){_7d+="var "+_80+" = arguments["+idx+"]; ";});}var _81=_7b.getAttribute("with");if(_81&&_81.length){_69.forEach(_81.split(/\s*,\s*/),function(_82){_7d+="with("+_82+"){";_7e+="}";});}return new Function(_7d+_7b.innerHTML+_7e);};this.instantiate=function(_83,_84,_85){_84=_84||{};_85=_85||{};var _86=(_85.scope||_67._scopeName)+"Type",_87="data-"+(_85.scope||_67._scopeName)+"-",_88=_87+"type";var _89=[];_69.forEach(_83,function(_8a){var _8b=_86 in _84?_84[_86]:_8a.getAttribute(_88)||_8a.getAttribute(_86);if(_8b){_89.push({node:_8a,"type":_8b});}});return this._instantiate(_89,_84,_85);};this._instantiate=function(_8c,_8d,_8e){var _8f=[];var _90=(_8e.scope||_67._scopeName)+"Type",_91="data-"+(_8e.scope||_67._scopeName)+"-",_92=_91+"type",_93=_91+"props",_94=_91+"attach-point",_95=_91+"attach-event",_96=_91+"id",_97=_91+"mixins";var _98={};_69.forEach([_93,_92,_90,_96,"jsId",_94,_95,"dojoAttachPoint","dojoAttachEvent","class","style",_97],function(_99){_98[_99.toLowerCase()]=_99.replace(_8e.scope,"dojo");});function _9a(_9b,_9c){return _9b.createSubclass&&_9b.createSubclass(_9c)||_9b.extend.apply(_9b,_9c);};_69.forEach(_8c,function(obj){if(!obj){return;}var _9d=obj.node,_9e=obj.type,_9f=_9d.getAttribute(_97),_a0;if(_9f){var map=_78[_9e];_9f=_9f.replace(/ /g,"");_a0=map&&map[_9f];if(!_a0){_a0=_79(_9e);_a0=_78[_9e][_9f]=_9a(_a0,_69.map(_9f.split(","),_79));}}else{_a0=_79(_9e);}var _a1=_a0&&_a0.prototype;var _a2={};if(_8e.defaults){_68.mixin(_a2,_8e.defaults);}if(obj.inherited){_68.mixin(_a2,obj.inherited);}var _a3;if(has("dom-attributes-explicit")){_a3=_9d.attributes;}else{if(has("dom-attributes-specified-flag")){_a3=_69.filter(_9d.attributes,function(a){return a.specified;});}else{var _a4=/^input$|^img$/i.test(_9d.nodeName)?_9d:_9d.cloneNode(false),_a5=_a4.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,"");_a3=_69.map(_a5.split(/\s+/),function(_a6){var _a7=_a6.toLowerCase();return {name:_a6,value:(_9d.nodeName=="LI"&&_a6=="value")||_a7=="enctype"?_9d.getAttribute(_a7):_9d.getAttributeNode(_a7).value};});}}var i=0,_a8;while(_a8=_a3[i++]){var _a9=_a8.name,_aa=_a9.toLowerCase(),_ab=_a8.value;if(_aa in _98){switch(_98[_aa]){case "data-dojo-props":var _ac=_ab;break;case "data-dojo-id":case "jsId":var _ad=_ab;break;case "data-dojo-attach-point":case "dojoAttachPoint":_a2.dojoAttachPoint=_ab;break;case "data-dojo-attach-event":case "dojoAttachEvent":_a2.dojoAttachEvent=_ab;break;case "class":_a2["class"]=_9d.className;break;case "style":_a2["style"]=_9d.style&&_9d.style.cssText;break;}}else{if(!(_a9 in _a1)){var map=(_74[_9e]||(_74[_9e]=_75(_a1)));_a9=map[_aa]||_a9;}if(_a9 in _a1){switch(typeof _a1[_a9]){case "string":_a2[_a9]=_ab;break;case "number":_a2[_a9]=_ab.length?Number(_ab):NaN;break;case "boolean":_a2[_a9]=_ab.toLowerCase()!="false";break;case "function":if(_ab===""||_ab.search(/[^\w\.]+/i)!=-1){_a2[_a9]=new Function(_ab);}else{_a2[_a9]=_68.getObject(_ab,false)||new Function(_ab);}break;default:var _ae=_a1[_a9];_a2[_a9]=(_ae&&"length" in _ae)?(_ab?_ab.split(/\s*,\s*/):[]):(_ae instanceof Date)?(_ab==""?new Date(""):_ab=="now"?new Date():_70.fromISOString(_ab)):(_ae instanceof _67._Url)?(_67.baseUrl+_ab):_6e.fromJson(_ab);}}else{_a2[_a9]=_ab;}}}if(_ac){try{_ac=_6e.fromJson.call(_8e.propsThis,"{"+_ac+"}");_68.mixin(_a2,_ac);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_ac+"'");}}_68.mixin(_a2,_8d);var _af=obj.scripts||(_a0&&(_a0._noScript||_a1._noScript)?[]:_71("> script[type^='dojo/']",_9d));var _b0=[],_b1=[],_b2=[],on=[];if(_af){for(i=0;i<_af.length;i++){var _b3=_af[i];_9d.removeChild(_b3);var _b4=(_b3.getAttribute(_91+"event")||_b3.getAttribute("event")),_b5=_b3.getAttribute(_91+"prop"),_b6=_b3.getAttribute("type"),nf=this._functionFromScript(_b3,_91);if(_b4){if(_b6=="dojo/connect"){_b0.push({event:_b4,func:nf});}else{if(_b6=="dojo/on"){on.push({event:_b4,func:nf});}else{_a2[_b4]=nf;}}}else{if(_b6=="dojo/watch"){_b2.push({prop:_b5,func:nf});}else{_b1.push(nf);}}}}var _b7=_a0.markupFactory||_a1.markupFactory;var _b8=_b7?_b7(_a2,_9d,_a0):new _a0(_a2,_9d);_8f.push(_b8);if(_ad){_68.setObject(_ad,_b8);}for(i=0;i<_b0.length;i++){_6f.after(_b8,_b0[i].event,_67.hitch(_b8,_b0[i].func),true);}for(i=0;i<_b1.length;i++){_b1[i].call(_b8);}for(i=0;i<_b2.length;i++){_b8.watch(_b2[i].prop,_b2[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"],function(_1,_2,_3,_4,_5,_6,_7){var _8=_1.i18n={},_9=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_a=function(_b,_c,_d,_e){for(var _f=[_d+_e],_10=_c.split("-"),_11="",i=0;i<_10.length;i++){_11+=(_11?"-":"")+_10[i];if(!_b||_b[_11]){_f.push(_d+_11+"/"+_e);}}return _f;},_12={},_13=_1.getL10nName=function(_14,_15,_16){_16=_16?_16.toLowerCase():_1.locale;_14="dojo/i18n!"+_14.replace(/\./g,"/");_15=_15.replace(/\./g,"/");return (/root/i.test(_16))?(_14+"/nls/"+_15):(_14+"/nls/"+_16+"/"+_15);},_17=function(_18,_19,_1a,_1b,_1c,_1d){_18([_19],function(_1e){var _1f=_12[_19+"/"]=_6.clone(_1e.root),_20=_a(!_1e._v1x&&_1e,_1c,_1a,_1b);_18(_20,function(){for(var i=1;i<_20.length;i++){_12[_20[i]]=_1f=_6.mixin(_6.clone(_1f),arguments[i]);}var _21=_19+"/"+_1c;_12[_21]=_1f;_1d&&_1d(_6.delegate(_1f));});});},_22=function(id,_23){var _24=_9.exec(id),_25=_24[1];return /^\./.test(_25)?_23(_25)+"/"+id.substring(_25.length):id;},_26=function(){},_27=function(id,_28,_29){var _2a=_9.exec(id),_2b=_2a[1]+"/",_2c=_2a[5]||_2a[4],_2d=_2b+_2c,_2e=(_2a[5]&&_2a[4]),_2f=_2e||_1.locale,_30=_2d+"/"+_2f;if(_2e){_26(_30);if(_12[_30]){_29(_12[_30]);}else{_17(_28,_2d,_2b,_2c,_2f,_29);}return;}var _31=_5.extraLocale||[];_31=_6.isArray(_31)?_31:[_31];_31.push(_2f);var _32=_31.length,_33;_4.forEach(_31,function(_34){_17(_28,_2d,_2b,_2c,_34,function(_35){if(_34==_2f){_33=_35;}if(!--_32){_29(_33);}});});};if(_3("dojo-unit-tests")){var _36=_8.unitTests=[];}true||_3.add("dojo-v1x-i18n-Api",1);if(1){var _37={},_38=new Function("bundle","__evalError","__checkForLegacyModules","__mid","var __amdResult, define = function(x){__amdResult= x;};"+"return [(function(){"+"try{eval(arguments[0]);}catch(e){}"+"if(__amdResult)return 0;"+"if((__checkForLegacyModules = __checkForLegacyModules(__mid)))return __checkForLegacyModules;"+"try{return eval('('+arguments[0]+')');}"+"catch(e){__evalError.e = e; return __evalError;}"+"})(bundle),__amdResult];"),_39=function(url,_3a,_3b){if(_3a===_37){console.error("failed to evaluate i18n bundle; url="+url,_37.e);return {};}return _3a?(/nls\/[^\/]+\/[^\/]+$/.test(url)?_3a:{root:_3a,_v1x:1}):_3b;},_3c=function(_3d,_3e){var _3f=[];_4.forEach(_3d,function(mid){var url=_2.toUrl(mid+".js");if(_12[url]){_3f.push(_12[url]);}else{var _40=_2.syncLoadNls(mid);if(_40){_3f.push(_40);}else{_7.get({url:url,sync:true,load:function(_41){var _42=_38(_41,_37,_26,mid);_3f.push(_12[url]=_39(url,_42[0],_42[1]));},error:function(){_3f.push(_12[url]={});}});}}});_3e&&_3e.apply(null,_3f);},_43=_8.normalizeLocale=function(_44){var _45=_44?_44.toLowerCase():_1.locale;if(_45=="root"){_45="ROOT";}return _45;},_46=function(_47,_48){var _49=_47.split("-");while(_49.length){if(_48(_49.join("-"))){return true;}_49.pop();}return _48("ROOT");},_4a=function(mid){return _2.isXdUrl(_2.toUrl(mid+".js"));};_26=function(_4b){for(var _4c,_4d=_4b.split("/"),_4e=_1.global[_4d[0]],i=1;_4e&&i<_4d.length-1;_4e=_4e[_4d[i++]]){}if(_4e){_4c=_4e[_4d[i]];if(!_4c){_4c=_4e[_4d[i].replace(/-/g,"_")];}if(_4c){_12[_4b]=_4c;}}return _4c;};_8.getLocalization=function(_4f,_50,_51){var _52,_53=_13(_4f,_50,_51).substring(10);_27(_53,(1&&!_4a(_53)?_3c:_2),function(_54){_52=_54;});return _52;};_8._preloadLocalizations=function(_55,_56){function _57(_58){_58=_43(_58);_46(_58,function(loc){for(var mid,i=0;i<_56.length;i++){if(_56[i]==loc){mid=_55.replace(/\./g,"/")+"_"+loc;(_4a(mid)?_2:_3c)([mid]);return true;}}return false;});};_57();var _59=_1.config.extraLocale||[];for(var i=0;i<_59.length;i++){_57(_59[i]);}};if(_3("dojo-unit-tests")){_36.push(function(doh){doh.register("tests.i18n.unit",function(t){var _5a;_5a=_38("{prop:1}",_37);t.is({prop:1},_5a[0]);t.is(undefined,_5a[1]);_5a=_38("({prop:1})",_37);t.is({prop:1},_5a[0]);t.is(undefined,_5a[1]);_5a=_38("{'prop-x':1}",_37);t.is({"prop-x":1},_5a[0]);t.is(undefined,_5a[1]);_5a=_38("({'prop-x':1})",_37);t.is({"prop-x":1},_5a[0]);t.is(undefined,_5a[1]);_5a=_38("define({'prop-x':1})",_37);t.is(0,_5a[0]);t.is({"prop-x":1},_5a[1]);_5a=_38("define({'prop-x':1});",_37);t.is(0,_5a[0]);t.is({"prop-x":1},_5a[1]);_5a=_38("this is total nonsense and should throw an error",_37);t.is(_37,_5a[0]);t.is(undefined,_5a[1]);t.is({},_39("some/url",_5a[0],_5a[1]));});});}}return _6.mixin(_8,{dynamic:true,normalize:_22,load:_27,cache:function(mid,_5b){_12[mid]=_5b;}});});},"dojo/string":function(){define("dojo/string",["./_base/kernel","./_base/lang"],function(_5c,_5d){_5d.getObject("string",true,_5c);_5c.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("");};_5c.string.pad=function(_5e,_5f,ch,end){if(!ch){ch="0";}var out=String(_5e),pad=_5c.string.rep(ch,Math.ceil((_5f-out.length)/ch.length));return end?out+pad:pad+out;};_5c.string.substitute=function(_60,map,_61,_62){_62=_62||_5c.global;_61=_61?_5d.hitch(_62,_61):function(v){return v;};return _60.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_63,key,_64){var _65=_5d.getObject(key,false,map);if(_64){_65=_5d.getObject(_64,false,_62).call(_62,_65,key);}return _61(_65,key).toString();});};_5c.string.trim=String.prototype.trim?_5d.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 _5c.string;});},"dojo/date":function(){define("dojo/date",["./_base/kernel","./_base/lang"],function(_66,_67){_67.getObject("date",true,_66);_66.date.getDaysInMonth=function(_68){var _69=_68.getMonth();var _6a=[31,28,31,30,31,30,31,31,30,31,30,31];if(_69==1&&_66.date.isLeapYear(_68)){return 29;}return _6a[_69];};_66.date.isLeapYear=function(_6b){var _6c=_6b.getFullYear();return !(_6c%400)||(!(_6c%4)&&!!(_6c%100));};_66.date.getTimezoneName=function(_6d){var str=_6d.toString();var tz="";var _6e;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_6e=str.match(pat))){tz=_6e[1];}else{str=_6d.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_6e=str.match(pat))){tz=_6e[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};_66.date.compare=function(_6f,_70,_71){_6f=new Date(+_6f);_70=new Date(+(_70||new Date()));if(_71=="date"){_6f.setHours(0,0,0,0);_70.setHours(0,0,0,0);}else{if(_71=="time"){_6f.setFullYear(0,0,0);_70.setFullYear(0,0,0);}}if(_6f>_70){return 1;}if(_6f<_70){return -1;}return 0;};_66.date.add=function(_72,_73,_74){var sum=new Date(+_72);var _75=false;var _76="Date";switch(_73){case "day":break;case "weekday":var _77,_78;var mod=_74%5;if(!mod){_77=(_74>0)?5:-5;_78=(_74>0)?((_74-5)/5):((_74+5)/5);}else{_77=mod;_78=parseInt(_74/5);}var _79=_72.getDay();var adj=0;if(_79==6&&_74>0){adj=1;}else{if(_79==0&&_74<0){adj=-1;}}var _7a=_79+_77;if(_7a==0||_7a==6){adj=(_74>0)?2:-2;}_74=(7*_78)+_77+adj;break;case "year":_76="FullYear";_75=true;break;case "week":_74*=7;break;case "quarter":_74*=3;case "month":_75=true;_76="Month";break;default:_76="UTC"+_73.charAt(0).toUpperCase()+_73.substring(1)+"s";}if(_76){sum["set"+_76](sum["get"+_76]()+_74);}if(_75&&(sum.getDate()<_72.getDate())){sum.setDate(0);}return sum;};_66.date.difference=function(_7b,_7c,_7d){_7c=_7c||new Date();_7d=_7d||"day";var _7e=_7c.getFullYear()-_7b.getFullYear();var _7f=1;switch(_7d){case "quarter":var m1=_7b.getMonth();var m2=_7c.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_7e*4);_7f=q2-q1;break;case "weekday":var _80=Math.round(_66.date.difference(_7b,_7c,"day"));var _81=parseInt(_66.date.difference(_7b,_7c,"week"));var mod=_80%7;if(mod==0){_80=_81*5;}else{var adj=0;var _82=_7b.getDay();var _83=_7c.getDay();_81=parseInt(_80/7);mod=_80%7;var _84=new Date(_7b);_84.setDate(_84.getDate()+(_81*7));var _85=_84.getDay();if(_80>0){switch(true){case _82==6:adj=-1;break;case _82==0:adj=0;break;case _83==6:adj=-1;break;case _83==0:adj=-2;break;case (_85+mod)>5:adj=-2;}}else{if(_80<0){switch(true){case _82==6:adj=0;break;case _82==0:adj=1;break;case _83==6:adj=2;break;case _83==0:adj=1;break;case (_85+mod)<0:adj=2;}}}_80+=adj;_80-=(_81*2);}_7f=_80;break;case "year":_7f=_7e;break;case "month":_7f=(_7c.getMonth()-_7b.getMonth())+(_7e*12);break;case "week":_7f=parseInt(_66.date.difference(_7b,_7c,"day")/7);break;case "day":_7f/=24;case "hour":_7f/=60;case "minute":_7f/=60;case "second":_7f/=1000;case "millisecond":_7f*=_7c.getTime()-_7b.getTime();}return Math.round(_7f);};return _66.date;});},"dojo/cldr/supplemental":function(){define("dojo/cldr/supplemental",["../_base/kernel","../_base/lang","../i18n"],function(_86,_87){_87.getObject("cldr.supplemental",true,_86);_86.cldr.supplemental.getFirstDayOfWeek=function(_88){var _89={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 _8a=_86.cldr.supplemental._region(_88);var dow=_89[_8a];return (dow===undefined)?1:dow;};_86.cldr.supplemental._region=function(_8b){_8b=_86.i18n.normalizeLocale(_8b);var _8c=_8b.split("-");var _8d=_8c[1];if(!_8d){_8d={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"}[_8c[0]];}else{if(_8d.length==4){_8d=_8c[2];}}return _8d;};_86.cldr.supplemental.getWeekend=function(_8e){var _8f={"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 _90={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 _91=_86.cldr.supplemental._region(_8e);var _92=_8f[_91];var end=_90[_91];if(_92===undefined){_92=6;}if(end===undefined){end=0;}return {start:_92,end:end};};return _86.cldr.supplemental;});},"dojo/number":function(){define("dojo/number",["./_base/kernel","./_base/lang","./i18n","./i18n!./cldr/nls/number","./string","./regexp"],function(_93,_94,_95,_96,_97,_98){_94.getObject("number",true,_93);_93.number.format=function(_99,_9a){_9a=_94.mixin({},_9a||{});var _9b=_95.normalizeLocale(_9a.locale),_9c=_95.getLocalization("dojo.cldr","number",_9b);_9a.customs=_9c;var _9d=_9a.pattern||_9c[(_9a.type||"decimal")+"Format"];if(isNaN(_99)||Math.abs(_99)==Infinity){return null;}return _93.number._applyPattern(_99,_9d,_9a);};_93.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;_93.number._applyPattern=function(_9e,_9f,_a0){_a0=_a0||{};var _a1=_a0.customs.group,_a2=_a0.customs.decimal,_a3=_9f.split(";"),_a4=_a3[0];_9f=_a3[(_9e<0)?1:0]||("-"+_a4);if(_9f.indexOf("%")!=-1){_9e*=100;}else{if(_9f.indexOf("‰")!=-1){_9e*=1000;}else{if(_9f.indexOf("¤")!=-1){_a1=_a0.customs.currencyGroup||_a1;_a2=_a0.customs.currencyDecimal||_a2;_9f=_9f.replace(/\u00a4{1,3}/,function(_a5){var _a6=["symbol","currency","displayName"][_a5.length-1];return _a0[_a6]||_a0.currency||"";});}else{if(_9f.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _a7=_93.number._numberPatternRE;var _a8=_a4.match(_a7);if(!_a8){throw new Error("unable to find a number expression in pattern: "+_9f);}if(_a0.fractional===false){_a0.places=0;}return _9f.replace(_a7,_93.number._formatAbsolute(_9e,_a8[0],{decimal:_a2,group:_a1,places:_a0.places,round:_a0.round}));};_93.number.round=function(_a9,_aa,_ab){var _ac=10/(_ab||10);return (_ac*+_a9).toFixed(_aa)/_ac;};if((0.9).toFixed()==0){var _ad=_93.number.round;_93.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _ad(v,p,m)+(v>0?d:-d);};}_93.number._formatAbsolute=function(_ae,_af,_b0){_b0=_b0||{};if(_b0.places===true){_b0.places=0;}if(_b0.places===Infinity){_b0.places=6;}var _b1=_af.split("."),_b2=typeof _b0.places=="string"&&_b0.places.indexOf(","),_b3=_b0.places;if(_b2){_b3=_b0.places.substring(_b2+1);}else{if(!(_b3>=0)){_b3=(_b1[1]||[]).length;}}if(!(_b0.round<0)){_ae=_93.number.round(_ae,_b3,_b0.round);}var _b4=String(Math.abs(_ae)).split("."),_b5=_b4[1]||"";if(_b1[1]||_b0.places){if(_b2){_b0.places=_b0.places.substring(0,_b2);}var pad=_b0.places!==undefined?_b0.places:(_b1[1]&&_b1[1].lastIndexOf("0")+1);if(pad>_b5.length){_b4[1]=_97.pad(_b5,pad,"0",true);}if(_b3<_b5.length){_b4[1]=_b5.substr(0,_b3);}}else{if(_b4[1]){_b4.pop();}}var _b6=_b1[0].replace(",","");pad=_b6.indexOf("0");if(pad!=-1){pad=_b6.length-pad;if(pad>_b4[0].length){_b4[0]=_97.pad(_b4[0],pad);}if(_b6.indexOf("#")==-1){_b4[0]=_b4[0].substr(_b4[0].length-pad);}}var _b7=_b1[0].lastIndexOf(","),_b8,_b9;if(_b7!=-1){_b8=_b1[0].length-_b7-1;var _ba=_b1[0].substr(0,_b7);_b7=_ba.lastIndexOf(",");if(_b7!=-1){_b9=_ba.length-_b7-1;}}var _bb=[];for(var _bc=_b4[0];_bc;){var off=_bc.length-_b8;_bb.push((off>0)?_bc.substr(off):_bc);_bc=(off>0)?_bc.slice(0,off):"";if(_b9){_b8=_b9;delete _b9;}}_b4[0]=_bb.reverse().join(_b0.group||",");return _b4.join(_b0.decimal||".");};_93.number.regexp=function(_bd){return _93.number._parseInfo(_bd).regexp;};_93.number._parseInfo=function(_be){_be=_be||{};var _bf=_95.normalizeLocale(_be.locale),_c0=_95.getLocalization("dojo.cldr","number",_bf),_c1=_be.pattern||_c0[(_be.type||"decimal")+"Format"],_c2=_c0.group,_c3=_c0.decimal,_c4=1;if(_c1.indexOf("%")!=-1){_c4/=100;}else{if(_c1.indexOf("‰")!=-1){_c4/=1000;}else{var _c5=_c1.indexOf("¤")!=-1;if(_c5){_c2=_c0.currencyGroup||_c2;_c3=_c0.currencyDecimal||_c3;}}}var _c6=_c1.split(";");if(_c6.length==1){_c6.push("-"+_c6[0]);}var re=_98.buildGroupRE(_c6,function(_c7){_c7="(?:"+_98.escapeString(_c7,".")+")";return _c7.replace(_93.number._numberPatternRE,function(_c8){var _c9={signed:false,separator:_be.strict?_c2:[_c2,""],fractional:_be.fractional,decimal:_c3,exponent:false},_ca=_c8.split("."),_cb=_be.places;if(_ca.length==1&&_c4!=1){_ca[1]="###";}if(_ca.length==1||_cb===0){_c9.fractional=false;}else{if(_cb===undefined){_cb=_be.pattern?_ca[1].lastIndexOf("0")+1:Infinity;}if(_cb&&_be.fractional==undefined){_c9.fractional=true;}if(!_be.places&&(_cb<_ca[1].length)){_cb+=","+_ca[1].length;}_c9.places=_cb;}var _cc=_ca[0].split(",");if(_cc.length>1){_c9.groupSize=_cc.pop().length;if(_cc.length>1){_c9.groupSize2=_cc.pop().length;}}return "("+_93.number._realNumberRegexp(_c9)+")";});},true);if(_c5){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_cd,_ce,_cf,_d0){var _d1=["symbol","currency","displayName"][_cf.length-1],_d2=_98.escapeString(_be[_d1]||_be.currency||"");_ce=_ce?"[\\s\\xa0]":"";_d0=_d0?"[\\s\\xa0]":"";if(!_be.strict){if(_ce){_ce+="*";}if(_d0){_d0+="*";}return "(?:"+_ce+_d2+_d0+")?";}return _ce+_d2+_d0;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_c2,decimal:_c3,factor:_c4};};_93.number.parse=function(_d3,_d4){var _d5=_93.number._parseInfo(_d4),_d6=(new RegExp("^"+_d5.regexp+"$")).exec(_d3);if(!_d6){return NaN;}var _d7=_d6[1];if(!_d6[1]){if(!_d6[2]){return NaN;}_d7=_d6[2];_d5.factor*=-1;}_d7=_d7.replace(new RegExp("["+_d5.group+"\\s\\xa0"+"]","g"),"").replace(_d5.decimal,".");return _d7*_d5.factor;};_93.number._realNumberRegexp=function(_d8){_d8=_d8||{};if(!("places" in _d8)){_d8.places=Infinity;}if(typeof _d8.decimal!="string"){_d8.decimal=".";}if(!("fractional" in _d8)||/^0/.test(_d8.places)){_d8.fractional=[true,false];}if(!("exponent" in _d8)){_d8.exponent=[true,false];}if(!("eSigned" in _d8)){_d8.eSigned=[true,false];}var _d9=_93.number._integerRegexp(_d8),_da=_98.buildGroupRE(_d8.fractional,function(q){var re="";if(q&&(_d8.places!==0)){re="\\"+_d8.decimal;if(_d8.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_d8.places+"}";}}return re;},true);var _db=_98.buildGroupRE(_d8.exponent,function(q){if(q){return "([eE]"+_93.number._integerRegexp({signed:_d8.eSigned})+")";}return "";});var _dc=_d9+_da;if(_da){_dc="(?:(?:"+_dc+")|(?:"+_da+"))";}return _dc+_db;};_93.number._integerRegexp=function(_dd){_dd=_dd||{};if(!("signed" in _dd)){_dd.signed=[true,false];}if(!("separator" in _dd)){_dd.separator="";}else{if(!("groupSize" in _dd)){_dd.groupSize=3;}}var _de=_98.buildGroupRE(_dd.signed,function(q){return q?"[-+]":"";},true);var _df=_98.buildGroupRE(_dd.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=_98.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_dd.groupSize,_e0=_dd.groupSize2;if(_e0){var _e1="(?:0|[1-9]\\d{0,"+(_e0-1)+"}(?:["+sep+"]\\d{"+_e0+"})*["+sep+"]\\d{"+grp+"})";return ((grp-_e0)>0)?"(?:"+_e1+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_e1;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _de+_df;};return _93.number;});},"dojo/cldr/nls/currency":function(){define("dojo/cldr/nls/currency",{root:{"USD_symbol":"US$","CAD_symbol":"CA$","GBP_symbol":"£","HKD_symbol":"HK$","JPY_symbol":"JP¥","AUD_symbol":"AU$","CNY_symbol":"CN¥","EUR_symbol":"€"},"af":true,"ak":true,"am":true,"ar":true,"asa":true,"az":true,"be":true,"bez":true,"bg":true,"bm":true,"bn":true,"bo":true,"br":true,"brx":true,"bs":true,"ca":true,"cgg":true,"chr":true,"cs":true,"cy":true,"da":true,"dav":true,"de":true,"ebu":true,"ee":true,"el":true,"el-polyton":true,"en":true,"en-au":true,"en-bz":true,"en-ca":true,"en-hk":true,"en-jm":true,"en-mt":true,"en-na":true,"en-nz":true,"en-sg":true,"en-tt":true,"es":true,"es-ec":true,"es-pr":true,"es-us":true,"et":true,"fa":true,"fa-af":true,"ff":true,"fi":true,"fil":true,"fr":true,"fr-ca":true,"ga":true,"gl":true,"gsw":true,"guz":true,"ha":true,"he":true,"hi":true,"hr":true,"hu":true,"is":true,"it":true,"iw":true,"ja":true,"jmc":true,"ka":true,"kab":true,"kam":true,"kde":true,"kea":true,"khq":true,"ki":true,"kln":true,"ko":true,"ksb":true,"lag":true,"lg":true,"lt":true,"luo":true,"luy":true,"lv":true,"mas":true,"mer":true,"mfe":true,"mg":true,"mk":true,"ml":true,"mo":true,"mt":true,"my":true,"naq":true,"nb":true,"nd":true,"ne":true,"nl":true,"nn":true,"no":true,"nyn":true,"om":true,"pa-arab":true,"pa-pk":true,"pl":true,"pt":true,"rm":true,"ro":true,"rof":true,"ru":true,"rwk":true,"saq":true,"seh":true,"ses":true,"sg":true,"sh":true,"shi":true,"shi-tfng":true,"sk":true,"sl":true,"sn":true,"so":true,"sq":true,"sr":true,"sr-latn":true,"sv":true,"sw":true,"te":true,"teo":true,"th":true,"ti":true,"tl":true,"tr":true,"tzm":true,"uk":true,"ur":true,"vi":true,"vun":true,"xog":true,"yo":true,"zh":true,"zh-hans-hk":true,"zh-hant":true,"zh-hant-hk":true,"zh-hk":true,"zh-mo":true,"zh-tw":true});},"dojo/cldr/nls/gregorian":function(){define("dojo/cldr/nls/gregorian",{root:{"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"EEE, y-M-d","dateFormatItem-MMMEd":"E MMM d","eraNarrow":["BCE","CE"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"y MMMM d","months-format-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateTimeFormat-medium":"{1} {0}","dateFormatItem-EEEd":"d EEE","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, y MMMM dd","dateFormatItem-Md":"M-d","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","field-era":"Era","dateFormatItem-yM":"y-M","months-standAlone-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-short":"HH:mm","quarters-format-wide":["Q1","Q2","Q3","Q4"],"timeFormat-long":"HH:mm:ss z","field-year":"Year","dateFormatItem-yMMM":"y MMM","dateFormatItem-yQ":"y Q","dateTimeFormats-appendItem-Era":"{0} {1}","field-hour":"Hour","months-format-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-full":"HH:mm:ss zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","dateFormatItem-H":"HH","months-standAlone-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-M":"L","days-standAlone-wide":["1","2","3","4","5","6","7"],"timeFormat-medium":"HH:mm:ss","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"eraAbbr":["BCE","CE"],"field-minute":"Minute","field-dayperiod":"Dayperiod","days-standAlone-abbr":["1","2","3","4","5","6","7"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Yesterday","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"E, M-d","dateTimeFormat-full":"{1} {0}","field-day":"Day","days-format-wide":["1","2","3","4","5","6","7"],"field-zone":"Zone","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["1","2","3","4","5","6","7"],"eraNames":["BCE","CE"],"days-format-narrow":["1","2","3","4","5","6","7"],"days-standAlone-narrow":["1","2","3","4","5","6","7"],"dateFormatItem-MMM":"LLL","field-month":"Month","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormat-short":"yyyy-MM-dd","field-second":"Second","dateFormatItem-yMMMEd":"EEE, y MMM d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Week","dateFormat-medium":"y MMM d","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a"},"aa":true,"af":true,"ak":true,"am":true,"ar":true,"ar-dz":true,"ar-jo":true,"ar-lb":true,"ar-ma":true,"ar-qa":true,"ar-sa":true,"ar-sy":true,"ar-tn":true,"ar-ye":true,"as":true,"asa":true,"az":true,"az-cyrl":true,"be":true,"bem":true,"bez":true,"bg":true,"bm":true,"bn":true,"bn-in":true,"bo":true,"br":true,"brx":true,"bs":true,"byn":true,"ca":true,"cgg":true,"chr":true,"cs":true,"cy":true,"da":true,"dav":true,"de":true,"de-at":true,"de-be":true,"dz":true,"ebu":true,"ee":true,"el":true,"el-polyton":true,"en":true,"en-au":true,"en-be":true,"en-bw":true,"en-bz":true,"en-ca":true,"en-dsrt":true,"en-gb":true,"en-hk":true,"en-ie":true,"en-in":true,"en-mt":true,"en-nz":true,"en-pk":true,"en-sg":true,"en-shaw":true,"en-za":true,"en-zw":true,"eo":true,"es":true,"es-ar":true,"es-cl":true,"es-co":true,"es-ec":true,"es-gt":true,"es-hn":true,"es-pa":true,"es-pe":true,"es-pr":true,"es-us":true,"et":true,"eu":true,"fa":true,"fa-af":true,"ff":true,"fi":true,"fil":true,"fo":true,"fr":true,"fr-be":true,"fr-ca":true,"fr-ch":true,"fur":true,"ga":true,"gl":true,"gsw":true,"gu":true,"guz":true,"gv":true,"ha":true,"haw":true,"he":true,"hi":true,"hr":true,"hu":true,"hy":true,"id":true,"ig":true,"ii":true,"in":true,"is":true,"it":true,"it-ch":true,"iw":true,"ja":true,"jmc":true,"ka":true,"kab":true,"kam":true,"kde":true,"kea":true,"khq":true,"ki":true,"kk":true,"kl":true,"kln":true,"km":true,"kn":true,"ko":true,"kok":true,"ksb":true,"ksh":true,"kw":true,"lag":true,"lg":true,"ln":true,"lt":true,"luo":true,"luy":true,"lv":true,"mas":true,"mer":true,"mfe":true,"mg":true,"mk":true,"ml":true,"mo":true,"mr":true,"ms":true,"ms-bn":true,"mt":true,"my":true,"naq":true,"nb":true,"nd":true,"ne":true,"ne-in":true,"nl":true,"nl-be":true,"nn":true,"no":true,"nyn":true,"oc":true,"om":true,"or":true,"pa":true,"pa-arab":true,"pa-pk":true,"pl":true,"ps":true,"pt":true,"pt-pt":true,"rm":true,"ro":true,"rof":true,"ru":true,"ru-ua":true,"rw":true,"rwk":true,"saq":true,"se":true,"seh":true,"ses":true,"sg":true,"sh":true,"shi":true,"shi-tfng":true,"si":true,"sk":true,"sl":true,"sn":true,"so":true,"sq":true,"sr":true,"sr-ba":true,"sr-cyrl-ba":true,"sr-latn":true,"sr-latn-me":true,"sr-me":true,"ssy":true,"sv":true,"sv-fi":true,"sw":true,"syr":true,"ta":true,"te":true,"teo":true,"th":true,"ti":true,"ti-er":true,"tl":true,"to":true,"tr":true,"trv":true,"tzm":true,"uk":true,"ur":true,"vi":true,"vun":true,"xog":true,"yo":true,"zh":true,"zh-hans-sg":true,"zh-hant":true,"zh-hant-hk":true,"zh-hant-mo":true,"zh-hk":true,"zh-mo":true,"zh-sg":true,"zh-tw":true,"zu":true});},"dojo/date/stamp":function(){define("dojo/date/stamp",["../_base/kernel","../_base/lang","../_base/array"],function(_e2,_e3,_e4){_e3.getObject("date.stamp",true,_e2);_e2.date.stamp.fromISOString=function(_e5,_e6){if(!_e2.date.stamp._isoRegExp){_e2.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _e7=_e2.date.stamp._isoRegExp.exec(_e5),_e8=null;if(_e7){_e7.shift();if(_e7[1]){_e7[1]--;}if(_e7[6]){_e7[6]*=1000;}if(_e6){_e6=new Date(_e6);_e4.forEach(_e4.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_e9){return _e6["get"+_e9]();}),function(_ea,_eb){_e7[_eb]=_e7[_eb]||_ea;});}_e8=new Date(_e7[0]||1970,_e7[1]||0,_e7[2]||1,_e7[3]||0,_e7[4]||0,_e7[5]||0,_e7[6]||0);if(_e7[0]<100){_e8.setFullYear(_e7[0]||1970);}var _ec=0,_ed=_e7[7]&&_e7[7].charAt(0);if(_ed!="Z"){_ec=((_e7[8]||0)*60)+(Number(_e7[9])||0);if(_ed!="-"){_ec*=-1;}}if(_ed){_ec-=_e8.getTimezoneOffset();}if(_ec){_e8.setTime(_e8.getTime()+_ec*60000);}}return _e8;};_e2.date.stamp.toISOString=function(_ee,_ef){var _f0=function(n){return (n<10)?"0"+n:n;};_ef=_ef||{};var _f1=[],_f2=_ef.zulu?"getUTC":"get",_f3="";if(_ef.selector!="time"){var _f4=_ee[_f2+"FullYear"]();_f3=["0000".substr((_f4+"").length)+_f4,_f0(_ee[_f2+"Month"]()+1),_f0(_ee[_f2+"Date"]())].join("-");}_f1.push(_f3);if(_ef.selector!="date"){var _f5=[_f0(_ee[_f2+"Hours"]()),_f0(_ee[_f2+"Minutes"]()),_f0(_ee[_f2+"Seconds"]())].join(":");var _f6=_ee[_f2+"Milliseconds"]();if(_ef.milliseconds){_f5+="."+(_f6<100?"0":"")+_f0(_f6);}if(_ef.zulu){_f5+="Z";}else{if(_ef.selector!="time"){var _f7=_ee.getTimezoneOffset();var _f8=Math.abs(_f7);_f5+=(_f7>0?"-":"+")+_f0(Math.floor(_f8/60))+":"+_f0(_f8%60);}}_f1.push(_f5);}return _f1.join("T");};return _e2.date.stamp;});},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","./_base/xhr"],function(_f9,_fa,has,xhr){var _fb;if(1){_fb=function(url,_fc,_fd){xhr("GET",{url:url,sync:!!_fc,load:_fd});};}else{if(_fa.getText){_fb=_fa.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _fe={},_ff=function(text){if(text){text=text.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _100=text.match(/]*>\s*([\s\S]+)\s*<\/body>/im);if(_100){text=_100[1];}}else{text="";}return text;},_101={},_102={},_103={dynamic:true,normalize:function(id,_104){var _105=id.split("!"),url=_105[0];return (/^\./.test(url)?_104(url):url)+(_105[1]?"!"+_105[1]:"");},load:function(id,_106,load){var _107=id.split("!"),_108=_107.length>1,_109=_107[0],url=_106.toUrl(_107[0]),text=_101,_10a=function(text){load(_108?_ff(text):text);};if(_109 in _fe){text=_fe[_109];}else{if(url in _106.cache){text=_106.cache[url];}else{if(url in _fe){text=_fe[url];}}}if(text===_101){if(_102[url]){_102[url].push(_10a);}else{var _10b=_102[url]=[_10a];_fb(url,!_106.async,function(text){_fe[_109]=_fe[url]=text;for(var i=0;i<_10b.length;){_10b[i++](text);}delete _102[url];});}}else{_10a(text);}}};_f9.cache=function(_10c,url,_10d){var key;if(typeof _10c=="string"){if(/\//.test(_10c)){key=_10c;_10d=url;}else{key=_fa.toUrl(_10c.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_10c+"";_10d=url;}var val=(_10d!=undefined&&typeof _10d!="string")?_10d.value:_10d,_10e=_10d&&_10d.sanitize;if(typeof val=="string"){_fe[key]=val;return _10e?_ff(val):val;}else{if(val===null){delete _fe[key];return null;}else{if(!(key in _fe)){_fb(key,true,function(text){_fe[key]=text;});}return _10e?_ff(_fe[key]):_fe[key];}}};return _103;});},"dojo/colors":function(){define("dojo/colors",["./_base/kernel","./_base/lang","./_base/Color","./_base/array"],function(dojo,lang,_10f,_110){var _111=lang.getObject("dojo.colors",true);var _112=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=_10f.fromRgb=function(_113,obj){var m=_113.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=_110.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return _10f.fromArray(a,obj);}return _10f.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=[_112(m1,m2,H+1/3)*256,_112(m1,m2,H)*256,_112(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return _10f.fromArray(a,obj);}}return null;};var _114=function(c,low,high){c=Number(c);return isNaN(c)?high:chigh?high:c;};_10f.prototype.sanitize=function(){var t=this;t.r=Math.round(_114(t.r,0,255));t.g=Math.round(_114(t.g,0,255));t.b=Math.round(_114(t.b,0,255));t.a=_114(t.a,0,1);return this;};_111.makeGrey=_10f.makeGrey=function(g,a){return _10f.fromArray([g,g,g,a]);};lang.mixin(_10f.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 _10f;});},"dojo/cldr/nls/number":function(){define("dojo/cldr/nls/number",{root:{"scientificFormat":"#E0","currencySpacing-afterCurrency-currencyMatch":"[:letter:]","infinity":"∞","list":";","percentSign":"%","minusSign":"-","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","decimalFormat-short":"000T","currencySpacing-afterCurrency-insertBetween":" ","nan":"NaN","nativeZeroDigit":"0","plusSign":"+","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]","currencyFormat":"¤ #,##0.00","perMille":"‰","group":",","percentFormat":"#,##0%","decimalFormat":"#,##0.###","decimal":".","patternDigit":"#","currencySpacing-beforeCurrency-insertBetween":" ","exponential":"E"},"af":true,"af-na":true,"ak":true,"am":true,"ar":true,"ar-qa":true,"ar-sa":true,"ar-sy":true,"ar-tn":true,"ar-ye":true,"as":true,"asa":true,"az":true,"az-cyrl":true,"be":true,"bem":true,"bez":true,"bg":true,"bm":true,"bn":true,"bo":true,"brx":true,"bs":true,"ca":true,"cgg":true,"chr":true,"cs":true,"da":true,"dav":true,"de":true,"de-at":true,"de-ch":true,"de-li":true,"ebu":true,"ee":true,"el":true,"el-cy":true,"en":true,"en-au":true,"en-be":true,"en-bw":true,"en-bz":true,"en-gb":true,"en-ie":true,"en-in":true,"en-jm":true,"en-mt":true,"en-na":true,"en-nz":true,"en-tt":true,"en-us-posix":true,"en-za":true,"en-zw":true,"eo":true,"es":true,"es-419":true,"es-cl":true,"es-do":true,"es-ec":true,"es-gt":true,"es-hn":true,"es-mx":true,"es-ni":true,"es-pa":true,"es-pe":true,"es-pr":true,"es-py":true,"es-sv":true,"es-us":true,"es-uy":true,"es-ve":true,"et":true,"eu":true,"fa":true,"fa-af":true,"ff":true,"fi":true,"fil":true,"fo":true,"fr":true,"fr-be":true,"fr-ca":true,"fr-ch":true,"fr-lu":true,"ga":true,"gl":true,"gsw":true,"gu":true,"guz":true,"gv":true,"ha":true,"haw":true,"he":true,"hi":true,"hr":true,"hu":true,"hy":true,"id":true,"ig":true,"ii":true,"in":true,"is":true,"it":true,"it-ch":true,"iw":true,"ja":true,"jmc":true,"ka":true,"kab":true,"kam":true,"kde":true,"kea":true,"khq":true,"ki":true,"kk":true,"kl":true,"kln":true,"km":true,"kn":true,"ko":true,"kok":true,"ksb":true,"kw":true,"lg":true,"lt":true,"luo":true,"luy":true,"lv":true,"mas":true,"mer":true,"mfe":true,"mg":true,"mk":true,"ml":true,"mo":true,"mr":true,"ms":true,"ms-bn":true,"mt":true,"my":true,"naq":true,"nb":true,"nd":true,"ne":true,"nl":true,"nl-be":true,"nn":true,"no":true,"nr":true,"nso":true,"nyn":true,"om":true,"or":true,"pa":true,"pl":true,"ps":true,"pt":true,"pt-pt":true,"rm":true,"ro":true,"rof":true,"ru":true,"rw":true,"rwk":true,"saq":true,"seh":true,"ses":true,"sg":true,"sh":true,"shi":true,"shi-tfng":true,"si":true,"sk":true,"sl":true,"sn":true,"so":true,"sq":true,"sr":true,"sr-latn-me":true,"sr-me":true,"ss":true,"st":true,"sv":true,"sw":true,"sw-ke":true,"ta":true,"te":true,"teo":true,"th":true,"ti":true,"tl":true,"tn":true,"tr":true,"ts":true,"tzm":true,"uk":true,"ur":true,"ur-in":true,"uz-af":true,"uz-arab":true,"ve":true,"vi":true,"vun":true,"xh":true,"xog":true,"yo":true,"zh":true,"zh-hant":true,"zh-hant-hk":true,"zh-hk":true,"zu":true});},"dojo/regexp":function(){define("dojo/regexp",["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_115){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_115&&_115.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_116){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i2){var _14c=_144["months-format-"+_146[l-3]].concat();if(!_141.strict){v=v.replace(".","").toLowerCase();_14c=dojo.map(_14c,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_14c,v);if(v==-1){return false;}}else{v--;}_147[1]=v;break;case "E":case "e":var days=_144["days-format-"+_146[l-3]].concat();if(!_141.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":_147[1]=0;case "d":_147[2]=v;break;case "a":var am=_141.am||_144["dayPeriods-format-wide-am"],pm=_141.pm||_144["dayPeriods-format-wide-pm"];if(!_141.strict){var _14d=/\./g;v=v.replace(_14d,"").toLowerCase();am=am.replace(_14d,"").toLowerCase();pm=pm.replace(_14d,"").toLowerCase();}if(_141.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;}_147[3]=v;break;case "m":_147[4]=v;break;case "s":_147[5]=v;break;case "S":_147[6]=v;}return true;});var _14e=+_147[3];if(amPm==="p"&&_14e<12){_147[3]=_14e+12;}else{if(amPm==="a"&&_14e==12){_147[3]=0;}}var _14f=new Date(_147[0],_147[1],_147[2],_147[3],_147[4],_147[5],_147[6]);if(_141.strict){_14f.setFullYear(_147[0]);}var _150=_143.join(""),_151=_150.indexOf("d")!=-1,_152=_150.indexOf("M")!=-1;if(!_148||(_152&&_14f.getMonth()>_147[1])||(_151&&_14f.getDate()>_147[2])){return null;}if((_152&&_14f.getMonth()<_147[1])||(_151&&_14f.getDate()<_147[2])){_14f=date.add(_14f,"hour",1);}return _14f;};function _132(_153,_154,_155,_156){var _157=function(x){return x;};_154=_154||_157;_155=_155||_157;_156=_156||_157;var _158=_153.match(/(''|[^'])+/g),_159=_153.charAt(0)=="'";dojo.forEach(_158,function(_15a,i){if(!_15a){_158[i]="";}else{_158[i]=(_159?_155:_154)(_15a.replace(/''/g,"'"));_159=!_159;}});return _156(_158.join(""));};function _13f(_15b,_15c,_15d,_15e){_15e=_11a.escapeString(_15e);if(!_15d.strict){_15e=_15e.replace(" a"," ?a");}return _15e.replace(/([a-z])\1*/ig,function(_15f){var s,c=_15f.charAt(0),l=_15f.length,p2="",p3="";if(_15d.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=_15d.am||_15c["dayPeriods-format-wide-am"],pm=_15d.pm||_15c["dayPeriods-format-wide-pm"];s=am+"|"+pm;if(!_15d.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(_15b){_15b.push(_15f);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};var _160=[];dojo.date.locale.addCustomFormats=function(_161,_162){_160.push({pkg:_161,name:_162});};dojo.date.locale._getGregorianBundle=function(_163){var _164={};dojo.forEach(_160,function(desc){var _165=dojo.i18n.getLocalization(desc.pkg,desc.name,_163);_164=lang.mixin(_164,_165);},this);return _164;};dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_166,_167){var _168,_169=dojo.date.locale._getGregorianBundle(_167),_16a=[item,_166,type];if(_166=="standAlone"){var key=_16a.join("-");_168=_169[key];if(_168[0]==1){_168=undefined;}}_16a[1]="format";return (_168||_169[_16a.join("-")]).concat();};dojo.date.locale.isWeekend=function(_16b,_16c){var _16d=cldr.getWeekend(_16c),day=(_16b||new Date()).getDay();if(_16d.end<_16d.start){_16d.end+=7;if(day<_16d.start){day+=7;}}return day>=_16d.start&&day<=_16d.end;};dojo.date.locale._getDayOfYear=function(_16e){return date.difference(new Date(_16e.getFullYear(),0,1,_16e.getHours()),_16e)+1;};dojo.date.locale._getWeekOfYear=function(_16f,_170){if(arguments.length==1){_170=0;}var _171=new Date(_16f.getFullYear(),0,1).getDay(),adj=(_171-_170+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_16f)+adj-1)/7);if(_171==_170){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 _172={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 _173={CHF:5};var _174=_172[code],_175=_173[code];if(typeof _174=="undefined"){_174=2;}if(typeof _175=="undefined"){_175=0;}return {places:_174,round:_175};};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,_176,_177,i18n,_178,_179){lang.getObject("currency",true,dojo);dojo.currency._mixInDefaults=function(_17a){_17a=_17a||{};_17a.type="currency";var _17b=i18n.getLocalization("dojo.cldr","currency",_17a.locale)||{};var iso=_17a.currency;var data=_179.getData(iso);_176.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_17b[iso+"_"+prop];});data.fractional=[true,false];return lang.mixin(data,_17a);};dojo.currency.format=function(_17c,_17d){return _177.format(_17c,dojo.currency._mixInDefaults(_17d));};dojo.currency.regexp=function(_17e){return _177.regexp(dojo.currency._mixInDefaults(_17e));};dojo.currency.parse=function(_17f,_180){return _177.parse(_17f,dojo.currency._mixInDefaults(_180));};return dojo.currency;});},"*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(["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_14){_1b-=1;}return {text:(s.substring(0,_1b)+this.trailingSymbol),truncated:true};}var _1c=_1b+Math.round((end-_1b)*_17),_1d=this.getTextWidth(s.substring(0,_1c),_13);if(_1d<_14){_1b=_1c;end=end;}else{_1b=_1b;end=_1c;}}}},getTextWithLimitCharCount:function(s,_1e,_1f,_20){if(!s||s.length<=0){return {text:"",truncated:_20||false};}if(!_1f||_1f<=0||s.length<=_1f){return {text:s,truncated:_20||false};}return {text:s.substring(0,_1f)+this.trailingSymbol,truncated:true};},_plotFill:function(_21,dim,_22){if(!_21||!_21.type||!_21.space){return _21;}var _23=_21.space;switch(_21.type){case "linear":if(_23==="plot"||_23==="shapeX"||_23==="shapeY"){_21=_a.makeParameters(_a.defaultLinearGradient,_21);_21.space=_23;if(_23==="plot"||_23==="shapeX"){var _24=dim.height-_22.t-_22.b;_21.y1=_22.t+_24*_21.y1/100;_21.y2=_22.t+_24*_21.y2/100;}if(_23==="plot"||_23==="shapeY"){var _24=dim.width-_22.l-_22.r;_21.x1=_22.l+_24*_21.x1/100;_21.x2=_22.l+_24*_21.x2/100;}}break;case "radial":if(_23==="plot"){_21=_a.makeParameters(_a.defaultRadialGradient,_21);_21.space=_23;var _25=dim.width-_22.l-_22.r,_26=dim.height-_22.t-_22.b;_21.cx=_22.l+_25*_21.cx/100;_21.cy=_22.t+_26*_21.cy/100;_21.r=_21.r*Math.sqrt(_25*_25+_26*_26)/200;}break;case "pattern":if(_23==="plot"||_23==="shapeX"||_23==="shapeY"){_21=_a.makeParameters(_a.defaultPattern,_21);_21.space=_23;if(_23==="plot"||_23==="shapeX"){var _24=dim.height-_22.t-_22.b;_21.y=_22.t+_24*_21.y/100;_21.height=_24*_21.height/100;}if(_23==="plot"||_23==="shapeY"){var _24=dim.width-_22.l-_22.r;_21.x=_22.l+_24*_21.x/100;_21.width=_24*_21.width/100;}}break;}return _21;},_shapeFill:function(_27,_28){if(!_27||!_27.space){return _27;}var _29=_27.space;switch(_27.type){case "linear":if(_29==="shape"||_29==="shapeX"||_29==="shapeY"){_27=_a.makeParameters(_a.defaultLinearGradient,_27);_27.space=_29;if(_29==="shape"||_29==="shapeX"){var _2a=_28.width;_27.x1=_28.x+_2a*_27.x1/100;_27.x2=_28.x+_2a*_27.x2/100;}if(_29==="shape"||_29==="shapeY"){var _2a=_28.height;_27.y1=_28.y+_2a*_27.y1/100;_27.y2=_28.y+_2a*_27.y2/100;}}break;case "radial":if(_29==="shape"){_27=_a.makeParameters(_a.defaultRadialGradient,_27);_27.space=_29;_27.cx=_28.x+_28.width/2;_27.cy=_28.y+_28.height/2;_27.r=_27.r*_28.width/200;}break;case "pattern":if(_29==="shape"||_29==="shapeX"||_29==="shapeY"){_27=_a.makeParameters(_a.defaultPattern,_27);_27.space=_29;if(_29==="shape"||_29==="shapeX"){var _2a=_28.width;_27.x=_28.x+_2a*_27.x/100;_27.width=_2a*_27.width/100;}if(_29==="shape"||_29==="shapeY"){var _2a=_28.height;_27.y=_28.y+_2a*_27.y/100;_27.height=_2a*_27.height/100;}}break;}return _27;},_pseudoRadialFill:function(_2b,_2c,_2d,_2e,end){if(!_2b||_2b.type!=="radial"||_2b.space!=="shape"){return _2b;}var _2f=_2b.space;_2b=_a.makeParameters(_a.defaultRadialGradient,_2b);_2b.space=_2f;if(arguments.length<4){_2b.cx=_2c.x;_2b.cy=_2c.y;_2b.r=_2b.r*_2d/100;return _2b;}var _30=arguments.length<5?_2e:(end+_2e)/2;return {type:"linear",x1:_2c.x,y1:_2c.y,x2:_2c.x+_2b.r*_2d*Math.cos(_30)/100,y2:_2c.y+_2b.r*_2d*Math.sin(_30)/100,colors:_2b.colors};return _2b;}});});},"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(_31,_32,g,_33,arr,win,_34,_35,has,_36,_37){var gu=g.utils={};_32.mixin(gu,{forEach:function(_38,f,o){o=o||win.global;f.call(o,_38);if(_38 instanceof g.Surface||_38 instanceof g.Group){arr.forEach(_38.children,function(_39){gu.forEach(_39,f,o);});}},serialize:function(_3a){var t={},v,_3b=_3a instanceof g.Surface;if(_3b||_3a instanceof g.Group){t.children=arr.map(_3a.children,gu.serialize);if(_3b){return t.children;}}else{t.shape=_3a.getShape();}if(_3a.getTransform){v=_3a.getTransform();if(v){t.transform=v;}}if(_3a.getStroke){v=_3a.getStroke();if(v){t.stroke=v;}}if(_3a.getFill){v=_3a.getFill();if(v){t.fill=v;}}if(_3a.getFont){v=_3a.getFont();if(v){t.font=v;}}return t;},toJson:function(_3c,_3d){return _34.toJson(gu.serialize(_3c),_3d);},deserialize:function(_3e,_3f){if(_3f instanceof Array){return arr.map(_3f,_32.hitch(null,gu.deserialize,_3e));}var _40=("shape" in _3f)?_3e.createShape(_3f.shape):_3e.createGroup();if("transform" in _3f){_40.setTransform(_3f.transform);}if("stroke" in _3f){_40.setStroke(_3f.stroke);}if("fill" in _3f){_40.setFill(_3f.fill);}if("font" in _3f){_40.setFont(_3f.font);}if("children" in _3f){arr.forEach(_3f.children,_32.hitch(null,gu.deserialize,_40));}return _40;},fromJson:function(_41,_42){return gu.deserialize(_41,_34.fromJson(_42));},toSvg:function(_43){var _44=new _35();if(g.renderer==="svg"){try{var svg=gu._cleanSvg(gu._innerXML(_43.rawNode));_44.callback(svg);}catch(e){_44.errback(e);}}else{if(!gu._initSvgSerializerDeferred){gu._initSvgSerializer();}var _45=gu.toJson(_43);var _46=function(){try{var _47=_43.getDimensions();var _48=_47.width;var _49=_47.height;var _4a=gu._gfxSvgProxy.document.createElement("div");gu._gfxSvgProxy.document.body.appendChild(_4a);win.withDoc(gu._gfxSvgProxy.document,function(){_33.style(_4a,"width",_48);_33.style(_4a,"height",_49);},this);var ts=gu._gfxSvgProxy[dojox._scopeName].gfx.createSurface(_4a,_48,_49);var _4b=function(_4c){try{gu._gfxSvgProxy[dojox._scopeName].gfx.utils.fromJson(_4c,_45);var svg=gu._cleanSvg(_4a.innerHTML);_4c.clear();_4c.destroy();gu._gfxSvgProxy.document.body.removeChild(_4a);_44.callback(svg);}catch(e){_44.errback(e);}};ts.whenLoaded(null,_4b);}catch(ex){_44.errback(ex);}};if(gu._initSvgSerializerDeferred.fired>0){_46();}else{gu._initSvgSerializerDeferred.addCallback(_46);}}return _44;},_gfxSvgProxy:null,_initSvgSerializerDeferred:null,_svgSerializerInitialized:function(){gu._initSvgSerializerDeferred.callback(true);},_initSvgSerializer:function(){if(!gu._initSvgSerializerDeferred){gu._initSvgSerializerDeferred=new _35();var f=win.doc.createElement("iframe");_33.style(f,{display:"none",position:"absolute",width:"1em",height:"1em",top:"-10000px"});var _4d;if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onreadystatechange=function(){};_4d=setInterval(function(){if(f.contentWindow[_31.scopeMap["dojo"][1]._scopeName]&&f.contentWindow[_31.scopeMap["dojox"][1]._scopeName].gfx&&f.contentWindow[_31.scopeMap["dojox"][1]._scopeName].gfx.utils){clearInterval(_4d);f.contentWindow.parent[_31.scopeMap["dojox"][1]._scopeName].gfx.utils._gfxSvgProxy=f.contentWindow;f.contentWindow.parent[_31.scopeMap["dojox"][1]._scopeName].gfx.utils._svgSerializerInitialized();}},50);}};}else{f.onload=function(){f.onload=function(){};_4d=setInterval(function(){if(f.contentWindow[_31.scopeMap["dojo"][1]._scopeName]&&f.contentWindow[_31.scopeMap["dojox"][1]._scopeName].gfx&&f.contentWindow[_31.scopeMap["dojox"][1]._scopeName].gfx.utils){clearInterval(_4d);f.contentWindow.parent[_31.scopeMap["dojox"][1]._scopeName].gfx.utils._gfxSvgProxy=f.contentWindow;f.contentWindow.parent[_31.scopeMap["dojox"][1]._scopeName].gfx.utils._svgSerializerInitialized();}},50);};}var uri=(_37["dojoxGfxSvgProxyFrameUrl"]||_36.toUrl("dojox/gfx/resources/gfxSvgProxyFrame.html"));f.setAttribute("src",uri.toString());win.body().appendChild(f);}},_innerXML:function(_4e){if(_4e.innerXML){return _4e.innerXML;}else{if(_4e.xml){return _4e.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(_4e);}}}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");}return svg;}});return gu;});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(_4f){return _4f.dojox;});},"dojox/lang/functional/reversed":function(){define("dojox/lang/functional/reversed",["dojo/_base/lang","dojo/_base/window","./lambda"],function(_50,win,df){_50.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","dojox/lang/functional","dojox/lang/functional/fold","dojox/lang/functional/reversed"],function(_51,arr,_52,_53,dom,_54,_55,_56,has,_57,_58,_59,_5a,g,_5b,_5c,_5d){var dc=dojox.charting,_5e=_5b.lambda("item.clear()"),_5f=_5b.lambda("item.purgeGroup()"),_60=_5b.lambda("item.destroy()"),_61=_5b.lambda("item.dirty = false"),_62=_5b.lambda("item.dirty = true"),_63=_5b.lambda("item.name");_52("dojox.charting.Chart",null,{constructor:function(_64,_65){if(!_65){_65={};}this.margins=_65.margins?_65.margins:{l:10,t:10,r:10,b:10};this.stroke=_65.stroke;this.fill=_65.fill;this.delayInMs=_65.delayInMs||200;this.title=_65.title;this.titleGap=_65.titleGap;this.titlePos=_65.titlePos;this.titleFont=_65.titleFont;this.titleFontColor=_65.titleFontColor;this.chartTitle=null;this.theme=null;this.axes={};this.stack=[];this.plots={};this.series=[];this.runs={};this.dirty=true;this.coords=null;this.node=dom.byId(_64);var box=_54.getMarginBox(_64);this.surface=g.createSurface(this.node,box.w||400,box.h||300);},destroy:function(){arr.forEach(this.series,_60);arr.forEach(this.stack,_60);_5b.forIn(this.axes,_60);if(this.chartTitle&&this.chartTitle.tagName){_55.destroy(this.chartTitle);}this.surface.destroy();},getCoords:function(){return _53.coords(this.node,true);},setTheme:function(_66){this.theme=_66.clone();this.dirty=true;return this;},addAxis:function(_67,_68){var _69,_6a=_68&&_68.type||"Default";if(typeof _6a=="string"){if(!dc.axis2d||!dc.axis2d[_6a]){throw Error("Can't find axis: "+_6a+" - Check "+"require() dependencies.");}_69=new dc.axis2d[_6a](this,_68);}else{_69=new _6a(this,_68);}_69.name=_67;_69.dirty=true;if(_67 in this.axes){this.axes[_67].destroy();}this.axes[_67]=_69;this.dirty=true;return this;},getAxis:function(_6b){return this.axes[_6b];},removeAxis:function(_6c){if(_6c in this.axes){this.axes[_6c].destroy();delete this.axes[_6c];this.dirty=true;}return this;},addPlot:function(_6d,_6e){var _6f,_70=_6e&&_6e.type||"Default";if(typeof _70=="string"){if(!dc.plot2d||!dc.plot2d[_70]){throw Error("Can't find plot: "+_70+" - didn't you forget to dojo"+".require() it?");}_6f=new dc.plot2d[_70](this,_6e);}else{_6f=new _70(this,_6e);}_6f.name=_6d;_6f.dirty=true;if(_6d in this.plots){this.stack[this.plots[_6d]].destroy();this.stack[this.plots[_6d]]=_6f;}else{this.plots[_6d]=this.stack.length;this.stack.push(_6f);}this.dirty=true;return this;},getPlot:function(_71){return this.stack[this.plots[_71]];},removePlot:function(_72){if(_72 in this.plots){var _73=this.plots[_72];delete this.plots[_72];this.stack[_73].destroy();this.stack.splice(_73,1);_5b.forIn(this.plots,function(idx,_74,_75){if(idx>_73){_75[_74]=idx-1;}});var ns=arr.filter(this.series,function(run){return run.plot!=_72;});if(ns.length_8b){_8d[_8c]=idx-1;}});this.dirty=true;}return this;},updateSeries:function(_8e,_8f){if(_8e in this.runs){var run=this.series[this.runs[_8e]];run.update(_8f);this._invalidateDependentPlots(run.plot,false);this._invalidateDependentPlots(run.plot,true);}return this;},getSeriesOrder:function(_90){return _5b.map(_5b.filter(this.series,function(run){return run.plot==_90;}),_63);},setSeriesOrder:function(_91){var _92,_93={},_94=_5b.filter(_91,function(_95){if(!(_95 in this.runs)||(_95 in _93)){return false;}var run=this.series[this.runs[_95]];if(_92){if(run.plot!=_92){return false;}}else{_92=run.plot;}_93[_95]=1;return true;},this);_5b.forEach(this.series,function(run){var _96=run.name;if(!(_96 in _93)&&run.plot==_92){_94.push(_96);}});var _97=_5b.map(_94,function(_98){return this.series[this.runs[_98]];},this);this.series=_97.concat(_5b.filter(this.series,function(run){return run.plot!=_92;}));_5b.forEach(this.series,function(run,i){this.runs[run.name]=i;},this);this.dirty=true;return this;},moveSeriesToFront:function(_99){if(_99 in this.runs){var _9a=this.runs[_99],_9b=this.getSeriesOrder(this.series[_9a].plot);if(_99!=_9b[0]){_9b.splice(_9a,1);_9b.unshift(_99);return this.setSeriesOrder(_9b);}}return this;},moveSeriesToBack:function(_9c){if(_9c in this.runs){var _9d=this.runs[_9c],_9e=this.getSeriesOrder(this.series[_9d].plot);if(_9c!=_9e[_9e.length-1]){_9e.splice(_9d,1);_9e.push(_9c);return this.setSeriesOrder(_9e);}}return this;},resize:function(_9f,_a0){var box;switch(arguments.length){case 1:box=_51.mixin({},_9f);_54.setMarginBox(this.node,box);break;case 2:box={w:_9f,h:_a0};_54.setMarginBox(this.node,box);break;}box=_54.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={};_5b.forIn(this.axes,function(_a1){if(_a1.initialized()){ret[_a1.name]={name:_a1.name,vertical:_a1.vertical,scaler:_a1.scaler,ticks:_a1.ticks};}});return ret;},setAxisWindow:function(_a2,_a3,_a4,_a5){var _a6=this.axes[_a2];if(_a6){_a6.setWindow(_a3,_a4);arr.forEach(this.stack,function(_a7){if(_a7.hAxis==_a2||_a7.vAxis==_a2){_a7.zoom=_a5;}});}return this;},setWindow:function(sx,sy,dx,dy,_a8){if(!("plotArea" in this)){this.calculateGeometry();}_5b.forIn(this.axes,function(_a9){var _aa,_ab,_ac=_a9.getScaler().bounds,s=_ac.span/(_ac.upper-_ac.lower);if(_a9.vertical){_aa=sy;_ab=dy/s/_aa;}else{_aa=sx;_ab=dx/s/_aa;}_a9.setWindow(_aa,_ab);});arr.forEach(this.stack,function(_ad){_ad.zoom=_a8;});return this;},zoomIn:function(_ae,_af){var _b0=this.axes[_ae];if(_b0){var _b1,_b2,_b3=_b0.getScaler().bounds;var _b4=Math.min(_af[0],_af[1]);var _b5=Math.max(_af[0],_af[1]);_b4=_af[0]<_b3.lower?_b3.lower:_b4;_b5=_af[1]>_b3.upper?_b3.upper:_b5;_b1=(_b3.upper-_b3.lower)/(_b5-_b4);_b2=_b4-_b3.lower;this.setAxisWindow(_ae,_b1,_b2);this.render();}},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}var _b6=arr.filter(this.stack,function(_b7){return _b7.dirty||(_b7.hAxis&&this.axes[_b7.hAxis].dirty)||(_b7.vAxis&&this.axes[_b7.vAxis].dirty);},this);_b8(_b6,this.plotArea);return this;},fullGeometry:function(){this._makeDirty();arr.forEach(this.stack,_5e);if(!this.theme){this.setTheme(new _58(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 _b9=new dc.plot2d.Default(this,{});_b9.name=run.plot;this.plots[run.plot]=this.stack.length;this.stack.push(_b9);}this.stack[this.plots[run.plot]].addSeries(run);},this);arr.forEach(this.stack,function(_ba){if(_ba.hAxis){_ba.setAxis(this.axes[_ba.hAxis]);}if(_ba.vAxis){_ba.setAxis(this.axes[_ba.vAxis]);}},this);var dim=this.dim=this.surface.getDimensions();dim.width=g.normalizedLength(dim.width);dim.height=g.normalizedLength(dim.height);_5b.forIn(this.axes,_5e);_b8(this.stack,dim);var _bb=this.offsets={l:0,r:0,t:0,b:0};_5b.forIn(this.axes,function(_bc){_5b.forIn(_bc.getOffsets(),function(o,i){_bb[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 _bd=g.normalizedLength(g.splitFontString(this.titleFont).size);_bb[this.titlePos=="top"?"t":"b"]+=(_bd+this.titleGap);}_5b.forIn(this.margins,function(o,i){_bb[i]+=o;});this.plotArea={width:dim.width-_bb.l-_bb.r,height:dim.height-_bb.t-_bb.b};_5b.forIn(this.axes,_5e);_b8(this.stack,this.plotArea);return this;},render:function(){if(this.theme){this.theme.clear();}if(this.dirty){return this.fullRender();}this.calculateGeometry();_5b.forEachRev(this.stack,function(_be){_be.render(this.dim,this.offsets);},this);_5b.forIn(this.axes,function(_bf){_bf.render(this.dim,this.offsets);},this);this._makeClean();if(this.surface.render){this.surface.render();}return this;},fullRender:function(){this.fullGeometry();var _c0=this.offsets,dim=this.dim,_c1;arr.forEach(this.series,_5f);_5b.forIn(this.axes,_5f);arr.forEach(this.stack,_5f);if(this.chartTitle&&this.chartTitle.tagName){_55.destroy(this.chartTitle);}this.surface.clear();this.chartTitle=null;var t=this.theme,_c2=t.plotarea&&t.plotarea.fill,_c3=t.plotarea&&t.plotarea.stroke,w=Math.max(0,dim.width-_c0.l-_c0.r),h=Math.max(0,dim.height-_c0.t-_c0.b),_c1={x:_c0.l-1,y:_c0.t-1,width:w+2,height:h+2};if(_c2){_c2=_57.prototype._shapeFill(_57.prototype._plotFill(_c2,dim,_c0),_c1);this.surface.createRect(_c1).setFill(_c2);}if(_c3){this.surface.createRect({x:_c0.l,y:_c0.t,width:w+1,height:h+1}).setStroke(_c3);}_5b.foldr(this.stack,function(z,_c4){return _c4.render(dim,_c0),0;},0);_c2=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);_c3=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);if(_c2=="inherit"){var _c5=this.node,_c2=new _56(_53.style(_c5,"backgroundColor"));while(_c2.a==0&&_c5!=document.documentElement){_c2=new _56(_53.style(_c5,"backgroundColor"));_c5=_c5.parentNode;}}if(_c2){_c2=_57.prototype._plotFill(_c2,dim,_c0);if(_c0.l){_c1={width:_c0.l,height:dim.height+1};this.surface.createRect(_c1).setFill(_57.prototype._shapeFill(_c2,_c1));}if(_c0.r){_c1={x:dim.width-_c0.r,width:_c0.r+1,height:dim.height+2};this.surface.createRect(_c1).setFill(_57.prototype._shapeFill(_c2,_c1));}if(_c0.t){_c1={width:dim.width+1,height:_c0.t};this.surface.createRect(_c1).setFill(_57.prototype._shapeFill(_c2,_c1));}if(_c0.b){_c1={y:dim.height-_c0.b,width:dim.width+1,height:_c0.b+2};this.surface.createRect(_c1).setFill(_57.prototype._shapeFill(_c2,_c1));}}if(_c3){this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_c3);}if(this.title){var _c6=(g.renderer=="canvas"),_c7=_c6||!has("ie")&&!has("opera")?"html":"gfx",_c8=g.normalizedLength(g.splitFontString(this.titleFont).size);this.chartTitle=_5a.createText[_c7](this,this.surface,dim.width/2,this.titlePos=="top"?_c8+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);}_5b.forIn(this.axes,function(_c9){_c9.render(dim,_c0);});this._makeClean();if(this.surface.render){this.surface.render();}return this;},delayedRender:function(){if(!this._delayedRenderHandle){this._delayedRenderHandle=setTimeout(_51.hitch(this,function(){clearTimeout(this._delayedRenderHandle);this._delayedRenderHandle=null;this.render();}),this.delayInMs);}return this;},connectToPlot:function(_ca,_cb,_cc){return _ca in this.plots?this.stack[this.plots[_ca]].connect(_cb,_cc):null;},fireEvent:function(_cd,_ce,_cf){if(_cd in this.runs){var _d0=this.series[this.runs[_cd]].plot;if(_d0 in this.plots){var _d1=this.stack[this.plots[_d0]];if(_d1){_d1.fireEvent(_cd,_ce,_cf);}}}return this;},_makeClean:function(){arr.forEach(this.axes,_61);arr.forEach(this.stack,_61);arr.forEach(this.series,_61);this.dirty=false;},_makeDirty:function(){arr.forEach(this.axes,_62);arr.forEach(this.stack,_62);arr.forEach(this.series,_62);this.dirty=true;},_invalidateDependentPlots:function(_d2,_d3){if(_d2 in this.plots){var _d4=this.stack[this.plots[_d2]],_d5,_d6=_d3?"vAxis":"hAxis";if(_d4[_d6]){_d5=this.axes[_d4[_d6]];if(_d5&&_d5.dependOnData()){_d5.dirty=true;arr.forEach(this.stack,function(p){if(p[_d6]&&p[_d6]==_d4[_d6]){p.dirty=true;}});}}else{_d4.dirty=true;}}}});function _d7(_d8){return {min:_d8.hmin,max:_d8.hmax};};function _d9(_da){return {min:_da.vmin,max:_da.vmax};};function _db(_dc,h){_dc.hmin=h.min;_dc.hmax=h.max;};function _dd(_de,v){_de.vmin=v.min;_de.vmax=v.max;};function _df(_e0,_e1){if(_e0&&_e1){_e0.min=Math.min(_e0.min,_e1.min);_e0.max=Math.max(_e0.max,_e1.max);}return _e0||_e1;};function _b8(_e2,_e3){var _e4={},_e5={};arr.forEach(_e2,function(_e6){var _e7=_e4[_e6.name]=_e6.getSeriesStats();if(_e6.hAxis){_e5[_e6.hAxis]=_df(_e5[_e6.hAxis],_d7(_e7));}if(_e6.vAxis){_e5[_e6.vAxis]=_df(_e5[_e6.vAxis],_d9(_e7));}});arr.forEach(_e2,function(_e8){var _e9=_e4[_e8.name];if(_e8.hAxis){_db(_e9,_e5[_e8.hAxis]);}if(_e8.vAxis){_dd(_e9,_e5[_e8.vAxis]);}_e8.initializeScalers(_e3,_e9);});};return dojox.charting.Chart;});},"dojox/color/Palette":function(){define("dojox/color/Palette",["dojo/_base/kernel","../main","dojo/_base/lang","dojo/_base/array","./_base"],function(_ea,_eb,_ec,arr,dxc){dxc.Palette=function(_ed){this.colors=[];if(_ed instanceof dxc.Palette){this.colors=_ed.colors.slice(0);}else{if(_ed instanceof dxc.Color){this.colors=[null,null,_ed,null,null];}else{if(_ec.isArray(_ed)){this.colors=arr.map(_ed.slice(0),function(_ee){if(_ec.isString(_ee)){return new dxc.Color(_ee);}return _ee;});}else{if(_ec.isString(_ed)){this.colors=[null,null,new dxc.Color(_ed),null,null];}}}}};function _ef(p,_f0,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_f1){var r=(_f0=="dr")?_f1.r+val:_f1.r,g=(_f0=="dg")?_f1.g+val:_f1.g,b=(_f0=="db")?_f1.b+val:_f1.b,a=(_f0=="da")?_f1.a+val:_f1.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 _f2(p,_f3,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_f4){var o=_f4.toCmy(),c=(_f3=="dc")?o.c+val:o.c,m=(_f3=="dm")?o.m+val:o.m,y=(_f3=="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 _f5(p,_f6,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_f7){var o=_f7.toCmyk(),c=(_f6=="dc")?o.c+val:o.c,m=(_f6=="dm")?o.m+val:o.m,y=(_f6=="dy")?o.y+val:o.y,k=(_f6=="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 _f8(p,_f9,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_fa){var o=_fa.toHsl(),h=(_f9=="dh")?o.h+val:o.h,s=(_f9=="ds")?o.s+val:o.s,l=(_f9=="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 _fb(p,_fc,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(_fd){var o=_fd.toHsv(),h=(_fc=="dh")?o.h+val:o.h,s=(_fc=="ds")?o.s+val:o.s,v=(_fc=="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 _fe(val,low,_ff){return _ff-((_ff-val)*((_ff-low)/_ff));};_ec.extend(dxc.Palette,{transform:function(_100){var fn=_ef;if(_100.use){var use=_100.use.toLowerCase();if(use.indexOf("hs")==0){if(use.charAt(2)=="l"){fn=_f8;}else{fn=_fb;}}else{if(use.indexOf("cmy")==0){if(use.charAt(3)=="k"){fn=_f5;}else{fn=_f2;}}}}else{if("dc" in _100||"dm" in _100||"dy" in _100){if("dk" in _100){fn=_f5;}else{fn=_f2;}}else{if("dh" in _100||"ds" in _100){if("dv" in _100){fn=_fb;}else{fn=_f8;}}}}var _101=this;for(var p in _100){if(p=="use"){continue;}_101=fn(_101,p,_100[p]);}return _101;},clone:function(){return new dxc.Palette(this);}});_ec.mixin(dxc.Palette,{generators:{analogous:function(args){var high=args.high||60,low=args.low||18,base=_ec.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=_ec.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=_fe(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=_ec.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=_ec.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=_fe(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=_ec.isString(args.base)?new dxc.Color(args.base):args.base,_102=args.da||30,hsv=base.toHsv();var _103=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_103-_102+360)%360,h2=(_103+_102)%360,s1=Math.max(hsv.s-10,0),s2=_fe(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=_ec.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=_ec.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(_ec.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,_104,lang,_105,_106){var cx=lang.getObject("dojox.color",true);cx.Color=_105;cx.blend=_105.blendColors;cx.fromRgb=_105.fromRgb;cx.fromHex=_105.fromHex;cx.fromArray=_105.fromArray;cx.fromString=_105.fromString;cx.greyscale=_106.makeGrey;lang.mixin(cx,{fromCmy:function(cyan,_107,_108){if(lang.isArray(cyan)){_107=cyan[1],_108=cyan[2],cyan=cyan[0];}else{if(lang.isObject(cyan)){_107=cyan.m,_108=cyan.y,cyan=cyan.c;}}cyan/=100,_107/=100,_108/=100;var r=1-cyan,g=1-_107,b=1-_108;return new _105({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_109,_10a,_10b){if(lang.isArray(cyan)){_109=cyan[1],_10a=cyan[2],_10b=cyan[3],cyan=cyan[0];}else{if(lang.isObject(cyan)){_109=cyan.m,_10a=cyan.y,_10b=cyan.b,cyan=cyan.c;}}cyan/=100,_109/=100,_10a/=100,_10b/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_10b)+_10b);g=1-Math.min(1,_109*(1-_10b)+_10b);b=1-Math.min(1,_10a*(1-_10b)+_10b);return new _105({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_10c,_10d){if(lang.isArray(hue)){_10c=hue[1],_10d=hue[2],hue=hue[0];}else{if(lang.isObject(hue)){_10c=hue.s,_10d=hue.l,hue=hue.h;}}_10c/=100;_10d/=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*_10c*Math.min(r,1)+(1-_10c);g=2*_10c*Math.min(g,1)+(1-_10c);b=2*_10c*Math.min(b,1)+(1-_10c);if(_10d<0.5){r*=_10d,g*=_10d,b*=_10d;}else{r=(1-_10d)*r+2*_10d-1;g=(1-_10d)*g+2*_10d-1;b=(1-_10d)*b+2*_10d-1;}return new _105({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});}});cx.fromHsv=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.v,hue=hue.h;}}if(hue==360){hue=0;}_10e/=100;_10f/=100;var r,g,b;if(_10e==0){r=_10f,b=_10f,g=_10f;}else{var _110=hue/60,i=Math.floor(_110),f=_110-i;var p=_10f*(1-_10e);var q=_10f*(1-(_10e*f));var t=_10f*(1-(_10e*(1-f)));switch(i){case 0:r=_10f,g=t,b=p;break;case 1:r=q,g=_10f,b=p;break;case 2:r=p,g=_10f,b=t;break;case 3:r=p,g=q,b=_10f;break;case 4:r=t,g=p,b=_10f;break;case 5:r=_10f,g=p,b=q;break;}}return new _105({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});};lang.extend(_105,{toCmy:function(){var cyan=1-(this.r/255),_111=1-(this.g/255),_112=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_111*100),y:Math.round(_112*100)};},toCmyk:function(){var cyan,_113,_114,_115;var r=this.r/255,g=this.g/255,b=this.b/255;_115=Math.min(1-r,1-g,1-b);cyan=(1-r-_115)/(1-_115);_113=(1-g-_115)/(1-_115);_114=(1-b-_115)/(1-_115);return {c:Math.round(cyan*100),m:Math.round(_113*100),y:Math.round(_114*100),b:Math.round(_115*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 _116=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_116/((l<0.5)?(2*l):(2-2*l));}if(_116>0){if(max==r&&max!=g){h+=(g-b)/_116;}if(max==g&&max!=b){h+=(2+(b-r)/_116);}if(max==b&&max!=r){h+=(4+(r-g)/_116);}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 _117=max-min;var h=null,s=(max==0)?0:(_117/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_117;}else{if(g==max){h=120+60*(b-r)/_117;}else{h=240+60*(r-g)/_117;}}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,_118,_119){var _11a=lang.getObject("dojo.colors",true);var _11b=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=_118.fromRgb=function(_11c,obj){var m=_11c.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=_119.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return _118.fromArray(a,obj);}return _118.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=[_11b(m1,m2,H+1/3)*256,_11b(m1,m2,H)*256,_11b(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return _118.fromArray(a,obj);}}return null;};var _11d=function(c,low,high){c=Number(c);return isNaN(c)?high:chigh?high:c;};_118.prototype.sanitize=function(){var t=this;t.r=Math.round(_11d(t.r,0,255));t.g=Math.round(_11d(t.g,0,255));t.b=Math.round(_11d(t.b,0,255));t.a=_11d(t.a,0,1);return this;};_11a.makeGrey=_118.makeGrey=function(g,a){return _118.fromArray([g,g,g,a]);};lang.mixin(_118.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 _118;});},"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,_11e,_11f,_120,_121,dlu,dgg){var _122=_11e("dojox.charting.Theme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(_123){_123=_123||{};var def=_122.defaultTheme;arr.forEach(["chart","plotarea","axis","series","marker","indicator"],function(name){this[name]=lang.delegate(def[name],_123[name]);},this);if(_123.seriesThemes&&_123.seriesThemes.length){this.colors=null;this.seriesThemes=_123.seriesThemes.slice(0);}else{this.seriesThemes=null;this.colors=(_123.colors||_122.defaultColors).slice(0);}this.markerThemes=null;if(_123.markerThemes&&_123.markerThemes.length){this.markerThemes=_123.markerThemes.slice(0);}this.markers=_123.markers?lang.clone(_123.markers):lang.delegate(_122.defaultMarkers);this.noGradConv=_123.noGradConv;this.noRadialConv=_123.noRadialConv;if(_123.reverseFills){this.reverseFills();}this._current=0;this._buildMarkerArray();},clone:function(){var _124=new _122({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)){_124[name]=this[name];}},this);return _124;},clear:function(){this._current=0;},next:function(_125,_126,_127){var _128=dlu.merge,_129,_12a;if(this.colors){_129=lang.delegate(this.series);_12a=lang.delegate(this.marker);var _12b=new _11f(this.colors[this._current%this.colors.length]),old;if(_129.stroke&&_129.stroke.color){_129.stroke=lang.delegate(_129.stroke);old=new _11f(_129.stroke.color);_129.stroke.color=new _11f(_12b);_129.stroke.color.a=old.a;}else{_129.stroke={color:_12b};}if(_12a.stroke&&_12a.stroke.color){_12a.stroke=lang.delegate(_12a.stroke);old=new _11f(_12a.stroke.color);_12a.stroke.color=new _11f(_12b);_12a.stroke.color.a=old.a;}else{_12a.stroke={color:_12b};}if(!_129.fill||_129.fill.type){_129.fill=_12b;}else{old=new _11f(_129.fill);_129.fill=new _11f(_12b);_129.fill.a=old.a;}if(!_12a.fill||_12a.fill.type){_12a.fill=_12b;}else{old=new _11f(_12a.fill);_12a.fill=new _11f(_12b);_12a.fill.a=old.a;}}else{_129=this.seriesThemes?_128(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series;_12a=this.markerThemes?_128(this.marker,this.markerThemes[this._current%this.markerThemes.length]):_129;}var _12c=_12a&&_12a.symbol||this._markers[this._current%this._markers.length];var _12d={series:_129,marker:_12a,symbol:_12c};++this._current;if(_126){_12d=this.addMixin(_12d,_125,_126);}if(_127){_12d=this.post(_12d,_125);}return _12d;},skip:function(){++this._current;},addMixin:function(_12e,_12f,_130,_131){if(lang.isArray(_130)){arr.forEach(_130,function(m){_12e=this.addMixin(_12e,_12f,m);},this);}else{var t={};if("color" in _130){if(_12f=="line"||_12f=="area"){lang.setObject("series.stroke.color",_130.color,t);lang.setObject("marker.stroke.color",_130.color,t);}else{lang.setObject("series.fill",_130.color,t);}}arr.forEach(["stroke","outline","shadow","fill","font","fontColor","labelWiring"],function(name){var _132="marker"+name.charAt(0).toUpperCase()+name.substr(1),b=_132 in _130;if(name in _130){lang.setObject("series."+name,_130[name],t);if(!b){lang.setObject("marker."+name,_130[name],t);}}if(b){lang.setObject("marker."+name,_130[_132],t);}});if("marker" in _130){t.symbol=_130.marker;}_12e=dlu.merge(_12e,t);}if(_131){_12e=this.post(_12e,_12f);}return _12e;},post:function(_133,_134){var fill=_133.series.fill,t;if(!this.noGradConv&&this.shapeSpaces[fill.space]&&fill.type=="linear"){if(_134=="bar"){t={x1:fill.y1,y1:fill.x1,x2:fill.y2,y2:fill.x2};}else{if(!this.noRadialConv&&fill.space=="shape"&&(_134=="slice"||_134=="circle")){t={type:"radial",cx:0,cy:0,r:100};}}if(t){return dlu.merge(_133,{series:{fill:t}});}}return _133;},getTick:function(name,_135){var tick=this.axis.tick,_136=name+"Tick",_137=dlu.merge;if(tick){if(this.axis[_136]){tick=_137(tick,this.axis[_136]);}}else{tick=this.axis[_136];}if(_135){if(tick){if(_135[_136]){tick=_137(tick,_135[_136]);}}else{tick=_135[_136];}}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,_138){this.markers[name]=_138;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(_122,{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(_139){_139=_139||{};var l,c=[],n=_139.num||5;if(_139.colors){l=_139.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 _149=function(s){var args=[],_14a=_148.call(s,/\s*->\s*/m);if(_14a.length>1){while(_14a.length){s=_14a.pop();args=_14a.pop().split(/\s*,\s*|\s+/m);if(_14a.length){_14a.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 _14b=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 _149(s);},buildLambda:function(s){s=_149(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _14b(s);}if(s in _147){return _147[s];}s=_149(s);return _147[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_147={};}});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 _14c={};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,_14e,_14f){return _14e("dojox.charting.Series",_14f,{constructor:function(_150,data,_151){lang.mixin(this,_151);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,_152){var _153=g.gradutils={};function _154(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 _152.blendColors(new _152(prev.color),new _152(stop.color),(o-prev.offset)/(stop.offset-prev.offset));}return stop.color;}}return c[len-1].color;};_153.getColor=function(fill,pt){var o;if(fill){switch(fill.type){case "linear":var _155=Math.atan2(fill.y2-fill.y1,fill.x2-fill.x1),_156=m.rotate(-_155),_157=m.project(fill.x2-fill.x1,fill.y2-fill.y1),p=m.multiplyPoint(_157,pt),pf1=m.multiplyPoint(_157,fill.x1,fill.y1),pf2=m.multiplyPoint(_157,fill.x2,fill.y2),_158=m.multiplyPoint(_156,pf2.x-pf1.x,pf2.y-pf1.y).x;o=m.multiplyPoint(_156,p.x-pf1.x,p.y-pf1.y).x/_158;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 _154(o,fill.colors);}return new _152(fill||[0,0,0,0]);};_153.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/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/sniff","./_base/manager","."],function(_5,_6,_7,_8,_9,_a,_b,_c,_d){var _e=(_d._isElementShown=function(_f){var s=_a.get(_f);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_9.get(_f,"type")!="hidden");});_d.hasDefaultTabStop=function(_10){switch(_10.nodeName.toLowerCase()){case "a":return _9.has(_10,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _11;try{var _12=_10.contentDocument;if("designMode" in _12&&_12.designMode=="on"){return true;}_11=_12.body;}catch(e1){try{_11=_10.contentWindow.document.body;}catch(e2){return false;}}return _11&&(_11.contentEditable=="true"||(_11.firstChild&&_11.firstChild.contentEditable=="true"));default:return _10.contentEditable=="true";}};var _13=(_d.isTabNavigable=function(_14){if(_9.get(_14,"disabled")){return false;}else{if(_9.has(_14,"tabIndex")){return _9.get(_14,"tabIndex")>=0;}else{return _d.hasDefaultTabStop(_14);}}});_d._getTabNavigable=function(_15){var _16,_17,_18,_19,_1a,_1b,_1c={};function _1d(_1e){return _1e&&_1e.tagName.toLowerCase()=="input"&&_1e.type&&_1e.type.toLowerCase()=="radio"&&_1e.name&&_1e.name.toLowerCase();};var _1f=function(_20){for(var _21=_20.firstChild;_21;_21=_21.nextSibling){if(_21.nodeType!=1||(_b("ie")&&_21.scopeName!=="HTML")||!_e(_21)){continue;}if(_13(_21)){var _22=_9.get(_21,"tabIndex");if(!_9.has(_21,"tabIndex")||_22==0){if(!_16){_16=_21;}_17=_21;}else{if(_22>0){if(!_18||_22<_19){_19=_22;_18=_21;}if(!_1a||_22>=_1b){_1b=_22;_1a=_21;}}}var rn=_1d(_21);if(_9.get(_21,"checked")&&rn){_1c[rn]=_21;}}if(_21.nodeName.toUpperCase()!="SELECT"){_1f(_21);}}};if(_e(_15)){_1f(_15);}function rs(_23){return _1c[_1d(_23)]||_23;};return {first:rs(_16),last:rs(_17),lowest:rs(_18),highest:rs(_1a)};};_d.getFirstInTabbingOrder=function(_24){var _25=_d._getTabNavigable(_8.byId(_24));return _25.lowest?_25.lowest:_25.first;};_d.getLastInTabbingOrder=function(_26){var _27=_d._getTabNavigable(_8.byId(_26));return _27.last?_27.last:_27.highest;};return {hasDefaultTabStop:_d.hasDefaultTabStop,isTabNavigable:_d.isTabNavigable,_getTabNavigable:_d._getTabNavigable,getFirstInTabbingOrder:_d.getFirstInTabbingOrder,getLastInTabbingOrder:_d.getLastInTabbingOrder};});},"dojo/NodeList-fx":function(){define("dojo/NodeList-fx",["dojo/_base/NodeList","./_base/lang","./_base/connect","./_base/fx","./fx"],function(_28,_29,_2a,_2b,_2c){_29.extend(_28,{_anim:function(obj,_2d,_2e){_2e=_2e||{};var a=_2c.combine(this.map(function(_2f){var _30={node:_2f};_29.mixin(_30,_2e);return obj[_2d](_30);}));return _2e.auto?a.play()&&this:a;},wipeIn:function(_31){return this._anim(_2c,"wipeIn",_31);},wipeOut:function(_32){return this._anim(_2c,"wipeOut",_32);},slideTo:function(_33){return this._anim(_2c,"slideTo",_33);},fadeIn:function(_34){return this._anim(_2b,"fadeIn",_34);},fadeOut:function(_35){return this._anim(_2b,"fadeOut",_35);},animateProperty:function(_36){return this._anim(_2b,"animateProperty",_36);},anim:function(_37,_38,_39,_3a,_3b){var _3c=_2c.combine(this.map(function(_3d){return _2b.animateProperty({node:_3d,properties:_37,duration:_38||350,easing:_39});}));if(_3a){_2a.connect(_3c,"onEnd",_3a);}return _3c.play(_3b||0);}});return _28;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_3e,_3f,_40,_41,_42,_43,dom,_44,_45,_46,_47,_48,_49,_4a,on,_4b,_4c,_4d,win,_4e){if(!_49.isAsync){_4b(0,function(){var _4f=["dijit/_base/manager"];_3e(_4f);});}var _50={};function _51(obj){var ret={};for(var _52 in obj){ret[_52.toLowerCase()]=true;}return ret;};function _53(_54){return function(val){_44[val?"set":"remove"](this.domNode,_54,val);this._set(_54,val);};};return _43("dijit._WidgetBase",_4c,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_53("lang"),dir:"",_setDirAttr:_53("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_41.blankGif||_3e.toUrl("dojo/resources/blank.gif"),postscript:function(_55,_56){this.create(_55,_56);},create:function(_57,_58){this.srcNodeRef=dom.byId(_58);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_57){this.params=_57;_4a.mixin(this,_57);}this.postMixInProperties();if(!this.id){this.id=_4e.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_4e.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _59=this.srcNodeRef;if(_59&&_59.parentNode&&this.domNode!==_59){_59.parentNode.replaceChild(this.domNode,_59);}}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 _5a=this.constructor,_5b=_5a._setterAttrs;if(!_5b){_5b=(_5a._setterAttrs=[]);for(var _5c in this.attributeMap){_5b.push(_5c);}var _5d=_5a.prototype;for(var _5e in _5d){if(_5e in this.attributeMap){continue;}var _5f="_set"+_5e.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_5f in _5d){_5b.push(_5e);}}}_3f.forEach(_5b,function(_60){if(this.params&&_60 in this.params){}else{if(this[_60]){this.set(_60,this[_60]);}}},this);for(var _61 in this.params){this.set(_61,this[_61]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_46.create("div");}if(this.baseClass){var _62=this.baseClass.split(" ");if(!this.isLeftToRight()){_62=_62.concat(_3f.map(_62,function(_63){return _63+"Rtl";}));}_45.add(this.domNode,_62);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_3f.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_4a.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_64){this._beingDestroyed=true;this.destroyDescendants(_64);this.destroy(_64);},destroy:function(_65){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(_65);_4e.remove(this.id);this._destroyed=true;},destroyRendering:function(_66){if(this.bgIframe){this.bgIframe.destroy(_66);delete this.bgIframe;}if(this.domNode){if(_66){_44.remove(this.domNode,"widgetId");}else{_46.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_66){_46.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_67){_3f.forEach(this.getChildren(),function(_68){if(_68.destroyRecursive){_68.destroyRecursive(_67);}});},uninitialize:function(){return false;},_setStyleAttr:function(_69){var _6a=this.domNode;if(_4a.isObject(_69)){_48.set(_6a,_69);}else{if(_6a.style.cssText){_6a.style.cssText+="; "+_69;}else{_6a.style.cssText=_69;}}this._set("style",_69);},_attrToDom:function(_6b,_6c,_6d){_6d=arguments.length>=3?_6d:this.attributeMap[_6b];_3f.forEach(_4a.isArray(_6d)?_6d:[_6d],function(_6e){var _6f=this[_6e.node||_6e||"domNode"];var _70=_6e.type||"attribute";switch(_70){case "attribute":if(_4a.isFunction(_6c)){_6c=_4a.hitch(this,_6c);}var _71=_6e.attribute?_6e.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_6b)?_6b.toLowerCase():_6b);_44.set(_6f,_71,_6c);break;case "innerText":_6f.innerHTML="";_6f.appendChild(win.doc.createTextNode(_6c));break;case "innerHTML":_6f.innerHTML=_6c;break;case "class":_45.replace(_6f,_6c,this[_6b]);break;}},this);},get:function(_72){var _73=this._getAttrNames(_72);return this[_73.g]?this[_73.g]():this[_72];},set:function(_74,_75){if(typeof _74==="object"){for(var x in _74){this.set(x,_74[x]);}return this;}var _76=this._getAttrNames(_74),_77=this[_76.s];if(_4a.isFunction(_77)){var _78=_77.apply(this,Array.prototype.slice.call(arguments,1));}else{var _79=this.focusNode&&!_4a.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_79].tagName,_7a=_50[tag]||(_50[tag]=_51(this[_79])),map=_74 in this.attributeMap?this.attributeMap[_74]:_76.s in this?this[_76.s]:((_76.l in _7a&&typeof _75!="function")||/^aria-|^data-|^role$/.test(_74))?_79:null;if(map!=null){this._attrToDom(_74,_75,map);}this._set(_74,_75);}return _78||this;},_attrPairNames:{},_getAttrNames:function(_7b){var apn=this._attrPairNames;if(apn[_7b]){return apn[_7b];}var uc=_7b.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_7b]={n:_7b+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_7c,_7d){var _7e=this[_7c];this[_7c]=_7d;if(this._watchCallbacks&&this._created&&_7d!==_7e){this._watchCallbacks(_7c,_7e,_7d);}},on:function(_7f,_80){return _40.after(this,this._onMap(_7f),_80,true);},_onMap:function(_81){var _82=this.constructor,map=_82._onMap;if(!map){map=(_82._onMap={});for(var _83 in _82.prototype){if(/^on/.test(_83)){map[_83.replace(/^on/,"").toLowerCase()]=_83;}}}return map[_81.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_4e.findWidgets(this.containerNode):[];},getParent:function(){return _4e.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_84,_85){var _86=_42.connect(obj,_84,this,_85);this._connects.push(_86);return _86;},disconnect:function(_87){var i=_3f.indexOf(this._connects,_87);if(i!=-1){_87.remove();this._connects.splice(i,1);}},subscribe:function(t,_88){var _89=_4d.subscribe(t,_4a.hitch(this,_88));this._connects.push(_89);return _89;},unsubscribe:function(_8a){this.disconnect(_8a);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_47.isBodyLtr();},isFocusable:function(){return this.focus&&(_48.get(this.domNode,"display")!="none");},placeAt:function(_8b,_8c){if(_8b.declaredClass&&_8b.addChild){_8b.addChild(this,_8c);}else{_46.place(this.domNode,_8b,_8c);}return this;},getTextDir:function(_8d,_8e){return _8e;},applyTextDir:function(){},defer:function(fcn,_8f){var _90=setTimeout(_4a.hitch(this,function(){_90=null;if(!this._destroyed){_4a.hitch(this,fcn)();}}),_8f||0);return {remove:function(){if(_90){clearTimeout(_90);_90=null;}return null;}};}});});},"dojox/fx":function(){define("dojox/fx",["./fx/_base"],function(_91){return _91;});},"dojo/Stateful":function(){define("dojo/Stateful",["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(_92,_93,_94,_95){return _92.declare("dojo.Stateful",null,{postscript:function(_96){if(_96){_94.mixin(this,_96);}},get:function(_97){return this[_97];},set:function(_98,_99){if(typeof _98==="object"){for(var x in _98){this.set(x,_98[x]);}return this;}var _9a=this[_98];this[_98]=_99;if(this._watchCallbacks){this._watchCallbacks(_98,_9a,_99);}return this;},watch:function(_9b,_9c){var _9d=this._watchCallbacks;if(!_9d){var _9e=this;_9d=this._watchCallbacks=function(_9f,_a0,_a1,_a2){var _a3=function(_a4){if(_a4){_a4=_a4.slice();for(var i=0,l=_a4.length;i=9&&_e6.ownerDocument.parentWindow.frameElement)?((_e8.clientHeight>0&&_e8.clientWidth>0&&(_e7.clientHeight==0||_e7.clientWidth==0||_e7.clientHeight>_e8.clientHeight||_e7.clientWidth>_e8.clientWidth))?_e8:_e7):(_eb?_e7:_e8),_ed=_ea?_e7:_ec,_ee=_ec.clientWidth,_ef=_ec.clientHeight,rtl=!_e0.isBodyLtr(),_f0=pos||_e0.position(_e6),el=_e6.parentNode,_f1=function(el){return ((_e9<=6||(_e9&&_eb))?false:(_e1.get(el,"position").toLowerCase()=="fixed"));};if(_f1(_e6)){return;}while(el){if(el==_e7){el=_ed;}var _f2=_e0.position(el),_f3=_f1(el);if(el==_ed){_f2.w=_ee;_f2.h=_ef;if(_ed==_e8&&_e9&&rtl){_f2.x+=_ed.offsetWidth-_f2.w;}if(_f2.x<0||!_e9){_f2.x=0;}if(_f2.y<0||!_e9){_f2.y=0;}}else{var pb=_e0.getPadBorderExtents(el);_f2.w-=pb.w;_f2.h-=pb.h;_f2.x+=pb.l;_f2.y+=pb.t;var _f4=el.clientWidth,_f5=_f2.w-_f4;if(_f4>0&&_f5>0){_f2.w=_f4;_f2.x+=(rtl&&(_e9||el.clientLeft>pb.l))?_f5:0;}_f4=el.clientHeight;_f5=_f2.h-_f4;if(_f4>0&&_f5>0){_f2.h=_f4;}}if(_f3){if(_f2.y<0){_f2.h+=_f2.y;_f2.y=0;}if(_f2.x<0){_f2.w+=_f2.x;_f2.x=0;}if(_f2.y+_f2.h>_ef){_f2.h=_ef-_f2.y;}if(_f2.x+_f2.w>_ee){_f2.w=_ee-_f2.x;}}var l=_f0.x-_f2.x,t=_f0.y-Math.max(_f2.y,0),r=l+_f0.w-_f2.w,bot=t+_f0.h-_f2.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((_e9==8&&!_eb)||_e9>=9)){s=-s;}_f0.x+=el.scrollLeft;el.scrollLeft+=s;_f0.x-=el.scrollLeft;}if(bot*t>0){_f0.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_f0.y-=el.scrollTop;}el=(el!=_ed)&&!_f3&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_e6.scrollIntoView(false);}};return _e2;});},"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,_f6,_f7,_f8,has,_f9,win){var _fa=null;if(has("ie")){(function(){var _fb=function(evt){_fa=evt.srcElement;};win.doc.attachEvent("onkeydown",_fb);_f9.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_fb);});})();}else{win.doc.addEventListener("keydown",function(evt){_fa=evt.target;},true);}var _fc=function(_fd,_fe){if(/input|button/i.test(_fd.nodeName)){return on(_fd,"click",_fe);}else{function _ff(e){return (e.keyCode==_f7.ENTER||e.keyCode==_f7.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _100=[on(_fd,"keypress",function(e){if(_ff(e)){_fa=e.target;e.preventDefault();}}),on(_fd,"keyup",function(e){if(_ff(e)&&e.target==_fa){_fa=null;_fe.call(this,e);}}),on(_fd,"click",function(e){_fe.call(this,e);})];return {remove:function(){_f6.forEach(_100,function(h){h.remove();});}};}};return _f8("dijit._OnDijitClickMixin",null,{connect:function(obj,_101,_102){return this.inherited(arguments,[obj,_101=="ondijitclick"?_fc:_101,_102]);}});});},"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(_103,_104,_105,_106,_107,_108,has,win){if(has("ie")||has("mozilla")){_108(90,function(){var div=_106.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_104.blankGif||_103.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_107.getComputedStyle(div);if(cs){var _109=cs.backgroundImage;var _10a=(cs.borderTopColor==cs.borderRightColor)||(_109!=null&&(_109=="none"||_109=="url(invalid-url:)"));if(_10a){_105.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(_10b,lang,_10c,_10d,dom,_10e,_10f,_110,_111){var _112=lang.getObject("dojox.fx",true);_112.sizeTo=function(args){var node=args.node=dom.byId(args.node),abs="absolute";var _113=args.method||"chain";if(!args.duration){args.duration=500;}if(_113=="chain"){args.duration=Math.floor(args.duration/2);}var top,_114,left,_115,_116,_117=null;var init=(function(n){return function(){var cs=_10e.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);_116=(w=="auto"?0:parseInt(w));_117=(h=="auto"?0:parseInt(h));_115=left-Math.floor((args.width-_116)/2);_114=top-Math.floor((args.height-_117)/2);if(pos!=abs&&pos!="relative"){var ret=_10e.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 _118=_10c.animateProperty(lang.mixin({properties:{height:function(){init();return {end:args.height||0,start:_117};},top:function(){return {start:top,end:_114};}}},args));var _119=_10c.animateProperty(lang.mixin({properties:{width:function(){return {start:_116,end:args.width||0};},left:function(){return {start:left,end:_115};}}},args));var anim=_10d[(args.method=="combine"?"combine":"chain")]([_118,_119]);return anim;};_112.slideBy=function(args){var node=args.node=dom.byId(args.node),top,left;var init=(function(n){return function(){var cs=_10e.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=_10f.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 _11a=_10c.animateProperty(lang.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));_110.connect(_11a,"beforeBegin",_11a,init);return _11a;};_112.crossFade=function(args){var _11b=args.nodes[0]=dom.byId(args.nodes[0]),op1=_111.style(_11b,"opacity"),_11c=args.nodes[1]=dom.byId(args.nodes[1]),op2=_111.style(_11c,"opacity");var _11d=_10d.combine([_10c[(op1==0?"fadeIn":"fadeOut")](lang.mixin({node:_11b},args)),_10c[(op1==0?"fadeOut":"fadeIn")](lang.mixin({node:_11c},args))]);return _11d;};_112.highlight=function(args){var node=args.node=dom.byId(args.node);args.duration=args.duration||400;var _11e=args.color||"#ffff99",_11f=_111.style(node,"backgroundColor");if(_11f=="rgba(0, 0, 0, 0)"){_11f="transparent";}var anim=_10c.animateProperty(lang.mixin({properties:{backgroundColor:{start:_11e,end:_11f}}},args));if(_11f=="transparent"){_110.connect(anim,"onEnd",anim,function(){node.style.backgroundColor=_11f;});}return anim;};_112.wipeTo=function(args){args.node=dom.byId(args.node);var node=args.node,s=node.style;var dir=(args.width?"width":"height"),_120=args[dir],_121={};_121[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=_111.style(node,dir);return Math.max(now,1);}},end:_120};var anim=_10c.animateProperty(lang.mixin({properties:_121},args));return anim;};return _112;});},"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(_122,_123,_124,_125,_126,lang,_127,_128,_129,_12a,_12b,_12c){function _12d(){};function _12e(_12f){return function(obj,_130,_131,_132){if(obj&&typeof _130=="string"&&obj[_130]==_12d){return obj.on(_130.substring(2).toLowerCase(),lang.hitch(_131,_132));}return _12f.apply(_124,arguments);};};_122.around(_124,"connect",_12e);if(_126.connect){_122.around(_126,"connect",_12e);}var _133=_125("dijit._Widget",[_12a,_12b,_12c],{onClick:_12d,onDblClick:_12d,onKeyDown:_12d,onKeyPress:_12d,onKeyUp:_12d,onMouseDown:_12d,onMouseMove:_12d,onMouseOut:_12d,onMouseOver:_12d,onMouseLeave:_12d,onMouseEnter:_12d,onMouseUp:_12d,constructor:function(_134){this._toConnect={};for(var name in _134){if(this[name]===_12d){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_134[name];delete _134[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)]===_12d){return _124.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_135){_126.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_135);},attr:function(name,_136){if(_123.isDebug){var _137=arguments.callee._ach||(arguments.callee._ach={}),_138=(arguments.callee.caller||"unknown caller").toString();if(!_137[_138]){_126.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_138,"","2.0");_137[_138]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_126.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_127("[widgetId]",this.containerNode).map(_129.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_126.isAsync){_128(0,function(){var _139=["dijit/_base"];require(_139);});}return _133;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_13a,_13b,_13c,lang){lang.extend(_13b,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _13c("dijit._FocusMixin",null,{_focusManager:_13a});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","."],function(_13d,_13e,dom,_13f,_140,_141,lang,on,_142,has,_143,_144,win,_145,a11y,_146,_147){var _148=_13e([_143,_141],{curNode:null,activeStack:[],constructor:function(){var _149=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);}});_13d.before(_140,"empty",_149);_13d.before(_140,"destroy",_149);},registerIframe:function(_14a){return this.registerWin(_14a.contentWindow,_14a);},registerWin:function(_14b,_14c){var _14d=this;var _14e=function(evt){_14d._justMouseDowned=true;setTimeout(function(){_14d._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_14d._onTouchNode(_14c||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_14b.document.documentElement:_14b.document;if(doc){if(has("ie")){_14b.document.body.attachEvent("onmousedown",_14e);var _14f=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_14d._onFocusNode(_14c||evt.srcElement);}else{_14d._onTouchNode(_14c||evt.srcElement);}};doc.attachEvent("onactivate",_14f);var _150=function(evt){_14d._onBlurNode(_14c||evt.srcElement);};doc.attachEvent("ondeactivate",_150);return {remove:function(){_14b.document.detachEvent("onmousedown",_14e);doc.detachEvent("onactivate",_14f);doc.detachEvent("ondeactivate",_150);doc=null;}};}else{doc.body.addEventListener("mousedown",_14e,true);doc.body.addEventListener("touchstart",_14e,true);var _151=function(evt){_14d._onFocusNode(_14c||evt.target);};doc.addEventListener("focus",_151,true);var _152=function(evt){_14d._onBlurNode(_14c||evt.target);};doc.addEventListener("blur",_152,true);return {remove:function(){doc.body.removeEventListener("mousedown",_14e,true);doc.body.removeEventListener("touchstart",_14e,true);doc.removeEventListener("focus",_151,true);doc.removeEventListener("blur",_152,true);doc=null;}};}}},_onBlurNode:function(){this.set("prevNode",this.curNode);this.set("curNode",null);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);this.prevNode=null;}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _153=[];try{while(node){var _154=_13f.get(node,"dijitPopupParent");if(_154){node=_146.byId(_154).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_145.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_155=id&&_146.byId(id);if(_155&&!(by=="mouse"&&_155.get("disabled"))){_153.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_153,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("curNode",node);},_setStack:function(_156,by){var _157=this.activeStack;this.set("activeStack",_156);for(var _158=0;_158=_158;i--){_159=_146.byId(_157[i]);if(_159){_159._hasBeenBlurred=true;_159.set("focused",false);if(_159._focusManager==this){_159._onBlur(by);}this.emit("widget-blur",_159,by);}}for(i=_158;i<_156.length;i++){_159=_146.byId(_156[i]);if(_159){_159.set("focused",true);if(_159._focusManager==this){_159._onFocus(by);}this.emit("widget-focus",_159,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _15a=new _148();_142(function(){var _15b=_15a.registerWin(win.doc.parentWindow||win.doc.defaultView);if(has("ie")){_144.addOnWindowUnload(function(){_15b.remove();_15b=null;});}});_147.focus=function(node){_15a.focus(node);};for(var attr in _15a){if(!/^_/.test(attr)){_147.focus[attr]=typeof _15a[attr]=="function"?lang.hitch(_15a,attr):_15a[attr];}}_15a.watch(function(attr,_15c,_15d){_147.focus[attr]=_15d;});return _15a;});},"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-1||_3f.search("ipad")>-1||_3f.search("ipod")>-1;function _41(ns,_42){if(win.doc.createElementNS){return win.doc.createElementNS(ns,_42);}else{return win.doc.createElement(_42);}};function _43(_44){if(svg.useSvgWeb){return win.doc.createTextNode(_44,true);}else{return win.doc.createTextNode(_44);}};function _45(){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(_46){if(!_46||_46=="none"){return null;}if(_46.match(/^url\(#.+\)$/)){return dom.byId(_46.slice(5,-1));}if(_46.match(/^#dojoUnique\d+$/)){return dom.byId(_46.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(_47){if(!_47){this.fillStyle=null;this.rawNode.setAttribute("fill","none");this.rawNode.setAttribute("fill-opacity",0);return this;}var f;var _48=function(x){this.setAttribute(x,f[x].toFixed(8));};if(typeof (_47)=="object"&&"type" in _47){switch(_47.type){case "linear":f=g.makeParameters(g.defaultLinearGradient,_47);var _49=this._setFillObject(f,"linearGradient");arr.forEach(["x1","y1","x2","y2"],_48,_49);break;case "radial":f=g.makeParameters(g.defaultRadialGradient,_47);var _4a=this._setFillObject(f,"radialGradient");arr.forEach(["cx","cy","r"],_48,_4a);break;case "pattern":f=g.makeParameters(g.defaultPattern,_47);var _4b=this._setFillObject(f,"pattern");arr.forEach(["x","y","width","height"],_48,_4b);break;}this.fillStyle=f;return this;}f=g.normalizeColor(_47);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(_4c){var rn=this.rawNode;if(!_4c){this.strokeStyle=null;rn.setAttribute("stroke","none");rn.setAttribute("stroke-opacity",0);return this;}if(typeof _4c=="string"||_3a.isArray(_4c)||_4c instanceof _3d){_4c={color:_4c};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_4c);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=_97){_98={action:_95,args:_96.slice(0,_96.length-_96.length%_97)};this.segments.push(_98);this._updateWithSegment(_98);}}else{_98={action:_95,args:[]};this.segments.push(_98);this._updateWithSegment(_98);}}},_collectArgs:function(_99,_9a){for(var i=0;i<_9a.length;++i){var t=_9a[i];if(typeof t=="boolean"){_99.push(t?1:0);}else{if(typeof t=="number"){_99.push(t);}else{if(t instanceof Array){this._collectArgs(_99,t);}else{if("x" in t&&"y" in t){_99.push(t.x,t.y);}}}}}},moveTo:function(){this._confirmSegmented();var _9b=[];this._collectArgs(_9b,arguments);this._pushSegment(this.absolute?"M":"m",_9b);return this;},lineTo:function(){this._confirmSegmented();var _9c=[];this._collectArgs(_9c,arguments);this._pushSegment(this.absolute?"L":"l",_9c);return this;},hLineTo:function(){this._confirmSegmented();var _9d=[];this._collectArgs(_9d,arguments);this._pushSegment(this.absolute?"H":"h",_9d);return this;},vLineTo:function(){this._confirmSegmented();var _9e=[];this._collectArgs(_9e,arguments);this._pushSegment(this.absolute?"V":"v",_9e);return this;},curveTo:function(){this._confirmSegmented();var _9f=[];this._collectArgs(_9f,arguments);this._pushSegment(this.absolute?"C":"c",_9f);return this;},smoothCurveTo:function(){this._confirmSegmented();var _a0=[];this._collectArgs(_a0,arguments);this._pushSegment(this.absolute?"S":"s",_a0);return this;},qCurveTo:function(){this._confirmSegmented();var _a1=[];this._collectArgs(_a1,arguments);this._pushSegment(this.absolute?"Q":"q",_a1);return this;},qSmoothCurveTo:function(){this._confirmSegmented();var _a2=[];this._collectArgs(_a2,arguments);this._pushSegment(this.absolute?"T":"t",_a2);return this;},arcTo:function(){this._confirmSegmented();var _a3=[];this._collectArgs(_a3,arguments);this._pushSegment(this.absolute?"A":"a",_a3);return this;},closePath:function(){this._confirmSegmented();this._pushSegment("Z",[]);return this;},_confirmSegmented:function(){if(!this.segmented){var _a4=this.shape.path;this.shape.path=[];this._setPath(_a4);this.shape.path=this.shape.path.join("");this.segmented=true;}},_setPath:function(_a5){var p=_88.isArray(_a5)?_a5:_a5.match(g.pathSvgRegExp);this.segments=[];this.absolute=true;this.bbox={};this.last={};if(!p){return;}var _a6="",_a7=[],l=p.length;for(var i=0;i0){var _b1=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(_b2){var c=Math.cos(_b2);var s=Math.sin(_b2);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_b3){return m.rotate(m._degToRad(_b3));},skewX:function(_b4){return new m.Matrix2D({xy:Math.tan(_b4)});},skewXg:function(_b5){return m.skewX(m._degToRad(_b5));},skewY:function(_b6){return new m.Matrix2D({yx:Math.tan(_b6)});},skewYg:function(_b7){return m.skewY(m._degToRad(_b7));},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(_b8){return (_b8 instanceof m.Matrix2D)?_b8:new m.Matrix2D(_b8);},clone:function(_b9){var obj=new m.Matrix2D();for(var i in _b9){if(typeof (_b9[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_b9[i]){obj[i]=_b9[i];}}return obj;},invert:function(_ba){var M=m.normalize(_ba),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(_bb,x,y){return {x:_bb.xx*x+_bb.xy*y+_bb.dx,y:_bb.yx*x+_bb.yy*y+_bb.dy};},multiplyPoint:function(_bc,a,b){var M=m.normalize(_bc);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_bd){var M=m.normalize(_bd);for(var i=1;i2){return m._sandwich(m.rotate(_bf),a,b);}return m._sandwich(m.rotate(_bf),a.x,a.y);},rotategAt:function(_c0,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_c0),a,b);}return m._sandwich(m.rotateg(_c0),a.x,a.y);},skewXAt:function(_c1,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_c1),a,b);}return m._sandwich(m.skewX(_c1),a.x,a.y);},skewXgAt:function(_c2,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_c2),a,b);}return m._sandwich(m.skewXg(_c2),a.x,a.y);},skewYAt:function(_c3,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_c3),a,b);}return m._sandwich(m.skewY(_c3),a.x,a.y);},skewYgAt:function(_c4,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_c4),a,b);}return m._sandwich(m.skewYg(_c4),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(_c5,_c6,_c7,has,win,arr,dom,_c8,_c9){var g=_c5.getObject("dojox.gfx",true),b=g._base={};g._hasClass=function(_ca,_cb){var cls=_ca.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_cb+" ")>=0;};g._addClass=function(_cc,_cd){var cls=_cc.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_cd+" ")<0){_cc.setAttribute("className",cls+(cls?" ":"")+_cd);}};g._removeClass=function(_ce,_cf){var cls=_ce.getAttribute("className");if(cls){_ce.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_cf+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _d0={"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=_c8.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 _d0){div.style.fontSize=p;_d0[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}win.body().removeChild(div);return _d0;};var _d1=null;b._getCachedFontMeasurements=function(_d2){if(_d2||!_d1){_d1=b._getFontMeasurements();}return _d1;};var _d3=null,_d4={};b._getTextBox=function(_d5,_d6,_d7){var m,s,al=arguments.length;var i;if(!_d3){_d3=_c8.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},win.body());}m=_d3;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_d6){for(i in _d6){if(i in _d4){continue;}s[i]=_d6[i];}}if(al>2&&_d7){m.className=_d7;}m.innerHTML=_d5;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 _c9.getMarginBox(m);}};var _d8=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"xUnique"+(++_d8);}while(dom.byId(id));return id;};_c5.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 _d9={};return function(_da){var t=_d9[_da];if(t){return new t();}t=_d9[_da]=new Function();t.prototype=g["default"+_da];return new t();};})(),normalizeColor:function(_db){return (_db instanceof _c7)?_db:new _c7(_db);},normalizeParameters:function(_dc,_dd){var x;if(_dd){var _de={};for(x in _dc){if(x in _dd&&!(x in _de)){_dc[x]=_dd[x];}}}return _dc;},makeParameters:function(_df,_e0){var i=null;if(!_e0){return _c5.delegate(_df);}var _e1={};for(i in _df){if(!(i in _e1)){_e1[i]=_c5.clone((i in _e0)?_e0[i]:_df[i]);}}return _e1;},formatNumber:function(x,_e2){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _e3=val.indexOf(".");if(_e3>=0&&val.length-_e3>5){val=x.toFixed(4);}}if(x<0){return val;}return _e2?" "+val:val;},makeFontString:function(_e4){return _e4.style+" "+_e4.variant+" "+_e4.weight+" "+_e4.size+" "+_e4.family;},splitFontString:function(str){var _e5=g.getDefault("Font");var t=str.split(/\s+/);do{if(t.length<5){break;}_e5.style=t[0];_e5.variant=t[1];_e5.weight=t[2];var i=t[3].indexOf("/");_e5.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 _e6=g.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_e6;case "in":return val*72*_e6;case "pc":return val*12*_e6;case "mm":return val*g.mm_in_pt*_e6;case "cm":return val*g.cm_in_pt*_e6;}}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(_e7){var ns=typeof _e7=="string"?g[_e7]:_e7;if(ns){arr.forEach(["Group","Rect","Ellipse","Circle","Line","Polyline","Image","Text","Path","TextPath","Surface","createSurface","fixTarget"],function(_e8){g[_e8]=ns[_e8];});}}});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,_e9,_ea,win,has,_eb,arr,_ec,_ed,_ee){var _ef=g.shape={};var _f0={};var _f1={};_ef.register=function(_f2){var t=_f2.declaredClass.split(".").pop();var i=t in _f0?++_f0[t]:((_f0[t]=0));var uid=t+i;_f1[uid]=_f2;return uid;};_ef.byId=function(id){return _f1[id];};_ef.dispose=function(_f3){delete _f1[_f3.getUID()];};_ea("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=_ef.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=_ee;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(_f4){this.shape=g.makeParameters(this.shape,_f4);this.bbox=null;return this;},setFill:function(_f5){if(!_f5){this.fillStyle=null;return this;}var f=null;if(typeof (_f5)=="object"&&"type" in _f5){switch(_f5.type){case "linear":f=g.makeParameters(g.defaultLinearGradient,_f5);break;case "radial":f=g.makeParameters(g.defaultRadialGradient,_f5);break;case "pattern":f=g.makeParameters(g.defaultPattern,_f5);break;}}else{f=g.normalizeColor(_f5);}this.fillStyle=f;return this;},setStroke:function(_f6){if(!_f6){this.strokeStyle=null;return this;}if(typeof _f6=="string"||_e9.isArray(_f6)||_f6 instanceof _ed){_f6={color:_f6};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_f6);s.color=g.normalizeColor(s.color);return this;},setTransform:function(_f7){this.matrix=_ee.clone(_f7?_ee.normalize(_f7):_ee.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(_f8){return _f8?this.setTransform([this.matrix,_f8]):this;},applyLeftTransform:function(_f9){return _f9?this.setTransform([_f9,this.matrix]):this;},applyTransform:function(_fa){return _fa?this.setTransform([this.matrix,_fa]):this;},removeShape:function(_fb){if(this.parent){this.parent.remove(this,_fb);}return this;},_setParent:function(_fc,_fd){this.parent=_fc;return this._updateParentMatrix(_fd);},_updateParentMatrix:function(_fe){this.parentMatrix=_fe?_ee.clone(_fe):null;return this._applyTransform();},_getRealMatrix:function(){var m=this.matrix;var p=this.parent;while(p){if(p.matrix){m=_ee.multiply(p.matrix,m);}p=p.parent;}return m;}});_ef._eventsProcessing={connect:function(_ff,_100,_101){return _eb.connect(this.getEventSource(),_ff,_ef.fixCallback(this,g.fixTarget,_100,_101));},disconnect:function(_102){_eb.disconnect(_102);}};_ef.fixCallback=function(_103,_104,_105,_106){if(!_106){_106=_105;_105=null;}if(_e9.isString(_106)){_105=_105||win.global;if(!_105[_106]){throw (["dojox.gfx.shape.fixCallback: scope[\"",_106,"\"] is null (scope=\"",_105,"\")"].join(""));}return function(e){return _104(e,_103)?_105[_106].apply(_105,arguments||[]):undefined;};}return !_105?function(e){return _104(e,_103)?_106.apply(_105,arguments):undefined;}:function(e){return _104(e,_103)?_106.apply(_105,arguments||[]):undefined;};};_e9.extend(_ef.Shape,_ef._eventsProcessing);_ef.Container={_init:function(){this.children=[];},openBatch:function(){},closeBatch:function(){},add:function(_107){var _108=_107.getParent();if(_108){_108.remove(_107,true);}this.children.push(_107);return _107._setParent(this,this._getRealMatrix());},remove:function(_109,_10a){for(var i=0;it.x){bbox.l=t.x;}if(bbox.rt.y){bbox.t=t.y;}if(bbox.b=8){i=1;l=_137.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 _13a=this.rawNode.filters["DXImageTransform.Microsoft.Alpha"];if(_13a){_13a.opacity=Math.round(this.fillStyle.a*100);}this.rawNode.fillcolor=this.fillStyle.toHex();this.rawNode.filled=true;return this;},setStroke:function(_13b){if(!_13b){this.strokeStyle=null;this.rawNode.stroked="f";return this;}if(typeof _13b=="string"||lang.isArray(_13b)||_13b instanceof _131){_13b={color:_13b};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_13b);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,_13c){return (_13c in dict)?dict[_13c]:_13c;},_applyTransform:function(){var _13d=this._getRealMatrix();if(_13d){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(_148){if(_149){_148.insertBefore(this.rawNode,_149);}else{_148.appendChild(this.rawNode);}}var _14a=this.rawNode.style;_14a.left=_147.x.toFixed();_14a.top=_147.y.toFixed();_14a.width=(typeof _147.width=="string"&&_147.width.indexOf("%")>=0)?_147.width:Math.max(_147.width.toFixed(),0);_14a.height=(typeof _147.height=="string"&&_147.height.indexOf("%")>=0)?_147.height:Math.max(_147.height.toFixed(),0);return this.setTransform(this.matrix).setFill(this.fillStyle).setStroke(this.strokeStyle);}});vml.Rect.nodeType="roundrect";_130("dojox.gfx.vml.Ellipse",[vml.Shape,gs.Ellipse],{setShape:function(_14b){var _14c=this.shape=g.makeParameters(this.shape,_14b);this.bbox=null;var _14d=this.rawNode.style;_14d.left=(_14c.cx-_14c.rx).toFixed();_14d.top=(_14c.cy-_14c.ry).toFixed();_14d.width=(_14c.rx*2).toFixed();_14d.height=(_14c.ry*2).toFixed();return this.setTransform(this.matrix);}});vml.Ellipse.nodeType="oval";_130("dojox.gfx.vml.Circle",[vml.Shape,gs.Circle],{setShape:function(_14e){var _14f=this.shape=g.makeParameters(this.shape,_14e);this.bbox=null;var _150=this.rawNode.style;_150.left=(_14f.cx-_14f.r).toFixed();_150.top=(_14f.cy-_14f.r).toFixed();_150.width=(_14f.r*2).toFixed();_150.height=(_14f.r*2).toFixed();return this;}});vml.Circle.nodeType="oval";_130("dojox.gfx.vml.Line",[vml.Shape,gs.Line],{constructor:function(_151){if(_151){_151.setAttribute("dojoGfxType","line");}},setShape:function(_152){var _153=this.shape=g.makeParameters(this.shape,_152);this.bbox=null;this.rawNode.path.v="m"+_153.x1.toFixed()+" "+_153.y1.toFixed()+"l"+_153.x2.toFixed()+" "+_153.y2.toFixed()+"e";return this.setTransform(this.matrix);}});vml.Line.nodeType="shape";_130("dojox.gfx.vml.Polyline",[vml.Shape,gs.Polyline],{constructor:function(_154){if(_154){_154.setAttribute("dojoGfxType","polyline");}},setShape:function(_155,_156){if(_155&&_155 instanceof Array){this.shape=g.makeParameters(this.shape,{points:_155});if(_156&&this.shape.points.length){this.shape.points.push(this.shape.points[0]);}}else{this.shape=g.makeParameters(this.shape,_155);}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&&_159.yy>0){s.filter="";s.width=Math.floor(_159.xx*_15b.width);s.height=Math.floor(_159.yy*_15b.height);s.left=Math.floor(_159.dx);s.top=Math.floor(_159.dy);}else{var ps=_15a.parentNode.style;s.left="0px";s.top="0px";s.width=ps.width;s.height=ps.height;_159=m.multiply(_159,{xx:_15b.width/parseInt(s.width),yy:_15b.height/parseInt(s.height)});var f=_15a.filters["DXImageTransform.Microsoft.Matrix"];if(f){f.M11=_159.xx;f.M12=_159.xy;f.M21=_159.yx;f.M22=_159.yy;f.Dx=_159.dx;f.Dy=_159.dy;}else{s.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+_159.xx+", M12="+_159.xy+", M21="+_159.yx+", M22="+_159.yy+", Dx="+_159.dx+", Dy="+_159.dy+")";}}return this;},_setDimensions:function(_15c,_15d){var r=this.rawNode,f=r.filters["DXImageTransform.Microsoft.Matrix"];if(f){var s=r.style;s.width=_15c;s.height=_15d;return this._applyTransform();}return this;}});vml.Image.nodeType="rect";_130("dojox.gfx.vml.Text",[vml.Shape,gs.Text],{constructor:function(_15e){if(_15e){_15e.setAttribute("dojoGfxType","text");}this.fontStyle=null;},_alignment:{start:"left",middle:"center",end:"right"},setShape:function(_15f){this.shape=g.makeParameters(this.shape,_15f);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[_165.action]](_165,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(_166){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,_167,from,upto){var n=_167 instanceof Array?_167:_167.args;for(var i=from;i2){p.push(" l");this._addArgs(p,n,2,l);}this.lastControl.type="";return p;},_moveToR:function(_16d,last){return this._moveToA(this._adjustRelCrd(last,_16d));},_lineToA:function(_16e){var p=[" l"],n=_16e instanceof Array?_16e:_16e.args;this._addArgs(p,n,0,n.length);this.lastControl.type="";return p;},_lineToR:function(_16f,last){return this._lineToA(this._adjustRelCrd(last,_16f));},_hLineToA:function(_170,last){var p=[" l"],y=" "+last.y.toFixed(),n=_170 instanceof Array?_170:_170.args,l=n.length;for(var i=0;i7){rs.display="inline-block";}s._parent=p;s._nodes.push(c);p.style.width=_185;p.style.height=_186;cs.position="absolute";cs.width=_185;cs.height=_186;cs.clip="rect(0px "+_185+" "+_186+" 0px)";rs.position="absolute";rs.width=_185;rs.height=_186;r.coordsize=(_185==="100%"?_185:parseFloat(_185))+" "+(_186==="100%"?_186:parseFloat(_186));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(_185);s.height=g.normalizedLength(_186);return s;};function _187(_188,f,o){o=o||win.global;f.call(o,_188);if(_188 instanceof g.Surface||_188 instanceof g.Group){arr.forEach(_188.children,function(_189){_187(_189,f,o);});}};var _18a=function(_18b){if(this!=_18b.getParent()){var _18c=_18b.getParent();if(_18c){_18c.remove(_18b);}this.rawNode.appendChild(_18b.rawNode);C.add.apply(this,arguments);_187(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 _18d=function(_18e){if(this!=_18e.getParent()){this.rawNode.appendChild(_18e.rawNode);if(!_18e.getParent()){_18e.setFill(_18e.getFill());_18e.setStroke(_18e.getStroke());}C.add.apply(this,arguments);}return this;};var C=gs.Container,_18f={add:_132.fixVmlAdd===true?_18a:_18d,remove:function(_190,_191){if(this==_190.getParent()){if(this.rawNode==_190.rawNode.parentNode){this.rawNode.removeChild(_190.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 _192={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(_193){if(!this.rawNode){return null;}var _194=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);_194.setRawNode(node);this.rawNode.appendChild(node);_194.setShape(_193);this.add(_194);return _194;},createRect:function(rect){if(!this.rawNode){return null;}var _195=new vml.Rect,node=this.rawNode.ownerDocument.createElement("v:roundrect");if(has("ie")>7){node.style.display="inline-block";}_195.setRawNode(node);this.rawNode.appendChild(node);_195.setShape(rect);this.add(_195);return _195;},createObject:function(_196,_197){if(!this.rawNode){return null;}var _198=new _196(),node=this.rawNode.ownerDocument.createElement("v:"+_196.nodeType);_198.setRawNode(node);this.rawNode.appendChild(node);switch(_196){case vml.Group:case vml.Line:case vml.Polyline:case vml.Image:case vml.Text:case vml.Path:case vml.TextPath:this._overrideSize(node);}_198.setShape(_197);this.add(_198);return _198;},_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,_18f);lang.extend(vml.Group,gs.Creator);lang.extend(vml.Group,_192);lang.extend(vml.Surface,_18f);lang.extend(vml.Surface,gs.Creator);lang.extend(vml.Surface,_192);vml.fixTarget=function(_199,_19a){if(!_199.gfxTarget){_199.gfxTarget=gs.byId(_199.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/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/sniff","./_base/manager","."],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){var _a=(_9._isElementShown=function(_b){var s=_6.get(_b);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_5.get(_b,"type")!="hidden");});_9.hasDefaultTabStop=function(_c){switch(_c.nodeName.toLowerCase()){case "a":return _5.has(_c,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _d;try{var _e=_c.contentDocument;if("designMode" in _e&&_e.designMode=="on"){return true;}_d=_e.body;}catch(e1){try{_d=_c.contentWindow.document.body;}catch(e2){return false;}}return _d&&(_d.contentEditable=="true"||(_d.firstChild&&_d.firstChild.contentEditable=="true"));default:return _c.contentEditable=="true";}};var _f=(_9.isTabNavigable=function(_10){if(_5.get(_10,"disabled")){return false;}else{if(_5.has(_10,"tabIndex")){return _5.get(_10,"tabIndex")>=0;}else{return _9.hasDefaultTabStop(_10);}}});_9._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=function(_1c){for(var _1d=_1c.firstChild;_1d;_1d=_1d.nextSibling){if(_1d.nodeType!=1||(_7("ie")&&_1d.scopeName!=="HTML")||!_a(_1d)){continue;}if(_f(_1d)){var _1e=_5.get(_1d,"tabIndex");if(!_5.has(_1d,"tabIndex")||_1e==0){if(!_12){_12=_1d;}_13=_1d;}else{if(_1e>0){if(!_14||_1e<_15){_15=_1e;_14=_1d;}if(!_16||_1e>=_17){_17=_1e;_16=_1d;}}}var rn=_19(_1d);if(_5.get(_1d,"checked")&&rn){_18[rn]=_1d;}}if(_1d.nodeName.toUpperCase()!="SELECT"){_1b(_1d);}}};if(_a(_11)){_1b(_11);}function rs(_1f){return _18[_19(_1f)]||_1f;};return {first:rs(_12),last:rs(_13),lowest:rs(_14),highest:rs(_16)};};_9.getFirstInTabbingOrder=function(_20){var _21=_9._getTabNavigable(_4.byId(_20));return _21.lowest?_21.lowest:_21.first;};_9.getLastInTabbingOrder=function(_22){var _23=_9._getTabNavigable(_4.byId(_22));return _23.last?_23.last:_23.highest;};return {hasDefaultTabStop:_9.hasDefaultTabStop,isTabNavigable:_9.isTabNavigable,_getTabNavigable:_9._getTabNavigable,getFirstInTabbingOrder:_9.getFirstInTabbingOrder,getLastInTabbingOrder:_9.getLastInTabbingOrder};});},"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(_24,_25,_26,_27,_28,_29,dom,_2a,_2b,_2c,_2d,_2e,_2f,_30,on,_31,_32,_33,win,_34){if(!_2f.isAsync){_31(0,function(){var _35=["dijit/_base/manager"];_24(_35);});}var _36={};function _37(obj){var ret={};for(var _38 in obj){ret[_38.toLowerCase()]=true;}return ret;};function _39(_3a){return function(val){_2a[val?"set":"remove"](this.domNode,_3a,val);this._set(_3a,val);};};return _29("dijit._WidgetBase",_32,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_39("lang"),dir:"",_setDirAttr:_39("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_27.blankGif||_24.toUrl("dojo/resources/blank.gif"),postscript:function(_3b,_3c){this.create(_3b,_3c);},create:function(_3d,_3e){this.srcNodeRef=dom.byId(_3e);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_3d){this.params=_3d;_30.mixin(this,_3d);}this.postMixInProperties();if(!this.id){this.id=_34.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_34.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _3f=this.srcNodeRef;if(_3f&&_3f.parentNode&&this.domNode!==_3f){_3f.parentNode.replaceChild(this.domNode,_3f);}}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 _40=this.constructor,_41=_40._setterAttrs;if(!_41){_41=(_40._setterAttrs=[]);for(var _42 in this.attributeMap){_41.push(_42);}var _43=_40.prototype;for(var _44 in _43){if(_44 in this.attributeMap){continue;}var _45="_set"+_44.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_45 in _43){_41.push(_44);}}}_25.forEach(_41,function(_46){if(this.params&&_46 in this.params){}else{if(this[_46]){this.set(_46,this[_46]);}}},this);for(var _47 in this.params){this.set(_47,this[_47]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_2c.create("div");}if(this.baseClass){var _48=this.baseClass.split(" ");if(!this.isLeftToRight()){_48=_48.concat(_25.map(_48,function(_49){return _49+"Rtl";}));}_2b.add(this.domNode,_48);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_25.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_30.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_4a){this._beingDestroyed=true;this.destroyDescendants(_4a);this.destroy(_4a);},destroy:function(_4b){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(_4b);_34.remove(this.id);this._destroyed=true;},destroyRendering:function(_4c){if(this.bgIframe){this.bgIframe.destroy(_4c);delete this.bgIframe;}if(this.domNode){if(_4c){_2a.remove(this.domNode,"widgetId");}else{_2c.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_4c){_2c.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_4d){_25.forEach(this.getChildren(),function(_4e){if(_4e.destroyRecursive){_4e.destroyRecursive(_4d);}});},uninitialize:function(){return false;},_setStyleAttr:function(_4f){var _50=this.domNode;if(_30.isObject(_4f)){_2e.set(_50,_4f);}else{if(_50.style.cssText){_50.style.cssText+="; "+_4f;}else{_50.style.cssText=_4f;}}this._set("style",_4f);},_attrToDom:function(_51,_52,_53){_53=arguments.length>=3?_53:this.attributeMap[_51];_25.forEach(_30.isArray(_53)?_53:[_53],function(_54){var _55=this[_54.node||_54||"domNode"];var _56=_54.type||"attribute";switch(_56){case "attribute":if(_30.isFunction(_52)){_52=_30.hitch(this,_52);}var _57=_54.attribute?_54.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_51)?_51.toLowerCase():_51);_2a.set(_55,_57,_52);break;case "innerText":_55.innerHTML="";_55.appendChild(win.doc.createTextNode(_52));break;case "innerHTML":_55.innerHTML=_52;break;case "class":_2b.replace(_55,_52,this[_51]);break;}},this);},get:function(_58){var _59=this._getAttrNames(_58);return this[_59.g]?this[_59.g]():this[_58];},set:function(_5a,_5b){if(typeof _5a==="object"){for(var x in _5a){this.set(x,_5a[x]);}return this;}var _5c=this._getAttrNames(_5a),_5d=this[_5c.s];if(_30.isFunction(_5d)){var _5e=_5d.apply(this,Array.prototype.slice.call(arguments,1));}else{var _5f=this.focusNode&&!_30.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_5f].tagName,_60=_36[tag]||(_36[tag]=_37(this[_5f])),map=_5a in this.attributeMap?this.attributeMap[_5a]:_5c.s in this?this[_5c.s]:((_5c.l in _60&&typeof _5b!="function")||/^aria-|^data-|^role$/.test(_5a))?_5f:null;if(map!=null){this._attrToDom(_5a,_5b,map);}this._set(_5a,_5b);}return _5e||this;},_attrPairNames:{},_getAttrNames:function(_61){var apn=this._attrPairNames;if(apn[_61]){return apn[_61];}var uc=_61.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_61]={n:_61+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_62,_63){var _64=this[_62];this[_62]=_63;if(this._watchCallbacks&&this._created&&_63!==_64){this._watchCallbacks(_62,_64,_63);}},on:function(_65,_66){return _26.after(this,this._onMap(_65),_66,true);},_onMap:function(_67){var _68=this.constructor,map=_68._onMap;if(!map){map=(_68._onMap={});for(var _69 in _68.prototype){if(/^on/.test(_69)){map[_69.replace(/^on/,"").toLowerCase()]=_69;}}}return map[_67.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_34.findWidgets(this.containerNode):[];},getParent:function(){return _34.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_6a,_6b){var _6c=_28.connect(obj,_6a,this,_6b);this._connects.push(_6c);return _6c;},disconnect:function(_6d){var i=_25.indexOf(this._connects,_6d);if(i!=-1){_6d.remove();this._connects.splice(i,1);}},subscribe:function(t,_6e){var _6f=_33.subscribe(t,_30.hitch(this,_6e));this._connects.push(_6f);return _6f;},unsubscribe:function(_70){this.disconnect(_70);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_2d.isBodyLtr();},isFocusable:function(){return this.focus&&(_2e.get(this.domNode,"display")!="none");},placeAt:function(_71,_72){if(_71.declaredClass&&_71.addChild){_71.addChild(this,_72);}else{_2c.place(this.domNode,_71,_72);}return this;},getTextDir:function(_73,_74){return _74;},applyTextDir:function(){},defer:function(fcn,_75){var _76=setTimeout(_30.hitch(this,function(){_76=null;if(!this._destroyed){_30.hitch(this,fcn)();}}),_75||0);return {remove:function(){if(_76){clearTimeout(_76);_76=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(_77,_78,_79,_7a,_7b){return _7b("dojox.layout.ContentPane",_79,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=_78.get;},onExecError:function(e){},_setContent:function(_7c){var _7d=this._contentSetter;if(!(_7d&&_7d instanceof _7a._ContentSetter)){_7d=this._contentSetter=new _7a._ContentSetter({node:this.containerNode,_onError:_77.hitch(this,this._onError),onContentError:_77.hitch(this,function(e){var _7e=this.onContentError(e);try{this.containerNode.innerHTML=_7e;}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);}});});},"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(_7f,_80,_81,_82,has,_83,_84,_85){var _86=_7f.getObject("dojox.html",true);if(has("ie")){var _87=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _88=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _89=_86._adjustCssPaths=function(_8a,_8b){if(!_8b||!_8a){return;}if(_87){_8b=_8b.replace(_87,function(_8c,pre,_8d,url,_8e){return pre+(new _83(_8a,"./"+url).toString())+_8e;});}return _8b.replace(_88,function(_8f,_90,_91,_92,_93,_94){if(_91){return "@import \""+(new _83(_8a,"./"+_91).toString())+"\""+_94;}else{return "url("+(new _83(_8a,"./"+_93).toString())+")"+_94;}});};var _95=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _96=_86._adjustHtmlPaths=function(_97,_98){var url=_97||"./";return _98.replace(_95,function(tag,_99,_9a,_9b,_9c,_9d,_9e,end){return _99+(_9a?(_9a+"="+_9b+(new _83(url,_9c).toString())+_9b):("style="+_9d+_89(url,_9e)+_9d))+end;});};var _9f=_86._snarfStyles=function(_a0,_a1,_a2){_a2.attributes=[];return _a1.replace(/(?:]*)>([\s\S]*?)<\/style>|]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_a3,_a4,_a5,_a6,_a7,_a8){var i,_a9=(_a4||_a6||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_a5){i=_a2.push(_a0?_89(_a0,_a5):_a5);}else{i=_a2.push("@import \""+_a8+"\";");_a9=_a9.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(_a9){_a9=_a9.split(/\s+/);var _aa={},tmp;for(var j=0,e=_a9.length;j/g,function(_ae){return _ae.replace(/<(\/?)script\b/ig,"<$1Script");});function _af(src){if(_ad.downloadRemote){src=src.replace(/&([a-z0-9#]+);/g,function(m,_b0){switch(_b0){case "amp":return "&";case "gt":return ">";case "lt":return "<";default:return _b0.charAt(0)=="#"?String.fromCharCode(_b0.substring(1)):"&"+_b0+";";}});_81.get({url:src,sync:true,load:function(_b1){_ad.code+=_b1+";";},error:_ad.errBack});}};return _ac.replace(/]*type=['"]?(?:dojo\/|text\/html\b))(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_b2,_b3,src,_b4){if(src){_af(src);}else{_ad.code+=_b4;}return "";});};var _b5=_86.evalInGlobal=function(_b6,_b7){_b7=_b7||_82.doc.body;var n=_b7.ownerDocument.createElement("script");n.type="text/javascript";_b7.appendChild(n);n.text=_b6;};_86._ContentSetter=_7f.declare(_85._ContentSetter,{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_b8){this._styleNodes=[];var st,att,_b9,doc=this.node.ownerDocument;var _ba=doc.getElementsByTagName("head")[0];for(var i=0,e=_b8.length;i|)/g,"");}if(this.scriptHasHooks){_c0=_c0.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_b5(_c0,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){_84.destroy(this._styleNodes.pop());}}delete this._styleNodes;_7f.mixin(this,_86._ContentSetter.prototype);}});_86.set=function(_c2,_c3,_c4){if(!_c4){return _85._setNodeContent(_c2,_c3,true);}else{var op=new _86._ContentSetter(_7f.mixin(_c4,{content:_c3,node:_c2}));return op.set();}};return _86;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_c5,_c6,_c7,_c8){_c5.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(_c9){_c8[_c9]=_c7[_c9];});_c8.defaultDuration=_c6["defaultDuration"]||200;return _c8;});},"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(_ca,_cb,_cc,_cd,_ce,_cf,_d0,_d1,_d2,_d3,_d4,_d5,_d6,_d7,_d8,_d9,_da){_ca.experimental("dojox.layout.ResizeHandle");var _db=_da("dojox.layout.ResizeHandle",[_d8,_d9],{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=_d7.byId("dojoxGlobalResizeHelper");if(!this._resizeHelper){this._resizeHelper=new _dc({id:"dojoxGlobalResizeHelper"}).placeAt(_d0.body());_d4.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 _dd=_cb.partial(_d4.add,this.resizeHandle);switch(this.resizeAxis.toLowerCase()){case "xy":this._resizeX=this._resizeY=true;_dd("dojoxResizeNW");break;case "x":this._resizeX=true;_dd("dojoxResizeW");break;case "y":this._resizeY=true;_dd("dojoxResizeN");break;}},_beginSizing:function(e){if(this._isSizing){return;}_cc.publish(this.startTopic,[this]);this.targetWidget=_d7.byId(this.targetId);this.targetDomNode=this.targetWidget?this.targetWidget.domNode:_d3.byId(this.targetId);if(this.targetContainer){this.targetDomNode=this.targetContainer;}if(!this.targetDomNode){return;}if(!this.activeResize){var c=_d5.position(this.targetDomNode,true);this._resizeHelper.resize({l:c.x,t:c.y,w:c.w,h:c.h});this._resizeHelper.show();}this._isSizing=true;this.startPoint={x:e.clientX,y:e.clientY};var _de=_d6.getComputedStyle(this.targetDomNode),_df=_d5.boxModel==="border-model",_e0=_df?{w:0,h:0}:_d5.getPadBorderExtents(this.targetDomNode,_de),_e1=_d5.getMarginExtents(this.targetDomNode,_de),mb;mb=this.startSize={w:_d6.get(this.targetDomNode,"width",_de),h:_d6.get(this.targetDomNode,"height",_de),pbw:_e0.w,pbh:_e0.h,mw:_e1.w,mh:_e1.h};this._pconnects=[_cc.connect(_d0.doc,"onmousemove",this,"_updateSizing"),_cc.connect(_d0.doc,"onmouseup",this,"_endSizing")];_ce.stop(e);},_updateSizing:function(e){if(this.activeResize){this._changeSizing(e);}else{var tmp=this._getNewCoords(e,"border");if(tmp===false){return;}this._resizeHelper.resize(tmp);}e.preventDefault();},_getNewCoords:function(e,box){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,_e2=this.startSize.w-(this._resizeX?dx:0),_e3=this.startSize.h-(this._resizeY?dy:0),r=this._checkConstraints(_e2,_e3);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(_e4,_e5){if(this.minSize){var tm=this.minSize;if(_e4ms.w){_e4=ms.w;}if(_e5>ms.h){_e5=ms.h;}}if(this.fixedAspect){var w=this.startSize.w,h=this.startSize.h,_e6=w*_e5-h*_e4;if(_e6<0){_e4=_e5*w/h;}else{if(_e6>0){_e5=_e4*h/w;}}}return {w:_e4,h:_e5};},_changeSizing:function(e){var _e7=this.targetWidget&&_cb.isFunction(this.targetWidget.resize),tmp=this._getNewCoords(e,_e7&&"margin");if(tmp===false){return;}if(_e7){this.targetWidget.resize(tmp);}else{if(this.animateSizing){var _e8=_d1[this.animateMethod]([_cf.animateProperty({node:this.targetDomNode,properties:{width:{start:this.startSize.w,end:tmp.w}},duration:this.animateDuration}),_cf.animateProperty({node:this.targetDomNode,properties:{height:{start:this.startSize.h,end:tmp.h}},duration:this.animateDuration})]);_e8.play();}else{_d6.set(this.targetDomNode,{width:tmp.w+"px",height:tmp.h+"px"});}}if(this.intermediateChanges){this.onResize(e);}},_endSizing:function(e){_cd.forEach(this._pconnects,_cc.disconnect);var pub=_cb.partial(_cc.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 _dc=dojo.declare("dojox.layout._ResizeHelper",_d8,{show:function(){_d6.set(this.domNode,"display","");},hide:function(){_d6.set(this.domNode,"display","none");},resize:function(dim){_d5.setMarginBox(this.domNode,dim);}});return _db;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_e9,has,_ea,win,_eb){var _ec={},_ed={};var _ee={length:0,add:function(_ef){if(_ed[_ef.id]){throw new Error("Tried to register widget with id=="+_ef.id+" but that id is already registered");}_ed[_ef.id]=_ef;this.length++;},remove:function(id){if(_ed[id]){delete _ed[id];this.length--;}},byId:function(id){return typeof id=="string"?_ed[id]:id;},byNode:function(_f0){return _ed[_f0.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _ed){ar.push(_ed[id]);}return ar;},getUniqueId:function(_f1){var id;do{id=_f1+"_"+(_f1 in _ec?++_ec[_f1]:_ec[_f1]=0);}while(_ed[id]);return _eb._scopeName=="dijit"?id:_eb._scopeName+"_"+id;},findWidgets:function(_f2){var _f3=[];function _f4(_f5){for(var _f6=_f5.firstChild;_f6;_f6=_f6.nextSibling){if(_f6.nodeType==1){var _f7=_f6.getAttribute("widgetId");if(_f7){var _f8=_ed[_f7];if(_f8){_f3.push(_f8);}}else{_f4(_f6);}}}};_f4(_f2);return _f3;},_destroyAll:function(){_eb._curFocus=null;_eb._prevFocus=null;_eb._activeStack=[];_e9.forEach(_ee.findWidgets(win.body()),function(_f9){if(!_f9._destroyed){if(_f9.destroyRecursive){_f9.destroyRecursive();}else{if(_f9.destroy){_f9.destroy();}}}});},getEnclosingWidget:function(_fa){while(_fa){var id=_fa.getAttribute&&_fa.getAttribute("widgetId");if(id){return _ed[id];}_fa=_fa.parentNode;}return null;},_hash:_ed};if(has("ie")){_ea.addOnWindowUnload(function(){_ee._destroyAll();});}_eb.registry=_ee;return _ee;});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(on,_fb,_fc,_fd,has,_fe,win){var _ff=null;if(has("ie")){(function(){var _100=function(evt){_ff=evt.srcElement;};win.doc.attachEvent("onkeydown",_100);_fe.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_100);});})();}else{win.doc.addEventListener("keydown",function(evt){_ff=evt.target;},true);}var _101=function(node,_102){if(/input|button/i.test(node.nodeName)){return on(node,"click",_102);}else{function _103(e){return (e.keyCode==_fc.ENTER||e.keyCode==_fc.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _104=[on(node,"keypress",function(e){if(_103(e)){_ff=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_103(e)&&e.target==_ff){_ff=null;_102.call(this,e);}}),on(node,"click",function(e){_102.call(this,e);})];return {remove:function(){_fb.forEach(_104,function(h){h.remove();});}};}};return _fd("dijit._OnDijitClickMixin",null,{connect:function(obj,_105,_106){return this.inherited(arguments,[obj,_105=="ondijitclick"?_101:_105,_106]);}});});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_107,_108,_109,_10a,_10b,_10c,has,win){if(has("ie")||has("mozilla")){_10c(90,function(){var div=_10a.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_108.blankGif||_107.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_10b.getComputedStyle(div);if(cs){var _10d=cs.backgroundImage;var _10e=(cs.borderTopColor==cs.borderRightColor)||(_10d!=null&&(_10d=="none"||_10d=="url(invalid-url:)"));if(_10e){_109.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"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,_10f,_110,_111,_112,_113,_114,_115,has,_116,win){var _117=_114("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _118=this.declaredClass,_119=this;return _111.substitute(tmpl,this,function(_11a,key){if(key.charAt(0)=="!"){_11a=lang.getObject(key.substr(1),false,_119);}if(typeof _11a=="undefined"){throw new Error(_118+" template:"+key);}if(_11a==null){return "";}return key.charAt(0)=="!"?_11a:_11a.toString().replace(/"/g,""");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_112(this.templatePath,{sanitize:true});}var _11b=_117.getCachedTemplate(this.templateString,this._skipNodeCache);var node;if(lang.isString(_11b)){node=_115.toDom(this._stringRepl(_11b));if(node.nodeType!=1){throw new Error("Invalid template: "+_11b);}}else{node=_11b.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(_11c){var dest=this.containerNode;if(_11c&&dest){while(_11c.hasChildNodes()){dest.appendChild(_11c.firstChild);}}},_attachTemplateNodes:function(_11d,_11e){var _11f=lang.isArray(_11d)?_11d:(_11d.all||_11d.getElementsByTagName("*"));var x=lang.isArray(_11d)?0:-1;for(;x<_11f.length;x++){var _120=(x==-1)?_11d:_11f[x];if(this.widgetsInTemplate&&(_11e(_120,"dojoType")||_11e(_120,"data-dojo-type"))){continue;}var _121=_11e(_120,"dojoAttachPoint")||_11e(_120,"data-dojo-attach-point");if(_121){var _122,_123=_121.split(/\s*,\s*/);while((_122=_123.shift())){if(lang.isArray(this[_122])){this[_122].push(_120);}else{this[_122]=_120;}this._attachPoints.push(_122);}}var _124=_11e(_120,"dojoAttachEvent")||_11e(_120,"data-dojo-attach-event");if(_124){var _125,_126=_124.split(/\s*,\s*/);var trim=lang.trim;while((_125=_126.shift())){if(_125){var _127=null;if(_125.indexOf(":")!=-1){var _128=_125.split(":");_125=trim(_128[0]);_127=trim(_128[1]);}else{_125=trim(_125);}if(!_127){_127=_125;}this._attachEvents.push(this.connect(_120,_10f[_125]||_125,_127));}}}}},destroyRendering:function(){_113.forEach(this._attachPoints,function(_129){delete this[_129];},this);this._attachPoints=[];_113.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_117._templateCache={};_117.getCachedTemplate=function(_12a,_12b){var _12c=_117._templateCache;var key=_12a;var _12d=_12c[key];if(_12d){try{if(!_12d.ownerDocument||_12d.ownerDocument==win.doc){return _12d;}}catch(e){}_115.destroy(_12d);}_12a=_111.trim(_12a);if(_12b||_12a.match(/\$\{([^\}]+)\}/g)){return (_12c[key]=_12a);}else{var node=_115.toDom(_12a);if(node.nodeType!=1){throw new Error("Invalid template: "+_12a);}return (_12c[key]=node);}};if(has("ie")){_116.addOnWindowUnload(function(){var _12e=_117._templateCache;for(var key in _12e){var _12f=_12e[key];if(typeof _12f=="object"){_115.destroy(_12f);}delete _12e[key];}});}lang.extend(_110,{dojoAttachEvent:"",dojoAttachPoint:""});return _117;});},"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(_130,_131,_132,_133,_134,lang,_135,_136,_137,_138,_139,_13a){function _13b(){};function _13c(_13d){return function(obj,_13e,_13f,_140){if(obj&&typeof _13e=="string"&&obj[_13e]==_13b){return obj.on(_13e.substring(2).toLowerCase(),lang.hitch(_13f,_140));}return _13d.apply(_132,arguments);};};_130.around(_132,"connect",_13c);if(_134.connect){_130.around(_134,"connect",_13c);}var _141=_133("dijit._Widget",[_138,_139,_13a],{onClick:_13b,onDblClick:_13b,onKeyDown:_13b,onKeyPress:_13b,onKeyUp:_13b,onMouseDown:_13b,onMouseMove:_13b,onMouseOut:_13b,onMouseOver:_13b,onMouseLeave:_13b,onMouseEnter:_13b,onMouseUp:_13b,constructor:function(_142){this._toConnect={};for(var name in _142){if(this[name]===_13b){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_142[name];delete _142[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)]===_13b){return _132.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_143){_134.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_143);},attr:function(name,_144){if(_131.isDebug){var _145=arguments.callee._ach||(arguments.callee._ach={}),_146=(arguments.callee.caller||"unknown caller").toString();if(!_145[_146]){_134.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_146,"","2.0");_145[_146]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_134.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_135("[widgetId]",this.containerNode).map(_137.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_134.isAsync){_136(0,function(){var _147=["dijit/_base"];require(_147);});}return _141;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_148,_149,_14a,lang){lang.extend(_149,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _14a("dijit._FocusMixin",null,{_focusManager:_148});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","."],function(_14b,_14c,dom,_14d,_14e,_14f,lang,on,_150,has,_151,_152,win,_153,a11y,_154,_155){var _156=_14c([_151,_14f],{curNode:null,activeStack:[],constructor:function(){var _157=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);}});_14b.before(_14e,"empty",_157);_14b.before(_14e,"destroy",_157);},registerIframe:function(_158){return this.registerWin(_158.contentWindow,_158);},registerWin:function(_159,_15a){var _15b=this;var _15c=function(evt){_15b._justMouseDowned=true;setTimeout(function(){_15b._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_15b._onTouchNode(_15a||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_159.document.documentElement:_159.document;if(doc){if(has("ie")){_159.document.body.attachEvent("onmousedown",_15c);var _15d=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_15b._onFocusNode(_15a||evt.srcElement);}else{_15b._onTouchNode(_15a||evt.srcElement);}};doc.attachEvent("onactivate",_15d);var _15e=function(evt){_15b._onBlurNode(_15a||evt.srcElement);};doc.attachEvent("ondeactivate",_15e);return {remove:function(){_159.document.detachEvent("onmousedown",_15c);doc.detachEvent("onactivate",_15d);doc.detachEvent("ondeactivate",_15e);doc=null;}};}else{doc.body.addEventListener("mousedown",_15c,true);doc.body.addEventListener("touchstart",_15c,true);var _15f=function(evt){_15b._onFocusNode(_15a||evt.target);};doc.addEventListener("focus",_15f,true);var _160=function(evt){_15b._onBlurNode(_15a||evt.target);};doc.addEventListener("blur",_160,true);return {remove:function(){doc.body.removeEventListener("mousedown",_15c,true);doc.body.removeEventListener("touchstart",_15c,true);doc.removeEventListener("focus",_15f,true);doc.removeEventListener("blur",_160,true);doc=null;}};}}},_onBlurNode:function(){this.set("prevNode",this.curNode);this.set("curNode",null);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);this.prevNode=null;}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _161=[];try{while(node){var _162=_14d.get(node,"dijitPopupParent");if(_162){node=_154.byId(_162).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_153.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_163=id&&_154.byId(id);if(_163&&!(by=="mouse"&&_163.get("disabled"))){_161.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_161,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("curNode",node);},_setStack:function(_164,by){var _165=this.activeStack;this.set("activeStack",_164);for(var _166=0;_166=_166;i--){_167=_154.byId(_165[i]);if(_167){_167._hasBeenBlurred=true;_167.set("focused",false);if(_167._focusManager==this){_167._onBlur(by);}this.emit("widget-blur",_167,by);}}for(i=_166;i<_164.length;i++){_167=_154.byId(_164[i]);if(_167){_167.set("focused",true);if(_167._focusManager==this){_167._onFocus(by);}this.emit("widget-focus",_167,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _168=new _156();_150(function(){var _169=_168.registerWin(win.doc.parentWindow||win.doc.defaultView);if(has("ie")){_152.addOnWindowUnload(function(){_169.remove();_169=null;});}});_155.focus=function(node){_168.focus(node);};for(var attr in _168){if(!/^_/.test(attr)){_155.focus[attr]=typeof _168[attr]=="function"?lang.hitch(_168,attr):_168[attr];}}_168.watch(function(attr,_16a,_16b){_155.focus[attr]=_16b;});return _168;});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_16c,_16d){return _16c("dijit._Contained",null,{_getSibling:function(_16e){var node=this.domNode;do{node=node[_16e+"Sibling"];}while(node&&node.nodeType!=1);return node&&_16d.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){ xhr.onreadystatechange=i$.isIE<=8?new Function():null; 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); }; i$._addEvent("onload",i$._initPage); i$._addEvent("onunload",i$._exitPage); if(document.addEventListener){ document.addEventListener("DOMContentLoaded",i$._initPage,false); } 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){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&&_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){_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){ret=_60.attributes.getQualifiedItem(_63.localName,_63.namespaceURI)!==null;}else{ret=_60.hasAttribute(_61);}}}else{if(!dojo.isIE){ret=_60.hasAttribute(_61);}else{ret=_60.getAttributeNode(_61)!==null;}}return ret;},createDocument:function(_64,_65){if(dojo.isIE>=9&&typeof ActiveXObject!="undefined"){var _66=["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){_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"){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=null;if(doc.importNode){_111=doc.importNode(node,true);}else{_111=node;}doc.appendChild(_111);},decodeXML:function(_112){ibm.portal.debug.entry("decodeXML",[_112]);var _113=_112.replace(/&/g,"&");var _114=_113.replace(/&/g,"&");_113=_114.replace(/'/g,"'");_114=_113.replace(/"/g,"\"");_114=_114.replace(/</g,"<");_114=_114.replace(/>/g,">");ibm.portal.debug.exit("decodeXML",[_114]);return _114;},eventHandlerToString:function(_115){var _116=_115.toString();var _117=_116.indexOf("{");var _118=_116.lastIndexOf("}");onclickStr=_116.substring(_117+1,_118);return onclickStr;},_waitingForScript:false,_isWaitingForScript:function(){return com.ibm.portal.utilities._waitingForScript;},stopWaitingForScript:function(){com.ibm.portal.utilities._waitingForScript=false;},waitFor:function(_119,_11a,_11b,args){var _11c=setInterval(function(){if(_119()){clearInterval(_11c);if(!args){_11b();}else{_11b(args);}}},_11a);},waitForScript:function(_11d,args){com.ibm.portal.utilities._waitingForScript=true;com.ibm.portal.utilities.waitFor(function(){return (!com.ibm.portal.utilities._isWaitingForScript());},500,_11d,args);}};(function(){var _11e=0,_11f=0,mgrs=[],_120={};com.ibm.portal.utilities.DomDataManager=function(_121){this.trackAll=_121;this.dataSet={};this.tracked={};this.trackedProps={};this.trackedConnections={};this.id="DomDataManager"+_11f++;mgrs.push(this);_120[this.id]=this;};var _122=["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"+_11e++;node.setAttribute("duid",d);}}else{d=node.duid;if(!d){d=node.duid="duid"+_11e++;}}if(_11e==Number.MAX_VALUE){_11e=0;}return d;},data:function(node,key,_123){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]=_123;node._domMgrId=this.id;return _123;}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<_122.length;x++){try{this.tracked[i][_122[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(_124){for(var i in this.tracked){if(_124||!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){_127=mgr;}},resetCurrent:function(){_127=_126;},getCurrent:function(){return _127;},getManager:function(node){if(node==document||node==dojo.body()){return _126;}else{if(node==window||typeof node.nodeName!="string"||typeof node.nodeType!="number"){return null;}else{if(node._domMgrId){return _120[node._domMgrId]||_127;}else{return _127;}}}},register:function(mgr,id){_125[id]=mgr;},get:function(id){return _125[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(_128,_129,from){ibm.portal.debug.entry("string.findNext",[_128,_129]);var _12a=-1;for(var i=0;i<_129.length;i++){var _12b=null;if(from){_12b=from+_129[i].length;}var _12c=_128.indexOf(_129[i],_12b);if(_12c>-1&&(_12c<_12a||_12a==-1)){_12a=_12c;}}ibm.portal.debug.exit("string.findNext",[_12a]);return _12a;},contains:function(_12d,_12e){ibm.portal.debug.entry("string.contains",[_12d,_12e]);var _12f=false;if(_12d!=null&&_12e!=null){_12f=(_12d.indexOf(_12e)!=-1);}ibm.portal.debug.exit("string.contains",[_12f]);return _12f;},strip:function(_130,_131){ibm.portal.debug.entry("string.strip",[_130,_131]);var _132=_130.replace(new RegExp(_131,"g"),"");ibm.portal.debug.exit("string.strip",[_132]);return _132;},properCase:function(_133){if(_133==null||_133.length<1){return "";}ibm.portal.debug.entry("string.properCase",[_133]);var _134=_133.charAt(0).toUpperCase();if(_133.length>1){_134+=_133.substring(1).toLowerCase();}ibm.portal.debug.exit("string.properCase",[_134]);return _134;},trim:function(_135){ibm.portal.debug.entry("string.trim",[_135]);var _136=_135;_136=_136.replace(/^\s+/,"");_136=_136.replace(/\s+$/,"");ibm.portal.debug.exit("string.trim",_136);return _136;}};dojo.declare("com.ibm.portal.utilities.HttpUrl",null,{constructor:function(_137){this.scheme=window.location.protocol+"//";this.server=this._extractServer(_137);this.port=this._extractPort(_137);this.path=this._extractPath(_137);this.query=this._extractQuery(_137);this.anchor="";},addParameter:function(name,_138){this.query+="&"+name+"="+_138;},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(_139){var _13a=_139.indexOf(this.scheme);var _13b="";if(_13a==0){var _13c=_139.indexOf("/",_13a+this.scheme.length);var _13d=_139.substring(_13a+this.scheme.length,_13c);_13b=_13d.split(":")[0];}return _13b;},_extractPort:function(_13e){var _13f=_13e.indexOf(this.server);var _140="";if(_13f>=0){var _141=_13e.indexOf("/",_13f);var _142=_13e.substring(_13f,_141);var _143=_142.split(":");if(_143.length>1){_140=_143[1];}}return _140;},_extractPath:function(_144){var _145=_144.indexOf(this.server);var _146="";if(_145>=0){var _147=_144.indexOf("/",_145);var _148=_144.indexOf("?");var _149=_144.lastIndexOf("#");if(_148>=0){_146=_144.substring(_147+1,_148);}else{if(_149>=0){_146=_144.substring(_147+1,_149);}else{_146=_144.substring(_147+1);}}}return _146;},_extractQuery:function(_14a){var _14b="";var _14c=_14a.split("?");if(_14c.length>1){_14b=_14c[1].split("#")[0];}return _14b;},_extractAnchor:function(_14d){var _14e="";var _14f=_14d.split("#");if(_14f.length>1){_14e=_14f[_14f.length-1];}return _14e;}});}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(_150){ibm.portal.debug._traceString=_150;};ibm.portal.debug._isDebugEnabled=function(){var _151=false;if(typeof (ibmPortalConfig)!="undefined"){if(ibmPortalConfig&&ibmPortalConfig.isDebug){_151=true;}}return _151;};ibm.portal.debug.text=function(str,_152){if(typeof (ibmPortalConfig)!="undefined"){if(ibmPortalConfig&&ibmPortalConfig.isDebug){var _153=ibm.portal.debug._traceString;if(_153){if(_152){if(_152.indexOf(_153)>=0){window.console.log(str);}}}else{window.console.log(str);}}}};ibm.portal.debug.entry=function(_154,args){if(ibm.portal.debug._isDebugEnabled()){var _155=_154+" --> entry; { ";if(args&&args.length>0){for(arg in args){_155=_155+args[arg]+" ";}}_155=_155+" } ";ibm.portal.debug.text(_155,_154);}};ibm.portal.debug.exit=function(_156,_157){if(ibm.portal.debug._isDebugEnabled()){var _158=_156+" --> exit;";if(typeof (_157)!="undefined"){_158=_158+" { "+_157+" } ";}ibm.portal.debug.text(_158,_156);}};ibm.portal.debug.escapeXmlForHTMLDisplay=function(_159){_159=_159.replace(//g,">");return _159;};}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,_15a,_15b){args._handle=args.handle;args.handle=dojo.partial(this.testAuthenticationHandler,this,_15a,_15b);return args;},setAuthenticationHandler:function(_15c){this.authenticationHandler=_15c;},setTestAuthenticationHandler:function(_15d){this.testAuthenticationHandler=_15d;},setDefaultAuthenticationTests:function(_15e,_15f,_160){this.checkFromCaller=_15e;this.checkByContentType=_15f;this.checkByStatusCode=_160;},addAuthenticationCheck:function(_161){if(_161){this.authenticationChecks.push(_161);}},isAuthenticationRequired:function(_162,_163){var _164=_163.args.handleAs;var _165=false;if(!_162||dojo.indexOf(["cancel","timeout"],_162.dojoType)==-1){if(this.checkByContentType&&dojo.indexOf(["xml","json","json-comment-optional","text"],_164)!=-1&&_163.xhr&&/^text\/html/.exec(_163.xhr.getResponseHeader("Content-Type"))&&_163.xhr.status>=200&&_163.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"],_164)!=-1&&_163.xhr&&_163.xhr.status==302){ibm.portal.debug.text("auth::isAuthenticationRequired DEBUG redirect received, assume login request");return true;}else{if(this.checkByStatusCode&&_163.xhr&&(_163.xhr.status==401||_163.xhr.status==0)&&_163.xhr.getResponseHeader("WWW-Authenticate")&&_163.xhr.getResponseHeader("WWW-Authenticate").indexOf("IBMXHR")!=-1){ibm.portal.debug.text("auth::isAuthenticationRequired DEBUG Portal 401 received, assume login required");return true;}}}}if(!_165){for(var i=0;i0){var _16e=args[i].indexOf("=");if(_16e==-1){var key=decodeURIComponent(args[i]);var _16f=_16d[key];if(dojo.isArray(_16f)){_16f.push("");}else{if(_16f){_16d[key]=[_16f,""];}else{_16d[key]="";}}}else{if(_16e>0){var key=decodeURIComponent(args[i].substring(0,_16e));var _170=decodeURIComponent(args[i].substring(_16e+1));var _16f=_16d[key];if(dojo.isArray(_16f)){_16f.push(_170);}else{if(_16f){_16d[key]=[_16f,_170];}else{_16d[key]=_170;}}}}}}return _16d;},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){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){_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){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){_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){_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){_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){_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){_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){_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){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){_24f="text";}return _24f;},_getResponseXML:function(data){var _250=data;if(dojo.isIE){_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")){_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];while(_2cb.childNodes.length>0){_2cb.removeChild(_2cb.firstChild);}}}},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){_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){_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){_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){_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"; } })();