/*
 RequireJS text 0.24.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
 RequireJS i18n 0.24.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
*/
(function(){function b(a,d,e){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var f=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"],i=0,j;j=f[i++];)console[j]||function(){var n=j+"";console[n]="log"in console?function(){var m=Array.apply({},arguments);m.unshift(n+":");console.log(m.join(" "))}:function(){};console[n]._fake=true}()}if(typeof a==
"undefined")a={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};var h=a;if(typeof d=="undefined")d={_scopeName:"dijit"};if(typeof e=="undefined")e={_scopeName:"dojox"};if(!h._scopeArgs)h._scopeArgs=[a,d,e];h.global=this;h.config={isDebug:false,debugAtAllCosts:false};if(f=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var g in f)h.config[g]=f[g];a.locale=h.config.locale;g="$Rev: 24595 $".match(/\d+/);a.version=
{major:1,minor:6,patch:1,flag:"",revision:g?+g[0]:NaN,toString:function(){with(h.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",h.version.toString());var k,l,p={};for(i in{toString:1}){k=[];break}a._extraNames=k=k||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];l=k.length;a._mixin=function(n,m){var o,s,q;for(o in m){s=m[o];
if(!(o in n)||n[o]!==s&&(!(o in p)||p[o]!==s))n[o]=s}if(l&&m)for(q=0;q<l;++q){o=k[q];s=m[o];if(!(o in n)||n[o]!==s&&(!(o in p)||p[o]!==s))n[o]=s}return n};a.mixin=function(n){n||(n={});for(var m=1,o=arguments.length;m<o;m++)h._mixin(n,arguments[m]);return n};a._getProp=function(n,m,o){o=o||h.global;for(var s=0,q;o&&(q=n[s]);s++){if(s==0&&h._scopeMap[q])q=h._scopeMap[q];o=q in o?o[q]:m?(o[q]={}):undefined}return o};a.setObject=function(n,m,o){var s=n.split(".");n=s.pop();return(o=h._getProp(s,true,
o))&&n?(o[n]=m):undefined};a.getObject=function(n,m,o){return h._getProp(n.split("."),m,o)};a.exists=function(n,m){return h.getObject(n,false,m)!==undefined};a.eval=function(n){return h.global.eval?h.global.eval(n):eval(n)};h.deprecated=h.experimental=function(){}})();return{dojo:a,dijit:d,dojox:e}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var a=b();a.dojo._dijit=a.dijit;a.dojo._dojox=a.dojox;return a.dojo});else{var c=b();dojo=c.dojo;dijit=c.dijit;dojox=c.dojox}})();
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap"],function(b,c){var a=["_moduleHasPrefix","_loadPath","_loadUri","_loadUriAndCheck","loaded","_callLoaded","_getModuleSymbols","_loadModule","require","provide","platformRequire","requireIf","requireAfterIf","registerModulePath"],d,e;for(d=0;d<a.length;){e=a[d++];c[e]=function(n){return function(){console.warn("dojo."+n+" not available when using an AMD loader.")}}(e)}var f=function(n){var m=[],o;for(o=0;o<n.length;)m.push(n[o++]);
return m},i=function(n,m){return m?typeof m=="string"?function(){n[m]()}:function(){m.call(n)}:n};c.ready=c.addOnLoad=function(n,m){b.ready(m?i(n,m):n)};c.addOnLoad(function(){c.postLoad=c.config.afterOnLoad=true});if(a=c.config.addOnLoad)c.addOnLoad[a instanceof Array?"apply":"call"](c,a);var j=c._loaders=[],h=function(){var n=j.slice(0);for(Array.prototype.splice.apply(j,[0,j.length]);n.length;)n.shift().call()};j.unshift=function(){Array.prototype.unshift.apply(j,f(arguments));b.ready(h)};j.splice=
function(){Array.prototype.splice.apply(j,f(arguments));b.ready(h)};var g=c._unloaders=[];c.unloaded=function(){for(;g.length;)g.pop().call()};c._onto=function(n,m,o){n.push(o?i(m,o):m)};c._modulesLoaded=function(){};c.loadInit=function(n){n()};var k=function(n){return n.replace(/\./g,"/")};c.getL10nName=function(n,m,o){o=o?o.toLowerCase():c.locale;n="i18n!"+k(n);return/root/i.test(o)?n+"/nls/"+m:n+"/nls/"+o+"/"+m};c.requireLocalization=function(n,m,o){if(b.vendor!="altoviso.com")o=!o||o.toLowerCase()===
c.locale?"root":o;return b(c.getL10nName(n,m,o))};c.i18n={getLocalization:c.requireLocalization,normalizeLocale:function(n){n=n?n.toLowerCase():c.locale;if(n=="root")n="ROOT";return n}};var l=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,p=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;c._Url=function(){for(var n=arguments,m=[n[0]],o=1;o<n.length;o++)if(n[o]){var s=new c._Url(n[o]+"");m=new c._Url(m[0]+"");if(s.path==""&&!s.scheme&&!s.authority&&!s.query){if(s.fragment!=
null)m.fragment=s.fragment;s=m}else if(!s.scheme){s.scheme=m.scheme;if(!s.authority){s.authority=m.authority;if(s.path.charAt(0)!="/"){m=(m.path.substring(0,m.path.lastIndexOf("/")+1)+s.path).split("/");for(var q=0;q<m.length;q++)if(m[q]==".")if(q==m.length-1)m[q]="";else{m.splice(q,1);q--}else if(q>0&&!(q==1&&m[0]=="")&&m[q]==".."&&m[q-1]!="..")if(q==m.length-1){m.splice(q,1);m[q-1]=""}else{m.splice(q-1,2);q-=2}s.path=m.join("/")}}}m=[];s.scheme&&m.push(s.scheme,":");s.authority&&m.push("//",s.authority);
m.push(s.path);s.query&&m.push("?",s.query);s.fragment&&m.push("#",s.fragment)}this.uri=m.join("");o=this.uri.match(l);this.scheme=o[2]||(o[1]?"":null);this.authority=o[4]||(o[3]?"":null);this.path=o[5];this.query=o[7]||(o[6]?"":null);this.fragment=o[9]||(o[8]?"":null);if(this.authority!=null){o=this.authority.match(p);this.user=o[3]||null;this.password=o[4]||null;this.host=o[6]||o[7];this.port=o[9]||null}};c._Url.prototype.toString=function(){return this.uri};c.moduleUrl=function(n,m){if(!n)return null;
n=k(n)+(m?"/"+m:"");m="";var o=n.match(/(.+)(\.[^\/]*)$/);if(o){n=o[1];m=o[2]}return new c._Url(b.nameToUrl(n,m))};return c});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(b){if(typeof window!="undefined"){b.isBrowser=true;b._name="browser";(function(){var a=b;if(document&&document.getElementsByTagName)for(var d=document.getElementsByTagName("script"),e=/dojo(\.xd)?\.js(\W|$)/i,f=0;f<d.length;f++){var i=d[f].getAttribute("src");if(i){var j=i.match(e);if(j){if(!a.config.baseUrl)a.config.baseUrl=i.substring(0,j.index);if(d=d[f].getAttribute("djConfig")||d[f].getAttribute("data-dojo-config")){d=
eval("({ "+d+" })");for(var h in d)b.config[h]=d[h]}break}}}a.baseUrl=a.config.baseUrl;h=navigator;d=h.userAgent;e=h.appVersion;f=parseFloat(e);if(d.indexOf("Opera")>=0)a.isOpera=f;if(d.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=e.indexOf("Konqueror")>=0?f:0;a.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined;a.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;a.isMac=e.indexOf("Macintosh")>=0;if((i=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0))&&!b.isChrome){a.isSafari=parseFloat(e.split("Version/")[1]);
if(!a.isSafari||parseFloat(e.substr(i+7))<=419.3)a.isSafari=2}if(d.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=f;if(a.isMoz)a.isFF=parseFloat(d.split("Firefox/")[1]||d.split("Minefield/")[1])||undefined;if(document.all&&!a.isOpera){a.isIE=parseFloat(e.split("MSIE ")[1])||undefined;if((d=document.documentMode)&&d!=5&&Math.floor(a.isIE)!=d)a.isIE=d}if(b.isIE&&window.location.protocol==="file:")b.config.ieForceActiveXXhr=true;a.isQuirks=document.compatMode=="BackCompat";a.locale=
b.config.locale||(a.isIE?h.userLanguage:h.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var o,s;if(!b.isIE||!b.config.ieForceActiveXXhr)try{o=new XMLHttpRequest}catch(q){}if(!o)for(var t=0;t<3;++t){var C=a._XMLHTTP_PROGIDS[t];try{o=new ActiveXObject(C)}catch(D){s=D}if(o){a._XMLHTTP_PROGIDS=[C];break}}if(!o)throw new Error("XMLHTTP not available: "+s);return o};a._isDocumentOk=function(o){o=o.status||0;var s=location.protocol;
return o>=200&&o<300||o==304||o==1223||!o&&(s=="file:"||s=="chrome:"||s=="chrome-extension:"||s=="app:")};var g=window.location+"";var k=(h=document.getElementsByTagName("base"))&&h.length>0;a._getText=function(o,s){var q=a._xhrObj();if(!k&&b._Url)o=(new b._Url(g,o)).toString();if(a.config.cacheBust){o+="";o+=(o.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,"")}q.open("GET",o,false);try{q.send(null);if(!a._isDocumentOk(q)){var t=Error("Unable to load "+o+" status:"+q.status);
t.status=q.status;t.responseText=q.responseText;throw t;}}catch(C){if(s)return null;throw C;}return q.responseText};var l=window,p=function(o,s){var q=l.attachEvent||l.addEventListener;o=l.attachEvent?o:o.substring(2);q(o,function(){s.apply(l,arguments)},false)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var o=a._windowUnloaders;o.length;)o.pop()();a=null};var n=0;a.addOnWindowUnload=function(o,s){a._onto(a._windowUnloaders,o,s);if(!n){n=1;p("onunload",a.windowUnloaded)}};var m=0;a.addOnUnload=
function(o,s){a._onto(a._unloaders,o,s);if(!m){m=1;p("onbeforeunload",b.unloaded)}}})();b._initFired=false;b._loadInit=function(){if(b._scrollIntervalId){clearInterval(b._scrollIntervalId);b._scrollIntervalId=0}if(!b._initFired){b._initFired=true;!b.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",b._loadInit);b._inFlightCount==0&&b._modulesLoaded()}};if(!b.config.afterOnLoad)if(document.addEventListener){document.addEventListener("DOMContentLoaded",b._loadInit,false);window.addEventListener("load",
b._loadInit,false)}else if(window.attachEvent){window.attachEvent("onload",b._loadInit);if(!b.config.skipIeDomLoaded&&self===self.top)b._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");b._loadInit()}}catch(a){}},30)}if(b.isIE)try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var a=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],d=0,e=1,f=document.createStyleSheet();if(b.isIE>=8){d=
1;e=a.length}for(;d<e;++d)f.addRule("v\\:"+a[d],"behavior:url(#default#VML); display:inline-block")})()}catch(c){}}(function(){var a=b.config.modulePaths;if(a)for(var d in a)b.registerModulePath(d,a[d])})();b.config.isDebug&&b.require("dojo._firebug.firebug");if(b.config.debugAtAllCosts){b.require("dojo._base._loader.loader_debug");b.require("dojo.i18n")}return b});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(b){return dojo=b});
define("dojo/_base/lang",["dojo/lib/kernel"],function(b){(function(){var c=Object.prototype.toString;b.isString=function(h){return typeof h=="string"||h instanceof String};b.isArray=function(h){return h&&(h instanceof Array||typeof h=="array")};b.isFunction=function(h){return c.call(h)==="[object Function]"};b.isObject=function(h){return h!==undefined&&(h===null||typeof h=="object"||b.isArray(h)||b.isFunction(h))};b.isArrayLike=function(h){return h&&h!==undefined&&!b.isString(h)&&!b.isFunction(h)&&
!(h.tagName&&h.tagName.toLowerCase()=="form")&&(b.isArray(h)||isFinite(h.length))};b.isAlien=function(h){return h&&!b.isFunction(h)&&/\{\s*\[native code\]\s*\}/.test(String(h))};b.extend=function(h){for(var g=1,k=arguments.length;g<k;g++)b._mixin(h.prototype,arguments[g]);return h};b._hitchArgs=function(h,g){var k=b._toArray(arguments,2),l=b.isString(g);return function(){var p=b._toArray(arguments),n=l?(h||b.global)[g]:g;return n&&n.apply(h||this,k.concat(p))}};b.hitch=function(h,g){if(arguments.length>
2)return b._hitchArgs.apply(b,arguments);if(!g){g=h;h=null}if(b.isString(g)){h=h||b.global;if(!h[g])throw['dojo.hitch: scope["',g,'"] is null (scope="',h,'")'].join("");return function(){return h[g].apply(h,arguments||[])}}return!h?g:function(){return g.apply(h,arguments||[])}};b.delegate=b._delegate=function(){function h(){}return function(g,k){h.prototype=g;g=new h;h.prototype=null;k&&b._mixin(g,k);return g}}();var a=function(h,g,k){return(k||[]).concat(Array.prototype.slice.call(h,g||0))},d=function(h,
g,k){k=k||[];for(g=g||0;g<h.length;g++)k.push(h[g]);return k};b._toArray=b.isIE?function(h){return(h.item?d:a).apply(this,arguments)}:a;b.partial=function(){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var e=b._extraNames,f=e.length,i={};b.clone=function(h){if(!h||typeof h!="object"||b.isFunction(h))return h;if(h.nodeType&&"cloneNode"in h)return h.cloneNode(true);if(h instanceof Date)return new Date(h.getTime());if(h instanceof RegExp)return new RegExp(h);var g,k,l,p;if(b.isArray(h)){g=
[];k=0;for(l=h.length;k<l;++k)k in h&&g.push(b.clone(h[k]))}else g=h.constructor?new h.constructor:{};for(p in h){l=h[p];if(!(p in g)||g[p]!==l&&(!(p in i)||i[p]!==l))g[p]=b.clone(l)}if(f)for(k=0;k<f;++k){p=e[k];l=h[p];if(!(p in g)||g[p]!==l&&(!(p in i)||i[p]!==l))g[p]=l}return g};b.trim=String.prototype.trim?function(h){return h.trim()}:function(h){return h.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var j=/\{([^\}]+)\}/g;b.replace=function(h,g,k){return h.replace(k||j,b.isFunction(g)?g:function(l,
p){return b.getObject(p,false,g)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var c=function(d,e,f){return[typeof d=="string"?d.split(""):d,e||b.global,typeof f=="string"?new Function("item","index","array",f):f]},a=function(d,e,f,i){var j=c(e,i,f);e=j[0];f=0;for(i=e.length;f<i;++f){var h=!!j[2].call(j[1],e[f],f,e);if(d^h)return h}return d};b.mixin(b,{indexOf:function(d,e,f,i){var j=1,h=d.length||0,g=0;if(i){g=h-1;j=h=-1}if(f!=undefined)g=f;if(i&&g>h||g<h)for(;g!=h;g+=j)if(d[g]==e)return g;
return-1},lastIndexOf:function(d,e,f){return b.indexOf(d,e,f,true)},forEach:function(d,e,f){if(d&&d.length){var i=c(d,f,e);d=i[0];e=0;for(f=d.length;e<f;++e)i[2].call(i[1],d[e],e,d)}},every:function(d,e,f){return a(true,d,e,f)},some:function(d,e,f){return a(false,d,e,f)},map:function(d,e,f,i){var j=c(d,f,e);d=j[0];e=i?new i:[];f=0;for(i=d.length;f<i;++f)e.push(j[2].call(j[1],d[f],f,d));return e},filter:function(d,e,f){var i=c(d,f,e);d=i[0];e=[];f=0;for(var j=d.length;f<j;++f)i[2].call(i[1],d[f],f,
d)&&e.push(d[f]);return e}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function c(w,z){throw new Error("declare"+(z?" "+z:"")+": "+w);}function a(w,z){for(var x=[],E=[{cls:0,refs:[]}],F={},K=1,J=w.length,L=0,M,Q,N,S,X;L<J;++L){if(M=w[L])t.call(M)!="[object Function]"&&c("mixin #"+L+" is not a callable constructor.",z);else c("mixin #"+L+" is unknown. Did you use dojo.require to pull it in?",z);Q=M._meta?M._meta.bases:[M];N=0;for(M=Q.length-1;M>=0;--M){S=Q[M].prototype;
if(!S.hasOwnProperty("declaredClass"))S.declaredClass="uniqName_"+D++;S=S.declaredClass;if(!F.hasOwnProperty(S)){F[S]={count:0,refs:[],cls:Q[M]};++K}S=F[S];if(N&&N!==S){S.refs.push(N);++N.count}N=S}++N.count;E[0].refs.push(N)}for(;E.length;){N=E.pop();x.push(N.cls);for(--K;X=N.refs,X.length==1;){N=X[0];if(!N||--N.count){N=0;break}x.push(N.cls);--K}if(N){L=0;for(J=X.length;L<J;++L){N=X[L];--N.count||E.push(N)}}}K&&c("can't build consistent linearization",z);M=w[0];x[0]=M?M._meta&&M===x[x.length-M._meta.bases.length]?
M._meta.bases.length:1:0;return x}function d(w,z,x){var E,F,K,J,L,M,Q,N=this._inherited=this._inherited||{};if(typeof w=="string"){E=w;w=z;z=x}x=0;J=w.callee;(E=E||J.nom)||c("can't deduce a name to call inherited()",this.declaredClass);L=this.constructor._meta;K=L.bases;Q=N.p;if(E!=v){if(N.c!==J){Q=0;M=K[0];L=M._meta;if(L.hidden[E]!==J){(F=L.chains)&&typeof F[E]=="string"&&c("calling chained method with inherited: "+E,this.declaredClass);do{L=M._meta;F=M.prototype;if(L&&(F[E]===J&&F.hasOwnProperty(E)||
L.hidden[E]===J))break}while(M=K[++Q]);Q=M?Q:-1}}if(M=K[++Q]){F=M.prototype;if(M._meta&&F.hasOwnProperty(E))x=F[E];else{J=q[E];do{F=M.prototype;if((x=F[E])&&(M._meta?F.hasOwnProperty(E):x!==J))break}while(M=K[++Q])}}x=M&&x||q[E]}else{if(N.c!==J){Q=0;if((L=K[0]._meta)&&L.ctor!==J){F=L.chains;if(!F||F.constructor!=="manual")c("calling chained constructor with inherited",this.declaredClass);for(;M=K[++Q];)if((L=M._meta)&&L.ctor===J)break;Q=M?Q:-1}}for(;M=K[++Q];)if(x=(L=M._meta)?L.ctor:M)break;x=M&&
x}N.c=x;N.p=Q;if(x)return z===true?x:x.apply(this,z||w)}function e(w,z){if(typeof w=="string")return this.inherited(w,z,true);return this.inherited(w,true)}function f(w){for(var z=this.constructor._meta.bases,x=0,E=z.length;x<E;++x)if(z[x]===w)return true;return this instanceof w}function i(w,z){var x,E=0,F=o._extraNames.length;for(x in z)if(x!=v&&z.hasOwnProperty(x))w[x]=z[x];for(;E<F;++E){x=o._extraNames[E];if(x!=v&&z.hasOwnProperty(x))w[x]=z[x]}}function j(w,z){var x,E,F=0,K=o._extraNames.length;
for(x in z){E=z[x];if((E!==q[x]||!(x in q))&&x!=v){if(t.call(E)=="[object Function]")E.nom=x;w[x]=E}}for(;F<K;++F){x=o._extraNames[F];E=z[x];if((E!==q[x]||!(x in q))&&x!=v){if(t.call(E)=="[object Function]")E.nom=x;w[x]=E}}return w}function h(w){j(this.prototype,w);return this}function g(w,z){return function(){var x=arguments,E=x,F=x[0],K,J;J=w.length;var L;if(!(this instanceof x.callee))return m(x);if(z&&(F&&F.preamble||this.preamble)){L=new Array(w.length);L[0]=x;for(K=0;;){if(F=x[0])if(F=F.preamble)x=
F.apply(this,x)||x;F=w[K].prototype;if(F=F.hasOwnProperty("preamble")&&F.preamble)x=F.apply(this,x)||x;if(++K==J)break;L[K]=x}}for(K=J-1;K>=0;--K){F=w[K];if(F=(J=F._meta)?J.ctor:F)F.apply(this,L?L[K]:x)}(F=this.postscript)&&F.apply(this,E)}}function k(w,z){return function(){var x=arguments,E=x,F=x[0];if(!(this instanceof x.callee))return m(x);if(z){if(F)if(F=F.preamble)E=F.apply(this,E)||E;(F=this.preamble)&&F.apply(this,E)}w&&w.apply(this,x);(F=this.postscript)&&F.apply(this,x)}}function l(w){return function(){var z=
arguments,x=0,E,F;if(!(this instanceof z.callee))return m(z);for(;E=w[x];++x)if(E=(F=E._meta)?F.ctor:E){E.apply(this,z);break}(E=this.postscript)&&E.apply(this,z)}}function p(w,z,x){return function(){var E,F,K=0,J=1;if(x){K=z.length-1;J=-1}for(;E=z[K];K+=J){F=E._meta;(E=(F?F.hidden:E.prototype)[w])&&E.apply(this,arguments)}}}function n(w){C.prototype=w.prototype;w=new C;C.prototype=null;return w}function m(w){var z=w.callee,x=n(z);z.apply(x,w);return x}var o=b,s=o._mixin,q=Object.prototype,t=q.toString,
C=new Function,D=0,v="constructor";o.declare=function(w,z,x){if(typeof w!="string"){x=z;z=w;w=""}x=x||{};var E,F,K,J,L,M,Q,N=1,S=z;if(t.call(z)=="[object Array]"){M=a(z,w);K=M[0];N=M.length-K;z=M[N]}else{M=[0];if(z)if(t.call(z)=="[object Function]"){K=z._meta;M=M.concat(K?K.bases:z)}else c("base class is not a callable constructor.",w);else z!==null&&c("unknown base class. Did you use dojo.require to pull it in?",w)}if(z)for(F=N-1;;--F){E=n(z);if(!F)break;K=M[F];(K._meta?i:s)(E,K.prototype);J=new Function;
J.superclass=z;J.prototype=E;z=E.constructor=J}else E={};j(E,x);K=x.constructor;if(K!==q.constructor){K.nom=v;E.constructor=K}for(F=N-1;F;--F)if((K=M[F]._meta)&&K.chains)Q=s(Q||{},K.chains);if(E["-chains-"])Q=s(Q||{},E["-chains-"]);K=!Q||!Q.hasOwnProperty(v);M[0]=J=Q&&Q.constructor==="manual"?l(M):M.length==1?k(x.constructor,K):g(M,K);J._meta={bases:M,hidden:x,chains:Q,parents:S,ctor:x.constructor};J.superclass=z&&z.prototype;J.extend=h;J.prototype=E;E.constructor=J;E.getInherited=e;E.inherited=d;
E.isInstanceOf=f;if(w){E.declaredClass=w;o.setObject(w,J)}if(Q)for(L in Q)if(E[L]&&typeof Q[L]=="string"&&L!=v){K=E[L]=p(L,M,Q[L]==="after");K.nom=L}return J};o.safeMixin=j})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var c=Array.prototype,a=arguments.callee,d=a._listeners;a=(a=a.target)&&a.apply(this,arguments);var e;d=[].concat(d);for(e in d)e in c||d[e].apply(this,arguments);return a}},add:function(c,a,d){c=c||b.global;var e=c[a];if(!e||!e._listeners){var f=b._listener.getDispatcher();f.target=e;f._listeners=[];e=c[a]=f}return e._listeners.push(d)},remove:function(c,a,d){(c=(c||
b.global)[a])&&c._listeners&&d--&&delete c._listeners[d]}};b.connect=function(){var c=arguments,a=[],d=0;a.push(b.isString(c[0])?null:c[d++],c[d++]);var e=c[d+1];a.push(b.isString(e)||b.isFunction(e)?c[d++]:null,c[d++]);for(e=c.length;d<e;d++)a.push(c[d]);return b._connect.apply(this,a)};b._connect=function(c,a,d,e){var f=b._listener;d=f.add(c,a,b.hitch(d,e));return[c,a,d,f]};b.disconnect=function(c){if(c&&c[0]!==undefined){b._disconnect.apply(this,c);delete c[0]}};b._disconnect=function(c,a,d,e){e.remove(c,
a,d)};b._topics={};b.subscribe=function(c,a,d){return[c,b._listener.add(b._topics,c,b.hitch(a,d))]};b.unsubscribe=function(c){c&&b._listener.remove(b._topics,c[0],c[1])};b.publish=function(c,a){if(c=b._topics[c])c.apply(this,a||[])};b.connectPublisher=function(c,a,d){var e=function(){b.publish(c,arguments)};return d?b.connect(a,d,e):b.connect(a,e)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var c=function(){},a=Object.freeze||function(){};b.Deferred=function(d){function e(n){if(j)throw new Error("This deferred has already been resolved");i=n;j=true;f()}function f(){for(var n;!n&&k;){var m=k;k=k.next;if(n=m.progress==c)j=false;var o=h?m.error:m.resolved;if(o)try{var s=o(i);if(s&&typeof s.then==="function")s.then(b.hitch(m.deferred,"resolve"),b.hitch(m.deferred,"reject"),b.hitch(m.deferred,"progress"));
else{o=n&&s===undefined;if(n&&!o)h=s instanceof Error;m.deferred[o&&h?"reject":"resolve"](o?i:s)}}catch(q){m.deferred.reject(q)}else h?m.deferred.reject(i):m.deferred.resolve(i)}}var i,j,h,g,k,l=this.promise={};this.resolve=this.callback=function(n){this.fired=0;this.results=[n,null];e(n)};this.reject=this.errback=function(n){h=true;this.fired=1;e(n);this.results=[null,n];if(!n||n.log!==false)(b.config.deferredOnError||function(m){console.error(m)})(n)};this.progress=function(n){for(var m=k;m;){var o=
m.progress;o&&o(n);m=m.next}};this.addCallbacks=function(n,m){this.then(n,m,c);return this};this.then=l.then=function(n,m,o){var s=o==c?this:new b.Deferred(l.cancel);n={resolved:n,error:m,progress:o,deferred:s};if(k)g=g.next=n;else k=g=n;j&&f();return s.promise};var p=this;this.cancel=l.cancel=function(){if(!j){var n=d&&d(p);if(!j){n instanceof Error||(n=new Error(n));n.log=false;p.reject(n)}}};a(l)};b.extend(b.Deferred,{addCallback:function(){return this.addCallbacks(b.hitch.apply(b,arguments))},
addErrback:function(){return this.addCallbacks(null,b.hitch.apply(b,arguments))},addBoth:function(){var d=b.hitch.apply(b,arguments);return this.addCallbacks(d,d)},fired:-1})})();b.when=function(c,a,d,e){if(c&&typeof c.then==="function")return c.then(a,d,e);return a(c)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(c){return eval("("+c+")")};b._escapeString=function(c){return('"'+c.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};b.toJsonIndentStr="\t";b.toJson=function(c,a,d){if(c===undefined)return"undefined";var e=typeof c;if(e=="number"||e=="boolean")return c+"";if(c===null)return"null";if(b.isString(c))return b._escapeString(c);var f=
arguments.callee,i;d=d||"";var j=a?d+b.toJsonIndentStr:"";i=c.__json__||c.json;if(b.isFunction(i)){i=i.call(c);if(c!==i)return f(i,a,j)}if(c.nodeType&&c.cloneNode)throw new Error("Can't serialize DOM nodes");i=a?" ":"";var h=a?"\n":"";if(b.isArray(c))return"["+b.map(c,function(p){p=f(p,a,j);if(typeof p!="string")p="undefined";return h+j+p}).join(","+i)+h+d+"]";if(e=="function")return null;e=[];var g;for(g in c){var k,l;if(typeof g=="number")k='"'+g+'"';else if(typeof g=="string")k=b._escapeString(g);
else continue;l=f(c[g],a,j);typeof l=="string"&&e.push(h+j+k+":"+i+l)}return"{"+e.join(","+i)+h+d+"}"};return b});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(b){(function(){b.Color=function(c){c&&this.setColor(c)};b.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:b.config.transparentColor||[255,255,255]};b.extend(b.Color,
{r:255,g:255,b:255,a:1,_set:function(c,a,d,e){this.r=c;this.g=a;this.b=d;this.a=e},setColor:function(c){if(b.isString(c))b.colorFromString(c,this);else if(b.isArray(c))b.colorFromArray(c,this);else{this._set(c.r,c.g,c.b,c.a);c instanceof b.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"#"+b.map(["r","g","b"],function(c){c=this[c].toString(16);return c.length<
2?"0"+c:c},this).join("")},toCss:function(c){var a=this.r+", "+this.g+", "+this.b;return(c?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(true)}});b.blendColors=function(c,a,d,e){var f=e||new b.Color;b.forEach(["r","g","b","a"],function(i){f[i]=c[i]+(a[i]-c[i])*d;if(i!="a")f[i]=Math.round(f[i])});return f.sanitize()};b.colorFromRgb=function(c,a){return(c=c.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&b.colorFromArray(c[1].split(/\s*,\s*/),a)};b.colorFromHex=function(c,
a){var d=a||new b.Color,e=c.length==4?4:8,f=(1<<e)-1;c=Number("0x"+c.substr(1));if(isNaN(c))return null;b.forEach(["b","g","r"],function(i){var j=c&f;c>>=e;d[i]=e==4?17*j:j});d.a=1;return d};b.colorFromArray=function(c,a){a=a||new b.Color;a._set(Number(c[0]),Number(c[1]),Number(c[2]),Number(c[3]));if(isNaN(a.a))a.a=1;return a.sanitize()};b.colorFromString=function(c,a){var d=b.Color.named[c];return d&&b.colorFromArray(d,a)||b.colorFromRgb(c,a)||b.colorFromHex(c,a)}})();return b.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(b){b.doc=window.document||null;b.body=function(){return b.doc.body||b.doc.getElementsByTagName("body")[0]};b.setContext=function(c,a){b.global=c;b.doc=a};b.withGlobal=function(c,a,d,e){var f=b.global;try{b.global=c;return b.withDoc.call(null,c.document,a,d,e)}finally{b.global=f}};b.withDoc=function(c,a,d,e){var f=b.doc,i=b._bodyLtr,j=b.isQuirks;try{b.doc=c;delete b._bodyLtr;b.isQuirks=b.doc.compatMode=="BackCompat";if(d&&typeof a=="string")a=
d[a];return a.apply(d,e||[])}finally{b.doc=f;delete b._bodyLtr;if(i!==undefined)b._bodyLtr=i;b.isQuirks=j}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var c=b._event_listener={add:function(h,g,k){if(h){g=c._normalizeEventName(g);k=c._fixCallback(g,k);if(!b.isIE&&(g=="mouseenter"||g=="mouseleave")){var l=k;g=g=="mouseenter"?"mouseover":"mouseout";k=function(p){if(!b.isDescendant(p.relatedTarget,h))return l.call(this,p)}}h.addEventListener(g,k,false);return k}},remove:function(h,g,k){if(h){g=c._normalizeEventName(g);if(!b.isIE&&(g=="mouseenter"||g=="mouseleave"))g=
g=="mouseenter"?"mouseover":"mouseout";h.removeEventListener(g,k,false)}},_normalizeEventName:function(h){return h.slice(0,2)=="on"?h.slice(2):h},_fixCallback:function(h,g){return h!="keypress"?g:function(k){return g.call(this,c._fixEvent(k,this))}},_fixEvent:function(h){switch(h.type){case "keypress":c._setKeyChar(h);break}return h},_setKeyChar:function(h){h.keyChar=h.charCode>=32?String.fromCharCode(h.charCode):"";h.charOrCode=h.keyChar||h.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}};b.fixEvent=function(h,g){return c._fixEvent(h,g)};b.stopEvent=function(h){h.preventDefault();h.stopPropagation()};var a=b._listener;b._connect=function(h,g,k,l,p){p=h&&(h.nodeType||h.attachEvent||h.addEventListener)?p?2:1:0;k=[b._listener,c,a][p].add(h,g,b.hitch(k,l));return[h,g,k,p]};b._disconnect=function(h,g,k,l){[b._listener,c,a][l].remove(h,g,k)};b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:b.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:b.isMac&&!b.isAIR?b.isSafari?91:224:17};var d=b.isMac?"metaKey":"ctrlKey";b.isCopyKey=function(h){return h[d]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(h,g){return h.button&g},isLeft:function(h){return h.button&1},isMiddle:function(h){return h.button&4},isRight:function(h){return h.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(h,g){return h.button==g},isLeft:function(h){return h.button==
0},isMiddle:function(h){return h.button==1},isRight:function(h){return h.button==2}};if(b.isIE){var e=function(h,g){try{return h.keyCode=g}catch(k){return 0}},f=b._listener,i=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks){a=f=b._ie_listener={handlers:[],add:function(h,g,k){h=h||b.global;var l=h[g];if(!l||!l[i]){var p=b._getIeDispatcher();p.target=l&&j.push(l)-1;p[i]=[];l=h[g]=p}return l[i].push(j.push(k)-1)},remove:function(h,g,k){g=(h=(h||b.global)[g])&&h[i];if(h&&g&&
k--){delete j[g[k]];delete g[k]}}};var j=f.handlers}b.mixin(c,{add:function(h,g,k){if(h){g=c._normalizeEventName(g);if(g=="onkeypress"){var l=h.onkeydown;if(!l||!l[i]||!l._stealthKeydownHandle){var p=c.add(h,"onkeydown",c._stealthKeyDown);l=h.onkeydown;l._stealthKeydownHandle=p;l._stealthKeydownRefs=1}else l._stealthKeydownRefs++}return f.add(h,g,c._fixCallback(k))}},remove:function(h,g,k){g=c._normalizeEventName(g);f.remove(h,g,k);if(g=="onkeypress"){g=h.onkeydown;if(--g._stealthKeydownRefs<=0){f.remove(h,
"onkeydown",g._stealthKeydownHandle);delete g._stealthKeydownHandle}}},_normalizeEventName:function(h){return h.slice(0,2)!="on"?"on"+h:h},_nop:function(){},_fixEvent:function(h,g){if(!h)h=(g&&(g.ownerDocument||g.document||g).parentWindow||window).event;if(!h)return h;h.target=h.srcElement;h.currentTarget=g||h.srcElement;h.layerX=h.offsetX;h.layerY=h.offsetY;g=(g=h.srcElement)&&g.ownerDocument||document;g=b.isIE<6||g.compatMode=="BackCompat"?g.body:g.documentElement;var k=b._getIeDocumentElementOffset();
h.pageX=h.clientX+b._fixIeBiDiScrollLeft(g.scrollLeft||0)-k.x;h.pageY=h.clientY+(g.scrollTop||0)-k.y;if(h.type=="mouseover")h.relatedTarget=h.fromElement;if(h.type=="mouseout")h.relatedTarget=h.toElement;if(b.isIE<9||b.isQuirks){h.stopPropagation=c._stopPropagation;h.preventDefault=c._preventDefault}return c._fixKeys(h)},_fixKeys:function(h){switch(h.type){case "keypress":var g="charCode"in h?h.charCode:h.keyCode;if(g==10){g=0;h.keyCode=13}else if(g==13||g==27)g=0;else if(g==3)g=99;h.charCode=g;c._setKeyChar(h);
break}return h},_stealthKeyDown:function(h){var g=h.currentTarget.onkeypress;if(g&&g[i]){var k=h.keyCode,l=(k!=13||b.isIE>=9&&!b.isQuirks)&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(l||h.ctrlKey){l=l?0:k;if(h.ctrlKey)if(k==3||k==13)return;else if(l>95&&l<106)l-=48;else if(!h.shiftKey&&l>=65&&l<=90)l+=32;else l=c._punctMap[l]||l;k=c._synthesizeEvent(h,{type:"keypress",faux:true,charCode:l});g.call(h.currentTarget,k);if(b.isIE<9||b.isIE&&b.isQuirks)h.cancelBubble=
k.cancelBubble;h.returnValue=k.returnValue;e(h,k.keyCode)}}},_stopPropagation:function(){this.cancelBubble=true},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&e(this,0);this.returnValue=false}});b.stopEvent=b.isIE<9||b.isQuirks?function(h){h=h||window.event;c._stopPropagation.call(h);c._preventDefault.call(h)}:b.stopEvent}c._synthesizeEvent=function(h,g){g=b.mixin({},h,g);c._setKeyChar(g);g.preventDefault=function(){h.preventDefault()};g.stopPropagation=function(){h.stopPropagation()};
return g};b.isOpera&&b.mixin(c,{_fixEvent:function(h){switch(h.type){case "keypress":var g=h.which;if(g==3)g=99;g=g<41&&!h.shiftKey?0:g;if(h.ctrlKey&&!h.shiftKey&&g>=65&&g<=90)g+=32;return c._synthesizeEvent(h,{charCode:g})}return h}});if(b.isWebKit){c._add=c.add;c._remove=c.remove;b.mixin(c,{add:function(h,g,k){if(h){var l=c._add(h,g,k);if(c._normalizeEventName(g)=="keypress")l._stealthKeyDownHandle=c._add(h,"keydown",function(p){var n=p.keyCode,m=n!=13&&n!=32&&(n<48||n>90)&&(n<96||n>111)&&(n<186||
n>192)&&(n<219||n>222);if(m||p.ctrlKey){m=m?0:n;if(p.ctrlKey)if(n==3||n==13)return;else if(m>95&&m<106)m-=48;else if(!p.shiftKey&&m>=65&&m<=90)m+=32;else m=c._punctMap[m]||m;n=c._synthesizeEvent(p,{type:"keypress",faux:true,charCode:m});k.call(p.currentTarget,n)}});return l}},remove:function(h,g,k){if(h){k._stealthKeyDownHandle&&c._remove(h,"keydown",k._stealthKeyDownHandle);c._remove(h,g,k)}},_fixEvent:function(h){switch(h.type){case "keypress":if(h.faux)return h;var g=h.charCode;g=g>=32?g:0;return c._synthesizeEvent(h,
{charCode:g,faux:true})}return h}})}})();if(b.isIE){b._ieDispatcher=function(c,a){var d=Array.prototype,e=b._ie_listener.handlers,f=c.callee,i=f[b._ieListenersName];f=(f=e[f.target])&&f.apply(a,c);i=[].concat(i);for(var j in i){var h=e[i[j]];!(j in d)&&h&&h.apply(a,c)}return f};b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")};b._event_listener._fixCallback=function(c){var a=b._event_listener._fixEvent;return function(d){return c.call(this,a(d,this))}}}return b.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(b){try{document.execCommand("BackgroundImageCache",false,true)}catch(c){}b.byId=b.isIE?function(a,d){if(typeof a!="string")return a;var e=d||b.doc;if((d=e.getElementById(a))&&(d.attributes.id.value==a||d.id==a))return d;else{var f=e.all[a];if(!f||f.nodeName)f=[f];for(var i=0;d=f[i++];)if(d.attributes&&d.attributes.id&&d.attributes.id.value==a||d.id==a)return d}}:function(a,d){return(typeof a=="string"?(d||b.doc).getElementById(a):
a)||null};(function(){var a=b.byId,d=null,e;b.addOnWindowUnload(function(){d=null});b._destroyElement=b.destroy=function(r){r=a(r);try{var u=r.ownerDocument;if(!d||e!=u){d=u.createElement("div");e=u}d.appendChild(r.parentNode?r.parentNode.removeChild(r):r);d.innerHTML=""}catch(A){}};b.isDescendant=function(r,u){try{r=a(r);for(u=a(u);r;){if(r==u)return true;r=r.parentNode}}catch(A){}return false};b.setSelectable=function(r,u){r=a(r);if(b.isMozilla)r.style.MozUserSelect=u?"":"none";else if(b.isKhtml||
b.isWebKit)r.style.KhtmlUserSelect=u?"auto":"none";else if(b.isIE){u=r.unselectable=u?"":"on";b.query("*",r).forEach("item.unselectable = '"+u+"'")}};var f=function(r,u){var A=u.parentNode;A&&A.insertBefore(r,u)},i=function(r,u){var A=u.parentNode;if(A)A.lastChild==u?A.appendChild(r):A.insertBefore(r,u.nextSibling)};b.place=function(r,u,A){u=a(u);if(typeof r=="string")r=/^\s*</.test(r)?b._toDom(r,u.ownerDocument):a(r);if(typeof A=="number"){var I=u.childNodes;!I.length||I.length<=A?u.appendChild(r):
f(r,I[A<0?0:A])}else switch(A){case "before":f(r,u);break;case "after":i(r,u);break;case "replace":u.parentNode.replaceChild(r,u);break;case "only":b.empty(u);u.appendChild(r);break;case "first":if(u.firstChild){f(r,u.firstChild);break}default:u.appendChild(r)}return r};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var j;j=b.isWebKit?function(r){var u;if(r.nodeType==1){var A=r.ownerDocument.defaultView;u=A.getComputedStyle(r,null);if(!u&&
r.style){r.style.display="";u=A.getComputedStyle(r,null)}}return u||{}}:b.isIE?function(r){return r.nodeType==1?r.currentStyle:{}}:function(r){return r.nodeType==1?r.ownerDocument.defaultView.getComputedStyle(r,null):{}};b.getComputedStyle=j;b._toPixelValue=b.isIE?function(r,u){if(!u)return 0;if(u=="medium")return 4;if(u.slice&&u.slice(-2)=="px")return parseFloat(u);with(r){r=style.left;var A=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=u;u=style.pixelLeft}catch(I){u=0}style.left=
r;runtimeStyle.left=A}return u}:function(r,u){return parseFloat(u)||0};var h=b._toPixelValue,g=function(r,u){try{return r.filters.item("DXImageTransform.Microsoft.Alpha")}catch(A){return u?{}:null}};b._getOpacity=b.isIE<9?function(r){try{return g(r).Opacity/100}catch(u){return 1}}:function(r){return j(r).opacity};b._setOpacity=b.isIE<9?function(r,u){var A=u*100,I=u==1;r.style.zoom=I?"":1;if(g(r))g(r,1).Opacity=A;else{if(I)return u;r.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+
A+")"}g(r,1).Enabled=!I;r.nodeName.toLowerCase()=="tr"&&b.query("> td",r).forEach(function(O){b._setOpacity(O,u)});return u}:function(r,u){return r.style.opacity=u};var k={left:true,top:true},l=/margin|padding|width|height|max|min|offset/,p=function(r,u,A){u=u.toLowerCase();if(b.isIE){if(A=="auto"){if(u=="height")return r.offsetHeight;if(u=="width")return r.offsetWidth}if(u=="fontweight")switch(A){case 700:return"bold";case 400:default:return"normal"}}u in k||(k[u]=l.test(u));return k[u]?h(r,A):A},
n=b.isIE?"styleFloat":"cssFloat",m={cssFloat:n,styleFloat:n,"float":n};b.style=function(r,u,A){var I=a(r),O=arguments.length,R=u=="opacity";u=m[u]||u;if(O==3)return R?b._setOpacity(I,A):(I.style[u]=A);if(O==2&&R)return b._getOpacity(I);R=j(I);if(O==2&&typeof u!="string"){for(var Z in u)b.style(r,Z,u[Z]);return R}return O==1?R:p(I,u,R[u]||I.style[u])};b._getPadExtents=function(r,u){u=u||j(r);var A=h(r,u.paddingLeft),I=h(r,u.paddingTop);return{l:A,t:I,w:A+h(r,u.paddingRight),h:I+h(r,u.paddingBottom)}};
b._getBorderExtents=function(r,u){u=u||j(r);var A=u.borderLeftStyle!="none"?h(r,u.borderLeftWidth):0,I=u.borderTopStyle!="none"?h(r,u.borderTopWidth):0;return{l:A,t:I,w:A+(u.borderRightStyle!="none"?h(r,u.borderRightWidth):0),h:I+(u.borderBottomStyle!="none"?h(r,u.borderBottomWidth):0)}};b._getPadBorderExtents=function(r,u){var A=u||j(r);u=b._getPadExtents(r,A);r=b._getBorderExtents(r,A);return{l:u.l+r.l,t:u.t+r.t,w:u.w+r.w,h:u.h+r.h}};b._getMarginExtents=function(r,u){u=u||j(r);var A=h(r,u.marginLeft),
I=h(r,u.marginTop),O=h(r,u.marginRight);r=h(r,u.marginBottom);if(b.isWebKit&&u.position!="absolute")O=A;return{l:A,t:I,w:A+O,h:I+r}};b._getMarginBox=function(r,u){var A=u||j(r);u=b._getMarginExtents(r,A);var I=r.offsetLeft-u.l,O=r.offsetTop-u.t,R=r.parentNode;if(b.isMoz){var Z=parseFloat(A.left);A=parseFloat(A.top);if(!isNaN(Z)&&!isNaN(A)){I=Z;O=A}else if(R&&R.style){Z=j(R);if(Z.overflow!="visible"){R=b._getBorderExtents(R,Z);I+=R.l;O+=R.t}}}else if(b.isOpera||b.isIE>7&&!b.isQuirks)if(R){R=b._getBorderExtents(R);
I-=R.l;O-=R.t}return{l:I,t:O,w:r.offsetWidth+u.w,h:r.offsetHeight+u.h}};b._getMarginSize=function(r,u){r=a(r);u=b._getMarginExtents(r,u||j(r));r=r.getBoundingClientRect();return{w:r.right-r.left+u.w,h:r.bottom-r.top+u.h}};b._getContentBox=function(r,u){var A=u||j(r);u=b._getPadExtents(r,A);A=b._getBorderExtents(r,A);var I=r.clientWidth;if(I){r=r.clientHeight;A.w=A.h=0}else{I=r.offsetWidth;r=r.offsetHeight}if(b.isOpera){u.l+=A.l;u.t+=A.t}return{l:u.l,t:u.t,w:I-u.w-A.w,h:r-u.h-A.h}};b._getBorderBox=
function(r,u){var A=u||j(r);u=b._getPadExtents(r,A);r=b._getContentBox(r,A);return{l:r.l-u.l,t:r.t-u.t,w:r.w+u.w,h:r.h+u.h}};b._setBox=function(r,u,A,I,O,R){R=R||"px";r=r.style;if(!isNaN(u))r.left=u+R;if(!isNaN(A))r.top=A+R;if(I>=0)r.width=I+R;if(O>=0)r.height=O+R};b._isButtonTag=function(r){return r.tagName=="BUTTON"||r.tagName=="INPUT"&&(r.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(r){var u=r.tagName;return b.boxModel=="border-box"||u=="TABLE"||b._isButtonTag(r)};
b._setContentSize=function(r,u,A,I){if(b._usesBorderBox(r)){I=b._getPadBorderExtents(r,I);if(u>=0)u+=I.w;if(A>=0)A+=I.h}b._setBox(r,NaN,NaN,u,A)};b._setMarginBox=function(r,u,A,I,O,R){var Z=R||j(r);R=b._usesBorderBox(r)?o:b._getPadBorderExtents(r,Z);if(b.isWebKit)if(b._isButtonTag(r)){var ga=r.style;if(I>=0&&!ga.width)ga.width="4px";if(O>=0&&!ga.height)ga.height="4px"}Z=b._getMarginExtents(r,Z);if(I>=0)I=Math.max(I-R.w-Z.w,0);if(O>=0)O=Math.max(O-R.h-Z.h,0);b._setBox(r,u,A,I,O)};var o={l:0,t:0,w:0,
h:0};b.marginBox=function(r,u){r=a(r);var A=j(r);return!u?b._getMarginBox(r,A):b._setMarginBox(r,u.l,u.t,u.w,u.h,A)};b.contentBox=function(r,u){r=a(r);var A=j(r);return!u?b._getContentBox(r,A):b._setContentSize(r,u.w,u.h,A)};b._docScroll=function(){var r=b.global;return"pageXOffset"in r?{x:r.pageXOffset,y:r.pageYOffset}:(r=b.isQuirks?b.doc.body:b.doc.documentElement,{x:b._fixIeBiDiScrollLeft(r.scrollLeft||0),y:r.scrollTop||0})};b._isBodyLtr=function(){return"_bodyLtr"in b?b._bodyLtr:(b._bodyLtr=(b.body().dir||
b.doc.documentElement.dir||"ltr").toLowerCase()=="ltr")};b._getIeDocumentElementOffset=function(){var r=b.doc.documentElement;if(b.isIE<8){var u=r.getBoundingClientRect(),A=u.left;u=u.top;if(b.isIE<7){A+=r.clientLeft;u+=r.clientTop}return{x:A<0?0:A,y:u<0?0:u}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(r){var u=b.isIE;if(u&&!b._isBodyLtr()){var A=b.isQuirks,I=A?b.doc.body:b.doc.documentElement;if(u==6&&!A&&b.global.frameElement&&I.scrollHeight>I.clientHeight)r+=I.clientLeft;return u<8||
A?r+I.clientWidth-I.scrollWidth:-r}return r};b._abs=b.position=function(r,u){r=a(r);var A=b.body(),I=A.parentNode;r=r.getBoundingClientRect();r={x:r.left,y:r.top,w:r.right-r.left,h:r.bottom-r.top};if(b.isIE){I=b._getIeDocumentElementOffset();r.x-=I.x+(b.isQuirks?A.clientLeft+A.offsetLeft:0);r.y-=I.y+(b.isQuirks?A.clientTop+A.offsetTop:0)}else if(b.isFF==3){A=j(I);r.x-=h(I,A.marginLeft)+h(I,A.borderLeftWidth);r.y-=h(I,A.marginTop)+h(I,A.borderTopWidth)}if(u){u=b._docScroll();r.x+=u.x;r.y+=u.y}return r};
b.coords=function(r,u){r=a(r);var A=j(r);A=b._getMarginBox(r,A);u=b.position(r,u);A.x=u.x;A.y=u.y;return A};var s={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},q={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},t={innerHTML:1,className:1,htmlFor:b.isIE,value:1},C=function(r){return q[r.toLowerCase()]||r},D=function(r,u){return(r=r.getAttributeNode&&r.getAttributeNode(u))&&
r.specified};b.hasAttr=function(r,u){var A=u.toLowerCase();return t[s[A]||u]||D(a(r),q[A]||u)};var v={},w=0,z=b._scopeName+"attrid",x={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(r,u,A){r=a(r);var I=arguments.length;if(I==2&&typeof u!="string"){for(var O in u)b.attr(r,O,u[O]);return r}var R=u.toLowerCase();O=s[R]||u;var Z=t[O];R=q[R]||u;if(I==3){if(O=="style"&&typeof A!="string")b.style(r,A);else if(O=="innerHTML")if(b.isIE&&r.tagName.toLowerCase()in x){b.empty(r);
r.appendChild(b._toDom(A,r.ownerDocument))}else r[O]=A;else if(b.isFunction(A)){I=b.attr(r,z);if(!I){I=w++;b.attr(r,z,I)}v[I]||(v[I]={});if(Z=v[I][O])b.disconnect(Z);else try{delete r[O]}catch(ga){}v[I][O]=b.connect(r,O,A)}else if(Z||typeof A=="boolean")r[O]=A;else r.setAttribute(R,A);return r}A=r[O];if(Z&&typeof A!="undefined")return A;if(O!="href"&&(typeof A=="boolean"||b.isFunction(A)))return A;return D(r,R)?r.getAttribute(R):null};b.removeAttr=function(r,u){a(r).removeAttribute(C(u))};b.getNodeProp=
function(r,u){r=a(r);var A=u.toLowerCase(),I=s[A]||u;if(I in r&&I!="href")return r[I];u=q[A]||u;return D(r,u)?r.getAttribute(u):null};b.create=function(r,u,A,I){var O=b.doc;if(A){A=a(A);O=A.ownerDocument}if(typeof r=="string")r=O.createElement(r);u&&b.attr(r,u);A&&b.place(r,A,I);return r};b.empty=b.isIE?function(r){r=a(r);for(var u;u=r.lastChild;)b.destroy(u)}:function(r){a(r).innerHTML=""};var E={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"]},F=/<\s*([\w\:]+)/,K={},J=0,L="__"+b._scopeName+"ToDomId";for(var M in E)if(E.hasOwnProperty(M)){var Q=E[M];Q.pre=M=="option"?'<select multiple="multiple">':"<"+Q.join("><")+">";Q.post="</"+Q.reverse().join("></")+">"}b._toDom=function(r,u){u=u||b.doc;var A=u[L];if(!A){u[L]=A=++J+"";K[A]=u.createElement("div")}r+="";var I=r.match(F),O=I?I[1].toLowerCase():"";A=K[A];if(I&&E[O]){I=
E[O];A.innerHTML=I.pre+r+I.post;for(r=I.length;r;--r)A=A.firstChild}else A.innerHTML=r;if(A.childNodes.length==1)return A.removeChild(A.firstChild);for(r=u.createDocumentFragment();u=A.firstChild;)r.appendChild(u);return r};var N="className";b.hasClass=function(r,u){return(" "+a(r)[N]+" ").indexOf(" "+u+" ")>=0};var S=/\s+/,X=[""],ca={},fa=function(r){if(typeof r=="string"||r instanceof String)if(r.indexOf(" ")<0){X[0]=r;return X}else return r.split(S);return r||""};b.addClass=function(r,u){r=a(r);
u=fa(u);var A=r[N],I;A=A?" "+A+" ":" ";I=A.length;for(var O=0,R=u.length,Z;O<R;++O)if((Z=u[O])&&A.indexOf(" "+Z+" ")<0)A+=Z+" ";if(I<A.length)r[N]=A.substr(1,A.length-2)};b.removeClass=function(r,u){r=a(r);var A;if(u!==undefined){u=fa(u);A=" "+r[N]+" ";for(var I=0,O=u.length;I<O;++I)A=A.replace(" "+u[I]+" "," ");A=b.trim(A)}else A="";if(r[N]!=A)r[N]=A};b.replaceClass=function(r,u,A){r=a(r);ca.className=r.className;b.removeClass(ca,A);b.addClass(ca,u);if(r.className!==ca.className)r.className=ca.className};
b.toggleClass=function(r,u,A){if(A===undefined)A=!b.hasClass(r,u);b[A?"addClass":"removeClass"](r,u)}})();return b});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(b){(function(){var c=Array.prototype,a=c.slice,d=c.concat,e=function(n,m,o){n.sort||(n=a.call(n,0));o=o||this._NodeListCtor||b._NodeListCtor;n.constructor=o;b._mixin(n,o.prototype);n._NodeListCtor=o;return m?n._stash(m):n},f=function(n,m,o){m=[0].concat(a.call(m,0));o=o||b.global;return function(s){m[0]=s;return n.apply(o,m)}},i=function(n,m){return function(){this.forEach(f(n,
arguments,m));return this}},j=function(n,m){return function(){return this.map(f(n,arguments,m))}},h=function(n,m,o){return function(){var s=arguments,q=f(n,s,o);if(m.call(o||b.global,s))return this.map(q);this.forEach(q);return this}},g=function(n){return n.length==1&&typeof n[0]=="string"},k=function(n){var m=n.parentNode;m&&m.removeChild(n)};b.NodeList=function(){return e(Array.apply(null,arguments))};var l=b._NodeListCtor=b.NodeList,p=l.prototype;l._wrap=p._wrap=e;l._adaptAsMap=j;l._adaptAsForEach=
i;l._adaptAsFilter=function(n,m){return function(){return this.filter(f(n,arguments,m))}};l._adaptWithCondition=h;b.forEach(["slice","splice"],function(n){var m=c[n];p[n]=function(){return this._wrap(m.apply(this,arguments),n=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(n){var m=b[n];p[n]=function(){return m.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(n){p[n]=h(b[n],g)});b.forEach(["connect","addClass","removeClass","replaceClass",
"toggleClass","empty","removeAttr"],function(n){p[n]=i(b[n])});b.extend(b.NodeList,{_normalize:function(n,m){var o=n.parse===true?true:false;if(typeof n.template=="string"){var s=n.templateFunc||b.string&&b.string.substitute;n=s?s(n.template,n):n}s=typeof n;if(s=="string"||s=="number"){n=b._toDom(n,m&&m.ownerDocument);n=n.nodeType==11?b._toArray(n.childNodes):[n]}else if(b.isArrayLike(n))b.isArray(n)||(n=b._toArray(n));else n=[n];if(o)n._runParse=true;return n},_cloneNode:function(n){return n.cloneNode(true)},
_place:function(n,m,o,s){if(!(m.nodeType!=1&&o=="only")){m=m;for(var q,t=n.length,C=t-1;C>=0;C--){var D=s?this._cloneNode(n[C]):n[C];if(n._runParse&&b.parser&&b.parser.parse){q||(q=m.ownerDocument.createElement("div"));q.appendChild(D);b.parser.parse(q);for(D=q.firstChild;q.firstChild;)q.removeChild(q.firstChild)}C==t-1?b.place(D,m,o):m.parentNode.insertBefore(D,m);m=D}}},_stash:function(n){this._parent=n;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(){var n=
b.isArray(this)?this:a.call(this,0),m=b.map(arguments,function(o){return o&&!b.isArray(o)&&(typeof NodeList!="undefined"&&o.constructor===NodeList||o.constructor===this._NodeListCtor)?a.call(o,0):o});return this._wrap(d.apply(n,m),this)},map:function(n,m){return this._wrap(b.map(this,n,m),this)},forEach:function(n,m){b.forEach(this,n,m);return this},coords:j(b.coords),position:j(b.position),place:function(n,m){var o=b.query(n)[0];return this.forEach(function(s){b.place(s,o,m)})},orphan:function(n){return(n?
b._filterQueryResult(this,n):this).forEach(k)},adopt:function(n,m){return b.query(n).place(this[0],m)._stash(this)},query:function(n){if(!n)return this;var m=this.map(function(o){return b.query(n,o).filter(function(s){return s!==undefined})});return this._wrap(d.apply([],m),this)},filter:function(n){var m=arguments,o=this,s=0;if(typeof n=="string"){o=b._filterQueryResult(this,m[0]);if(m.length==1)return o._stash(this);s=1}return this._wrap(b.filter(o,m[s],m[s+1]),this)},addContent:function(n,m){n=
this._normalize(n,this[0]);for(var o=0,s;s=this[o];o++)this._place(n,s,m,o>0);return this},instantiate:function(n,m){var o=b.isFunction(n)?n:b.getObject(n);m=m||{};return this.forEach(function(s){new o(m,s)})},at:function(){var n=new this._NodeListCtor;b.forEach(arguments,function(m){if(m<0)m=this.length+m;this[m]&&n.push(this[m])},this);return n._stash(this)}});l.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove",
"mouseout","mouseover","mouseup","submit"];b.forEach(l.events,function(n){var m="on"+n;p[m]=function(o,s){return this.connect(m,o,s)}})})();return b.NodeList});
(function(){var b=function(a){var d=a.trim,e=a.forEach,f=a._NodeListCtor=a.NodeList,i=function(){return a.doc},j=(a.isWebKit||a.isMozilla)&&i().compatMode=="BackCompat",h=i().firstChild.children?"children":"childNodes",g=false,k=function(){return true},l=function(y){y+=">~+".indexOf(y.slice(-1))>=0?" * ":" ";for(var B=function(ma,na){return d(y.slice(ma,na))},G=[],H=-1,P=-1,U=-1,V=-1,T=-1,W=-1,aa=-1,da="",ba="",ia,$=0,oa=y.length,Y=null,ea=null,pa=function(){if(aa>=0){var ma=aa==$?null:B(aa,$);Y[">~+".indexOf(ma)<
0?"tag":"oper"]=ma;aa=-1}},qa=function(){if(W>=0){Y.id=B(W,$).replace(/\\/g,"");W=-1}},ra=function(){if(T>=0){Y.classes.push(B(T+1,$).replace(/\\/g,""));T=-1}},la=function(){qa();pa();ra()},sa=function(){la();V>=0&&Y.pseudos.push({name:B(V+1,$)});Y.loops=Y.pseudos.length||Y.attrs.length||Y.classes.length;Y.oquery=Y.query=B(ia,$);Y.otag=Y.tag=Y.oper?null:Y.tag||"*";if(Y.tag)Y.tag=Y.tag.toUpperCase();if(G.length&&G[G.length-1].oper){Y.infixOper=G.pop();Y.query=Y.infixOper.query+" "+Y.query}G.push(Y);
Y=null};da=ba,ba=y.charAt($),$<oa;$++)if(da!="\\"){if(!Y){ia=$;Y={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return g?this.otag:this.tag}};aa=$}if(H>=0)if(ba=="]"){if(ea.attr)ea.matchFor=B(U||H+1,$);else ea.attr=B(H+1,$);if(H=ea.matchFor)if(H.charAt(0)=='"'||H.charAt(0)=="'")ea.matchFor=H.slice(1,-1);Y.attrs.push(ea);ea=null;H=U=-1}else{if(ba=="="){U="|~^$*".indexOf(da)>=0?da:"";ea.type=U+ba;ea.attr=B(H+1,$-U.length);U=$+1}}else if(P>=0){if(ba==")"){if(V>=
0)ea.value=B(P+1,$);V=P=-1}}else if(ba=="#"){la();W=$+1}else if(ba=="."){la();T=$}else if(ba==":"){la();V=$}else if(ba=="["){la();H=$;ea={}}else if(ba=="("){if(V>=0){ea={name:B(V+1,$),value:null};Y.pseudos.push(ea)}P=$}else ba==" "&&da!=ba&&sa()}return G},p=function(y,B){if(!y)return B;if(!B)return y;return function(){return y.apply(window,arguments)&&B.apply(window,arguments)}},n=function(y,B){B=B||[];y&&B.push(y);return B},m=function(y){return 1==y.nodeType},o=function(y,B){if(!y)return"";if(B==
"class")return y.className||"";if(B=="for")return y.htmlFor||"";if(B=="style")return y.style.cssText||"";return(g?y.getAttribute(B):y.getAttribute(B,2))||""},s={"*=":function(y,B){return function(G){return o(G,y).indexOf(B)>=0}},"^=":function(y,B){return function(G){return o(G,y).indexOf(B)==0}},"$=":function(y,B){return function(G){G=" "+o(G,y);return G.lastIndexOf(B)==G.length-B.length}},"~=":function(y,B){var G=" "+B+" ";return function(H){return(" "+o(H,y)+" ").indexOf(G)>=0}},"|=":function(y,
B){var G=" "+B+"-";return function(H){H=" "+o(H,y);return H==B||H.indexOf(G)==0}},"=":function(y,B){return function(G){return o(G,y)==B}}},q=typeof i().firstChild.nextElementSibling=="undefined",t=!q?"nextElementSibling":"nextSibling",C=!q?"previousElementSibling":"previousSibling",D=q?m:k,v=function(y){for(;y=y[C];)if(D(y))return false;return true},w=function(y){for(;y=y[t];)if(D(y))return false;return true},z=function(y){var B=y.parentNode,G=0,H=B[h],P=y._i||-1,U=B._l||-1;if(!H)return-1;H=H.length;
if(U==H&&P>=0&&U>=0)return P;B._l=H;P=-1;for(B=B.firstElementChild||B.firstChild;B;B=B[t])if(D(B)){B._i=++G;if(y===B)P=G}return P},x=function(y){return!(z(y)%2)},E=function(y){return z(y)%2},F={checked:function(){return function(y){return!!("checked"in y?y.checked:y.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(){return function(y){if(!v(y))return false;if(!w(y))return false;return true}},empty:function(){return function(y){var B=y.childNodes;
for(y=y.childNodes.length-1;y>=0;y--){var G=B[y].nodeType;if(G===1||G==3)return false}return true}},contains:function(y,B){y=B.charAt(0);if(y=='"'||y=="'")B=B.slice(1,-1);return function(G){return G.innerHTML.indexOf(B)>=0}},not:function(y,B){y=l(B)[0];B={el:1};if(y.tag!="*")B.tag=1;if(!y.classes.length)B.classes=1;var G=J(y,B);return function(H){return!G(H)}},"nth-child":function(y,B){y=parseInt;if(B=="odd")return E;else if(B=="even")return x;if(B.indexOf("n")!=-1){B=B.split("n",2);var G=B[0]?B[0]==
"-"?-1:y(B[0]):1,H=B[1]?y(B[1]):0,P=0,U=-1;if(G>0)if(H<0)H=H%G&&G+H%G;else{if(H>0){if(H>=G)P=H-H%G;H%=G}}else if(G<0){G*=-1;if(H>0){U=H;H%=G}}if(G>0)return function(T){T=z(T);return T>=P&&(U<0||T<=U)&&T%G==H};else B=H}var V=y(B);return function(T){return z(T)==V}}},K=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(y){var B=y.toLowerCase();if(B=="class")y="className";return function(G){return g?G.getAttribute(y):G[y]||G[B]}}:function(y){return function(B){return B&&B.getAttribute&&B.hasAttribute(y)}},
J=function(y,B){if(!y)return k;B=B||{};var G=null;"el"in B||(G=p(G,m));if(!("tag"in B))if(y.tag!="*")G=p(G,function(H){return H&&H.tagName==y.getTag()});"classes"in B||e(y.classes,function(H,P){var U=new RegExp("(?:^|\\s)"+H+"(?:\\s|$)");G=p(G,function(V){return U.test(V.className)});G.count=P});"pseudos"in B||e(y.pseudos,function(H){var P=H.name;if(F[P])G=p(G,F[P](P,H.value))});"attrs"in B||e(y.attrs,function(H){var P,U=H.attr;if(H.type&&s[H.type])P=s[H.type](U,H.matchFor);else if(U.length)P=K(U);
if(P)G=p(G,P)});if(!("id"in B))if(y.id)G=p(G,function(H){return!!H&&H.id==y.id});G||"default"in B||(G=k);return G},L=function(y){return function(B,G,H){for(;B=B[t];)if(!(q&&!m(B))){if((!H||ja(B,H))&&y(B))G.push(B);break}return G}},M=function(y){return function(B,G,H){for(B=B[t];B;){if(D(B)){if(H&&!ja(B,H))break;y(B)&&G.push(B)}B=B[t]}return G}},Q=function(y){y=y||k;return function(B,G,H){for(var P=0,U=B[h];B=U[P++];)if(D(B)&&(!H||ja(B,H))&&y(B,P))G.push(B);return G}},N=function(y,B){for(y=y.parentNode;y;){if(y==
B)break;y=y.parentNode}return!!y},S={},X=function(y){var B=S[y.query];if(B)return B;var G=y.infixOper;G=G?G.oper:"";var H=J(y,{el:1}),P="*"==y.tag,U=i().getElementsByClassName;if(G){U={el:1};if(P)U.tag=1;H=J(y,U);if("+"==G)B=L(H);else if("~"==G)B=M(H);else if(">"==G)B=Q(H)}else if(y.id){H=!y.loops&&P?k:J(y,{el:1,id:1});B=function(T,W){var aa=a.byId(y.id,T.ownerDocument||T);if(aa&&H(aa))if(9==T.nodeType)return n(aa,W);else if(N(aa,T))return n(aa,W)}}else if(U&&/\{\s*\[native code\]\s*\}/.test(String(U))&&
y.classes.length&&!j){H=J(y,{el:1,classes:1,id:1});var V=y.classes.join(" ");B=function(T,W,aa){W=n(0,W);for(var da,ba=0,ia=T.getElementsByClassName(V);da=ia[ba++];)H(da,T)&&ja(da,aa)&&W.push(da);return W}}else if(!P&&!y.loops)B=function(T,W,aa){W=n(0,W);for(var da=0,ba=T.getElementsByTagName(y.getTag());T=ba[da++];)ja(T,aa)&&W.push(T);return W};else{H=J(y,{el:1,tag:1,id:1});B=function(T,W,aa){W=n(0,W);for(var da,ba=0,ia=T.getElementsByTagName(y.getTag());da=ia[ba++];)H(da,T)&&ja(da,aa)&&W.push(da);
return W}}return S[y.query]=B},ca=function(y,B){y=n(y);for(var G,H,P=B.length,U,V,T=0;T<P;T++){V=[];G=B[T];H=y.length-1;if(H>0){U={};V.nozip=true}H=X(G);for(var W=0;G=y[W];W++)H(G,V,U);if(!V.length)break;y=V}return V},fa={},r={},u=function(y){var B=l(d(y));if(B.length==1){var G=X(B[0]);return function(H){if(H=G(H,new f))H.nozip=true;return H}}return function(H){return ca(H,B)}},A=navigator.userAgent;A=a.isWebKit&&A.indexOf("WebKit/")>0&&parseFloat(A.split("WebKit/")[1])>528;var I=a.isIE?"commentStrip":
"nozip",O=!!i().querySelectorAll&&(!a.isSafari||a.isSafari>3.1||A),R=/n\+\d|([^ ])?([>~+])([^ =])?/g,Z=function(y,B,G,H){return G?(B?B+" ":"")+G+(H?" "+H:""):y},ga=function(y,B){y=y.replace(R,Z);if(O){var G=r[y];if(G&&!B)return G}if(G=fa[y])return G;G=y.charAt(0);var H=-1==y.indexOf(" ");if(y.indexOf("#")>=0&&H)B=true;if(O&&!B&&">~+".indexOf(G)==-1&&(!a.isIE||y.indexOf(":")==-1)&&!(j&&y.indexOf(".")>=0)&&y.indexOf(":contains")==-1&&y.indexOf(":checked")==-1&&y.indexOf("|=")==-1){var P=">~+".indexOf(y.charAt(y.length-
1))>=0?y+" *":y;return r[y]=function(V){try{if(!(9==V.nodeType||H))throw"";var T=V.querySelectorAll(P);T[I]=true;return T}catch(W){return ga(y,true)(V)}}}else{var U=y.split(/\s*,\s*/);return fa[y]=U.length<2?u(y):function(V){for(var T=0,W=[],aa;aa=U[T++];)W=W.concat(u(aa)(V));return W}}},ha=0,ta=a.isIE?function(y){return g?y.getAttribute("_uid")||y.setAttribute("_uid",++ha)||ha:y.uniqueID}:function(y){return y._uid||(y._uid=++ha)},ja=function(y,B){if(!B)return 1;y=ta(y);if(!B[y])return B[y]=1;return 0},
ka="_zipIdx",ua=function(y){if(y&&y.nozip)return f._wrap?f._wrap(y):y;var B=new f;if(!y||!y.length)return B;y[0]&&B.push(y[0]);if(y.length<2)return B;ha++;if(a.isIE&&g){var G=ha+"";y[0].setAttribute(ka,G);for(var H=1,P;P=y[H];H++){y[H].getAttribute(ka)!=G&&B.push(P);P.setAttribute(ka,G)}}else if(a.isIE&&y.commentStrip)try{for(H=1;P=y[H];H++)m(P)&&B.push(P)}catch(U){}else{if(y[0])y[0][ka]=ha;for(H=1;P=y[H];H++){y[H][ka]!=ha&&B.push(P);P[ka]=ha}}return B};a.query=function(y,B){f=a._NodeListCtor;if(!y)return new f;
if(y.constructor==f)return y;if(typeof y!="string")return new f(y);if(typeof B=="string"){B=a.byId(B);if(!B)return new f}B=B||i();var G=B.ownerDocument||B.documentElement;g=B.contentType&&B.contentType=="application/xml"||a.isOpera&&(B.doctype||G.toString()=="[object XMLDocument]")||!!G&&(a.isIE?G.xml:B.xmlVersion||G.xmlVersion);if((y=ga(y)(B))&&y.nozip&&!f._wrap)return y;return ua(y)};a.query.pseudos=F;a._filterQueryResult=function(y,B,G){var H=new a._NodeListCtor,P=l(B);P=P.length==1&&!/[^\w#\.]/.test(B)?
J(P[0]):function(T){return dojo.query(B,G).indexOf(T)!=-1};for(var U=0,V;V=y[U];U++)P(V)&&H.push(V);return H}},c=function(){acme={trim:function(f){f=f.replace(/^\s+/,"");for(var i=f.length-1;i>=0;i--)if(/\S/.test(f.charAt(i))){f=f.substring(0,i+1);break}return f},forEach:function(f,i,j){if(f&&f.length)for(var h=0,g=f.length;h<g;++h)i.call(j||window,f[h],h,f)},byId:function(f,i){return typeof f=="string"?(i||document).getElementById(f):f},doc:document,NodeList:Array};var a=navigator,d=a.userAgent;
a=a.appVersion;var e=parseFloat(a);acme.isOpera=d.indexOf("Opera")>=0?e:undefined;acme.isKhtml=a.indexOf("Konqueror")>=0?e:undefined;acme.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined;acme.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;if((d=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome){acme.isSafari=parseFloat(a.split("Version/")[1]);if(!acme.isSafari||parseFloat(a.substr(d+7))<=419.3)acme.isSafari=2}if(document.all&&!acme.isOpera)acme.isIE=parseFloat(a.split("MSIE ")[1])||
undefined;Array._wrap=function(f){return f};return acme};typeof define=="function"&&define("dojo/_base/query",["dojo/lib/kernel","dojo/_base/NodeList","dojo/_base/lang","dojo/_base/window"],function(a){b(this.queryPortability||this.acme||a)});if(typeof define!="function")if(this.dojo){dojo.provide("dojo._base.query");dojo.require("dojo._base.NodeList");dojo.require("dojo._base.lang");b(this.queryPortability||this.acme||dojo)}else b(this.queryPortability||this.acme||c())})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){function c(q,t,C){if(C!==null){var D=q[t];if(typeof D=="string")q[t]=[D,C];else if(a.isArray(D))D.push(C);else q[t]=C}}var a=b,d=a.config;b.fieldToObject=function(q){var t=null;if(q=a.byId(q)){var C=q.name,D=(q.type||"").toLowerCase();if(C&&D&&!q.disabled)if(D=="radio"||D=="checkbox"){if(q.checked)t=q.value}else if(q.multiple){t=[];a.query("option",q).forEach(function(v){v.selected&&
t.push(v.value)})}else t=q.value}return t};b.formToObject=function(q){var t={};a.forEach(b.byId(q).elements,function(C){var D=C.name,v=(C.type||"").toLowerCase();if(D&&v&&"file|submit|image|reset|button|".indexOf(v)==-1&&!C.disabled){c(t,D,a.fieldToObject(C));if(v=="image")t[D+".x"]=t[D+".y"]=t[D].x=t[D].y=0}});return t};b.objectToQuery=function(q){var t=encodeURIComponent,C=[],D={};for(var v in q){var w=q[v];if(w!=D[v]){var z=t(v)+"=";if(a.isArray(w))for(var x=0;x<w.length;x++)C.push(z+t(w[x]));
else C.push(z+t(w))}}return C.join("&")};b.formToQuery=function(q){return a.objectToQuery(a.formToObject(q))};b.formToJson=function(q,t){return a.toJson(a.formToObject(q),t)};b.queryToObject=function(q){var t={};q=q.split("&");var C=decodeURIComponent;a.forEach(q,function(D){if(D.length){var v=D.split("=");D=C(v.shift());v=C(v.join("="));if(typeof t[D]=="string")t[D]=[t[D]];if(a.isArray(t[D]))t[D].push(v);else t[D]=v}});return t};b._blockAsync=false;var e=a._contentHandlers=b.contentHandlers={text:function(q){return q.responseText},
json:function(q){return a.fromJson(q.responseText||null)},"json-comment-filtered":function(q){b.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.");q=q.responseText;var t=q.indexOf("/*"),C=q.lastIndexOf("*/");if(t==-1||C==-1)throw new Error("JSON was not comment filtered");
return a.fromJson(q.substring(t+2,C))},javascript:function(q){return a.eval(q.responseText)},xml:function(q){var t=q.responseXML;if(a.isIE&&(!t||!t.documentElement)){var C=function(D){return"MSXML"+D+".DOMDocument"};C=["Microsoft.XMLDOM",C(6),C(4),C(3),C(2)];a.some(C,function(D){try{var v=new ActiveXObject(D);v.async=false;v.loadXML(q.responseText);t=v}catch(w){return false}return true})}return t},"json-comment-optional":function(q){return q.responseText&&/^[^{\[]*\/\*/.test(q.responseText)?e["json-comment-filtered"](q):
e.json(q)}};b._ioSetArgs=function(q,t,C,D){var v={args:q,url:q.url},w=null;if(q.form){w=a.byId(q.form);var z=w.getAttributeNode("action");v.url=v.url||(z?z.value:null);w=a.formToObject(w)}z=[{}];w&&z.push(w);q.content&&z.push(q.content);q.preventCache&&z.push({"dojo.preventCache":(new Date).valueOf()});v.query=a.objectToQuery(a.mixin.apply(null,z));v.handleAs=q.handleAs||"text";var x=new a.Deferred(t);x.addCallbacks(C,function(J){return D(J,x)});var E=q.load;E&&a.isFunction(E)&&x.addCallback(function(J){return E.call(q,
J,v)});var F=q.error;F&&a.isFunction(F)&&x.addErrback(function(J){return F.call(q,J,v)});var K=q.handle;K&&a.isFunction(K)&&x.addBoth(function(J){return K.call(q,J,v)});if(d.ioPublish&&a.publish&&v.args.ioPublish!==false){x.addCallbacks(function(J){a.publish("/dojo/io/load",[x,J]);return J},function(J){a.publish("/dojo/io/error",[x,J]);return J});x.addBoth(function(J){a.publish("/dojo/io/done",[x,J]);return J})}x.ioArgs=v;return x};var f=function(q){q.canceled=true;var t=q.ioArgs.xhr,C=typeof t.abort;
if(C=="function"||C=="object"||C=="unknown")t.abort();q=q.ioArgs.error;if(!q){q=new Error("xhr cancelled");q.dojoType="cancel"}return q},i=function(q){q=e[q.ioArgs.handleAs](q.ioArgs.xhr);return q===undefined?null:q},j=function(q,t){t.ioArgs.args.failOk||console.error(q);return q},h=null,g=[],k=0,l=function(q){if(k<=0){k=0;if(d.ioPublish&&a.publish&&(!q||q&&q.ioArgs.args.ioPublish!==false))a.publish("/dojo/io/stop")}},p=function(){var q=(new Date).getTime();if(!a._blockAsync)for(var t=0,C;t<g.length&&
(C=g[t]);t++){var D=C.dfd,v=function(){if(!D||D.canceled||!C.validCheck(D)){g.splice(t--,1);k-=1}else if(C.ioCheck(D)){g.splice(t--,1);C.resHandle(D);k-=1}else if(D.startTime)if(D.startTime+(D.ioArgs.args.timeout||0)<q){g.splice(t--,1);var z=new Error("timeout exceeded");z.dojoType="timeout";D.errback(z);D.cancel();k-=1}};if(b.config.debugAtAllCosts)v.call(this);else try{v.call(this)}catch(w){D.errback(w)}}l(D);if(!g.length){clearInterval(h);h=null}};b._ioCancelAll=function(){try{a.forEach(g,function(t){try{t.dfd.cancel()}catch(C){}})}catch(q){}};
a.isIE&&a.addOnWindowUnload(a._ioCancelAll);a._ioNotifyStart=function(q){if(d.ioPublish&&a.publish&&q.ioArgs.args.ioPublish!==false){k||a.publish("/dojo/io/start");k+=1;a.publish("/dojo/io/send",[q])}};a._ioWatch=function(q,t,C,D){var v=q.ioArgs.args;if(v.timeout)q.startTime=(new Date).getTime();g.push({dfd:q,validCheck:t,ioCheck:C,resHandle:D});h||(h=setInterval(p,50));v.sync&&p()};var n="application/x-www-form-urlencoded",m=function(q){return q.ioArgs.xhr.readyState},o=function(q){return 4==q.ioArgs.xhr.readyState},
s=function(q){var t=q.ioArgs.xhr;if(a._isDocumentOk(t))q.callback(q);else{var C=new Error("Unable to load "+q.ioArgs.url+" status:"+t.status);C.status=t.status;C.responseText=t.responseText;q.errback(C)}};b._ioAddQueryToUrl=function(q){if(q.query.length){q.url+=(q.url.indexOf("?")==-1?"?":"&")+q.query;q.query=null}};b.xhr=function(q,t,C){var D=a._ioSetArgs(t,f,i,j),v=D.ioArgs,w=v.xhr=a._xhrObj(v.args);if(!w){D.cancel();return D}if("postData"in t)v.query=t.postData;else if("putData"in t)v.query=t.putData;
else if("rawBody"in t)v.query=t.rawBody;else if(arguments.length>2&&!C||"POST|PUT".indexOf(q.toUpperCase())==-1)a._ioAddQueryToUrl(v);w.open(q,v.url,t.sync!==true,t.user||undefined,t.password||undefined);if(t.headers)for(var z in t.headers)if(z.toLowerCase()==="content-type"&&!t.contentType)t.contentType=t.headers[z];else t.headers[z]&&w.setRequestHeader(z,t.headers[z]);w.setRequestHeader("Content-Type",t.contentType||n);if(!t.headers||!("X-Requested-With"in t.headers))w.setRequestHeader("X-Requested-With",
"XMLHttpRequest");a._ioNotifyStart(D);if(b.config.debugAtAllCosts)w.send(v.query);else try{w.send(v.query)}catch(x){v.error=x;D.cancel()}a._ioWatch(D,m,o,s);return D};b.xhrGet=function(q){return a.xhr("GET",q)};b.rawXhrPost=b.xhrPost=function(q){return a.xhr("POST",q,true)};b.rawXhrPut=b.xhrPut=function(q){return a.xhr("PUT",q,true)};b.xhrDelete=function(q){return a.xhr("DELETE",q)}})();return b.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(b){(function(){var c=b._mixin;b._Line=function(j,h){this.start=j;this.end=h};b._Line.prototype.getValue=function(j){return(this.end-this.start)*j+this.start};b.Animation=function(j){c(this,j);if(b.isArray(this.curve))this.curve=new b._Line(this.curve[0],this.curve[1])};b._Animation=b.Animation;b.extend(b.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var j=this._percent,h=this.easing;return h?h(j):j},_fire:function(j,h){h=h||[];if(this[j])if(b.config.debugAtAllCosts)this[j].apply(this,h);else try{this[j].apply(this,h)}catch(g){console.error("exception in animation handler for:",j);console.error(g)}return this},play:function(j,h){var g=this;g._delayTimer&&g._clearTimer();if(h){g._stopTimer();g._active=g._paused=false;g._percent=0}else if(g._active&&!g._paused)return g;g._fire("beforeBegin",[g.node]);j=j||g.delay;var k=b.hitch(g,
"_play",h);if(j>0){g._delayTimer=setTimeout(k,j);return g}k();return g},_play:function(){var j=this;j._delayTimer&&j._clearTimer();j._startTime=(new Date).valueOf();if(j._paused)j._startTime-=j.duration*j._percent;j._active=true;j._paused=false;var h=j.curve.getValue(j._getStep());if(!j._percent){if(!j._startRepeatCount)j._startRepeatCount=j.repeat;j._fire("onBegin",[h])}j._fire("onPlay",[h]);j._cycle();return j},pause:function(){var j=this;j._delayTimer&&j._clearTimer();j._stopTimer();if(!j._active)return j;
j._paused=true;j._fire("onPause",[j.curve.getValue(j._getStep())]);return j},gotoPercent:function(j,h){var g=this;g._stopTimer();g._active=g._paused=true;g._percent=j;h&&g.play();return g},stop:function(j){var h=this;h._delayTimer&&h._clearTimer();if(!h._timer)return h;h._stopTimer();if(j)h._percent=1;h._fire("onStop",[h.curve.getValue(h._getStep())]);h._active=h._paused=false;return h},status:function(){if(this._active)return this._paused?"paused":"playing";return"stopped"},_cycle:function(){var j=
this;if(j._active){var h=((new Date).valueOf()-j._startTime)/j.duration;if(h>=1)h=1;j._percent=h;if(j.easing)h=j.easing(h);j._fire("onAnimate",[j.curve.getValue(h)]);if(j._percent<1)j._startTimer();else{j._active=false;if(j.repeat>0){j.repeat--;j.play(null,true)}else if(j.repeat==-1)j.play(null,true);else if(j._startRepeatCount){j.repeat=j._startRepeatCount;j._startRepeatCount=0}j._percent=0;j._fire("onEnd",[j.node]);!j.repeat&&j._stopTimer()}}return j},_clearTimer:function(){clearTimeout(this._delayTimer);
delete this._delayTimer}});var a=0,d=null,e={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer){this._timer=b.connect(e,"run",this,"_cycle");a++}d||(d=setInterval(b.hitch(e,"run"),this.rate))},_stopTimer:function(){if(this._timer){b.disconnect(this._timer);this._timer=null;a--}if(a<=0){clearInterval(d);d=null;a=0}}});var f=b.isIE?function(j){var h=j.style;if(!h.width.length&&b.style(j,"width")=="auto")h.width="auto"}:function(){};b._fade=function(j){j.node=b.byId(j.node);
var h=c({properties:{}},j);j=h.properties.opacity={};j.start=!("start"in h)?function(){return+b.style(h.node,"opacity")||0}:h.start;j.end=h.end;j=b.animateProperty(h);b.connect(j,"beforeBegin",b.partial(f,h.node));return j};b.fadeIn=function(j){return b._fade(c({end:1},j))};b.fadeOut=function(j){return b._fade(c({end:0},j))};b._defaultEasing=function(j){return 0.5+Math.sin((j+1.5)*Math.PI)/2};var i=function(j){this._properties=j;for(var h in j){var g=j[h];if(g.start instanceof b.Color)g.tempColor=
new b.Color}};i.prototype.getValue=function(j){var h={};for(var g in this._properties){var k=this._properties[g],l=k.start;if(l instanceof b.Color)h[g]=b.blendColors(l,k.end,j,k.tempColor).toCss();else b.isArray(l)||(h[g]=(k.end-l)*j+l+(g!="opacity"?k.units||"px":0))}return h};b.animateProperty=function(j){var h=j.node=b.byId(j.node);if(!j.easing)j.easing=b._defaultEasing;j=new b.Animation(j);b.connect(j,"beforeBegin",j,function(){var g={};for(var k in this.properties){if(k=="width"||k=="height")this.node.display=
"block";var l=this.properties[k];if(b.isFunction(l))l=l(h);l=g[k]=c({},b.isObject(l)?l:{end:l});if(b.isFunction(l.start))l.start=l.start(h);if(b.isFunction(l.end))l.end=l.end(h);var p=k.toLowerCase().indexOf("color")>=0,n=function(m,o){var s={height:m.offsetHeight,width:m.offsetWidth}[o];if(s!==undefined)return s;s=b.style(m,o);return o=="opacity"?+s:p?s:parseFloat(s)};if("end"in l){if(!("start"in l))l.start=n(h,k)}else l.end=n(h,k);if(p){l.start=new b.Color(l.start);l.end=new b.Color(l.end)}else l.start=
k=="opacity"?+l.start:parseFloat(l.start)}this.curve=new i(g)});b.connect(j,"onAnimate",b.hitch(b,"style",j.node));return j};b.anim=function(j,h,g,k,l,p){return b.animateProperty({node:j,duration:g||b.Animation.prototype.duration,properties:h,easing:k,onEnd:l}).play(p||0)}})();return b.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"],function(b){return b});
define("orion/serviceregistry",["dojo"],function(b){function c(i,j,h){this.serviceId=i;this.name=j;this.properties=h}function a(i,j,h){this.serviceId=i;this.serviceReference=j;this.internalRegistry=h}function d(i,j,h){this.serviceId=i;this.implementation=j;this.internalRegistry=h;var g;for(g in j)if(typeof j[g]==="function")this[g]=function(k){return function(){if(h.isRegistered(i)){var l=new b.Deferred;try{var p=j[k].apply(j,Array.prototype.slice.call(arguments));b.when(p,b.hitch(l,l.resolve),b.hitch(l,
l.reject),b.hitch(l,l.progress))}catch(n){l.reject(n)}return l}throw new Error("Service was unregistered");}}(g)}function e(){this._namedlisteners={}}function f(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new e;var i=this;this.internalRegistry={isRegistered:function(j){return i._entries[j]?true:false},unregisterService:function(j){var h=i._entries[j];if(h){for(var g=h.reference,k=i._namedReferences[g.getName()],l=0;l<k.length;l++)if(k[l]===g){if(k.length===1)delete i._namedReferences[g.getName()];
else k.splice(l,1);break}i._entries[j]=null;i._serviceEventTarget.dispatchEvent("serviceRemoved",g,h.service)}},dispatchEvent:function(j,h){var g=i._entries[j];g&&g.eventTarget.dispatchEvent.apply(g.eventTarget,[h].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(j,h,g){(j=i._entries[j])&&j.eventTarget.addEventListener(h,g)},removeEventListener:function(j,h,g){(j=i._entries[j])&&j.eventTarget.removeEventListener(h,g)}}}c.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var i=[],j;for(j in this.properties)this.properties.hasOwnProperty(j)&&i.push(j);return i},getProperty:function(i){return this.properties[i]}};c.prototype.constructor=c;a.prototype={unregister:function(){this.internalRegistry.unregisterService(this.serviceId)},dispatchEvent:function(i){this.internalRegistry.dispatchEvent.apply(this.internalRegistry,[this.serviceId,i].concat(Array.prototype.slice.call(arguments,1)))},getServiceReference:function(){return this.serviceReference}};
a.prototype.constructor=a;d.prototype={addEventListener:function(i,j){this.internalRegistry.addEventListener(this.serviceId,i,j)},removeEventListener:function(i,j){this.internalRegistry.removeEventListener(this.serviceId,i,j)}};d.prototype.constructor=d;e.prototype={dispatchEvent:function(i){var j=this._namedlisteners[i];if(j)for(var h=0;h<j.length;h++)try{var g=Array.prototype.slice.call(arguments,1);j[h].apply(null,g)}catch(k){console.log(k)}},addEventListener:function(i,j){this._namedlisteners[i]=
this._namedlisteners[i]||[];this._namedlisteners[i].push(j)},removeEventListener:function(i,j){var h=this._namedlisteners[i];if(h)for(var g=0;g<h.length;g++)if(h[g]===j){if(h.length===1)delete this._namedlisteners[i];else h.splice(g,1);break}}};e.prototype.constructor=e;f.prototype={getService:function(i,j){var h,g=new b.Deferred;if(typeof i==="string"){if(this._namedReferences[i])for(var k=0;k<this._namedReferences[i].length;k++)if(h=this._entries[this._namedReferences[i][k].getServiceId()].service)break}else h=
this._entries[i.getServiceId()].service;if(h)g.resolve(h);else if(j===0)g.reject(new Error("timeout: getService"));else{var l=this,p=function(n,m){if(i===n||i===n.getName()){g.resolve(m);l._serviceEventTarget.removeEventListener("serviceAdded",p)}};this._serviceEventTarget.addEventListener("serviceAdded",p)}return g.promise},getServiceReferences:function(i){if(i)return this._namedReferences[i]?this._namedReferences[i]:[];i=[];for(var j=0;j<this._entries.length;j++)this._entries[j]&&i.push(this._entries[j].reference);
return i},registerService:function(i,j,h){var g=this._entries.length;h=new c(g,i,h);j=new d(g,j,this.internalRegistry);this._namedReferences[i]=this._namedReferences[i]||[];this._namedReferences[i].push(h);this._entries.push({reference:h,service:j,eventTarget:new e});this._serviceEventTarget.dispatchEvent("serviceAdded",h,j);return new a(g,h,this.internalRegistry)},addEventListener:function(i,j){this._serviceEventTarget.addEventListener(i,j)},removeEventListener:function(i,j){this._serviceEventTarget.removeEventListener(i,
j)}};f.prototype.constructor=f;return{ServiceReference:c,ServiceRegistration:a,Service:d,EventTarget:e,ServiceRegistry:f}});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});
define("dojo/hash",["dojo"],function(b){(function(){function c(l,p){p=l.indexOf(p);return p>=0?l.substring(p+1):""}function a(){return c(location.href,"#")}function d(){b.publish("/dojo/hashchange",[a()])}function e(){if(a()!==j){j=a();d()}}function f(l){if(h)if(h.isTransitioning())setTimeout(b.hitch(null,f,l),k);else{var p=h.iframe.location.href,n=p.indexOf("?");h.iframe.location.replace(p.substring(0,n)+"?"+l)}else{location.replace("#"+l);!g&&e()}}function i(){function l(){j=a();m=t?j:c(C.href,
"?");o=false;s=null}var p=document.createElement("iframe"),n=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html");b.config.useXDomain&&!b.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");p.id="dojo-hash-iframe";p.src=n+"?"+a();p.style.display="none";document.body.appendChild(p);this.iframe=b.global["dojo-hash-iframe"];
var m,o,s,q,t,C=this.iframe.location;this.isTransitioning=function(){return o};this.pollLocation=function(){if(!t)try{var D=c(C.href,"?");if(document.title!=q)q=this.iframe.document.title=document.title}catch(v){t=true;console.error("dojo.hash: Error adding history entry. Server unreachable.")}var w=a();if(o&&j===w)if(t||D===s){l();d()}else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(j===w&&(t||m===D)))if(j!==w){j=w;o=true;s=w;p.src=n+"?"+s;t=false;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!t){location.href="#"+C.search.substring(1);l();d()}setTimeout(b.hitch(this,this.pollLocation),k)};l();setTimeout(b.hitch(this,this.pollLocation),k)}b.hash=function(l,p){if(!arguments.length)return a();if(l.charAt(0)=="#")l=l.substring(1);if(p)f(l);else location.href="#"+l;return l};var j,h,g,k=b.config.hashPollFrequency||100;b.addOnLoad(function(){if("onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat"))g=b.connect(b.global,"onhashchange",d);else if(document.addEventListener){j=
a();setInterval(e,k)}else if(document.attachEvent)h=new i})})();return b.hash});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],c=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,d=[];define("text",["require","exports","module"],function(){var e,f,i;if(typeof window!=="undefined"&&window.navigator&&window.document)f=function(j,h){var g=e.createXhr();g.open("GET",j,true);g.onreadystatechange=function(){g.readyState===4&&h(g.responseText)};g.send(null)};else if(typeof process!=="undefined"&&process.versions&&
process.versions.node){i=require.nodeRequire("fs");f=function(j,h){h(i.readFileSync(j,"utf8"))}}else if(typeof Packages!=="undefined")f=function(j,h){var g=new java.io.File(j);j=java.lang.System.getProperty("line.separator");g=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(g),"utf-8"));var k,l,p="";try{k=new java.lang.StringBuffer;if((l=g.readLine())&&l.length()&&l.charAt(0)===65279)l=l.substring(1);for(k.append(l);(l=g.readLine())!==null;){k.append(j);k.append(l)}p=
String(k.toString())}finally{g.close()}h(p)};return e={version:"0.24.0",strip:function(j){if(j){j=j.replace(c,"");var h=j.match(a);if(h)j=h[1]}else j="";return j},jsEscape:function(j){return j.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var j,h,g;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(h=0;h<3;h++){g=b[h];try{j=new ActiveXObject(g)}catch(k){}if(j){b=
[g];break}}if(!j)throw new Error("require.getXhr(): XMLHttpRequest not available");return j},get:f,load:function(j,h,g,k){var l=false,p=j.indexOf("."),n=j.substring(0,p),m=j.substring(p+1,j.length);p=m.indexOf("!");if(p!==-1){l=m.substring(p+1,m.length);l=l==="strip";m=m.substring(0,p)}h=h.nameToUrl(n,"."+m);e.get(h,function(o){o=l?e.strip(o):o;if(k.isBuild&&k.inlineText)d[j]=o;g(o)})},write:function(j,h,g){if(h in d){var k=e.jsEscape(d[h]);g("define('"+j+"!"+h+"', function () { return '"+k+"';});\n")}}}})})();
define("text!dijit/form/templates/ValidationTextBox.html",function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}" role="presentation"\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/i18n",["require","dojo"],function(b,c){c.getObject("i18n",true,c);c.i18n.getLocalization=c.i18n.getLocalization||function(a,d,e){e=c.i18n.normalizeLocale(e);var f=e.split("-"),i=[a,"nls",d].join(".");if(typeof c.global.require!=="undefined"){var j=b("i18n!"+[a.replace(/\./g,"/"),"nls",d].join("/"));(c._loadedModules[i]=c._loadedModules[i]||{})[f.join("_")]=j.root||j}if(i=c._loadedModules[i]){var h;for(j=f.length;j>0;j--){var g=f.slice(0,j).join("_");if(i[g]){h=i[g];break}}if(!h)h=i.ROOT;
if(h){a=function(){};a.prototype=h;return new a}}throw new Error("Bundle not found: "+d+" in "+a+" , locale="+e);};c.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():c.locale;if(a=="root")a="ROOT";return a};c.i18n._requireLocalization=function(a,d,e,f){e=c.i18n.normalizeLocale(e);var i=[a,"nls",d].join("."),j="";if(f){for(var h=f.split(","),g=0;g<h.length;g++)if(e.indexOf(h[g])==0)if(h[g].length>j.length)j=h[g];j||(j="ROOT")}h=f?j:e;var k=c._loadedModules[i];g=null;if(k){if(c.config.localizationComplete&&
k._built)return;g=h.replace(/-/g,"_");g=c._loadedModules[i+"."+g]}if(!g){k=c.provide(i);var l=c._getModuleSymbols(a).concat("nls").join("/"),p;c.i18n._searchLocalePath(h,f,function(n){var m=n.replace(/-/g,"_"),o=i+"."+m,s=false;if(c._loadedModules[o])s=true;else{c.provide(o);o=[l];n!="ROOT"&&o.push(n);o.push(d);n=o.join("/")+".js";s=c._loadPath(n,null,function(q){q=q.root||q;var t=function(){};t.prototype=p;k[m]=new t;for(var C in q)k[m][C]=q[C]})}if(s&&k[m])p=k[m];else k[m]=p;if(f)return true})}if(f&&
e!=j)k[e.replace(/-/g,"_")]=k[j.replace(/-/g,"_")]};(function(){var a=c.config.extraLocale;if(a){if(!a instanceof Array)a=[a];var d=c.i18n._requireLocalization;c.i18n._requireLocalization=function(e,f,i,j){d(e,f,i,j);if(!i)for(i=0;i<a.length;i++)d(e,f,a[i],j)}}})();c.i18n._searchLocalePath=function(a,d,e){a=c.i18n.normalizeLocale(a);var f=a.split("-");a=[];for(var i=f.length;i>0;i--)a.push(f.slice(0,i).join("-"));a.push(false);d&&a.reverse();for(d=a.length-1;d>=0;d--)if(e(a[d]||"ROOT"))break};c.i18n._preloadLocalizations=
function(a,d){function e(j){j=c.i18n.normalizeLocale(j);c.i18n._searchLocalePath(j,true,function(h){for(var g=0;g<d.length;g++)if(d[g]==h){c.require(a+"_"+h);return true}return false})}e();for(var f=c.config.extraLocale||[],i=0;i<f.length;i++)e(f[i])};return c.i18n});define("text!dijit/form/templates/TextBox.html",function(){return'<div class="dijit dijitReset dijitInline dijitLeft" id="widget_${id}" role="presentation"\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/window",["dojo"],function(b){b.getObject("window",true,b);b.window.getBox=function(){var c=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:c.clientWidth,h:c.clientHeight,l:a.x,t:a.y}};b.window.get=function(c){if(b.isIE&&window!==document.parentWindow){c.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=c._parentWindow;c._parentWindow=null;return a}return c.parentWindow||c.defaultView};b.window.scrollIntoView=function(c,
a){try{c=b.byId(c);var d=c.ownerDocument||b.doc,e=d.body||b.body(),f=d.documentElement||e.parentNode,i=b.isIE,j=b.isWebKit;if((!(b.isMoz||i||j||b.isOpera)||c==e||c==f)&&typeof c.scrollIntoView!="undefined")c.scrollIntoView(false);else{var h=d.compatMode=="BackCompat",g=i>=9&&c.ownerDocument.parentWindow.frameElement?f.clientHeight>0&&f.clientWidth>0&&(e.clientHeight==0||e.clientWidth==0||e.clientHeight>f.clientHeight||e.clientWidth>f.clientWidth)?f:e:h?e:f;d=j?e:g;var k=g.clientWidth,l=g.clientHeight,
p=!b._isBodyLtr(),n=a||b.position(c),m=c.parentNode;a=function(F){return i<=6||i&&h?false:b.style(F,"position").toLowerCase()=="fixed"};if(!a(c))for(;m;){if(m==e)m=d;var o=b.position(m),s=a(m);if(m==d){o.w=k;o.h=l;if(d==f&&i&&p)o.x+=d.offsetWidth-o.w;if(o.x<0||!i)o.x=0;if(o.y<0||!i)o.y=0}else{var q=b._getPadBorderExtents(m);o.w-=q.w;o.h-=q.h;o.x+=q.l;o.y+=q.t;var t=m.clientWidth,C=o.w-t;if(t>0&&C>0){o.w=t;o.x+=p&&(i||m.clientLeft>q.l)?C:0}t=m.clientHeight;C=o.h-t;if(t>0&&C>0)o.h=t}if(s){if(o.y<0){o.h+=
o.y;o.y=0}if(o.x<0){o.w+=o.x;o.x=0}if(o.y+o.h>l)o.h=l-o.y;if(o.x+o.w>k)o.w=k-o.x}var D=n.x-o.x,v=n.y-Math.max(o.y,0),w=D+n.w-o.w,z=v+n.h-o.h;if(w*D>0){var x=Math[D<0?"max":"min"](D,w);if(p&&(i==8&&!h||i>=9))x=-x;n.x+=m.scrollLeft;m.scrollLeft+=x;n.x-=m.scrollLeft}if(z*v>0){n.y+=m.scrollTop;m.scrollTop+=Math[v<0?"max":"min"](v,z);n.y-=m.scrollTop}m=m!=d&&!s&&m.parentNode}}}catch(E){console.error("scrollIntoView: "+E);c.scrollIntoView(false)}};return b.window});
define("dijit/_base/manager",["dojo","dijit"],function(b,c){b.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw new Error("Tried to register widget with id=="+a.id+" but that id is already registered");this._hash[a.id]=a;this.length++},remove:function(a){if(this._hash[a]){delete this._hash[a];this.length--}},forEach:function(a,d){d=d||b.global;var e=0,f;for(f in this._hash)a.call(d,this._hash[f],e++,this._hash);return this},
filter:function(a,d){d=d||b.global;var e=new c.WidgetSet,f=0,i;for(i in this._hash){var j=this._hash[i];a.call(d,j,f++,this._hash)&&e.add(j)}return e},byId:function(a){return this._hash[a]},byClass:function(a){var d=new c.WidgetSet,e,f;for(e in this._hash){f=this._hash[e];f.declaredClass==a&&d.add(f)}return d},toArray:function(){var a=[];for(var d in this._hash)a.push(this._hash[d]);return a},map:function(a,d){return b.map(this.toArray(),a,d)},every:function(a,d){d=d||b.global;var e=0,f;for(f in this._hash)if(!a.call(d,
this._hash[f],e++,this._hash))return false;return true},some:function(a,d){d=d||b.global;var e=0,f;for(f in this._hash)if(a.call(d,this._hash[f],e++,this._hash))return true;return false}});(function(){c.registry=new c.WidgetSet;var a=c.registry._hash,d=b.attr,e=b.hasAttr,f=b.style;c.byId=function(g){return typeof g=="string"?a[g]:g};var i={};c.getUniqueId=function(g){var k;do k=g+"_"+(g in i?++i[g]:(i[g]=0));while(a[k]);return c._scopeName=="dijit"?k:c._scopeName+"_"+k};c.findWidgets=function(g){function k(p){for(p=
p.firstChild;p;p=p.nextSibling)if(p.nodeType==1){var n=p.getAttribute("widgetId");if(n)(n=a[n])&&l.push(n);else k(p)}}var l=[];k(g);return l};c._destroyAll=function(){c._curFocus=null;c._prevFocus=null;c._activeStack=[];b.forEach(c.findWidgets(b.body()),function(g){if(!g._destroyed)if(g.destroyRecursive)g.destroyRecursive();else g.destroy&&g.destroy()})};b.isIE&&b.addOnWindowUnload(function(){c._destroyAll()});c.byNode=function(g){return a[g.getAttribute("widgetId")]};c.getEnclosingWidget=function(g){for(;g;){var k=
g.getAttribute&&g.getAttribute("widgetId");if(k)return a[k];g=g.parentNode}return null};var j=c._isElementShown=function(g){var k=f(g);return k.visibility!="hidden"&&k.visibility!="collapsed"&&k.display!="none"&&d(g,"type")!="hidden"};c.hasDefaultTabStop=function(g){switch(g.nodeName.toLowerCase()){case "a":return e(g,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var k;try{var l=g.contentDocument;if("designMode"in l&&l.designMode==
"on")return true;k=l.body}catch(p){try{k=g.contentWindow.document.body}catch(n){return false}}return k.contentEditable=="true"||k.firstChild&&k.firstChild.contentEditable=="true";default:return g.contentEditable=="true"}};var h=c.isTabNavigable=function(g){return d(g,"disabled")?false:e(g,"tabIndex")?d(g,"tabIndex")>=0:c.hasDefaultTabStop(g)};c._getTabNavigable=function(g){function k(D){return D&&D.tagName.toLowerCase()=="input"&&D.type&&D.type.toLowerCase()=="radio"&&D.name&&D.name.toLowerCase()}
function l(D){return t[k(D)]||D}var p,n,m,o,s,q,t={},C=function(D){b.query("> *",D).forEach(function(v){if(!(b.isIE&&v.scopeName!=="HTML"||!j(v))){if(h(v)){var w=d(v,"tabIndex");if(!e(v,"tabIndex")||w==0){p||(p=v);n=v}else if(w>0){if(!m||w<o){o=w;m=v}if(!s||w>=q){q=w;s=v}}w=k(v);if(b.attr(v,"checked")&&w)t[w]=v}v.nodeName.toUpperCase()!="SELECT"&&C(v)}})};j(g)&&C(g);return{first:l(p),last:l(n),lowest:l(m),highest:l(s)}};c.getFirstInTabbingOrder=function(g){g=c._getTabNavigable(b.byId(g));return g.lowest?
g.lowest:g.first};c.getLastInTabbingOrder=function(g){g=c._getTabNavigable(b.byId(g));return g.last?g.last:g.highest};c.defaultDuration=b.config.defaultDuration||200})();return c});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(c){c&&b.mixin(this,c)},get:function(c){return this[c]},set:function(c,a){if(typeof c==="object"){for(var d in c)this.set(d,c[d]);return this}d=this[c];this[c]=a;this._watchCallbacks&&this._watchCallbacks(c,d,a);return this},watch:function(c,a){var d=this._watchCallbacks;if(!d){var e=this;d=this._watchCallbacks=function(i,j,h,g){var k=function(l){if(l){l=l.slice();for(var p=0,n=l.length;p<n;p++)try{l[p].call(e,
i,j,h)}catch(m){console.error(m)}}};k(d["_"+i]);g||k(d["*"])}}if(!a&&typeof c==="function"){a=c;c="*"}else c="_"+c;var f=d[c];if(typeof f!=="object")f=d[c]=[];f.push(a);return{unwatch:function(){f.splice(b.indexOf(f,a),1)}}}});return b.Stateful});
define("dijit/_WidgetBase",["dojo","dijit","dijit/_base/manager","dojo/Stateful"],function(b,c){(function(){b.declare("dijit._WidgetBase",b.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,d){this.create(a,d)},create:function(a,d){this.srcNodeRef=
b.byId(d);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id=="string")this.id=this.srcNodeRef.id;if(a){this.params=a;b._mixin(this,a)}this.postMixInProperties();if(!this.id)this.id=c.getUniqueId(this.declaredClass.replace(/\./g,"_"));c.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();(a=this.srcNodeRef)&&a.parentNode&&this.domNode!==a&&a.parentNode.replaceChild(this.domNode,a)}this.domNode&&this.domNode.setAttribute("widgetId",this.id);
this.postCreate();this.srcNodeRef&&!this.srcNodeRef.parentNode&&delete this.srcNodeRef;this._created=true},_applyAttributes:function(){var a=function(e,f){if(f.params&&e in f.params||f[e])f.set(e,f[e])};for(var d in this.attributeMap)a(d,this);b.forEach(this._getSetterAttributes(),function(e){e in this.attributeMap||a(e,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var d=a._setterAttrs=[],e,f=a.prototype;for(var i in f)if(b.isFunction(f[i])&&(e=i.match(/^_set([a-zA-Z]*)Attr$/))&&
e[1])d.push(e[1].charAt(0).toLowerCase()+e[1].substr(1))}return a._setterAttrs},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode)this.domNode=this.srcNodeRef||b.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(b.map(a,function(d){return d+"Rtl"})));b.addClass(this.domNode,a)}},postCreate:function(){},startup:function(){this._started=true},destroyRecursive:function(a){this._beingDestroyed=true;this.destroyDescendants(a);this.destroy(a)},
destroy:function(a){this._beingDestroyed=true;this.uninitialize();var d=b.forEach,e=b.unsubscribe;d(this._connects,function(f){d(f,b.disconnect)});d(this._subscribes,function(f){e(f)});d(this._supportingWidgets||[],function(f){if(f.destroyRecursive)f.destroyRecursive();else f.destroy&&f.destroy()});this.destroyRendering(a);c.registry.remove(this.id);this._destroyed=true},destroyRendering:function(a){if(this.bgIframe){this.bgIframe.destroy(a);delete this.bgIframe}if(this.domNode){a?b.removeAttr(this.domNode,
"widgetId"):b.destroy(this.domNode);delete this.domNode}if(this.srcNodeRef){a||b.destroy(this.srcNodeRef);delete this.srcNodeRef}},destroyDescendants:function(a){b.forEach(this.getChildren(),function(d){d.destroyRecursive&&d.destroyRecursive(a)})},uninitialize:function(){return false},_setClassAttr:function(a){b.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var d=this[this.attributeMap.style||"domNode"];if(b.isObject(a))b.style(d,
a);else if(d.style.cssText)d.style.cssText+="; "+a;else d.style.cssText=a;this._set("style",a)},_attrToDom:function(a,d){var e=this.attributeMap[a];b.forEach(b.isArray(e)?e:[e],function(f){var i=this[f.node||f||"domNode"];switch(f.type||"attribute"){case "attribute":if(b.isFunction(d))d=b.hitch(this,d);f=f.attribute?f.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(i,f,d);break;case "innerText":i.innerHTML="";i.appendChild(b.doc.createTextNode(d));break;case "innerHTML":i.innerHTML=
d;break;case "class":b.replaceClass(i,d,this[a]);break}},this)},get:function(a){var d=this._getAttrNames(a);return this[d.g]?this[d.g]():this[a]},set:function(a,d){if(typeof a==="object"){for(var e in a)this.set(e,a[e]);return this}e=this._getAttrNames(a);if(this[e.s])var f=this[e.s].apply(this,Array.prototype.slice.call(arguments,1));else{a in this.attributeMap&&this._attrToDom(a,d);this._set(a,d)}return f||this},_attrPairNames:{},_getAttrNames:function(a){var d=this._attrPairNames;if(d[a])return d[a];
var e=a.charAt(0).toUpperCase()+a.substr(1);return d[a]={n:a+"Node",s:"_set"+e+"Attr",g:"_get"+e+"Attr"}},_set:function(a,d){var e=this[a];this[a]=d;this._watchCallbacks&&this._created&&d!==e&&this._watchCallbacks(a,e,d)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(c.byNode):[]},getChildren:function(){return this.containerNode?c.findWidgets(this.containerNode):
[]},connect:function(a,d,e){a=[b._connect(a,d,this,e)];this._connects.push(a);return a},disconnect:function(a){for(var d=0;d<this._connects.length;d++)if(this._connects[d]==a){b.forEach(a,b.disconnect);this._connects.splice(d,1);return}},subscribe:function(a,d){a=b.subscribe(a,this,d);this._subscribes.push(a);return a},unsubscribe:function(a){for(var d=0;d<this._subscribes.length;d++)if(this._subscribes[d]==a){b.unsubscribe(a);this._subscribes.splice(d,1);return}},isLeftToRight:function(){return this.dir?
this.dir=="ltr":b._isBodyLtr()},placeAt:function(a,d){a.declaredClass&&a.addChild?a.addChild(this,d):b.place(this.domNode,a,d);return this}})})();return c._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,c){b.mixin(c,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return c.getBookmark().isCollapsed},getBookmark:function(){var a,d,e=b.doc.selection,f=c._curFocus;if(b.global.getSelection){if(e=b.global.getSelection())if(e.isCollapsed){if(a=f?f.tagName:""){a=a.toLowerCase();if(a=="textarea"||a=="input"&&(!f.type||f.type.toLowerCase()=="text")){e={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:true};
return{isCollapsed:e.end<=e.start,mark:e}}}a={isCollapsed:true};if(e.rangeCount)a.mark=e.getRangeAt(0).cloneRange()}else{d=e.getRangeAt(0);a={isCollapsed:false,mark:d.cloneRange()}}}else if(e){a=f?f.tagName:"";a=a.toLowerCase();if(f&&a&&(a=="button"||a=="textarea"||a=="input"))if(e.type&&e.type.toLowerCase()=="none")return{isCollapsed:true,mark:null};else{d=e.createRange();return{isCollapsed:d.text&&d.text.length?false:true,mark:{range:d,pRange:true}}}a={};try{d=e.createRange();a.isCollapsed=!(e.type==
"Text"?d.htmlText.length:d.length)}catch(i){a.isCollapsed=true;return a}if(e.type.toUpperCase()=="CONTROL")if(d.length){a.mark=[];e=0;for(f=d.length;e<f;)a.mark.push(d.item(e++))}else{a.isCollapsed=true;a.mark=null}else a.mark=d.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var d=b.doc;if(a=a.mark)if(b.global.getSelection){var e=b.global.getSelection();if(e&&e.removeAllRanges)if(a.pRange){e=a.node;e.selectionStart=
a.start;e.selectionEnd=a.end}else{e.removeAllRanges();e.addRange(a)}else console.warn("No idea how to restore selection for this browser!")}else if(d.selection&&a){var f;if(a.pRange)f=a.range;else if(b.isArray(a)){f=d.body.createControlRange();b.forEach(a,function(i){f.addElement(i)})}else{f=d.body.createTextRange();f.moveToBookmark(a)}f.select()}},getFocus:function(a,d){a=!c._curFocus||a&&b.isDescendant(c._curFocus,a.domNode)?c._prevFocus:c._curFocus;return{node:a,bookmark:a==c._curFocus&&b.withGlobal(d||
b.global,c.getBookmark),openedForWindow:d}},focus:function(a){if(a){var d="node"in a?a.node:a,e=a.bookmark;a=a.openedForWindow;var f=e?e.isCollapsed:false;if(d){var i=d.tagName.toLowerCase()=="iframe"?d.contentWindow:d;if(i&&i.focus)try{i.focus()}catch(j){}c._onFocusNode(d)}if(e&&b.withGlobal(a||b.global,c.isCollapsed)&&!f){a&&a.focus();try{b.withGlobal(a||b.global,c.moveToBookmark,null,[e])}catch(h){}}}},_activeStack:[],registerIframe:function(a){return c.registerWin(a.contentWindow,a)},unregisterIframe:function(a){c.unregisterWin(a)},
registerWin:function(a,d){var e=function(k){c._justMouseDowned=true;setTimeout(function(){c._justMouseDowned=false},0);b.isIE&&k&&k.srcElement&&k.srcElement.parentNode==null||c._onTouchNode(d||k.target||k.srcElement,"mouse")},f=b.isIE?a.document.documentElement:a.document;if(f)if(b.isIE){a.document.body.attachEvent("onmousedown",e);var i=function(k){k.srcElement.tagName.toLowerCase()!="#document"&&c.isTabNavigable(k.srcElement)?c._onFocusNode(d||k.srcElement):c._onTouchNode(d||k.srcElement)};f.attachEvent("onactivate",
i);var j=function(k){c._onBlurNode(d||k.srcElement)};f.attachEvent("ondeactivate",j);return function(){a.document.detachEvent("onmousedown",e);f.detachEvent("onactivate",i);f.detachEvent("ondeactivate",j);f=null}}else{f.body.addEventListener("mousedown",e,true);var h=function(k){c._onFocusNode(d||k.target)};f.addEventListener("focus",h,true);var g=function(k){c._onBlurNode(d||k.target)};f.addEventListener("blur",g,true);return function(){f.body.removeEventListener("mousedown",e,true);f.removeEventListener("focus",
h,true);f.removeEventListener("blur",g,true);f=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){c._prevFocus=c._curFocus;c._curFocus=null;if(!c._justMouseDowned){c._clearActiveWidgetsTimer&&clearTimeout(c._clearActiveWidgetsTimer);c._clearActiveWidgetsTimer=setTimeout(function(){delete c._clearActiveWidgetsTimer;c._setStack([]);c._prevFocus=null},100)}},_onTouchNode:function(a,d){if(c._clearActiveWidgetsTimer){clearTimeout(c._clearActiveWidgetsTimer);delete c._clearActiveWidgetsTimer}var e=
[];try{for(;a;){var f=b.attr(a,"dijitPopupParent");if(f)a=c.byId(f).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===b.body())break;a=b.window.get(a.ownerDocument).frameElement}else{var i=a.getAttribute&&a.getAttribute("widgetId"),j=i&&c.byId(i);j&&!(d=="mouse"&&j.get("disabled"))&&e.unshift(i);a=a.parentNode}}}catch(h){}c._setStack(e,d)},_onFocusNode:function(a){if(a)if(a.nodeType!=9){c._onTouchNode(a);if(a!=c._curFocus){if(c._curFocus)c._prevFocus=c._curFocus;c._curFocus=a;b.publish("focusNode",
[a])}}},_setStack:function(a,d){var e=c._activeStack;c._activeStack=a;for(var f=0;f<Math.min(e.length,a.length);f++)if(e[f]!=a[f])break;for(var i,j=e.length-1;j>=f;j--)if(i=c.byId(e[j])){i._focused=false;i.set("focused",false);i._hasBeenBlurred=true;i._onBlur&&i._onBlur(d);b.publish("widgetBlur",[i,d])}for(j=f;j<a.length;j++)if(i=c.byId(a[j])){i._focused=true;i.set("focused",true);i._onFocus&&i._onFocus(d);b.publish("widgetFocus",[i,d])}}});b.addOnLoad(function(){var a=c.registerWin(window);b.isIE&&
b.addOnWindowUnload(function(){c.unregisterWin(a);a=null})});return c});
define("dojo/AdapterRegistry",["dojo"],function(b){b.AdapterRegistry=function(c){this.pairs=[];this.returnWrappers=c||false};b.extend(b.AdapterRegistry,{register:function(c,a,d,e,f){this.pairs[f?"unshift":"push"]([c,a,d,e])},match:function(){for(var c=0;c<this.pairs.length;c++){var a=this.pairs[c];if(a[1].apply(this,arguments))return a[3]||this.returnWrappers?a[2]:a[2].apply(this,arguments)}throw new Error("No match found");},unregister:function(c){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
c){this.pairs.splice(a,1);return true}return false}});return b.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(b,c){c.getViewport=function(){return b.window.getBox()};c.placeOnScreen=function(a,d,e,f){e=b.map(e,function(i){var j={corner:i,pos:{x:d.x,y:d.y}};if(f){j.pos.x+=i.charAt(1)=="L"?f.x:-f.x;j.pos.y+=i.charAt(0)=="T"?f.y:-f.y}return j});return c._place(a,e)};c._place=function(a,d,e,f){var i=b.window.getBox();if(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")b.body().appendChild(a);var j=null;
b.some(d,function(g){var k=g.corner,l=g.pos,p=0,n={w:k.charAt(1)=="L"?i.l+i.w-l.x:l.x-i.l,h:k.charAt(1)=="T"?i.t+i.h-l.y:l.y-i.t};if(e){p=e(a,g.aroundCorner,k,n,f);p=typeof p=="undefined"?0:p}var m=a.style,o=m.display,s=m.visibility;m.visibility="hidden";m.display="";var q=b.marginBox(a);m.display=o;m.visibility=s;m=Math.max(i.l,k.charAt(1)=="L"?l.x:l.x-q.w);o=Math.max(i.t,k.charAt(0)=="T"?l.y:l.y-q.h);s=Math.min(i.l+i.w,k.charAt(1)=="L"?m+q.w:l.x);l=Math.min(i.t+i.h,k.charAt(0)=="T"?o+q.h:l.y);s=
s-m;l=l-o;p+=q.w-s+(q.h-l);if(j==null||p<j.overflow)j={corner:k,aroundCorner:g.aroundCorner,x:m,y:o,w:s,h:l,overflow:p,spaceAvailable:n};return!p});j.overflow&&e&&e(a,j.aroundCorner,j.corner,j.spaceAvailable,f);d=b._isBodyLtr();var h=a.style;h.top=j.y+"px";h[d?"left":"right"]=(d?j.x:i.w-j.x-j.w)+"px";return j};c.placeOnScreenAroundNode=function(a,d,e,f){d=b.byId(d);d=b.position(d,true);return c._placeOnScreenAroundRect(a,d.x,d.y,d.w,d.h,e,f)};c.placeOnScreenAroundRectangle=function(a,d,e,f){return c._placeOnScreenAroundRect(a,
d.x,d.y,d.width,d.height,e,f)};c._placeOnScreenAroundRect=function(a,d,e,f,i,j,h){var g=[];for(var k in j)g.push({aroundCorner:k,corner:j[k],pos:{x:d+(k.charAt(1)=="L"?0:f),y:e+(k.charAt(0)=="T"?0:i)}});return c._place(a,g,h,{w:f,h:i})};c.placementRegistry=new b.AdapterRegistry;c.placementRegistry.register("node",function(a,d){return typeof d=="object"&&typeof d.offsetWidth!="undefined"&&typeof d.offsetHeight!="undefined"},c.placeOnScreenAroundNode);c.placementRegistry.register("rect",function(a,
d){return typeof d=="object"&&"x"in d&&"y"in d&&"width"in d&&"height"in d},c.placeOnScreenAroundRectangle);c.placeOnScreenAroundElement=function(){return c.placementRegistry.match.apply(c.placementRegistry,arguments)};c.getPopupAroundAlignment=function(a,d){var e={};b.forEach(a,function(f){switch(f){case "after":e[d?"BR":"BL"]=d?"BL":"BR";break;case "before":e[d?"BL":"BR"]=d?"BR":"BL";break;case "below-alt":d=!d;case "below":e[d?"BL":"BR"]=d?"TL":"TR";e[d?"BR":"BL"]=d?"TR":"TL";break;case "above-alt":d=
!d;case "above":default:e[d?"TL":"TR"]=d?"BL":"BR";e[d?"TR":"TL"]=d?"BR":"BL";break}});return e};return c});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,c){c.getDocumentWindow=function(a){return b.window.get(a)};return c});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,c){c.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var d=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),e=a.domNode||a;if(!d){d=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body());d.appendChild(e);e=e.style;e.display="";e.visibility="";e.position="";e.top="0px";if(a.declaredClass){a._popupWrapper=
d;b.connect(a,"destroy",function(){b.destroy(d);delete a._popupWrapper})}}return d},moveOffScreen:function(a){a=this._createWrapper(a);b.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);b.style(a,"display","none")},getTopPopup:function(){for(var a=this._stack,d=a.length-1;d>0&&a[d].parent===a[d-1].widget;d--);return a[d]},open:function(a){for(var d=this._stack,e=a.popup,f=a.orient||((a.parent?a.parent.isLeftToRight():b._isBodyLtr())?{BL:"TL",BR:"TR",
TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),i=a.around,j=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;d.length&&(!a.parent||!b.isDescendant(a.parent.domNode,d[d.length-1].widget.domNode));)c.popup.close(d[d.length-1].widget);var h=this._createWrapper(e);b.attr(h,{id:j,style:{zIndex:this._beginZIndex+d.length},"class":"dijitPopup "+(e.baseClass||e["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if(b.isIE||b.isMoz)if(!e.bgIframe)e.bgIframe=
new c.BackgroundIframe(h);f=i?c.placeOnScreenAroundElement(h,i,f,e.orient?b.hitch(e,"orient"):null):c.placeOnScreen(h,a,f=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);h.style.display="";h.style.visibility="visible";e.domNode.style.visibility="visible";i=[];i.push(b.connect(h,"onkeypress",this,function(g){if(g.charOrCode==b.keys.ESCAPE&&a.onCancel){b.stopEvent(g);a.onCancel()}else if(g.charOrCode===b.keys.TAB){b.stopEvent(g);(g=this.getTopPopup())&&g.onCancel&&g.onCancel()}}));e.onCancel&&
i.push(b.connect(e,"onCancel",a.onCancel));i.push(b.connect(e,e.onExecute?"onExecute":"onChange",this,function(){var g=this.getTopPopup();g&&g.onExecute&&g.onExecute()}));d.push({widget:e,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:i});e.onOpen&&e.onOpen(f);return f},close:function(a){for(var d=this._stack;a&&b.some(d,function(j){return j.widget==a})||!a&&d.length;){var e=d.pop(),f=e.widget,i=e.onClose;f.onClose&&f.onClose();b.forEach(e.handlers,b.disconnect);
f&&f.domNode&&this.hide(f);i&&i()}}};c._frames=new (function(){var a=[];this.pop=function(){var d;if(a.length){d=a.pop();d.style.display=""}else{if(b.isIE<9){d="<iframe src='"+(b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";d=b.doc.createElement(d)}else{d=b.create("iframe");d.src='javascript:""';d.className="dijitBackgroundIframe";b.style(d,"opacity",0.1)}d.tabIndex=
-1;c.setWaiRole(d,"presentation")}return d};this.push=function(d){d.style.display="none";a.push(d)}});c.BackgroundIframe=function(a){if(!a.id)throw new Error("no id");if(b.isIE||b.isMoz){var d=this.iframe=c._frames.pop();a.appendChild(d);if(b.isIE<7||b.isQuirks){this.resize(a);this._conn=b.connect(a,"onresize",this,function(){this.resize(a)})}else b.style(d,{width:"100%",height:"100%"})}};b.extend(c.BackgroundIframe,{resize:function(a){this.iframe&&b.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+
"px"})},destroy:function(){if(this._conn){b.disconnect(this._conn);this._conn=null}if(this.iframe){c._frames.push(this.iframe);delete this.iframe}}});return c.popup});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,c){c.scrollIntoView=function(a,d){b.window.scrollIntoView(a,d)};return c.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var c=b.doc.documentElement,a=b.isIE,d=b.isOpera,e=Math.floor,f=b.isFF,i=b.boxModel.replace(/-/,"");a={dj_ie:a,dj_ie6:e(a)==6,dj_ie7:e(a)==7,dj_ie8:e(a)==8,dj_ie9:e(a)==9,dj_quirks:b.isQuirks,dj_iequirks:a&&b.isQuirks,dj_opera:d,dj_khtml:b.isKhtml,dj_webkit:b.isWebKit,dj_safari:b.isSafari,dj_chrome:b.isChrome,dj_gecko:b.isMozilla,dj_ff3:e(f)==3};a["dj_"+i]=true;var j="";for(var h in a)if(a[h])j+=h+" ";c.className=b.trim(c.className+" "+j);b._loaders.unshift(function(){if(!b._isBodyLtr()){var g=
"dj_rtl dijitRtl "+j.replace(/ /g,"-rtl ");c.className=b.trim(c.className+" "+g)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,c){return c});
define("dijit/_base/typematic",["dojo","dijit"],function(b,c){c.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(b.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,d,e,f,i,j,h,g){if(i!=this._obj){this.stop();
this._initialDelay=h||500;this._subsequentDelay=j||0.9;this._minDelay=g||10;this._obj=i;this._evt=a;this._node=e;this._count=this._currentTimeout=-1;this._callback=b.hitch(d,f);this._fireEventAndReload();this._evt=b.mixin({faux:true},a)}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null}},addKeyListener:function(a,d,e,f,i,j,h){if(d.keyCode){d.charOrCode=d.keyCode;b.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0")}else if(d.charCode){d.charOrCode=String.fromCharCode(d.charCode);b.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}return[b.connect(a,"onkeypress",this,function(g){if(g.charOrCode==d.charOrCode&&(d.ctrlKey===undefined||d.ctrlKey==g.ctrlKey)&&(d.altKey===undefined||d.altKey==g.altKey)&&(d.metaKey===undefined||d.metaKey==(g.metaKey||false))&&(d.shiftKey===undefined||d.shiftKey==g.shiftKey)){b.stopEvent(g);c.typematic.trigger(g,
e,a,f,d,i,j,h)}else c.typematic._obj==d&&c.typematic.stop()}),b.connect(a,"onkeyup",this,function(){c.typematic._obj==d&&c.typematic.stop()})]},addMouseListener:function(a,d,e,f,i,j){var h=b.connect;return[h(a,"mousedown",this,function(g){b.stopEvent(g);c.typematic.trigger(g,d,a,e,a,f,i,j)}),h(a,"mouseup",this,function(g){b.stopEvent(g);c.typematic.stop()}),h(a,"mouseout",this,function(g){b.stopEvent(g);c.typematic.stop()}),h(a,"mousemove",this,function(g){g.preventDefault()}),h(a,"dblclick",this,
function(g){b.stopEvent(g);if(b.isIE){c.typematic.trigger(g,d,a,e,a,f,i,j);setTimeout(b.hitch(this,c.typematic.stop),50)}})]},addListener:function(a,d,e,f,i,j,h,g){return this.addKeyListener(d,e,f,i,j,h,g).concat(this.addMouseListener(a,f,i,j,h,g))}};return c.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,c){c.wai={onload:function(){var a=b.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif"))+'");'}},b.body()),d=b.getComputedStyle(a);if(d){var e=d.backgroundImage;b[d.borderTopColor==d.borderRightColor||e!=null&&(e=="none"||e=="url(invalid-url:)")?"addClass":"removeClass"](b.body(),
"dijit_a11y");if(b.isIE)a.outerHTML="";else b.body().removeChild(a)}}};if(b.isIE||b.isMoz)b._loaders.unshift(c.wai.onload);b.mixin(c,{hasWaiRole:function(a,d){a=this.getWaiRole(a);return d?a.indexOf(d)>-1:a.length>0},getWaiRole:function(a){return b.trim((b.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,d){b.attr(a,"role",d)},removeWaiRole:function(a,d){var e=b.attr(a,"role");if(e)if(d){d=b.trim((" "+e+" ").replace(" "+d+" "," "));b.attr(a,"role",d)}else a.removeAttribute("role")},
hasWaiState:function(a,d){return a.hasAttribute?a.hasAttribute("aria-"+d):!!a.getAttribute("aria-"+d)},getWaiState:function(a,d){return a.getAttribute("aria-"+d)||""},setWaiState:function(a,d,e){a.setAttribute("aria-"+d,e)},removeWaiState:function(a,d){a.removeAttribute("aria-"+d)}});return c});
define("dijit/_base",["dojo","dijit","dijit/_base/focus","dijit/_base/manager","dijit/_base/place","dijit/_base/popup","dijit/_base/scroll","dijit/_base/sniff","dijit/_base/typematic","dijit/_base/wai","dijit/_base/window"],function(b,c){return c._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,c){b.connect(b,"_connect",function(a,d){a&&b.isFunction(a._onConnect)&&a._onConnect(d)});c._connectOnUseEventHandler=function(){};c._lastKeyDownNode=null;b.isIE?function(){var a=function(d){c._lastKeyDownNode=d.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){c._lastKeyDownNode=a.target},true);(function(){b.declare("dijit._Widget",
c._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:c._connectOnUseEventHandler,onDblClick:c._connectOnUseEventHandler,onKeyDown:c._connectOnUseEventHandler,onKeyPress:c._connectOnUseEventHandler,onKeyUp:c._connectOnUseEventHandler,onMouseDown:c._connectOnUseEventHandler,onMouseMove:c._connectOnUseEventHandler,onMouseOut:c._connectOnUseEventHandler,
onMouseOver:c._connectOnUseEventHandler,onMouseLeave:c._connectOnUseEventHandler,onMouseEnter:c._connectOnUseEventHandler,onMouseUp:c._connectOnUseEventHandler,create:function(){this._deferredConnects=b.clone(this._deferredConnects);for(var a in this.attributeMap)delete this._deferredConnects[a];for(a in this._deferredConnects)this[a]!==c._connectOnUseEventHandler&&delete this._deferredConnects[a];this.inherited(arguments);if(this.domNode)for(a in this.params)this._onConnect(a)},_onConnect:function(a){if(a in
this._deferredConnects){this.connect(this[this._deferredConnects[a]||"domNode"],a.toLowerCase(),a);delete this._deferredConnects[a]}},focused:false,isFocusable:function(){return this.focus&&b.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,d){b.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,d)},attr:function(a){if(b.config.isDebug){var d=
arguments.callee._ach||(arguments.callee._ach={}),e=(arguments.callee.caller||"unknown caller").toString();if(!d[e]){b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+e,"","2.0");d[e]=true}}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,d,e){var f=b._connect,i=this.inherited(arguments,[a,d=="ondijitclick"?"onclick":d,e]);if(d=="ondijitclick")if(b.indexOf(this.nodesWithKeyClick,
a.nodeName.toLowerCase())==-1){var j=b.hitch(this,e);i.push(f(a,"onkeydown",this,function(h){if((h.keyCode==b.keys.ENTER||h.keyCode==b.keys.SPACE)&&!h.ctrlKey&&!h.shiftKey&&!h.altKey&&!h.metaKey){c._lastKeyDownNode=h.target;"openDropDown"in this&&a==this._buttonNode||h.preventDefault()}}),f(a,"onkeyup",this,function(h){if((h.keyCode==b.keys.ENTER||h.keyCode==b.keys.SPACE)&&h.target==c._lastKeyDownNode&&!h.ctrlKey&&!h.shiftKey&&!h.altKey&&!h.metaKey){c._lastKeyDownNode=null;return j(h)}}))}return i},
_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return true}})})();return c._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",true,b);b.string.rep=function(c,a){if(a<=0||!c)return"";for(var d=[];;){a&1&&d.push(c);if(!(a>>=1))break;c+=c}return d.join("")};b.string.pad=function(c,a,d,e){d||(d="0");c=String(c);a=b.string.rep(d,Math.ceil((a-c.length)/d.length));return e?c+a:a+c};b.string.substitute=function(c,a,d,e){e=e||b.global;d=d?b.hitch(e,d):function(f){return f};return c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(f,i,j){f=b.getObject(i,false,
a);if(j)f=b.getObject(j,false,e).call(e,f,i);return d(f,i).toString()})};b.string.trim=String.prototype.trim?b.trim:function(c){c=c.replace(/^\s+/,"");for(var a=c.length-1;a>=0;a--)if(/\S/.test(c.charAt(a))){c=c.substring(0,a+1);break}return c};return b.string});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",true,b);b.date.stamp.fromISOString=function(c,a){if(!b.date.stamp._isoRegExp)b.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;var d=b.date.stamp._isoRegExp.exec(c);c=null;if(d){d.shift();d[1]&&d[1]--;if(d[6])d[6]*=1E3;if(a){a=new Date(a);b.forEach(b.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(i){return a["get"+
i]()}),function(i,j){d[j]=d[j]||i})}c=new Date(d[0]||1970,d[1]||0,d[2]||1,d[3]||0,d[4]||0,d[5]||0,d[6]||0);if(d[0]<100)c.setFullYear(d[0]||1970);var e=0,f=d[7]&&d[7].charAt(0);if(f!="Z"){e=(d[8]||0)*60+(Number(d[9])||0);if(f!="-")e*=-1}if(f)e-=c.getTimezoneOffset();e&&c.setTime(c.getTime()+e*6E4)}return c};b.date.stamp.toISOString=function(c,a){var d=function(j){return j<10?"0"+j:j};a=a||{};var e=[],f=a.zulu?"getUTC":"get",i="";if(a.selector!="time"){i=c[f+"FullYear"]();i=["0000".substr((i+"").length)+
i,d(c[f+"Month"]()+1),d(c[f+"Date"]())].join("-")}e.push(i);if(a.selector!="date"){i=[d(c[f+"Hours"]()),d(c[f+"Minutes"]()),d(c[f+"Seconds"]())].join(":");f=c[f+"Milliseconds"]();if(a.milliseconds)i+="."+(f<100?"0":"")+d(f);if(a.zulu)i+="Z";else if(a.selector!="time"){c=c.getTimezoneOffset();a=Math.abs(c);i+=(c>0?"-":"+")+d(Math.floor(a/60))+":"+d(a%60)}e.push(i)}return e.join("T")};return b.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new (function(){function c(h){if(f.isString(h))return"string";if(typeof h=="number")return"number";if(typeof h=="boolean")return"boolean";if(f.isFunction(h))return"function";if(f.isArray(h))return"array";if(h instanceof Date)return"date";if(h instanceof f._Url)return"url";return"object"}function a(h,g){switch(g){case "string":return h;case "number":return h.length?Number(h):NaN;case "boolean":return typeof h=="boolean"?h:h.toLowerCase()!=
"false";case "function":if(f.isFunction(h)){h=h.toString();h=f.trim(h.substring(h.indexOf("{")+1,h.length-1))}try{return h===""||h.search(/[^\w\.]+/i)!=-1?new Function(h):f.getObject(h,false)||new Function(h)}catch(k){return new Function}case "array":return h?h.split(/\s*,\s*/):[];case "date":switch(h){case "":return new Date("");case "now":return new Date;default:return f.date.stamp.fromISOString(h)}case "url":return f.baseUrl+h;default:return f.fromJson(h)}}function d(h,g){for(var k in h)if(k.charAt(0)!=
"_")k in i||(g[k]=c(h[k]));return g}function e(h,g){var k=j[h];if(k){if(!g&&!k.params)k.params=d(k.cls.prototype,{})}else{h=f.getObject(h);k=null;if(!h)return null;g||(k=d(h.prototype,{}));k={cls:h,params:k}}return k}var f=b,i={},j={};f.connect(f,"extend",function(){j={}});this._functionFromScript=function(h,g){var k="",l="";(g=h.getAttribute(g+"args")||h.getAttribute("args"))&&f.forEach(g.split(/\s*,\s*/),function(p,n){k+="var "+p+" = arguments["+n+"]; "});(g=h.getAttribute("with"))&&g.length&&f.forEach(g.split(/\s*,\s*/),
function(p){k+="with("+p+"){";l+="}"});return new Function(k+h.innerHTML+l)};this.instantiate=function(h,g,k){var l=[];g=g||{};k=k||{};var p=(k.scope||f._scopeName)+"Type",n="data-"+(k.scope||f._scopeName)+"-";f.forEach(h,function(m){if(m){var o,s,q,t,C,D;if(m.node){o=m.node;s=m.type;D=m.fastpath;t=(q=m.clsInfo||s&&e(s,D))&&q.cls;C=m.scripts}else{o=m;C=(t=(q=(s=p in g?g[p]:o.getAttribute(p))&&e(s))&&q.cls)&&(t._noScript||t.prototype._noScript)?[]:f.query("> script[type^='dojo/']",o)}if(!q)throw new Error("Could not load class '"+
s);var v={};k.defaults&&f._mixin(v,k.defaults);m.inherited&&f._mixin(v,m.inherited);if(D){if((q=o.getAttribute(n+"props"))&&q.length)try{q=f.fromJson.call(k.propsThis,"{"+q+"}");f._mixin(v,q)}catch(w){throw new Error(w.toString()+" in data-dojo-props='"+q+"'");}if(q=o.getAttribute(n+"attach-point"))v.dojoAttachPoint=q;if(q=o.getAttribute(n+"attach-event"))v.dojoAttachEvent=q;b.mixin(v,g)}else{m=o.attributes;for(var z in q.params){s=z in g?{value:g[z],specified:true}:m.getNamedItem(z);if(!(!s||!s.specified&&
(!b.isIE||z.toLowerCase()!="value"))){s=s.value;switch(z){case "class":s="className"in g?g.className:o.className;break;case "style":s="style"in g?g.style:o.style&&o.style.cssText}var x=q.params[z];v[z]=typeof s=="string"?a(s,x):s}}}var E=[],F=[];f.forEach(C,function(J){o.removeChild(J);var L=J.getAttribute(n+"event")||J.getAttribute("event"),M=J.getAttribute("type");J=f.parser._functionFromScript(J,n);if(L)if(M=="dojo/connect")E.push({event:L,func:J});else v[L]=J;else F.push(J)});var K=(C=t.markupFactory||
t.prototype&&t.prototype.markupFactory)?C(v,o,t):new t(v,o);l.push(K);(t=o.getAttribute(n+"id")||o.getAttribute("jsId"))&&f.setObject(t,K);f.forEach(E,function(J){f.connect(K,J.event,null,J.func)});f.forEach(F,function(J){J.call(K)})}});g._started||f.forEach(l,function(m){if(!k.noStart&&m&&b.isFunction(m.startup)&&!m._started&&(!m.getParent||!m.getParent()))m.startup()});return l};this.parse=function(h,g){function k(o,s){var q=b.clone(o.inherited);b.forEach(["dir","lang"],function(z){var x=o.node.getAttribute(z);
if(x)q[z]=x});for(var t=o.clsInfo&&!o.clsInfo.cls.prototype._noScript?o.scripts:null,C=!o.clsInfo||!o.clsInfo.cls.prototype.stopParser||g&&g.template,D=o.node.firstChild;D;D=D.nextSibling)if(D.nodeType==1){var v,w=C&&D.getAttribute(p+"type");v=w?w:C&&D.getAttribute(l);w=w==v;if(v){v={type:v,fastpath:w,clsInfo:e(v,w),node:D,scripts:[],inherited:q};s.push(v);k(v,s)}else if(t&&D.nodeName.toLowerCase()=="script")(v=D.getAttribute("type"))&&/^dojo\/\w/i.test(v)&&t.push(D);else C&&k({node:D,inherited:q},
s)}}if(!g&&h&&h.rootNode){g=h;h=g.rootNode}else h=h;h=h?b.byId(h):b.body();g=g||{};var l=(g.scope||f._scopeName)+"Type",p="data-"+(g.scope||f._scopeName)+"-",n={};if(g&&g.inherited)for(var m in g.inherited)if(g.inherited[m])n[m]=g.inherited[m];m=[];k({node:h,inherited:n},m);return this.instantiate(m,g&&g.template?{template:true}:null,g)}});(function(){var c=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,c):b._loaders.unshift(c)})();
return b.parser});
define("dojo/cache",["dojo"],function(b){var c={};b.cache=function(a,d,e){if(typeof a=="string")var f=b.moduleUrl(a,d);else{f=a;e=d}f=f.toString();var i=e;if(e!=undefined&&!b.isString(e))i="value"in e?e.value:undefined;e=e&&e.sanitize?true:false;if(typeof i=="string")i=c[f]=e?b.cache._sanitize(i):i;else if(i===null)delete c[f];else{if(!(f in c)){i=undefined;if(b.isFunction(require)&&b.isString(a))try{var j=(a?a.replace(/\./g,"/")+"/":"")+d;i=require("text!"+j)}catch(h){}if(typeof i==="undefined")i=
b._getText(f);c[f]=e?b.cache._sanitize(i):i}i=c[f]}return i};b.cache._sanitize=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var d=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(d)a=d[1]}else a="";return a};return b.cache});
define("dijit/_Templated",["dojo","dijit","dijit/_Widget","dojo/string","dojo/parser","dojo/cache"],function(b,c){b.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var d=this.declaredClass,e=this;return b.string.substitute(a,this,function(f,i){if(i.charAt(0)=="!")f=b.getObject(i.substr(1),false,e);if(typeof f==
"undefined")throw new Error(d+" template:"+i);if(f==null)return"";return i.charAt(0)=="!"?f:f.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=c._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),d;if(b.isString(a)){d=b._toDom(this._stringRepl(a));if(d.nodeType!=1)throw new Error("Invalid template: "+a);}else d=a.cloneNode(true);this.domNode=d;this.inherited(arguments);this._attachTemplateNodes(d);if(this.widgetsInTemplate){a=this._startupWidgets=
b.parser.parse(d,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"});this._supportingWidgets=c.findWidgets(d);this._attachTemplateNodes(a,function(e,f){return e[f]})}this._fillContent(this.srcNodeRef)},_fillContent:function(a){var d=this.containerNode;if(a&&d)for(;a.hasChildNodes();)d.appendChild(a.firstChild)},_attachTemplateNodes:function(a,d){d=d||function(l,p){return l.getAttribute(p)};for(var e=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),
f=b.isArray(a)?0:-1;f<e.length;f++){var i=f==-1?a:e[f];if(!(this.widgetsInTemplate&&(d(i,"dojoType")||d(i,"data-dojo-type")))){var j=d(i,"dojoAttachPoint")||d(i,"data-dojo-attach-point");if(j)for(var h=j.split(/\s*,\s*/);j=h.shift();){if(b.isArray(this[j]))this[j].push(i);else this[j]=i;this._attachPoints.push(j)}if(j=d(i,"dojoAttachEvent")||d(i,"data-dojo-attach-event")){h=j.split(/\s*,\s*/);for(var g=b.trim;j=h.shift();)if(j){var k=null;if(j.indexOf(":")!=-1){k=j.split(":");j=g(k[0]);k=g(k[1])}else j=
g(j);k||(k=j);this._attachEvents.push(this.connect(i,j,k))}}(j=d(i,"waiRole"))&&c.setWaiRole(i,j);(j=d(i,"waiState"))&&b.forEach(j.split(/\s*,\s*/),function(l){if(l.indexOf("-")!=-1){l=l.split("-");c.setWaiState(i,l[0],l[1])}})}}},startup:function(){b.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){b.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];b.forEach(this._attachEvents,
this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});c._Templated._templateCache={};c._Templated.getCachedTemplate=function(a,d,e){var f=c._Templated._templateCache,i=d||a,j=f[i];if(j){try{if(!j.ownerDocument||j.ownerDocument==b.doc)return j}catch(h){}b.destroy(j)}d||(d=b.cache(a,{sanitize:true}));d=b.string.trim(d);if(e||d.match(/\$\{([^\}]+)\}/g))return f[i]=d;else{a=b._toDom(d);if(a.nodeType!=1)throw new Error("Invalid template: "+d);return f[i]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=
c._Templated._templateCache;for(var d in a){var e=a[d];typeof e=="object"&&b.destroy(e);delete a[d]}});b.extend(c._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return c._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,c){b.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);b.forEach(["onmouseenter","onmouseleave","onmousedown"],function(d){this.connect(this.domNode,d,"_cssMouseEvent")},this);b.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(d){this.watch(d,b.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes)this._trackMouseState(this[a],
this.cssStateNodes[a]);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var d=this.connect(b.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(d)});break}},_setStateClass:function(){function a(h){d=
d.concat(b.map(d,function(g){return g+h}),"dijit"+h)}var d=this.baseClass.split(" ");this.isLeftToRight()||a("Rtl");this.checked&&a("Checked");this.state&&a(this.state);this.selected&&a("Selected");if(this.disabled)a("Disabled");else if(this.readOnly)a("ReadOnly");else if(this.active)a("Active");else this.hovering&&a("Hover");this._focused&&a("Focused");var e=this.stateNode||this.domNode,f={};b.forEach(e.className.split(" "),function(h){f[h]=true});"_stateClasses"in this&&b.forEach(this._stateClasses,
function(h){delete f[h]});b.forEach(d,function(h){f[h]=true});var i=[];for(var j in f)i.push(j);e.className=i.join(" ");this._stateClasses=d},_trackMouseState:function(a,d){function e(){var k="disabled"in h&&h.disabled||"readonly"in h&&h.readonly;b.toggleClass(a,d+"Hover",f&&!i&&!k);b.toggleClass(a,d+"Active",i&&!k);b.toggleClass(a,d+"Focused",j&&!k)}var f=false,i=false,j=false,h=this,g=b.hitch(this,"connect",a);g("onmouseenter",function(){f=true;e()});g("onmouseleave",function(){i=f=false;e()});
g("onmousedown",function(){i=true;e()});g("onmouseup",function(){i=false;e()});g("onfocus",function(){j=true;e()});g("onblur",function(){j=false;e()});this.watch("disabled",e);this.watch("readOnly",e)}});return c._CssStateMixin});
define("dijit/form/_FormWidget",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin"],function(b,c){b.declare("dijit.form._FormWidget",[c._Widget,c._Templated,c._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:b.delegate(c._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=
this.name?'name="'+this.name.replace(/'/g,"&quot;")+'"':"";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown")},_setDisabledAttr:function(a){this._set("disabled",a);b.attr(this.focusNode,"disabled",a);this.valueNode&&b.attr(this.valueNode,"disabled",a);c.setWaiState(this.focusNode,"disabled",a);if(a){this._set("hovering",false);this._set("active",false);a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode";
b.forEach(b.isArray(a)?a:[a],function(d){d=this[d];b.isWebKit||c.hasDefaultTabStop(d)?d.setAttribute("tabIndex","-1"):d.removeAttribute("tabIndex")},this)}else this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){b.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(){this.scrollOnFocus&&b.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&
this.focusNode&&b.style(this.domNode,"display")!="none"},focus:function(){this.disabled||c.focus(this.focusNode)},compare:function(a,d){return typeof a=="number"&&typeof d=="number"?isNaN(a)&&isNaN(d)?0:a-d:a>d?1:a<d?-1:0},onChange:function(){},_onChangeActive:false,_handleOnChange:function(a,d){if(this._lastValueReported==undefined&&(d===null||!this._onChangeActive))this._resetValue=this._lastValueReported=a;this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||this.compare(a,
this._lastValueReported)!=0;if((this.intermediateChanges||d||d===undefined)&&this._pendingOnChange){this._lastValueReported=a;this._pendingOnChange=false;if(this._onChangeActive){this._onChangeHandle&&clearTimeout(this._onChangeHandle);this._onChangeHandle=setTimeout(b.hitch(this,function(){this._onChangeHandle=null;this.onChange(a)}),0)}}},create:function(){this.inherited(arguments);this._onChangeActive=true},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported)}this.inherited(arguments)},
setValue:function(a){b.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){b.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&b.mouseButtons.isLeft(a)&&this.isFocusable())var d=this.connect(b.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(d)})}});b.declare("dijit.form._FormValueWidget",
c.form._FormWidget,{readOnly:false,attributeMap:b.delegate(c.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);c.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(b.isIE<9||b.isIE&&b.isQuirks)this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);if(this._resetValue===undefined)this._lastValueReported=this._resetValue=this.value},
_setValueAttr:function(a,d){this._handleOnChange(a,d)},_handleOnChange:function(a){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,false)},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true)},_onKeyDown:function(a){if(a.keyCode==b.keys.ESCAPE&&!(a.ctrlKey||a.altKey||a.metaKey)){var d;if(b.isIE){a.preventDefault();d=document.createEventObject();d.keyCode=b.keys.ESCAPE;d.shiftKey=a.shiftKey;a.srcElement.fireEvent("onkeypress",
d)}}},_layoutHackIE7:function(){if(b.isIE==7)for(var a=this.domNode,d=a.parentNode,e=a.firstChild||a,f=e.style.filter,i=this;d&&d.clientHeight==0;){(function(){var j=i.connect(d,"onscroll",function(){i.disconnect(j);e.style.filter=(new Date).getMilliseconds();setTimeout(function(){e.style.filter=f},0)})})();d=d.parentNode}}});return c.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,c){b.declare("dijit.form.TextBox",c.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:b.cache("dijit.form","templates/TextBox.html"),_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',
_buttonInputDisabled:b.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:b.delegate(c.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var a=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||(a=="hidden"||a=="file")&&this.templateString==c.form.TextBox.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},_setPlaceHolderAttr:function(a){this._set("placeHolder",
a);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=b.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after")}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(a));this._updatePlaceHolder()},_updatePlaceHolder:function(){if(this._phspan)this._phspan.style.display=this.placeHolder&&!this._focused&&!this.textbox.value?"":"none"},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,
d,e){var f;if(a!==undefined){f=this.filter(a);if(typeof e!="string")e=f!==null&&(typeof f!="number"||!isNaN(f))?this.filter(this.format(f,this.constraints)):""}if(e!=null&&e!=undefined&&(typeof e!="number"||!isNaN(e))&&this.textbox.value!=e){this.textbox.value=e;this._set("displayedValue",this.get("displayedValue"))}this._updatePlaceHolder();this.inherited(arguments,[f,d])},displayedValue:"",getDisplayedValue:function(){b.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.",
"","2.0");return this.get("displayedValue")},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},setDisplayedValue:function(a){b.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",a)},_setDisplayedValueAttr:function(a){if(a===null||a===undefined)a="";else if(typeof a!="string")a=String(a);this.textbox.value=a;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",
this.get("displayedValue"))},format:function(a){return a==null||a==undefined?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},_onInput:function(a){if(a&&a.type&&/key/i.test(a.type)&&a.keyCode)switch(a.keyCode){case b.keys.SHIFT:case b.keys.ALT:case b.keys.CTRL:case b.keys.TAB:return}if(this.intermediateChanges){var d=this;setTimeout(function(){d._handleOnChange(d.get("value"),false)},0)}this._refreshState();this._set("displayedValue",this.get("displayedValue"))},
postCreate:function(){b.isIE&&setTimeout(b.hitch(this,function(){var a=b.getComputedStyle(this.domNode);if(a)if(a=a.fontFamily){var d=this.domNode.getElementsByTagName("INPUT");if(d)for(var e=0;e<d.length;e++)d[e].style.fontFamily=a}}),0);this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(b.isMoz||b.isOpera)this.connect(this.textbox,"oninput","_onInput");else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,
"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput")}},_blankValue:"",filter:function(a){if(a===null)return this._blankValue;if(typeof a!="string")return a;if(this.trim)a=b.trim(a);if(this.uppercase)a=a.toUpperCase();if(this.lowercase)a=a.toLowerCase();if(this.propercase)a=a.replace(/[^\s]+/g,function(d){return d.substring(0,1).toUpperCase()+d.substring(1)});return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),true)},_onBlur:function(){if(!this.disabled){this._setBlurValue();
this.inherited(arguments);this._selectOnClickHandle&&this.disconnect(this._selectOnClickHandle);if(this.selectOnClick&&b.isMoz)this.textbox.selectionStart=this.textbox.selectionEnd=undefined;this._updatePlaceHolder()}},_onFocus:function(a){if(!(this.disabled||this.readOnly)){if(this.selectOnClick&&a=="mouse")this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var d;if(b.isIE){d=b.doc.selection.createRange();d=d.parentElement()==this.textbox&&
d.text.length==0}else d=this.textbox.selectionStart==this.textbox.selectionEnd;d&&c.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});c.selectInputText=function(a,d,e){var f=b.global,i=b.doc;a=b.byId(a);if(isNaN(d))d=0;if(isNaN(e))e=a.value?a.value.length:0;c.focus(a);if(i.selection&&b.body().createTextRange){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveStart("character",
-99999);a.moveStart("character",d);a.moveEnd("character",e-d);a.select()}}else f.getSelection&&a.setSelectionRange&&a.setSelectionRange(d,e)};return c.form.TextBox});define("text!dijit/templates/Tooltip.html",function(){return'<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip"\n\t><div class="dijitTooltipContainer dijitTooltipContents" dojoAttachPoint="containerNode" role=\'alert\'></div\n\t><div class="dijitTooltipConnector" dojoAttachPoint="connectorNode"></div\n></div>'});
define("dijit/Tooltip",["dojo","dijit","dijit/_Widget","dijit/_Templated","text!dijit/templates/Tooltip.html"],function(b,c){b.declare("dijit._MasterTooltip",[c._Widget,c._Templated],{duration:c.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new c.BackgroundIframe(this.domNode);this.fadeIn=b.fadeIn({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,"_onShow")});this.fadeOut=b.fadeOut({node:this.domNode,
duration:this.duration,onEnd:b.hitch(this,"_onHide")})},show:function(a,d,e,f){if(!(this.aroundNode&&this.aroundNode===d)){this.domNode.width="auto";if(this.fadeOut.status()=="playing")this._onDeck=arguments;else{this.containerNode.innerHTML=a;c.placeOnScreenAroundElement(this.domNode,d,c.getPopupAroundAlignment(e&&e.length?e:c.Tooltip.defaultPosition,!f),b.hitch(this,"orient"));b.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=d}}},orient:function(a,d,e,
f,i){this.connectorNode.style.top="";var j=f.w-this.connectorNode.offsetWidth;a.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[d+"-"+e];this.domNode.style.width="auto";var h=b.contentBox(this.domNode),g=Math.min(Math.max(j,1),h.w),k=g<h.w;this.domNode.style.width=g+"px";if(k){this.containerNode.style.overflow=
"auto";k=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(k>g){k=k+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight");this.domNode.style.width=k+"px"}}if(e.charAt(0)=="B"&&d.charAt(0)=="B"){a=b.marginBox(a);d=this.connectorNode.offsetHeight;if(a.h>f.h){this.connectorNode.style.top=f.h-i.h/2-d/2+"px";this.connectorNode.style.bottom=""}else{this.connectorNode.style.bottom=Math.min(Math.max(i.h/2-d/2,0),a.h-d)+"px";this.connectorNode.style.top=""}}else{this.connectorNode.style.top=
"";this.connectorNode.style.bottom=""}return Math.max(0,h.w-j)},_onShow:function(){if(b.isIE)this.domNode.style.filter=""},hide:function(a){if(this._onDeck&&this._onDeck[1]==a)this._onDeck=null;else if(this.aroundNode===a){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play()}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null}}});c.showTooltip=function(a,d,e,f){if(!c._masterTT)c._masterTT=
new c._MasterTooltip;return c._masterTT.show(a,d,e,f)};c.hideTooltip=function(a){if(!c._masterTT)c._masterTT=new c._MasterTooltip;return c._masterTT.hide(a)};b.declare("dijit.Tooltip",c._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){b.forEach(this._connections||[],function(e){b.forEach(e,b.hitch(this,"disconnect"))},this);var d=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(d,function(e){return(e=b.byId(e))?[this.connect(e,"onmouseenter","_onTargetMouseEnter"),
this.connect(e,"onmouseleave","_onTargetMouseLeave"),this.connect(e,"onfocus","_onTargetFocus"),this.connect(e,"onblur","_onTargetBlur")]:[]},this);this._set("connectId",a);this._connectIds=d},addTarget:function(a){a=a.id||a;b.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=b.indexOf(this._connectIds,a.id||a);if(a>=0){this._connectIds.splice(a,1);this.set("connectId",this._connectIds)}},buildRendering:function(){this.inherited(arguments);
b.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;b.forEach(b.isArrayLike(a)?a:[a],this.addTarget,this)},_onTargetMouseEnter:function(a){this._onHover(a)},_onTargetMouseLeave:function(a){this._onUnHover(a)},_onTargetFocus:function(a){this._focus=true;this._onHover(a)},_onTargetBlur:function(a){this._focus=false;this._onUnHover(a)},_onHover:function(a){if(!this._showTimer){var d=a.target;this._showTimer=setTimeout(b.hitch(this,function(){this.open(d)}),
this.showDelay)}},_onUnHover:function(){if(!this._focus){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}this.close()}},open:function(a){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}c.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){if(this._connectNode){c.hideTooltip(this._connectNode);delete this._connectNode;this.onHide()}if(this._showTimer){clearTimeout(this._showTimer);
delete this._showTimer}},onShow:function(){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments)}});c.Tooltip.defaultPosition=["after","before"];return c.Tooltip});
(function(){function b(d,e,f,i,j,h){if(e[d]){f.push(d);if(e[d]===true||e[d]===1)i.push(j+d+"/"+h)}}function c(d,e,f,i,j){e=i+e+"/"+j;require._fileExists(d.nameToUrl(e,null))&&f.push(e)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",{version:"0.24.0",load:function(d,e,f,i){i=i||{};var j=a.exec(d),h=j[1],g=j[4],k=j[5],l=g.split("-"),p=[],n={},m,o,s="";if(j[5]){h=j[1];d=h+k}else{d=d;k=j[4];g=i.locale||(i.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||
"root").toLowerCase());l=g.split("-")}if(i.isBuild){p.push(d);c(e,"root",p,h,k);for(m=0;o=l[m];m++){s+=(s?"-":"")+o;c(e,s,p,h,k)}e(p);f()}else e([d],function(q){var t=[];b("root",q,t,p,h,k);for(m=0;o=l[m];m++){s+=(s?"-":"")+o;b(s,q,t,p,h,k)}e(p,function(){var C,D;for(C=t.length-1;C>-1&&(o=t[C]);C--){D=q[o];if(D===true||D===1)D=e(h+o+"/"+k);require.mixin(n,D)}f(n)})})}})})();
define("dijit/form/nls/validate",{root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});
define("dijit/form/ValidationTextBox",["dojo","dijit","text!dijit/form/templates/ValidationTextBox.html","dojo/i18n","dijit/form/TextBox","dijit/Tooltip","i18n!dijit/form/nls/validate"],function(b,c){b.declare("dijit.form.ValidationTextBox",c.form.TextBox,{templateString:b.cache("dijit.form","templates/ValidationTextBox.html"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",
regExpGen:function(){return this.regExp},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused)},validator:function(a,d){return(new RegExp("^(?:"+this.regExpGen(d)+")"+(this.required?"":"?")+"$")).test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,d)!==undefined)},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0},isValid:function(){return this.validator(this.textbox.value,this.constraints)},
_isEmpty:function(a){return(this.trim?/^\s*$/:/^$/).test(a)},getErrorMessage:function(){return this.required&&this._isEmpty(this.textbox.value)?this.missingMessage:this.invalidMessage},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:true,validate:function(a){var d="",e=this.disabled||this.isValid(a);if(e)this._maskValidSubsetError=true;var f=this._isEmpty(this.textbox.value),i=!e&&a&&this._isValidSubset();this._set("state",e?"":((!this._hasBeenBlurred||a)&&f||i)&&this._maskValidSubsetError?
"Incomplete":"Error");c.setWaiState(this.focusNode,"invalid",e?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=a&&i;d=this.getErrorMessage(a)}else if(this.state=="Incomplete"){d=this.getPromptMessage(a);this._maskValidSubsetError=!this._hasBeenBlurred||a}else if(f)d=this.getPromptMessage(a);this.set("message",d);return e},displayMessage:function(a){c.hideTooltip(this.domNode);a&&this._focused&&c.showTooltip(a,this.domNode,this.tooltipPosition,!this.isLeftToRight())},_refreshState:function(){this.validate(this._focused);
this.inherited(arguments)},constructor:function(){this.constraints={}},_setConstraintsAttr:function(a){if(!a.locale&&this.lang)a.locale=this.lang;this._set("constraints",a);this._computePartialRE()},_computePartialRE:function(){var a=this.regExpGen(this.constraints);this.regExp=a;var d="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(f){switch(f.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":d+=f;break;case ")":d+="|$)";break;
default:d+="(?:"+f+"|$)";break}});try{"".search(d)}catch(e){d=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+d+")$"},postMixInProperties:function(){this.inherited(arguments);this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$")this.invalidMessage=this.messages.invalidMessage;if(!this.invalidMessage)this.invalidMessage=this.promptMessage;if(this.missingMessage=="$_unset_$")this.missingMessage=
this.messages.missingMessage;if(!this.missingMessage)this.missingMessage=this.invalidMessage;this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(a){this._set("required",a);c.setWaiState(this.focusNode,"required",a);this._refreshState()},_setMessageAttr:function(a){this._set("message",a);this.displayMessage(a)},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");
this.inherited(arguments)}});b.declare("dijit.form.MappedTextBox",c.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting=""},serialize:function(a){return a.toString?a.toString():""},toString:function(){var a=this.filter(this.get("value"));return a!=null?typeof a=="string"?a:this.serialize(a,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);
this.valueNode=b.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});b.declare("dijit.form.RangeBoundTextBox",c.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,d){return("min"in d?this.compare(a,d.min)>=0:true)&&("max"in d?this.compare(a,d.max)<=0:true)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=
this.get("value"),d=false,e=false;if("min"in this.constraints){d=this.constraints.min;d=this.compare(a,typeof d=="number"&&d>=0&&a!=0?0:d);d=typeof d=="number"&&d<0}if("max"in this.constraints){e=this.constraints.max;e=this.compare(a,typeof e!="number"||e>0?e:0);e=typeof e=="number"&&e>0}return d||e},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(a){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||
this.isInRange(a))},getErrorMessage:function(a){var d=this.get("value");if(d!==null&&d!==""&&d!==undefined&&(typeof d!="number"||!isNaN(d))&&!this.isInRange(a))return this.rangeMessage;return this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage}},_setConstraintsAttr:function(){this.inherited(arguments);if(this.focusNode){this.constraints.min!==
undefined?c.setWaiState(this.focusNode,"valuemin",this.constraints.min):c.removeWaiState(this.focusNode,"valuemin");this.constraints.max!==undefined?c.setWaiState(this.focusNode,"valuemax",this.constraints.max):c.removeWaiState(this.focusNode,"valuemax")}},_setValueAttr:function(a){c.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return c.form.ValidationTextBox});
define("orion/util",["dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,c){function a(v){D=v}function d(){return D}function e(v){var w="",z=navigator.platform.indexOf("Mac")!==-1;if(v.mod1)w+=z?"Cmd+":"Ctrl+";if(v.mod2)w+="Shift+";if(v.mod3)w+="Alt+";if(v.alphaKey)return w+v.alphaKey;for(var x in b.keys)if(typeof(b.keys[x]==="number"))if(b.keys[x]===v.keyCode)return w+x;var E;switch(v.keyCode){case 59:E=v.mod2?":":";";break;case 61:E=v.mod2?"+":"=";break;case 188:E=v.mod2?"<":",";
break;case 190:E=v.mod2?">":".";break;case 191:E=v.mod2?"?":"/";break;case 192:E=v.mod2?"~":"`";break;case 219:E=v.mod2?"{":"[";break;case 220:E=v.mod2?"|":"\\";break;case 221:E=v.mod2?"}":"]";break;case 222:E=v.mod2?'"':"'";break}if(E)return w+E;return w+String.fromCharCode(v.keyCode)}function f(v,w){v.startup();if(typeof w==="string"){var z=b.byId(w);if(!z)if(z=c.byId(w))z=z.domNode;w=z?z:null}if(w){w=b.position(w);v._setStyleAttr("left:"+(w.x+16)+"px !important;");v._setStyleAttr("top:"+(w.y+16)+
"px !important;")}v.show()}function i(v,w,z,x,E,F,K,J,L){K=function(Q){return function(N){var S=c.byId(v),X=S.get("value");if(Q&&N.keyCode===b.keys.ESCAPE){z&&b.style(w,"display","inline");S.destroyRecursive();F&&F()}else if(!(Q&&N.keyCode!==b.keys.ENTER)){if(!S.isValid()||!L&&X===x)z&&b.style(w,"display","inline");else E(X);S.destroyRecursive();F&&F()}}};var M=new c.form.ValidationTextBox({id:v,required:true,value:x||""});b.place(M.domNode,w,"after");b.addClass(M.domNode,"userEditBoxPrompt");z&&
b.style(w,"display","none");b.connect(M,"onKeyDown",K(true));b.connect(M,"onBlur",K(false));window.setTimeout(function(){M.focus();if(x){var Q=b.byId(v),N=J?x.indexOf(J):-1;N>0?c.selectInputText(Q,0,N):Q.select()}},0)}function j(v){var w=window.navigator.platform.indexOf("Mac")!==-1;return w&&v.metaKey||!w&&v.ctrlKey}function h(v,w){if(w&&j(w))window.open(v);else window.location=v}function g(v){if(!v)return v;var w=window.location.href.split("#")[0];w=w.substring(0,w.length-window.location.pathname.length);
if(v.indexOf(w)===0)return v.substring(w.length);return v}function k(v){var w,z,x,E,F;v=v.split("#");var K=v[v.length-1].split(/\?(?=(?:line|char))/);v=g(K[0]);if(K.length>1){K=K[1].split(/\&(?=(?:line|char))/);for(var J=0;J<K.length;J++){var L=K[J].split("=");if(L.length>1)switch(L[0]){case "char":L=L[1].split(",");if(x===undefined){w=window.parseInt(L[0]);if(L.length>1)z=window.parseInt(L[1])}else{E=window.parseInt(L[0]);if(L.length>1)F=window.parseInt(L[1])}break;case "line":L=L[1].split(",");
x=window.parseInt(L[0]);break;default:break}}}return{filePath:v,start:w,end:z,line:x,offset:E,length:F}}function l(v,w,z,x,E,F){if(typeof w==="number"){v="#"+v+"?char="+w;if(typeof z==="number")v=v+","+z;else if(typeof F==="number")v=v+","+(w+F);return v}if(typeof x==="number"){v="#"+v+"?line="+x;if(typeof E==="number"){v=v+"&char="+E;if(typeof F==="number")v=v+","+(E+F)}return v}return"#"+v}function p(v){if(!v)return v;var w=window.location.href.split("#")[0];return w.substring(0,w.length-window.location.pathname.length)+
v}function n(v){return this.makeRelative(v).indexOf("/workspace")===0}function m(v,w){v.children=w;for(var z in w)w[z].parent=v;v.children.sort(function(x,E){var F=x.Directory;if(F!==E.Directory)return F?-1:1;x=x.Name&&x.Name.toLowerCase();E=E.Name&&E.Name.toLowerCase();if(x<E)return-1;if(x>E)return 1;return 0})}function o(v){v.children.sort(function(w,z){var x=w.type==="dir";if(x!==(z.type==="dir"))return x?-1:1;w=w.name&&w.name.toLowerCase();z=z.name&&z.name.toLowerCase();if(w<z)return-1;if(w>z)return 1;
return 0})}function s(v,w){v.Parents&&v.Parents.length===0&&w.getService("orion.core.preference").then(function(z){return z.getPreferences("/window/recent")}).then(function(z){var x=z.get("projects");if(typeof x==="string")x=JSON.parse(x);var E=[];if(x&&x.length&&x.length>0)for(var F=0;F<x.length;F++)x[F].location!==v.ChildrenLocation&&x[F].name!==v.Name&&E.push(x[F]);E.push({name:v.Name,location:v.ChildrenLocation});if(E.length>5)E=E.slice(-5,E.length);z.put("projects",E)})}function q(v){return typeof v.textContent!==
"undefined"?v.textContent:v.innerText}function t(v){return q(document.createTextNode(v))}function C(v,w){if(typeof v.textContent!=="undefined")v.textContent=w;else v.innerText=w}var D=null;return{setUserName:a,getUserName:d,getUserKeyString:e,openDialog:f,getUserText:i,openInNewWindow:j,followLink:h,getPositionInfo:k,hashFromPosition:l,makeRelative:g,makeFullPath:p,isAtRoot:n,processNavigatorParent:m,processSearchResultParent:o,rememberSuccessfulTraversal:s,getText:q,safeText:t,setText:C}});
define("text!dijit/templates/Menu.html",function(){return'<table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0">\n\t<tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody>\n</table>'});
define("dijit/_Container",["dojo","dijit"],function(b,c){b.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,d){var e=this.containerNode;if(d&&typeof d=="number"){var f=this.getChildren();if(f&&f.length>=d){e=f[d-1].domNode;d="after"}}b.place(a.domNode,e,d);this._started&&!a._started&&a.startup()},removeChild:function(a){if(typeof a=="number")a=this.getChildren()[a];if(a)(a=
a.domNode)&&a.parentNode&&a.parentNode.removeChild(a)},hasChildren:function(){return this.getChildren().length>0},destroyDescendants:function(a){b.forEach(this.getChildren(),function(d){d.destroyRecursive(a)})},_getSiblingOfChild:function(a,d){a=a.domNode;d=d>0?"nextSibling":"previousSibling";do a=a[d];while(a&&(a.nodeType!=1||!c.byNode(a)));return a&&c.byNode(a)},getIndexOfChild:function(a){return b.indexOf(this.getChildren(),a)},startup:function(){if(!this._started){b.forEach(this.getChildren(),
function(a){a.startup()});this.inherited(arguments)}}});return c._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,c){b.declare("dijit._KeyNavContainer",c._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,d){var e=this._keyNavCodes={},f=b.hitch(this,this.focusPrev),i=b.hitch(this,this.focusNext);b.forEach(a,function(j){e[j]=f});b.forEach(d,function(j){e[j]=i});e[b.keys.HOME]=b.hitch(this,"focusFirstChild");e[b.keys.END]=b.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){b.forEach(this.getChildren(),b.hitch(this,"_startupChild"))},addChild:function(a){c._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(a)},focus:function(){this.focusFirstChild()},focusFirstChild:function(){var a=this._getFirstFocusableChild();a&&this.focusChild(a)},focusLastChild:function(){var a=this._getLastFocusableChild();a&&this.focusChild(a)},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,
1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),true)},focusChild:function(a,d){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(d?"end":"start");this._set("focusedChild",a)},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){if(a.target===
this.domNode){this.focusFirstChild();b.attr(this.domNode,"tabIndex","-1")}},_onBlur:function(){this.tabIndex&&b.attr(this.domNode,"tabIndex",this.tabIndex);this.inherited(arguments)},_onContainerKeypress:function(a){if(!(a.ctrlKey||a.altKey)){var d=this._keyNavCodes[a.charOrCode];if(d){d();b.stopEvent(a)}}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
d){if(a)a=this._getSiblingOfChild(a,d);for(var e=this.getChildren(),f=0;f<e.length;f++){a||(a=e[d>0?0:e.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,d)}return null}});return c._KeyNavContainer});define("text!dijit/templates/MenuItem.html",function(){return'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitem" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitIcon dijitMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">\n\t\t<div dojoAttachPoint="arrowWrapper" style="visibility: hidden">\n\t\t\t<img src="${_blankGif}" alt="" class="dijitMenuExpand"/>\n\t\t\t<span class="dijitMenuExpandA11y">+</span>\n\t\t</div>\n\t</td>\n</tr>'});
define("dijit/_Contained",["dojo","dijit"],function(b,c){b.declare("dijit._Contained",null,{getParent:function(){var a=c.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var d=this.domNode;do d=d[a+"Sibling"];while(d&&d.nodeType!=1);return d&&c.byNode(d)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var a=this.getParent();if(!a||!a.getIndexOfChild)return-1;
return a.getIndexOfChild(this)}});return c._Contained});
define("dijit/MenuItem",["dojo","dijit","text!dijit/templates/MenuItem.html","dijit/_Widget","dijit/_Templated","dijit/_Contained","dijit/_CssStateMixin"],function(b,c){b.declare("dijit.MenuItem",[c._Widget,c._Templated,c._Contained,c._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(c._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",
accelKey:"",disabled:false,_fillContent:function(a){a&&!("label"in this.params)&&this.set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);var a=this.id+"_text";b.attr(this.containerNode,"id",a);if(this.accelKeyNode){b.attr(this.accelKeyNode,"id",this.id+"_accel");a+=" "+this.id+"_accel"}c.setWaiState(this.domNode,"labelledby",a);b.setSelectable(this.domNode,false)},_onHover:function(){this.getParent().onItemHover(this)},_onUnhover:function(){this.getParent().onItemUnhover(this);
this._set("hovering",false)},_onClick:function(a){this.getParent().onItemClick(this,a);b.stopEvent(a)},onClick:function(){},focus:function(){try{b.isIE==8&&this.containerNode.focus();c.focus(this.focusNode)}catch(a){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){b.toggleClass(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){b.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},setDisabled:function(a){b.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){c.setWaiState(this.focusNode,"disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode.style.display=a?"":"none";this.accelKeyNode.innerHTML=a;b.attr(this.containerNode,"colSpan",a?"1":"2");this._set("accelKey",a)}});return c.MenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,c){b.declare("dijit.PopupMenuItem",c.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);c.PopupMenuItem.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.popup=c.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");c.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){if(this.popup){this.popup._destroyed||this.popup.destroyRecursive();delete this.popup}this.inherited(arguments)}});return c.PopupMenuItem});define("text!dijit/templates/CheckedMenuItem.html",function(){return'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitemcheckbox" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitMenuItemIcon dijitCheckedMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t\t<span class="dijitCheckedMenuItemIconChar">&#10003;</span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode,labelNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">&nbsp;</td>\n</tr>'});
define("dijit/CheckedMenuItem",["dojo","dijit","text!dijit/templates/CheckedMenuItem.html","dijit/MenuItem"],function(b,c){b.declare("dijit.CheckedMenuItem",c.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:false,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);c.setWaiState(this.domNode,"checked",a);this._set("checked",a)},onChange:function(){},_onClick:function(){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked)}this.inherited(arguments)}});
return c.CheckedMenuItem});define("text!dijit/templates/MenuSeparator.html",function(){return'<tr class="dijitMenuSeparator">\n\t<td class="dijitMenuSeparatorIconCell">\n\t\t<div class="dijitMenuSeparatorTop"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n\t<td colspan="3" class="dijitMenuSeparatorLabelCell">\n\t\t<div class="dijitMenuSeparatorTop dijitMenuSeparatorLabel"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n</tr>'});
define("dijit/MenuSeparator",["dojo","dijit","text!dijit/templates/MenuSeparator.html","dijit/_Widget","dijit/_Templated","dijit/_Contained"],function(b,c){b.declare("dijit.MenuSeparator",[c._Widget,c._Templated,c._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,false)},isFocusable:function(){return false}});return c.MenuSeparator});
define("dijit/Menu",["dojo","dijit","text!dijit/templates/Menu.html","dojo/window","dijit/_Widget","dijit/_KeyNavContainer","dijit/_Templated","dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"],function(b,c){b.declare("dijit._MenuBase",[c._Widget,c._Templated,c._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(!this._started){b.forEach(this.getChildren(),function(a){a.startup()});this.startupKeyNavChildren();this.inherited(arguments)}},onExecute:function(){},
onCancel:function(){},_moveToPopup:function(a){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.focusedChild._onClick(a);else(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var a=this.currentPopup.parentMenu;a.focusedChild&&a.focusedChild._setSelected(false);a.focusedChild=this.currentPopup.from_item;a.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup)}},
onItemHover:function(a){if(this.isActive){this.focusChild(a);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer)this.hover_timer=setTimeout(b.hitch(this,"_openPopup"),this.popupDelay)}this.focusedChild&&this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(false);var d=a.popup;if(d){this._stopPendingCloseTimer(d);d._pendingClose_timer=setTimeout(function(){d._pendingClose_timer=null;if(d.parentMenu)d.parentMenu.currentPopup=
null;c.popup.close(d)},this.popupDelay)}},onItemUnhover:function(a){this.isActive&&this._stopPopupTimer();if(this._hoveredChild==a)this._hoveredChild=null},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null}},_stopPendingCloseTimer:function(a){if(a._pendingClose_timer){clearTimeout(a._pendingClose_timer);a._pendingClose_timer=null}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null}},_getTopMenu:function(){for(var a=
this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,d){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return false;if(a.popup)this._openPopup();else{this.onExecute();a.onClick(d)}},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var d=a.popup;if(!d.isShowingNow){if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);c.popup.close(this.currentPopup)}d.parentMenu=this;d.from_item=a;var e=this;c.popup.open({parent:this,
popup:d,around:a.domNode,orient:this._orient||(this.isLeftToRight()?{TR:"TL",TL:"TR",BR:"BL",BL:"BR"}:{TL:"TR",TR:"TL",BL:"BR",BR:"BL"}),onCancel:function(){e.focusChild(a);e._cleanUp();a._setSelected(true);e.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=d;d.connect(d.domNode,"onmouseenter",b.hitch(e,"_onPopupHover"));if(d.focus)d._focus_timer=setTimeout(b.hitch(d,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=true;b.replaceClass(this.domNode,
"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=true;this._markActive()},_markInactive:function(){this.isActive=false;b.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup){c._curFocus&&b.isDescendant(c._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus();c.popup.close(this.currentPopup);
this.currentPopup=null}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null}},_onItemFocus:function(a){this._hoveredChild&&this._hoveredChild!=a&&this._hoveredChild._onUnhover()},_onBlur:function(){this._cleanUp();this.inherited(arguments)},_cleanUp:function(){this._closeChild();typeof this.isShowingNow=="undefined"&&this._markInactive()}});b.declare("dijit.Menu",c._MenuBase,{constructor:function(){this._bindings=[]},templateString:b.cache("dijit",
"templates/Menu.html"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(b.body()):b.forEach(this.targetNodeIds,this.bindDomNode,this);var a=b.keys,d=this.isLeftToRight();this._openSubMenuKey=d?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=d?a.LEFT_ARROW:a.RIGHT_ARROW;this.connectKeyNavHandlers([a.UP_ARROW],[a.DOWN_ARROW])},_onKeyPress:function(a){if(!(a.ctrlKey||a.altKey))switch(a.charOrCode){case this._openSubMenuKey:this._moveToPopup(a);
b.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)this.parentMenu._isMenuBar?this.parentMenu.focusPrev():this.onCancel(false);else b.stopEvent(a);break}},_iframeContentWindow:function(a){return b.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&b.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&b.doc.frames[a.name]&&b.doc.frames[a.name].document||
null},bindDomNode:function(a){a=b.byId(a);var d;if(a.tagName.toLowerCase()=="iframe"){var e=a,f=this._iframeContentWindow(e);d=b.withGlobal(f,b.body)}else d=a==b.body()?b.doc.documentElement:a;var i={node:a,iframe:e};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(i));var j=b.hitch(this,function(h){return[b.connect(h,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(g){b.stopEvent(g);this._scheduleOpen(g.target,e,{x:g.pageX,y:g.pageY})}),b.connect(h,"onkeydown",this,function(g){if(g.shiftKey&&
g.keyCode==b.keys.F10){b.stopEvent(g);this._scheduleOpen(g.target,e)}})]});i.connects=d?j(d):[];if(e){i.onloadHandler=b.hitch(this,function(){var h=this._iframeContentWindow(e);d=b.withGlobal(h,b.body);i.connects=j(d)});e.addEventListener?e.addEventListener("load",i.onloadHandler,false):e.attachEvent("onload",i.onloadHandler)}},unBindDomNode:function(a){var d;try{d=b.byId(a)}catch(e){return}a="_dijitMenu"+this.id;if(d&&b.hasAttr(d,a)){var f=b.attr(d,a)-1,i=this._bindings[f];b.forEach(i.connects,b.disconnect);
var j=i.iframe;if(j)j.removeEventListener?j.removeEventListener("load",i.onloadHandler,false):j.detachEvent("onload",i.onloadHandler);b.removeAttr(d,a);delete this._bindings[f]}},_scheduleOpen:function(a,d,e){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:d,coords:e})}),1)},_openMyself:function(a){function d(){k.refocus&&c.focus(l);c.popup.close(k)}var e=a.target,f=a.iframe;if(a=a.coords){if(f){e=b.position(f,true);var i=
this._iframeContentWindow(f);i=b.withGlobal(i,"_docScroll",b);var j=b.getComputedStyle(f),h=b._toPixelValue,g=(b.isIE&&b.isQuirks?0:h(f,j.paddingLeft))+(b.isIE&&b.isQuirks?h(f,j.borderLeftWidth):0);f=(b.isIE&&b.isQuirks?0:h(f,j.paddingTop))+(b.isIE&&b.isQuirks?h(f,j.borderTopWidth):0);a.x+=e.x+g-i.x;a.y+=e.y+f-i.y}}else{a=b.position(e,true);a.x+=10;a.y+=10}var k=this,l=c.getFocus(this);c.popup.open({popup:this,x:a.x,y:a.y,onExecute:d,onCancel:d,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=
function(){this.inherited("_onBlur",arguments);c.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return c.Menu});define("text!dijit/form/templates/Button.html",function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdojoAttachPoint="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/DropDownButton.html",function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick" dojoAttachPoint="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="focusNode,titleNode,_arrowWrapperNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdojoAttachPoint="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdojoAttachPoint="containerNode,_popupStateNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/ComboButton.html",function(){return'<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" dojoAttachPoint="buttonNode" dojoAttachEvent="ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" dojoAttachPoint="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdojoAttachPoint="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdojoAttachEvent="onkeypress:_onArrowKeyPress"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" dojoAttachPoint="valueNode"\n\t\t/></td></tr></tbody\n></table>'});
define("dijit/_HasDropDown",["dojo","dijit","dijit/_Widget"],function(b,c){b.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(a){if(!(this.disabled||this.readOnly)){b.stopEvent(a);this._docHandler=this.connect(b.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown()}},_onDropDownMouseUp:function(a){a&&
this._docHandler&&this.disconnect(this._docHandler);var d=this.dropDown,e=false;if(a&&this._opened){var f=b.position(this._buttonNode,true);if(!(a.pageX>=f.x&&a.pageX<=f.x+f.w)||!(a.pageY>=f.y&&a.pageY<=f.y+f.h)){for(f=a.target;f&&!e;)if(b.hasClass(f,"dijitPopup"))e=true;else f=f.parentNode;if(e){f=a.target;if(d.onItemClick){for(var i;f&&!(i=c.byNode(f));)f=f.parentNode;i&&i.onClick&&i.getParent&&i.getParent().onItemClick(i,a)}return}}}this._opened&&d.focus&&d.autoFocus!==false&&window.setTimeout(b.hitch(d,
"focus"),1)},_onDropDownClick:function(a){this._stopClickEvents&&b.stopEvent(a)},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";b.addClass(this._arrowWrapperNode||
this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp")},destroy:function(){if(this.dropDown){this.dropDown._destroyed||this.dropDown.destroyRecursive();delete this.dropDown}this.inherited(arguments)},_onKey:function(a){if(!(this.disabled||
this.readOnly)){var d=this.dropDown,e=a.target;if(d&&this._opened&&d.handleKey)if(d.handleKey(a)===false){b.stopEvent(a);return}if(d&&this._opened&&a.charOrCode==b.keys.ESCAPE){this.closeDropDown();b.stopEvent(a)}else if(!this._opened&&(a.charOrCode==b.keys.DOWN_ARROW||(a.charOrCode==b.keys.ENTER||a.charOrCode==" ")&&((e.tagName||"").toLowerCase()!=="input"||e.type&&e.type.toLowerCase()!=="text"))){this._toggleOnKeyUp=true;b.stopEvent(a)}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(b.hitch(a,"focus"),1)}},_onBlur:function(){this.closeDropDown(c._curFocus&&this.dropDown&&b.isDescendant(c._curFocus,this.dropDown.domNode));this.inherited(arguments)},isLoaded:function(){return true},loadDropDown:function(a){a()},toggleDropDown:function(){if(!(this.disabled||this.readOnly))if(this._opened)this.closeDropDown();else this.isLoaded()?this.openDropDown():this.loadDropDown(b.hitch(this,"openDropDown"))},openDropDown:function(){var a=
this.dropDown,d=a.domNode,e=this._aroundNode||this.domNode,f=this;if(!this._preparedNode){this._preparedNode=true;if(d.style.width)this._explicitDDWidth=true;if(d.style.height)this._explicitDDHeight=true}if(this.maxHeight||this.forceWidth||this.autoWidth){var i={display:"",visibility:"hidden"};if(!this._explicitDDWidth)i.width="";if(!this._explicitDDHeight)i.height="";b.style(d,i);i=this.maxHeight;if(i==-1){i=b.window.getBox();var j=b.position(e,false);i=Math.floor(Math.max(j.y,i.h-(j.y+j.h)))}a.startup&&
!a._started&&a.startup();c.popup.moveOffScreen(a);j=b._getMarginSize(d);var h=i&&j.h>i;b.style(d,{overflowX:"hidden",overflowY:h?"auto":"hidden"});if(h){j.h=i;if("w"in j)j.w+=16}else delete j.h;if(this.forceWidth)j.w=e.offsetWidth;else if(this.autoWidth)j.w=Math.max(j.w,e.offsetWidth);else delete j.w;b.isFunction(a.resize)?a.resize(j):b.marginBox(d,j)}a=c.popup.open({parent:this,popup:a,around:e,orient:c.getPopupAroundAlignment(this.dropDownPosition&&this.dropDownPosition.length?this.dropDownPosition:
["below"],this.isLeftToRight()),onExecute:function(){f.closeDropDown(true)},onCancel:function(){f.closeDropDown(true)},onClose:function(){b.attr(f._popupStateNode,"popupActive",false);b.removeClass(f._popupStateNode,"dijitHasDropDownOpen");f._opened=false}});b.attr(this._popupStateNode,"popupActive","true");b.addClass(f._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return a},closeDropDown:function(a){if(this._opened){a&&this.focus();c.popup.close(this.dropDown);this._opened=false}}});
return c._HasDropDown});
define("dijit/form/Button",["dojo","dijit","text!dijit/form/templates/Button.html","text!dijit/form/templates/DropDownButton.html","text!dijit/form/templates/ComboButton.html","dijit/form/_FormWidget","dijit/_Container","dijit/_HasDropDown"],function(b,c){b.declare("dijit.form.Button",c.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(c.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),
_onClick:function(a){if(this.disabled)return false;this._clicked();return this.onClick(a)},_onButtonClick:function(a){if(this._onClick(a)===false)a.preventDefault();else if(this.type=="submit"&&!(this.valueNode||this.focusNode).form)for(var d=this.domNode;d.parentNode;d=d.parentNode){var e=c.byNode(d);if(e&&typeof e._onSubmit=="function"){e._onSubmit(a);break}}else if(this.valueNode){this.valueNode.click();a.preventDefault()}},buildRendering:function(){this.inherited(arguments);b.setSelectable(this.focusNode,
false)},_fillContent:function(a){if(a&&(!this.params||!("label"in this.params)))this.set("label",a.innerHTML)},_setShowLabelAttr:function(a){this.containerNode&&b.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return true},_clicked:function(){},setLabel:function(a){b.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},_setLabelAttr:function(a){this._set("label",a);this.containerNode.innerHTML=
a;if(this.showLabel==false&&!this.params.title)this.titleNode.title=b.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){b.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});b.declare("dijit.form.DropDownButton",[c.form.Button,c._Container,c._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);c.form.DropDownButton.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&this.dropDownContainer){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=c.byNode(a);delete this.dropDownContainer}this.dropDown&&c.popup.hide(this.dropDown);this.inherited(arguments)}},isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(){var a=this.dropDown;
if(a)if(this.isLoaded())this.openDropDown();else{var d=b.connect(a,"onLoad",this,function(){b.disconnect(d);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});b.declare("dijit.form.ComboButton",c.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(c.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",
cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){c.focus(this._popupStateNode);b.stopEvent(a)}},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){c.focus(this.titleNode);b.stopEvent(a)}},focus:function(a){this.disabled||c.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",c.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:b.mixin(b.clone(c.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,d){this._set("checked",a);b.attr(this.focusNode||this.domNode,"checked",a);c.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,d)},setChecked:function(a){b.deprecated("setChecked("+a+") is deprecated. Use set('checked',"+
a+") instead.","","2.0");this.set("checked",a)},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false)}});return c.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,c){return c.form.DropDownButton});
define("orion/commands",["require","dojo","dijit","orion/util","dijit/Menu","dijit/form/DropDownButton","dijit/MenuItem","dijit/PopupMenuItem","dijit/MenuSeparator","dijit/Tooltip"],function(b,c,a,d){function e(g){this._domScope={};this._objectScope={};this._globalScope={};this._namedGroups={};this._activeBindings={};this._init(g)}function f(g){this._init(g)}function i(g,k,l,p,n){this.keyCode=typeof g==="string"?g.toUpperCase().charCodeAt(0):g;this.mod1=k!==undefined&&k!==null?k:false;this.mod2=l!==
undefined&&l!==null?l:false;this.mod3=p!==undefined&&p!==null?p:false;this.mod4=n!==undefined&&n!==null?n:false}var j=c.declare(a.MenuItem,{_onClick:function(){this.hrefCallback||this.inherited(arguments)}});e.prototype={_init:function(g){this._registry=g.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._selection=g.selection;c.connect(window.document,"onkeydown",c.hitch(this,function(k){k=k||window.event;var l=k.target.nodeName.toLowerCase();
if(l==="input")switch(k.target.type.toLowerCase()){case "text":case "password":case "search":case "color":case "date":case "datetime":case "datetime-local":case "email":case "month":case "number":case "range":case "tel":case "time":case "url":case "week":return}else if(l==="textarea")return;this._processKey(k)}))},_processKey:function(g){function k(m){if(window.document.all)m.keyCode=0;else{m.preventDefault();m.stopPropagation()}}for(var l in this._activeBindings)if(this._activeBindings[l]&&this._activeBindings[l].keyBinding&&
this._activeBindings[l].command)if(this._activeBindings[l].keyBinding.match(g)){var p=this._activeBindings[l],n=p.command;if(n.hrefCallback){k(g);g=n.hrefCallback.call(p.handler||window,p.items,l,p.userData);g.then?g.then(function(m){window.open(m)}):window.open(g);return}else if(n.callback){k(g);window.setTimeout(function(){n.callback.call(p.handler||window,p.items,l,null,p.userData)},0);return}}},getSelectionService:function(){return this._selection},showKeyBindings:function(g){for(var k in this._activeBindings)this._activeBindings[k]&&
this._activeBindings[k].keyBinding&&this._activeBindings[k].command&&c.place("<span>"+d.getUserKeyString(this._activeBindings[k].keyBinding)+" = "+this._activeBindings[k].command.name+"<br></span>",g,"last")},addCommand:function(g,k){switch(k){case "dom":this._domScope[g.id]=g;break;case "object":this._objectScope[g.id]=g;break;case "global":this._globalScope[g.id]=g;break;default:throw"unrecognized command scope "+k;}},addCommandGroup:function(g,k,l,p,n){var m=this._namedGroups;if(p)m=this._createEntryForPath(p);
if(m[g]){if(l)m[g].title=l;if(k)m[g].position=k;if(n)m[g].scopeId=n}else{m[g]={title:l,position:k,children:{},scopeId:n};m.sortedCommands=null}},_createEntryForPath:function(g){var k=this._namedGroups;if(g){g=g.split("/");for(var l=0;l<g.length;l++)if(g[l].length>1){k[g[l]]||(k[g[l]]={position:0,children:{}});k=k[g[l]].children}}return k},registerCommandContribution:function(g,k,l,p,n,m){p=this._createEntryForPath(p);p[g]={scopeId:l,position:k};if(n)if(k=this._domScope[g]||this._globalScope[g])this._activeBindings[g]=
{command:k,keyBinding:n,keyOnly:m};p.sortedCommands=null},_isLastChildSeparator:function(g,k){if(k==="image")return g.childNodes.length>0&&c.hasClass(g.childNodes[g.childNodes.length-1],"commandSeparator");if(k==="menu"){g=g.getChildren();return g.length>0&&g[g.length-1]instanceof a.MenuSeparator}return false},renderCommands:function(g,k,l,p,n,m,o,s,q,t){if(typeof g==="string")g=c.byId(g);if(l){var C;if(k==="object")C=this._objectScope;else if(k==="dom")C=this._domScope;else if(k==="global")C=this._globalScope;
else throw"Unrecognized command scope "+k;this._render(this._namedGroups,g,k,l,p,n,m,o,C,s,q,t);if(n==="image")this._isLastChildSeparator(g,n)&&g.removeChild(g.childNodes[g.childNodes.length-1]);else if(n==="menu")if(this._isLastChildSeparator(g,n)){l=g.getChildren()[g.getChildren().length-1];g.removeChild(l);l.destroy()}}else{var D=this;this._selection&&this._selection.getSelections(function(v){D.renderCommands(g,k,v,p,n,m,o,s,q,t)})}},_render:function(g,k,l,p,n,m,o,s,q,t,C,D){var v=g.sortedCommands;
if(!v){v=[];for(var w in g){var z=g[w];if(z&&typeof z.position==="number"){z.id=w;v.push(z)}}v.sort(function(J,L){return J.position-L.position});g.sortedCommands=v}for(g=0;g<v.length;g++){var x;if(v[g].children){w=v[g];if(!(w.scopeId&&k.id!==w.scopeId)){var E;if(m==="image")if(w.title){z=new a.Menu({style:"display: none;"});z.eclipseScopeId=k.eclipseScopeId||k.id;this._render(v[g].children,z,l,p,n,"menu",o,s,q,t,C,D);E=z.getChildren();if(this._isLastChildSeparator(z,"menu")){x=E[E.length-1];z.removeChild(x);
x.destroy();E=z.getChildren()}if(E.length>0){x=E[0].eclipseCommand;if(E.length>1){x=new a.form.DropDownButton({label:w.title,dropDown:z});c.addClass(x.domNode,"commandLink");o&&c.addClass(x.domNode,o);c.place(x.domNode,k,"last")}else{z="image"+x.id+g;w=x._asImage(z,p,n,s,o,t,C,D);c.place(w,k,"last")}}}else{var F;if(k.childNodes.length>0&&!this._isLastChildSeparator(k,m))F=this.generateSeparatorImage(k);this._render(v[g].children,k,l,p,n,m,o,s,q,t,C,D);if(k.childNodes.length>0)if(k.childNodes[k.childNodes.length-
1]!==F)F=this.generateSeparatorImage(k)}else if(w.title){z=new a.Menu;this._render(v[g].children,z,l,p,n,m,o,s,q,t,C,D);z.getChildren().length>0&&k.addChild(new a.PopupMenuItem({label:w.title,popup:z}))}else{var K;if(k.getChildren().length>0&&!this._isLastChildSeparator(k,m)){K=new a.MenuSeparator;k.addChild(K)}this._render(v[g].children,k,l,p,n,m,o,s,q,t,C,D);w=k.getChildren();if(w[w.length-1]!==K){K=new a.MenuSeparator;k.addChild(K)}}}}else{z=(w=q[v[g].id])?true:false;if(w){if(l==="dom")z=m==="image"?
k.id===v[g].scopeId:m==="menu"?k.eclipseScopeId===v[g].scopeId:false;if(this._activeBindings[w.id]&&this._activeBindings[w.id].keyBinding){x=this._activeBindings[w.id];x.items=p;x.userData=s;x.handler=n;if(x.keyOnly)z=false}if(z&&w.visibleWhen)z=w.visibleWhen(p)}if(z)if(w.choiceCallback){z=new a.Menu({style:"display: none;"});if(m==="image"){x=new a.form.DropDownButton({label:w.name,dropDown:z});if(w.image){c.addClass(x.iconNode,"commandImage");o&&c.addClass(x.iconNode,o);x.iconNode.src=w.image}c.place(x.domNode,
k,"last");x.eclipseCommand=w;x.eclipseChoices=z;c.connect(x,"onClick",x,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,p,n,s)})}else if(m==="menu"){x=new a.PopupMenuItem({label:w.name,popup:z});k.addChild(x);x.eclipseCommand=w;x.eclipseChoices=z;c.connect(k,"_openPopup",x,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,p,n,s)})}}else if(m==="image"){z="image"+w.id+g;w=w._asImage(z,p,n,s,o,t,C,D);c.place(w,k,"last")}else m==="menu"&&w._addMenuItem(k,p,
n,s,o)}}},generateSeparatorImage:function(g){g=c.create("span",null,g,"last");c.addClass(g,"core-sprite-sep");c.addClass(g,"commandImage");c.addClass(g,"commandSprite");c.addClass(g,"commandSeparator");return g}};e.prototype.constructor=e;f.prototype={_init:function(g){this.id=g.id;this.name=g.name||"Empty Command";this.tooltip=g.tooltip||g.name;this.callback=g.callback;this.hrefCallback=g.hrefCallback;this.choiceCallback=g.choiceCallback;this.image=g.image||b.toUrl("images/none.png");this.imageClass=
g.imageClass;this.spriteClass=g.spriteClass||"commandSprite";this.visibleWhen=g.visibleWhen;this._deviceSupportsHover=false},_asImage:function(g,k,l,p,n,m,o,s){l=l||this;var q=c.create("a");q.id=this.name+"link";var t=null;if(this.tooltip)q.title=this.tooltip;if(m||!this.hasImage()){g=window.document.createTextNode(this.name);c.place(g,q,"last")}else{t=new Image;t.alt=this.name;t.title=this.tooltip||this.name;t.name=g;t.id=g}if(this.hrefCallback){g=this.hrefCallback.call(l,k,this.id,p);if(g.then)g.then(function(C){q.href=
C});else q.href=g}else if(this.callback)t?c.connect(t,"onclick",this,function(){this.callback.call(l,k,this.id,t.id,p)}):c.connect(q,"onclick",this,function(){this.callback.call(l,k,this.id,q.id,p)});if(t){if(this._deviceSupportsHover){t.src=b.toUrl("images/none.png");c.connect(t,"onmouseover",this,function(){t.src=this.image});c.connect(t,"onmouseout",this,function(){t.src=b.toUrl("images/none.png")})}else{t.src=this.image;c.connect(t,"onmouseover",this,function(){o?c.addClass(t,o):c.addClass(t,
"commandOver")});c.connect(t,"onmouseout",this,function(){t.src=this.image;o?c.removeClass(t,o):c.removeClass(t,"commandOver")})}c.addClass(t,"commandImage");n&&c.addClass(t,n);if(this.imageClass){c.addClass(t,this.spriteClass);c.addClass(t,this.imageClass)}c.place(t,q,"last")}s?c.addClass(q,s):c.addClass(q,"commandLink");n&&c.addClass(q,n);return q},_asLink:function(g,k,l){k=k||this;var p=window.document.createElement("a");if(this.tooltip)p.title=this.tooltip;c.place(window.document.createTextNode(this.name),
p,"only");p.href="";p.id=this.id+"link";if(this.callback)c.connect(p,"onclick",this,function(){this.callback.call(k,g,this.id,p.id)});else if(this.hrefCallback){var n=this.hrefCallback.call(k,g,this.id);if(n)if(n.then)n.then(function(m){p.href=m});else p.href=n}c.addClass(p,"commandLink");l&&c.addClass(p,l);return p},_addMenuItem:function(g,k,l,p,n){var m=new j({labelType:this.hrefCallback?"html":"text",label:this.name,iconClass:this.imageClass,hrefCallback:!!this.hrefCallback});this.tooltip&&new a.Tooltip({connectId:[m.domNode],
label:this.tooltip});if(this.hrefCallback){var o=this.hrefCallback.call(l,k,this.id,g.id,p);if(o)o.then?o.then(c.hitch(this,function(s){m.set("label","<a href='"+s+"'>"+this.name+"</a>")})):m.set("label","<a href='"+o+"'>"+this.name+"</a>")}else if(this.callback)m.onClick=c.hitch(this,function(){this.callback.call(l,k,this.id,null,p)});m.eclipseCommand=this;g.addChild(m);if(this.imageClass)c.addClass(m.iconNode,this.spriteClass);else if(this.image){c.addClass(m.iconNode,"commandImage");n&&c.addClass(m.iconNode,
n);m.iconNode.src=this.image}},populateChoicesMenu:function(g,k,l,p){g.focusedChild=null;c.forEach(g.getChildren(),function(o){g.removeChild(o);o.destroy()});l=this.getChoices(k,l,p);for(p=0;p<l.length;p++){var n=l[p],m;if(n.name){m=new a.MenuItem({label:n.name,iconClass:n.imageClass,onClick:this.makeChoiceCallback(n,k)});if(n.imageClass)c.addClass(m.iconNode,n.spriteClass||"commandSprite");else if(n.image){c.addClass(m.iconNode,"commandImage");m.iconNode.src=n.image}}else m=new a.MenuSeparator;g.addChild(m)}},
getChoices:function(g,k,l){if(this.choiceCallback)return this.choiceCallback.call(k,g,l);return null},makeChoiceCallback:function(g,k){return function(l){g.callback&&g.callback.call(g,k,l)}},hasImage:function(){return this.imageClass||this.image!==b.toUrl("images/none.png")}};f.prototype.constructor=f;var h=window.navigator.platform.indexOf("Mac")!==-1;i.prototype={match:function(g){if(this.keyCode===g.keyCode){if(this.mod1!==(h?g.metaKey:g.ctrlKey))return false;if(this.mod2!==g.shiftKey)return false;
if(this.mod3!==g.altKey)return false;if(h&&this.mod4!==g.ctrlKey)return false;return true}return false},equals:function(g){if(!g)return false;if(this.keyCode!==g.keyCode)return false;if(this.mod1!==g.mod1)return false;if(this.mod2!==g.mod2)return false;if(this.mod3!==g.mod3)return false;if(this.mod4!==g.mod4)return false;return true}};i.prototype.constructor=i;return{CommandService:e,CommandKeyBinding:i,Command:f,CommandMenuItem:j}});var orion=orion||{};orion.textview=orion.textview||{};
orion.textview.KeyBinding=function(){function b(a,d,e,f,i){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=d!==undefined&&d!==null?d:false;this.mod2=e!==undefined&&e!==null?e:false;this.mod3=f!==undefined&&f!==null?f:false;this.mod4=i!==undefined&&i!==null?i:false}var c=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(c?a.metaKey:a.ctrlKey))return false;if(this.mod2!==a.shiftKey)return false;if(this.mod3!==
a.altKey)return false;if(c&&this.mod4!==a.ctrlKey)return false;return true}return false},equals:function(a){if(!a)return false;if(this.keyCode!==a.keyCode)return false;if(this.mod1!==a.mod1)return false;if(this.mod2!==a.mod2)return false;if(this.mod3!==a.mod3)return false;if(this.mod4!==a.mod4)return false;return true}};return b}();typeof window!=="undefined"&&typeof window.define!=="undefined"&&define("orion/textview/keyBinding",[],function(){return orion.textview});
define("text!dijit/templates/Dialog.html",function(){return'<div class="dijitDialog" role="dialog" aria-labelledby="${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="ondijitclick: onCancel" title="${buttonCancel}" role="button" tabIndex="-1">\n\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent"></div>\n</div>'});
define("dojo/dnd/common",["dojo"],function(b){b.getObject("dnd",true,b);b.dnd.getCopyKeyState=b.isCopyKey;b.dnd._uniqueId=0;b.dnd.getUniqueId=function(){var c;do c=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(c));return c};b.dnd._empty={};b.dnd.isFormElement=function(c){c=c.target;if(c.nodeType==3)c=c.parentNode;return" button textarea input select option ".indexOf(" "+c.tagName.toLowerCase()+" ")>=0};return b.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(b){b.getObject("dnd",true,b);b.dnd.getViewport=b.window.getBox;b.dnd.V_TRIGGER_AUTOSCROLL=32;b.dnd.H_TRIGGER_AUTOSCROLL=32;b.dnd.V_AUTOSCROLL_VALUE=16;b.dnd.H_AUTOSCROLL_VALUE=16;b.dnd.autoScroll=function(c){var a=b.window.getBox(),d=0,e=0;if(c.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)d=-b.dnd.H_AUTOSCROLL_VALUE;else if(c.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)d=b.dnd.H_AUTOSCROLL_VALUE;if(c.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)e=-b.dnd.V_AUTOSCROLL_VALUE;
else if(c.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)e=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(d,e)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(c){for(var a=c.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in b.dnd._validNodes){var d=b.getComputedStyle(a);if(d.overflow.toLowerCase()in b.dnd._validOverflow){var e=b._getContentBox(a,d);d=b.position(a,true);var f=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,e.w/2),i=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
e.h/2),j=c.pageX-d.x,h=c.pageY-d.y,g=d=0;if(b.isWebKit||b.isOpera){j+=b.body().scrollLeft;h+=b.body().scrollTop}if(j>0&&j<e.w)if(j<f)d=-f;else if(j>e.w-f)d=f;if(h>0&&h<e.h)if(h<i)g=-i;else if(h>e.h-i)g=i;e=a.scrollLeft;f=a.scrollTop;a.scrollLeft+=d;a.scrollTop+=g;if(e!=a.scrollLeft||f!=a.scrollTop)return}}try{a=a.parentNode}catch(k){a=null}}b.dnd.autoScroll(c)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(c,a,d){this.node=b.byId(c);var e=a.touches?a.touches[0]:a;this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=a.button;a=this.host=d;c=c.ownerDocument;this.events=[b.connect(c,"onmousemove",this,"onFirstMove"),b.connect(c,"ontouchmove",this,"onFirstMove"),b.connect(c,"onmousemove",this,"onMouseMove"),b.connect(c,"ontouchmove",this,"onMouseMove"),b.connect(c,
"onmouseup",this,"onMouseUp"),b.connect(c,"ontouchend",this,"onMouseUp"),b.connect(c,"ondragstart",b.stopEvent),b.connect(c.body,"onselectstart",b.stopEvent)];a&&a.onMoveStart&&a.onMoveStart(this)},onMouseMove:function(c){b.dnd.autoScroll(c);var a=this.marginBox,d=c.touches?c.touches[0]:c;this.host.onMove(this,{l:a.l+d.pageX,t:a.t+d.pageY},c);b.stopEvent(c)},onMouseUp:function(c){if(b.isWebKit&&b.isMac&&this.mouseButton==2?c.button==0:this.mouseButton==c.button)this.destroy();b.stopEvent(c)},onFirstMove:function(c){var a=
this.node.style,d,e=this.host;switch(a.position){case "relative":case "absolute":d=Math.round(parseFloat(a.left))||0;a=Math.round(parseFloat(a.top))||0;break;default:a.position="absolute";a=b.marginBox(this.node);d=b.doc.body;var f=b.getComputedStyle(d),i=b._getMarginBox(d,f);f=b._getContentBox(d,f);d=a.l-(f.l-i.l);a=a.t-(f.t-i.t);break}this.marginBox.l=d-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;e&&e.onFirstMove&&e.onFirstMove(this,c);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var c=this.host;c&&c.onMoveStop&&c.onMoveStop(this);this.events=this.node=this.host=null}});return b.dnd.Mover});
define("dojo/dnd/Moveable",["dojo","dojo/dnd/Mover"],function(b){b.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(c,a){this.node=b.byId(c);a||(a={});this.handle=a.handle?b.byId(a.handle):null;if(!this.handle)this.handle=this.node;this.delay=a.delay>0?a.delay:0;this.skip=a.skip;this.mover=a.mover?a.mover:b.dnd.Mover;this.events=[b.connect(this.handle,"onmousedown",this,"onMouseDown"),b.connect(this.handle,"ontouchstart",this,"onMouseDown"),b.connect(this.handle,
"ondragstart",this,"onSelectStart"),b.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(c,a){return new b.dnd.Moveable(a,c)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(c){if(!(this.skip&&b.dnd.isFormElement(c))){if(this.delay){this.events.push(b.connect(this.handle,"onmousemove",this,"onMouseMove"),b.connect(this.handle,"ontouchmove",this,"onMouseMove"),b.connect(this.handle,"onmouseup",this,
"onMouseUp"),b.connect(this.handle,"ontouchend",this,"onMouseUp"));var a=c.touches?c.touches[0]:c;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(c);b.stopEvent(c)}},onMouseMove:function(c){var a=c.touches?c.touches[0]:c;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay){this.onMouseUp(c);this.onDragDetected(c)}b.stopEvent(c)},onMouseUp:function(c){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(c)},onSelectStart:function(c){if(!this.skip||
!b.dnd.isFormElement(c))b.stopEvent(c)},onDragDetected:function(c){new this.mover(this.node,c,this)},onMoveStart:function(c){b.publish("/dnd/move/start",[c]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(c){b.publish("/dnd/move/stop",[c]);b.removeClass(b.body(),"dojoMove");b.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(c,a){this.onMoving(c,a);var d=c.node.style;d.left=a.l+"px";d.top=a.t+"px";this.onMoved(c,a)},onMoving:function(){},
onMoved:function(){}});return b.dnd.Moveable});
define("dojo/dnd/move",["dojo","dojo/dnd/Mover","dojo/dnd/Moveable"],function(b){b.declare("dojo.dnd.move.constrainedMoveable",b.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(c,a){return new b.dnd.move.constrainedMoveable(a,c)},constructor:function(c,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(c){var a=this.constraintBox=this.constraints.call(this,c);a.r=a.l+a.w;a.b=a.t+a.h;if(this.within){c=b._getMarginSize(c.node);a.r-=c.w;
a.b-=c.h}},onMove:function(c,a){var d=this.constraintBox,e=c.node.style;this.onMoving(c,a);a.l=a.l<d.l?d.l:d.r<a.l?d.r:a.l;a.t=a.t<d.t?d.t:d.b<a.t?d.b:a.t;e.left=a.l+"px";e.top=a.t+"px";this.onMoved(c,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(c,a){return new b.dnd.move.boxConstrainedMoveable(a,c)},constructor:function(c,a){var d=a&&a.box;this.constraints=function(){return d}}});b.declare("dojo.dnd.move.parentConstrainedMoveable",
b.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(c,a){return new b.dnd.move.parentConstrainedMoveable(a,c)},constructor:function(c,a){var d=a&&a.area;this.constraints=function(){var e=this.node.parentNode,f=b.getComputedStyle(e),i=b._getMarginBox(e,f);if(d=="margin")return i;var j=b._getMarginExtents(e,f);i.l+=j.l;i.t+=j.t;i.w-=j.w;i.h-=j.h;if(d=="border")return i;j=b._getBorderExtents(e,f);i.l+=j.l;i.t+=j.t;i.w-=j.w;i.h-=j.h;if(d=="padding")return i;j=b._getPadExtents(e,f);i.l+=
j.l;i.t+=j.t;i.w-=j.w;i.h-=j.h;return i}}});b.dnd.constrainedMover=b.dnd.move.constrainedMover;b.dnd.boxConstrainedMover=b.dnd.move.boxConstrainedMover;b.dnd.parentConstrainedMover=b.dnd.move.parentConstrainedMover;return b.dnd.move});
define("dojo/dnd/TimedMoveable",["dojo","dojo/dnd/Moveable"],function(b){(function(){var c=b.dnd.Moveable.prototype.onMove;b.declare("dojo.dnd.TimedMoveable",b.dnd.Moveable,{timeout:40,constructor:function(a,d){d||(d={});if(d.timeout&&typeof d.timeout=="number"&&d.timeout>=0)this.timeout=d.timeout},markupFactory:function(a,d){return new b.dnd.TimedMoveable(d,a)},onMoveStop:function(a){if(a._timer){clearTimeout(a._timer);c.call(this,a,a._leftTop)}b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,d){a._leftTop=d;if(!a._timer){var e=this;a._timer=setTimeout(function(){a._timer=null;c.call(e,a,a._leftTop)},this.timeout)}}})})();return b.dnd.TimedMoveable});
define("dojo/fx/Toggler",["dojo"],function(b){b.declare("dojo.fx.Toggler",null,{node:null,showFunc:b.fadeIn,hideFunc:b.fadeOut,showDuration:200,hideDuration:200,constructor:function(c){var a=this;b.mixin(a,c);a.node=c.node;a._showArgs=b.mixin({},c);a._showArgs.node=a.node;a._showArgs.duration=a.showDuration;a.showAnim=a.showFunc(a._showArgs);a._hideArgs=b.mixin({},c);a._hideArgs.node=a.node;a._hideArgs.duration=a.hideDuration;a.hideAnim=a.hideFunc(a._hideArgs);b.connect(a.showAnim,"beforeBegin",b.hitch(a.hideAnim,
"stop",true));b.connect(a.hideAnim,"beforeBegin",b.hitch(a.showAnim,"stop",true))},show:function(c){return this.showAnim.play(c||0)},hide:function(c){return this.hideAnim.play(c||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var c={_fire:function(e,f){if(this[e])this[e].apply(this,f||[]);return this}},a=function(e){this._index=-1;this._animations=e||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;b.forEach(this._animations,function(f){this.duration+=f.duration;if(f.delay)this.duration+=f.delay},this)};b.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){b.disconnect(this._onAnimateCtx);b.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=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true)}},play:function(e,f){if(!this._current)this._current=this._animations[this._index=0];if(!f&&this._current.status()=="playing")return this;var i=b.connect(this._current,"beforeBegin",this,
function(){this._fire("beforeBegin")}),j=b.connect(this._current,"onBegin",this,function(){this._fire("onBegin",arguments)}),h=b.connect(this._current,"onPlay",this,function(){this._fire("onPlay",arguments);b.disconnect(i);b.disconnect(j);b.disconnect(h)});this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&b.disconnect(this._onEndCtx);this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,
arguments);return this},pause:function(){if(this._current){var e=b.connect(this._current,"onPause",this,function(){this._fire("onPause",arguments);b.disconnect(e)});this._current.pause()}return this},gotoPercent:function(e,f){this.pause();var i=this.duration*e;this._current=null;b.some(this._animations,function(j){if(j.duration<=i){this._current=j;return true}i-=j.duration;return false});this._current&&this._current.gotoPercent(i/this._current.duration,f);return this},stop:function(e){if(this._current){if(e){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(true);this._current=this._animations[this._index]}var f=b.connect(this._current,"onStop",this,function(){this._fire("onStop",arguments);b.disconnect(f)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onEndCtx&&b.disconnect(this._onEndCtx)}});b.extend(a,c);b.fx.chain=function(e){return new a(e)};
var d=function(e){this._animations=e||[];this._connects=[];this.duration=this._finished=0;b.forEach(e,function(i){var j=i.duration;if(i.delay)j+=i.delay;if(this.duration<j)this.duration=j;this._connects.push(b.connect(i,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new b.Animation({curve:[0,1],duration:this.duration});var f=this;b.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(i){f._connects.push(b.connect(f._pseudoAnimation,i,function(){f._fire(i,
arguments)}))})};b.extend(d,{_doAction:function(e,f){b.forEach(this._animations,function(i){i[e].apply(i,f)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(e,f){var i=this._pseudoAnimation;i[e].apply(i,f)},play:function(){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(e,f){var i=
this.duration*e;b.forEach(this._animations,function(j){j.gotoPercent(j.duration<i?1:i/j.duration,f)});this._call("gotoPercent",arguments);return this},stop:function(){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){b.forEach(this._connects,b.disconnect)}});b.extend(d,c);b.fx.combine=function(e){return new d(e)};b.fx.wipeIn=function(e){var f=e.node=b.byId(e.node),i=f.style,j;e=b.animateProperty(b.mixin({properties:{height:{start:function(){j=
i.overflow;i.overflow="hidden";if(i.visibility=="hidden"||i.display=="none"){i.height="1px";i.display="";i.visibility="";return 1}else{var h=b.style(f,"height");return Math.max(h,1)}},end:function(){return f.scrollHeight}}}},e));b.connect(e,"onEnd",function(){i.height="auto";i.overflow=j});return e};b.fx.wipeOut=function(e){var f=(e.node=b.byId(e.node)).style,i;e=b.animateProperty(b.mixin({properties:{height:{end:1}}},e));b.connect(e,"beforeBegin",function(){i=f.overflow;f.overflow="hidden";f.display=
""});b.connect(e,"onEnd",function(){f.overflow=i;f.height="auto";f.display="none"});return e};b.fx.slideTo=function(e){var f=null,i=null,j=function(h){return function(){var g=b.getComputedStyle(h),k=g.position;f=k=="absolute"?h.offsetTop:parseInt(g.top)||0;i=k=="absolute"?h.offsetLeft:parseInt(g.left)||0;if(k!="absolute"&&k!="relative"){g=b.position(h,true);f=g.y;i=g.x;h.style.position="absolute";h.style.top=f+"px";h.style.left=i+"px"}}}(e.node=b.byId(e.node));j();e=b.animateProperty(b.mixin({properties:{top:e.top||
0,left:e.left||0}},e));b.connect(e,"beforeBegin",e,j);return e}})();return b.fx});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,c){b.declare("dijit.form._FormMixin",null,{state:"",reset:function(){b.forEach(this.getDescendants(),function(a){a.reset&&a.reset()})},validate:function(){var a=false;return b.every(b.map(this.getDescendants(),function(d){d._hasBeenBlurred=true;var e=d.disabled||!d.validate||d.validate();if(!e&&!a){b.window.scrollIntoView(d.containerNode||d.domNode);d.focus();a=true}return e}),function(d){return d})},setValues:function(a){b.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",a)},_setValueAttr:function(a){var d={};b.forEach(this.getDescendants(),function(j){if(j.name)(d[j.name]||(d[j.name]=[])).push(j)});for(var e in d)if(d.hasOwnProperty(e)){var f=d[e],i=b.getObject(e,false,a);if(i!==undefined){b.isArray(i)||(i=[i]);if(typeof f[0].checked=="boolean")b.forEach(f,function(j){j.set("value",b.indexOf(i,j.value)!=-1)});else f[0].multiple?f[0].set("value",i):b.forEach(f,function(j,
h){j.set("value",i[h])})}}},getValues:function(){b.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a={};b.forEach(this.getDescendants(),function(d){var e=d.name;if(!(!e||d.disabled)){var f=d.get("value");if(typeof d.checked=="boolean")if(/Radio/.test(d.declaredClass))if(f!==false)b.setObject(e,f,a);else{f=b.getObject(e,false,a);f===undefined&&b.setObject(e,null,a)}else{d=b.getObject(e,false,a);
if(!d){d=[];b.setObject(e,d,a)}f!==false&&d.push(f)}else{d=b.getObject(e,false,a);if(typeof d!="undefined")b.isArray(d)?d.push(f):b.setObject(e,[d,f],a);else b.setObject(e,f,a)}}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=b.map(this._descendants,function(d){return d.get("state")||""});return b.indexOf(a,"Error")>=0?"Error":b.indexOf(a,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){b.forEach(this._childConnections||
[],b.hitch(this,"disconnect"));b.forEach(this._childWatches||[],function(a){a.unwatch()})},connectChildren:function(a){var d=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(j,h){d[j]=h}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var e=this._childConnections=[],f=this._childWatches=[];b.forEach(b.filter(this._descendants,function(j){return j.validate}),function(j){b.forEach(["state","disabled"],function(h){f.push(j.watch(h,function(){d.set("state",
d._getState())}))})});var i=function(){d._onChangeDelayTimer&&clearTimeout(d._onChangeDelayTimer);d._onChangeDelayTimer=setTimeout(function(){delete d._onChangeDelayTimer;d._set("value",d.get("value"))},10)};b.forEach(b.filter(this._descendants,function(j){return j.onChange}),function(j){e.push(d.connect(j,"onChange",i));f.push(j.watch("disabled",i))})},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(a,d,e){this.onValidStateChange(e=="")})},destroy:function(){this.disconnectChildren();
this.inherited(arguments)}});return c.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,c){b.declare("dijit._DialogMixin",null,{attributeMap:c._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=c._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return c._DialogMixin});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(b,c){b.declare("dijit.DialogUnderlay",[c._Widget,c._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(a){b.attr(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+
a;this._set("class",a)},postCreate:function(){b.body().appendChild(this.domNode)},layout:function(){var a=this.node.style,d=this.domNode.style;d.display="none";var e=b.window.getBox();d.top=e.t+"px";d.left=e.l+"px";a.width=e.w+"px";a.height=e.h+"px";d.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new c.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return c.DialogUnderlay});
define("dijit/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(b,c){b.declare("dijit.layout._LayoutWidget",[c._Widget,c._Container,c._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();if(!(a&&a.isLayoutContainer)){this.resize();this.connect(b.isIE?
this.domNode:b.global,"onresize",function(){this.resize()})}}},resize:function(a,d){var e=this.domNode;if(a){b.marginBox(e,a);if(a.t)e.style.top=a.t+"px";if(a.l)e.style.left=a.l+"px"}d=d||{};b.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=b.mixin(b.marginBox(e),d);a=b.getComputedStyle(e);var f=b._getMarginExtents(e,a),i=b._getBorderExtents(e,a);d=this._borderBox={w:d.w-(f.w+i.w),h:d.h-(f.h+i.h)};f=b._getPadExtents(e,a);this._contentBox={l:b._toPixelValue(e,a.paddingLeft),t:b._toPixelValue(e,a.paddingTop),
w:d.w-f.w,h:d.h-f.h};this.layout()},layout:function(){},_setupChild:function(a){b.addClass(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){b.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});c.layout.marginBox2contentBox=function(a,d){var e=b.getComputedStyle(a),f=b._getMarginExtents(a,
e),i=b._getPadBorderExtents(a,e);return{l:b._toPixelValue(a,e.paddingLeft),t:b._toPixelValue(a,e.paddingTop),w:d.w-(f.w+i.w),h:d.h-(f.h+i.h)}};(function(){var a=function(e){return e.substring(0,1).toUpperCase()+e.substring(1)},d=function(e,f){var i=e.resize?e.resize(f):b.marginBox(e.domNode,f);if(i)b.mixin(e,i);else{b.mixin(e,b.marginBox(e.domNode));b.mixin(e,f)}};c.layout.layoutChildren=function(e,f,i,j,h){f=b.mixin({},f);b.addClass(e,"dijitLayoutContainer");i=b.filter(i,function(g){return g.region!=
"center"&&g.layoutAlign!="client"}).concat(b.filter(i,function(g){return g.region=="center"||g.layoutAlign=="client"}));b.forEach(i,function(g){var k=g.domNode,l=g.region||g.layoutAlign,p=k.style;p.left=f.l+"px";p.top=f.t+"px";p.position="absolute";b.addClass(k,"dijitAlign"+a(l));k={};if(j&&j==g.id)k[g.region=="top"||g.region=="bottom"?"h":"w"]=h;if(l=="top"||l=="bottom"){k.w=f.w;d(g,k);f.h-=g.h;if(l=="top")f.t+=g.h;else p.top=f.t+f.h+"px"}else if(l=="left"||l=="right"){k.h=f.h;d(g,k);f.w-=g.w;if(l==
"left")f.l+=g.w;else p.left=f.l+f.w+"px"}else if(l=="client"||l=="center")d(g,f)})}})();return c.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,c){b.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){b.forEach(this.getChildren(),function(a){a.startup();a._started=true})},startup:function(){if(!this._started){var a=c._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;
this.inherited(arguments);this._startChildren();this._isShown()&&this._onShow();this._childOfLayoutWidget||this.connect(b.isIE?this.domNode:b.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=b.query("> *",this.containerNode).filter(function(f){return f.tagName!=="SCRIPT"}),d=a.filter(function(f){return b.hasAttr(f,"data-dojo-type")||b.hasAttr(f,"dojoType")||b.hasAttr(f,"widgetId")}),e=b.filter(d.map(c.byNode),function(f){return f&&
f.domNode&&f.resize});if(a.length==d.length&&e.length==1)this._singleChild=e[0];else delete this._singleChild;b.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,d){!this._wasShown&&this.open!==false&&this._onShow();this._resizeCalled=true;this._scheduleLayout(a,d)},_scheduleLayout:function(a,d){if(this._isShown())this._layout(a,d);else{this._needLayout=true;this._changeSize=a;this._resultSize=d}},_layout:function(a,d){a&&b.marginBox(this.domNode,
a);var e=this.containerNode;if(e===this.domNode){d=d||{};b.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=b.mixin(b.marginBox(e),d);this._contentBox=c.layout.marginBox2contentBox(e,d)}else this._contentBox=b.contentBox(e);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||b.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else b.forEach(this.getChildren(),
function(d){d.resize&&d.resize()})},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open"in this)return this.open;return this._resizeCalled}else if("open"in this)return this.open;else{var a=this.domNode,d=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!b.hasClass(a,"dijitHidden")&&d&&d.style&&d.style.display!="none"}},_onShow:function(){this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments);this._wasShown=
true}});return c.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",true,b);(function(){var c=0;b.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};b.html._emptyNode=b.empty;b.html._setNodeContent=function(a,d){b.empty(a);if(d){if(typeof d=="string")d=b._toDom(d,a.ownerDocument);if(!d.nodeType&&b.isArrayLike(d))for(var e=d.length,f=0;f<d.length;f=e==d.length?f+1:0)b.place(d[f],a,"last");else b.place(d,a,"last")}return a};b.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:b._scopeName,startup:true,constructor:function(a,d){b.mixin(this,a||{});d=this.node=b.byId(this.node||d);if(!this.id)this.id=["Setter",d?d.id||d.tagName:"",c++].join("_")},set:function(a,d){if(undefined!==a)this.content=a;d&&this._mixin(d);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;if(!a)throw new Error(this.declaredClass+": setContent given no node");
try{a=b.html._setNodeContent(a,this.content)}catch(d){var e=this.onContentError(d);try{a.innerHTML=e}catch(f){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+f.message,f)}}this.node=a},empty:function(){if(this.parseResults&&this.parseResults.length){b.forEach(this.parseResults,function(a){a.destroy&&a.destroy()});delete this.parseResults}b.html._emptyNode(this.node)},onBegin:function(){var a=this.content;if(b.isString(a)){if(this.cleanContent)a=b.html._secureForInnerHtml(a);
if(this.extractContent){var d=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(d)a=d[1]}}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.node;delete this.content},onContentError:function(a){return"Error occured setting content: "+a},_mixin:function(a){var d={},e;for(e in a)e in d||(this[e]=a[e])},_parse:function(){var a=this.node;try{var d={};b.forEach(["dir","lang","textDir"],
function(f){if(this[f])d[f]=this[f]},this);this.parseResults=b.parser.parse({rootNode:a,noStart:!this.startup,inherited:d,scope:this.parserScope})}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,d,e){a=this["on"+a+"Error"].call(this,d);if(e)console.error(e,d);else a&&b.html._setNodeContent(this.node,a,true)}});b.html.set=function(a,d,e){if(undefined==d){console.warn("dojo.html.set: no cont argument provided, using empty string");d=""}return e?(new b.html._ContentSetter(b.mixin(e,
{content:d,node:a}))).set():b.html._setNodeContent(a,d,true)}})();return b.html});define("dijit/nls/loading",{root:{loadingState:"Loading...",errorState:"Sorry, an error occurred"},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});
define("dijit/layout/ContentPane",["dojo","dijit","dijit/_Widget","dijit/layout/_ContentPaneResizeMixin","dojo/string","dojo/html","i18n!dijit/nls/loading"],function(b,c){b.declare("dijit.layout.ContentPane",[c._Widget,c.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:b._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",
isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:b.delegate(c._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(a,d){if((!a||!a.template)&&d&&!("href"in a)&&!("content"in a)){var e=b.doc.createDocumentFragment();for(d=b.byId(d);d.firstChild;)e.appendChild(d.firstChild);a=b.delegate(a,{content:e})}this.inherited(arguments,[a,d])},postMixInProperties:function(){this.inherited(arguments);var a=b.i18n.getLocalization("dijit",
"loading",this.lang);this.loadingMessage=b.string.substitute(this.loadingMessage,a);this.errorMessage=b.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";b.attr(this.domNode,"role")||c.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&b.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&b.isFunction(a.startup)){a.startup();
a._started=true}},this)},setHref:function(a){b.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",a)},_setHrefAttr:function(a){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._set("href",a);if(this.preload||this._created&&this._isShown())this._load();else this._hrefChanged=true;return this.onLoadDeferred},setContent:function(a){b.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.",
"","2.0");this.set("content",a)},_setContentAttr:function(a){this._set("href","");this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._setContent(a||"");this._isDownloaded=false;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&this._xhrDfd.fired==-1&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},uninitialize:function(){this._beingDestroyed&&
this.cancel();this.inherited(arguments)},destroyRecursive:function(){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href)if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),
true);var a=this,d={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};b.isObject(this.ioArgs)&&b.mixin(d,this.ioArgs);var e=this._xhrDfd=(this.ioMethod||b.xhrGet)(d);e.addCallback(function(f){try{a._isDownloaded=true;a._setContent(f,false);a.onDownloadEnd()}catch(i){a._onError("Content",i)}delete a._xhrDfd;return f});e.addErrback(function(f){e.canceled||a._onError("Download",f);delete a._xhrDfd;return f});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
true);try{this.onLoadDeferred.callback(a)}catch(d){console.error("Error "+this.widgetId+" running custom onLoad code: "+d.message)}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(){this.isLoaded&&this._onUnloadHandler();var a=this._contentSetter;b.forEach(this.getChildren(),function(d){d.destroyRecursive&&d.destroyRecursive()});if(a){b.forEach(a.parseResults,
function(d){d.destroyRecursive&&d.domNode&&d.domNode.parentNode==b.body()&&d.destroyRecursive()});delete a.parseResults}b.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,d){this.destroyDescendants();var e=this._contentSetter;if(!(e&&e instanceof b.html._ContentSetter))e=this._contentSetter=new b.html._ContentSetter({node:this.containerNode,_onError:b.hitch(this,this._onError),onContentError:b.hitch(this,function(i){i=this.onContentError(i);try{this.containerNode.innerHTML=
i}catch(j){console.error("Fatal "+this.id+" could not change content due to "+j.message,j)}})});var f=b.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});e.set(b.isObject(a)&&a.domNode?a.domNode:a,f);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();if(!d){if(this._started){this._startChildren();this._scheduleLayout()}this._onLoadHandler(a)}},
_onError:function(a,d,e){this.onLoadDeferred.errback(d);a=this["on"+a+"Error"].call(this,d);if(e)console.error(e,d);else a&&this._setContent(a,true)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}});return c.layout.ContentPane});
define("dijit/nls/common",{root:{buttonOk:"OK",buttonCancel:"Cancel",buttonSave:"Save",itemClose:"Close"},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});define("text!dijit/templates/TooltipDialog.html",function(){return'<div role="presentation" tabIndex="-1">\n\t<div class="dijitTooltipContainer" role="presentation">\n\t\t<div class ="dijitTooltipContents dijitTooltipFocusNode" dojoAttachPoint="containerNode" role="dialog"></div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n</div>'});
define("dijit/TooltipDialog",["dojo","dijit","text!dijit/templates/TooltipDialog.html","dijit/layout/ContentPane","dijit/_Templated","dijit/form/_FormMixin","dijit/_DialogMixin"],function(b,c){b.declare("dijit.TooltipDialog",[c.layout.ContentPane,c._Templated,c.form._FormMixin,c._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:b.cache("dijit","templates/TooltipDialog.html"),_setTitleAttr:function(a){this.containerNode.title=
a;this._set("title",a)},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey")},orient:function(a,d,e){a="dijitTooltipAB"+(e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(e.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);c.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);this._onShow()},
onClose:function(){this.onHide()},_onKey:function(a){var d=a.target,e=b.keys;a.charOrCode===e.TAB&&this._getFocusItems(this.containerNode);var f=this._firstFocusItem==this._lastFocusItem;if(a.charOrCode==e.ESCAPE){setTimeout(b.hitch(this,"onCancel"),0);b.stopEvent(a)}else if(d==this._firstFocusItem&&a.shiftKey&&a.charOrCode===e.TAB){f||c.focus(this._lastFocusItem);b.stopEvent(a)}else if(d==this._lastFocusItem&&a.charOrCode===e.TAB&&!a.shiftKey){f||c.focus(this._firstFocusItem);b.stopEvent(a)}else a.charOrCode===
e.TAB&&a.stopPropagation()}});return c.TooltipDialog});
define("dijit/Dialog",["dojo","dijit","text!dijit/templates/Dialog.html","dojo/dnd/move","dojo/dnd/TimedMoveable","dojo/fx","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin","dijit/form/_FormMixin","dijit/_DialogMixin","dijit/DialogUnderlay","dijit/layout/ContentPane","i18n!dijit/nls/common","dijit/TooltipDialog"],function(b,c){b.declare("dijit._DialogBase",[c._Templated,c.form._FormMixin,c._DialogMixin,c._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),
baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(c._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:c.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var a=b.i18n.getLocalization("dijit","common");b.mixin(this,a);this.inherited(arguments)},
postCreate:function(){b.style(this.domNode,{display:"none",position:"absolute"});b.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[]},onLoad:function(){this._position();if(this.autofocus&&c._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);c.focus(this._firstFocusItem)}this.inherited(arguments)},_endDrag:function(a){if(a&&a.node&&a.node===this.domNode)this._relativePosition=
b.position(a.node)},_setup:function(){var a=this.domNode;if(this.titleBar&&this.draggable){this._moveable=b.isIE==6?new b.dnd.TimedMoveable(a,{handle:this.titleBar}):new b.dnd.Moveable(a,{handle:this.titleBar,timeout:0});this._dndListener=b.subscribe("/dnd/move/stop",this,"_endDrag")}else b.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":b.map(this["class"].split(/\s/),function(d){return d+"_underlay"}).join(" ")}},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle)this._singleChild.domNode.style.cssText=
this._singleChildOriginalStyle;delete this._singleChildOriginalStyle}else b.style(this.containerNode,{width:"auto",height:"auto"});var a=b._getMarginSize(this.domNode),d=b.window.getBox();if(a.w>=d.w||a.h>=d.h){var e=Math.min(a.w,Math.floor(d.w*0.75));a=Math.min(a.h,Math.floor(d.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:e,h:a})}else b.style(this.containerNode,{width:e+"px",height:a+"px",
overflow:"auto",position:"relative"})}else this._singleChild&&this._singleChild.resize&&this._singleChild.resize()},_position:function(){if(!b.hasClass(b.body(),"dojoMove")){var a=this.domNode,d=b.window.getBox(),e=this._relativePosition,f=e?null:b._getBorderBox(a),i=Math.floor(d.l+(e?e.x:(d.w-f.w)/2));d=Math.floor(d.t+(e?e.y:(d.h-f.h)/2));b.style(a,{left:i+"px",top:d+"px"})}},_onKey:function(a){if(a.charOrCode){var d=b.keys,e=a.target;a.charOrCode===d.TAB&&this._getFocusItems(this.domNode);var f=
this._firstFocusItem==this._lastFocusItem;if(e==this._firstFocusItem&&a.shiftKey&&a.charOrCode===d.TAB){f||c.focus(this._lastFocusItem);b.stopEvent(a)}else if(e==this._lastFocusItem&&a.charOrCode===d.TAB&&!a.shiftKey){f||c.focus(this._firstFocusItem);b.stopEvent(a)}else{for(;e;){if(e==this.domNode||b.hasClass(e,"dijitPopup"))if(a.charOrCode==d.ESCAPE)this.onCancel();else return;e=e.parentNode}if(a.charOrCode!==d.TAB)b.stopEvent(a);else if(!b.isOpera)try{this._firstFocusItem.focus()}catch(i){}}}},
show:function(){if(!this.open){this._started||this.startup();if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true}this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._modalconnects.push(b.connect(window,"onscroll",this,"layout"));this._modalconnects.push(b.connect(window,"onresize",this,function(){var d=b.window.getBox();if(!this._oldViewport||d.h!=this._oldViewport.h||d.w!=this._oldViewport.w){this.layout();this._oldViewport=d}}));this._modalconnects.push(b.connect(this.domNode,
"onkeypress",this,"_onKey"));b.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var a;this._fadeInDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeInDeferred}));a=b.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:b.hitch(this,function(){c._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){if(this.autofocus&&c._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);
c.focus(this._firstFocusItem)}this._fadeInDeferred.callback(true);delete this._fadeInDeferred})}).play();return this._fadeInDeferred}},hide:function(){if(this._alreadyInitialized){this._fadeInDeferred&&this._fadeInDeferred.cancel();var a;this._fadeOutDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeOutDeferred}));a=b.fadeOut({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,function(){this.domNode.style.display="none";c._DialogLevelManager.hide(this);this.onHide();
this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred})}).play();if(this._scrollConnected)this._scrollConnected=false;b.forEach(this._modalconnects,b.disconnect);this._modalconnects=[];this._relativePosition&&delete this._relativePosition;this._set("open",false);return this._fadeOutDeferred}},layout:function(){if(this.domNode.style.display!="none"){c._underlay&&c._underlay.layout();this._position()}},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&
this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();this._dndListener&&b.unsubscribe(this._dndListener);b.forEach(this._modalconnects,b.disconnect);c._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[c.layout.ContentPane,c._DialogBase],{});c._DialogLevelManager={show:function(a,d){var e=c._dialogStack;e[e.length-1].focus=c.getFocus(a);var f=c._underlay;if(!f||f._destroyed)f=c._underlay=new c.DialogUnderlay(d);else f.set(a.underlayAttrs);var i=
e[e.length-1].dialog?e[e.length-1].zIndex+2:950;e.length==1&&f.show();b.style(c._underlay.domNode,"zIndex",i-1);b.style(a.domNode,"zIndex",i);e.push({dialog:a,underlayAttrs:d,zIndex:i})},hide:function(a){var d=c._dialogStack;if(d[d.length-1].dialog==a){d.pop();var e=d[d.length-1];if(d.length==1)c._underlay._destroyed||c._underlay.hide();else{b.style(c._underlay.domNode,"zIndex",e.zIndex-1);c._underlay.set(e.underlayAttrs)}if(a.refocus){d=e.focus;if(!d||e.dialog&&!b.isDescendant(d.node,e.dialog.domNode)){e.dialog._getFocusItems(e.dialog.domNode);
d=e.dialog._firstFocusItem}try{c.focus(d)}catch(f){}}}else{e=b.indexOf(b.map(d,function(i){return i.dialog}),a);e!=-1&&d.splice(e,1)}},isTop:function(a){var d=c._dialogStack;return d[d.length-1].dialog==a}};c._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return c.Dialog});
define("orion/widgets/_OrionDialogMixin",["dojo","dijit"],function(b,c){b.declare("orion.widgets._OrionDialogMixin",null,{postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Information Needed";this.buttonCancel="Cancel"},postCreate:function(){this.inherited(arguments);b.connect(this,"onKeyPress",b.hitch(this,function(a){a.keyCode===b.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(b.hitch(this,function(){if(b.isDescendant(c._curFocus,
this.domNode))c._curFocus=null;if(b.isDescendant(c._prevFocus,this.domNode))c._prevFocus=null;this.destroyRecursive()}),this.duration)}})});define("text!orion/widgets/templates/OpenResourceDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" title="${title}" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<div style="display:table">\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<label for="resourceName" style="padding-right:10">${selectFile}</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<input type="text" dojoType="dijit.form.TextBox" dojoAttachPoint="resourceName" \n\t\t\t\t\t\tplaceHolder="${searchPlaceHolder}"\n\t\t\t\t\t\tintermediateChanges="true" style="width:30em;">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="results" style="max-height:400px; height:auto; overflow-y:auto;"></div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="statusbar" style="display:table-cell;"></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/OpenResourceDialog",["dojo","dijit","dijit/Dialog","dijit/form/TextBox","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/OpenResourceDialog.html"],function(b,c){return b.declare("orion.widgets.OpenResourceDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/OpenResourceDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,options:null,searchLocation:null,searcher:null,constructor:function(){this.inherited(arguments);
this.timeoutId=null;this.time=0;this.searchLocation=(this.options=arguments[0])&&this.options.SearchLocation;this.searcher=this.options&&this.options.searcher;if(!this.searchLocation)throw new Error("Missing required argument: SearchLocation");if(!this.searcher)throw new Error("Missing required argument: searcher");},postMixInProperties:function(){this.options.title=this.options.title||"Find File Named";this.selectFile="Type the name of a file to open (? = any character, * = any string):";this.searchPlaceHolder=
"Search";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);b.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(b.hitch(this,this.checkSearch),0)});b.connect(this.resourceName,"onKeyPress",this,function(a){if(a.keyCode===b.keys.ENTER&&this.results){a=b.query("a",this.results);if(a.length>0){window.open(a[0].href);this.hide()}}});b.connect(this,"onMouseUp",function(a){a.target.focus()})},checkSearch:function(){clearTimeout(this.timeoutId);
var a=(new Date).getTime();if(a-this.time>this.SEARCH_DELAY){this.time=a;this.doSearch()}else this.timeoutId=setTimeout(b.hitch(this,"checkSearch"),50)},doSearch:function(){var a=this.resourceName&&this.resourceName.get("value");if(a){b.place("<div>Searching&#x2026;</div>",this.results,"only");var d=this;setTimeout(function(){var e=d.searcher.createSearchQuery(d.searchLocation,null,a);d.searcher.search(d.results,e,false,false,b.hitch(d,d.decorateResult),true,true)},0)}},decorateResult:function(a){var d=
this;b.query("a",a).forEach(function(e){b.connect(e,"onmouseup",function(f){!b.mouseButtons.isMiddle(f)&&!b.isCopyKey(f)&&d.hide()})})},show:function(){this.inherited(arguments);this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});define("text!orion/widgets/templates/LoginDialog.html",function(){return'\n<div>\n\t<div class="dijitTooltipContainer" role="presentation" style="width: 300px; padding-left: 0; padding-right: 0; padding-top: 0.5em; padding-bottom: 0.45em">\n\t\t<div class="dijitTooltipContents dijitTooltipFocusNode" role="dialog"\n\t\t\tdojoattachpoint="containerNode" style="padding: 0">\n\t\t\t<table dojoAttachPoint="authenticated" style="display: none; width: 100%;">\n\t\t\t <tbody dojoAttachPoint="authenticatedList">\n\t\t\t</tbody>\n\t\t\t</span>\n\t\t\t\n\t\t\t<table dojoAttachPoint="otherUnauthenticated" style="display: none; width: 100%;">\n\t\t\t <tbody dojoAttachPoint="otherUnauthenticatedList">\n\t\t\t</tbody>\n\t\t\t</span>\n\t\t</div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n\n</div>'});
define("orion/widgets/LoginDialog",["require","dojo","dijit","orion/util","dijit/TooltipDialog","text!orion/widgets/templates/LoginDialog.html"],function(b,c,a,d){c.declare("orion.widgets.LoginDialog",[a.TooltipDialog],{widgetsInTemplate:true,templateString:c.cache("orion","widgets/templates/LoginDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.authenticatedServices={};this.unauthenticatedServices={}},setPendingAuthentication:function(e){for(var f in this.unauthenticatedServices)delete this.unauthenticatedServices[f].pending;
for(f in e)if(this.unauthenticatedServices[e[f].SignInKey])this.unauthenticatedServices[e[f].SignInKey].pending=true;else if(this.authenticatedServices[e[f].SignInKey]){this.unauthenticatedServices[e[f].SignInKey]=this.authenticatedServices[e[f].SignInKey];this.unauthenticatedServices[e[f].SignInKey].pending=true;delete this.authenticatedServices[e[f].SignInKey]}else this.unauthenticatedServices[e[f].SignInKey]={label:e[f].SignInKey,SignInLocation:e[f].SignInLocation,pending:true};this.renderUnauthenticatedServices();
this.renderAuthenticatedServices()},addUserItem:function(e,f,i,j){if(j){this.unauthenticatedServices[e]&&delete this.unauthenticatedServices[e];this.authenticatedServices[e]={authService:f,label:i,data:j}}else{this.authenticatedServices[e]&&delete this.authenticatedServices[e];this.unauthenticatedServices[e]=this.unauthenticatedServices[e]?{authService:f,label:i,pending:this.unauthenticatedServices[e].pending}:{authService:f,label:i}}c.hitch(this,this.renderAuthenticatedServices)();c.hitch(this,this.renderUnauthenticatedServices)();
if(a.byId("logins"))if(this.isSingleService()&&j){d.setUserName(j.login);e=j.Name&&j.Name.replace(/^\s+|\s+$/g,"")!==""?j.Name:j.login;if(e.length>40)e=e.substring(0,30)+"...";a.byId("logins").setLabel(e)}else a.byId("logins").setLabel("Security")},renderAuthenticatedServices:function(){c.empty(this.authenticatedList);this.authenticated.style.display=this.isEmpty(this.authenticatedServices)?"none":"";var e=this,f=true;for(var i in this.authenticatedServices){if(!f){var j=c.create("tr",null,this.authenticatedList);
c.create("td",{style:"padding: 0; margin 0;",colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},j)}f=false;j=c.create("tr",{className:"navTableHeading"});var h=c.create("td",{innerHTML:"<h2>"+(this.authenticatedServices[i].label?this.authenticatedServices[i].label:i)+"</h2>"},j,"only");c.addClass(h,"LoginWindowLeft");h=c.create("td",{style:"text-align: right"},j,"last");c.addClass(h,"LoginWindowRight");var g=this.authenticatedServices[i].data,
k=this.authenticatedServices[i].authService;g.Location&&c.create("a",{href:b.toUrl("profile/user-profile.html")+"#"+g.Location,innerHTML:"Profile"},h,"last");c.place(document.createTextNode(" "),h,"last");if(k.logout){var l=c.create("a",{innerHTML:"Sign out"},h,"last");c.connect(l,"onmouseover",l,function(){l.style.cursor="pointer"});c.connect(l,"onmouseout",l,function(){l.style.cursor="default"});c.connect(l,"onclick",c.hitch(e,function(p,n){return function(){p.logout().then(c.hitch(e,function(){this.addUserItem(n,
p,this.authenticatedServices[n].label);this.isSingleService()&&a.popup.close(this);localStorage.removeItem(n)}))}})(k,i))}c.place(j,this.authenticatedList,"last");h="N/A";if(g&&g.lastlogintimestamp)h=c.date.locale.format(new Date(g.lastlogintimestamp),{formatLength:"short"});g=g.Name&&g.Name.replace(/^\s+|\s+$/g,"")!==""?g.Name:g.login;j=c.create("tr");h=g.length>40?c.create("td",{innerHTML:g.substring(0,30)+"... logged in since "+h,colspan:2,title:g+" logged in since "+h},j,"only"):c.create("td",
{innerHTML:g+" logged in since "+h,colspan:2},j,"only");c.addClass(h,"LoginWindowLeft");c.addClass(h,"LoginWindowRight");c.addClass(h,"LoginWindowComment");c.place(j,this.authenticatedList,"last")}},renderUnauthenticatedServices:function(){c.empty(this.otherUnauthenticatedList);var e=this;this.otherUnauthenticated.style.display=this.isEmpty(this.unauthenticatedServices)?"none":"";var f=true;for(var i in this.unauthenticatedServices){if(!f||!this.isEmpty(this.authenticatedServices)){var j=c.create("tr",
null,this.otherUnauthenticatedList);c.create("td",{style:"padding: 0; margin 0;",colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},j)}f=false;j=c.create("tr",{className:"navTableHeading"});var h=c.create("td",null,j,"only");c.addClass(h,"LoginWindowLeft");c.create("h2",{innerHTML:this.unauthenticatedServices[i].label?this.unauthenticatedServices[i].label:i},h,"only");h=c.create("td",{style:"text-align: right"},j,"last");
c.addClass(h,"LoginWindowRight");var g=this.unauthenticatedServices[i].authService;if(g)if(g.getAuthForm)c.hitch(e,function(p,n){g.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(m){m.indexOf("?")==-1?c.create("a",{target:"_blank",href:m+"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+n,innerHTML:"Sign in"},p,"last"):c.create("a",{target:"_blank",href:m+"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+n,innerHTML:"Sign in"},
p,"last")})})(h,i);else{if(g.login){var k=c.create("a",{innerHTML:"Sign in",style:"cursor: hand;"},h,"last");c.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"});c.connect(k,"onmouseout",k,function(){k.style.cursor="default"});c.connect(k,"onclick",c.hitch(e,function(p){return function(){p.login(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(){e.isSingleService()&&a.popup.close(e)})}})(g))}}else{var l=this.unauthenticatedServices[i].SignInLocation;l.indexOf("?")==
-1?c.create("a",{target:"_blank",href:l+"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+i,innerHTML:"Sign in"},h,"last"):c.create("a",{target:"_blank",href:l+"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+i,innerHTML:"Sign in"},h,"last")}c.place(j,this.otherUnauthenticatedList,"last");if(this.unauthenticatedServices[i].pending){j=c.create("tr");h=c.create("td",{innerHTML:"Authentication required!",style:"padding-left: 10px",colspan:2},j,"only");c.addClass(h,
"LoginWindowLeft");c.addClass(h,"LoginWindowRight");c.create("img",{src:b.toUrl("images/warning.gif"),style:"padding-right: 4px; vertical-align: bottom; padding-bottom: 2px;"},h,"first");c.place(j,this.otherUnauthenticatedList,"last")}}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},isEmpty:function(e){for(var f in e)if(e.hasOwnProperty(f))return false;return true},length:function(e){var f=0;for(var i in e)e.hasOwnProperty(i)&&
f++;return f},getHostname:function(e){var f=document.createElement("img");f.src=e;e=f.src;f.src=null;return e.match(/^(?:f|ht)tp(?:s)?:\/\/([^\/]+)/im)[1].toString()}})});
define("orion/globalCommands",["require","dojo","dijit","orion/commands","orion/util","orion/textview/keyBinding","dijit/Menu","dijit/MenuItem","dijit/form/DropDownButton","orion/widgets/OpenResourceDialog","orion/widgets/LoginDialog"],function(b,c,a,d,e,f){function i(q){var t=document.createElement("a");t.href=q;return t.href}function j(q,t){if(q.getLabel)return q.getLabel();else{q=new c.Deferred;q.callback(t.properties.name);return q}}function h(q){var t=q.getServiceReferences("orion.core.auth"),
C=c.byId("userInfo");if(C){if(!a.byId("logins")){var D=new a.form.DropDownButton({id:"logins",label:"Security",dropDown:s,title:"Login statuses"});c.addClass(D.domNode,"commandImage");c.place(D.domNode,C,"only")}for(C=0;C<t.length;C++){var v=t[C];q.getService(v).then(function(w){j(w,v).then(function(z){w.getKey().then(function(x){w.getUser().then(function(E){s.addUserItem(x,w,z,E)},function(){s.addUserItem(x,w,z)});window.addEventListener("storage",function(){if(o[x]!==localStorage.getItem(x)){o[x]=
localStorage.getItem(x);w.getUser().then(function(E){s.addUserItem(x,w,z,E)},function(){s.addUserItem(x,w,z)})}},false)})})})}}}function g(q){s.setPendingAuthentication(q);var t;for(t in q)if(q.hasOwnProperty(t)){a.popup.open({popup:s,around:c.byId("logins")});return}a.popup.close(s)}function k(q,t,C,D){var v=c.byId("pageActions");if(C)v=c.byId(C);if(v){c.empty(v);q.renderCommands(v,"dom",t,t,"image",null,null,!D)}}function l(q,t,C,D,v,w,z,x){var E=b.toUrl("filesearch._");E=E.substring(0,E.length-
2)+"?q=";var F;D=c.byId(q);if(!D)throw"could not find banner parent, id was "+q;c.place(p,D,"only");c.place('<div id="keyAssist" class="keyAssistFloat"></div>',document.body,"last");var K=c.byId("primaryNav");if(K)for(var J=t.getServiceReferences("orion.page.link"),L=0;L<J.length;L++)t.getService(J[L]).then(function(){for(var S={},X=J[L].getPropertyNames(),ca=0;ca<X.length;ca++)S[X[ca]]=J[L].getProperty(X[ca]);if(S.href&&S.name){X=c.create("a",{href:S.href},K,"last");c.addClass(X,"commandLink");F=
document.createTextNode(S.name);c.place(F,X,"only")}});var M=c.byId("search");if(!M)throw"failed to generate HTML for banner";c.connect(M,"onkeypress",function(S){if(S.charOrCode===c.keys.ENTER)if(E){if(M.value.length>0){S=v.createSearchQuery("../filesearch?q=",M.value);window.location=b.toUrl("search/search.html")+"#"+S}}else window.alert("Can't search: SearchLocation not available")});if(q=c.byId("pageTitle")){F=document.createTextNode(document.title);c.place(F,q,"last")}var Q=function(S,X,ca){var fa=
new orion.widgets.OpenResourceDialog({SearchLocation:S,searcher:X});ca&&c.connect(fa,"onHide",function(){ca.getTextView().focus()});window.setTimeout(function(){fa.show()},0)};q=new d.Command({name:"Find File Named...",tooltip:"Choose a file by name and open an editor on it",id:"eclipse.openResource",callback:function(){Q(E,v,z)}});if(z){z.getTextView().setKeyBinding(new f.KeyBinding("r",true,true,false),"Find File Named...");z.getTextView().setAction("Find File Named...",function(){Q(E,v,z);return true})}C.addCommand(q,
"global");C.registerCommandContribution("eclipse.openResource",1,"globalActions",null,new d.CommandKeyBinding("t"),true);var N=c.byId("keyAssist");c.connect(document,"onkeypress",c.hitch(this,function(S){if(S.charOrCode===c.keys.ESCAPE)N.style.display="none"}));x&&x.addHandler({isActive:function(){return N.style.display==="block"},cancel:function(){if(this.isActive()){N.style.display="none";return true}return false}});x=new d.Command({name:"Show Keys",tooltip:"Show a list of all the keybindings on this page",
id:"eclipse.keyAssist",callback:function(){c.empty(N);if(z){c.place("<h2>Editor</h2>",N,"last");for(var S=z.getTextView().getActions(false),X=0;X<S.length;X++)for(var ca=S[X],fa=z.getTextView().getKeyBindings(ca),r=0;r<fa.length;r++)c.place("<span>"+e.getUserKeyString(fa[r])+" = "+ca+"<br></span>",N,"last")}c.place("<h2>Global</h2>",N,"last");C.showKeyBindings(N);N.style.display="block";return true}});C.addCommand(x,"global");C.registerCommandContribution("eclipse.keyAssist",1,"globalActions",null,
new d.CommandKeyBinding(191,false,true),true);if(z){z.getTextView().setKeyBinding(new d.CommandKeyBinding("L",true,true),"Show Keys");z.getTextView().setAction("Show Keys",x.callback)}if(x=c.byId("globalActions")){c.empty(x);C.renderCommands(x,"global",w||{},w,"image")}h(t);if(n)(t=c.byId("footer"))&&c.place(n,t,"only")}var p='<table style="border: 2px solid white; margin: 0; padding: 0; border-collapse: collapse; width: 100%;"><tr class="topRowBanner" id="bannerRow1"><td rowspan=3 style="padding-top: 12px; padding-bottom: 12px; padding-left: 8px; width: 148px"><a id="home" href="'+
b.toUrl("index.html")+'"><span class="imageSprite core-sprite-orion toolbarLabel" alt="Orion Logo" align="top"></a></td><td class="leftGlobalToolbar" style="padding-top: 16px"><span id="pageTitle" class="pageTitle"></span></td><td class="rightGlobalToolbar" style="padding-top: 16px"><span id="primaryNav" class="globalActions"></span><span id="globalActions" class="globalActions"></span><input type="search" id="search" class="searchbox"><span id="userInfo"></span><span id="help" class="help"><a id="help" href="'+
b.toUrl("help/index.jsp")+'">?</a></span></td></tr><tr class="topRowBanner" id="bannerRow2"><td colspan=2 style="text-wrap: normal"><span id="location" class="currentLocation" style="text-wrap: normal"></span></td></tr><tr class="topRowBanner" id="bannerRow3"><td colspan=2 style="height: 16px; text-align: left"><span id="statusPane" style="color: #5a5a5a;"></span><span id="notifications"></span></td></tr><tr class="pageToolbar"><td colspan=3 style="padding-left: 16px;" id="pageToolbar" class="pageToolbar"><span id="pageActions" class="pageActions"></span><span id="pageActionsRight" class="pageActions"></span></td></tr><tr class="optionalPageToolbar"><td colspan=3 style="border: 1px solid grey;padding-left: 16px;" id="optionalPageToolbar" class="optionalPageToolbar"><div id="optionalPageActions"  class="pageActions"></div></td></tr></table>',
n='<span class="imageSprite core-sprite-warning"></span> This is a Beta build of Orion.  You can use it, play with it and explore the capabilities but BEWARE your data may be lost. &nbsp;| <a href="http://wiki.eclipse.org/Orion/FAQ">FAQ</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=0.3">Report a Bug</a> | <a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a> | <a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a> | <a href="http://www.eclipse.org/legal/copyright.php">Copyright Agent</a>',
m=i(b.toUrl("auth/NotifyAuthentication.html")),o={},s=new orion.widgets.LoginDialog;return{generateUserInfo:h,generateDomCommandsInBanner:k,generateBanner:l,notifyAuthenticationSite:m,setPendingAuthentication:g}});
define("dojo/date",["dojo"],function(b){b.getObject("date",true,b);b.date.getDaysInMonth=function(c){var a=c.getMonth();if(a==1&&b.date.isLeapYear(c))return 29;return[31,28,31,30,31,30,31,31,30,31,30,31][a]};b.date.isLeapYear=function(c){c=c.getFullYear();return!(c%400)||!(c%4)&&!!(c%100)};b.date.getTimezoneName=function(c){var a=c.toString(),d="",e=a.indexOf("(");if(e>-1)d=a.substring(++e,a.indexOf(")"));else{e=/([A-Z\/]+) \d{4}$/;if(a=a.match(e))d=a[1];else{a=c.toLocaleString();e=/ ([A-Z\/]+)$/;
if(a=a.match(e))d=a[1]}}return d=="AM"||d=="PM"?"":d};b.date.compare=function(c,a,d){c=new Date(+c);a=new Date(+(a||new Date));if(d=="date"){c.setHours(0,0,0,0);a.setHours(0,0,0,0)}else if(d=="time"){c.setFullYear(0,0,0);a.setFullYear(0,0,0)}if(c>a)return 1;if(c<a)return-1;return 0};b.date.add=function(c,a,d){var e=new Date(+c),f=false,i="Date";switch(a){case "day":break;case "weekday":var j;if(a=d%5){a=a;j=parseInt(d/5)}else{a=d>0?5:-5;j=d>0?(d-5)/5:(d+5)/5}var h=c.getDay(),g=0;if(h==6&&d>0)g=1;
else if(h==0&&d<0)g=-1;h=h+a;if(h==0||h==6)g=d>0?2:-2;d=7*j+a+g;break;case "year":i="FullYear";f=true;break;case "week":d*=7;break;case "quarter":d*=3;case "month":f=true;i="Month";break;default:i="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}i&&e["set"+i](e["get"+i]()+d);f&&e.getDate()<c.getDate()&&e.setDate(0);return e};b.date.difference=function(c,a,d){a=a||new Date;d=d||"day";var e=a.getFullYear()-c.getFullYear(),f=1;switch(d){case "quarter":c=c.getMonth();a=a.getMonth();c=Math.floor(c/3)+
1;a=Math.floor(a/3)+1;a+=e*4;f=a-c;break;case "weekday":e=Math.round(b.date.difference(c,a,"day"));d=parseInt(b.date.difference(c,a,"week"));f=e%7;if(f==0)e=d*5;else{var i=0,j=c.getDay();a=a.getDay();d=parseInt(e/7);f=e%7;c=new Date(c);c.setDate(c.getDate()+d*7);c=c.getDay();if(e>0)switch(true){case j==6:i=-1;break;case j==0:i=0;break;case a==6:i=-1;break;case a==0:i=-2;break;case c+f>5:i=-2}else if(e<0)switch(true){case j==6:i=0;break;case j==0:i=1;break;case a==6:i=2;break;case a==0:i=1;break;case c+
f<0:i=2}e+=i;e-=d*2}f=e;break;case "year":f=e;break;case "month":f=a.getMonth()-c.getMonth()+e*12;break;case "week":f=parseInt(b.date.difference(c,a,"day")/7);break;case "day":f/=24;case "hour":f/=60;case "minute":f/=60;case "second":f/=1E3;case "millisecond":f*=a.getTime()-c.getTime()}return Math.round(f)};return b.date});
define("dojo/cldr/supplemental",["dojo","dojo/i18n"],function(b){b.getObject("cldr.supplemental",true,b);b.cldr.supplemental.getFirstDayOfWeek=function(c){c={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}[b.cldr.supplemental._region(c)];return c===undefined?
1:c};b.cldr.supplemental._region=function(c){c=b.i18n.normalizeLocale(c);c=c.split("-");var a=c[1];if(a){if(a.length==4)a=c[2]}else a={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"}[c[0]];return a};b.cldr.supplemental.getWeekend=function(c){var a=b.cldr.supplemental._region(c);c={"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}[a];a={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}[a];if(c===undefined)c=6;if(a===undefined)a=0;return{start:c,end:a}};return b.cldr.supplemental});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",true,b);b.regexp.escapeString=function(c,a){return c.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(d){if(a&&a.indexOf(d)!=-1)return d;return"\\"+d})};b.regexp.buildGroupRE=function(c,a,d){if(!(c instanceof Array))return a(c);for(var e=[],f=0;f<c.length;f++)e.push(a(c[f]));return b.regexp.group(e.join("|"),d)};b.regexp.group=function(c,a){return"("+(a?"?:":"")+c+")"};return b.regexp});
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"},ar:true,ca:true,cs:true,da:true,de:true,el:true,en:true,"en-au":true,"en-ca":true,"en-gb":true,es:true,fi:true,fr:true,"fr-ch":true,he:true,hu:true,it:true,ja:true,ko:true,nb:true,nl:true,pl:true,pt:true,"pt-pt":true,ro:true,ru:true,sk:true,sl:true,sv:true,th:true,tr:true,zh:true,"zh-hant":true,"zh-hk":true,"zh-tw":true});
define("dojo/cldr/nls/en/gregorian",{"dateFormatItem-yM":"M/y","field-dayperiod":"AM/PM","dateFormatItem-yQ":"Q y","dayPeriods-format-wide-pm":"PM","field-minute":"Minute",eraNames:["Before Christ","Anno Domini"],"dateFormatItem-MMMEd":"E, MMM d","dateTimeFormat-full":"{1} {0}","field-day-relative+-1":"Yesterday","field-weekday":"Day of the Week","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-yQQQ":"QQQ y","days-standAlone-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
"dateFormatItem-MMM":"LLL","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateTimeFormat-short":"{1} {0}","field-era":"Era","field-hour":"Hour","dayPeriods-format-wide-am":"AM","dateTimeFormat-medium":"{1} {0}","dateFormatItem-y":"y","timeFormat-full":"h:mm:ss a zzzz","months-standAlone-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormatItem-yMMM":"MMM y","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","days-standAlone-narrow":["S",
"M","T","W","T","F","S"],eraAbbr:["BC","AD"],"dateFormat-long":"MMMM d, y","timeFormat-medium":"h:mm:ss a","dateFormatItem-EEEd":"d EEE","field-zone":"Zone","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"MMM d, y","dateFormatItem-Hms":"HH:mm:ss","quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-ms":"mm:ss","field-year":"Year","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormat-long":"{1} {0}","field-week":"Week","months-standAlone-wide":["January",
"February","March","April","May","June","July","August","September","October","November","December"],"dateFormatItem-MMMd":"MMM d","timeFormat-long":"h:mm:ss a z","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dayPeriods-format-wide-noon":"noon","timeFormat-short":"h:mm a","field-month":"Month","quarters-format-abbr":["Q1","Q2","Q3","Q4"],"days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-M":"L","days-format-narrow":["S",
"M","T","W","T","F","S"],"field-second":"Second","field-day":"Day","dateFormatItem-MEd":"E, M/d","months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-hm":"h:mm a","days-standAlone-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormat-short":"M/d/yy","dateFormatItem-yMMMEd":"EEE, MMM d, y","dateFormat-full":"EEEE, MMMM d, y","dateFormatItem-Md":"M/d","dateFormatItem-yMEd":"EEE, M/d/y","months-format-wide":["January","February","March","April","May","June",
"July","August","September","October","November","December"],"dateFormatItem-d":"d","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],eraNarrow:["B","A"]});
define("dojo/date/locale",["dojo","dojo/date","dojo/cldr/supplemental","dojo/regexp","dojo/string","dojo/i18n","i18n!dojo/cldr/nls/gregorian"],function(b){b.getObject("date.locale",true,b);(function(){function c(e,f,i,j){return j.replace(/([a-z])\1*/ig,function(h){var g,k,l=h.charAt(0);h=h.length;var p=["abbr","wide","narrow"];switch(l){case "G":g=f[h<4?"eraAbbr":"eraNames"][e.getFullYear()<0?0:1];break;case "y":g=e.getFullYear();switch(h){case 1:break;case 2:if(!i.fullYear){g=String(g);g=g.substr(g.length-
2);break}default:k=true}break;case "Q":case "q":g=Math.ceil((e.getMonth()+1)/3);k=true;break;case "M":g=e.getMonth();if(h<3){g=g+1;k=true}else{l=["months-format",p[h-3]].join("-");g=f[l][g]}break;case "w":g=b.date.locale._getWeekOfYear(e,0);k=true;break;case "d":g=e.getDate();k=true;break;case "D":g=b.date.locale._getDayOfYear(e);k=true;break;case "E":g=e.getDay();if(h<3){g=g+1;k=true}else{l=["days-format",p[h-3]].join("-");g=f[l][g]}break;case "a":g=e.getHours()<12?"am":"pm";g=i[g]||f["dayPeriods-format-wide-"+
g];break;case "h":case "H":case "K":case "k":k=e.getHours();switch(l){case "h":g=k%12||12;break;case "H":g=k;break;case "K":g=k%12;break;case "k":g=k||24;break}k=true;break;case "m":g=e.getMinutes();k=true;break;case "s":g=e.getSeconds();k=true;break;case "S":g=Math.round(e.getMilliseconds()*Math.pow(10,h-3));k=true;break;case "v":case "z":if(g=b.date.locale._getZone(e,true,i))break;h=4;case "Z":g=b.date.locale._getZone(e,false,i);g=[g<=0?"+":"-",b.string.pad(Math.floor(Math.abs(g)/60),2),b.string.pad(Math.abs(g)%
60,2)];if(h==4){g.splice(0,0,"GMT");g.splice(3,0,":")}g=g.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+j);}if(k)g=b.string.pad(g,h);return g})}function a(e,f,i,j){var h=function(l){return l};f=f||h;i=i||h;j=j||h;var g=e.match(/(''|[^'])+/g),k=e.charAt(0)=="'";b.forEach(g,function(l,p){if(l){g[p]=(k?i:f)(l.replace(/''/g,"'"));k=!k}else g[p]=""});return j(g.join(""))}function d(e,f,i,j){j=b.regexp.escapeString(j);i.strict||(j=j.replace(" a"," ?a"));return j.replace(/([a-z])\1*/ig,
function(h){var g;g=h.charAt(0);var k=h.length,l="",p="";if(i.strict){if(k>1)l="0{"+(k-1)+"}";if(k>2)p="0{"+(k-2)+"}"}else{l="0?";p="0{0,2}"}switch(g){case "y":g="\\d{2,4}";break;case "M":g=k>2?"\\S+?":"1[0-2]|"+l+"[1-9]";break;case "D":g="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p+"[1-9][0-9]|"+l+"[1-9]";break;case "d":g="3[01]|[12]\\d|"+l+"[1-9]";break;case "w":g="[1-4][0-9]|5[0-3]|"+l+"[1-9]";break;case "E":g="\\S+";break;case "h":g="1[0-2]|"+l+"[1-9]";break;case "k":g="1[01]|"+l+"\\d";break;case "H":g=
"1\\d|2[0-3]|"+l+"\\d";break;case "K":g="1\\d|2[0-4]|"+l+"[1-9]";break;case "m":case "s":g="[0-5]\\d";break;case "S":g="\\d{"+k+"}";break;case "a":k=i.am||f["dayPeriods-format-wide-am"];l=i.pm||f["dayPeriods-format-wide-pm"];g=k+"|"+l;if(!i.strict){if(k!=k.toLowerCase())g+="|"+k.toLowerCase();if(l!=l.toLowerCase())g+="|"+l.toLowerCase();if(g.indexOf(".")!=-1)g+="|"+g.replace(/\./g,"")}g=g.replace(/\./g,"\\.");break;default:g=".*"}e&&e.push(h);return"("+g+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=
function(e,f){return f?b.date.getTimezoneName(e):e.getTimezoneOffset()};b.date.locale.format=function(e,f){f=f||{};var i=b.i18n.normalizeLocale(f.locale),j=f.formatLength||"short";i=b.date.locale._getGregorianBundle(i);var h=[];e=b.hitch(this,c,e,i,f);if(f.selector=="year")return a(i["dateFormatItem-yyyy"]||"yyyy",e);var g;if(f.selector!="date")(g=f.timePattern||i["timeFormat-"+j])&&h.push(a(g,e));if(f.selector!="time")(g=f.datePattern||i["dateFormat-"+j])&&h.push(a(g,e));return h.length==1?h[0]:
i["dateTimeFormat-"+j].replace(/\{(\d+)\}/g,function(k,l){return h[l]})};b.date.locale.regexp=function(e){return b.date.locale._parseInfo(e).regexp};b.date.locale._parseInfo=function(e){e=e||{};var f=b.i18n.normalizeLocale(e.locale);f=b.date.locale._getGregorianBundle(f);var i=e.formatLength||"short",j=e.datePattern||f["dateFormat-"+i],h=e.timePattern||f["timeFormat-"+i];i=e.selector=="date"?j:e.selector=="time"?h:f["dateTimeFormat-"+i].replace(/\{(\d+)\}/g,function(k,l){return[h,j][l]});var g=[];
return{regexp:a(i,b.hitch(this,d,g,f,e)),tokens:g,bundle:f}};b.date.locale.parse=function(e,f){var i=/[\u200E\u200F\u202A\u202E]/g,j=b.date.locale._parseInfo(f),h=j.tokens,g=j.bundle;e=(new RegExp("^"+j.regexp.replace(i,"")+"$",j.strict?"":"i")).exec(e&&e.replace(i,""));if(!e)return null;var k=["abbr","wide","narrow"],l=[1970,0,1,0,0,0,0],p="";e=b.every(e,function(m,o){if(!o)return true;o=h[o-1];var s=o.length;switch(o.charAt(0)){case "y":if(s!=2&&f.strict)l[0]=m;else if(m<100){m=Number(m);s=""+(new Date).getFullYear();
o=s.substring(0,2)*100;s=Math.min(Number(s.substring(2,4))+20,99);l[0]=m<s?o+m:o-100+m}else{if(f.strict)return false;l[0]=m}break;case "M":if(s>2){o=g["months-format-"+k[s-3]].concat();if(!f.strict){m=m.replace(".","").toLowerCase();o=b.map(o,function(t){return t.replace(".","").toLowerCase()})}m=b.indexOf(o,m);if(m==-1)return false}else m--;l[1]=m;break;case "E":case "e":o=g["days-format-"+k[s-3]].concat();if(!f.strict){m=m.toLowerCase();o=b.map(o,function(t){return t.toLowerCase()})}m=b.indexOf(o,
m);if(m==-1)return false;break;case "D":l[1]=0;case "d":l[2]=m;break;case "a":o=f.am||g["dayPeriods-format-wide-am"];s=f.pm||g["dayPeriods-format-wide-pm"];if(!f.strict){var q=/\./g;m=m.replace(q,"").toLowerCase();o=o.replace(q,"").toLowerCase();s=s.replace(q,"").toLowerCase()}if(f.strict&&m!=o&&m!=s)return false;p=m==s?"p":m==o?"a":"";break;case "K":if(m==24)m=0;case "h":case "H":case "k":if(m>23)return false;l[3]=m;break;case "m":l[4]=m;break;case "s":l[5]=m;break;case "S":l[6]=m}return true});
i=+l[3];if(p==="p"&&i<12)l[3]=i+12;else if(p==="a"&&i==12)l[3]=0;i=new Date(l[0],l[1],l[2],l[3],l[4],l[5],l[6]);f.strict&&i.setFullYear(l[0]);var n=h.join("");j=n.indexOf("d")!=-1;n=n.indexOf("M")!=-1;if(!e||n&&i.getMonth()>l[1]||j&&i.getDate()>l[2])return null;if(n&&i.getMonth()<l[1]||j&&i.getDate()<l[2])i=b.date.add(i,"hour",1);return i}})();(function(){var c=[];b.date.locale.addCustomFormats=function(a,d){c.push({pkg:a,name:d})};b.date.locale._getGregorianBundle=function(a){var d={};b.forEach(c,
function(e){e=b.i18n.getLocalization(e.pkg,e.name,a);d=b.mixin(d,e)},this);return d}})();b.date.locale.addCustomFormats("dojo.cldr","gregorian");b.date.locale.getNames=function(c,a,d,e){var f;e=b.date.locale._getGregorianBundle(e);c=[c,d,a];if(d=="standAlone"){d=c.join("-");f=e[d];if(f[0]==1)f=undefined}c[1]="format";return(f||e[c.join("-")]).concat()};b.date.locale.isWeekend=function(c,a){a=b.cldr.supplemental.getWeekend(a);c=(c||new Date).getDay();if(a.end<a.start){a.end+=7;if(c<a.start)c+=7}return c>=
a.start&&c<=a.end};b.date.locale._getDayOfYear=function(c){return b.date.difference(new Date(c.getFullYear(),0,1,c.getHours()),c)+1};b.date.locale._getWeekOfYear=function(c,a){if(arguments.length==1)a=0;var d=(new Date(c.getFullYear(),0,1)).getDay(),e=(d-a+7)%7;e=Math.floor((b.date.locale._getDayOfYear(c)+e-1)/7);d==a&&e++;return e};return b.date.locale});
define("orion/auth",["dojo","dijit","orion/globalCommands","dojo/date/locale","orion/widgets/LoginDialog"],function(b,c,a){function d(i,j){if(i.status===403){if(typeof e==="undefined")e=new c.Dialog({title:"Forbidden access"});var h=i.message;if(i.responseText)h=JSON.parse(i.responseText).Message||i.message;e.set("content",h);e.show()}if(i.status===401)try{var g=JSON.parse(i.responseText),k=localStorage.getItem(g.SignInKey),l=function(){var n=localStorage.getItem(g.SignInKey);if(k!==n){window.removeEventListener("storage",
l,false);delete f[g.SignInKey];a.setPendingAuthentication(f);j&&j()}};window.addEventListener("storage",l,false);if(g.SignInKey){f[g.SignInKey]=g;a.setPendingAuthentication(f)}}catch(p){}}var e,f={};b.addOnLoad(function(){window.dojo=b;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=a});return{handleAuthenticationError:d}});
define("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(c,a,d,e){var f=[];b.Deferred.call(this);var i=this;c.length===0&&!a&&this.resolve([0,[]]);var j=0;b.forEach(c,function(h,g){function k(l,p){f[g]=[l,p];j++;j===c.length&&i.resolve(f)}h.then(function(l){a?i.resolve([g,l]):k(true,l)},function(l){d?i.reject(l):k(false,l);if(e)return null;throw l;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(c){c=new b.DeferredList(c,false,true,false);
c.addCallback(function(a){var d=[];b.forEach(a,function(e){d.push(e[1])});return d});return c};return b.DeferredList});
define("orion/preferences",["require","dojo","orion/auth","dojo/DeferredList"],function(b,c,a){function d(g,k){this._name=g;this._providers=k;this._flushPending=false;this._cached=null;this._stores=[];this._dirty=[]}function e(g,k){return{get:function(l,p){if(k===0)return null;l=localStorage.getItem(g+l);if(l===null)return null;l=JSON.parse(l);if(p||k===-1||l._expires&&l._expires>(new Date).getTime()){delete l._expires;return l}return null},set:function(l,p){if(k!==0){if(k!==-1)p._expires=(new Date).getTime()+
1E3*k;if(Object.keys(p).length===0)localStorage.removeItem(g+l);else{var n=JSON.stringify(p);localStorage.setItem(g+l,n);delete p._expires}}},remove:function(l){localStorage.removeItem(g+l)}}}function f(g){this._currentPromises={};this._cache=new e("/orion/preferences/user",0);this._service=null;this.available=function(){var k=this;if(!this._service){var l=g.getServiceReferences("orion.core.preference.provider");l.length>0&&g.getService(l[0],0).then(function(p){k._service=p})}return!!this._service}}
function i(g){this._location=g;this._currentPromise=null;this._cache=new e("/orion/preferences/default",3600)}function j(){this._cache=new e("/orion/preferences/local",-1)}function h(g,k){this._userProvider=new f(g);this._localProvider=new j;k=k||"defaults.pref";if(k.indexOf("://")===-1)k=b.toUrl(k);this._defaultsProvider=new i(k);this._serviceRegistration=g.registerService("orion.core.preference",this)}d.prototype={_flush:function(){for(var g=[],k=0;k<this._stores.length;++k){var l=this._stores[k];
this._dirty.indexOf(l)!==-1&&g.push(this._providers[k].put(this._name,l))}this._dirty=[];return new c.DeferredList(g)},_scheduleFlush:function(g){this._dirty.indexOf(g)===-1&&this._dirty.push(g);if(!this._flushPending){this._flushPending=true;window.setTimeout(c.hitch(this,function(){if(this._flushPending){this._flushPending=false;this._flush()}}),0)}},_getCached:function(){if(!this._cached){this._cached={};for(var g=0;g<this._stores.length;++g){var k=this._stores[g];for(var l in k)if(k.hasOwnProperty(l)&&
typeof this._cached[l]==="undefined")this._cached[l]=k[l]}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(g){return this._getCached()[g]},put:function(g,k){if(this._stores.length!==0){var l=this._stores[0];if(l[g]!==k){l[g]=k;this._cached=null;this._scheduleFlush(l)}}},remove:function(g){for(var k=0;k<this._stores.length;++k){var l=this._stores[k];if(l.hasOwnProperty(g)){delete l[g];this._cached=null;this._scheduleFlush(l);return true}}return false},clear:function(){for(var g=
0;g<this._stores.length;++g){this._stores[g]={};this._scheduleFlush(this._stores[g])}this._cached=null},sync:function(g){if(this._flushPending){this._flushPending=false;return this._flush()}for(var k=this,l=[],p=0;p<this._providers.length;++p)l.push(this._providers[p].get(this._name,g).then(function(n){return function(m){k._stores[n]=m}}(p)));return(new c.DeferredList(l)).then(function(){k._cached=null;k._getCached()})},flush:function(){this._flush()}};f.prototype={get:function(g,k){if(this._currentPromises[g])return this._currentPromises[g];
var l=new c.Deferred,p=null;if(k)this._cache.remove(g);else p=this._cache.get(g);if(p!==null)l.resolve(p);else{this._currentPromises[g]=l;var n=this;this._service.get(g).then(function(m){n._cache.set(g,m);delete n._currentPromises[g];l.resolve(m)},function(m){if(m.status===401){delete n._currentPromises[g];l.resolve({});a.handleAuthenticationError(m,function(){n.get(g)})}else if(m.status===404){m={};n._cache.set(g,m);delete n._currentPromises[g];l.resolve(m)}else{delete n._currentPromises[g];l.resolve(n._cache.get(g,
true)||{})}})}return l},put:function(g,k){var l=new c.Deferred;this._cache.set(g,k);var p=this;this._service.put(g,k).then(function(){l.resolve()},function(n){n.status===401?a.handleAuthenticationError(n,function(){p._service.put(g,k).then(function(){l.resolve()},function(){l.resolve()})}):l.resolve()});return l}};i.prototype={get:function(g,k){if(this._currentPromise)return this._currentPromise;var l=new c.Deferred,p=null;if(k)this._cache.remove(g);else p=this._cache.get(g);if(p!==null)l.resolve(p);
else{this._currentPromise=l;var n=this;c.xhrGet({url:this._location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(m){n._cache.set(g,m[g]||{});n._currentPromise=null;l.resolve(m[g]||{})},error:function(m,o){if(o.xhr.status===401){n._currentPromise=null;l.resolve({});l=new c.Deferred;n._currentPromise=l;var s=this;a.handleAuthenticationError(o.xhr,function(){c.xhrGet(s)})}else if(o.xhr.status===404){n._cache.set(g,{});n._currentPromise=null;l.resolve({})}else{n._currentPromise=
null;m=n._cache.get(g,true);m!==null?l.resolve(m[g]||{}):l.resolve({})}}})}return l},put:function(){var g=new c.Deferred;g.resolve();return g}};j.prototype={get:function(g){var k=new c.Deferred;g=this._cache.get(g);g!==null?k.resolve(g):k.resolve({});return k},put:function(g,k){var l=new c.Deferred;this._cache.set(g,k);l.resolve();return l}};h.DEFAULT_SCOPE=1;h.LOCAL_SCOPE=2;h.USER_SCOPE=4;h.prototype={getPreferences:function(g,k){if(!k||typeof k!=="number"||k>7||k<1)k=h.DEFAULT_SCOPE|h.LOCAL_SCOPE|
h.USER_SCOPE;var l=[];h.USER_SCOPE&k&&this._userProvider.available()&&l.push(this._userProvider);h.LOCAL_SCOPE&k&&l.push(this._localProvider);h.DEFAULT_SCOPE&k&&l.push(this._defaultsProvider);var p=new d(g,l);return p.sync().then(function(){return p})}};return{PreferencesService:h}});
define("orion/pluginregistry",["dojo","orion/serviceregistry","dojo/DeferredList"],function(b,c){var a=a||{};a.Plugin=function(d,e,f){function i(q,t,C,D){if(!l)throw new Error("plugin not connected");var v=m++;o[String(v)]=D;f.postMessage({id:v,serviceId:q,method:t,params:C},l)}function j(q){var t={};if(q.methods)for(var C=0;C<q.methods.length;C++){var D=q.methods[C];t[D]=function(v){return function(){var w=Array.prototype.slice.call(arguments),z=new b.Deferred;k._load().then(function(){i(q.serviceId,
v,w,z)});return z.promise}}(D)}return t}function h(){var q=e.services;if(q)for(var t=0;t<q.length;t++){var C=q[t],D=j(C);s[C.serviceId]=f.registerService(C.type,D,C.properties)}}function g(q){try{if(q.method)if("plugin"===q.method){if(e){if(JSON.stringify(e)!==JSON.stringify(q.params[0])){for(var t in s)if(s.hasOwnProperty(t)){s[t].unregister();delete s[t]}e=q.params[0];h();f.updatePlugin(k)}}else{e=q.params[0];h()}if(!n){n=true;p.resolve(k)}}else if("dispatchEvent"===q.method){var C=s[q.serviceId];
C.dispatchEvent.apply(C,q.params)}else if("progress"===q.method){var D=o[String(q.requestId)];D.progress.apply(D,q.params)}else throw new Error("Bad response method: "+q.method);else{D=o[String(q.id)];delete o[String(q.id)];q.error?D.reject(q.error):D.resolve(q.result)}}catch(v){console.log(v)}}var k=this,l=null,p=new b.Deferred,n=false,m=0,o={},s={};this.getLocation=function(){return d};this.getData=function(){return e};this.uninstall=function(){for(var q in s)if(s.hasOwnProperty(q)){s[q].unregister();
delete s[q]}if(l){f.disconnect(l);l=null}f.uninstallPlugin(this)};this.getServiceReferences=function(){var q=[],t;for(t in s)s.hasOwnProperty(t)&&q.push(s[t].getServiceReference());return q};this._load=function(q){if(!l){l=f.connect(d,g);window.setTimeout(function(){if(!n){if(!q){e={};f.updatePlugin(k)}p.reject(new Error("Load timeout for plugin: "+d))}},15E3)}return p.promise};if(typeof d!=="string")throw new Error("invalid url:"+d);e&&h()};a.PluginRegistry=function(d,e){function f(m){if(m.indexOf("://")===
-1){var o=document.createElement("a");o.href=m;return o.href}return m}function i(m){delete g["plugin."+m.getLocation()]}function j(m){m=f(m);for(var o=0,s=k.length;o<s;o++){var q=k[o];if(m===q.getLocation())return q}return null}function h(m){g["plugin."+m.getLocation()]=JSON.stringify(m.getData())}var g=e||localStorage||{},k=[],l=[],p=new c.EventTarget;window.addEventListener("message",function(m){for(var o=0,s=m.source;o<l.length;o++)if(s===l[o].target){if(typeof l[o].useStructuredClone==="undefined")l[o].useStructuredClone=
typeof m.data!=="string";l[o].handler(l[o].useStructuredClone?m.data:JSON.parse(m.data));break}},false);var n={registerService:b.hitch(d,d.registerService),connect:function(m,o){var s=document.createElement("iframe");s.id=m;s.name=m;s.style.display="none";s.style.visibility="hidden";s.src=m;document.body.appendChild(s);m={iframe:s,target:s.contentWindow,handler:o,url:m};l.push(m);return m},disconnect:function(m){for(var o=0;o<l.length;o++)if(m===l[o]){l.splice(o,1);try{document.body.removeChild(m.iframe)}catch(s){}break}},
uninstallPlugin:function(m){i(m);for(var o=0;o<k.length;o++)if(m===k[o]){k.splice(o,1);p.dispatchEvent("pluginRemoved",m);break}},updatePlugin:function(m){g["plugin."+m.getLocation()]=JSON.stringify(m.getData());p.dispatchEvent("pluginUpdated",m)},postMessage:function(m,o){o.target.postMessage(o.useStructuredClone?m:JSON.stringify(m),o.url)}};this.startup=function(m){for(var o=[],s=0;s<m.length;++s){var q=m[s];q=f(q);var t="plugin."+q;if(g[t]){if(j(q)===null){t=JSON.parse(g[t]);q=new a.Plugin(q,t,
n);k.push(q)}}else{g[t]="{}";q=new a.Plugin(q,{},n);k.push(q);o.push(q._load(false))}}return new b.DeferredList(o)};this.shutdown=function(){for(var m=0;m<l.length;m++)try{document.body.removeChild(l[m].iframe)}catch(o){}};this.installPlugin=function(m,o){m=f(m);var s=new b.Deferred,q=j(m);if(q)if(q.getData())s.resolve(q);else{var t=function(C){if(C.getLocation()===m){s.resolve(C);p.removeEventListener("pluginAdded",t)}};p.addEventListener("pluginAdded",t)}else{q=new a.Plugin(m,o,n);k.push(q);if(q.getData()){h(q);
p.dispatchEvent("pluginAdded",q);s.resolve(q)}else q._load(true).then(function(){h(q);p.dispatchEvent("pluginAdded",q);s.resolve(q)},function(C){s.reject(C)})}return s.promise};this.getPlugins=function(){for(var m=[],o=0;o<k.length;o++)k[o].getData()&&m.push(k[o]);return m};this.getPlugin=function(m){if((m=j(m))&&m.getData())return m;return null};this.addEventListener=function(m,o){p.addEventListener(m,o)};this.removeEventListener=function(m,o){p.removeEventListener(m,o)}};return a});
define("orion/bootstrap",["require","dojo","orion/serviceregistry","orion/preferences","orion/pluginregistry"],function(b,c,a,d,e){function f(){var i=new a.ServiceRegistry,j=new d.PreferencesService(i),h=new e.PluginRegistry(i);return j.getPreferences("/plugins").then(function(g){g=g.keys();for(var k=0;k<g.length;++k)if(g[k].indexOf("://")===-1)g[k]=b.toUrl(g[k]);return h.startup(g)}).then(function(){if(i.getServiceReferences("orion.core.preference.provider").length>0)return j.getPreferences("/plugins",
j.USER_SCOPE).then(function(g){g=g.keys();for(var k=0;k<g.length;++k)if(g[k].indexOf("://")===-1)g[k]=b.toUrl(g[k]);return h.startup(g)})}).then(function(){c.addOnWindowUnload(function(){h.shutdown()})}).then(function(){return{serviceRegistry:i,preferences:j,pluginRegistry:h}})}return{startup:f}});
define("orion/treetable",["dojo"],function(b){function c(a){this._init(a)}c.prototype={_init:function(a){var d=a.parent,e=this;if(typeof d==="string")d=b.byId(d);if(!d)throw"no parent";if(!a.model)throw"no tree model";if(!a.renderer)throw"no renderer";this._parent=d;this._treeModel=a.model;this._renderer=a.renderer;this._showRoot=a.showRoot===undefined?false:a.showRoot;this._indent=a.indent===undefined?16:a.indent;this._labelColumnIndex=a.labelColumnIndex===undefined?0:a.labelColumnIndex;this._id=
a.id===undefined?"treetable":a.id;this._root=this._treeModel.getRoot(function(f){if(this._showRoot){f._depth=0;this._generate([f],0)}else e._treeModel.getChildren(f,function(i){e._generate(i,0)})})},_generate:function(a,d){b.empty(this._parent);var e=document.createElement("table");e.id=this._id;this._renderer.initTable(e,this);var f=document.createElement("tbody");f.id=this._id+"tbody";this._generateChildren(a,d,f,"last");e.appendChild(f);this._parent.appendChild(e);this._rowsChanged()},_generateChildren:function(a,
d,e,f){for(var i in a){var j=document.createElement("tr");j.id=this._treeModel.getId(a[i]);j._depth=d;j._item=a[i];this._renderer.render(a[i],j);b.style(j.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*d+"px");b.place(j,e,f);if(f==="after")e=j}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},refresh:function(a,d,e,f,i,j){var h=this._treeModel.getId(a),g;if(h===this._id){this._removeChildRows(h);
this._generateChildren(d,0,b.byId(h+"tbody"),"last");this._rowsChanged()}else{var k=b.byId(h);if(k){k._item=a;if(k&&(e||k._expanded)){k._expanded=true;this._removeChildRows(h);if(d){this._generateChildren(d,k._depth+1,k,"after");this._rowsChanged();if(f&&i){a=b.byId(f);b.addClass(a,i);j&&b.removeClass(a,j)}}else{g=this;d=this._treeModel.getChildren(k._item,function(l){g._generateChildren(l,k._depth+1,k,"after");g._rowsChanged()})}}}else console.log("could not find table row "+h)}},refreshAndExpand:function(a,
d,e,f,i){this.refresh(a,d,true,e,f,i)},getItem:function(a){if(typeof a==="string"){var d=b.byId(a);if(d)return d._item}if(a._item)return a._item;return a},toggle:function(a,d,e,f){var i=b.byId(a);if(i)if(i._expanded){this.collapse(a);if(d){a=b.byId(d);b.addClass(a,f);b.removeClass(a,e)}}else{this.expand(a);if(d){a=b.byId(d);b.addClass(a,e);b.removeClass(a,f)}}},isExpanded:function(a){if(a=b.byId(a))return a._expanded;return false},expand:function(a,d,e){a=typeof a==="string"?a:this._treeModel.getId(a);
var f=b.byId(a);if(f)if(!f._expanded){f._expanded=true;var i=this;this._treeModel.getChildren(f._item,function(j){i._generateChildren(j,f._depth+1,f,"after");i._rowsChanged();d&&d.apply(this,e)})}},_removeChildRows:function(a){b.byId(this._id);var d=a===this._id,e=false,f=-1,i=[];b.query(".treeTableRow").forEach(function(g){if(!e)if(d)if(g._depth>f)i.push(g);else e=true;else if(g.id===a){d=true;f=g._depth}});for(var j in i){var h=i[j];h.parentNode.removeChild(h)}},collapse:function(a){a=typeof a===
"string"?a:this._treeModel.getId(a);var d=b.byId(a);if(d)if(d._expanded){d._expanded=false;this._removeChildRows(a);this._rowsChanged()}}};c.prototype.constructor=c;return{TableTree:c}});
define("orion/explorer",["require","dojo","orion/treetable"],function(b,c,a){var d={};d.Explorer=function(){function e(f,i,j){this.registry=f;this.renderer=j;this.selection=i;this.myTree=null}e.prototype={changedItem:function(f,i){c.hitch(this.myTree,this.myTree.refreshAndExpand)(f,i)},updateCommands:function(f){this.myTree&&c.hitch(this.myTree._renderer,this.myTree._renderer.updateCommands(f))},makeNewItemPlaceHolder:function(f,i,j){f=this.getRow(f);if(j){f=f.childNodes[j];c.place("<br><span id='"+
i+"placeHolderRow'></span>",f,"last");if(j=c.byId(i+"placeHolderRow"))return{tempNode:j,refNode:j}}if(f){c.place("<tr id='"+i+"placeHolderRow'><td id='"+i+"placeHolderCol'></td>",f,"after");j=c.byId(i+"placeHolderRow");f=c.byId(i+"placeHolderCol");if(j&&f)return{tempNode:j,refNode:f}}return null},getRow:function(f){if(f=this.model.getId(f))return c.byId(f)},createTree:function(f,i){var j=f+"innerTree",h=c.byId(j);h&&c.destroy(h);if(i)i.rootId=j;this.model=i;this.myTree=new a.TableTree({id:j,model:i,
showRoot:false,parent:f,labelColumnIndex:this.checkbox?1:0,renderer:this.renderer});this.renderer._initializeUIState()},getRootPath:function(){if(this.model&&this.model.root)return this.model.root.Location;return null},_lastHash:null,checkbox:this.checkbox||true};return e}();d.ExplorerModel=function(){function e(f,i){this.rootPath=f;this.fetchItems=i}e.prototype={destroy:function(){},getRoot:function(f){this.fetchItems(this.rootPath).then(c.hitch(this,function(i){this.root=i;f(i)}))},getChildren:function(f,
i){if(f.Children)i(f.Children);else f.ChildrenLocation?this.fetchItems(f.ChildrenLocation).then(c.hitch(this,function(j){f.Children=j;i(j)})):i([])},getId:function(f){if(f===this.root)f=this.rootId;else{f=f.Location;f=f.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}return f}};return e}();d.ExplorerFlatModel=function(){function e(f,i,j){this.rootPath=f;this.fetchItems=i;this.root=j}e.prototype=new d.ExplorerModel;e.prototype.getRoot=function(f){this.root?f(this.root):this.fetchItems(this.rootPath).then(c.hitch(this,
function(i){this.root=i;f(i)}))};e.prototype.getChildren=function(f,i){f===this.root?i(this.root):i([])};return e}();d.ExplorerRenderer=function(){function e(f,i){this.explorer=i;this._init(f);this._expandImageClass="core-sprite-twistie_open";this._collapseImageClass="core-sprite-twistie_closed"}e.prototype={initTable:function(f,i){this.tableTree=i;c.empty(f);c.addClass(f,"treetable");this.renderTableHeader(f)},getActionsColumn:function(f,i){c.connect(i,"onmouseover",i,function(){var g=c.byId(this.id+
"actionswrapper");c.style(g,"visibility","visible")});c.connect(i,"onmouseout",i,function(){var g=c.byId(this.id+"actionswrapper");c.style(g,"visibility","hidden")});var j=document.createElement("td");j.id=i.id+"actions";var h=document.createElement("span");h.id=i.id+"actionswrapper";j.appendChild(h);c.style(h,"visibility","hidden");this.explorer.registry.getService("orion.page.command").then(function(g){g.renderCommands(h,"object",f,this.explorer,"image")});return j},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},
getCheckboxColumn:function(f,i){if(this._useCheckboxSelection){f=document.createElement("td");c.addClass(f,"secondaryColumn");var j=document.createElement("input");c.style(j,"verticalAlign","middle");j.type="checkbox";j.id=i.id+"selectedState";c.addClass(j,"selectionCheckmark");j.itemId=i.id;f.appendChild(j);c.connect(j,"onclick",c.hitch(this,function(h){c.toggleClass(i,"checkedRow",!!h.target.checked);this._storeSelections();this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())}));
return f}},_storeSelections:function(){var f=this.getSelectedIds(),i=this._getUIStatePreferencePath();if(i&&window.sessionStorage)window.sessionStorage[i+"selection"]=JSON.stringify(f)},_restoreSelections:function(f){f=window.sessionStorage[f+"selection"];if(typeof f==="string")f=f.length>0?JSON.parse(f):null;var i;if(f)for(i=0;i<f.length;i++){var j=c.byId(f[i]);if(j){c.addClass(j,"checkedRow");if(j=c.byId(j.id+"selectedState"))j.checked=true}}f=this.getSelected();this.explorer.selection&&this.explorer.selection.setSelections(f)},
_storeExpansions:function(f){window.sessionStorage[f+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(f){var i=false,j=window.sessionStorage[f+"expanded"];if(typeof j==="string")j=j.length>0?JSON.parse(j):null;var h;if(j)for(h=0;h<j.length;h++)if(c.byId(j[h])){this._expanded.push(j[h]);this.tableTree.expand(j[h],c.hitch(this,function(){this._restoreSelections(f)}));i=true}return!i},_getUIStatePreferencePath:function(){if(this.explorer){var f=this.explorer.getRootPath();if(this._cachePrefix&&
f)return"/"+this._cachePrefix+"/"+f.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")+"/uiState"}return null},expandCollapseImageId:function(f){return f+"__expand"},getExpandImage:function(f,i,j,h){var g=c.create("span",{id:this.expandCollapseImageId(f.id)},i,"last");c.addClass(g,"imageSprite");c.addClass(g,this._collapseImageClass);i=c.create("span",null,i,"last");c.addClass(i,h||"imageSprite");c.addClass(i,j||"core-sprite-folder");g.onclick=c.hitch(this,function(){this.tableTree.toggle(f.id,this.expandCollapseImageId(f.id),
this._expandImageClass,this._collapseImageClass);if(this.tableTree.isExpanded(f.id))this._expanded.push(f.id);else for(var k in this._expanded)if(this._expanded[k]===f.id){this._expanded.splice(k,1);break}(k=this._getUIStatePreferencePath())&&window.sessionStorage&&this._storeExpansions(k)});return g},render:function(f,i){i.cellSpacing="8px";this.renderRow(f,i)},getSelected:function(){var f=[];c.query(".selectionCheckmark").forEach(c.hitch(this,function(i){i.checked&&f.push(this.tableTree.getItem(i.parentNode.parentNode))}));
return f},getSelectedIds:function(){var f=[];c.query(".selectionCheckmark").forEach(c.hitch(this,function(i){i.checked&&f.push(i.parentNode.parentNode.id)}));return f},rowsChanged:function(){c.query(".treeTableRow").forEach(function(f,i){if(i%2){c.addClass(f,"darkTreeTableRow");c.removeClass(f,"lightTreeTableRow")}else{c.addClass(f,"lightTreeTableRow");c.removeClass(f,"darkTreeTableRow")}});this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())},updateCommands:function(){var f=
this.explorer.registry;c.query(".treeTableRow").forEach(function(i){var j=c.byId(i.id+"actionswrapper");c.empty(j);f.getService("orion.page.command").then(function(h){h.renderCommands(j,"object",i._item,this.explorer,"image")})})},_init:function(f){if(f){this._useCheckboxSelection=f.checkbox===undefined?false:f.checkbox;this._colums=f.colums||[];this._cachePrefix=f.cachePrefix}},_initializeUIState:function(){this._expanded=[];var f=this._getUIStatePreferencePath();f&&window.sessionStorage&&this._restoreExpansions(f)&&
this._restoreSelections(f)}};return e}();d.SelectionRenderer=function(){function e(f,i){this._init(f);this.explorer=i}e.prototype=new d.ExplorerRenderer;e.prototype.renderTableHeader=function(f){var i=document.createElement("thead"),j=document.createElement("tr");c.addClass(i,"navTableHeading");this._useCheckboxSelection&&j.appendChild(this.initCheckboxColumn(f));for(var h=0,g=this.getCellHeaderElement(h);g;){c.addClass(g,"navColumn");j.appendChild(g);g=this.getCellHeaderElement(++h)}i.appendChild(j);
f.appendChild(i)};e.prototype.renderRow=function(f,i){c.style(i,"verticalAlign","baseline");c.addClass(i,"treeTableRow");var j=this.getCheckboxColumn(f,i);j&&i.appendChild(j);j=0;for(var h=this.getCellElement(j,f,i);h;){i.appendChild(h);c.addClass(h,"secondaryColumn");h=this.getCellElement(++j,f,i)}};e.prototype.getCellHeaderElement=function(){};e.prototype.getCellElement=function(){};return e}();return d});
define("orion/fileClient",["dojo","orion/auth","dojo/DeferredList"],function(b,c){function a(f,i,j){var h=new b.Deferred;f[i].apply(f,j).then(function(g){h.callback(g)},function(g){g.status===401?c.handleAuthenticationError(g,function(){f[i].apply(f,j).then(function(k){h.callback(k)},function(k){h.errback(k)})}):h.errback(g)});return h}function d(f,i,j,h){if(!f.readBlob)throw"source file service does not support binary read";if(!j.writeBlob)throw"target file service does not support binary write";
if(i[i.length-1]!=="/")return a(f,"readBlob",[i]).then(function(l){return a(j,"writeBlob",[h,l])});var g=h.substring(0,h.length-1),k=decodeURIComponent(g.substring(g.lastIndexOf("/")+1));g=g.substring(0,g.lastIndexOf("/")+1);return a(j,"createFolder",[g,k]).then(function(){},function(){}).then(function(){if(i.indexOf("/")===0)i+="?depth=1";return a(f,"fetchChildren",[i]).then(function(l){for(var p=[],n=0;n<l.length;++n){var m=l[n].Location,o=m;if(l[n].Directory)o=m.substring(0,m.length-1);o=decodeURIComponent(o.substring(o.lastIndexOf("/")+
1));o=h+encodeURIComponent(o);if(l[n].Directory)o+="/";p[n]=d(f,m,j,o)}return new b.DeferredList(p)})})}function e(f,i){function j(s){var q=new b.Deferred;q.reject("No Matching FileService for location:"+s);return q}var h=f.getServiceReferences("orion.core.file"),g=h;if(i){g=[];for(var k=0;k<h.length;++k)i(h[k])&&g.push(h[k])}for(var l=[],p=[],n=[],m={fetchChildren:function(){var s=new b.Deferred;s.resolve(n);return s},createWorkspace:function(){var s=new b.Deferred;s.reject("no file service");return s},
loadWorkspaces:function(){var s=new b.Deferred;s.reject("no file service");return s},loadWorkspace:function(){var s=new b.Deferred;s.resolve({Directory:true,Length:0,LocalTimeStamp:0,Name:"",Location:"",Children:n});return s},createProject:j,createFolder:j,createFile:j,deleteFile:j,moveFile:j,copyFile:j,read:j,write:j},o=0;o<g.length;++o){n[o]={Directory:true,Length:0,LocalTimeStamp:0,Location:g[o].getProperty("top"),ChildrenLocation:g[o].getProperty("top"),Name:g[o].getProperty("Name")};i=g[o].getProperty("pattern")||
".*";if(i[0]!=="^")i="^"+i;l[o]=new RegExp(i);f.getService(g[o],0).then(function(s){p[o]=s})}if(p.length===1)m=p[0];this._getService=function(s){if(!s)return m;for(var q=0;q<l.length;++q)if(l[q].test(s))return p[q];throw"No Matching FileService for location:"+s;}}e.prototype={fetchChildren:function(f){return a(this._getService(f),"fetchChildren",arguments)},createWorkspace:function(){return a(this._getService(),"createWorkspace",arguments)},loadWorkspaces:function(){return a(this._getService(),"loadWorkspaces",
arguments)},loadWorkspace:function(f){return a(this._getService(f),"loadWorkspace",arguments)},createProject:function(f){return a(this._getService(f),"createProject",arguments)},createFolder:function(f){return a(this._getService(f),"createFolder",arguments)},createFile:function(f){return a(this._getService(f),"createFile",arguments)},deleteFile:function(f){return a(this._getService(f),"deleteFile",arguments)},moveFile:function(f,i,j){var h=this._getService(f),g=this._getService(i);if(h===g)return a(h,
"moveFile",arguments);var k=f[f.length-1]==="/",l=i;if(l[l.length-1]!=="/")l+="/";if(j)l+=encodeURIComponent(j);else{var p=f;if(k)p=p.substring(0,p.length-1);l+=p.substring(p.lastIndexOf("/")+1)}if(k&&l[l.length-1]!=="/")l+="/";return d(h,f,g,l).then(function(){return a(h,"deleteFile",[f])})},copyFile:function(f,i){var j=this._getService(f),h=this._getService(i);if(j===h)return a(j,"copyFile",arguments);var g=f[f.length-1]==="/",k=i;if(k[k.length-1]!=="/")k+="/";var l=f;if(g)l=l.substring(0,l.length-
1);k+=l.substring(l.lastIndexOf("/")+1);if(g&&k[k.length-1]!=="/")k+="/";return d(j,f,h,k)},read:function(f){return a(this._getService(f),"read",arguments)},write:function(f){return a(this._getService(f),"write",arguments)},remoteImport:function(f){return a(this._getService(f),"remoteImport",arguments)},remoteExport:function(f){return a(this._getService(f),"remoteExport",arguments)}};e.prototype.constructor=e;return{FileClient:e}});
define("orion/searchExplorer",["require","dojo","dijit","orion/explorer","orion/util","orion/fileClient","orion/commands"],function(b,c,a,d,e,f,i){function j(k,l,p,n,m){this.registry=k;this.fileClient=l;this._resultLocation=p;this.searchStr=n.toLowerCase();this._treeRoot={isRoot:true,children:[]};this._listRoot={isRoot:true,children:[]};this.indexedFileItems=this.currentDetail=null;this.modelLocHash=[];this._lineDelimiter="\n";this.explorer=m}function h(k,l){this._init(k);this.explorer=l}function g(k,
l,p,n,m){this.parentNode=n;this.registry=k;this._commandService=l;this.fileClient=new f.FileClient(this.registry);this.checkbox=false;this.renderer=new h({checkbox:false},this);this.model=new j(k,this.fileClient,p,m,this)}j.prototype=new d.ExplorerModel;j.prototype.setCurrent=function(k,l){this.currentFileIndex=k;this.currentDetailIndex=l;this.storeStatus()};j.prototype.storeStatus=function(){window.sessionStorage[this.searchStr+"_search_result_useFlatList"]=JSON.stringify(this.useFlatList);window.sessionStorage[this.searchStr+
"_search_result_currentFileIndex"]=JSON.stringify(this.currentFileIndex);window.sessionStorage[this.searchStr+"_search_result_currentDetailIndex"]=JSON.stringify(this.currentDetailIndex)};j.prototype.restoreStatus=function(){this.useFlatList=false;var k=window.sessionStorage[this.searchStr+"_search_result_useFlatList"];if(typeof k==="string")if(k.length>0)this.useFlatList=JSON.parse(k);this.currentFileIndex=0;k=window.sessionStorage[this.searchStr+"_search_result_currentFileIndex"];if(typeof k===
"string")if(k.length>0)this.currentFileIndex=JSON.parse(k);if(this.currentFileIndex<0||this.currentFileIndex>=this.indexedFileItems.length)this.currentFileIndex=0;this.currentDetailIndex=0;k=window.sessionStorage[this.searchStr+"_search_result_currentDetailIndex"];if(typeof k==="string")if(k.length>0)this.currentDetailIndex=JSON.parse(k)};j.prototype.getRealRoot=function(){return this.useFlatList?this._listRoot:this._treeRoot};j.prototype.getRoot=function(k){k(this.getRealRoot())};j.prototype.markUpSharedParent=
function(k,l){if(this.sharedParentHash[k.Location]){var p=this.sharedParentHash[k.Location];if(typeof p==="string")if(p!==l)this.sharedParentHash[k.Location]=2}else this.sharedParentHash[k.Location]=l};j.prototype.preparecompressHash=function(){this.sharedParentHash=[];for(var k=0;k<this._resultLocation.length;k++){var l=this._resultLocation[k].metaData.Parents;if(l.length!==0)for(var p=this._resultLocation[k].location,n=0;n<l.length;n++){var m=l[n];this.markUpSharedParent(m,p);p=m.Location}}};j.prototype.compressParents=
function(k,l,p){if(k.length!==0)if(!(l>k.length-1)){var n=k[l].Name,m=k[l].Location,o=l+1,s=false;if(o<k.length)for(l=l+1;l<k.length;l++){o=l;if(this.sharedParentHash[k[l].Location]===2)break;else{n=k[l].Name+"/"+n;if(l===k.length-1)s=true}}p.push({Location:m,Name:n});s||this.compressParents(k,o,p)}};j.prototype.compressTree=function(){for(var k=0;k<this._resultLocation.length;k++)if(this._resultLocation[k].metaData){var l=this._resultLocation[k].metaData.Parents;if(l.length!==0){this.preparecompressHash();
var p=[];this.compressParents(l,0,p);this._resultLocation[k].metaData.compressedParents=p}}};j.prototype._findExistingParent=function(k,l){var p=this.modelLocHash[k[l].Location];if(p)return{parent:p,index:l};if(l===k.length-1)return null;return this._findExistingParent(k,l+1)};j.prototype.fullPathName=function(k,l){if(k&&k.parent)if(!k.parent.isRoot){l.name=k.parent.name+(l.name===""?"":"/")+l.name;k.parent&&this.fullPathName(k.parent,l)}};j.prototype.buildResultModelTree=function(k,l){l&&this.compressTree();
for(var p=0;p<this._resultLocation.length;p++)if(this._resultLocation[p].metaData){var n;n=l?this._resultLocation[p].metaData.compressedParents:this._resultLocation[p].metaData.Parents;var m=this._findExistingParent(n,0),o;if(m){o=m.parent;m=m.index}else{o=this._treeRoot;m=n.length}if(m>0)for(m=m-1;m>-1;m--){var s={parent:o,children:[],type:"dir",name:n[m].Name,location:n[m].Location};o.children.push(s);e.processSearchResultParent(o);o=this.modelLocHash[n[m].Location]=s}n={name:""};m={parent:o,type:"file",
name:this._resultLocation[p].name,linkLocation:this._resultLocation[p].linkLocation,location:this._resultLocation[p].location};this.fullPathName(m,n);m.fullPathName=n.name;this.modelLocHash[m.location]=m;o.children.push(m);e.processSearchResultParent(o)}this.prepareFileItems();this.restoreStatus();k()};j.prototype.loadOneFileMetaData=function(k,l){var p=this._resultLocation[k];this.fileClient.read(p.location,true).then(c.hitch(this,function(n){p.metaData=n;k===this._resultLocation.length-1?this.buildResultModelTree(l,
true):this.loadOneFileMetaData(k+1,l)}),c.hitch(this,function(n){console.error("Error loading file metadata: "+n.message);k===this._resultLocation.length-1?this.buildResultModelTree(l,true):this.loadOneFileMetaData(k+1,l)}))};j.prototype.prepareFileItems=function(){this.indexedFileItems=[];this.walkTreeNode(this._treeRoot);for(var k=0;k<this.indexedFileItems.length;k++)this._listRoot.children.push(this.indexedFileItems[k])};j.prototype.getFileItemIndex=function(k){for(var l=0;l<this.indexedFileItems.length;l++)if(k===
this.indexedFileItems[l])return l;return-1};j.prototype.getFileDetailItemIndex=function(k,l){if(k<0)return-1;k=this.indexedFileItems[k];if(k.children&&k.children.length>0)for(var p=0;p<k.children.length;p++)if(l===k.children[p])return p;return-1};j.prototype.walkTreeNode=function(k){if(k.children)for(var l=0;l<k.children.length;l++)this.walkTreeNode(k.children[l]);else k.type==="file"&&this.indexedFileItems.push(k)};j.prototype.getId=function(k){if(k===this.getRealRoot())k=this.rootId;else{k=k.location;
k=k.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}return k};j.prototype.searchOneline=function(k,l){var p;p=0;for(var n=false,m=[];;){p=k.indexOf(l,p);if(p<0)break;else{m.push({startIndex:p});n=true;p=p+l.length}}if(n)return m;return null};j.prototype.searchWithinFile=function(k,l,p){l=l.split(this._lineDelimiter);if(k){k.children=[];for(var n=0;n<l.length;n++){var m=l[n];if(m&&m.length>0)if(this.searchOneline(m.toLowerCase(),p)){var o=n+1;k.children.push({parent:k,type:"detail",name:o+" : "+m,linkLocation:k.linkLocation+
"?line="+o,location:k.location+"-"+o})}}k.name=k.name+" ("+k.children.length+" matches)"}};j.prototype._fileExpanded=function(k,l){k=this.indexedFileItems[k];if(k.children&&k.children.length>0){if(l<0)l=k.children.length-1;else if(l>=k.children.length)l=0;return{childrenNumber:k.children.length,childDiv:c.byId(this.getId(k.children[l]))}}return{childrenNumber:0,childDiv:null}};j.prototype.getChildren=function(k,l){if(k.children)l(k.children);else if(k.type==="detail")l([]);else k.type==="file"&&k.location?
this.fileClient.read(k.location).then(c.hitch(this,function(p){this.searchWithinFile(k,p,this.searchStr);p=this.getId(k);if(c.byId(p))(p=c.byId(p+"NameColumn"))&&c.place(document.createTextNode(k.name),p,"only");l(k.children);if(this.highlightSelectionLater)if(k===this.indexedFileItems[this.currentFileIndex]){if(this.currentDetailIndex<0)this.currentDetailIndex=k.children.length-1;else if(this.currentDetailIndex>=k.children.length)this.currentDetailIndex=0;p=this._fileExpanded(this.currentFileIndex,
this.currentDetailIndex);c.toggleClass(p.childDiv,"currentSearchMatch",true);this.explorer.visible(p.childDiv)||p.childDiv.scrollIntoView(!this.lastNavDirection);this.highlightSelectionLater=false}}),c.hitch(this,function(p){console.error("Error loading file content: "+p.message);l([])})):l([])};j.prototype.constructor=j;h.prototype=new d.SelectionRenderer;h.prototype.getCellHeaderElement=function(k){if(k===0)return c.create("th",{innerHTML:"<h2>Search Results</h2>"});else if(this.explorer.model.useFlatList&&
k===1)return c.create("th",{innerHTML:"<h2>Location</h2>"})};h.prototype.getCellElement=function(k,l,p){switch(k){case 0:var n;if(l.type==="dir"){k=document.createElement("td");n=c.create("span",null,k,"only");this.getExpandImage(p,n);p=c.create("span",{id:p.id+"NameColumn"},n,"last")}else{k=document.createElement("td");var m=l.linkLocation;n=c.create("span",null,k,"only");if(l.type==="file")this.getExpandImage(p,n,"core-sprite-file");else{var o=this;c.connect(p,"onclick",p,function(){var q=o.explorer.model.getFileItemIndex(l.parent);
if(q>-1){var t=o.explorer.model.getFileDetailItemIndex(q,l);if(t>-1)if(!(o.explorer.model.currentFileIndex===q&&o.explorer.model.currentDetailIndex===t)){var C=o.explorer.model._fileExpanded(o.explorer.model.currentFileIndex,o.explorer.model.currentDetailIndex);C.childDiv&&c.toggleClass(C.childDiv,"currentSearchMatch",false);o.explorer.model.setCurrent(q,t);C=o.explorer.model._fileExpanded(o.explorer.model.currentFileIndex,o.explorer.model.currentDetailIndex);c.toggleClass(C.childDiv,"currentSearchMatch",
true)}}});var s=c.create("span",null,n,"last");c.addClass(s,"imageSprite");c.addClass(s,"core-sprite-none");s=c.create("span",null,n,"last");c.addClass(s,"imageSprite");c.addClass(s,"core-sprite-rightarrow")}p=c.create("a",{className:"navlink",id:p.id+"NameColumn",href:m},n,"last")}c.place(document.createTextNode(l.name),p,"only");return k;case 1:if(this.explorer.model.useFlatList&&l.type==="file"){k=document.createElement("td");n=c.create("span",null,k,"only");c.place(document.createTextNode(l.fullPathName),
n,"only");return k}}};h.prototype.constructor=h;g.prototype=new d.Explorer;g.prototype.onchange=function(){};g.prototype.initCommands=function(){var k=this,l=new i.Command({name:"Next result",imageClass:"core-sprite-move_down",id:"orion.search.nextResult",groupId:"orion.searchGroup",callback:function(){k.gotoNext(true,true)}}),p=new i.Command({name:"Previous result",imageClass:"core-sprite-move_up",id:"orion.search.prevResult",groupId:"orion.searchGroup",callback:function(){k.gotoNext(false,true)}}),
n=new i.Command({name:"Expand all results",imageClass:"core-sprite-expandAll",id:"orion.search.expandAll",groupId:"orion.searchGroup",callback:function(){k.expandAll()}}),m=new i.Command({name:"Collapse all results",imageClass:"core-sprite-collapseAll",id:"orion.search.collapseAll",groupId:"orion.searchGroup",callback:function(){k.collapseAll()}});this._commandService.addCommand(l,"dom");this._commandService.addCommand(p,"dom");this._commandService.addCommand(n,"dom");this._commandService.addCommand(m,
"dom");this._commandService.registerCommandContribution("orion.search.nextResult",1,"pageActionsRight");this._commandService.registerCommandContribution("orion.search.prevResult",2,"pageActionsRight");this._commandService.registerCommandContribution("orion.search.expandAll",3,"pageActionsRight");this._commandService.registerCommandContribution("orion.search.collapseAll",4,"pageActionsRight");c.empty("pageActionsRight");this._commandService.renderCommands("pageActionsRight","dom",k,k,"image");(l=a.byId("globalSearchOptMenu"))&&
l.destroy();l=new a.Menu({style:"display: none;",id:"globalSearchOptMenu"});l.addChild(new a.CheckedMenuItem({label:"Show as List",checked:k.model.useFlatList,onChange:function(o){k.switchTo(o)}}));l=new a.form.DropDownButton({label:"Options",dropDown:l});c.addClass(l.domNode,"commandImage");c.place(l.domNode,"pageActionsRight","last")};g.prototype.startUp=function(){var k=this;this.model.loadOneFileMetaData(0,function(){k.initCommands();k.createTree(k.parentNode,k.model);k.gotoCurrent()})};g.prototype.switchTo=
function(k){this.model.useFlatList=k;this.model.storeStatus();this.createTree(this.parentNode,this.model);this.gotoCurrent()};g.prototype.expandAll=function(){var k=this.model.getRealRoot();if(k.isRoot)for(var l=0;l<k.children.length;l++)this.expandRecursively(k.children[l]);else this.expandRecursively(k);this.gotoCurrent()};g.prototype.collapseAll=function(){var k=this.model.getRealRoot();if(k.isRoot)for(var l=0;l<k.children.length;l++)this.myTree.collapse(k.children[l]);else this.myTree.collapse(k)};
g.prototype.expandRecursively=function(k){if(k.type!=="detail"){this.myTree.expand(k);k=k.children;if(!(k===undefined||k===null))for(var l=k.length,p=0;p<l;p++)this.expandRecursively(k[p])}};g.prototype.findUIParentChain=function(k,l){l.push(k);var p=this.model.getId(k);if(c.byId(p))return l;this.findUIParentChain(k.parent,l)};g.prototype._decideNext=function(k,l){if(!l)return{newFileIndex:this.model.currentFileIndex,newDetailIndex:this.model.currentDetailIndex};l=this.model.indexedFileItems[this.model.currentFileIndex];
if(l.children&&l.children.length>0){k=k?this.model.currentDetailIndex+1:this.model.currentDetailIndex-1;if(k<0){l=this.model.currentFileIndex-1;k=-1}else if(k>l.children.length-1){l=this.model.currentFileIndex+1;k=0}else l=this.model.currentFileIndex;if(l<0)l=this.model.indexedFileItems.length-1;else if(l>=this.model.indexedFileItems.length)l=0;return{newFileIndex:l,newDetailIndex:k}}return null};g.prototype.visible=function(k){if(k.offsetWidth===0||k.offsetHeight===0)return false;var l=c.byId("orion.innerSearchResults").getClientRects()[0];
k=k.getClientRects();for(var p=0,n=k.length;p<n;p++){var m=k[p];if(m.top>=l.top&&m.top<=l.bottom&&m.bottom>=l.top&&m.bottom<=l.bottom)return true}return false};g.prototype.gotoCurrent=function(){this.gotoNext(true,false)};g.prototype.gotoNext=function(k,l){var p=this.model._fileExpanded(this.model.currentFileIndex,this.model.currentDetailIndex);p.childDiv&&c.toggleClass(p.childDiv,"currentSearchMatch",false);l=this._decideNext(k,l);this.model.highlightSelectionLater=true;this.model.lastNavDirection=
k;if(l){p=this.model._fileExpanded(l.newFileIndex,l.newDetailIndex);this.model.setCurrent(l.newFileIndex,l.newDetailIndex);if(p.childrenNumber>0){this.model.highlightSelectionLater=false;if(l.newDetailIndex<0)this.model.setCurrent(l.newFileIndex,p.childrenNumber-1);else l.newDetailIndex>=p.childrenNumber&&this.model.setCurrent(l.newFileIndex,0)}if(p.childDiv){c.toggleClass(p.childDiv,"currentSearchMatch",true);this.visible(p.childDiv)||p.childDiv.scrollIntoView(!k);return}}l=[];this.findUIParentChain(this.model.indexedFileItems[this.model.currentFileIndex],
l);for(p=l.length-1;p>-1;p--)this.myTree.expand(l[p]);if(!this.model.highlightSelectionLater){l=this.model._fileExpanded(this.model.currentFileIndex,this.model.currentDetailIndex);c.toggleClass(l.childDiv,"currentSearchMatch",true);this.visible(l.childDiv)||l.childDiv.scrollIntoView(!k)}};g.prototype.constructor=g;return{SearchResultExplorer:g}});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(c,a,d){var e=document.cookie;if(arguments.length==1){var f=e.match(new RegExp("(?:^|; )"+b.regexp.escapeString(c)+"=([^;]*)"));return f?decodeURIComponent(f[1]):undefined}else{d=d||{};e=d.expires;if(typeof e=="number"){var i=new Date;i.setTime(i.getTime()+e*24*60*60*1E3);e=d.expires=i}if(e&&e.toUTCString)d.expires=e.toUTCString();a=encodeURIComponent(a);e=c+"="+a;for(f in d){e+="; "+f;i=d[f];if(i!==true)e+="="+i}document.cookie=
e}};b.cookie.isSupported=function(){if(!("cookieEnabled"in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1})}return navigator.cookieEnabled};return b.cookie});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(b,c){b.declare("dijit.layout.BorderContainer",c.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},startup:function(){if(!this._started){b.forEach(this.getChildren(),
this._setupChild,this);this.inherited(arguments)}},_setupChild:function(a){var d=a.region;if(d){this.inherited(arguments);b.addClass(a.domNode,this.baseClass+"Pane");var e=this.isLeftToRight();if(d=="leading")d=e?"left":"right";if(d=="trailing")d=e?"right":"left";if(d!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget){var f=b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter");e=new f({id:a.id+"_splitter",container:this,child:a,region:d,live:this.liveSplitters});e.isSplitter=
true;a._splitterWidget=e;b.place(e.domNode,a.domNode,"after");e.startup()}a.region=d}},layout:function(){this._layoutChildren()},addChild:function(){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var d=a.region,e=a._splitterWidget;if(e){e.destroy();delete a._splitterWidget}this.inherited(arguments);this._started&&this._layoutChildren();b.removeClass(a.domNode,this.baseClass+"Pane");b.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});
b.style(a.domNode,d=="top"||d=="bottom"?"width":"height","auto")},getChildren:function(){return b.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return b.filter(this.getChildren(),function(d){return d.region==a})[0]._splitterWidget},resize:function(){if(!this.cs||!this.pe){var a=this.domNode;this.cs=b.getComputedStyle(a);this.pe=b._getPadExtents(a,this.cs);this.pe.r=b._toPixelValue(a,this.cs.paddingRight);this.pe.b=b._toPixelValue(a,this.cs.paddingBottom);
b.style(a,"padding","0px")}this.inherited(arguments)},_layoutChildren:function(a,d){if(this._borderBox&&this._borderBox.h){var e=b.map(this.getChildren(),function(i,j){return{pane:i,weight:[i.region=="center"?Infinity:0,i.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(i.region)?1:-1),j]}},this);e.sort(function(i,j){i=i.weight;j=j.weight;for(var h=0;h<i.length;h++)if(i[h]!=j[h])return i[h]-j[h];return 0});var f=[];b.forEach(e,function(i){i=i.pane;f.push(i);i._splitterWidget&&f.push(i._splitterWidget)});
c.layout.layoutChildren(this.domNode,{l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h},f,a,d)}},destroyRecursive:function(){b.forEach(this.getChildren(),function(a){var d=a._splitterWidget;d&&d.destroy();delete a._splitterWidget});this.inherited(arguments)}});b.extend(c._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[c._Widget,c._Templated],{live:true,templateString:'<div class="dijitSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex="0" role="separator"><div class="dijitSplitterThumb"></div></div>',
postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=b.cookie(this._cookieName);if(a)this.child.domNode.style[this.horizontal?"height":"width"]=a}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",d=b.marginBox(this.child.domNode)[a],e=b.filter(this.container.getChildren(),function(f){return f.region=="center"})[0];a=b.marginBox(e.domNode)[a];return Math.min(this.child.maxSize,d+a)},_startDrag:function(a){if(!this.cover){this.cover=b.doc.createElement("div");b.addClass(this.cover,"dijitSplitterCover");b.place(this.cover,this.child.domNode,"after")}b.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");
b.addClass(this.domNode,"dijitSplitterShadow");b.place(this.fake,this.domNode,"after")}b.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake)b.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var d=this._factor,e=this.horizontal,f=e?"pageY":"pageX",i=a[f],j=this.domNode.style;e=e?"h":"w";var h=b.marginBox(this.child.domNode)[e],g=this._computeMaxSize(),k=this.child.minSize||20;e=this.region;var l=e==
"top"||e=="bottom"?"top":"left",p=parseInt(j[l],10),n=this._resize,m=b.hitch(this.container,"_layoutChildren",this.child.id);e=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(e,"onmousemove",this._drag=function(o,s){o=o[f]-i;var q=d*o+h,t=Math.max(Math.min(q,g),k);if(n||s)m(t);j[l]=o+p+d*(t-q)+"px"}),b.connect(e,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(e,"onmouseup",this,"_stopDrag")]);b.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||
a.type=="mouseenter";b.toggleClass(this.domNode,"dijitSplitterHover",a);b.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&b.removeClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);b.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow");this._drag(a);this._drag(a,true)}finally{this._cleanupHandlers();delete this._drag}if(this.container.persist)b.cookie(this._cookieName,
this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){b.forEach(this._handlers,b.disconnect);delete this._handlers},_onKeyPress:function(a){this._resize=true;var d=this.horizontal,e=1,f=b.keys;switch(a.charOrCode){case d?f.UP_ARROW:f.LEFT_ARROW:e*=-1;case d?f.DOWN_ARROW:f.RIGHT_ARROW:break;default:return}d=b._getMarginSize(this.child.domNode)[d?"h":"w"]+this._factor*e;this.container._layoutChildren(this.child.id,Math.max(Math.min(d,this._computeMaxSize()),
this.child.minSize));b.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});b.declare("dijit.layout._Gutter",[c._Widget,c._Templated],{templateString:'<div class="dijitGutter" role="presentation"></div>',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitGutter"+
(this.horizontal?"H":"V"))}});return c.layout.BorderContainer});
define("orion/searchClient",["require","dojo","dijit","orion/auth","orion/util","orion/searchExplorer","dijit/form/Button","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(b,c,a,d,e,f){function i(j){this.registry=j.serviceRegistry;this._commandService=j.commandService}i.prototype={search:function(j,h,g,k,l,p,n){c.xhrGet({url:h,handleAs:"json",headers:{Accept:"application/json","Orion-Version":"1"},sync:false,timeout:15E3,error:function(m,o){var s=this;d.handleAuthenticationError(o.xhr,
function(){c.xhrGet(s)})},load:c.hitch(this,function(m){this.showSearchResult(j,h,g,k,l,p,n,m)})})},handleError:function(j,h){console.error(j);var g=document.createTextNode(j);c.place(g,h,"only");return j},saveSearch:function(j,h){this.registry.getService("orion.core.favorite").then(function(g){g.addFavoriteSearch(j,h)})},createSearchQuery:function(j,h,g){if(g){h=/\*$/.test(g)?"":"*";return j+"Name:"+this._luceneEscape(g,true)+h}return j+this._luceneEscape(h)},_luceneEscape:function(j,h){var g="";
h='+-&|!(){}[]^"~:\\'+(!h?"*?":"");for(var k=0;k<j.length;k++){var l=j.charAt(k);if(h.indexOf(l)>=0)g+="\\";g+=l}return g},formatHighlight:function(j){j=j.split(/(##match|match##)/);for(var h=c.create("div"),g,k=0;k<j.length;k++){var l=j[k];if(l==="##match")g=c.create("b");else if(l==="match##"){c.place(g,h,"last");g=null}else c.place(document.createTextNode(l),g||h,"last")}return h},showSearchResult:function(j,h,g,k,l,p,n,m){n?this.showSearchResultInList(j,h,g,k,l,p,m):this.showSearchResultInTree(j,
h,g,k,l,p,m)},showSearchResultInTree:function(j,h,g,k,l,p,n){window.location.href.split("#");p=false;var m=[];c.empty(j);k=n.responseHeader.params.q;k=k.substring(k.indexOf("}")+1);if(n.response.numFound>0){for(var o=0;o<n.response.docs.length;o++){var s=n.response.docs[o];if(!s.Directory&&s.Location!==g){p||(p=true);var q;q=k&&s.LineNumber?e.hashFromPosition(s.Location,null,null,s.LineNumber,s.Offset,k.length):s.Location;m.push({linkLocation:b.toUrl("edit/edit.html")+"#"+q,location:q,name:s.Name})}}typeof l===
"function"&&l(j)}if(p)(new f.SearchResultExplorer(this.registry,this._commandService,m,j,h.split("q=")[1])).startUp();else{j=c.place("<div>No matches found for </div>",j,"only");j=c.create("b",null,j,"last");c.place(document.createTextNode(k),j,"only")}},showSearchResultInList:function(j,h,g,k,l,p,n){window.location.href.split("#");var m=false;c.empty(j);h=n.responseHeader.params.q;h=h.substring(h.indexOf("}")+1);if(n.response.numFound>0){for(var o=document.createElement("table"),s=0;s<n.response.docs.length;s++){var q=
n.response.docs[s];if(!q.Directory&&q.Location!==g){var t;if(!m){m=true;if(k){t=o.insertRow(0).insertCell(0);t.innerHTML="<h2>Search Results</h2>"}}t=o.insertRow(-1).insertCell(0);t.colspan=2;var C=document.createElement("a");c.place(document.createTextNode(q.Name),C);q.LineNumber&&c.place(document.createTextNode(" (Line "+q.LineNumber+")"),C);var D;D=h&&q.LineNumber?e.hashFromPosition(q.Location,null,null,q.LineNumber,q.Offset,h.length):q.Location;C.setAttribute("href",b.toUrl("edit/edit.html")+
"#"+D);t.appendChild(C);if(!p&&n.highlighting&&n.highlighting[q.Id]&&n.highlighting[q.Id].Text){q=n.highlighting[q.Id].Text[0];t=o.insertRow(-1).insertCell(0);t.colspan=2;c.place(this.formatHighlight(q),t,"only")}}}c.place(o,j,"last");typeof l==="function"&&l(j)}if(!m){j=c.place("<div>No matches found for </div>",j,"only");j=c.create("b",null,j,"last");c.place(document.createTextNode(h),j,"only")}}};i.prototype.constructor=i;return{Searcher:i}});
define("orion/status",["require","dojo"],function(b,c){function a(d,e,f){this._serviceRegistry=d;this._serviceRegistration=d.registerService("orion.page.message",this);this.domId=e;this.progressDomId=f||e}a.prototype={setMessage:function(d,e){c.place(window.document.createTextNode(d),this.domId,"only");if(typeof e==="number"){var f=this;window.setTimeout(function(){var i=c.byId(f.domId);(typeof i.textContent==="string"?i.textContent:i.innerText)===d&&c.place(window.document.createTextNode(""),f.domId,
"only")},e)}},setErrorMessage:function(d){var e=d.responseText||d.message||d;try{e=JSON.parse(e)}catch(f){}d=e.Message||e;var i="red";if(e.Severity)switch(e.Severity){case "Warning":i="#FFCC00";break;case "Error":i="red";break;case "Info":case "Ok":i="green";break}e=c.create("span",{style:{color:i}});c.place(window.document.createTextNode(d),e);c.place(e,this.domId,"only")},setProgressMessage:function(d){c.place(window.document.createTextNode(d),this.progressDomId,"only")},setProgressResult:function(d){d=
d.responseText||d;try{d=JSON.parse(d)}catch(e){}var f=d.Message||d,i=b.toUrl("images/info.gif"),j="info";if(d.Severity)switch(d.Severity){case "Warning":i=b.toUrl("images/warning.gif");j="warning";break;case "Error":i=b.toUrl("images/error.gif");j="error";break}var h=new Image;h.alt=j;h.title="Press to clear message";h.name=j;h.src=i;c.style(h,"opacity","0.7");c.connect(h,"onmouseover",this,function(){c.style(h,"opacity","1")});c.connect(h,"onmouseout",this,function(){c.style(h,"opacity","0.7")});
c.connect(h,"onclick",this,function(){this.setProgressMessage("")});c.place(h,this.progressDomId,"only");d.HTML?c.place(f,this.progressDomId,"last"):c.place(window.document.createTextNode("   "+f),this.progressDomId,"last")},showWhile:function(d,e){var f=this;f.setProgressMessage(e);return d.then(function(i){if(i&&i.Location&&i.Message&&i.Running)return f._doProgressWhile(i);f.setProgressMessage("");i&&i.Result&&f.setProgressResult(i.Result);return i})},_doProgressWhile:function(d){var e=new c.Deferred;
window.setTimeout(function(){c.xhrGet({url:d.Location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(f){e.callback(f)}})},2E3);return this.showWhile(e,d.Message)}};a.prototype.constructor=a;return{StatusReportingService:a}});
define("index",["require","dojo","orion/bootstrap","orion/commands","orion/searchClient","orion/status","orion/globalCommands","dojo/parser","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(b,c,a,d,e,f,i){c.addOnLoad(function(){a.startup().then(function(j){var h=j.serviceRegistry;j=j.preferences;var g=new d.CommandService({serviceRegistry:h}),k=new e.Searcher({serviceRegistry:h,commandService:g});new f.StatusReportingService(h,"statusPane","notifications");i.generateBanner("toolbar",
h,g,j,k);h.getService("orion.core.preference").then(function(m){return m.getPreferences("/window/recent")}).then(function(m){m=m.get("projects");if(typeof m==="string")m=JSON.parse(m);var o=c.byId("recent");c.empty(o);if(m&&m.length&&m.length>0)for(var s=m.length-1;s>=0;s--)m[s].location&&m[s].name&&c.place("<a class='landingLink' href='"+b.toUrl("navigate/table.html")+"#"+m[s].location+"'>"+m[s].name+"</a><br>",o,"last");else c.place("<div>Go to the <a href='"+b.toUrl("navigate/table.html")+"#'>Navigator</a> to create or view your projects.</div>",
o,"only")});var l=h.getServiceReferences("orion.help.task");j=c.byId("tasks");for(var p=c.create("table",null,j,"only"),n=0;n<l.length;n++)h.getService(l[n]).then(function(){for(var m={},o=l[n].getPropertyNames(),s=0;s<o.length;s++)m[o[s]]=l[n].getProperty(o[s]);o=c.create("tr",null,p,"last");s=c.create("td",null,o,"last");s=c.create("img",{src:m.image,name:m.name,alt:m.name},s,"only");c.addClass(s,"landingImage");o=c.create("td",null,o,"last");c.addClass(o,"landingDescription");c.place(document.createTextNode(m.description),
o,"only");o=c.create("tr",null,p,"last");o=c.create("td",{colspan:"2"},o,"last");o=c.create("ul",null,o,"last");for(s=0;s<m.steps.length;s++){var q=c.create("li",null,o,"last");c.place(document.createTextNode(m.steps[s].description),q,"last");if(m.steps[s].href){c.create("br",null,q);q=c.create("a",{href:m.steps[s].href},q,"last");c.addClass(q,"landingLink");m.steps[s].linkName?c.place(document.createTextNode("Go to "+m.steps[s].linkName+"."),q,"only"):c.place(document.createTextNode("Go to "+m.steps[s].href+
"."),q,"only")}}});document.body.style.visibility="visible";c.parser.parse()})})});