/**
 * @license RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*
 RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation
*/
(function(){function a(a,d,l){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var i="assert,count,debug,dir,dirxml,error,group,groupEnd,info,profile,profileEnd,time,timeEnd,trace,warn,log".split(","),k=0,j;j=i[k++];)console[j]||function(){var a=j+"";console[a]="log"in console?function(){var c=Array.apply({},arguments);c.unshift(a+":");console.log(c.join(" "))}:function(){};console[a]._fake=!0}()}typeof a=="undefined"&&(a={_scopeName:"dojo",
_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}});var c=a;typeof d=="undefined"&&(d={_scopeName:"dijit"});typeof l=="undefined"&&(l={_scopeName:"dojox"});if(!c._scopeArgs)c._scopeArgs=[a,d,l];c.global=this;c.config={isDebug:!1,debugAtAllCosts:!1};if(i=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var e in i)c.config[e]=i[e];a.locale=c.config.locale;e="$Rev: 24595 $".match(/\d+/);a.version={major:1,minor:6,patch:1,flag:"",
revision:e?+e[0]:NaN,toString:function(){with(c.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",c.version.toString());var h,g,o={};for(k in{toString:1}){h=[];break}a._extraNames=h=h||"hasOwnProperty,valueOf,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,constructor".split(",");g=h.length;a._mixin=function(a,c){var b,e,d;for(b in c)if(e=c[b],!(b in a)||a[b]!==e&&(!(b in o)||
o[b]!==e))a[b]=e;if(g&&c)for(d=0;d<g;++d)if(b=h[d],e=c[b],!(b in a)||a[b]!==e&&(!(b in o)||o[b]!==e))a[b]=e;return a};a.mixin=function(a,f){a||(a={});for(var b=1,e=arguments.length;b<e;b++)c._mixin(a,arguments[b]);return a};a._getProp=function(a,f,b){for(var b=b||c.global,e=0,d;b&&(d=a[e]);e++)e==0&&c._scopeMap[d]&&(d=c._scopeMap[d]),b=d in b?b[d]:f?b[d]={}:void 0;return b};a.setObject=function(a,f,b){var e=a.split("."),a=e.pop();return(b=c._getProp(e,!0,b))&&a?b[a]=f:void 0};a.getObject=function(a,
f,b){return c._getProp(a.split("."),f,b)};a.exists=function(a,f){return c.getObject(a,!1,f)!==void 0};a.eval=function(a){return c.global.eval?c.global.eval(a):eval(a)};c.deprecated=c.experimental=function(){}})();return{dojo:a,dijit:d,dojox:l}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var b=a();b.dojo._dijit=b.dijit;b.dojo._dojox=b.dojox;return b.dojo});else{var d=a();dojo=d.dojo;dijit=d.dijit;dojox=d.dojox}})();
define("domReady",[],function(){function a(a){for(var c=0,f;f=a[c];c++)f(k)}function d(){var b=j,d=c;i&&(b.length&&(j=[],a(b)),e.resourcesDone&&d.length&&(c=[],a(d)))}function b(){i||(i=!0,g&&clearInterval(g),d())}function m(a){i?a(k):j.push(a);return m}var l=typeof window!=="undefined"&&window.document,i=!l,k=l?document:null,j=[],c=[],e=requirejs||require||{},h=e.resourcesReady,g;if("resourcesReady"in e)e.resourcesReady=function(a){h&&h(a);a&&d()};l&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
b,!1),window.addEventListener("load",b,!1)):window.attachEvent&&(window.attachEvent("onload",b),self===self.top&&(g=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),b())}catch(a){}},30))),document.readyState==="complete"&&b());m.withResources=function(a){i&&e.resourcesDone?a(k):c.push(a);return m};m.version="1.0.0";m.load=function(a,c,f,b){b.isBuild?f(null):m(f)};return m});
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap","domReady"],function(a,d,b){var m="_moduleHasPrefix,_loadPath,_loadUri,_loadUriAndCheck,loaded,_callLoaded,_getModuleSymbols,_loadModule,require,provide,platformRequire,requireIf,requireAfterIf,registerModulePath".split(","),l,i;for(l=0;l<m.length;)i=m[l++],d[i]=function(a){return function(){console.warn("dojo."+a+" not available when using an AMD loader.")}}(i);var k=function(a){var c=[],b;for(b=0;b<a.length;)c.push(a[b++]);return c},
j=function(a,c){return c?typeof c=="string"?function(){a[c]()}:function(){c.call(a)}:a};d.ready=d.addOnLoad=function(a,c){b(c?j(a,c):a)};d.addOnLoad(function(){d.postLoad=d.config.afterOnLoad=!0});if(m=d.config.addOnLoad)d.addOnLoad[m instanceof Array?"apply":"call"](d,m);var c=d._loaders=[],e=function(){var a=c.slice(0);for(Array.prototype.splice.apply(c,[0,c.length]);a.length;)a.shift().call()};c.unshift=function(){Array.prototype.unshift.apply(c,k(arguments));b(e)};c.splice=function(){Array.prototype.splice.apply(c,
k(arguments));b(e)};var h=d._unloaders=[];d.unloaded=function(){for(;h.length;)h.pop().call()};d._onto=function(a,c,b){a.push(b?j(c,b):c)};d._modulesLoaded=function(){};d.loadInit=function(a){a()};d.getL10nName=function(a,c,b){b=b?b.toLowerCase():d.locale;a="i18n!"+a.replace(/\./g,"/");return/root/i.test(b)?a+"/nls/"+c:a+"/nls/"+b+"/"+c};d.requireLocalization=function(c,f,b){a.vendor!="altoviso.com"&&(b=!b||b.toLowerCase()===d.locale?"root":b);return a(d.getL10nName(c,f,b))};d.i18n={getLocalization:d.requireLocalization,
normalizeLocale:function(a){a=a?a.toLowerCase():d.locale;a=="root"&&(a="ROOT");return a}};var g=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,o=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;d._Url=function(){for(var a=arguments,c=[a[0]],b=1;b<a.length;b++)if(a[b]){var e=new d._Url(a[b]+""),c=new d._Url(c[0]+"");if(e.path==""&&!e.scheme&&!e.authority&&!e.query){if(e.fragment!=null)c.fragment=e.fragment;e=c}else if(!e.scheme&&(e.scheme=c.scheme,!e.authority&&(e.authority=
c.authority,e.path.charAt(0)!="/"))){for(var c=(c.path.substring(0,c.path.lastIndexOf("/")+1)+e.path).split("/"),h=0;h<c.length;h++)c[h]=="."?h==c.length-1?c[h]="":(c.splice(h,1),h--):h>0&&!(h==1&&c[0]=="")&&c[h]==".."&&c[h-1]!=".."&&(h==c.length-1?(c.splice(h,1),c[h-1]=""):(c.splice(h-1,2),h-=2));e.path=c.join("/")}c=[];e.scheme&&c.push(e.scheme,":");e.authority&&c.push("//",e.authority);c.push(e.path);e.query&&c.push("?",e.query);e.fragment&&c.push("#",e.fragment)}this.uri=c.join("");a=this.uri.match(g);
this.scheme=a[2]||(a[1]?"":null);this.authority=a[4]||(a[3]?"":null);this.path=a[5];this.query=a[7]||(a[6]?"":null);this.fragment=a[9]||(a[8]?"":null);if(this.authority!=null)a=this.authority.match(o),this.user=a[3]||null,this.password=a[4]||null,this.host=a[6]||a[7],this.port=a[9]||null};d._Url.prototype.toString=function(){return this.uri};d.moduleUrl=function(c,b){if(!c)return null;var c=c.replace(/\./g,"/")+(b?"/"+b:""),e="",h=c.match(/(.+)(\.[^\/]*)$/);h&&(c=h[1],e=h[2]);return new d._Url(a.nameToUrl(c,
e))};return d});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(a){if(typeof window!="undefined"){a.isBrowser=!0;a._name="browser";(function(){var b=a;if(document&&document.getElementsByTagName)for(var d=document.getElementsByTagName("script"),l=/dojo(\.xd)?\.js(\W|$)/i,i=0;i<d.length;i++){var k=d[i].getAttribute("src");if(k){var j=k.match(l);if(j){if(!b.config.baseUrl)b.config.baseUrl=k.substring(0,j.index);if(d=d[i].getAttribute("djConfig")||d[i].getAttribute("data-dojo-config")){var d=eval("({ "+
d+" })"),c;for(c in d)a.config[c]=d[c]}break}}}b.baseUrl=b.config.baseUrl;c=navigator;d=c.userAgent;l=c.appVersion;i=parseFloat(l);if(d.indexOf("Opera")>=0)b.isOpera=i;if(d.indexOf("AdobeAIR")>=0)b.isAIR=1;b.isKhtml=l.indexOf("Konqueror")>=0?i:0;b.isWebKit=parseFloat(d.split("WebKit/")[1])||void 0;b.isChrome=parseFloat(d.split("Chrome/")[1])||void 0;b.isMac=l.indexOf("Macintosh")>=0;if((k=Math.max(l.indexOf("WebKit"),l.indexOf("Safari"),0))&&!a.isChrome)if(b.isSafari=parseFloat(l.split("Version/")[1]),
!b.isSafari||parseFloat(l.substr(k+7))<=419.3)b.isSafari=2;if(d.indexOf("Gecko")>=0&&!b.isKhtml&&!b.isWebKit)b.isMozilla=b.isMoz=i;if(b.isMoz)b.isFF=parseFloat(d.split("Firefox/")[1]||d.split("Minefield/")[1])||void 0;if(document.all&&!b.isOpera&&(b.isIE=parseFloat(l.split("MSIE ")[1])||void 0,(d=document.documentMode)&&d!=5&&Math.floor(b.isIE)!=d))b.isIE=d;if(a.isIE&&window.location.protocol==="file:")a.config.ieForceActiveXXhr=!0;b.isQuirks=document.compatMode=="BackCompat";b.locale=a.config.locale||
(b.isIE?c.userLanguage:c.language).toLowerCase();b._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];b._xhrObj=function(){var c,e;if(!a.isIE||!a.config.ieForceActiveXXhr)try{c=new XMLHttpRequest}catch(d){}if(!c)for(var f=0;f<3;++f){var h=b._XMLHTTP_PROGIDS[f];try{c=new ActiveXObject(h)}catch(g){e=g}if(c){b._XMLHTTP_PROGIDS=[h];break}}if(!c)throw Error("XMLHTTP not available: "+e);return c};b._isDocumentOk=function(a){var a=a.status||0,c=location.protocol;return a>=200&&
a<300||a==304||a==1223||!a&&(c=="file:"||c=="chrome:"||c=="chrome-extension:"||c=="app:")};var e=window.location+"",h=(c=document.getElementsByTagName("base"))&&c.length>0;b._getText=function(c,f){var d=b._xhrObj();!h&&a._Url&&(c=(new a._Url(e,c)).toString());b.config.cacheBust&&(c+="",c+=(c.indexOf("?")==-1?"?":"&")+String(b.config.cacheBust).replace(/\W+/g,""));d.open("GET",c,!1);try{if(d.send(null),!b._isDocumentOk(d)){var g=Error("Unable to load "+c+" status:"+d.status);g.status=d.status;g.responseText=
d.responseText;throw g;}}catch(i){if(f)return null;throw i;}return d.responseText};var g=window,o=function(a,c){var b=g.attachEvent||g.addEventListener,a=g.attachEvent?a:a.substring(2);b(a,function(){c.apply(g,arguments)},!1)};b._windowUnloaders=[];b.windowUnloaded=function(){for(var a=b._windowUnloaders;a.length;)a.pop()();b=null};var n=0;b.addOnWindowUnload=function(a,c){b._onto(b._windowUnloaders,a,c);n||(n=1,o("onunload",b.windowUnloaded))};var f=0;b.addOnUnload=function(c,e){b._onto(b._unloaders,
c,e);f||(f=1,o("onbeforeunload",a.unloaded))}})();a._initFired=!1;a._loadInit=function(){if(a._scrollIntervalId)clearInterval(a._scrollIntervalId),a._scrollIntervalId=0;if(!a._initFired)a._initFired=!0,!a.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",a._loadInit),a._inFlightCount==0&&a._modulesLoaded()};if(!a.config.afterOnLoad)if(document.addEventListener)document.addEventListener("DOMContentLoaded",a._loadInit,!1),window.addEventListener("load",a._loadInit,!1);else if(window.attachEvent&&
(window.attachEvent("onload",a._loadInit),!a.config.skipIeDomLoaded&&self===self.top))a._scrollIntervalId=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),a._loadInit())}catch(b){}},30);if(a.isIE)try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var b="*,group,roundrect,oval,shape,rect,imagedata,path,textpath,text".split(","),d=0,l=1,i=document.createStyleSheet();if(a.isIE>=8)d=1,l=b.length;for(;d<l;++d)i.addRule("v\\:"+b[d],"behavior:url(#default#VML); display:inline-block")})()}catch(d){}}(function(){var b=
a.config.modulePaths;if(b)for(var d in b)a.registerModulePath(d,b[d])})();a.config.isDebug&&a.require("dojo._firebug.firebug");a.config.debugAtAllCosts&&(a.require("dojo._base._loader.loader_debug"),a.require("dojo.i18n"));return a});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(a){return dojo=a});
define("dojo/_base/lang",["dojo/lib/kernel"],function(a){(function(){var d=Object.prototype.toString;a.isString=function(a){return typeof a=="string"||a instanceof String};a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")};a.isFunction=function(a){return d.call(a)==="[object Function]"};a.isObject=function(c){return c!==void 0&&(c===null||typeof c=="object"||a.isArray(c)||a.isFunction(c))};a.isArrayLike=function(c){return c&&c!==void 0&&!a.isString(c)&&!a.isFunction(c)&&!(c.tagName&&
c.tagName.toLowerCase()=="form")&&(a.isArray(c)||isFinite(c.length))};a.isAlien=function(c){return c&&!a.isFunction(c)&&/\{\s*\[native code\]\s*\}/.test(String(c))};a.extend=function(c,b){for(var d=1,g=arguments.length;d<g;d++)a._mixin(c.prototype,arguments[d]);return c};a._hitchArgs=function(c,b){var d=a._toArray(arguments,2),g=a.isString(b);return function(){var i=a._toArray(arguments),j=g?(c||a.global)[b]:b;return j&&j.apply(c||this,d.concat(i))}};a.hitch=function(c,b){if(arguments.length>2)return a._hitchArgs.apply(a,
arguments);b||(b=c,c=null);if(a.isString(b)){c=c||a.global;if(!c[b])throw['dojo.hitch: scope["',b,'"] is null (scope="',c,'")'].join("");return function(){return c[b].apply(c,arguments||[])}}return!c?b:function(){return b.apply(c,arguments||[])}};a.delegate=a._delegate=function(){function c(){}return function(b,d){c.prototype=b;var g=new c;c.prototype=null;d&&a._mixin(g,d);return g}}();var b=function(a,b,d){return(d||[]).concat(Array.prototype.slice.call(a,b||0))},m=function(a,b,d){d=d||[];for(b=
b||0;b<a.length;b++)d.push(a[b]);return d};a._toArray=a.isIE?function(a){return(a.item?m:b).apply(this,arguments)}:b;a.partial=function(c){return a.hitch.apply(a,[null].concat(a._toArray(arguments)))};var l=a._extraNames,i=l.length,k={};a.clone=function(c){if(!c||typeof c!="object"||a.isFunction(c))return c;if(c.nodeType&&"cloneNode"in c)return c.cloneNode(!0);if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp)return RegExp(c);var b,d,g,j;if(a.isArray(c)){b=[];for(d=0,g=c.length;d<
g;++d)d in c&&b.push(a.clone(c[d]))}else b=c.constructor?new c.constructor:{};for(j in c)if(g=c[j],!(j in b)||b[j]!==g&&(!(j in k)||k[j]!==g))b[j]=a.clone(g);if(i)for(d=0;d<i;++d)if(j=l[d],g=c[j],!(j in b)||b[j]!==g&&(!(j in k)||k[j]!==g))b[j]=g;return b};a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var j=/\{([^\}]+)\}/g;a.replace=function(c,b,d){return c.replace(d||j,a.isFunction(b)?b:function(c,d){return a.getObject(d,
!1,b)})}})();return a});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(a){(function(){var d=function(b,d,i){return[typeof b=="string"?b.split(""):b,d||a.global,typeof i=="string"?new Function("item","index","array",i):i]},b=function(a,b,i,k){for(var i=d(b,k,i),b=i[0],k=0,j=b.length;k<j;++k){var c=!!i[2].call(i[1],b[k],k,b);if(a^c)return c}return a};a.mixin(a,{indexOf:function(a,b,d,k){var j=1,c=a.length||0,e=0;k&&(e=c-1,j=c=-1);d!=void 0&&(e=d);if(k&&e>c||e<c)for(;e!=c;e+=j)if(a[e]==b)return e;
return-1},lastIndexOf:function(b,d,i){return a.indexOf(b,d,i,!0)},forEach:function(a,b,i){if(a&&a.length)for(var b=d(a,i,b),a=b[0],i=0,k=a.length;i<k;++i)b[2].call(b[1],a[i],i,a)},every:function(a,d,i){return b(!0,a,d,i)},some:function(a,d,i){return b(!1,a,d,i)},map:function(a,b,i,k){for(var b=d(a,i,b),a=b[0],k=k?new k:[],i=0,j=a.length;i<j;++i)k.push(b[2].call(b[1],a[i],i,a));return k},filter:function(a,b,i){for(var b=d(a,i,b),a=b[0],i=[],k=0,j=a.length;k<j;++k)b[2].call(b[1],a[k],k,a)&&i.push(a[k]);
return i}})})();return a});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(a){(function(){function d(a,c){throw Error("declare"+(c?" "+c:"")+": "+a);}function b(a,c,b){var f,e,j,g,h,i,k,w=this._inherited=this._inherited||{};typeof a=="string"&&(f=a,a=c,c=b);b=0;g=a.callee;(f=f||g.nom)||d("can't deduce a name to call inherited()",this.declaredClass);h=this.constructor._meta;j=h.bases;k=w.p;if(f!=D){if(w.c!==g&&(k=0,i=j[0],h=i._meta,h.hidden[f]!==g)){(e=h.chains)&&typeof e[f]=="string"&&
d("calling chained method with inherited: "+f,this.declaredClass);do if(h=i._meta,e=i.prototype,h&&(e[f]===g&&e.hasOwnProperty(f)||h.hidden[f]===g))break;while(i=j[++k]);k=i?k:-1}if(i=j[++k])if(e=i.prototype,i._meta&&e.hasOwnProperty(f))b=e[f];else{g=x[f];do if(e=i.prototype,(b=e[f])&&(i._meta?e.hasOwnProperty(f):b!==g))break;while(i=j[++k])}b=i&&b||x[f]}else{if(w.c!==g&&(k=0,(h=j[0]._meta)&&h.ctor!==g)){e=h.chains;for((!e||e.constructor!=="manual")&&d("calling chained constructor with inherited",
this.declaredClass);i=j[++k];)if((h=i._meta)&&h.ctor===g)break;k=i?k:-1}for(;i=j[++k];)if(b=(h=i._meta)?h.ctor:i)break;b=i&&b}w.c=b;w.p=k;if(b)return c===!0?b:b.apply(this,c||a)}function m(a,c){return typeof a=="string"?this.inherited(a,c,!0):this.inherited(a,!0)}function l(a){for(var c=this.constructor._meta.bases,b=0,d=c.length;b<d;++b)if(c[b]===a)return!0;return this instanceof a}function i(a,c){var b,d=0,e=f._extraNames.length;for(b in c)b!=D&&c.hasOwnProperty(b)&&(a[b]=c[b]);for(;d<e;++d)b=f._extraNames[d],
b!=D&&c.hasOwnProperty(b)&&(a[b]=c[b])}function k(a,c){var b,d,e=0,g=f._extraNames.length;for(b in c)if(d=c[b],(d!==x[b]||!(b in x))&&b!=D){if(A.call(d)=="[object Function]")d.nom=b;a[b]=d}for(;e<g;++e)if(b=f._extraNames[e],d=c[b],(d!==x[b]||!(b in x))&&b!=D){if(A.call(d)=="[object Function]")d.nom=b;a[b]=d}return a}function j(a){k(this.prototype,a);return this}function c(a,c){return function(){var q;var b=arguments,d=b,f=b[0],e,g;g=a.length;var h;if(!(this instanceof b.callee))return n(b);if(c&&
(f&&f.preamble||this.preamble)){h=Array(a.length);h[0]=b;for(e=0;;){if(f=b[0])(f=f.preamble)&&(b=f.apply(this,b)||b);f=a[e].prototype;(f=f.hasOwnProperty("preamble")&&f.preamble)&&(b=f.apply(this,b)||b);if(++e==g)break;h[e]=b}}for(e=g-1;e>=0;--e)f=a[e],(q=(g=f._meta)?g.ctor:f,f=q)&&f.apply(this,h?h[e]:b);(f=this.postscript)&&f.apply(this,d)}}function e(a,c){return function(){var b=arguments,d=b,f=b[0];if(!(this instanceof b.callee))return n(b);if(c){if(f)(f=f.preamble)&&(d=f.apply(this,d)||d);(f=
this.preamble)&&f.apply(this,d)}a&&a.apply(this,b);(f=this.postscript)&&f.apply(this,b)}}function h(a){return function(){var q;var c=arguments,b=0,d,f;if(!(this instanceof c.callee))return n(c);for(;d=a[b];++b)if(q=(f=d._meta)?f.ctor:d,d=q){d.apply(this,c);break}(d=this.postscript)&&d.apply(this,c)}}function g(a,c,b){return function(){var d,f,e=0,g=1;b&&(e=c.length-1,g=-1);for(;d=c[e];e+=g)f=d._meta,(d=(f?f.hidden:d.prototype)[a])&&d.apply(this,arguments)}}function o(a){p.prototype=a.prototype;a=
new p;p.prototype=null;return a}function n(a){var c=a.callee,b=o(c);c.apply(b,a);return b}var f=a,w=f._mixin,x=Object.prototype,A=x.toString,p=new Function,r=0,D="constructor";f.declare=function(a,n,p){typeof a!="string"&&(p=n,n=a,a="");var p=p||{},y,t,q,s,E,u,B,C=1,L=n;if(A.call(n)=="[object Array]"){C=a;q=[];s=[{cls:0,refs:[]}];u={};for(var M=1,N=n.length,H=0,z,O,v,F;H<N;++H){(z=n[H])?A.call(z)!="[object Function]"&&d("mixin #"+H+" is not a callable constructor.",C):d("mixin #"+H+" is unknown. Did you use dojo.require to pull it in?",
C);O=z._meta?z._meta.bases:[z];v=0;for(z=O.length-1;z>=0;--z){F=O[z].prototype;if(!F.hasOwnProperty("declaredClass"))F.declaredClass="uniqName_"+r++;F=F.declaredClass;u.hasOwnProperty(F)||(u[F]={count:0,refs:[],cls:O[z]},++M);F=u[F];v&&v!==F&&(F.refs.push(v),++v.count);v=F}++v.count;s[0].refs.push(v)}for(;s.length;){v=s.pop();q.push(v.cls);for(--M;t=v.refs,t.length==1;){v=t[0];if(!v||--v.count){v=0;break}q.push(v.cls);--M}if(v)for(H=0,N=t.length;H<N;++H)v=t[H],--v.count||s.push(v)}M&&d("can't build consistent linearization",
C);z=n[0];q[0]=z?z._meta&&z===q[q.length-z._meta.bases.length]?z._meta.bases.length:1:0;u=q;q=u[0];C=u.length-q;n=u[C]}else u=[0],n?A.call(n)=="[object Function]"?(q=n._meta,u=u.concat(q?q.bases:n)):d("base class is not a callable constructor.",a):n!==null&&d("unknown base class. Did you use dojo.require to pull it in?",a);if(n)for(t=C-1;;--t){y=o(n);if(!t)break;q=u[t];(q._meta?i:w)(y,q.prototype);s=new Function;s.superclass=n;s.prototype=y;n=y.constructor=s}else y={};k(y,p);q=p.constructor;if(q!==
x.constructor)q.nom=D,y.constructor=q;for(t=C-1;t;--t)(q=u[t]._meta)&&q.chains&&(B=w(B||{},q.chains));y["-chains-"]&&(B=w(B||{},y["-chains-"]));q=!B||!B.hasOwnProperty(D);u[0]=s=B&&B.constructor==="manual"?h(u):u.length==1?e(p.constructor,q):c(u,q);s._meta={bases:u,hidden:p,chains:B,parents:L,ctor:p.constructor};s.superclass=n&&n.prototype;s.extend=j;s.prototype=y;y.constructor=s;y.getInherited=m;y.inherited=b;y.isInstanceOf=l;if(a)y.declaredClass=a,f.setObject(a,s);if(B)for(E in B)if(y[E]&&typeof B[E]==
"string"&&E!=D)q=y[E]=g(E,u,B[E]==="after"),q.nom=E;return s};f.safeMixin=k})();return a.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(a){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,m=b._listeners,b=(b=b.target)&&b.apply(this,arguments),l,m=[].concat(m);for(l in m)l in a||m[l].apply(this,arguments);return b}},add:function(d,b,m){var d=d||a.global,l=d[b];if(!l||!l._listeners){var i=a._listener.getDispatcher();i.target=l;i._listeners=[];l=d[b]=i}return l._listeners.push(m)},remove:function(d,b,m){(d=(d||a.global)[b])&&
d._listeners&&m--&&delete d._listeners[m]}};a.connect=function(d,b,m,l,i){var k=arguments,j=[],c=0;j.push(a.isString(k[0])?null:k[c++],k[c++]);var e=k[c+1];j.push(a.isString(e)||a.isFunction(e)?k[c++]:null,k[c++]);for(e=k.length;c<e;c++)j.push(k[c]);return a._connect.apply(this,j)};a._connect=function(d,b,m,l){var i=a._listener,m=i.add(d,b,a.hitch(m,l));return[d,b,m,i]};a.disconnect=function(d){d&&d[0]!==void 0&&(a._disconnect.apply(this,d),delete d[0])};a._disconnect=function(a,b,m,l){l.remove(a,
b,m)};a._topics={};a.subscribe=function(d,b,m){return[d,a._listener.add(a._topics,d,a.hitch(b,m))]};a.unsubscribe=function(d){d&&a._listener.remove(a._topics,d[0],d[1])};a.publish=function(d,b){var m=a._topics[d];m&&m.apply(this,b||[])};a.connectPublisher=function(d,b,m){var l=function(){a.publish(d,arguments)};return m?a.connect(b,m,l):a.connect(b,l)};return a.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(a){(function(){var d=function(){},b=Object.freeze||function(){},m=function(){var a,b,d,j,c=!1,e=function(){};return function(h){if(c)a?(b.next={task:h,next:null},b=b.next):b=a={task:h,next:null};else{c=!0;do try{for(;h;){h();if(d)a?b.next=d:a=d,b=j;a?(d=a.next,j=b,h=a.task,a=b=null):h=null}c=!1}catch(g){h=e,console.error(g)}while(c)}}}();a.Deferred=function(l){function i(a){if(c)throw Error("This deferred has already been resolved");
j=a;c=!0;m(k)}function k(){for(var b;!b&&g;){var h=g;g=g.next;if(b=h.progress==d)c=!1;var i=e?h.error:h.resolved;if(i)try{var k=i(j);k&&typeof k.then==="function"?k.then(a.hitch(h.deferred,"resolve"),a.hitch(h.deferred,"reject"),a.hitch(h.deferred,"progress")):(i=b&&k===void 0,b&&!i&&(e=k instanceof Error),h.deferred[i&&e?"reject":"resolve"](i?j:k))}catch(n){h.deferred.reject(n)}else e?h.deferred.reject(j):h.deferred.resolve(j)}}var j,c,e,h,g,o=this.promise={};this.resolve=this.callback=function(a){this.fired=
0;this.results=[a,null];i(a)};this.reject=this.errback=function(c){e=!0;this.fired=1;i(c);this.results=[null,c];if(!c||c.log!==!1)(a.config.deferredOnError||function(a){console.error(a)})(c)};this.progress=function(a){for(var c=g;c;){var b=c.progress;b&&b(a);c=c.next}};this.addCallbacks=function(a,c){this.then(a,c,d);return this};this.then=o.then=function(b,e,j){var i=j==d?this:new a.Deferred(o.cancel),b={resolved:b,error:e,progress:j,deferred:i};g?h=h.next=b:g=h=b;c&&m(k);return i.promise};var n=
this;this.cancel=o.cancel=function(){if(!c){var a=l&&l(n);if(!c)a instanceof Error||(a=Error(a)),a.log=!1,n.reject(a)}};b(o)};a.extend(a.Deferred,{addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var d=a.hitch.apply(a,arguments);return this.addCallbacks(d,d)},fired:-1})})();a.when=function(a,b,m,l){return a&&typeof a.then==="function"?a.then(b,m,l):b(a)};return a.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(a){a.fromJson=function(a){return eval("("+a+")")};a._escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};a.toJsonIndentStr="\t";a.toJson=function(d,b,m){if(d===void 0)return"undefined";var l=typeof d;if(l=="number"||l=="boolean")return d+"";if(d===null)return"null";if(a.isString(d))return a._escapeString(d);var i=
arguments.callee,k,m=m||"",j=b?m+a.toJsonIndentStr:"";k=d.__json__||d.json;if(a.isFunction(k)&&(k=k.call(d),d!==k))return i(k,b,j);if(d.nodeType&&d.cloneNode)throw Error("Can't serialize DOM nodes");k=b?" ":"";var c=b?"\n":"";if(a.isArray(d))return"["+a.map(d,function(a){a=i(a,b,j);typeof a!="string"&&(a="undefined");return c+j+a}).join(","+k)+c+m+"]";if(l=="function")return null;var l=[],e;for(e in d){var h,g;if(typeof e=="number")h='"'+e+'"';else if(typeof e=="string")h=a._escapeString(e);else continue;
g=i(d[e],b,j);typeof g=="string"&&l.push(c+j+h+":"+k+g)}return"{"+l.join(","+k)+c+m+"}"};return a});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(a){(function(){a.Color=function(a){a&&this.setColor(a)};a.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:a.config.transparentColor||[255,255,255]};a.extend(a.Color,
{r:255,g:255,b:255,a:1,_set:function(a,b,m,l){this.r=a;this.g=b;this.b=m;this.a=l},setColor:function(d){a.isString(d)?a.colorFromString(d,this):a.isArray(d)?a.colorFromArray(d,this):(this._set(d.r,d.g,d.b,d.a),d instanceof a.Color||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+a.map(["r","g","b"],function(a){a=this[a].toString(16);return a.length<2?"0"+
a:a},this).join("")},toCss:function(a){var b=this.r+", "+this.g+", "+this.b;return(a?"rgba("+b+", "+this.a:"rgb("+b)+")"},toString:function(){return this.toCss(!0)}});a.blendColors=function(d,b,m,l){var i=l||new a.Color;a.forEach(["r","g","b","a"],function(a){i[a]=d[a]+(b[a]-d[a])*m;a!="a"&&(i[a]=Math.round(i[a]))});return i.sanitize()};a.colorFromRgb=function(d,b){var m=d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&a.colorFromArray(m[1].split(/\s*,\s*/),b)};a.colorFromHex=function(d,
b){var m=b||new a.Color,l=d.length==4?4:8,i=(1<<l)-1,d=Number("0x"+d.substr(1));if(isNaN(d))return null;a.forEach(["b","g","r"],function(a){var b=d&i;d>>=l;m[a]=l==4?17*b:b});m.a=1;return m};a.colorFromArray=function(d,b){var m=b||new a.Color;m._set(Number(d[0]),Number(d[1]),Number(d[2]),Number(d[3]));if(isNaN(m.a))m.a=1;return m.sanitize()};a.colorFromString=function(d,b){var m=a.Color.named[d];return m&&a.colorFromArray(m,b)||a.colorFromRgb(d,b)||a.colorFromHex(d,b)}})();return a.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(a){a.doc=window.document||null;a.body=function(){return a.doc.body||a.doc.getElementsByTagName("body")[0]};a.setContext=function(d,b){a.global=d;a.doc=b};a.withGlobal=function(d,b,m,l){var i=a.global;try{return a.global=d,a.withDoc.call(null,d.document,b,m,l)}finally{a.global=i}};a.withDoc=function(d,b,m,l){var i=a.doc,k=a._bodyLtr,j=a.isQuirks;try{return a.doc=d,delete a._bodyLtr,a.isQuirks=a.doc.compatMode=="BackCompat",m&&typeof b=="string"&&
(b=m[b]),b.apply(m,l||[])}finally{a.doc=i;delete a._bodyLtr;if(k!==void 0)a._bodyLtr=k;a.isQuirks=j}};return a});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(a){(function(){var d=a._event_listener={add:function(c,b,h){if(c){b=d._normalizeEventName(b);h=d._fixCallback(b,h);if(!a.isIE&&(b=="mouseenter"||b=="mouseleave"))var g=h,b=b=="mouseenter"?"mouseover":"mouseout",h=function(b){if(!a.isDescendant(b.relatedTarget,c))return g.call(this,b)};c.addEventListener(b,h,!1);return h}},remove:function(c,b,h){if(c){b=d._normalizeEventName(b);if(!a.isIE&&(b=="mouseenter"||b=="mouseleave"))b=
b=="mouseenter"?"mouseover":"mouseout";c.removeEventListener(b,h,!1)}},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a},_fixCallback:function(a,b){return a!="keypress"?b:function(a){return b.call(this,d._fixEvent(a,this))}},_fixEvent:function(a){switch(a.type){case "keypress":d._setKeyChar(a)}return a},_setKeyChar:function(a){a.keyChar=a.charCode>=32?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,
191:47,192:96,219:91,220:92,221:93,222:39}};a.fixEvent=function(a,b){return d._fixEvent(a,b)};a.stopEvent=function(a){a.preventDefault&&a.preventDefault();a.stopPropagation&&a.stopPropagation()};var b=a._listener;a._connect=function(c,e,h,g,j){j=c&&(c.nodeType||c.attachEvent||c.addEventListener)?j?2:1:0;h=[a._listener,d,b][j].add(c,e,a.hitch(h,g));return[c,e,h,j]};a._disconnect=function(c,e,h,g){[a._listener,d,b][g].remove(c,e,h)};a.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,
META:a.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,
F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:a.isMac&&!a.isAIR?a.isSafari?91:224:17};var m=a.isMac?"metaKey":"ctrlKey";a.isCopyKey=function(a){return a[m]};a.mouseButtons=a.isIE<9||a.isIE&&a.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(a,b){return a.button&b},isLeft:function(a){return a.button&1},isMiddle:function(a){return a.button&4},isRight:function(a){return a.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(a,b){return a.button==
b},isLeft:function(a){return a.button==0},isMiddle:function(a){return a.button==1},isRight:function(a){return a.button==2}};if(a.isIE){var l=function(a,b){try{return a.keyCode=b}catch(d){return 0}},i=a._listener,k=a._ieListenersName="_"+a._scopeName+"_listeners";if(!a.config._allow_leaks)var b=i=a._ie_listener={handlers:[],add:function(b,d,h){var b=b||a.global,g=b[d];if(!g||!g[k]){var i=a._getIeDispatcher();i.target=g&&j.push(g)-1;i[k]=[];g=b[d]=i}return g[k].push(j.push(h)-1)},remove:function(b,
d,h){var c;c=(b=(b||a.global)[d])&&b[k],d=c;b&&d&&h--&&(delete j[d[h]],delete d[h])}},j=i.handlers;a.mixin(d,{add:function(a,b,h){if(a){b=d._normalizeEventName(b);if(b=="onkeypress"){var g=a.onkeydown;if(!g||!g[k]||!g._stealthKeydownHandle){var j=d.add(a,"onkeydown",d._stealthKeyDown),g=a.onkeydown;g._stealthKeydownHandle=j;g._stealthKeydownRefs=1}else g._stealthKeydownRefs++}return i.add(a,b,d._fixCallback(h))}},remove:function(a,b,h){b=d._normalizeEventName(b);i.remove(a,b,h);if(b=="onkeypress")b=
a.onkeydown,--b._stealthKeydownRefs<=0&&(i.remove(a,"onkeydown",b._stealthKeydownHandle),delete b._stealthKeydownHandle)},_normalizeEventName:function(a){return a.slice(0,2)!="on"?"on"+a:a},_nop:function(){},_fixEvent:function(b,e){if(!b)b=(e&&(e.ownerDocument||e.document||e).parentWindow||window).event;if(!b)return b;b.target=b.srcElement;b.currentTarget=e||b.srcElement;b.layerX=b.offsetX;b.layerY=b.offsetY;var h=b.srcElement,h=h&&h.ownerDocument||document,h=a.isIE<6||h.compatMode=="BackCompat"?
h.body:h.documentElement,g=a._getIeDocumentElementOffset();b.pageX=b.clientX+a._fixIeBiDiScrollLeft(h.scrollLeft||0)-g.x;b.pageY=b.clientY+(h.scrollTop||0)-g.y;if(b.type=="mouseover")b.relatedTarget=b.fromElement;if(b.type=="mouseout")b.relatedTarget=b.toElement;if(a.isIE<9||a.isQuirks)b.stopPropagation=d._stopPropagation,b.preventDefault=d._preventDefault;return d._fixKeys(b)},_fixKeys:function(a){switch(a.type){case "keypress":var b="charCode"in a?a.charCode:a.keyCode;b==10?(b=0,a.keyCode=13):b==
13||b==27?b=0:b==3&&(b=99);a.charCode=b;d._setKeyChar(a)}return a},_stealthKeyDown:function(b){var e=b.currentTarget.onkeypress;if(e&&e[k]){var h=b.keyCode,g=(h!=13||a.isIE>=9&&!a.isQuirks)&&h!=32&&h!=27&&(h<48||h>90)&&(h<96||h>111)&&(h<186||h>192)&&(h<219||h>222);if(g||b.ctrlKey){g=g?0:h;if(b.ctrlKey)if(h==3||h==13)return;else g>95&&g<106?g-=48:!b.shiftKey&&g>=65&&g<=90?g+=32:g=d._punctMap[g]||g;h=d._synthesizeEvent(b,{type:"keypress",faux:!0,charCode:g});e.call(b.currentTarget,h);if(a.isIE<9||a.isIE&&
a.isQuirks)b.cancelBubble=h.cancelBubble;b.returnValue=h.returnValue;l(b,h.keyCode)}}},_stopPropagation:function(){this.cancelBubble=!0},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&l(this,0);this.returnValue=!1}});a.stopEvent=a.isIE<9||a.isQuirks?function(a){a=a||window.event;d._stopPropagation.call(a);d._preventDefault.call(a)}:a.stopEvent}d._synthesizeEvent=function(b,e){var h=a.mixin({},b,e);d._setKeyChar(h);h.preventDefault=function(){b.preventDefault()};h.stopPropagation=
function(){b.stopPropagation()};return h};a.isOpera&&a.mixin(d,{_fixEvent:function(a){switch(a.type){case "keypress":var b=a.which;b==3&&(b=99);b=b<41&&!a.shiftKey?0:b;a.ctrlKey&&!a.shiftKey&&b>=65&&b<=90&&(b+=32);return d._synthesizeEvent(a,{charCode:b})}return a}});if(a.isWebKit)d._add=d.add,d._remove=d.remove,a.mixin(d,{add:function(a,b,h){if(a){var g=d._add(a,b,h);if(d._normalizeEventName(b)=="keypress")g._stealthKeyDownHandle=d._add(a,"keydown",function(a){var b=a.keyCode,c=b!=13&&b!=32&&(b<
48||b>90)&&(b<96||b>111)&&(b<186||b>192)&&(b<219||b>222);if(c||a.ctrlKey){c=c?0:b;if(a.ctrlKey)if(b==3||b==13)return;else c>95&&c<106?c-=48:!a.shiftKey&&c>=65&&c<=90?c+=32:c=d._punctMap[c]||c;b=d._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:c});h.call(a.currentTarget,b)}});return g}},remove:function(a,b,h){a&&(h._stealthKeyDownHandle&&d._remove(a,"keydown",h._stealthKeyDownHandle),d._remove(a,b,h))},_fixEvent:function(a){switch(a.type){case "keypress":if(a.faux)break;var b=a.charCode;return d._synthesizeEvent(a,
{charCode:b>=32?b:0,faux:!0})}return a}})})();if(a.isIE)a._ieDispatcher=function(d,b){var m=Array.prototype,l=a._ie_listener.handlers,i=d.callee,k=i[a._ieListenersName],i=(i=l[i.target])&&i.apply(b,d),k=[].concat(k),j;for(j in k){var c=l[k[j]];!(j in m)&&c&&c.apply(b,d)}return i},a._getIeDispatcher=function(){return new Function(a._scopeName+"._ieDispatcher(arguments, this)")},a._event_listener._fixCallback=function(d){var b=a._event_listener._fixEvent;return function(a){return d.call(this,b(a,this))}};
return a.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(a){try{document.execCommand("BackgroundImageCache",!1,!0)}catch(d){}a.byId=a.isIE?function(b,d){if(typeof b!="string")return b;var l=d||a.doc,i=l.getElementById(b);if(i&&(i.attributes.id.value==b||i.id==b))return i;else{l=l.all[b];if(!l||l.nodeName)l=[l];for(var k=0;i=l[k++];)if(i.attributes&&i.attributes.id&&i.attributes.id.value==b||i.id==b)return i}}:function(b,d){return(typeof b=="string"?(d||a.doc).getElementById(b):b)||
null};(function(){var b=a.byId,d=null,l;a.addOnWindowUnload(function(){d=null});a._destroyElement=a.destroy=function(a){a=b(a);try{var c=a.ownerDocument;if(!d||l!=c)d=c.createElement("div"),l=c;d.appendChild(a.parentNode?a.parentNode.removeChild(a):a);d.innerHTML=""}catch(f){}};a.isDescendant=function(a,c){try{a=b(a);for(c=b(c);a;){if(a==c)return!0;a=a.parentNode}}catch(d){}return!1};a.setSelectable=function(c,d){c=b(c);if(a.isMozilla)c.style.MozUserSelect=d?"":"none";else if(a.isKhtml||a.isWebKit)c.style.KhtmlUserSelect=
d?"auto":"none";else if(a.isIE){var f=c.unselectable=d?"":"on";a.query("*",c).forEach("item.unselectable = '"+f+"'")}};var i=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)};a.place=function(c,d,f){d=b(d);typeof c=="string"&&(c=/^\s*</.test(c)?a._toDom(c,d.ownerDocument):b(c));if(typeof f=="number"){var e=d.childNodes;!e.length||e.length<=f?d.appendChild(c):i(c,e[f<0?0:f])}else switch(f){case "before":i(c,d);break;case "after":f=c;(e=d.parentNode)&&(e.lastChild==d?e.appendChild(f):e.insertBefore(f,
d.nextSibling));break;case "replace":d.parentNode.replaceChild(c,d);break;case "only":a.empty(d);d.appendChild(c);break;case "first":if(d.firstChild){i(c,d.firstChild);break}default:d.appendChild(c)}return c};a.boxModel="content-box";if(a.isIE)a.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var k;k=a.isWebKit?function(a){var b;if(a.nodeType==1){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null);if(!b&&a.style)a.style.display="",b=c.getComputedStyle(a,null)}return b||
{}}:a.isIE?function(a){return a.nodeType==1?a.currentStyle:{}}:function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};a.getComputedStyle=k;a._toPixelValue=a.isIE?function(a,b){if(!b)return 0;if(b=="medium")return 4;if(b.slice&&b.slice(-2)=="px")return parseFloat(b);with(a){var c=style.left,d=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=b,b=style.pixelLeft}catch(f){b=0}style.left=c;runtimeStyle.left=d}return b}:function(a,b){return parseFloat(b)||
0};var j=a._toPixelValue,c=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(c){return b?{}:null}};a._getOpacity=a.isIE<9?function(a){try{return c(a).Opacity/100}catch(b){return 1}}:function(a){return k(a).opacity};a._setOpacity=a.isIE<9?function(b,d){var f=d*100,e=d==1;b.style.zoom=e?"":1;if(c(b))c(b,1).Opacity=f;else{if(e)return d;b.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+f+")"}c(b,1).Enabled=!e;b.nodeName.toLowerCase()=="tr"&&a.query("> td",
b).forEach(function(b){a._setOpacity(b,d)});return d}:function(a,b){return a.style.opacity=b};var e={left:!0,top:!0},h=/margin|padding|width|height|max|min|offset/,g=function(b,c,d){c=c.toLowerCase();if(a.isIE){if(d=="auto"){if(c=="height")return b.offsetHeight;if(c=="width")return b.offsetWidth}if(c=="fontweight")switch(d){case 700:return"bold";default:return"normal"}}c in e||(e[c]=h.test(c));return e[c]?j(b,d):d},o=a.isIE?"styleFloat":"cssFloat",n={cssFloat:o,styleFloat:o,"float":o};a.style=function(c,
d,f){var e=b(c),h=arguments.length,j=d=="opacity",d=n[d]||d;if(h==3)return j?a._setOpacity(e,f):e.style[d]=f;if(h==2&&j)return a._getOpacity(e);j=k(e);if(h==2&&typeof d!="string"){for(var i in d)a.style(c,i,d[i]);return j}return h==1?j:g(e,d,j[d]||e.style[d])};a._getPadExtents=function(a,b){var c=b||k(a),d=j(a,c.paddingLeft),f=j(a,c.paddingTop);return{l:d,t:f,w:d+j(a,c.paddingRight),h:f+j(a,c.paddingBottom)}};a._getBorderExtents=function(a,b){var c=b||k(a),d=c.borderLeftStyle!="none"?j(a,c.borderLeftWidth):
0,f=c.borderTopStyle!="none"?j(a,c.borderTopWidth):0;return{l:d,t:f,w:d+(c.borderRightStyle!="none"?j(a,c.borderRightWidth):0),h:f+(c.borderBottomStyle!="none"?j(a,c.borderBottomWidth):0)}};a._getPadBorderExtents=function(b,c){var d=c||k(b),f=a._getPadExtents(b,d),d=a._getBorderExtents(b,d);return{l:f.l+d.l,t:f.t+d.t,w:f.w+d.w,h:f.h+d.h}};a._getMarginExtents=function(b,c){var d=c||k(b),f=j(b,d.marginLeft),e=j(b,d.marginTop),h=j(b,d.marginRight),g=j(b,d.marginBottom);a.isWebKit&&d.position!="absolute"&&
(h=f);return{l:f,t:e,w:f+h,h:e+g}};a._getMarginBox=function(b,c){var d=c||k(b),f=a._getMarginExtents(b,d),e=b.offsetLeft-f.l,h=b.offsetTop-f.t,g=b.parentNode;if(a.isMoz){var j=parseFloat(d.left),d=parseFloat(d.top);!isNaN(j)&&!isNaN(d)?(e=j,h=d):g&&g.style&&(j=k(g),j.overflow!="visible"&&(g=a._getBorderExtents(g,j),e+=g.l,h+=g.t))}else if((a.isOpera||a.isIE>7&&!a.isQuirks)&&g)g=a._getBorderExtents(g),e-=g.l,h-=g.t;return{l:e,t:h,w:b.offsetWidth+f.w,h:b.offsetHeight+f.h}};a._getMarginSize=function(c,
d){var c=b(c),f=a._getMarginExtents(c,d||k(c)),e=c.getBoundingClientRect();return{w:e.right-e.left+f.w,h:e.bottom-e.top+f.h}};a._getContentBox=function(b,c){var d=c||k(b),f=a._getPadExtents(b,d),d=a._getBorderExtents(b,d),e=b.clientWidth,g;e?(g=b.clientHeight,d.w=d.h=0):(e=b.offsetWidth,g=b.offsetHeight);a.isOpera&&(f.l+=d.l,f.t+=d.t);return{l:f.l,t:f.t,w:e-f.w-d.w,h:g-f.h-d.h}};a._getBorderBox=function(b,c){var d=c||k(b),f=a._getPadExtents(b,d),d=a._getContentBox(b,d);return{l:d.l-f.l,t:d.t-f.t,
w:d.w+f.w,h:d.h+f.h}};a._setBox=function(a,b,c,d,f,e){e=e||"px";a=a.style;if(!isNaN(b))a.left=b+e;if(!isNaN(c))a.top=c+e;if(d>=0)a.width=d+e;if(f>=0)a.height=f+e};a._isButtonTag=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.getAttribute("type")||"").toUpperCase()=="BUTTON"};a._usesBorderBox=function(b){var c=b.tagName;return a.boxModel=="border-box"||c=="TABLE"||a._isButtonTag(b)};a._setContentSize=function(b,c,d,f){a._usesBorderBox(b)&&(f=a._getPadBorderExtents(b,f),c>=0&&(c+=f.w),
d>=0&&(d+=f.h));a._setBox(b,NaN,NaN,c,d)};a._setMarginBox=function(b,c,d,e,g,h){var j=h||k(b),h=a._usesBorderBox(b)?f:a._getPadBorderExtents(b,j);if(a.isWebKit&&a._isButtonTag(b)){var i=b.style;if(e>=0&&!i.width)i.width="4px";if(g>=0&&!i.height)i.height="4px"}j=a._getMarginExtents(b,j);e>=0&&(e=Math.max(e-h.w-j.w,0));g>=0&&(g=Math.max(g-h.h-j.h,0));a._setBox(b,c,d,e,g)};var f={l:0,t:0,w:0,h:0};a.marginBox=function(c,d){var f=b(c),e=k(f);return!d?a._getMarginBox(f,e):a._setMarginBox(f,d.l,d.t,d.w,
d.h,e)};a.contentBox=function(c,d){var f=b(c),e=k(f);return!d?a._getContentBox(f,e):a._setContentSize(f,d.w,d.h,e)};a._docScroll=function(){var b=a.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.isQuirks?a.doc.body:a.doc.documentElement,{x:a._fixIeBiDiScrollLeft(b.scrollLeft||0),y:b.scrollTop||0})};a._isBodyLtr=function(){return"_bodyLtr"in a?a._bodyLtr:a._bodyLtr=(a.body().dir||a.doc.documentElement.dir||"ltr").toLowerCase()=="ltr"};a._getIeDocumentElementOffset=function(){var b=
a.doc.documentElement;if(a.isIE<8){var c=b.getBoundingClientRect(),d=c.left,c=c.top;a.isIE<7&&(d+=b.clientLeft,c+=b.clientTop);return{x:d<0?0:d,y:c<0?0:c}}else return{x:0,y:0}};a._fixIeBiDiScrollLeft=function(b){var c=a.isIE;if(c&&!a._isBodyLtr()){var d=a.isQuirks,f=d?a.doc.body:a.doc.documentElement;c==6&&!d&&a.global.frameElement&&f.scrollHeight>f.clientHeight&&(b+=f.clientLeft);return c<8||d?b+f.clientWidth-f.scrollWidth:-b}return b};a._abs=a.position=function(c,d){var c=b(c),f=a.body(),e=f.parentNode,
g=c.getBoundingClientRect(),g={x:g.left,y:g.top,w:g.right-g.left,h:g.bottom-g.top};a.isIE?(e=a._getIeDocumentElementOffset(),g.x-=e.x+(a.isQuirks?f.clientLeft+f.offsetLeft:0),g.y-=e.y+(a.isQuirks?f.clientTop+f.offsetTop:0)):a.isFF==3&&(f=k(e),g.x-=j(e,f.marginLeft)+j(e,f.borderLeftWidth),g.y-=j(e,f.marginTop)+j(e,f.borderTopWidth));d&&(f=a._docScroll(),g.x+=f.x,g.y+=f.y);return g};a.coords=function(c,d){var f=b(c),e=k(f),e=a._getMarginBox(f,e),f=a.position(f,d);e.x=f.x;e.y=f.y;return e};var w={"class":"className",
"for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},x={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},A={innerHTML:1,className:1,htmlFor:a.isIE,value:1},p=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(a,c){var d=c.toLowerCase();return A[w[d]||c]||p(b(a),x[d]||c)};var r={},D=0,I=a._scopeName+"attrid",G={col:1,colgroup:1,table:1,
tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(c,d,f){var c=b(c),e=arguments.length;if(e==2&&typeof d!="string"){for(var g in d)a.attr(c,g,d[g]);return c}var h=d.toLowerCase();g=w[h]||d;var j=A[g],h=x[h]||d;if(e==3){if(g=="style"&&typeof f!="string")a.style(c,f);else if(g=="innerHTML")a.isIE&&c.tagName.toLowerCase()in G?(a.empty(c),c.appendChild(a._toDom(f,c.ownerDocument))):c[g]=f;else if(a.isFunction(f)){e=a.attr(c,I);e||(e=D++,a.attr(c,I,e));r[e]||(r[e]={});if(j=r[e][g])a.disconnect(j);
else try{delete c[g]}catch(i){}r[e][g]=a.connect(c,g,f)}else j||typeof f=="boolean"?c[g]=f:c.setAttribute(h,f);return c}f=c[g];return j&&typeof f!="undefined"?f:g!="href"&&(typeof f=="boolean"||a.isFunction(f))?f:p(c,h)?c.getAttribute(h):null};a.removeAttr=function(a,c){b(a).removeAttribute(x[c.toLowerCase()]||c)};a.getNodeProp=function(a,c){var a=b(a),d=c.toLowerCase(),f=w[d]||c;if(f in a&&f!="href")return a[f];d=x[d]||c;return p(a,d)?a.getAttribute(d):null};a.create=function(c,d,f,e){var g=a.doc;
if(f)f=b(f),g=f.ownerDocument;typeof c=="string"&&(c=g.createElement(c));d&&a.attr(c,d);f&&a.place(c,f,e);return c};a.empty=a.isIE?function(c){for(var c=b(c),d;d=c.lastChild;)a.destroy(d)}:function(a){b(a).innerHTML=""};var K={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},y=/<\s*([\w\:]+)/,t={},q=0,s="__"+a._scopeName+
"ToDomId",E;for(E in K)if(K.hasOwnProperty(E))o=K[E],o.pre=E=="option"?'<select multiple="multiple">':"<"+o.join("><")+">",o.post="</"+o.reverse().join("></")+">";a._toDom=function(b,c){var c=c||a.doc,d=c[s];d||(c[s]=d=++q+"",t[d]=c.createElement("div"));b+="";var f=b.match(y),e=f?f[1].toLowerCase():"",d=t[d];if(f&&K[e]){f=K[e];d.innerHTML=f.pre+b+f.post;for(f=f.length;f;--f)d=d.firstChild}else d.innerHTML=b;if(d.childNodes.length==1)return d.removeChild(d.firstChild);for(e=c.createDocumentFragment();f=
d.firstChild;)e.appendChild(f);return e};a.hasClass=function(a,c){return(" "+b(a).className+" ").indexOf(" "+c+" ")>=0};var u=/\s+/,B=[""],C={},L=function(a){return typeof a=="string"||a instanceof String?a.indexOf(" ")<0?(B[0]=a,B):a.split(u):a||""};a.addClass=function(a,c){var a=b(a),c=L(c),d=a.className,f,d=d?" "+d+" ":" ";f=d.length;for(var e=0,g=c.length,h;e<g;++e)(h=c[e])&&d.indexOf(" "+h+" ")<0&&(d+=h+" ");f<d.length&&(a.className=d.substr(1,d.length-2))};a.removeClass=function(c,d){var c=
b(c),f;if(d!==void 0){d=L(d);f=" "+c.className+" ";for(var e=0,g=d.length;e<g;++e)f=f.replace(" "+d[e]+" "," ");f=a.trim(f)}else f="";c.className!=f&&(c.className=f)};a.replaceClass=function(c,d,f){c=b(c);C.className=c.className;a.removeClass(C,f);a.addClass(C,d);if(c.className!==C.className)c.className=C.className};a.toggleClass=function(b,c,d){d===void 0&&(d=!a.hasClass(b,c));a[d?"addClass":"removeClass"](b,c)}})();return a});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(a){(function(){var d=Array.prototype,b=d.slice,m=d.concat,l=function(c,d,e){c.sort||(c=b.call(c,0));e=e||this._NodeListCtor||a._NodeListCtor;c.constructor=e;a._mixin(c,e.prototype);c._NodeListCtor=e;return d?c._stash(d):c},i=function(c,d,e){d=[0].concat(b.call(d,0));e=e||a.global;return function(a){d[0]=a;return c.apply(e,d)}},k=function(a,b){return function(){this.forEach(i(a,
arguments,b));return this}},j=function(a,b){return function(){return this.map(i(a,arguments,b))}},c=function(b,c,d){return function(){var e=arguments,g=i(b,e,d);if(c.call(d||a.global,e))return this.map(g);this.forEach(g);return this}},e=function(a){return a.length==1&&typeof a[0]=="string"},h=function(a){var b=a.parentNode;b&&b.removeChild(a)};a.NodeList=function(){return l(Array.apply(null,arguments))};var g=a._NodeListCtor=a.NodeList,o=g.prototype;g._wrap=o._wrap=l;g._adaptAsMap=j;g._adaptAsForEach=
k;g._adaptAsFilter=function(a,b){return function(){return this.filter(i(a,arguments,b))}};g._adaptWithCondition=c;a.forEach(["slice","splice"],function(a){var b=d[a];o[a]=function(){return this._wrap(b.apply(this,arguments),a=="slice"?this:null)}});a.forEach(["indexOf","lastIndexOf","every","some"],function(c){var d=a[c];o[c]=function(){return d.apply(a,[this].concat(b.call(arguments,0)))}});a.forEach(["attr","style"],function(b){o[b]=c(a[b],e)});a.forEach("connect,addClass,removeClass,replaceClass,toggleClass,empty,removeAttr".split(","),
function(b){o[b]=k(a[b])});a.extend(a.NodeList,{_normalize:function(b,c){var d=b.parse===!0?!0:!1;if(typeof b.template=="string")var e=b.templateFunc||a.string&&a.string.substitute,b=e?e(b.template,b):b;e=typeof b;e=="string"||e=="number"?(b=a._toDom(b,c&&c.ownerDocument),b=b.nodeType==11?a._toArray(b.childNodes):[b]):a.isArrayLike(b)?a.isArray(b)||(b=a._toArray(b)):b=[b];if(d)b._runParse=!0;return b},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(b,c,d,e){if(!(c.nodeType!=1&&d=="only"))for(var g,
h=b.length,j=h-1;j>=0;j--){var i=e?this._cloneNode(b[j]):b[j];if(b._runParse&&a.parser&&a.parser.parse){g||(g=c.ownerDocument.createElement("div"));g.appendChild(i);a.parser.parse(g);for(i=g.firstChild;g.firstChild;)g.removeChild(g.firstChild)}j==h-1?a.place(i,c,d):c.parentNode.insertBefore(i,c);c=i}},_stash:function(a){this._parent=a;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(c){var d=a.isArray(this)?this:b.call(this,0),e=a.map(arguments,
function(c){return c&&!a.isArray(c)&&(typeof NodeList!="undefined"&&c.constructor===NodeList||c.constructor===this._NodeListCtor)?b.call(c,0):c});return this._wrap(m.apply(d,e),this)},map:function(b,c){return this._wrap(a.map(this,b,c),this)},forEach:function(b,c){a.forEach(this,b,c);return this},coords:j(a.coords),position:j(a.position),place:function(b,c){var d=a.query(b)[0];return this.forEach(function(b){a.place(b,d,c)})},orphan:function(b){return(b?a._filterQueryResult(this,b):this).forEach(h)},
adopt:function(b,c){return a.query(b).place(this[0],c)._stash(this)},query:function(b){if(!b)return this;var c=this.map(function(c){return a.query(b,c).filter(function(a){return a!==void 0})});return this._wrap(m.apply([],c),this)},filter:function(b){var c=arguments,d=this,e=0;if(typeof b=="string"){d=a._filterQueryResult(this,c[0]);if(c.length==1)return d._stash(this);e=1}return this._wrap(a.filter(d,c[e],c[e+1]),this)},addContent:function(a,b){for(var a=this._normalize(a,this[0]),c=0,d;d=this[c];c++)this._place(a,
d,b,c>0);return this},instantiate:function(b,c){var d=a.isFunction(b)?b:a.getObject(b),c=c||{};return this.forEach(function(a){new d(c,a)})},at:function(){var b=new this._NodeListCtor;a.forEach(arguments,function(a){a<0&&(a=this.length+a);this[a]&&b.push(this[a])},this);return b._stash(this)}});g.events="blur,focus,change,click,error,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,submit".split(",");a.forEach(g.events,function(a){var b="on"+a;o[b]=
function(a,c){return this.connect(b,a,c)}})})();return a.NodeList});
(function(){var a=function(a){var d=a.trim,l=a.forEach,i=a._NodeListCtor=a.NodeList,k=(a.isWebKit||a.isMozilla)&&a.doc.compatMode=="BackCompat",j=a.doc.firstChild.children?"children":"childNodes",c=!1,e=function(){return!0},h=function(a){a+=">~+".indexOf(a.slice(-1))>=0?" * ":" ";for(var b=function(b,c){return d(a.slice(b,c))},f=[],e=-1,g=-1,h=-1,j=-1,i=-1,k=-1,l=-1,w="",o="",x,p=0,A=a.length,n=null,r=null,t=function(){if(k>=0)n.id=b(k,p).replace(/\\/g,""),k=-1;if(l>=0){var a=l==p?null:b(l,p);n[">~+".indexOf(a)<
0?"tag":"oper"]=a;l=-1}i>=0&&(n.classes.push(b(i+1,p).replace(/\\/g,"")),i=-1)};w=o,o=a.charAt(p),p<A;p++)if(w!="\\")if(n||(x=p,n={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return c?this.otag:this.tag}},l=p),e>=0)if(o=="]"){r.attr?r.matchFor=b(h||e+1,p):r.attr=b(e+1,p);if((e=r.matchFor)&&(e.charAt(0)=='"'||e.charAt(0)=="'"))r.matchFor=e.slice(1,-1);n.attrs.push(r);r=null;e=h=-1}else{if(o=="=")h="|~^$*".indexOf(w)>=0?w:"",r.type=h+o,r.attr=b(e+1,p-h.length),
h=p+1}else if(g>=0){if(o==")"){if(j>=0)r.value=b(g+1,p);j=g=-1}}else if(o=="#")t(),k=p+1;else if(o==".")t(),i=p;else if(o==":")t(),j=p;else if(o=="[")t(),e=p,r={};else if(o=="(")j>=0&&(r={name:b(j+1,p),value:null},n.pseudos.push(r)),g=p;else if(o==" "&&w!=o){t();j>=0&&n.pseudos.push({name:b(j+1,p)});n.loops=n.pseudos.length||n.attrs.length||n.classes.length;n.oquery=n.query=b(x,p);n.otag=n.tag=n.oper?null:n.tag||"*";if(n.tag)n.tag=n.tag.toUpperCase();if(f.length&&f[f.length-1].oper)n.infixOper=f.pop(),
n.query=n.infixOper.query+" "+n.query;f.push(n);n=null}return f},g=function(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},o=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},f=function(a,b){return!a?"":b=="class"?a.className||"":b=="for"?a.htmlFor||"":b=="style"?a.style.cssText||"":(c?a.getAttribute(b):a.getAttribute(b,2))||""},w={"*=":function(a,b){return function(c){return f(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return f(c,
a).indexOf(b)==0}},"$=":function(a,b){return function(c){c=" "+f(c,a);return c.lastIndexOf(b)==c.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){return(" "+f(b,a)+" ").indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){d=" "+f(d,a);return d==b||d.indexOf(c)==0}},"=":function(a,b){return function(c){return f(c,a)==b}}},x=typeof a.doc.firstChild.nextElementSibling=="undefined",A=!x?"nextElementSibling":"nextSibling",p=!x?"previousElementSibling":"previousSibling",
r=x?n:e,D=function(a){for(;a=a[p];)if(r(a))return!1;return!0},I=function(a){for(;a=a[A];)if(r(a))return!1;return!0},G=function(a){var b=a.parentNode,c=0,d=b[j],f=a._i||-1,e=b._l||-1;if(!d)return-1;d=d.length;if(e==d&&f>=0&&e>=0)return f;b._l=d;f=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[A])if(r(b))b._i=++c,a===b&&(f=c);return f},K=function(a){return!(G(a)%2)},y=function(a){return G(a)%2},t={checked:function(){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return D},
"last-child":function(){return I},"only-child":function(){return function(a){return!D(a)?!1:!I(a)?!1:!0}},empty:function(){return function(a){for(var b=a.childNodes,a=a.childNodes.length-1;a>=0;a--){var c=b[a].nodeType;if(c===1||c==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=h(b)[0],d={el:1};if(c.tag!="*")d.tag=1;if(!c.classes.length)d.classes=1;var f=s(c,d);return function(a){return!f(a)}},
"nth-child":function(a,b){var c=parseInt;if(b=="odd")return y;else if(b=="even")return K;if(b.indexOf("n")!=-1){var d=b.split("n",2),f=d[0]?d[0]=="-"?-1:c(d[0]):1,e=d[1]?c(d[1]):0,g=0,h=-1;f>0?e<0?e=e%f&&f+e%f:e>0&&(e>=f&&(g=e-e%f),e%=f):f<0&&(f*=-1,e>0&&(h=e,e%=f));if(f>0)return function(a){a=G(a);return a>=g&&(h<0||a<=h)&&a%f==e};else b=e}var j=c(b);return function(a){return G(a)==j}}},q=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(d){return c?
d.getAttribute(a):d[a]||d[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},s=function(a,b){if(!a)return e;var b=b||{},c=null;"el"in b||(c=g(c,n));"tag"in b||a.tag!="*"&&(c=g(c,function(b){return b&&b.tagName==a.getTag()}));"classes"in b||l(a.classes,function(a,b){var d=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");c=g(c,function(a){return d.test(a.className)});c.count=b});"pseudos"in b||l(a.pseudos,function(a){var b=a.name;t[b]&&(c=g(c,t[b](b,a.value)))});"attrs"in b||l(a.attrs,
function(a){var b,d=a.attr;a.type&&w[a.type]?b=w[a.type](d,a.matchFor):d.length&&(b=q(d));b&&(c=g(c,b))});"id"in b||a.id&&(c=g(c,function(b){return!!b&&b.id==a.id}));c||"default"in b||(c=e);return c},E=function(a){return function(b,c,d){for(;b=b[A];)if(!x||n(b)){(!d||P(b,d))&&a(b)&&c.push(b);break}return c}},u=function(a){return function(b,c,d){for(b=b[A];b;){if(r(b)){if(d&&!P(b,d))break;a(b)&&c.push(b)}b=b[A]}return c}},B=function(a){a=a||e;return function(b,c,d){for(var f=0,e=b[j];b=e[f++];)r(b)&&
(!d||P(b,d))&&a(b,f)&&c.push(b);return c}},C={},L=function(c){var d=C[c.query];if(d)return d;var f=c.infixOper,f=f?f.oper:"",g=s(c,{el:1}),h="*"==c.tag,j=a.doc.getElementsByClassName;if(f){j={el:1};if(h)j.tag=1;g=s(c,j);"+"==f?d=E(g):"~"==f?d=u(g):">"==f&&(d=B(g))}else if(c.id)g=!c.loops&&h?e:s(c,{el:1,id:1}),d=function(d,f){var e=a.byId(c.id,d.ownerDocument||d);if(e&&g(e))if(9==d.nodeType)return o(e,f);else{for(var h=e.parentNode;h;){if(h==d)break;h=h.parentNode}if(h)return o(e,f)}};else if(j&&/\{\s*\[native code\]\s*\}/.test(String(j))&&
c.classes.length&&!k)var g=s(c,{el:1,classes:1,id:1}),i=c.classes.join(" "),d=function(a,b,c){for(var b=o(0,b),d,f=0,e=a.getElementsByClassName(i);d=e[f++];)g(d,a)&&P(d,c)&&b.push(d);return b};else!h&&!c.loops?d=function(a,b,d){for(var b=o(0,b),f=0,e=a.getElementsByTagName(c.getTag());a=e[f++];)P(a,d)&&b.push(a);return b}:(g=s(c,{el:1,tag:1,id:1}),d=function(a,b,d){for(var b=o(0,b),f,e=0,h=a.getElementsByTagName(c.getTag());f=h[e++];)g(f,a)&&P(f,d)&&b.push(f);return b});return C[c.query]=d},M={},
N={},H=function(a){var b=h(d(a));if(b.length==1){var c=L(b[0]);return function(a){if(a=c(a,new i))a.nozip=!0;return a}}return function(a){for(var a=o(a),c,d,f=b.length,e,g,h=0;h<f;h++){g=[];c=b[h];d=a.length-1;if(d>0)e={},g.nozip=!0;d=L(c);for(var j=0;c=a[j];j++)d(c,g,e);if(!g.length)break;a=g}return g}},z=navigator.userAgent,z=a.isWebKit&&z.indexOf("WebKit/")>0&&parseFloat(z.split("WebKit/")[1])>528,O=a.isIE?"commentStrip":"nozip",v=!!a.doc.querySelectorAll&&(!a.isSafari||a.isSafari>3.1||z),F=/n\+\d|([^ ])?([>~+])([^ =])?/g,
R=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},Q=function(c,d){c=c.replace(F,R);if(v){var f=N[c];if(f&&!d)return f}if(f=M[c])return f;var f=c.charAt(0),e=-1==c.indexOf(" ");c.indexOf("#")>=0&&e&&(d=!0);if(v&&!d&&">~+".indexOf(f)==-1&&(!a.isIE||c.indexOf(":")==-1)&&!(k&&c.indexOf(".")>=0)&&c.indexOf(":contains")==-1&&c.indexOf(":checked")==-1&&c.indexOf("|=")==-1){var g=">~+".indexOf(c.charAt(c.length-1))>=0?c+" *":c;return N[c]=function(a){try{if(!(9==a.nodeType||e))throw"";var b=a.querySelectorAll(g);
b[O]=!0;return b}catch(d){return Q(c,!0)(a)}}}else{var h=c.split(/\s*,\s*/);return M[c]=h.length<2?H(c):function(a){for(var b=0,c=[],d;d=h[b++];)c=c.concat(H(d)(a));return c}}},J=0,S=a.isIE?function(a){return c?a.getAttribute("_uid")||a.setAttribute("_uid",++J)||J:a.uniqueID}:function(a){return a._uid||(a._uid=++J)},P=function(a,b){if(!b)return 1;var c=S(a);return!b[c]?b[c]=1:0},T=function(d){if(d&&d.nozip)return i._wrap?i._wrap(d):d;var f=new i;if(!d||!d.length)return f;d[0]&&f.push(d[0]);if(d.length<
2)return f;J++;if(a.isIE&&c){var e=J+"";d[0].setAttribute("_zipIdx",e);for(var g=1,h;h=d[g];g++)d[g].getAttribute("_zipIdx")!=e&&f.push(h),h.setAttribute("_zipIdx",e)}else if(a.isIE&&d.commentStrip)try{for(g=1;h=d[g];g++)n(h)&&f.push(h)}catch(j){}else{d[0]&&(d[0]._zipIdx=J);for(g=1;h=d[g];g++)d[g]._zipIdx!=J&&f.push(h),h._zipIdx=J}return f};a.query=function(d,f){i=a._NodeListCtor;if(!d)return new i;if(d.constructor==i)return d;if(typeof d!="string")return new i(d);if(typeof f=="string"&&(f=a.byId(f),
!f))return new i;var f=f||a.doc,e=f.ownerDocument||f.documentElement;c=f.contentType&&f.contentType=="application/xml"||a.isOpera&&(f.doctype||e.toString()=="[object XMLDocument]")||!!e&&(a.isIE?e.xml:f.xmlVersion||e.xmlVersion);return(e=Q(d)(f))&&e.nozip&&!i._wrap?e:T(e)};a.query.pseudos=t;a._filterQueryResult=function(c,d,f){for(var e=new a._NodeListCtor,g=h(d),g=g.length==1&&!/[^\w#\.]/.test(d)?s(g[0]):function(a){return dojo.query(d,f).indexOf(a)!=-1},j=0,i;i=c[j];j++)g(i)&&e.push(i);return e}},
d=function(){acme={trim:function(a){for(var a=a.replace(/^\s+/,""),b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,d){if(a&&a.length)for(var c=0,e=a.length;c<e;++c)b.call(d||window,a[c],c,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array};var a=navigator,d=a.userAgent,a=a.appVersion,l=parseFloat(a);acme.isOpera=d.indexOf("Opera")>=0?l:void 0;acme.isKhtml=a.indexOf("Konqueror")>=
0?l:void 0;acme.isWebKit=parseFloat(d.split("WebKit/")[1])||void 0;acme.isChrome=parseFloat(d.split("Chrome/")[1])||void 0;if((d=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome)if(acme.isSafari=parseFloat(a.split("Version/")[1]),!acme.isSafari||parseFloat(a.substr(d+7))<=419.3)acme.isSafari=2;if(document.all&&!acme.isOpera)acme.isIE=parseFloat(a.split("MSIE ")[1])||void 0;Array._wrap=function(a){return a};return acme};typeof define=="function"&&define("dojo/_base/query",["dojo/lib/kernel",
"dojo/_base/NodeList","dojo/_base/lang","dojo/_base/window"],function(b){a(this.queryPortability||this.acme||b)});typeof define!="function"&&(this.dojo?(dojo.provide("dojo._base.query"),dojo.require("dojo._base.NodeList"),dojo.require("dojo._base.lang"),a(this.queryPortability||this.acme||dojo)):a(this.queryPortability||this.acme||d()))})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(a){(function(){var d=a.config;a.fieldToObject=function(b){var c=null;if(b=a.byId(b)){var d=b.name,e=(b.type||"").toLowerCase();if(d&&e&&!b.disabled)if(e=="radio"||e=="checkbox"){if(b.checked)c=b.value}else b.multiple?(c=[],a.query("option",b).forEach(function(a){a.selected&&c.push(a.value)})):c=b.value}return c};a.formToObject=function(b){var c={};a.forEach(a.byId(b).elements,
function(b){var d=b.name,f=(b.type||"").toLowerCase();if(d&&f&&"file|submit|image|reset|button|".indexOf(f)==-1&&!b.disabled){b=a.fieldToObject(b);if(b!==null){var e=c[d];typeof e=="string"?c[d]=[e,b]:a.isArray(e)?e.push(b):c[d]=b}if(f=="image")c[d+".x"]=c[d+".y"]=c[d].x=c[d].y=0}});return c};a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={},g;for(g in b){var h=b[g];if(h!=e[g]){var j=c(g)+"=";if(a.isArray(h))for(var i=0;i<h.length;i++)d.push(j+c(h[i]));else d.push(j+c(h))}}return d.join("&")};
a.formToQuery=function(b){return a.objectToQuery(a.formToObject(b))};a.formToJson=function(b,c){return a.toJson(a.formToObject(b),c)};a.queryToObject=function(b){var c={},b=b.split("&"),d=decodeURIComponent;a.forEach(b,function(b){if(b.length){var f=b.split("="),b=d(f.shift()),f=d(f.join("="));typeof c[b]=="string"&&(c[b]=[c[b]]);a.isArray(c[b])?c[b].push(f):c[b]=f}});return c};a._blockAsync=!1;var b=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||
null)},"json-comment-filtered":function(b){a.config.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");var b=b.responseText,c=b.indexOf("/*"),d=b.lastIndexOf("*/");if(c==-1||d==-1)throw Error("JSON was not comment filtered");return a.fromJson(b.substring(c+
2,d))},javascript:function(b){return a.eval(b.responseText)},xml:function(b){var c=b.responseXML;if(a.isIE&&(!c||!c.documentElement)){var d=function(a){return"MSXML"+a+".DOMDocument"},d=["Microsoft.XMLDOM",d(6),d(4),d(3),d(2)];a.some(d,function(a){try{var d=new ActiveXObject(a);d.async=!1;d.loadXML(b.responseText);c=d}catch(e){return!1}return!0})}return c},"json-comment-optional":function(a){return a.responseText&&/^[^{\[]*\/\*/.test(a.responseText)?b["json-comment-filtered"](a):b.json(a)}};a._ioSetArgs=
function(b,c,e,g){var h={args:b,url:b.url},j=null;if(b.form){var j=a.byId(b.form),i=j.getAttributeNode("action");h.url=h.url||(i?i.value:null);j=a.formToObject(j)}i=[{}];j&&i.push(j);b.content&&i.push(b.content);b.preventCache&&i.push({"dojo.preventCache":(new Date).valueOf()});h.query=a.objectToQuery(a.mixin.apply(null,i));h.handleAs=b.handleAs||"text";var k=new a.Deferred(c);k.addCallbacks(e,function(a){return g(a,k)});var l=b.load;l&&a.isFunction(l)&&k.addCallback(function(a){return l.call(b,a,
h)});var o=b.error;o&&a.isFunction(o)&&k.addErrback(function(a){return o.call(b,a,h)});var m=b.handle;m&&a.isFunction(m)&&k.addBoth(function(a){return m.call(b,a,h)});d.ioPublish&&a.publish&&h.args.ioPublish!==!1&&(k.addCallbacks(function(b){a.publish("/dojo/io/load",[k,b]);return b},function(b){a.publish("/dojo/io/error",[k,b]);return b}),k.addBoth(function(b){a.publish("/dojo/io/done",[k,b]);return b}));k.ioArgs=h;return k};var m=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c==
"function"||c=="object"||c=="unknown")&&b.abort();a=a.ioArgs.error;if(!a)a=Error("xhr cancelled"),a.dojoType="cancel";return a},l=function(a){a=b[a.ioArgs.handleAs](a.ioArgs.xhr);return a===void 0?null:a},i=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},k=null,j=[],c=0,e=function(b){c<=0&&(c=0,d.ioPublish&&a.publish&&(!b||b&&b.ioArgs.args.ioPublish!==!1)&&a.publish("/dojo/io/stop"))},h=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var d=0,g;d<j.length&&(g=j[d]);d++){var h=
g.dfd,i=function(){if(!h||h.canceled||!g.validCheck(h))j.splice(d--,1),c-=1;else if(g.ioCheck(h))j.splice(d--,1),g.resHandle(h),c-=1;else if(h.startTime&&h.startTime+(h.ioArgs.args.timeout||0)<b){j.splice(d--,1);var a=Error("timeout exceeded");a.dojoType="timeout";h.errback(a);h.cancel();c-=1}};if(a.config.debugAtAllCosts)i.call(this);else try{i.call(this)}catch(l){h.errback(l)}}e(h);j.length||(clearInterval(k),k=null)};a._ioCancelAll=function(){try{a.forEach(j,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}};
a.isIE&&a.addOnWindowUnload(a._ioCancelAll);a._ioNotifyStart=function(b){d.ioPublish&&a.publish&&b.ioArgs.args.ioPublish!==!1&&(c||a.publish("/dojo/io/start"),c+=1,a.publish("/dojo/io/send",[b]))};a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;if(e.timeout)a.startTime=(new Date).getTime();j.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d});k||(k=setInterval(h,50));e.sync&&h()};var g=function(a){return a.ioArgs.xhr.readyState},o=function(a){return 4==a.ioArgs.xhr.readyState},n=function(b){var c=b.ioArgs.xhr;
if(a._isDocumentOk(c))b.callback(b);else{var d=Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status;d.responseText=c.responseText;b.errback(d)}};a._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null};a.xhr=function(b,c,d){var e=a._ioSetArgs(c,m,l,i),h=e.ioArgs,j=h.xhr=a._xhrObj(h.args);if(!j)return e.cancel(),e;"postData"in c?h.query=c.postData:"putData"in c?h.query=c.putData:"rawBody"in c?h.query=c.rawBody:(arguments.length>
2&&!d||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(h);j.open(b,h.url,c.sync!==!0,c.user||void 0,c.password||void 0);if(c.headers)for(var k in c.headers)k.toLowerCase()==="content-type"&&!c.contentType?c.contentType=c.headers[k]:c.headers[k]&&j.setRequestHeader(k,c.headers[k]);j.setRequestHeader("Content-Type",c.contentType||"application/x-www-form-urlencoded");(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest");a._ioNotifyStart(e);
if(a.config.debugAtAllCosts)j.send(h.query);else try{j.send(h.query)}catch(I){h.error=I,e.cancel()}a._ioWatch(e,g,o,n);return e};a.xhrGet=function(b){return a.xhr("GET",b)};a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)};a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)};a.xhrDelete=function(b){return a.xhr("DELETE",b)}})();return a.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(a){(function(){var d=a._mixin;a._Line=function(a,b){this.start=a;this.end=b};a._Line.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};a.Animation=function(b){d(this,b);if(a.isArray(this.curve))this.curve=new a._Line(this.curve[0],this.curve[1])};a._Animation=a.Animation;a.extend(a.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(b,c){var d=c||[];if(this[b])if(a.config.debugAtAllCosts)this[b].apply(this,d);else try{this[b].apply(this,d)}catch(h){console.error("exception in animation handler for:",b),console.error(h)}return this},play:function(b,c){this._delayTimer&&this._clearTimer();if(c)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var d=
b||this.delay,h=a.hitch(this,"_play",c);if(d>0)return this._delayTimer=setTimeout(h,d),this;h();return this},_play:function(){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;var a=this.curve.getValue(this._getStep());if(!this._percent){if(!this._startRepeatCount)this._startRepeatCount=this.repeat;this._fire("onBegin",[a])}this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&
this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();if(a)this._percent=1;this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},status:function(){return this._active?
this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=((new Date).valueOf()-this._startTime)/this.duration;a>=1&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);if(this._percent<1)this._startTimer();else{this._active=!1;if(this.repeat>0)this.repeat--,this.play(null,!0);else if(this.repeat==-1)this.play(null,!0);else if(this._startRepeatCount)this.repeat=this._startRepeatCount,this._startRepeatCount=0;this._percent=
0;this._fire("onEnd",[this.node]);!this.repeat&&this._stopTimer()}}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var b=0,m=null,l={run:function(){}};a.extend(a.Animation,{_startTimer:function(){if(!this._timer)this._timer=a.connect(l,"run",this,"_cycle"),b++;m||(m=setInterval(a.hitch(l,"run"),this.rate))},_stopTimer:function(){if(this._timer)a.disconnect(this._timer),this._timer=null,b--;b<=0&&(clearInterval(m),m=null,b=0)}});var i=a.isIE?function(b){var c=
b.style;if(!c.width.length&&a.style(b,"width")=="auto")c.width="auto"}:function(){};a._fade=function(b){b.node=a.byId(b.node);var c=d({properties:{}},b),b=c.properties.opacity={};b.start=!("start"in c)?function(){return+a.style(c.node,"opacity")||0}:c.start;b.end=c.end;b=a.animateProperty(c);a.connect(b,"beforeBegin",a.partial(i,c.node));return b};a.fadeIn=function(b){return a._fade(d({end:1},b))};a.fadeOut=function(b){return a._fade(d({end:0},b))};a._defaultEasing=function(a){return 0.5+Math.sin((a+
1.5)*Math.PI)/2};var k=function(b){this._properties=b;for(var c in b){var d=b[c];if(d.start instanceof a.Color)d.tempColor=new a.Color}};k.prototype.getValue=function(b){var c={},d;for(d in this._properties){var h=this._properties[d],g=h.start;g instanceof a.Color?c[d]=a.blendColors(g,h.end,b,h.tempColor).toCss():a.isArray(g)||(c[d]=(h.end-g)*b+g+(d!="opacity"?h.units||"px":0))}return c};a.animateProperty=function(b){var c=b.node=a.byId(b.node);if(!b.easing)b.easing=a._defaultEasing;b=new a.Animation(b);
a.connect(b,"beforeBegin",b,function(){var b={},h;for(h in this.properties){if(h=="width"||h=="height")this.node.display="block";var g=this.properties[h];a.isFunction(g)&&(g=g(c));g=b[h]=d({},a.isObject(g)?g:{end:g});if(a.isFunction(g.start))g.start=g.start(c);if(a.isFunction(g.end))g.end=g.end(c);var i=h.toLowerCase().indexOf("color")>=0,j=function(b,c){var d={height:b.offsetHeight,width:b.offsetWidth}[c];if(d!==void 0)return d;d=a.style(b,c);return c=="opacity"?+d:i?d:parseFloat(d)};if("end"in g){if(!("start"in
g))g.start=j(c,h)}else g.end=j(c,h);i?(g.start=new a.Color(g.start),g.end=new a.Color(g.end)):g.start=h=="opacity"?+g.start:parseFloat(g.start)}this.curve=new k(b)});a.connect(b,"onAnimate",a.hitch(a,"style",b.node));return b};a.anim=function(b,c,d,h,g,i){return a.animateProperty({node:b,duration:d||a.Animation.prototype.duration,properties:c,easing:h,onEnd:g}).play(i||0)}})();return a.animateProperty});
define("dojo","dojo/lib/kernel,dojo/_base/lang,dojo/_base/array,dojo/_base/declare,dojo/_base/connect,dojo/_base/Deferred,dojo/_base/json,dojo/_base/Color,dojo/_base/window,dojo/_base/event,dojo/_base/html,dojo/_base/NodeList,dojo/_base/query,dojo/_base/xhr,dojo/_base/fx".split(","),function(a){return a});
define("dojo/hash",["dojo"],function(a){(function(){function d(a,b){var c=a.indexOf(b);return c>=0?a.substring(c+1):""}function b(){return d(location.href,"#")}function m(){a.publish("/dojo/hashchange",[b()])}function l(){b()!==j&&(j=b(),m())}function i(b){if(c)if(c.isTransitioning())setTimeout(a.hitch(null,i,b),h);else{var d=c.iframe.location.href,j=d.indexOf("?");c.iframe.location.replace(d.substring(0,j)+"?"+b)}else location.replace("#"+b),!e&&l()}function k(){function c(){j=b();f=p?j:d(r.href,
"?");k=!1;l=null}var e=document.createElement("iframe"),i=a.config.dojoBlankHtmlUrl||a.moduleUrl("dojo","resources/blank.html");a.config.useXDomain&&!a.config.dojoBlankHtmlUrl&&console.warn("dojo.hash: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html");e.id="dojo-hash-iframe";e.src=i+"?"+b();e.style.display="none";document.body.appendChild(e);this.iframe=a.global["dojo-hash-iframe"];
var f,k,l,A,p,r=this.iframe.location;this.isTransitioning=function(){return k};this.pollLocation=function(){if(!p)try{var D=d(r.href,"?");if(document.title!=A)A=this.iframe.document.title=document.title}catch(I){p=!0,console.error("dojo.hash: Error adding history entry. Server unreachable.")}var G=b();if(k&&j===G)if(p||D===l)c(),m();else{setTimeout(a.hitch(this,this.pollLocation),0);return}else if(!(j===G&&(p||f===D)))if(j!==G){j=G;k=!0;l=G;e.src=i+"?"+l;p=!1;setTimeout(a.hitch(this,this.pollLocation),
0);return}else if(!p)location.href="#"+r.search.substring(1),c(),m();setTimeout(a.hitch(this,this.pollLocation),h)};c();setTimeout(a.hitch(this,this.pollLocation),h)}a.hash=function(a,c){if(!arguments.length)return b();a.charAt(0)=="#"&&(a=a.substring(1));c?i(a):location.href="#"+a;return a};var j,c,e,h=a.config.hashPollFrequency||100;a.addOnLoad(function(){"onhashchange"in a.global&&(!a.isIE||a.isIE>=8&&document.compatMode!="BackCompat")?e=a.connect(a.global,"onhashchange",m):document.addEventListener?
(j=b(),setInterval(l,h)):document.attachEvent&&(c=new k)})})();return a.hash});
define("mixloginstatic/manageOpenids",["dojo","dojo/hash","domReady!"],function(a){function d(b){if(confirm("Are you sure you want to remove "+b+" from the list of your external accounts?")){for(var d=k.properties.openid.split("\n"),g="",i=0;i<d.length;i++)d[i]!==b&&(g+=d[i]+"\n");k.properties.openid=g;a.xhrPut({url:k.Location,putData:a.toJson(k),headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(){c(k.Location)},error:function(a){console.error(a.message)}})}}function b(a){i!==
a&&(c(a),i=a)}function m(a){a!==""&&a!==null&&window.open("../mixlogin/manageopenids/openid?openid="+encodeURIComponent(a),"openid_popup","width=790,height=580")}function l(a,b,c){var d=document.createElement("img");d.className="loginWindow";d.id=d.alt=d.title=a;d.src=b;b=document.createElement("a");b.className="loginWindow";b.onclick=c;b.setAttribute("aria-labelledby","addExternalAccount "+a);b.appendChild(d);return b}var i,k,j,c;j=function(b){k=b;b=a.create("table",null,"openidList","only");if(k.properties&&
k.properties.openid){var c=k.properties.openid?k.properties.openid.split("\n"):[];if(c.length>0){var g=a.create("thead",null,b,"only");a.addClass(g,"navTableHeading");var g=a.create("tr",null,g,"last"),i=a.create("td",{innerHTML:"<h2>External Id</h2>"},g,"last");a.addClass(i,"navColumn");i=a.create("td",{innerHTML:"<h2>Actions</h2>"},g,"last")}for(var j=0;j<c.length;j++){var f=c[j];if(f!==""){g=a.create("tr",null,b,"last");a.style(g,"verticalAlign","baseline");a.addClass(g,j%2===0?"lightTreeTableRow":
"darkTreeTableRow");i=a.create("td",null,g,"last");a.addClass(i,"navColumn");var i=a.create("span",null,i,"only"),l=document.createTextNode(f.length>70?f.substring(0,65)+"...":f);i.title=f;a.place(l,i);i=a.create("td",null,g,"last");a.addClass(i,"navColumn");i=a.create("a",{innerHTML:"Remove",title:"Remove "+f,id:"remlink"+j,style:"visibility: hidden"},i,"last");a.connect(i,"onclick",i,a.hitch(this,function(a){d(a)},f));a.connect(i,"onmouseover",i,a.hitch(this,function(a){a.style.cursor="pointer"},
i));a.connect(i,"onmouseout",i,a.hitch(this,function(a){a.style.cursor="default"},i));a.connect(g,"onmouseover",g,a.hitch(this,function(b){a.style(b,"visibility","visible")},i));a.connect(g,"onmouseout",g,a.hitch(this,function(b){a.style(b,"visibility","hidden")},i))}}}};c=function(b){a.xhrGet({url:b,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(a){j(a)},error:function(a){console.error(a.message)}})};window.handleOpenIDResponse=function(b){for(var d=k.properties.openid?
k.properties.openid.split("\n"):[],g=0;g<d.length;g++)if(d[g]===b)return;k.properties.openid?k.properties.openid+="\n"+b:k.properties.openid=b;a.xhrPut({url:k.Location,putData:a.toJson(k),headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(){c(k.Location)},error:function(a){console.error(a.message)}})};a.subscribe("/dojo/hashchange",this,function(){b(a.hash())});b(a.hash());a.xhrGet({url:"../mixlogin/manageopenids",handleAs:"json"}).then(function(a){a=a.map(function(a){return l(a.Name,
a.Image,m.bind(null,a.Url))});a.push(l("Mozilla Persona","../mixloginstatic/images/persona.png",alert.bind(null,"To link your account with a Persona, set your Orion email address above to match your Persona email address.")));var b=document.getElementById("newOpenId");a.forEach(function(a){b.appendChild(a);b.appendChild(document.createTextNode(" "))})})});