/*
 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,c,d){(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,h;h=f[i++];)console[h]||function(){var m=h+"";console[m]="log"in console?function(){var o=Array.apply({},arguments);o.unshift(m+":");console.log(o.join(" "))}:function(){};console[m]._fake=true}()}if(typeof a==
"undefined")a={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};var g=a;if(typeof c=="undefined")c={_scopeName:"dijit"};if(typeof d=="undefined")d={_scopeName:"dojox"};if(!g._scopeArgs)g._scopeArgs=[a,c,d];g.global=this;g.config={isDebug:false,debugAtAllCosts:false};if(f=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var j in f)g.config[j]=f[j];a.locale=g.config.locale;j="$Rev: 24595 $".match(/\d+/);a.version=
{major:1,minor:6,patch:1,flag:"",revision:j?+j[0]:NaN,toString:function(){with(g.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",g.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(m,o){var q,u,r;for(q in o){u=o[q];
if(!(q in m)||m[q]!==u&&(!(q in p)||p[q]!==u))m[q]=u}if(l&&o)for(r=0;r<l;++r){q=k[r];u=o[q];if(!(q in m)||m[q]!==u&&(!(q in p)||p[q]!==u))m[q]=u}return m};a.mixin=function(m){m||(m={});for(var o=1,q=arguments.length;o<q;o++)g._mixin(m,arguments[o]);return m};a._getProp=function(m,o,q){q=q||g.global;for(var u=0,r;q&&(r=m[u]);u++){if(u==0&&g._scopeMap[r])r=g._scopeMap[r];q=r in q?q[r]:o?(q[r]={}):undefined}return q};a.setObject=function(m,o,q){var u=m.split(".");m=u.pop();return(q=g._getProp(u,true,
q))&&m?(q[m]=o):undefined};a.getObject=function(m,o,q){return g._getProp(m.split("."),o,q)};a.exists=function(m,o){return g.getObject(m,false,o)!==undefined};a.eval=function(m){return g.global.eval?g.global.eval(m):eval(m)};g.deprecated=g.experimental=function(){}})();return{dojo:a,dijit:c,dojox:d}}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 e=b();dojo=e.dojo;dijit=e.dijit;dojox=e.dojox}})();
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap"],function(b,e){var a=["_moduleHasPrefix","_loadPath","_loadUri","_loadUriAndCheck","loaded","_callLoaded","_getModuleSymbols","_loadModule","require","provide","platformRequire","requireIf","requireAfterIf","registerModulePath"],c,d;for(c=0;c<a.length;){d=a[c++];e[d]=function(m){return function(){console.warn("dojo."+m+" not available when using an AMD loader.")}}(d)}var f=function(m){var o=[],q;for(q=0;q<m.length;)o.push(m[q++]);
return o},i=function(m,o){return o?typeof o=="string"?function(){m[o]()}:function(){o.call(m)}:m};e.ready=e.addOnLoad=function(m,o){b.ready(o?i(m,o):m)};e.addOnLoad(function(){e.postLoad=e.config.afterOnLoad=true});if(a=e.config.addOnLoad)e.addOnLoad[a instanceof Array?"apply":"call"](e,a);var h=e._loaders=[],g=function(){var m=h.slice(0);for(Array.prototype.splice.apply(h,[0,h.length]);m.length;)m.shift().call()};h.unshift=function(){Array.prototype.unshift.apply(h,f(arguments));b.ready(g)};h.splice=
function(){Array.prototype.splice.apply(h,f(arguments));b.ready(g)};var j=e._unloaders=[];e.unloaded=function(){for(;j.length;)j.pop().call()};e._onto=function(m,o,q){m.push(q?i(o,q):o)};e._modulesLoaded=function(){};e.loadInit=function(m){m()};var k=function(m){return m.replace(/\./g,"/")};e.getL10nName=function(m,o,q){q=q?q.toLowerCase():e.locale;m="i18n!"+k(m);return/root/i.test(q)?m+"/nls/"+o:m+"/nls/"+q+"/"+o};e.requireLocalization=function(m,o,q){if(b.vendor!="altoviso.com")q=!q||q.toLowerCase()===
e.locale?"root":q;return b(e.getL10nName(m,o,q))};e.i18n={getLocalization:e.requireLocalization,normalizeLocale:function(m){m=m?m.toLowerCase():e.locale;if(m=="root")m="ROOT";return m}};var l=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,p=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;e._Url=function(){for(var m=arguments,o=[m[0]],q=1;q<m.length;q++)if(m[q]){var u=new e._Url(m[q]+"");o=new e._Url(o[0]+"");if(u.path==""&&!u.scheme&&!u.authority&&!u.query){if(u.fragment!=
null)o.fragment=u.fragment;u=o}else if(!u.scheme){u.scheme=o.scheme;if(!u.authority){u.authority=o.authority;if(u.path.charAt(0)!="/"){o=(o.path.substring(0,o.path.lastIndexOf("/")+1)+u.path).split("/");for(var r=0;r<o.length;r++)if(o[r]==".")if(r==o.length-1)o[r]="";else{o.splice(r,1);r--}else if(r>0&&!(r==1&&o[0]=="")&&o[r]==".."&&o[r-1]!="..")if(r==o.length-1){o.splice(r,1);o[r-1]=""}else{o.splice(r-1,2);r-=2}u.path=o.join("/")}}}o=[];u.scheme&&o.push(u.scheme,":");u.authority&&o.push("//",u.authority);
o.push(u.path);u.query&&o.push("?",u.query);u.fragment&&o.push("#",u.fragment)}this.uri=o.join("");q=this.uri.match(l);this.scheme=q[2]||(q[1]?"":null);this.authority=q[4]||(q[3]?"":null);this.path=q[5];this.query=q[7]||(q[6]?"":null);this.fragment=q[9]||(q[8]?"":null);if(this.authority!=null){q=this.authority.match(p);this.user=q[3]||null;this.password=q[4]||null;this.host=q[6]||q[7];this.port=q[9]||null}};e._Url.prototype.toString=function(){return this.uri};e.moduleUrl=function(m,o){if(!m)return null;
m=k(m)+(o?"/"+o:"");o="";var q=m.match(/(.+)(\.[^\/]*)$/);if(q){m=q[1];o=q[2]}return new e._Url(b.nameToUrl(m,o))};return e});
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 c=document.getElementsByTagName("script"),d=/dojo(\.xd)?\.js(\W|$)/i,f=0;f<c.length;f++){var i=c[f].getAttribute("src");if(i){var h=i.match(d);if(h){if(!a.config.baseUrl)a.config.baseUrl=i.substring(0,h.index);if(c=c[f].getAttribute("djConfig")||c[f].getAttribute("data-dojo-config")){c=
eval("({ "+c+" })");for(var g in c)b.config[g]=c[g]}break}}}a.baseUrl=a.config.baseUrl;g=navigator;c=g.userAgent;d=g.appVersion;f=parseFloat(d);if(c.indexOf("Opera")>=0)a.isOpera=f;if(c.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=d.indexOf("Konqueror")>=0?f:0;a.isWebKit=parseFloat(c.split("WebKit/")[1])||undefined;a.isChrome=parseFloat(c.split("Chrome/")[1])||undefined;a.isMac=d.indexOf("Macintosh")>=0;if((i=Math.max(d.indexOf("WebKit"),d.indexOf("Safari"),0))&&!b.isChrome){a.isSafari=parseFloat(d.split("Version/")[1]);
if(!a.isSafari||parseFloat(d.substr(i+7))<=419.3)a.isSafari=2}if(c.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=f;if(a.isMoz)a.isFF=parseFloat(c.split("Firefox/")[1]||c.split("Minefield/")[1])||undefined;if(document.all&&!a.isOpera){a.isIE=parseFloat(d.split("MSIE ")[1])||undefined;if((c=document.documentMode)&&c!=5&&Math.floor(a.isIE)!=c)a.isIE=c}if(b.isIE&&window.location.protocol==="file:")b.config.ieForceActiveXXhr=true;a.isQuirks=document.compatMode=="BackCompat";a.locale=
b.config.locale||(a.isIE?g.userLanguage:g.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var q,u;if(!b.isIE||!b.config.ieForceActiveXXhr)try{q=new XMLHttpRequest}catch(r){}if(!q)for(var n=0;n<3;++n){var v=a._XMLHTTP_PROGIDS[n];try{q=new ActiveXObject(v)}catch(s){u=s}if(q){a._XMLHTTP_PROGIDS=[v];break}}if(!q)throw new Error("XMLHTTP not available: "+u);return q};a._isDocumentOk=function(q){q=q.status||0;var u=location.protocol;
return q>=200&&q<300||q==304||q==1223||!q&&(u=="file:"||u=="chrome:"||u=="chrome-extension:"||u=="app:")};var j=window.location+"";var k=(g=document.getElementsByTagName("base"))&&g.length>0;a._getText=function(q,u){var r=a._xhrObj();if(!k&&b._Url)q=(new b._Url(j,q)).toString();if(a.config.cacheBust){q+="";q+=(q.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,"")}r.open("GET",q,false);try{r.send(null);if(!a._isDocumentOk(r)){var n=Error("Unable to load "+q+" status:"+r.status);
n.status=r.status;n.responseText=r.responseText;throw n;}}catch(v){if(u)return null;throw v;}return r.responseText};var l=window,p=function(q,u){var r=l.attachEvent||l.addEventListener;q=l.attachEvent?q:q.substring(2);r(q,function(){u.apply(l,arguments)},false)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var q=a._windowUnloaders;q.length;)q.pop()();a=null};var m=0;a.addOnWindowUnload=function(q,u){a._onto(a._windowUnloaders,q,u);if(!m){m=1;p("onunload",a.windowUnloaded)}};var o=0;a.addOnUnload=
function(q,u){a._onto(a._unloaders,q,u);if(!o){o=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"],c=0,d=1,f=document.createStyleSheet();if(b.isIE>=8){c=
1;d=a.length}for(;c<d;++c)f.addRule("v\\:"+a[c],"behavior:url(#default#VML); display:inline-block")})()}catch(e){}}(function(){var a=b.config.modulePaths;if(a)for(var c in a)b.registerModulePath(c,a[c])})();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 e=Object.prototype.toString;b.isString=function(g){return typeof g=="string"||g instanceof String};b.isArray=function(g){return g&&(g instanceof Array||typeof g=="array")};b.isFunction=function(g){return e.call(g)==="[object Function]"};b.isObject=function(g){return g!==undefined&&(g===null||typeof g=="object"||b.isArray(g)||b.isFunction(g))};b.isArrayLike=function(g){return g&&g!==undefined&&!b.isString(g)&&!b.isFunction(g)&&
!(g.tagName&&g.tagName.toLowerCase()=="form")&&(b.isArray(g)||isFinite(g.length))};b.isAlien=function(g){return g&&!b.isFunction(g)&&/\{\s*\[native code\]\s*\}/.test(String(g))};b.extend=function(g){for(var j=1,k=arguments.length;j<k;j++)b._mixin(g.prototype,arguments[j]);return g};b._hitchArgs=function(g,j){var k=b._toArray(arguments,2),l=b.isString(j);return function(){var p=b._toArray(arguments),m=l?(g||b.global)[j]:j;return m&&m.apply(g||this,k.concat(p))}};b.hitch=function(g,j){if(arguments.length>
2)return b._hitchArgs.apply(b,arguments);if(!j){j=g;g=null}if(b.isString(j)){g=g||b.global;if(!g[j])throw['dojo.hitch: scope["',j,'"] is null (scope="',g,'")'].join("");return function(){return g[j].apply(g,arguments||[])}}return!g?j:function(){return j.apply(g,arguments||[])}};b.delegate=b._delegate=function(){function g(){}return function(j,k){g.prototype=j;j=new g;g.prototype=null;k&&b._mixin(j,k);return j}}();var a=function(g,j,k){return(k||[]).concat(Array.prototype.slice.call(g,j||0))},c=function(g,
j,k){k=k||[];for(j=j||0;j<g.length;j++)k.push(g[j]);return k};b._toArray=b.isIE?function(g){return(g.item?c:a).apply(this,arguments)}:a;b.partial=function(){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var d=b._extraNames,f=d.length,i={};b.clone=function(g){if(!g||typeof g!="object"||b.isFunction(g))return g;if(g.nodeType&&"cloneNode"in g)return g.cloneNode(true);if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);var j,k,l,p;if(b.isArray(g)){j=
[];k=0;for(l=g.length;k<l;++k)k in g&&j.push(b.clone(g[k]))}else j=g.constructor?new g.constructor:{};for(p in g){l=g[p];if(!(p in j)||j[p]!==l&&(!(p in i)||i[p]!==l))j[p]=b.clone(l)}if(f)for(k=0;k<f;++k){p=d[k];l=g[p];if(!(p in j)||j[p]!==l&&(!(p in i)||i[p]!==l))j[p]=l}return j};b.trim=String.prototype.trim?function(g){return g.trim()}:function(g){return g.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var h=/\{([^\}]+)\}/g;b.replace=function(g,j,k){return g.replace(k||h,b.isFunction(j)?j:function(l,
p){return b.getObject(p,false,j)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var e=function(c,d,f){return[typeof c=="string"?c.split(""):c,d||b.global,typeof f=="string"?new Function("item","index","array",f):f]},a=function(c,d,f,i){var h=e(d,i,f);d=h[0];f=0;for(i=d.length;f<i;++f){var g=!!h[2].call(h[1],d[f],f,d);if(c^g)return g}return c};b.mixin(b,{indexOf:function(c,d,f,i){var h=1,g=c.length||0,j=0;if(i){j=g-1;h=g=-1}if(f!=undefined)j=f;if(i&&j>g||j<g)for(;j!=g;j+=h)if(c[j]==d)return j;
return-1},lastIndexOf:function(c,d,f){return b.indexOf(c,d,f,true)},forEach:function(c,d,f){if(c&&c.length){var i=e(c,f,d);c=i[0];d=0;for(f=c.length;d<f;++d)i[2].call(i[1],c[d],d,c)}},every:function(c,d,f){return a(true,c,d,f)},some:function(c,d,f){return a(false,c,d,f)},map:function(c,d,f,i){var h=e(c,f,d);c=h[0];d=i?new i:[];f=0;for(i=c.length;f<i;++f)d.push(h[2].call(h[1],c[f],f,c));return d},filter:function(c,d,f){var i=e(c,f,d);c=i[0];d=[];f=0;for(var h=c.length;f<h;++f)i[2].call(i[1],c[f],f,
c)&&d.push(c[f]);return d}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function e(B,y){throw new Error("declare"+(y?" "+y:"")+": "+B);}function a(B,y){for(var z=[],E=[{cls:0,refs:[]}],F={},K=1,G=B.length,M=0,L,N,O,U,$;M<G;++M){if(L=B[M])n.call(L)!="[object Function]"&&e("mixin #"+M+" is not a callable constructor.",y);else e("mixin #"+M+" is unknown. Did you use dojo.require to pull it in?",y);N=L._meta?L._meta.bases:[L];O=0;for(L=N.length-1;L>=0;--L){U=N[L].prototype;
if(!U.hasOwnProperty("declaredClass"))U.declaredClass="uniqName_"+s++;U=U.declaredClass;if(!F.hasOwnProperty(U)){F[U]={count:0,refs:[],cls:N[L]};++K}U=F[U];if(O&&O!==U){U.refs.push(O);++O.count}O=U}++O.count;E[0].refs.push(O)}for(;E.length;){O=E.pop();z.push(O.cls);for(--K;$=O.refs,$.length==1;){O=$[0];if(!O||--O.count){O=0;break}z.push(O.cls);--K}if(O){M=0;for(G=$.length;M<G;++M){O=$[M];--O.count||E.push(O)}}}K&&e("can't build consistent linearization",y);L=B[0];z[0]=L?L._meta&&L===z[z.length-L._meta.bases.length]?
L._meta.bases.length:1:0;return z}function c(B,y,z){var E,F,K,G,M,L,N,O=this._inherited=this._inherited||{};if(typeof B=="string"){E=B;B=y;y=z}z=0;G=B.callee;(E=E||G.nom)||e("can't deduce a name to call inherited()",this.declaredClass);M=this.constructor._meta;K=M.bases;N=O.p;if(E!=x){if(O.c!==G){N=0;L=K[0];M=L._meta;if(M.hidden[E]!==G){(F=M.chains)&&typeof F[E]=="string"&&e("calling chained method with inherited: "+E,this.declaredClass);do{M=L._meta;F=L.prototype;if(M&&(F[E]===G&&F.hasOwnProperty(E)||
M.hidden[E]===G))break}while(L=K[++N]);N=L?N:-1}}if(L=K[++N]){F=L.prototype;if(L._meta&&F.hasOwnProperty(E))z=F[E];else{G=r[E];do{F=L.prototype;if((z=F[E])&&(L._meta?F.hasOwnProperty(E):z!==G))break}while(L=K[++N])}}z=L&&z||r[E]}else{if(O.c!==G){N=0;if((M=K[0]._meta)&&M.ctor!==G){F=M.chains;if(!F||F.constructor!=="manual")e("calling chained constructor with inherited",this.declaredClass);for(;L=K[++N];)if((M=L._meta)&&M.ctor===G)break;N=L?N:-1}}for(;L=K[++N];)if(z=(M=L._meta)?M.ctor:L)break;z=L&&
z}O.c=z;O.p=N;if(z)return y===true?z:z.apply(this,y||B)}function d(B,y){if(typeof B=="string")return this.inherited(B,y,true);return this.inherited(B,true)}function f(B){for(var y=this.constructor._meta.bases,z=0,E=y.length;z<E;++z)if(y[z]===B)return true;return this instanceof B}function i(B,y){var z,E=0,F=q._extraNames.length;for(z in y)if(z!=x&&y.hasOwnProperty(z))B[z]=y[z];for(;E<F;++E){z=q._extraNames[E];if(z!=x&&y.hasOwnProperty(z))B[z]=y[z]}}function h(B,y){var z,E,F=0,K=q._extraNames.length;
for(z in y){E=y[z];if((E!==r[z]||!(z in r))&&z!=x){if(n.call(E)=="[object Function]")E.nom=z;B[z]=E}}for(;F<K;++F){z=q._extraNames[F];E=y[z];if((E!==r[z]||!(z in r))&&z!=x){if(n.call(E)=="[object Function]")E.nom=z;B[z]=E}}return B}function g(B){h(this.prototype,B);return this}function j(B,y){return function(){var z=arguments,E=z,F=z[0],K,G;G=B.length;var M;if(!(this instanceof z.callee))return o(z);if(y&&(F&&F.preamble||this.preamble)){M=new Array(B.length);M[0]=z;for(K=0;;){if(F=z[0])if(F=F.preamble)z=
F.apply(this,z)||z;F=B[K].prototype;if(F=F.hasOwnProperty("preamble")&&F.preamble)z=F.apply(this,z)||z;if(++K==G)break;M[K]=z}}for(K=G-1;K>=0;--K){F=B[K];if(F=(G=F._meta)?G.ctor:F)F.apply(this,M?M[K]:z)}(F=this.postscript)&&F.apply(this,E)}}function k(B,y){return function(){var z=arguments,E=z,F=z[0];if(!(this instanceof z.callee))return o(z);if(y){if(F)if(F=F.preamble)E=F.apply(this,E)||E;(F=this.preamble)&&F.apply(this,E)}B&&B.apply(this,z);(F=this.postscript)&&F.apply(this,z)}}function l(B){return function(){var y=
arguments,z=0,E,F;if(!(this instanceof y.callee))return o(y);for(;E=B[z];++z)if(E=(F=E._meta)?F.ctor:E){E.apply(this,y);break}(E=this.postscript)&&E.apply(this,y)}}function p(B,y,z){return function(){var E,F,K=0,G=1;if(z){K=y.length-1;G=-1}for(;E=y[K];K+=G){F=E._meta;(E=(F?F.hidden:E.prototype)[B])&&E.apply(this,arguments)}}}function m(B){v.prototype=B.prototype;B=new v;v.prototype=null;return B}function o(B){var y=B.callee,z=m(y);y.apply(z,B);return z}var q=b,u=q._mixin,r=Object.prototype,n=r.toString,
v=new Function,s=0,x="constructor";q.declare=function(B,y,z){if(typeof B!="string"){z=y;y=B;B=""}z=z||{};var E,F,K,G,M,L,N,O=1,U=y;if(n.call(y)=="[object Array]"){L=a(y,B);K=L[0];O=L.length-K;y=L[O]}else{L=[0];if(y)if(n.call(y)=="[object Function]"){K=y._meta;L=L.concat(K?K.bases:y)}else e("base class is not a callable constructor.",B);else y!==null&&e("unknown base class. Did you use dojo.require to pull it in?",B)}if(y)for(F=O-1;;--F){E=m(y);if(!F)break;K=L[F];(K._meta?i:u)(E,K.prototype);G=new Function;
G.superclass=y;G.prototype=E;y=E.constructor=G}else E={};h(E,z);K=z.constructor;if(K!==r.constructor){K.nom=x;E.constructor=K}for(F=O-1;F;--F)if((K=L[F]._meta)&&K.chains)N=u(N||{},K.chains);if(E["-chains-"])N=u(N||{},E["-chains-"]);K=!N||!N.hasOwnProperty(x);L[0]=G=N&&N.constructor==="manual"?l(L):L.length==1?k(z.constructor,K):j(L,K);G._meta={bases:L,hidden:z,chains:N,parents:U,ctor:z.constructor};G.superclass=y&&y.prototype;G.extend=g;G.prototype=E;E.constructor=G;E.getInherited=d;E.inherited=c;
E.isInstanceOf=f;if(B){E.declaredClass=B;q.setObject(B,G)}if(N)for(M in N)if(E[M]&&typeof N[M]=="string"&&M!=x){K=E[M]=p(M,L,N[M]==="after");K.nom=M}return G};q.safeMixin=h})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var e=Array.prototype,a=arguments.callee,c=a._listeners;a=(a=a.target)&&a.apply(this,arguments);var d;c=[].concat(c);for(d in c)d in e||c[d].apply(this,arguments);return a}},add:function(e,a,c){e=e||b.global;var d=e[a];if(!d||!d._listeners){var f=b._listener.getDispatcher();f.target=d;f._listeners=[];d=e[a]=f}return d._listeners.push(c)},remove:function(e,a,c){(e=(e||
b.global)[a])&&e._listeners&&c--&&delete e._listeners[c]}};b.connect=function(){var e=arguments,a=[],c=0;a.push(b.isString(e[0])?null:e[c++],e[c++]);var d=e[c+1];a.push(b.isString(d)||b.isFunction(d)?e[c++]:null,e[c++]);for(d=e.length;c<d;c++)a.push(e[c]);return b._connect.apply(this,a)};b._connect=function(e,a,c,d){var f=b._listener;c=f.add(e,a,b.hitch(c,d));return[e,a,c,f]};b.disconnect=function(e){if(e&&e[0]!==undefined){b._disconnect.apply(this,e);delete e[0]}};b._disconnect=function(e,a,c,d){d.remove(e,
a,c)};b._topics={};b.subscribe=function(e,a,c){return[e,b._listener.add(b._topics,e,b.hitch(a,c))]};b.unsubscribe=function(e){e&&b._listener.remove(b._topics,e[0],e[1])};b.publish=function(e,a){if(e=b._topics[e])e.apply(this,a||[])};b.connectPublisher=function(e,a,c){var d=function(){b.publish(e,arguments)};return c?b.connect(a,c,d):b.connect(a,d)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var e=function(){},a=Object.freeze||function(){};b.Deferred=function(c){function d(m){if(h)throw new Error("This deferred has already been resolved");i=m;h=true;f()}function f(){for(var m;!m&&k;){var o=k;k=k.next;if(m=o.progress==e)h=false;var q=g?o.error:o.resolved;if(q)try{var u=q(i);if(u&&typeof u.then==="function")u.then(b.hitch(o.deferred,"resolve"),b.hitch(o.deferred,"reject"));else{q=m&&u===undefined;
if(m&&!q)g=u instanceof Error;o.deferred[q&&g?"reject":"resolve"](q?i:u)}}catch(r){o.deferred.reject(r)}else g?o.deferred.reject(i):o.deferred.resolve(i)}}var i,h,g,j,k,l=this.promise={};this.resolve=this.callback=function(m){this.fired=0;this.results=[m,null];d(m)};this.reject=this.errback=function(m){g=true;this.fired=1;d(m);this.results=[null,m];if(!m||m.log!==false)(b.config.deferredOnError||function(o){console.error(o)})(m)};this.progress=function(m){for(var o=k;o;){var q=o.progress;q&&q(m);
o=o.next}};this.addCallbacks=function(m,o){this.then(m,o,e);return this};this.then=l.then=function(m,o,q){var u=q==e?this:new b.Deferred(l.cancel);m={resolved:m,error:o,progress:q,deferred:u};if(k)j=j.next=m;else k=j=m;h&&f();return u.promise};var p=this;this.cancel=l.cancel=function(){if(!h){var m=c&&c(p);if(!h){m instanceof Error||(m=new Error(m));m.log=false;p.reject(m)}}};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 c=b.hitch.apply(b,arguments);return this.addCallbacks(c,c)},fired:-1})})();b.when=function(e,a,c,d){if(e&&typeof e.then==="function")return e.then(a,c,d);return a(e)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(e){return eval("("+e+")")};b._escapeString=function(e){return('"'+e.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(e,a,c){if(e===undefined)return"undefined";var d=typeof e;if(d=="number"||d=="boolean")return e+"";if(e===null)return"null";if(b.isString(e))return b._escapeString(e);var f=
arguments.callee,i;c=c||"";var h=a?c+b.toJsonIndentStr:"";i=e.__json__||e.json;if(b.isFunction(i)){i=i.call(e);if(e!==i)return f(i,a,h)}if(e.nodeType&&e.cloneNode)throw new Error("Can't serialize DOM nodes");i=a?" ":"";var g=a?"\n":"";if(b.isArray(e))return"["+b.map(e,function(p){p=f(p,a,h);if(typeof p!="string")p="undefined";return g+h+p}).join(","+i)+g+c+"]";if(d=="function")return null;d=[];var j;for(j in e){var k,l;if(typeof j=="number")k='"'+j+'"';else if(typeof j=="string")k=b._escapeString(j);
else continue;l=f(e[j],a,h);typeof l=="string"&&d.push(g+h+k+":"+i+l)}return"{"+d.join(","+i)+g+c+"}"};return b});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(b){(function(){b.Color=function(e){e&&this.setColor(e)};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(e,a,c,d){this.r=e;this.g=a;this.b=c;this.a=d},setColor:function(e){if(b.isString(e))b.colorFromString(e,this);else if(b.isArray(e))b.colorFromArray(e,this);else{this._set(e.r,e.g,e.b,e.a);e 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(e){e=this[e].toString(16);return e.length<
2?"0"+e:e},this).join("")},toCss:function(e){var a=this.r+", "+this.g+", "+this.b;return(e?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(true)}});b.blendColors=function(e,a,c,d){var f=d||new b.Color;b.forEach(["r","g","b","a"],function(i){f[i]=e[i]+(a[i]-e[i])*c;if(i!="a")f[i]=Math.round(f[i])});return f.sanitize()};b.colorFromRgb=function(e,a){return(e=e.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&b.colorFromArray(e[1].split(/\s*,\s*/),a)};b.colorFromHex=function(e,
a){var c=a||new b.Color,d=e.length==4?4:8,f=(1<<d)-1;e=Number("0x"+e.substr(1));if(isNaN(e))return null;b.forEach(["b","g","r"],function(i){var h=e&f;e>>=d;c[i]=d==4?17*h:h});c.a=1;return c};b.colorFromArray=function(e,a){a=a||new b.Color;a._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3]));if(isNaN(a.a))a.a=1;return a.sanitize()};b.colorFromString=function(e,a){var c=b.Color.named[e];return c&&b.colorFromArray(c,a)||b.colorFromRgb(e,a)||b.colorFromHex(e,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(e,a){b.global=e;b.doc=a};b.withGlobal=function(e,a,c,d){var f=b.global;try{b.global=e;return b.withDoc.call(null,e.document,a,c,d)}finally{b.global=f}};b.withDoc=function(e,a,c,d){var f=b.doc,i=b._bodyLtr,h=b.isQuirks;try{b.doc=e;delete b._bodyLtr;b.isQuirks=b.doc.compatMode=="BackCompat";if(c&&typeof a=="string")a=
c[a];return a.apply(c,d||[])}finally{b.doc=f;delete b._bodyLtr;if(i!==undefined)b._bodyLtr=i;b.isQuirks=h}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var e=b._event_listener={add:function(g,j,k){if(g){j=e._normalizeEventName(j);k=e._fixCallback(j,k);if(!b.isIE&&(j=="mouseenter"||j=="mouseleave")){var l=k;j=j=="mouseenter"?"mouseover":"mouseout";k=function(p){if(!b.isDescendant(p.relatedTarget,g))return l.call(this,p)}}g.addEventListener(j,k,false);return k}},remove:function(g,j,k){if(g){j=e._normalizeEventName(j);if(!b.isIE&&(j=="mouseenter"||j=="mouseleave"))j=
j=="mouseenter"?"mouseover":"mouseout";g.removeEventListener(j,k,false)}},_normalizeEventName:function(g){return g.slice(0,2)=="on"?g.slice(2):g},_fixCallback:function(g,j){return g!="keypress"?j:function(k){return j.call(this,e._fixEvent(k,this))}},_fixEvent:function(g){switch(g.type){case "keypress":e._setKeyChar(g);break}return g},_setKeyChar:function(g){g.keyChar=g.charCode>=32?String.fromCharCode(g.charCode):"";g.charOrCode=g.keyChar||g.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(g,j){return e._fixEvent(g,j)};b.stopEvent=function(g){g.preventDefault();g.stopPropagation()};var a=b._listener;b._connect=function(g,j,k,l,p){p=g&&(g.nodeType||g.attachEvent||g.addEventListener)?p?2:1:0;k=[b._listener,e,a][p].add(g,j,b.hitch(k,l));return[g,j,k,p]};b._disconnect=function(g,j,k,l){[b._listener,e,a][l].remove(g,j,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 c=b.isMac?"metaKey":"ctrlKey";b.isCopyKey=function(g){return g[c]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(g,j){return g.button&j},isLeft:function(g){return g.button&1},isMiddle:function(g){return g.button&4},isRight:function(g){return g.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(g,j){return g.button==j},isLeft:function(g){return g.button==
0},isMiddle:function(g){return g.button==1},isRight:function(g){return g.button==2}};if(b.isIE){var d=function(g,j){try{return g.keyCode=j}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(g,j,k){g=g||b.global;var l=g[j];if(!l||!l[i]){var p=b._getIeDispatcher();p.target=l&&h.push(l)-1;p[i]=[];l=g[j]=p}return l[i].push(h.push(k)-1)},remove:function(g,j,k){j=(g=(g||b.global)[j])&&g[i];if(g&&j&&
k--){delete h[j[k]];delete j[k]}}};var h=f.handlers}b.mixin(e,{add:function(g,j,k){if(g){j=e._normalizeEventName(j);if(j=="onkeypress"){var l=g.onkeydown;if(!l||!l[i]||!l._stealthKeydownHandle){var p=e.add(g,"onkeydown",e._stealthKeyDown);l=g.onkeydown;l._stealthKeydownHandle=p;l._stealthKeydownRefs=1}else l._stealthKeydownRefs++}return f.add(g,j,e._fixCallback(k))}},remove:function(g,j,k){j=e._normalizeEventName(j);f.remove(g,j,k);if(j=="onkeypress"){j=g.onkeydown;if(--j._stealthKeydownRefs<=0){f.remove(g,
"onkeydown",j._stealthKeydownHandle);delete j._stealthKeydownHandle}}},_normalizeEventName:function(g){return g.slice(0,2)!="on"?"on"+g:g},_nop:function(){},_fixEvent:function(g,j){if(!g)g=(j&&(j.ownerDocument||j.document||j).parentWindow||window).event;if(!g)return g;g.target=g.srcElement;g.currentTarget=j||g.srcElement;g.layerX=g.offsetX;g.layerY=g.offsetY;j=(j=g.srcElement)&&j.ownerDocument||document;j=b.isIE<6||j.compatMode=="BackCompat"?j.body:j.documentElement;var k=b._getIeDocumentElementOffset();
g.pageX=g.clientX+b._fixIeBiDiScrollLeft(j.scrollLeft||0)-k.x;g.pageY=g.clientY+(j.scrollTop||0)-k.y;if(g.type=="mouseover")g.relatedTarget=g.fromElement;if(g.type=="mouseout")g.relatedTarget=g.toElement;if(b.isIE<9||b.isQuirks){g.stopPropagation=e._stopPropagation;g.preventDefault=e._preventDefault}return e._fixKeys(g)},_fixKeys:function(g){switch(g.type){case "keypress":var j="charCode"in g?g.charCode:g.keyCode;if(j==10){j=0;g.keyCode=13}else if(j==13||j==27)j=0;else if(j==3)j=99;g.charCode=j;e._setKeyChar(g);
break}return g},_stealthKeyDown:function(g){var j=g.currentTarget.onkeypress;if(j&&j[i]){var k=g.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||g.ctrlKey){l=l?0:k;if(g.ctrlKey)if(k==3||k==13)return;else if(l>95&&l<106)l-=48;else if(!g.shiftKey&&l>=65&&l<=90)l+=32;else l=e._punctMap[l]||l;k=e._synthesizeEvent(g,{type:"keypress",faux:true,charCode:l});j.call(g.currentTarget,k);if(b.isIE<9||b.isIE&&b.isQuirks)g.cancelBubble=
k.cancelBubble;g.returnValue=k.returnValue;d(g,k.keyCode)}}},_stopPropagation:function(){this.cancelBubble=true},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&d(this,0);this.returnValue=false}});b.stopEvent=b.isIE<9||b.isQuirks?function(g){g=g||window.event;e._stopPropagation.call(g);e._preventDefault.call(g)}:b.stopEvent}e._synthesizeEvent=function(g,j){j=b.mixin({},g,j);e._setKeyChar(j);j.preventDefault=function(){g.preventDefault()};j.stopPropagation=function(){g.stopPropagation()};
return j};b.isOpera&&b.mixin(e,{_fixEvent:function(g){switch(g.type){case "keypress":var j=g.which;if(j==3)j=99;j=j<41&&!g.shiftKey?0:j;if(g.ctrlKey&&!g.shiftKey&&j>=65&&j<=90)j+=32;return e._synthesizeEvent(g,{charCode:j})}return g}});if(b.isWebKit){e._add=e.add;e._remove=e.remove;b.mixin(e,{add:function(g,j,k){if(g){var l=e._add(g,j,k);if(e._normalizeEventName(j)=="keypress")l._stealthKeyDownHandle=e._add(g,"keydown",function(p){var m=p.keyCode,o=m!=13&&m!=32&&(m<48||m>90)&&(m<96||m>111)&&(m<186||
m>192)&&(m<219||m>222);if(o||p.ctrlKey){o=o?0:m;if(p.ctrlKey)if(m==3||m==13)return;else if(o>95&&o<106)o-=48;else if(!p.shiftKey&&o>=65&&o<=90)o+=32;else o=e._punctMap[o]||o;m=e._synthesizeEvent(p,{type:"keypress",faux:true,charCode:o});k.call(p.currentTarget,m)}});return l}},remove:function(g,j,k){if(g){k._stealthKeyDownHandle&&e._remove(g,"keydown",k._stealthKeyDownHandle);e._remove(g,j,k)}},_fixEvent:function(g){switch(g.type){case "keypress":if(g.faux)return g;var j=g.charCode;j=j>=32?j:0;return e._synthesizeEvent(g,
{charCode:j,faux:true})}return g}})}})();if(b.isIE){b._ieDispatcher=function(e,a){var c=Array.prototype,d=b._ie_listener.handlers,f=e.callee,i=f[b._ieListenersName];f=(f=d[f.target])&&f.apply(a,e);i=[].concat(i);for(var h in i){var g=d[i[h]];!(h in c)&&g&&g.apply(a,e)}return f};b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")};b._event_listener._fixCallback=function(e){var a=b._event_listener._fixEvent;return function(c){return e.call(this,a(c,this))}}}return b.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(b){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}b.byId=b.isIE?function(a,c){if(typeof a!="string")return a;var d=c||b.doc;if((c=d.getElementById(a))&&(c.attributes.id.value==a||c.id==a))return c;else{var f=d.all[a];if(!f||f.nodeName)f=[f];for(var i=0;c=f[i++];)if(c.attributes&&c.attributes.id&&c.attributes.id.value==a||c.id==a)return c}}:function(a,c){return(typeof a=="string"?(c||b.doc).getElementById(a):
a)||null};(function(){var a=b.byId,c=null,d;b.addOnWindowUnload(function(){c=null});b._destroyElement=b.destroy=function(t){t=a(t);try{var w=t.ownerDocument;if(!c||d!=w){c=w.createElement("div");d=w}c.appendChild(t.parentNode?t.parentNode.removeChild(t):t);c.innerHTML=""}catch(C){}};b.isDescendant=function(t,w){try{t=a(t);for(w=a(w);t;){if(t==w)return true;t=t.parentNode}}catch(C){}return false};b.setSelectable=function(t,w){t=a(t);if(b.isMozilla)t.style.MozUserSelect=w?"":"none";else if(b.isKhtml||
b.isWebKit)t.style.KhtmlUserSelect=w?"auto":"none";else if(b.isIE){w=t.unselectable=w?"":"on";b.query("*",t).forEach("item.unselectable = '"+w+"'")}};var f=function(t,w){var C=w.parentNode;C&&C.insertBefore(t,w)},i=function(t,w){var C=w.parentNode;if(C)C.lastChild==w?C.appendChild(t):C.insertBefore(t,w.nextSibling)};b.place=function(t,w,C){w=a(w);if(typeof t=="string")t=/^\s*</.test(t)?b._toDom(t,w.ownerDocument):a(t);if(typeof C=="number"){var J=w.childNodes;!J.length||J.length<=C?w.appendChild(t):
f(t,J[C<0?0:C])}else switch(C){case "before":f(t,w);break;case "after":i(t,w);break;case "replace":w.parentNode.replaceChild(t,w);break;case "only":b.empty(w);w.appendChild(t);break;case "first":if(w.firstChild){f(t,w.firstChild);break}default:w.appendChild(t)}return t};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var h;h=b.isWebKit?function(t){var w;if(t.nodeType==1){var C=t.ownerDocument.defaultView;w=C.getComputedStyle(t,null);if(!w&&
t.style){t.style.display="";w=C.getComputedStyle(t,null)}}return w||{}}:b.isIE?function(t){return t.nodeType==1?t.currentStyle:{}}:function(t){return t.nodeType==1?t.ownerDocument.defaultView.getComputedStyle(t,null):{}};b.getComputedStyle=h;b._toPixelValue=b.isIE?function(t,w){if(!w)return 0;if(w=="medium")return 4;if(w.slice&&w.slice(-2)=="px")return parseFloat(w);with(t){t=style.left;var C=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=w;w=style.pixelLeft}catch(J){w=0}style.left=
t;runtimeStyle.left=C}return w}:function(t,w){return parseFloat(w)||0};var g=b._toPixelValue,j=function(t,w){try{return t.filters.item("DXImageTransform.Microsoft.Alpha")}catch(C){return w?{}:null}};b._getOpacity=b.isIE<9?function(t){try{return j(t).Opacity/100}catch(w){return 1}}:function(t){return h(t).opacity};b._setOpacity=b.isIE<9?function(t,w){var C=w*100,J=w==1;t.style.zoom=J?"":1;if(j(t))j(t,1).Opacity=C;else{if(J)return w;t.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+
C+")"}j(t,1).Enabled=!J;t.nodeName.toLowerCase()=="tr"&&b.query("> td",t).forEach(function(P){b._setOpacity(P,w)});return w}:function(t,w){return t.style.opacity=w};var k={left:true,top:true},l=/margin|padding|width|height|max|min|offset/,p=function(t,w,C){w=w.toLowerCase();if(b.isIE){if(C=="auto"){if(w=="height")return t.offsetHeight;if(w=="width")return t.offsetWidth}if(w=="fontweight")switch(C){case 700:return"bold";case 400:default:return"normal"}}w in k||(k[w]=l.test(w));return k[w]?g(t,C):C},
m=b.isIE?"styleFloat":"cssFloat",o={cssFloat:m,styleFloat:m,"float":m};b.style=function(t,w,C){var J=a(t),P=arguments.length,R=w=="opacity";w=o[w]||w;if(P==3)return R?b._setOpacity(J,C):(J.style[w]=C);if(P==2&&R)return b._getOpacity(J);R=h(J);if(P==2&&typeof w!="string"){for(var Y in w)b.style(t,Y,w[Y]);return R}return P==1?R:p(J,w,R[w]||J.style[w])};b._getPadExtents=function(t,w){w=w||h(t);var C=g(t,w.paddingLeft),J=g(t,w.paddingTop);return{l:C,t:J,w:C+g(t,w.paddingRight),h:J+g(t,w.paddingBottom)}};
b._getBorderExtents=function(t,w){w=w||h(t);var C=w.borderLeftStyle!="none"?g(t,w.borderLeftWidth):0,J=w.borderTopStyle!="none"?g(t,w.borderTopWidth):0;return{l:C,t:J,w:C+(w.borderRightStyle!="none"?g(t,w.borderRightWidth):0),h:J+(w.borderBottomStyle!="none"?g(t,w.borderBottomWidth):0)}};b._getPadBorderExtents=function(t,w){var C=w||h(t);w=b._getPadExtents(t,C);t=b._getBorderExtents(t,C);return{l:w.l+t.l,t:w.t+t.t,w:w.w+t.w,h:w.h+t.h}};b._getMarginExtents=function(t,w){w=w||h(t);var C=g(t,w.marginLeft),
J=g(t,w.marginTop),P=g(t,w.marginRight);t=g(t,w.marginBottom);if(b.isWebKit&&w.position!="absolute")P=C;return{l:C,t:J,w:C+P,h:J+t}};b._getMarginBox=function(t,w){var C=w||h(t);w=b._getMarginExtents(t,C);var J=t.offsetLeft-w.l,P=t.offsetTop-w.t,R=t.parentNode;if(b.isMoz){var Y=parseFloat(C.left);C=parseFloat(C.top);if(!isNaN(Y)&&!isNaN(C)){J=Y;P=C}else if(R&&R.style){Y=h(R);if(Y.overflow!="visible"){R=b._getBorderExtents(R,Y);J+=R.l;P+=R.t}}}else if(b.isOpera||b.isIE>7&&!b.isQuirks)if(R){R=b._getBorderExtents(R);
J-=R.l;P-=R.t}return{l:J,t:P,w:t.offsetWidth+w.w,h:t.offsetHeight+w.h}};b._getMarginSize=function(t,w){t=a(t);w=b._getMarginExtents(t,w||h(t));t=t.getBoundingClientRect();return{w:t.right-t.left+w.w,h:t.bottom-t.top+w.h}};b._getContentBox=function(t,w){var C=w||h(t);w=b._getPadExtents(t,C);C=b._getBorderExtents(t,C);var J=t.clientWidth;if(J){t=t.clientHeight;C.w=C.h=0}else{J=t.offsetWidth;t=t.offsetHeight}if(b.isOpera){w.l+=C.l;w.t+=C.t}return{l:w.l,t:w.t,w:J-w.w-C.w,h:t-w.h-C.h}};b._getBorderBox=
function(t,w){var C=w||h(t);w=b._getPadExtents(t,C);t=b._getContentBox(t,C);return{l:t.l-w.l,t:t.t-w.t,w:t.w+w.w,h:t.h+w.h}};b._setBox=function(t,w,C,J,P,R){R=R||"px";t=t.style;if(!isNaN(w))t.left=w+R;if(!isNaN(C))t.top=C+R;if(J>=0)t.width=J+R;if(P>=0)t.height=P+R};b._isButtonTag=function(t){return t.tagName=="BUTTON"||t.tagName=="INPUT"&&(t.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(t){var w=t.tagName;return b.boxModel=="border-box"||w=="TABLE"||b._isButtonTag(t)};
b._setContentSize=function(t,w,C,J){if(b._usesBorderBox(t)){J=b._getPadBorderExtents(t,J);if(w>=0)w+=J.w;if(C>=0)C+=J.h}b._setBox(t,NaN,NaN,w,C)};b._setMarginBox=function(t,w,C,J,P,R){var Y=R||h(t);R=b._usesBorderBox(t)?q:b._getPadBorderExtents(t,Y);if(b.isWebKit)if(b._isButtonTag(t)){var ga=t.style;if(J>=0&&!ga.width)ga.width="4px";if(P>=0&&!ga.height)ga.height="4px"}Y=b._getMarginExtents(t,Y);if(J>=0)J=Math.max(J-R.w-Y.w,0);if(P>=0)P=Math.max(P-R.h-Y.h,0);b._setBox(t,w,C,J,P)};var q={l:0,t:0,w:0,
h:0};b.marginBox=function(t,w){t=a(t);var C=h(t);return!w?b._getMarginBox(t,C):b._setMarginBox(t,w.l,w.t,w.w,w.h,C)};b.contentBox=function(t,w){t=a(t);var C=h(t);return!w?b._getContentBox(t,C):b._setContentSize(t,w.w,w.h,C)};b._docScroll=function(){var t=b.global;return"pageXOffset"in t?{x:t.pageXOffset,y:t.pageYOffset}:(t=b.isQuirks?b.doc.body:b.doc.documentElement,{x:b._fixIeBiDiScrollLeft(t.scrollLeft||0),y:t.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 t=b.doc.documentElement;if(b.isIE<8){var w=t.getBoundingClientRect(),C=w.left;w=w.top;if(b.isIE<7){C+=t.clientLeft;w+=t.clientTop}return{x:C<0?0:C,y:w<0?0:w}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(t){var w=b.isIE;if(w&&!b._isBodyLtr()){var C=b.isQuirks,J=C?b.doc.body:b.doc.documentElement;if(w==6&&!C&&b.global.frameElement&&J.scrollHeight>J.clientHeight)t+=J.clientLeft;return w<8||
C?t+J.clientWidth-J.scrollWidth:-t}return t};b._abs=b.position=function(t,w){t=a(t);var C=b.body(),J=C.parentNode;t=t.getBoundingClientRect();t={x:t.left,y:t.top,w:t.right-t.left,h:t.bottom-t.top};if(b.isIE){J=b._getIeDocumentElementOffset();t.x-=J.x+(b.isQuirks?C.clientLeft+C.offsetLeft:0);t.y-=J.y+(b.isQuirks?C.clientTop+C.offsetTop:0)}else if(b.isFF==3){C=h(J);t.x-=g(J,C.marginLeft)+g(J,C.borderLeftWidth);t.y-=g(J,C.marginTop)+g(J,C.borderTopWidth)}if(w){w=b._docScroll();t.x+=w.x;t.y+=w.y}return t};
b.coords=function(t,w){t=a(t);var C=h(t);C=b._getMarginBox(t,C);w=b.position(t,w);C.x=w.x;C.y=w.y;return C};var u={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},r={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},n={innerHTML:1,className:1,htmlFor:b.isIE,value:1},v=function(t){return r[t.toLowerCase()]||t},s=function(t,w){return(t=t.getAttributeNode&&t.getAttributeNode(w))&&
t.specified};b.hasAttr=function(t,w){var C=w.toLowerCase();return n[u[C]||w]||s(a(t),r[C]||w)};var x={},B=0,y=b._scopeName+"attrid",z={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(t,w,C){t=a(t);var J=arguments.length;if(J==2&&typeof w!="string"){for(var P in w)b.attr(t,P,w[P]);return t}var R=w.toLowerCase();P=u[R]||w;var Y=n[P];R=r[R]||w;if(J==3){if(P=="style"&&typeof C!="string")b.style(t,C);else if(P=="innerHTML")if(b.isIE&&t.tagName.toLowerCase()in z){b.empty(t);
t.appendChild(b._toDom(C,t.ownerDocument))}else t[P]=C;else if(b.isFunction(C)){J=b.attr(t,y);if(!J){J=B++;b.attr(t,y,J)}x[J]||(x[J]={});if(Y=x[J][P])b.disconnect(Y);else try{delete t[P]}catch(ga){}x[J][P]=b.connect(t,P,C)}else if(Y||typeof C=="boolean")t[P]=C;else t.setAttribute(R,C);return t}C=t[P];if(Y&&typeof C!="undefined")return C;if(P!="href"&&(typeof C=="boolean"||b.isFunction(C)))return C;return s(t,R)?t.getAttribute(R):null};b.removeAttr=function(t,w){a(t).removeAttribute(v(w))};b.getNodeProp=
function(t,w){t=a(t);var C=w.toLowerCase(),J=u[C]||w;if(J in t&&J!="href")return t[J];w=r[C]||w;return s(t,w)?t.getAttribute(w):null};b.create=function(t,w,C,J){var P=b.doc;if(C){C=a(C);P=C.ownerDocument}if(typeof t=="string")t=P.createElement(t);w&&b.attr(t,w);C&&b.place(t,C,J);return t};b.empty=b.isIE?function(t){t=a(t);for(var w;w=t.lastChild;)b.destroy(w)}:function(t){a(t).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={},G=0,M="__"+b._scopeName+"ToDomId";for(var L in E)if(E.hasOwnProperty(L)){var N=E[L];N.pre=L=="option"?'<select multiple="multiple">':"<"+N.join("><")+">";N.post="</"+N.reverse().join("></")+">"}b._toDom=function(t,w){w=w||b.doc;var C=w[M];if(!C){w[M]=C=++G+"";K[C]=w.createElement("div")}t+="";var J=t.match(F),P=J?J[1].toLowerCase():"";C=K[C];if(J&&E[P]){J=
E[P];C.innerHTML=J.pre+t+J.post;for(t=J.length;t;--t)C=C.firstChild}else C.innerHTML=t;if(C.childNodes.length==1)return C.removeChild(C.firstChild);for(t=w.createDocumentFragment();w=C.firstChild;)t.appendChild(w);return t};var O="className";b.hasClass=function(t,w){return(" "+a(t)[O]+" ").indexOf(" "+w+" ")>=0};var U=/\s+/,$=[""],da={},fa=function(t){if(typeof t=="string"||t instanceof String)if(t.indexOf(" ")<0){$[0]=t;return $}else return t.split(U);return t||""};b.addClass=function(t,w){t=a(t);
w=fa(w);var C=t[O],J;C=C?" "+C+" ":" ";J=C.length;for(var P=0,R=w.length,Y;P<R;++P)if((Y=w[P])&&C.indexOf(" "+Y+" ")<0)C+=Y+" ";if(J<C.length)t[O]=C.substr(1,C.length-2)};b.removeClass=function(t,w){t=a(t);var C;if(w!==undefined){w=fa(w);C=" "+t[O]+" ";for(var J=0,P=w.length;J<P;++J)C=C.replace(" "+w[J]+" "," ");C=b.trim(C)}else C="";if(t[O]!=C)t[O]=C};b.replaceClass=function(t,w,C){t=a(t);da.className=t.className;b.removeClass(da,C);b.addClass(da,w);if(t.className!==da.className)t.className=da.className};
b.toggleClass=function(t,w,C){if(C===undefined)C=!b.hasClass(t,w);b[C?"addClass":"removeClass"](t,w)}})();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 e=Array.prototype,a=e.slice,c=e.concat,d=function(m,o,q){m.sort||(m=a.call(m,0));q=q||this._NodeListCtor||b._NodeListCtor;m.constructor=q;b._mixin(m,q.prototype);m._NodeListCtor=q;return o?m._stash(o):m},f=function(m,o,q){o=[0].concat(a.call(o,0));q=q||b.global;return function(u){o[0]=u;return m.apply(q,o)}},i=function(m,o){return function(){this.forEach(f(m,
arguments,o));return this}},h=function(m,o){return function(){return this.map(f(m,arguments,o))}},g=function(m,o,q){return function(){var u=arguments,r=f(m,u,q);if(o.call(q||b.global,u))return this.map(r);this.forEach(r);return this}},j=function(m){return m.length==1&&typeof m[0]=="string"},k=function(m){var o=m.parentNode;o&&o.removeChild(m)};b.NodeList=function(){return d(Array.apply(null,arguments))};var l=b._NodeListCtor=b.NodeList,p=l.prototype;l._wrap=p._wrap=d;l._adaptAsMap=h;l._adaptAsForEach=
i;l._adaptAsFilter=function(m,o){return function(){return this.filter(f(m,arguments,o))}};l._adaptWithCondition=g;b.forEach(["slice","splice"],function(m){var o=e[m];p[m]=function(){return this._wrap(o.apply(this,arguments),m=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(m){var o=b[m];p[m]=function(){return o.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(m){p[m]=g(b[m],j)});b.forEach(["connect","addClass","removeClass","replaceClass",
"toggleClass","empty","removeAttr"],function(m){p[m]=i(b[m])});b.extend(b.NodeList,{_normalize:function(m,o){var q=m.parse===true?true:false;if(typeof m.template=="string"){var u=m.templateFunc||b.string&&b.string.substitute;m=u?u(m.template,m):m}u=typeof m;if(u=="string"||u=="number"){m=b._toDom(m,o&&o.ownerDocument);m=m.nodeType==11?b._toArray(m.childNodes):[m]}else if(b.isArrayLike(m))b.isArray(m)||(m=b._toArray(m));else m=[m];if(q)m._runParse=true;return m},_cloneNode:function(m){return m.cloneNode(true)},
_place:function(m,o,q,u){if(!(o.nodeType!=1&&q=="only")){o=o;for(var r,n=m.length,v=n-1;v>=0;v--){var s=u?this._cloneNode(m[v]):m[v];if(m._runParse&&b.parser&&b.parser.parse){r||(r=o.ownerDocument.createElement("div"));r.appendChild(s);b.parser.parse(r);for(s=r.firstChild;r.firstChild;)r.removeChild(r.firstChild)}v==n-1?b.place(s,o,q):o.parentNode.insertBefore(s,o);o=s}}},_stash:function(m){this._parent=m;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(){var m=
b.isArray(this)?this:a.call(this,0),o=b.map(arguments,function(q){return q&&!b.isArray(q)&&(typeof NodeList!="undefined"&&q.constructor===NodeList||q.constructor===this._NodeListCtor)?a.call(q,0):q});return this._wrap(c.apply(m,o),this)},map:function(m,o){return this._wrap(b.map(this,m,o),this)},forEach:function(m,o){b.forEach(this,m,o);return this},coords:h(b.coords),position:h(b.position),place:function(m,o){var q=b.query(m)[0];return this.forEach(function(u){b.place(u,q,o)})},orphan:function(m){return(m?
b._filterQueryResult(this,m):this).forEach(k)},adopt:function(m,o){return b.query(m).place(this[0],o)._stash(this)},query:function(m){if(!m)return this;var o=this.map(function(q){return b.query(m,q).filter(function(u){return u!==undefined})});return this._wrap(c.apply([],o),this)},filter:function(m){var o=arguments,q=this,u=0;if(typeof m=="string"){q=b._filterQueryResult(this,o[0]);if(o.length==1)return q._stash(this);u=1}return this._wrap(b.filter(q,o[u],o[u+1]),this)},addContent:function(m,o){m=
this._normalize(m,this[0]);for(var q=0,u;u=this[q];q++)this._place(m,u,o,q>0);return this},instantiate:function(m,o){var q=b.isFunction(m)?m:b.getObject(m);o=o||{};return this.forEach(function(u){new q(o,u)})},at:function(){var m=new this._NodeListCtor;b.forEach(arguments,function(o){if(o<0)o=this.length+o;this[o]&&m.push(this[o])},this);return m._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(m){var o="on"+m;p[o]=function(q,u){return this.connect(o,q,u)}})})();return b.NodeList});
(function(){var b=function(a){var c=a.trim,d=a.forEach,f=a._NodeListCtor=a.NodeList,i=function(){return a.doc},h=(a.isWebKit||a.isMozilla)&&i().compatMode=="BackCompat",g=i().firstChild.children?"children":"childNodes",j=false,k=function(){return true},l=function(A){A+=">~+".indexOf(A.slice(-1))>=0?" * ":" ";for(var D=function(ma,na){return c(A.slice(ma,na))},H=[],I=-1,Q=-1,T=-1,V=-1,S=-1,W=-1,aa=-1,ca="",ba="",ia,Z=0,oa=A.length,X=null,ea=null,pa=function(){if(aa>=0){var ma=aa==Z?null:D(aa,Z);X[">~+".indexOf(ma)<
0?"tag":"oper"]=ma;aa=-1}},qa=function(){if(W>=0){X.id=D(W,Z).replace(/\\/g,"");W=-1}},ra=function(){if(S>=0){X.classes.push(D(S+1,Z).replace(/\\/g,""));S=-1}},la=function(){qa();pa();ra()},sa=function(){la();V>=0&&X.pseudos.push({name:D(V+1,Z)});X.loops=X.pseudos.length||X.attrs.length||X.classes.length;X.oquery=X.query=D(ia,Z);X.otag=X.tag=X.oper?null:X.tag||"*";if(X.tag)X.tag=X.tag.toUpperCase();if(H.length&&H[H.length-1].oper){X.infixOper=H.pop();X.query=X.infixOper.query+" "+X.query}H.push(X);
X=null};ca=ba,ba=A.charAt(Z),Z<oa;Z++)if(ca!="\\"){if(!X){ia=Z;X={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return j?this.otag:this.tag}};aa=Z}if(I>=0)if(ba=="]"){if(ea.attr)ea.matchFor=D(T||I+1,Z);else ea.attr=D(I+1,Z);if(I=ea.matchFor)if(I.charAt(0)=='"'||I.charAt(0)=="'")ea.matchFor=I.slice(1,-1);X.attrs.push(ea);ea=null;I=T=-1}else{if(ba=="="){T="|~^$*".indexOf(ca)>=0?ca:"";ea.type=T+ba;ea.attr=D(I+1,Z-T.length);T=Z+1}}else if(Q>=0){if(ba==")"){if(V>=
0)ea.value=D(Q+1,Z);V=Q=-1}}else if(ba=="#"){la();W=Z+1}else if(ba=="."){la();S=Z}else if(ba==":"){la();V=Z}else if(ba=="["){la();I=Z;ea={}}else if(ba=="("){if(V>=0){ea={name:D(V+1,Z),value:null};X.pseudos.push(ea)}Q=Z}else ba==" "&&ca!=ba&&sa()}return H},p=function(A,D){if(!A)return D;if(!D)return A;return function(){return A.apply(window,arguments)&&D.apply(window,arguments)}},m=function(A,D){D=D||[];A&&D.push(A);return D},o=function(A){return 1==A.nodeType},q=function(A,D){if(!A)return"";if(D==
"class")return A.className||"";if(D=="for")return A.htmlFor||"";if(D=="style")return A.style.cssText||"";return(j?A.getAttribute(D):A.getAttribute(D,2))||""},u={"*=":function(A,D){return function(H){return q(H,A).indexOf(D)>=0}},"^=":function(A,D){return function(H){return q(H,A).indexOf(D)==0}},"$=":function(A,D){return function(H){H=" "+q(H,A);return H.lastIndexOf(D)==H.length-D.length}},"~=":function(A,D){var H=" "+D+" ";return function(I){return(" "+q(I,A)+" ").indexOf(H)>=0}},"|=":function(A,
D){var H=" "+D+"-";return function(I){I=" "+q(I,A);return I==D||I.indexOf(H)==0}},"=":function(A,D){return function(H){return q(H,A)==D}}},r=typeof i().firstChild.nextElementSibling=="undefined",n=!r?"nextElementSibling":"nextSibling",v=!r?"previousElementSibling":"previousSibling",s=r?o:k,x=function(A){for(;A=A[v];)if(s(A))return false;return true},B=function(A){for(;A=A[n];)if(s(A))return false;return true},y=function(A){var D=A.parentNode,H=0,I=D[g],Q=A._i||-1,T=D._l||-1;if(!I)return-1;I=I.length;
if(T==I&&Q>=0&&T>=0)return Q;D._l=I;Q=-1;for(D=D.firstElementChild||D.firstChild;D;D=D[n])if(s(D)){D._i=++H;if(A===D)Q=H}return Q},z=function(A){return!(y(A)%2)},E=function(A){return y(A)%2},F={checked:function(){return function(A){return!!("checked"in A?A.checked:A.selected)}},"first-child":function(){return x},"last-child":function(){return B},"only-child":function(){return function(A){if(!x(A))return false;if(!B(A))return false;return true}},empty:function(){return function(A){var D=A.childNodes;
for(A=A.childNodes.length-1;A>=0;A--){var H=D[A].nodeType;if(H===1||H==3)return false}return true}},contains:function(A,D){A=D.charAt(0);if(A=='"'||A=="'")D=D.slice(1,-1);return function(H){return H.innerHTML.indexOf(D)>=0}},not:function(A,D){A=l(D)[0];D={el:1};if(A.tag!="*")D.tag=1;if(!A.classes.length)D.classes=1;var H=G(A,D);return function(I){return!H(I)}},"nth-child":function(A,D){A=parseInt;if(D=="odd")return E;else if(D=="even")return z;if(D.indexOf("n")!=-1){D=D.split("n",2);var H=D[0]?D[0]==
"-"?-1:A(D[0]):1,I=D[1]?A(D[1]):0,Q=0,T=-1;if(H>0)if(I<0)I=I%H&&H+I%H;else{if(I>0){if(I>=H)Q=I-I%H;I%=H}}else if(H<0){H*=-1;if(I>0){T=I;I%=H}}if(H>0)return function(S){S=y(S);return S>=Q&&(T<0||S<=T)&&S%H==I};else D=I}var V=A(D);return function(S){return y(S)==V}}},K=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(A){var D=A.toLowerCase();if(D=="class")A="className";return function(H){return j?H.getAttribute(A):H[A]||H[D]}}:function(A){return function(D){return D&&D.getAttribute&&D.hasAttribute(A)}},
G=function(A,D){if(!A)return k;D=D||{};var H=null;"el"in D||(H=p(H,o));if(!("tag"in D))if(A.tag!="*")H=p(H,function(I){return I&&I.tagName==A.getTag()});"classes"in D||d(A.classes,function(I,Q){var T=new RegExp("(?:^|\\s)"+I+"(?:\\s|$)");H=p(H,function(V){return T.test(V.className)});H.count=Q});"pseudos"in D||d(A.pseudos,function(I){var Q=I.name;if(F[Q])H=p(H,F[Q](Q,I.value))});"attrs"in D||d(A.attrs,function(I){var Q,T=I.attr;if(I.type&&u[I.type])Q=u[I.type](T,I.matchFor);else if(T.length)Q=K(T);
if(Q)H=p(H,Q)});if(!("id"in D))if(A.id)H=p(H,function(I){return!!I&&I.id==A.id});H||"default"in D||(H=k);return H},M=function(A){return function(D,H,I){for(;D=D[n];)if(!(r&&!o(D))){if((!I||ja(D,I))&&A(D))H.push(D);break}return H}},L=function(A){return function(D,H,I){for(D=D[n];D;){if(s(D)){if(I&&!ja(D,I))break;A(D)&&H.push(D)}D=D[n]}return H}},N=function(A){A=A||k;return function(D,H,I){for(var Q=0,T=D[g];D=T[Q++];)if(s(D)&&(!I||ja(D,I))&&A(D,Q))H.push(D);return H}},O=function(A,D){for(A=A.parentNode;A;){if(A==
D)break;A=A.parentNode}return!!A},U={},$=function(A){var D=U[A.query];if(D)return D;var H=A.infixOper;H=H?H.oper:"";var I=G(A,{el:1}),Q="*"==A.tag,T=i().getElementsByClassName;if(H){T={el:1};if(Q)T.tag=1;I=G(A,T);if("+"==H)D=M(I);else if("~"==H)D=L(I);else if(">"==H)D=N(I)}else if(A.id){I=!A.loops&&Q?k:G(A,{el:1,id:1});D=function(S,W){var aa=a.byId(A.id,S.ownerDocument||S);if(aa&&I(aa))if(9==S.nodeType)return m(aa,W);else if(O(aa,S))return m(aa,W)}}else if(T&&/\{\s*\[native code\]\s*\}/.test(String(T))&&
A.classes.length&&!h){I=G(A,{el:1,classes:1,id:1});var V=A.classes.join(" ");D=function(S,W,aa){W=m(0,W);for(var ca,ba=0,ia=S.getElementsByClassName(V);ca=ia[ba++];)I(ca,S)&&ja(ca,aa)&&W.push(ca);return W}}else if(!Q&&!A.loops)D=function(S,W,aa){W=m(0,W);for(var ca=0,ba=S.getElementsByTagName(A.getTag());S=ba[ca++];)ja(S,aa)&&W.push(S);return W};else{I=G(A,{el:1,tag:1,id:1});D=function(S,W,aa){W=m(0,W);for(var ca,ba=0,ia=S.getElementsByTagName(A.getTag());ca=ia[ba++];)I(ca,S)&&ja(ca,aa)&&W.push(ca);
return W}}return U[A.query]=D},da=function(A,D){A=m(A);for(var H,I,Q=D.length,T,V,S=0;S<Q;S++){V=[];H=D[S];I=A.length-1;if(I>0){T={};V.nozip=true}I=$(H);for(var W=0;H=A[W];W++)I(H,V,T);if(!V.length)break;A=V}return V},fa={},t={},w=function(A){var D=l(c(A));if(D.length==1){var H=$(D[0]);return function(I){if(I=H(I,new f))I.nozip=true;return I}}return function(I){return da(I,D)}},C=navigator.userAgent;C=a.isWebKit&&C.indexOf("WebKit/")>0&&parseFloat(C.split("WebKit/")[1])>528;var J=a.isIE?"commentStrip":
"nozip",P=!!i().querySelectorAll&&(!a.isSafari||a.isSafari>3.1||C),R=/n\+\d|([^ ])?([>~+])([^ =])?/g,Y=function(A,D,H,I){return H?(D?D+" ":"")+H+(I?" "+I:""):A},ga=function(A,D){A=A.replace(R,Y);if(P){var H=t[A];if(H&&!D)return H}if(H=fa[A])return H;H=A.charAt(0);var I=-1==A.indexOf(" ");if(A.indexOf("#")>=0&&I)D=true;if(P&&!D&&">~+".indexOf(H)==-1&&(!a.isIE||A.indexOf(":")==-1)&&!(h&&A.indexOf(".")>=0)&&A.indexOf(":contains")==-1&&A.indexOf(":checked")==-1&&A.indexOf("|=")==-1){var Q=">~+".indexOf(A.charAt(A.length-
1))>=0?A+" *":A;return t[A]=function(V){try{if(!(9==V.nodeType||I))throw"";var S=V.querySelectorAll(Q);S[J]=true;return S}catch(W){return ga(A,true)(V)}}}else{var T=A.split(/\s*,\s*/);return fa[A]=T.length<2?w(A):function(V){for(var S=0,W=[],aa;aa=T[S++];)W=W.concat(w(aa)(V));return W}}},ha=0,ta=a.isIE?function(A){return j?A.getAttribute("_uid")||A.setAttribute("_uid",++ha)||ha:A.uniqueID}:function(A){return A._uid||(A._uid=++ha)},ja=function(A,D){if(!D)return 1;A=ta(A);if(!D[A])return D[A]=1;return 0},
ka="_zipIdx",ua=function(A){if(A&&A.nozip)return f._wrap?f._wrap(A):A;var D=new f;if(!A||!A.length)return D;A[0]&&D.push(A[0]);if(A.length<2)return D;ha++;if(a.isIE&&j){var H=ha+"";A[0].setAttribute(ka,H);for(var I=1,Q;Q=A[I];I++){A[I].getAttribute(ka)!=H&&D.push(Q);Q.setAttribute(ka,H)}}else if(a.isIE&&A.commentStrip)try{for(I=1;Q=A[I];I++)o(Q)&&D.push(Q)}catch(T){}else{if(A[0])A[0][ka]=ha;for(I=1;Q=A[I];I++){A[I][ka]!=ha&&D.push(Q);Q[ka]=ha}}return D};a.query=function(A,D){f=a._NodeListCtor;if(!A)return new f;
if(A.constructor==f)return A;if(typeof A!="string")return new f(A);if(typeof D=="string"){D=a.byId(D);if(!D)return new f}D=D||i();var H=D.ownerDocument||D.documentElement;j=D.contentType&&D.contentType=="application/xml"||a.isOpera&&(D.doctype||H.toString()=="[object XMLDocument]")||!!H&&(a.isIE?H.xml:D.xmlVersion||H.xmlVersion);if((A=ga(A)(D))&&A.nozip&&!f._wrap)return A;return ua(A)};a.query.pseudos=F;a._filterQueryResult=function(A,D,H){var I=new a._NodeListCtor,Q=l(D);Q=Q.length==1&&!/[^\w#\.]/.test(D)?
G(Q[0]):function(S){return dojo.query(D,H).indexOf(S)!=-1};for(var T=0,V;V=A[T];T++)Q(V)&&I.push(V);return I}},e=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,h){if(f&&f.length)for(var g=0,j=f.length;g<j;++g)i.call(h||window,f[g],g,f)},byId:function(f,i){return typeof f=="string"?(i||document).getElementById(f):f},doc:document,NodeList:Array};var a=navigator,c=a.userAgent;
a=a.appVersion;var d=parseFloat(a);acme.isOpera=c.indexOf("Opera")>=0?d:undefined;acme.isKhtml=a.indexOf("Konqueror")>=0?d:undefined;acme.isWebKit=parseFloat(c.split("WebKit/")[1])||undefined;acme.isChrome=parseFloat(c.split("Chrome/")[1])||undefined;if((c=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome){acme.isSafari=parseFloat(a.split("Version/")[1]);if(!acme.isSafari||parseFloat(a.substr(c+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||e())})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){function e(r,n,v){if(v!==null){var s=r[n];if(typeof s=="string")r[n]=[s,v];else if(a.isArray(s))s.push(v);else r[n]=v}}var a=b,c=a.config;b.fieldToObject=function(r){var n=null;if(r=a.byId(r)){var v=r.name,s=(r.type||"").toLowerCase();if(v&&s&&!r.disabled)if(s=="radio"||s=="checkbox"){if(r.checked)n=r.value}else if(r.multiple){n=[];a.query("option",r).forEach(function(x){x.selected&&
n.push(x.value)})}else n=r.value}return n};b.formToObject=function(r){var n={};a.forEach(b.byId(r).elements,function(v){var s=v.name,x=(v.type||"").toLowerCase();if(s&&x&&"file|submit|image|reset|button|".indexOf(x)==-1&&!v.disabled){e(n,s,a.fieldToObject(v));if(x=="image")n[s+".x"]=n[s+".y"]=n[s].x=n[s].y=0}});return n};b.objectToQuery=function(r){var n=encodeURIComponent,v=[],s={};for(var x in r){var B=r[x];if(B!=s[x]){var y=n(x)+"=";if(a.isArray(B))for(var z=0;z<B.length;z++)v.push(y+n(B[z]));
else v.push(y+n(B))}}return v.join("&")};b.formToQuery=function(r){return a.objectToQuery(a.formToObject(r))};b.formToJson=function(r,n){return a.toJson(a.formToObject(r),n)};b.queryToObject=function(r){var n={};r=r.split("&");var v=decodeURIComponent;a.forEach(r,function(s){if(s.length){var x=s.split("=");s=v(x.shift());x=v(x.join("="));if(typeof n[s]=="string")n[s]=[n[s]];if(a.isArray(n[s]))n[s].push(x);else n[s]=x}});return n};b._blockAsync=false;var d=a._contentHandlers=b.contentHandlers={text:function(r){return r.responseText},
json:function(r){return a.fromJson(r.responseText||null)},"json-comment-filtered":function(r){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.");r=r.responseText;var n=r.indexOf("/*"),v=r.lastIndexOf("*/");if(n==-1||v==-1)throw new Error("JSON was not comment filtered");
return a.fromJson(r.substring(n+2,v))},javascript:function(r){return a.eval(r.responseText)},xml:function(r){var n=r.responseXML;if(a.isIE&&(!n||!n.documentElement)){var v=function(s){return"MSXML"+s+".DOMDocument"};v=["Microsoft.XMLDOM",v(6),v(4),v(3),v(2)];a.some(v,function(s){try{var x=new ActiveXObject(s);x.async=false;x.loadXML(r.responseText);n=x}catch(B){return false}return true})}return n},"json-comment-optional":function(r){return r.responseText&&/^[^{\[]*\/\*/.test(r.responseText)?d["json-comment-filtered"](r):
d.json(r)}};b._ioSetArgs=function(r,n,v,s){var x={args:r,url:r.url},B=null;if(r.form){B=a.byId(r.form);var y=B.getAttributeNode("action");x.url=x.url||(y?y.value:null);B=a.formToObject(B)}y=[{}];B&&y.push(B);r.content&&y.push(r.content);r.preventCache&&y.push({"dojo.preventCache":(new Date).valueOf()});x.query=a.objectToQuery(a.mixin.apply(null,y));x.handleAs=r.handleAs||"text";var z=new a.Deferred(n);z.addCallbacks(v,function(G){return s(G,z)});var E=r.load;E&&a.isFunction(E)&&z.addCallback(function(G){return E.call(r,
G,x)});var F=r.error;F&&a.isFunction(F)&&z.addErrback(function(G){return F.call(r,G,x)});var K=r.handle;K&&a.isFunction(K)&&z.addBoth(function(G){return K.call(r,G,x)});if(c.ioPublish&&a.publish&&x.args.ioPublish!==false){z.addCallbacks(function(G){a.publish("/dojo/io/load",[z,G]);return G},function(G){a.publish("/dojo/io/error",[z,G]);return G});z.addBoth(function(G){a.publish("/dojo/io/done",[z,G]);return G})}z.ioArgs=x;return z};var f=function(r){r.canceled=true;var n=r.ioArgs.xhr,v=typeof n.abort;
if(v=="function"||v=="object"||v=="unknown")n.abort();r=r.ioArgs.error;if(!r){r=new Error("xhr cancelled");r.dojoType="cancel"}return r},i=function(r){r=d[r.ioArgs.handleAs](r.ioArgs.xhr);return r===undefined?null:r},h=function(r,n){n.ioArgs.args.failOk||console.error(r);return r},g=null,j=[],k=0,l=function(r){if(k<=0){k=0;if(c.ioPublish&&a.publish&&(!r||r&&r.ioArgs.args.ioPublish!==false))a.publish("/dojo/io/stop")}},p=function(){var r=(new Date).getTime();if(!a._blockAsync)for(var n=0,v;n<j.length&&
(v=j[n]);n++){var s=v.dfd,x=function(){if(!s||s.canceled||!v.validCheck(s)){j.splice(n--,1);k-=1}else if(v.ioCheck(s)){j.splice(n--,1);v.resHandle(s);k-=1}else if(s.startTime)if(s.startTime+(s.ioArgs.args.timeout||0)<r){j.splice(n--,1);var y=new Error("timeout exceeded");y.dojoType="timeout";s.errback(y);s.cancel();k-=1}};if(b.config.debugAtAllCosts)x.call(this);else try{x.call(this)}catch(B){s.errback(B)}}l(s);if(!j.length){clearInterval(g);g=null}};b._ioCancelAll=function(){try{a.forEach(j,function(n){try{n.dfd.cancel()}catch(v){}})}catch(r){}};
a.isIE&&a.addOnWindowUnload(a._ioCancelAll);a._ioNotifyStart=function(r){if(c.ioPublish&&a.publish&&r.ioArgs.args.ioPublish!==false){k||a.publish("/dojo/io/start");k+=1;a.publish("/dojo/io/send",[r])}};a._ioWatch=function(r,n,v,s){var x=r.ioArgs.args;if(x.timeout)r.startTime=(new Date).getTime();j.push({dfd:r,validCheck:n,ioCheck:v,resHandle:s});g||(g=setInterval(p,50));x.sync&&p()};var m="application/x-www-form-urlencoded",o=function(r){return r.ioArgs.xhr.readyState},q=function(r){return 4==r.ioArgs.xhr.readyState},
u=function(r){var n=r.ioArgs.xhr;if(a._isDocumentOk(n))r.callback(r);else{var v=new Error("Unable to load "+r.ioArgs.url+" status:"+n.status);v.status=n.status;v.responseText=n.responseText;r.errback(v)}};b._ioAddQueryToUrl=function(r){if(r.query.length){r.url+=(r.url.indexOf("?")==-1?"?":"&")+r.query;r.query=null}};b.xhr=function(r,n,v){var s=a._ioSetArgs(n,f,i,h),x=s.ioArgs,B=x.xhr=a._xhrObj(x.args);if(!B){s.cancel();return s}if("postData"in n)x.query=n.postData;else if("putData"in n)x.query=n.putData;
else if("rawBody"in n)x.query=n.rawBody;else if(arguments.length>2&&!v||"POST|PUT".indexOf(r.toUpperCase())==-1)a._ioAddQueryToUrl(x);B.open(r,x.url,n.sync!==true,n.user||undefined,n.password||undefined);if(n.headers)for(var y in n.headers)if(y.toLowerCase()==="content-type"&&!n.contentType)n.contentType=n.headers[y];else n.headers[y]&&B.setRequestHeader(y,n.headers[y]);B.setRequestHeader("Content-Type",n.contentType||m);if(!n.headers||!("X-Requested-With"in n.headers))B.setRequestHeader("X-Requested-With",
"XMLHttpRequest");a._ioNotifyStart(s);if(b.config.debugAtAllCosts)B.send(x.query);else try{B.send(x.query)}catch(z){x.error=z;s.cancel()}a._ioWatch(s,o,q,u);return s};b.xhrGet=function(r){return a.xhr("GET",r)};b.rawXhrPost=b.xhrPost=function(r){return a.xhr("POST",r,true)};b.rawXhrPut=b.xhrPut=function(r){return a.xhr("PUT",r,true)};b.xhrDelete=function(r){return a.xhr("DELETE",r)}})();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 e=b._mixin;b._Line=function(h,g){this.start=h;this.end=g};b._Line.prototype.getValue=function(h){return(this.end-this.start)*h+this.start};b.Animation=function(h){e(this,h);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 h=this._percent,g=this.easing;return g?g(h):h},_fire:function(h,g){g=g||[];if(this[h])if(b.config.debugAtAllCosts)this[h].apply(this,g);else try{this[h].apply(this,g)}catch(j){console.error("exception in animation handler for:",h);console.error(j)}return this},play:function(h,g){var j=this;j._delayTimer&&j._clearTimer();if(g){j._stopTimer();j._active=j._paused=false;j._percent=0}else if(j._active&&!j._paused)return j;j._fire("beforeBegin",[j.node]);h=h||j.delay;var k=b.hitch(j,
"_play",g);if(h>0){j._delayTimer=setTimeout(k,h);return j}k();return j},_play:function(){var h=this;h._delayTimer&&h._clearTimer();h._startTime=(new Date).valueOf();if(h._paused)h._startTime-=h.duration*h._percent;h._active=true;h._paused=false;var g=h.curve.getValue(h._getStep());if(!h._percent){if(!h._startRepeatCount)h._startRepeatCount=h.repeat;h._fire("onBegin",[g])}h._fire("onPlay",[g]);h._cycle();return h},pause:function(){var h=this;h._delayTimer&&h._clearTimer();h._stopTimer();if(!h._active)return h;
h._paused=true;h._fire("onPause",[h.curve.getValue(h._getStep())]);return h},gotoPercent:function(h,g){var j=this;j._stopTimer();j._active=j._paused=true;j._percent=h;g&&j.play();return j},stop:function(h){var g=this;g._delayTimer&&g._clearTimer();if(!g._timer)return g;g._stopTimer();if(h)g._percent=1;g._fire("onStop",[g.curve.getValue(g._getStep())]);g._active=g._paused=false;return g},status:function(){if(this._active)return this._paused?"paused":"playing";return"stopped"},_cycle:function(){var h=
this;if(h._active){var g=((new Date).valueOf()-h._startTime)/h.duration;if(g>=1)g=1;h._percent=g;if(h.easing)g=h.easing(g);h._fire("onAnimate",[h.curve.getValue(g)]);if(h._percent<1)h._startTimer();else{h._active=false;if(h.repeat>0){h.repeat--;h.play(null,true)}else if(h.repeat==-1)h.play(null,true);else if(h._startRepeatCount){h.repeat=h._startRepeatCount;h._startRepeatCount=0}h._percent=0;h._fire("onEnd",[h.node]);!h.repeat&&h._stopTimer()}}return h},_clearTimer:function(){clearTimeout(this._delayTimer);
delete this._delayTimer}});var a=0,c=null,d={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer){this._timer=b.connect(d,"run",this,"_cycle");a++}c||(c=setInterval(b.hitch(d,"run"),this.rate))},_stopTimer:function(){if(this._timer){b.disconnect(this._timer);this._timer=null;a--}if(a<=0){clearInterval(c);c=null;a=0}}});var f=b.isIE?function(h){var g=h.style;if(!g.width.length&&b.style(h,"width")=="auto")g.width="auto"}:function(){};b._fade=function(h){h.node=b.byId(h.node);
var g=e({properties:{}},h);h=g.properties.opacity={};h.start=!("start"in g)?function(){return+b.style(g.node,"opacity")||0}:g.start;h.end=g.end;h=b.animateProperty(g);b.connect(h,"beforeBegin",b.partial(f,g.node));return h};b.fadeIn=function(h){return b._fade(e({end:1},h))};b.fadeOut=function(h){return b._fade(e({end:0},h))};b._defaultEasing=function(h){return 0.5+Math.sin((h+1.5)*Math.PI)/2};var i=function(h){this._properties=h;for(var g in h){var j=h[g];if(j.start instanceof b.Color)j.tempColor=
new b.Color}};i.prototype.getValue=function(h){var g={};for(var j in this._properties){var k=this._properties[j],l=k.start;if(l instanceof b.Color)g[j]=b.blendColors(l,k.end,h,k.tempColor).toCss();else b.isArray(l)||(g[j]=(k.end-l)*h+l+(j!="opacity"?k.units||"px":0))}return g};b.animateProperty=function(h){var g=h.node=b.byId(h.node);if(!h.easing)h.easing=b._defaultEasing;h=new b.Animation(h);b.connect(h,"beforeBegin",h,function(){var j={};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(g);l=j[k]=e({},b.isObject(l)?l:{end:l});if(b.isFunction(l.start))l.start=l.start(g);if(b.isFunction(l.end))l.end=l.end(g);var p=k.toLowerCase().indexOf("color")>=0,m=function(o,q){var u={height:o.offsetHeight,width:o.offsetWidth}[q];if(u!==undefined)return u;u=b.style(o,q);return q=="opacity"?+u:p?u:parseFloat(u)};if("end"in l){if(!("start"in l))l.start=m(g,k)}else l.end=m(g,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(j)});b.connect(h,"onAnimate",b.hitch(b,"style",h.node));return h};b.anim=function(h,g,j,k,l,p){return b.animateProperty({node:h,duration:j||b.Animation.prototype.duration,properties:g,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 e(i,h,g){this.serviceId=i;this.name=h;this.properties=g}function a(i,h,g){this.serviceId=i;this.serviceReference=h;this.internalRegistry=g}function c(i,h,g){this.serviceId=i;this.implementation=h;this.internalRegistry=g;var j;for(j in h)if(typeof h[j]==="function")this[j]=function(k){return function(){if(g.isRegistered(i)){var l=new b.Deferred;try{var p=h[k].apply(h,Array.prototype.slice.call(arguments));b.when(p,b.hitch(l,l.resolve),b.hitch(l,
l.reject))}catch(m){l.reject(m)}return l.promise}throw new Error("Service was unregistered");}}(j)}function d(){this._namedlisteners={}}function f(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new d;var i=this;this.internalRegistry={isRegistered:function(h){return i._entries[h]?true:false},unregisterService:function(h){var g=i._entries[h];if(g){for(var j=g.reference,k=i._namedReferences[j.getName()],l=0;l<k.length;l++)if(k[l]===j){if(k.length===1)delete i._namedReferences[j.getName()];
else k.splice(l,1);break}i._entries[h]=null;i._serviceEventTarget.dispatchEvent("serviceRemoved",j,g.service)}},dispatchEvent:function(h,g){var j=i._entries[h];j&&j.eventTarget.dispatchEvent.apply(j.eventTarget,[g].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(h,g,j){(h=i._entries[h])&&h.eventTarget.addEventListener(g,j)},removeEventListener:function(h,g,j){(h=i._entries[h])&&h.eventTarget.removeEventListener(g,j)}}}e.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var i=[],h;for(h in this.properties)this.properties.hasOwnProperty(h)&&i.push(h);return i},getProperty:function(i){return this.properties[i]}};e.prototype.constructor=e;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;c.prototype={addEventListener:function(i,h){this.internalRegistry.addEventListener(this.serviceId,i,h)},removeEventListener:function(i,h){this.internalRegistry.removeEventListener(this.serviceId,i,h)}};c.prototype.constructor=c;d.prototype={dispatchEvent:function(i){var h=this._namedlisteners[i];if(h)for(var g=0;g<h.length;g++)try{var j=Array.prototype.slice.call(arguments,1);h[g].apply(null,j)}catch(k){console.log(k)}},addEventListener:function(i,h){this._namedlisteners[i]=
this._namedlisteners[i]||[];this._namedlisteners[i].push(h)},removeEventListener:function(i,h){var g=this._namedlisteners[i];if(g)for(var j=0;j<g.length;j++)if(g[j]===h){if(g.length===1)delete this._namedlisteners[i];else g.splice(j,1);break}}};d.prototype.constructor=d;f.prototype={getService:function(i,h){var g,j=new b.Deferred;if(typeof i==="string"){if(this._namedReferences[i])for(var k=0;k<this._namedReferences[i].length;k++)if(g=this._entries[this._namedReferences[i][k].getServiceId()].service)break}else g=
this._entries[i.getServiceId()].service;if(g)j.resolve(g);else if(h===0)j.reject(new Error("timeout: getService"));else{var l=this,p=function(m,o){if(i===m||i===m.getName()){j.resolve(o);l._serviceEventTarget.removeEventListener("serviceAdded",p)}};this._serviceEventTarget.addEventListener("serviceAdded",p)}return j.promise},getServiceReferences:function(i){if(i)return this._namedReferences[i]?this._namedReferences[i]:[];i=[];for(var h=0;h<this._entries.length;h++)this._entries[h]&&i.push(this._entries[h].reference);
return i},registerService:function(i,h,g){var j=this._entries.length;g=new e(j,i,g);h=new c(j,h,this.internalRegistry);this._namedReferences[i]=this._namedReferences[i]||[];this._namedReferences[i].push(g);this._entries.push({reference:g,service:h,eventTarget:new d});this._serviceEventTarget.dispatchEvent("serviceAdded",g,h);return new a(j,g,this.internalRegistry)},addEventListener:function(i,h){this._serviceEventTarget.addEventListener(i,h)},removeEventListener:function(i,h){this._serviceEventTarget.removeEventListener(i,
h)}};f.prototype.constructor=f;return{ServiceReference:e,ServiceRegistration:a,Service:c,EventTarget:d,ServiceRegistry:f}});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});
define("dojo/hash",["dojo"],function(b){(function(){function e(l,p){p=l.indexOf(p);return p>=0?l.substring(p+1):""}function a(){return e(location.href,"#")}function c(){b.publish("/dojo/hashchange",[a()])}function d(){if(a()!==h){h=a();c()}}function f(l){if(g)if(g.isTransitioning())setTimeout(b.hitch(null,f,l),k);else{var p=g.iframe.location.href,m=p.indexOf("?");g.iframe.location.replace(p.substring(0,m)+"?"+l)}else{location.replace("#"+l);!j&&d()}}function i(){function l(){h=a();o=n?h:e(v.href,
"?");q=false;u=null}var p=document.createElement("iframe"),m=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=m+"?"+a();p.style.display="none";document.body.appendChild(p);this.iframe=b.global["dojo-hash-iframe"];
var o,q,u,r,n,v=this.iframe.location;this.isTransitioning=function(){return q};this.pollLocation=function(){if(!n)try{var s=e(v.href,"?");if(document.title!=r)r=this.iframe.document.title=document.title}catch(x){n=true;console.error("dojo.hash: Error adding history entry. Server unreachable.")}var B=a();if(q&&h===B)if(n||s===u){l();c()}else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(h===B&&(n||o===s)))if(h!==B){h=B;q=true;u=B;p.src=m+"?"+u;n=false;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!n){location.href="#"+v.search.substring(1);l();c()}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 h,g,j,k=b.config.hashPollFrequency||100;b.addOnLoad(function(){if("onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat"))j=b.connect(b.global,"onhashchange",c);else if(document.addEventListener){h=
a();setInterval(d,k)}else if(document.attachEvent)g=new i})})();return b.hash});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],e=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c=[];define("text",["require","exports","module"],function(){var d,f,i;if(typeof window!=="undefined"&&window.navigator&&window.document)f=function(h,g){var j=d.createXhr();j.open("GET",h,true);j.onreadystatechange=function(){j.readyState===4&&g(j.responseText)};j.send(null)};else if(typeof process!=="undefined"&&process.versions&&
process.versions.node){i=require.nodeRequire("fs");f=function(h,g){g(i.readFileSync(h,"utf8"))}}else if(typeof Packages!=="undefined")f=function(h,g){var j=new java.io.File(h);h=java.lang.System.getProperty("line.separator");j=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(j),"utf-8"));var k,l,p="";try{k=new java.lang.StringBuffer;if((l=j.readLine())&&l.length()&&l.charAt(0)===65279)l=l.substring(1);for(k.append(l);(l=j.readLine())!==null;){k.append(h);k.append(l)}p=
String(k.toString())}finally{j.close()}g(p)};return d={version:"0.24.0",strip:function(h){if(h){h=h.replace(e,"");var g=h.match(a);if(g)h=g[1]}else h="";return h},jsEscape:function(h){return h.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 h,g,j;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(g=0;g<3;g++){j=b[g];try{h=new ActiveXObject(j)}catch(k){}if(h){b=
[j];break}}if(!h)throw new Error("require.getXhr(): XMLHttpRequest not available");return h},get:f,load:function(h,g,j,k){var l=false,p=h.indexOf("."),m=h.substring(0,p),o=h.substring(p+1,h.length);p=o.indexOf("!");if(p!==-1){l=o.substring(p+1,o.length);l=l==="strip";o=o.substring(0,p)}g=g.nameToUrl(m,"."+o);d.get(g,function(q){q=l?d.strip(q):q;if(k.isBuild&&k.inlineText)c[h]=q;j(q)})},write:function(h,g,j){if(g in c){var k=d.jsEscape(c[g]);j("define('"+h+"!"+g+"', 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,e){e.getObject("i18n",true,e);e.i18n.getLocalization=e.i18n.getLocalization||function(a,c,d){d=e.i18n.normalizeLocale(d);var f=d.split("-"),i=[a,"nls",c].join(".");if(typeof e.global.require!=="undefined"){var h=b("i18n!"+[a.replace(/\./g,"/"),"nls",c].join("/"));(e._loadedModules[i]=e._loadedModules[i]||{})[f.join("_")]=h.root||h}if(i=e._loadedModules[i]){var g;for(h=f.length;h>0;h--){var j=f.slice(0,h).join("_");if(i[j]){g=i[j];break}}if(!g)g=i.ROOT;
if(g){a=function(){};a.prototype=g;return new a}}throw new Error("Bundle not found: "+c+" in "+a+" , locale="+d);};e.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():e.locale;if(a=="root")a="ROOT";return a};e.i18n._requireLocalization=function(a,c,d,f){d=e.i18n.normalizeLocale(d);var i=[a,"nls",c].join("."),h="";if(f){for(var g=f.split(","),j=0;j<g.length;j++)if(d.indexOf(g[j])==0)if(g[j].length>h.length)h=g[j];h||(h="ROOT")}g=f?h:d;var k=e._loadedModules[i];j=null;if(k){if(e.config.localizationComplete&&
k._built)return;j=g.replace(/-/g,"_");j=e._loadedModules[i+"."+j]}if(!j){k=e.provide(i);var l=e._getModuleSymbols(a).concat("nls").join("/"),p;e.i18n._searchLocalePath(g,f,function(m){var o=m.replace(/-/g,"_"),q=i+"."+o,u=false;if(e._loadedModules[q])u=true;else{e.provide(q);q=[l];m!="ROOT"&&q.push(m);q.push(c);m=q.join("/")+".js";u=e._loadPath(m,null,function(r){r=r.root||r;var n=function(){};n.prototype=p;k[o]=new n;for(var v in r)k[o][v]=r[v]})}if(u&&k[o])p=k[o];else k[o]=p;if(f)return true})}if(f&&
d!=h)k[d.replace(/-/g,"_")]=k[h.replace(/-/g,"_")]};(function(){var a=e.config.extraLocale;if(a){if(!a instanceof Array)a=[a];var c=e.i18n._requireLocalization;e.i18n._requireLocalization=function(d,f,i,h){c(d,f,i,h);if(!i)for(i=0;i<a.length;i++)c(d,f,a[i],h)}}})();e.i18n._searchLocalePath=function(a,c,d){a=e.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);c&&a.reverse();for(c=a.length-1;c>=0;c--)if(d(a[c]||"ROOT"))break};e.i18n._preloadLocalizations=
function(a,c){function d(h){h=e.i18n.normalizeLocale(h);e.i18n._searchLocalePath(h,true,function(g){for(var j=0;j<c.length;j++)if(c[j]==g){e.require(a+"_"+g);return true}return false})}d();for(var f=e.config.extraLocale||[],i=0;i<f.length;i++)d(f[i])};return e.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 e=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:e.clientWidth,h:e.clientHeight,l:a.x,t:a.y}};b.window.get=function(e){if(b.isIE&&window!==document.parentWindow){e.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=e._parentWindow;e._parentWindow=null;return a}return e.parentWindow||e.defaultView};b.window.scrollIntoView=function(e,
a){try{e=b.byId(e);var c=e.ownerDocument||b.doc,d=c.body||b.body(),f=c.documentElement||d.parentNode,i=b.isIE,h=b.isWebKit;if((!(b.isMoz||i||h||b.isOpera)||e==d||e==f)&&typeof e.scrollIntoView!="undefined")e.scrollIntoView(false);else{var g=c.compatMode=="BackCompat",j=i>=9&&e.ownerDocument.parentWindow.frameElement?f.clientHeight>0&&f.clientWidth>0&&(d.clientHeight==0||d.clientWidth==0||d.clientHeight>f.clientHeight||d.clientWidth>f.clientWidth)?f:d:g?d:f;c=h?d:j;var k=j.clientWidth,l=j.clientHeight,
p=!b._isBodyLtr(),m=a||b.position(e),o=e.parentNode;a=function(F){return i<=6||i&&g?false:b.style(F,"position").toLowerCase()=="fixed"};if(!a(e))for(;o;){if(o==d)o=c;var q=b.position(o),u=a(o);if(o==c){q.w=k;q.h=l;if(c==f&&i&&p)q.x+=c.offsetWidth-q.w;if(q.x<0||!i)q.x=0;if(q.y<0||!i)q.y=0}else{var r=b._getPadBorderExtents(o);q.w-=r.w;q.h-=r.h;q.x+=r.l;q.y+=r.t;var n=o.clientWidth,v=q.w-n;if(n>0&&v>0){q.w=n;q.x+=p&&(i||o.clientLeft>r.l)?v:0}n=o.clientHeight;v=q.h-n;if(n>0&&v>0)q.h=n}if(u){if(q.y<0){q.h+=
q.y;q.y=0}if(q.x<0){q.w+=q.x;q.x=0}if(q.y+q.h>l)q.h=l-q.y;if(q.x+q.w>k)q.w=k-q.x}var s=m.x-q.x,x=m.y-Math.max(q.y,0),B=s+m.w-q.w,y=x+m.h-q.h;if(B*s>0){var z=Math[s<0?"max":"min"](s,B);if(p&&(i==8&&!g||i>=9))z=-z;m.x+=o.scrollLeft;o.scrollLeft+=z;m.x-=o.scrollLeft}if(y*x>0){m.y+=o.scrollTop;o.scrollTop+=Math[x<0?"max":"min"](x,y);m.y-=o.scrollTop}o=o!=c&&!u&&o.parentNode}}}catch(E){console.error("scrollIntoView: "+E);e.scrollIntoView(false)}};return b.window});
define("dijit/_base/manager",["dojo","dijit"],function(b,e){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,c){c=c||b.global;var d=0,f;for(f in this._hash)a.call(c,this._hash[f],d++,this._hash);return this},
filter:function(a,c){c=c||b.global;var d=new e.WidgetSet,f=0,i;for(i in this._hash){var h=this._hash[i];a.call(c,h,f++,this._hash)&&d.add(h)}return d},byId:function(a){return this._hash[a]},byClass:function(a){var c=new e.WidgetSet,d,f;for(d in this._hash){f=this._hash[d];f.declaredClass==a&&c.add(f)}return c},toArray:function(){var a=[];for(var c in this._hash)a.push(this._hash[c]);return a},map:function(a,c){return b.map(this.toArray(),a,c)},every:function(a,c){c=c||b.global;var d=0,f;for(f in this._hash)if(!a.call(c,
this._hash[f],d++,this._hash))return false;return true},some:function(a,c){c=c||b.global;var d=0,f;for(f in this._hash)if(a.call(c,this._hash[f],d++,this._hash))return true;return false}});(function(){e.registry=new e.WidgetSet;var a=e.registry._hash,c=b.attr,d=b.hasAttr,f=b.style;e.byId=function(j){return typeof j=="string"?a[j]:j};var i={};e.getUniqueId=function(j){var k;do k=j+"_"+(j in i?++i[j]:(i[j]=0));while(a[k]);return e._scopeName=="dijit"?k:e._scopeName+"_"+k};e.findWidgets=function(j){function k(p){for(p=
p.firstChild;p;p=p.nextSibling)if(p.nodeType==1){var m=p.getAttribute("widgetId");if(m)(m=a[m])&&l.push(m);else k(p)}}var l=[];k(j);return l};e._destroyAll=function(){e._curFocus=null;e._prevFocus=null;e._activeStack=[];b.forEach(e.findWidgets(b.body()),function(j){if(!j._destroyed)if(j.destroyRecursive)j.destroyRecursive();else j.destroy&&j.destroy()})};b.isIE&&b.addOnWindowUnload(function(){e._destroyAll()});e.byNode=function(j){return a[j.getAttribute("widgetId")]};e.getEnclosingWidget=function(j){for(;j;){var k=
j.getAttribute&&j.getAttribute("widgetId");if(k)return a[k];j=j.parentNode}return null};var h=e._isElementShown=function(j){var k=f(j);return k.visibility!="hidden"&&k.visibility!="collapsed"&&k.display!="none"&&c(j,"type")!="hidden"};e.hasDefaultTabStop=function(j){switch(j.nodeName.toLowerCase()){case "a":return d(j,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var k;try{var l=j.contentDocument;if("designMode"in l&&l.designMode==
"on")return true;k=l.body}catch(p){try{k=j.contentWindow.document.body}catch(m){return false}}return k.contentEditable=="true"||k.firstChild&&k.firstChild.contentEditable=="true";default:return j.contentEditable=="true"}};var g=e.isTabNavigable=function(j){return c(j,"disabled")?false:d(j,"tabIndex")?c(j,"tabIndex")>=0:e.hasDefaultTabStop(j)};e._getTabNavigable=function(j){function k(s){return s&&s.tagName.toLowerCase()=="input"&&s.type&&s.type.toLowerCase()=="radio"&&s.name&&s.name.toLowerCase()}
function l(s){return n[k(s)]||s}var p,m,o,q,u,r,n={},v=function(s){b.query("> *",s).forEach(function(x){if(!(b.isIE&&x.scopeName!=="HTML"||!h(x))){if(g(x)){var B=c(x,"tabIndex");if(!d(x,"tabIndex")||B==0){p||(p=x);m=x}else if(B>0){if(!o||B<q){q=B;o=x}if(!u||B>=r){r=B;u=x}}B=k(x);if(b.attr(x,"checked")&&B)n[B]=x}x.nodeName.toUpperCase()!="SELECT"&&v(x)}})};h(j)&&v(j);return{first:l(p),last:l(m),lowest:l(o),highest:l(u)}};e.getFirstInTabbingOrder=function(j){j=e._getTabNavigable(b.byId(j));return j.lowest?
j.lowest:j.first};e.getLastInTabbingOrder=function(j){j=e._getTabNavigable(b.byId(j));return j.last?j.last:j.highest};e.defaultDuration=b.config.defaultDuration||200})();return e});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(e){e&&b.mixin(this,e)},get:function(e){return this[e]},set:function(e,a){if(typeof e==="object"){for(var c in e)this.set(c,e[c]);return this}c=this[e];this[e]=a;this._watchCallbacks&&this._watchCallbacks(e,c,a);return this},watch:function(e,a){var c=this._watchCallbacks;if(!c){var d=this;c=this._watchCallbacks=function(i,h,g,j){var k=function(l){if(l){l=l.slice();for(var p=0,m=l.length;p<m;p++)try{l[p].call(d,
i,h,g)}catch(o){console.error(o)}}};k(c["_"+i]);j||k(c["*"])}}if(!a&&typeof e==="function"){a=e;e="*"}else e="_"+e;var f=c[e];if(typeof f!=="object")f=c[e]=[];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,e){(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,c){this.create(a,c)},create:function(a,c){this.srcNodeRef=
b.byId(c);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=e.getUniqueId(this.declaredClass.replace(/\./g,"_"));e.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(d,f){if(f.params&&d in f.params||f[d])f.set(d,f[d])};for(var c in this.attributeMap)a(c,this);b.forEach(this._getSetterAttributes(),function(d){d in this.attributeMap||a(d,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var c=a._setterAttrs=[],d,f=a.prototype;for(var i in f)if(b.isFunction(f[i])&&(d=i.match(/^_set([a-zA-Z]*)Attr$/))&&
d[1])c.push(d[1].charAt(0).toLowerCase()+d[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(c){return c+"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 c=b.forEach,d=b.unsubscribe;c(this._connects,function(f){c(f,b.disconnect)});c(this._subscribes,function(f){d(f)});c(this._supportingWidgets||[],function(f){if(f.destroyRecursive)f.destroyRecursive();else f.destroy&&f.destroy()});this.destroyRendering(a);e.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(c){c.destroyRecursive&&c.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 c=this[this.attributeMap.style||"domNode"];if(b.isObject(a))b.style(c,
a);else if(c.style.cssText)c.style.cssText+="; "+a;else c.style.cssText=a;this._set("style",a)},_attrToDom:function(a,c){var d=this.attributeMap[a];b.forEach(b.isArray(d)?d:[d],function(f){var i=this[f.node||f||"domNode"];switch(f.type||"attribute"){case "attribute":if(b.isFunction(c))c=b.hitch(this,c);f=f.attribute?f.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(i,f,c);break;case "innerText":i.innerHTML="";i.appendChild(b.doc.createTextNode(c));break;case "innerHTML":i.innerHTML=
c;break;case "class":b.replaceClass(i,c,this[a]);break}},this)},get:function(a){var c=this._getAttrNames(a);return this[c.g]?this[c.g]():this[a]},set:function(a,c){if(typeof a==="object"){for(var d in a)this.set(d,a[d]);return this}d=this._getAttrNames(a);if(this[d.s])var f=this[d.s].apply(this,Array.prototype.slice.call(arguments,1));else{a in this.attributeMap&&this._attrToDom(a,c);this._set(a,c)}return f||this},_attrPairNames:{},_getAttrNames:function(a){var c=this._attrPairNames;if(c[a])return c[a];
var d=a.charAt(0).toUpperCase()+a.substr(1);return c[a]={n:a+"Node",s:"_set"+d+"Attr",g:"_get"+d+"Attr"}},_set:function(a,c){var d=this[a];this[a]=c;this._watchCallbacks&&this._created&&c!==d&&this._watchCallbacks(a,d,c)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(e.byNode):[]},getChildren:function(){return this.containerNode?e.findWidgets(this.containerNode):
[]},connect:function(a,c,d){a=[b._connect(a,c,this,d)];this._connects.push(a);return a},disconnect:function(a){for(var c=0;c<this._connects.length;c++)if(this._connects[c]==a){b.forEach(a,b.disconnect);this._connects.splice(c,1);return}},subscribe:function(a,c){a=b.subscribe(a,this,c);this._subscribes.push(a);return a},unsubscribe:function(a){for(var c=0;c<this._subscribes.length;c++)if(this._subscribes[c]==a){b.unsubscribe(a);this._subscribes.splice(c,1);return}},isLeftToRight:function(){return this.dir?
this.dir=="ltr":b._isBodyLtr()},placeAt:function(a,c){a.declaredClass&&a.addChild?a.addChild(this,c):b.place(this.domNode,a,c);return this}})})();return e._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,e){b.mixin(e,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return e.getBookmark().isCollapsed},getBookmark:function(){var a,c,d=b.doc.selection,f=e._curFocus;if(b.global.getSelection){if(d=b.global.getSelection())if(d.isCollapsed){if(a=f?f.tagName:""){a=a.toLowerCase();if(a=="textarea"||a=="input"&&(!f.type||f.type.toLowerCase()=="text")){d={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:true};
return{isCollapsed:d.end<=d.start,mark:d}}}a={isCollapsed:true};if(d.rangeCount)a.mark=d.getRangeAt(0).cloneRange()}else{c=d.getRangeAt(0);a={isCollapsed:false,mark:c.cloneRange()}}}else if(d){a=f?f.tagName:"";a=a.toLowerCase();if(f&&a&&(a=="button"||a=="textarea"||a=="input"))if(d.type&&d.type.toLowerCase()=="none")return{isCollapsed:true,mark:null};else{c=d.createRange();return{isCollapsed:c.text&&c.text.length?false:true,mark:{range:c,pRange:true}}}a={};try{c=d.createRange();a.isCollapsed=!(d.type==
"Text"?c.htmlText.length:c.length)}catch(i){a.isCollapsed=true;return a}if(d.type.toUpperCase()=="CONTROL")if(c.length){a.mark=[];d=0;for(f=c.length;d<f;)a.mark.push(c.item(d++))}else{a.isCollapsed=true;a.mark=null}else a.mark=c.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var c=b.doc;if(a=a.mark)if(b.global.getSelection){var d=b.global.getSelection();if(d&&d.removeAllRanges)if(a.pRange){d=a.node;d.selectionStart=
a.start;d.selectionEnd=a.end}else{d.removeAllRanges();d.addRange(a)}else console.warn("No idea how to restore selection for this browser!")}else if(c.selection&&a){var f;if(a.pRange)f=a.range;else if(b.isArray(a)){f=c.body.createControlRange();b.forEach(a,function(i){f.addElement(i)})}else{f=c.body.createTextRange();f.moveToBookmark(a)}f.select()}},getFocus:function(a,c){a=!e._curFocus||a&&b.isDescendant(e._curFocus,a.domNode)?e._prevFocus:e._curFocus;return{node:a,bookmark:a==e._curFocus&&b.withGlobal(c||
b.global,e.getBookmark),openedForWindow:c}},focus:function(a){if(a){var c="node"in a?a.node:a,d=a.bookmark;a=a.openedForWindow;var f=d?d.isCollapsed:false;if(c){var i=c.tagName.toLowerCase()=="iframe"?c.contentWindow:c;if(i&&i.focus)try{i.focus()}catch(h){}e._onFocusNode(c)}if(d&&b.withGlobal(a||b.global,e.isCollapsed)&&!f){a&&a.focus();try{b.withGlobal(a||b.global,e.moveToBookmark,null,[d])}catch(g){}}}},_activeStack:[],registerIframe:function(a){return e.registerWin(a.contentWindow,a)},unregisterIframe:function(a){e.unregisterWin(a)},
registerWin:function(a,c){var d=function(k){e._justMouseDowned=true;setTimeout(function(){e._justMouseDowned=false},0);b.isIE&&k&&k.srcElement&&k.srcElement.parentNode==null||e._onTouchNode(c||k.target||k.srcElement,"mouse")},f=b.isIE?a.document.documentElement:a.document;if(f)if(b.isIE){a.document.body.attachEvent("onmousedown",d);var i=function(k){k.srcElement.tagName.toLowerCase()!="#document"&&e.isTabNavigable(k.srcElement)?e._onFocusNode(c||k.srcElement):e._onTouchNode(c||k.srcElement)};f.attachEvent("onactivate",
i);var h=function(k){e._onBlurNode(c||k.srcElement)};f.attachEvent("ondeactivate",h);return function(){a.document.detachEvent("onmousedown",d);f.detachEvent("onactivate",i);f.detachEvent("ondeactivate",h);f=null}}else{f.body.addEventListener("mousedown",d,true);var g=function(k){e._onFocusNode(c||k.target)};f.addEventListener("focus",g,true);var j=function(k){e._onBlurNode(c||k.target)};f.addEventListener("blur",j,true);return function(){f.body.removeEventListener("mousedown",d,true);f.removeEventListener("focus",
g,true);f.removeEventListener("blur",j,true);f=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){e._prevFocus=e._curFocus;e._curFocus=null;if(!e._justMouseDowned){e._clearActiveWidgetsTimer&&clearTimeout(e._clearActiveWidgetsTimer);e._clearActiveWidgetsTimer=setTimeout(function(){delete e._clearActiveWidgetsTimer;e._setStack([]);e._prevFocus=null},100)}},_onTouchNode:function(a,c){if(e._clearActiveWidgetsTimer){clearTimeout(e._clearActiveWidgetsTimer);delete e._clearActiveWidgetsTimer}var d=
[];try{for(;a;){var f=b.attr(a,"dijitPopupParent");if(f)a=e.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"),h=i&&e.byId(i);h&&!(c=="mouse"&&h.get("disabled"))&&d.unshift(i);a=a.parentNode}}}catch(g){}e._setStack(d,c)},_onFocusNode:function(a){if(a)if(a.nodeType!=9){e._onTouchNode(a);if(a!=e._curFocus){if(e._curFocus)e._prevFocus=e._curFocus;e._curFocus=a;b.publish("focusNode",
[a])}}},_setStack:function(a,c){var d=e._activeStack;e._activeStack=a;for(var f=0;f<Math.min(d.length,a.length);f++)if(d[f]!=a[f])break;for(var i,h=d.length-1;h>=f;h--)if(i=e.byId(d[h])){i._focused=false;i.set("focused",false);i._hasBeenBlurred=true;i._onBlur&&i._onBlur(c);b.publish("widgetBlur",[i,c])}for(h=f;h<a.length;h++)if(i=e.byId(a[h])){i._focused=true;i.set("focused",true);i._onFocus&&i._onFocus(c);b.publish("widgetFocus",[i,c])}}});b.addOnLoad(function(){var a=e.registerWin(window);b.isIE&&
b.addOnWindowUnload(function(){e.unregisterWin(a);a=null})});return e});
define("dojo/AdapterRegistry",["dojo"],function(b){b.AdapterRegistry=function(e){this.pairs=[];this.returnWrappers=e||false};b.extend(b.AdapterRegistry,{register:function(e,a,c,d,f){this.pairs[f?"unshift":"push"]([e,a,c,d])},match:function(){for(var e=0;e<this.pairs.length;e++){var a=this.pairs[e];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(e){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
e){this.pairs.splice(a,1);return true}return false}});return b.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(b,e){e.getViewport=function(){return b.window.getBox()};e.placeOnScreen=function(a,c,d,f){d=b.map(d,function(i){var h={corner:i,pos:{x:c.x,y:c.y}};if(f){h.pos.x+=i.charAt(1)=="L"?f.x:-f.x;h.pos.y+=i.charAt(0)=="T"?f.y:-f.y}return h});return e._place(a,d)};e._place=function(a,c,d,f){var i=b.window.getBox();if(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")b.body().appendChild(a);var h=null;
b.some(c,function(j){var k=j.corner,l=j.pos,p=0,m={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(d){p=d(a,j.aroundCorner,k,m,f);p=typeof p=="undefined"?0:p}var o=a.style,q=o.display,u=o.visibility;o.visibility="hidden";o.display="";var r=b.marginBox(a);o.display=q;o.visibility=u;o=Math.max(i.l,k.charAt(1)=="L"?l.x:l.x-r.w);q=Math.max(i.t,k.charAt(0)=="T"?l.y:l.y-r.h);u=Math.min(i.l+i.w,k.charAt(1)=="L"?o+r.w:l.x);l=Math.min(i.t+i.h,k.charAt(0)=="T"?q+r.h:l.y);u=
u-o;l=l-q;p+=r.w-u+(r.h-l);if(h==null||p<h.overflow)h={corner:k,aroundCorner:j.aroundCorner,x:o,y:q,w:u,h:l,overflow:p,spaceAvailable:m};return!p});h.overflow&&d&&d(a,h.aroundCorner,h.corner,h.spaceAvailable,f);c=b._isBodyLtr();var g=a.style;g.top=h.y+"px";g[c?"left":"right"]=(c?h.x:i.w-h.x-h.w)+"px";return h};e.placeOnScreenAroundNode=function(a,c,d,f){c=b.byId(c);c=b.position(c,true);return e._placeOnScreenAroundRect(a,c.x,c.y,c.w,c.h,d,f)};e.placeOnScreenAroundRectangle=function(a,c,d,f){return e._placeOnScreenAroundRect(a,
c.x,c.y,c.width,c.height,d,f)};e._placeOnScreenAroundRect=function(a,c,d,f,i,h,g){var j=[];for(var k in h)j.push({aroundCorner:k,corner:h[k],pos:{x:c+(k.charAt(1)=="L"?0:f),y:d+(k.charAt(0)=="T"?0:i)}});return e._place(a,j,g,{w:f,h:i})};e.placementRegistry=new b.AdapterRegistry;e.placementRegistry.register("node",function(a,c){return typeof c=="object"&&typeof c.offsetWidth!="undefined"&&typeof c.offsetHeight!="undefined"},e.placeOnScreenAroundNode);e.placementRegistry.register("rect",function(a,
c){return typeof c=="object"&&"x"in c&&"y"in c&&"width"in c&&"height"in c},e.placeOnScreenAroundRectangle);e.placeOnScreenAroundElement=function(){return e.placementRegistry.match.apply(e.placementRegistry,arguments)};e.getPopupAroundAlignment=function(a,c){var d={};b.forEach(a,function(f){switch(f){case "after":d[c?"BR":"BL"]=c?"BL":"BR";break;case "before":d[c?"BL":"BR"]=c?"BR":"BL";break;case "below-alt":c=!c;case "below":d[c?"BL":"BR"]=c?"TL":"TR";d[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=
!c;case "above":default:d[c?"TL":"TR"]=c?"BL":"BR";d[c?"TR":"TL"]=c?"BR":"BL";break}});return d};return e});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,e){e.getDocumentWindow=function(a){return b.window.get(a)};return e});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,e){e.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var c=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),d=a.domNode||a;if(!c){c=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body());c.appendChild(d);d=d.style;d.display="";d.visibility="";d.position="";d.top="0px";if(a.declaredClass){a._popupWrapper=
c;b.connect(a,"destroy",function(){b.destroy(c);delete a._popupWrapper})}}return c},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,c=a.length-1;c>0&&a[c].parent===a[c-1].widget;c--);return a[c]},open:function(a){for(var c=this._stack,d=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,h=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;c.length&&(!a.parent||!b.isDescendant(a.parent.domNode,c[c.length-1].widget.domNode));)e.popup.close(c[c.length-1].widget);var g=this._createWrapper(d);b.attr(g,{id:h,style:{zIndex:this._beginZIndex+c.length},"class":"dijitPopup "+(d.baseClass||d["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if(b.isIE||b.isMoz)if(!d.bgIframe)d.bgIframe=
new e.BackgroundIframe(g);f=i?e.placeOnScreenAroundElement(g,i,f,d.orient?b.hitch(d,"orient"):null):e.placeOnScreen(g,a,f=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);g.style.display="";g.style.visibility="visible";d.domNode.style.visibility="visible";i=[];i.push(b.connect(g,"onkeypress",this,function(j){if(j.charOrCode==b.keys.ESCAPE&&a.onCancel){b.stopEvent(j);a.onCancel()}else if(j.charOrCode===b.keys.TAB){b.stopEvent(j);(j=this.getTopPopup())&&j.onCancel&&j.onCancel()}}));d.onCancel&&
i.push(b.connect(d,"onCancel",a.onCancel));i.push(b.connect(d,d.onExecute?"onExecute":"onChange",this,function(){var j=this.getTopPopup();j&&j.onExecute&&j.onExecute()}));c.push({widget:d,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:i});d.onOpen&&d.onOpen(f);return f},close:function(a){for(var c=this._stack;a&&b.some(c,function(h){return h.widget==a})||!a&&c.length;){var d=c.pop(),f=d.widget,i=d.onClose;f.onClose&&f.onClose();b.forEach(d.handlers,b.disconnect);
f&&f.domNode&&this.hide(f);i&&i()}}};e._frames=new (function(){var a=[];this.pop=function(){var c;if(a.length){c=a.pop();c.style.display=""}else{if(b.isIE<9){c="<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\");'>";c=b.doc.createElement(c)}else{c=b.create("iframe");c.src='javascript:""';c.className="dijitBackgroundIframe";b.style(c,"opacity",0.1)}c.tabIndex=
-1;e.setWaiRole(c,"presentation")}return c};this.push=function(c){c.style.display="none";a.push(c)}});e.BackgroundIframe=function(a){if(!a.id)throw new Error("no id");if(b.isIE||b.isMoz){var c=this.iframe=e._frames.pop();a.appendChild(c);if(b.isIE<7||b.isQuirks){this.resize(a);this._conn=b.connect(a,"onresize",this,function(){this.resize(a)})}else b.style(c,{width:"100%",height:"100%"})}};b.extend(e.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){e._frames.push(this.iframe);delete this.iframe}}});return e.popup});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,e){e.scrollIntoView=function(a,c){b.window.scrollIntoView(a,c)};return e.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var e=b.doc.documentElement,a=b.isIE,c=b.isOpera,d=Math.floor,f=b.isFF,i=b.boxModel.replace(/-/,"");a={dj_ie:a,dj_ie6:d(a)==6,dj_ie7:d(a)==7,dj_ie8:d(a)==8,dj_ie9:d(a)==9,dj_quirks:b.isQuirks,dj_iequirks:a&&b.isQuirks,dj_opera:c,dj_khtml:b.isKhtml,dj_webkit:b.isWebKit,dj_safari:b.isSafari,dj_chrome:b.isChrome,dj_gecko:b.isMozilla,dj_ff3:d(f)==3};a["dj_"+i]=true;var h="";for(var g in a)if(a[g])h+=g+" ";e.className=b.trim(e.className+" "+h);b._loaders.unshift(function(){if(!b._isBodyLtr()){var j=
"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");e.className=b.trim(e.className+" "+j)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,e){return e});
define("dijit/_base/typematic",["dojo","dijit"],function(b,e){e.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,c,d,f,i,h,g,j){if(i!=this._obj){this.stop();
this._initialDelay=g||500;this._subsequentDelay=h||0.9;this._minDelay=j||10;this._obj=i;this._evt=a;this._node=d;this._count=this._currentTimeout=-1;this._callback=b.hitch(c,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,c,d,f,i,h,g){if(c.keyCode){c.charOrCode=c.keyCode;b.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0")}else if(c.charCode){c.charOrCode=String.fromCharCode(c.charCode);b.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}return[b.connect(a,"onkeypress",this,function(j){if(j.charOrCode==c.charOrCode&&(c.ctrlKey===undefined||c.ctrlKey==j.ctrlKey)&&(c.altKey===undefined||c.altKey==j.altKey)&&(c.metaKey===undefined||c.metaKey==(j.metaKey||false))&&(c.shiftKey===undefined||c.shiftKey==j.shiftKey)){b.stopEvent(j);e.typematic.trigger(j,
d,a,f,c,i,h,g)}else e.typematic._obj==c&&e.typematic.stop()}),b.connect(a,"onkeyup",this,function(){e.typematic._obj==c&&e.typematic.stop()})]},addMouseListener:function(a,c,d,f,i,h){var g=b.connect;return[g(a,"mousedown",this,function(j){b.stopEvent(j);e.typematic.trigger(j,c,a,d,a,f,i,h)}),g(a,"mouseup",this,function(j){b.stopEvent(j);e.typematic.stop()}),g(a,"mouseout",this,function(j){b.stopEvent(j);e.typematic.stop()}),g(a,"mousemove",this,function(j){j.preventDefault()}),g(a,"dblclick",this,
function(j){b.stopEvent(j);if(b.isIE){e.typematic.trigger(j,c,a,d,a,f,i,h);setTimeout(b.hitch(this,e.typematic.stop),50)}})]},addListener:function(a,c,d,f,i,h,g,j){return this.addKeyListener(c,d,f,i,h,g,j).concat(this.addMouseListener(a,f,i,h,g,j))}};return e.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,e){e.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()),c=b.getComputedStyle(a);if(c){var d=c.backgroundImage;b[c.borderTopColor==c.borderRightColor||d!=null&&(d=="none"||d=="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(e.wai.onload);b.mixin(e,{hasWaiRole:function(a,c){a=this.getWaiRole(a);return c?a.indexOf(c)>-1:a.length>0},getWaiRole:function(a){return b.trim((b.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,c){b.attr(a,"role",c)},removeWaiRole:function(a,c){var d=b.attr(a,"role");if(d)if(c){c=b.trim((" "+d+" ").replace(" "+c+" "," "));b.attr(a,"role",c)}else a.removeAttribute("role")},
hasWaiState:function(a,c){return a.hasAttribute?a.hasAttribute("aria-"+c):!!a.getAttribute("aria-"+c)},getWaiState:function(a,c){return a.getAttribute("aria-"+c)||""},setWaiState:function(a,c,d){a.setAttribute("aria-"+c,d)},removeWaiState:function(a,c){a.removeAttribute("aria-"+c)}});return e});
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,e){return e._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,e){b.connect(b,"_connect",function(a,c){a&&b.isFunction(a._onConnect)&&a._onConnect(c)});e._connectOnUseEventHandler=function(){};e._lastKeyDownNode=null;b.isIE?function(){var a=function(c){e._lastKeyDownNode=c.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){e._lastKeyDownNode=a.target},true);(function(){b.declare("dijit._Widget",
e._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:e._connectOnUseEventHandler,onDblClick:e._connectOnUseEventHandler,onKeyDown:e._connectOnUseEventHandler,onKeyPress:e._connectOnUseEventHandler,onKeyUp:e._connectOnUseEventHandler,onMouseDown:e._connectOnUseEventHandler,onMouseMove:e._connectOnUseEventHandler,onMouseOut:e._connectOnUseEventHandler,
onMouseOver:e._connectOnUseEventHandler,onMouseLeave:e._connectOnUseEventHandler,onMouseEnter:e._connectOnUseEventHandler,onMouseUp:e._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]!==e._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,c){b.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,c)},attr:function(a){if(b.config.isDebug){var c=
arguments.callee._ach||(arguments.callee._ach={}),d=(arguments.callee.caller||"unknown caller").toString();if(!c[d]){b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+d,"","2.0");c[d]=true}}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,c,d){var f=b._connect,i=this.inherited(arguments,[a,c=="ondijitclick"?"onclick":c,d]);if(c=="ondijitclick")if(b.indexOf(this.nodesWithKeyClick,
a.nodeName.toLowerCase())==-1){var h=b.hitch(this,d);i.push(f(a,"onkeydown",this,function(g){if((g.keyCode==b.keys.ENTER||g.keyCode==b.keys.SPACE)&&!g.ctrlKey&&!g.shiftKey&&!g.altKey&&!g.metaKey){e._lastKeyDownNode=g.target;"openDropDown"in this&&a==this._buttonNode||g.preventDefault()}}),f(a,"onkeyup",this,function(g){if((g.keyCode==b.keys.ENTER||g.keyCode==b.keys.SPACE)&&g.target==e._lastKeyDownNode&&!g.ctrlKey&&!g.shiftKey&&!g.altKey&&!g.metaKey){e._lastKeyDownNode=null;return h(g)}}))}return i},
_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return true}})})();return e._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",true,b);b.string.rep=function(e,a){if(a<=0||!e)return"";for(var c=[];;){a&1&&c.push(e);if(!(a>>=1))break;e+=e}return c.join("")};b.string.pad=function(e,a,c,d){c||(c="0");e=String(e);a=b.string.rep(c,Math.ceil((a-e.length)/c.length));return d?e+a:a+e};b.string.substitute=function(e,a,c,d){d=d||b.global;c=c?b.hitch(d,c):function(f){return f};return e.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(f,i,h){f=b.getObject(i,false,
a);if(h)f=b.getObject(h,false,d).call(d,f,i);return c(f,i).toString()})};b.string.trim=String.prototype.trim?b.trim:function(e){e=e.replace(/^\s+/,"");for(var a=e.length-1;a>=0;a--)if(/\S/.test(e.charAt(a))){e=e.substring(0,a+1);break}return e};return b.string});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",true,b);b.date.stamp.fromISOString=function(e,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 c=b.date.stamp._isoRegExp.exec(e);e=null;if(c){c.shift();c[1]&&c[1]--;if(c[6])c[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,h){c[h]=c[h]||i})}e=new Date(c[0]||1970,c[1]||0,c[2]||1,c[3]||0,c[4]||0,c[5]||0,c[6]||0);if(c[0]<100)e.setFullYear(c[0]||1970);var d=0,f=c[7]&&c[7].charAt(0);if(f!="Z"){d=(c[8]||0)*60+(Number(c[9])||0);if(f!="-")d*=-1}if(f)d-=e.getTimezoneOffset();d&&e.setTime(e.getTime()+d*6E4)}return e};b.date.stamp.toISOString=function(e,a){var c=function(h){return h<10?"0"+h:h};a=a||{};var d=[],f=a.zulu?"getUTC":"get",i="";if(a.selector!="time"){i=e[f+"FullYear"]();i=["0000".substr((i+"").length)+
i,c(e[f+"Month"]()+1),c(e[f+"Date"]())].join("-")}d.push(i);if(a.selector!="date"){i=[c(e[f+"Hours"]()),c(e[f+"Minutes"]()),c(e[f+"Seconds"]())].join(":");f=e[f+"Milliseconds"]();if(a.milliseconds)i+="."+(f<100?"0":"")+c(f);if(a.zulu)i+="Z";else if(a.selector!="time"){e=e.getTimezoneOffset();a=Math.abs(e);i+=(e>0?"-":"+")+c(Math.floor(a/60))+":"+c(a%60)}d.push(i)}return d.join("T")};return b.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new (function(){function e(g){if(f.isString(g))return"string";if(typeof g=="number")return"number";if(typeof g=="boolean")return"boolean";if(f.isFunction(g))return"function";if(f.isArray(g))return"array";if(g instanceof Date)return"date";if(g instanceof f._Url)return"url";return"object"}function a(g,j){switch(j){case "string":return g;case "number":return g.length?Number(g):NaN;case "boolean":return typeof g=="boolean"?g:g.toLowerCase()!=
"false";case "function":if(f.isFunction(g)){g=g.toString();g=f.trim(g.substring(g.indexOf("{")+1,g.length-1))}try{return g===""||g.search(/[^\w\.]+/i)!=-1?new Function(g):f.getObject(g,false)||new Function(g)}catch(k){return new Function}case "array":return g?g.split(/\s*,\s*/):[];case "date":switch(g){case "":return new Date("");case "now":return new Date;default:return f.date.stamp.fromISOString(g)}case "url":return f.baseUrl+g;default:return f.fromJson(g)}}function c(g,j){for(var k in g)if(k.charAt(0)!=
"_")k in i||(j[k]=e(g[k]));return j}function d(g,j){var k=h[g];if(k){if(!j&&!k.params)k.params=c(k.cls.prototype,{})}else{g=f.getObject(g);k=null;if(!g)return null;j||(k=c(g.prototype,{}));k={cls:g,params:k}}return k}var f=b,i={},h={};f.connect(f,"extend",function(){h={}});this._functionFromScript=function(g,j){var k="",l="";(j=g.getAttribute(j+"args")||g.getAttribute("args"))&&f.forEach(j.split(/\s*,\s*/),function(p,m){k+="var "+p+" = arguments["+m+"]; "});(j=g.getAttribute("with"))&&j.length&&f.forEach(j.split(/\s*,\s*/),
function(p){k+="with("+p+"){";l+="}"});return new Function(k+g.innerHTML+l)};this.instantiate=function(g,j,k){var l=[];j=j||{};k=k||{};var p=(k.scope||f._scopeName)+"Type",m="data-"+(k.scope||f._scopeName)+"-";f.forEach(g,function(o){if(o){var q,u,r,n,v,s;if(o.node){q=o.node;u=o.type;s=o.fastpath;n=(r=o.clsInfo||u&&d(u,s))&&r.cls;v=o.scripts}else{q=o;v=(n=(r=(u=p in j?j[p]:q.getAttribute(p))&&d(u))&&r.cls)&&(n._noScript||n.prototype._noScript)?[]:f.query("> script[type^='dojo/']",q)}if(!r)throw new Error("Could not load class '"+
u);var x={};k.defaults&&f._mixin(x,k.defaults);o.inherited&&f._mixin(x,o.inherited);if(s){if((r=q.getAttribute(m+"props"))&&r.length)try{r=f.fromJson.call(k.propsThis,"{"+r+"}");f._mixin(x,r)}catch(B){throw new Error(B.toString()+" in data-dojo-props='"+r+"'");}if(r=q.getAttribute(m+"attach-point"))x.dojoAttachPoint=r;if(r=q.getAttribute(m+"attach-event"))x.dojoAttachEvent=r;b.mixin(x,j)}else{o=q.attributes;for(var y in r.params){u=y in j?{value:j[y],specified:true}:o.getNamedItem(y);if(!(!u||!u.specified&&
(!b.isIE||y.toLowerCase()!="value"))){u=u.value;switch(y){case "class":u="className"in j?j.className:q.className;break;case "style":u="style"in j?j.style:q.style&&q.style.cssText}var z=r.params[y];x[y]=typeof u=="string"?a(u,z):u}}}var E=[],F=[];f.forEach(v,function(G){q.removeChild(G);var M=G.getAttribute(m+"event")||G.getAttribute("event"),L=G.getAttribute("type");G=f.parser._functionFromScript(G,m);if(M)if(L=="dojo/connect")E.push({event:M,func:G});else x[M]=G;else F.push(G)});var K=(v=n.markupFactory||
n.prototype&&n.prototype.markupFactory)?v(x,q,n):new n(x,q);l.push(K);(n=q.getAttribute(m+"id")||q.getAttribute("jsId"))&&f.setObject(n,K);f.forEach(E,function(G){f.connect(K,G.event,null,G.func)});f.forEach(F,function(G){G.call(K)})}});j._started||f.forEach(l,function(o){if(!k.noStart&&o&&b.isFunction(o.startup)&&!o._started&&(!o.getParent||!o.getParent()))o.startup()});return l};this.parse=function(g,j){function k(q,u){var r=b.clone(q.inherited);b.forEach(["dir","lang"],function(y){var z=q.node.getAttribute(y);
if(z)r[y]=z});for(var n=q.clsInfo&&!q.clsInfo.cls.prototype._noScript?q.scripts:null,v=!q.clsInfo||!q.clsInfo.cls.prototype.stopParser||j&&j.template,s=q.node.firstChild;s;s=s.nextSibling)if(s.nodeType==1){var x,B=v&&s.getAttribute(p+"type");x=B?B:v&&s.getAttribute(l);B=B==x;if(x){x={type:x,fastpath:B,clsInfo:d(x,B),node:s,scripts:[],inherited:r};u.push(x);k(x,u)}else if(n&&s.nodeName.toLowerCase()=="script")(x=s.getAttribute("type"))&&/^dojo\/\w/i.test(x)&&n.push(s);else v&&k({node:s,inherited:r},
u)}}if(!j&&g&&g.rootNode){j=g;g=j.rootNode}else g=g;g=g?b.byId(g):b.body();j=j||{};var l=(j.scope||f._scopeName)+"Type",p="data-"+(j.scope||f._scopeName)+"-",m={};if(j&&j.inherited)for(var o in j.inherited)if(j.inherited[o])m[o]=j.inherited[o];o=[];k({node:g,inherited:m},o);return this.instantiate(o,j&&j.template?{template:true}:null,j)}});(function(){var e=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,e):b._loaders.unshift(e)})();
return b.parser});
define("dojo/cache",["dojo"],function(b){var e={};b.cache=function(a,c,d){if(typeof a=="string")var f=b.moduleUrl(a,c);else{f=a;d=c}f=f.toString();var i=d;if(d!=undefined&&!b.isString(d))i="value"in d?d.value:undefined;d=d&&d.sanitize?true:false;if(typeof i=="string")i=e[f]=d?b.cache._sanitize(i):i;else if(i===null)delete e[f];else{if(!(f in e)){i=undefined;if(b.isFunction(require)&&b.isString(a))try{var h=(a?a.replace(/\./g,"/")+"/":"")+c;i=require("text!"+h)}catch(g){}if(typeof i==="undefined")i=
b._getText(f);e[f]=d?b.cache._sanitize(i):i}i=e[f]}return i};b.cache._sanitize=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(c)a=c[1]}else a="";return a};return b.cache});
define("dijit/_Templated",["dojo","dijit","dijit/_Widget","dojo/string","dojo/parser","dojo/cache"],function(b,e){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 c=this.declaredClass,d=this;return b.string.substitute(a,this,function(f,i){if(i.charAt(0)=="!")f=b.getObject(i.substr(1),false,d);if(typeof f==
"undefined")throw new Error(c+" template:"+i);if(f==null)return"";return i.charAt(0)=="!"?f:f.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=e._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),c;if(b.isString(a)){c=b._toDom(this._stringRepl(a));if(c.nodeType!=1)throw new Error("Invalid template: "+a);}else c=a.cloneNode(true);this.domNode=c;this.inherited(arguments);this._attachTemplateNodes(c);if(this.widgetsInTemplate){a=this._startupWidgets=
b.parser.parse(c,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"});this._supportingWidgets=e.findWidgets(c);this._attachTemplateNodes(a,function(d,f){return d[f]})}this._fillContent(this.srcNodeRef)},_fillContent:function(a){var c=this.containerNode;if(a&&c)for(;a.hasChildNodes();)c.appendChild(a.firstChild)},_attachTemplateNodes:function(a,c){c=c||function(l,p){return l.getAttribute(p)};for(var d=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),
f=b.isArray(a)?0:-1;f<d.length;f++){var i=f==-1?a:d[f];if(!(this.widgetsInTemplate&&(c(i,"dojoType")||c(i,"data-dojo-type")))){var h=c(i,"dojoAttachPoint")||c(i,"data-dojo-attach-point");if(h)for(var g=h.split(/\s*,\s*/);h=g.shift();){if(b.isArray(this[h]))this[h].push(i);else this[h]=i;this._attachPoints.push(h)}if(h=c(i,"dojoAttachEvent")||c(i,"data-dojo-attach-event")){g=h.split(/\s*,\s*/);for(var j=b.trim;h=g.shift();)if(h){var k=null;if(h.indexOf(":")!=-1){k=h.split(":");h=j(k[0]);k=j(k[1])}else h=
j(h);k||(k=h);this._attachEvents.push(this.connect(i,h,k))}}(h=c(i,"waiRole"))&&e.setWaiRole(i,h);(h=c(i,"waiState"))&&b.forEach(h.split(/\s*,\s*/),function(l){if(l.indexOf("-")!=-1){l=l.split("-");e.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)}});e._Templated._templateCache={};e._Templated.getCachedTemplate=function(a,c,d){var f=e._Templated._templateCache,i=c||a,h=f[i];if(h){try{if(!h.ownerDocument||h.ownerDocument==b.doc)return h}catch(g){}b.destroy(h)}c||(c=b.cache(a,{sanitize:true}));c=b.string.trim(c);if(d||c.match(/\$\{([^\}]+)\}/g))return f[i]=c;else{a=b._toDom(c);if(a.nodeType!=1)throw new Error("Invalid template: "+c);return f[i]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=
e._Templated._templateCache;for(var c in a){var d=a[c];typeof d=="object"&&b.destroy(d);delete a[c]}});b.extend(e._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return e._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,e){b.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);b.forEach(["onmouseenter","onmouseleave","onmousedown"],function(c){this.connect(this.domNode,c,"_cssMouseEvent")},this);b.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(c){this.watch(c,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 c=this.connect(b.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(c)});break}},_setStateClass:function(){function a(g){c=
c.concat(b.map(c,function(j){return j+g}),"dijit"+g)}var c=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 d=this.stateNode||this.domNode,f={};b.forEach(d.className.split(" "),function(g){f[g]=true});"_stateClasses"in this&&b.forEach(this._stateClasses,
function(g){delete f[g]});b.forEach(c,function(g){f[g]=true});var i=[];for(var h in f)i.push(h);d.className=i.join(" ");this._stateClasses=c},_trackMouseState:function(a,c){function d(){var k="disabled"in g&&g.disabled||"readonly"in g&&g.readonly;b.toggleClass(a,c+"Hover",f&&!i&&!k);b.toggleClass(a,c+"Active",i&&!k);b.toggleClass(a,c+"Focused",h&&!k)}var f=false,i=false,h=false,g=this,j=b.hitch(this,"connect",a);j("onmouseenter",function(){f=true;d()});j("onmouseleave",function(){i=f=false;d()});
j("onmousedown",function(){i=true;d()});j("onmouseup",function(){i=false;d()});j("onfocus",function(){h=true;d()});j("onblur",function(){h=false;d()});this.watch("disabled",d);this.watch("readOnly",d)}});return e._CssStateMixin});
define("dijit/form/_FormWidget",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin"],function(b,e){b.declare("dijit.form._FormWidget",[e._Widget,e._Templated,e._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:b.delegate(e._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);e.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(c){c=this[c];b.isWebKit||e.hasDefaultTabStop(c)?c.setAttribute("tabIndex","-1"):c.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||e.focus(this.focusNode)},compare:function(a,c){return typeof a=="number"&&typeof c=="number"?isNaN(a)&&isNaN(c)?0:a-c:a>c?1:a<c?-1:0},onChange:function(){},_onChangeActive:false,_handleOnChange:function(a,c){if(this._lastValueReported==undefined&&(c===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||c||c===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 c=this.connect(b.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(c)})}});b.declare("dijit.form._FormValueWidget",
e.form._FormWidget,{readOnly:false,attributeMap:b.delegate(e.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);e.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,c){this._handleOnChange(a,c)},_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 c;if(b.isIE){a.preventDefault();c=document.createEventObject();c.keyCode=b.keys.ESCAPE;c.shiftKey=a.shiftKey;a.srcElement.fireEvent("onkeypress",
c)}}},_layoutHackIE7:function(){if(b.isIE==7)for(var a=this.domNode,c=a.parentNode,d=a.firstChild||a,f=d.style.filter,i=this;c&&c.clientHeight==0;){(function(){var h=i.connect(c,"onscroll",function(){i.disconnect(h);d.style.filter=(new Date).getMilliseconds();setTimeout(function(){d.style.filter=f},0)})})();c=c.parentNode}}});return e.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,e){b.declare("dijit.form.TextBox",e.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(e.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==e.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,
c,d){var f;if(a!==undefined){f=this.filter(a);if(typeof d!="string")d=f!==null&&(typeof f!="number"||!isNaN(f))?this.filter(this.format(f,this.constraints)):""}if(d!=null&&d!=undefined&&(typeof d!="number"||!isNaN(d))&&this.textbox.value!=d){this.textbox.value=d;this._set("displayedValue",this.get("displayedValue"))}this._updatePlaceHolder();this.inherited(arguments,[f,c])},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 c=this;setTimeout(function(){c._handleOnChange(c.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 c=this.domNode.getElementsByTagName("INPUT");if(c)for(var d=0;d<c.length;d++)c[d].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(c){return c.substring(0,1).toUpperCase()+c.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 c;if(b.isIE){c=b.doc.selection.createRange();c=c.parentElement()==this.textbox&&
c.text.length==0}else c=this.textbox.selectionStart==this.textbox.selectionEnd;c&&e.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});e.selectInputText=function(a,c,d){var f=b.global,i=b.doc;a=b.byId(a);if(isNaN(c))c=0;if(isNaN(d))d=a.value?a.value.length:0;e.focus(a);if(i.selection&&b.body().createTextRange){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveStart("character",
-99999);a.moveStart("character",c);a.moveEnd("character",d-c);a.select()}}else f.getSelection&&a.setSelectionRange&&a.setSelectionRange(c,d)};return e.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,e){b.declare("dijit._MasterTooltip",[e._Widget,e._Templated],{duration:e.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new e.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,c,d,f){if(!(this.aroundNode&&this.aroundNode===c)){this.domNode.width="auto";if(this.fadeOut.status()=="playing")this._onDeck=arguments;else{this.containerNode.innerHTML=a;e.placeOnScreenAroundElement(this.domNode,c,e.getPopupAroundAlignment(d&&d.length?d:e.Tooltip.defaultPosition,!f),b.hitch(this,"orient"));b.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=c}}},orient:function(a,c,d,
f,i){this.connectorNode.style.top="";var h=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"}[c+"-"+d];this.domNode.style.width="auto";var g=b.contentBox(this.domNode),j=Math.min(Math.max(h,1),g.w),k=j<g.w;this.domNode.style.width=j+"px";if(k){this.containerNode.style.overflow=
"auto";k=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(k>j){k=k+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight");this.domNode.style.width=k+"px"}}if(d.charAt(0)=="B"&&c.charAt(0)=="B"){a=b.marginBox(a);c=this.connectorNode.offsetHeight;if(a.h>f.h){this.connectorNode.style.top=f.h-i.h/2-c/2+"px";this.connectorNode.style.bottom=""}else{this.connectorNode.style.bottom=Math.min(Math.max(i.h/2-c/2,0),a.h-c)+"px";this.connectorNode.style.top=""}}else{this.connectorNode.style.top=
"";this.connectorNode.style.bottom=""}return Math.max(0,g.w-h)},_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}}});e.showTooltip=function(a,c,d,f){if(!e._masterTT)e._masterTT=
new e._MasterTooltip;return e._masterTT.show(a,c,d,f)};e.hideTooltip=function(a){if(!e._masterTT)e._masterTT=new e._MasterTooltip;return e._masterTT.hide(a)};b.declare("dijit.Tooltip",e._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){b.forEach(this._connections||[],function(d){b.forEach(d,b.hitch(this,"disconnect"))},this);var c=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(c,function(d){return(d=b.byId(d))?[this.connect(d,"onmouseenter","_onTargetMouseEnter"),
this.connect(d,"onmouseleave","_onTargetMouseLeave"),this.connect(d,"onfocus","_onTargetFocus"),this.connect(d,"onblur","_onTargetBlur")]:[]},this);this._set("connectId",a);this._connectIds=c},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 c=a.target;this._showTimer=setTimeout(b.hitch(this,function(){this.open(c)}),
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}e.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){if(this._connectNode){e.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)}});e.Tooltip.defaultPosition=["after","before"];return e.Tooltip});
(function(){function b(c,d,f,i,h,g){if(d[c]){f.push(c);if(d[c]===true||d[c]===1)i.push(h+c+"/"+g)}}function e(c,d,f,i,h){d=i+d+"/"+h;require._fileExists(c.nameToUrl(d,null))&&f.push(d)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",{version:"0.24.0",load:function(c,d,f,i){i=i||{};var h=a.exec(c),g=h[1],j=h[4],k=h[5],l=j.split("-"),p=[],m={},o,q,u="";if(h[5]){g=h[1];c=g+k}else{c=c;k=h[4];j=i.locale||(i.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||
"root").toLowerCase());l=j.split("-")}if(i.isBuild){p.push(c);e(d,"root",p,g,k);for(o=0;q=l[o];o++){u+=(u?"-":"")+q;e(d,u,p,g,k)}d(p);f()}else d([c],function(r){var n=[];b("root",r,n,p,g,k);for(o=0;q=l[o];o++){u+=(u?"-":"")+q;b(u,r,n,p,g,k)}d(p,function(){var v,s;for(v=n.length-1;v>-1&&(q=n[v]);v--){s=r[q];if(s===true||s===1)s=d(g+q+"/"+k);require.mixin(m,s)}f(m)})})}})})();
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,e){b.declare("dijit.form.ValidationTextBox",e.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,c){return(new RegExp("^(?:"+this.regExpGen(c)+")"+(this.required?"":"?")+"$")).test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,c)!==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 c="",d=this.disabled||this.isValid(a);if(d)this._maskValidSubsetError=true;var f=this._isEmpty(this.textbox.value),i=!d&&a&&this._isValidSubset();this._set("state",d?"":((!this._hasBeenBlurred||a)&&f||i)&&this._maskValidSubsetError?
"Incomplete":"Error");e.setWaiState(this.focusNode,"invalid",d?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=a&&i;c=this.getErrorMessage(a)}else if(this.state=="Incomplete"){c=this.getPromptMessage(a);this._maskValidSubsetError=!this._hasBeenBlurred||a}else if(f)c=this.getPromptMessage(a);this.set("message",c);return d},displayMessage:function(a){e.hideTooltip(this.domNode);a&&this._focused&&e.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 c="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(f){switch(f.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":c+=f;break;case ")":c+="|$)";break;
default:c+="(?:"+f+"|$)";break}});try{"".search(c)}catch(d){c=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+c+")$"},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);e.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",e.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",e.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,c){return("min"in c?this.compare(a,c.min)>=0:true)&&("max"in c?this.compare(a,c.max)<=0:true)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=
this.get("value"),c=false,d=false;if("min"in this.constraints){c=this.constraints.min;c=this.compare(a,typeof c=="number"&&c>=0&&a!=0?0:c);c=typeof c=="number"&&c<0}if("max"in this.constraints){d=this.constraints.max;d=this.compare(a,typeof d!="number"||d>0?d:0);d=typeof d=="number"&&d>0}return c||d},_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 c=this.get("value");if(c!==null&&c!==""&&c!==undefined&&(typeof c!="number"||!isNaN(c))&&!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?e.setWaiState(this.focusNode,"valuemin",this.constraints.min):e.removeWaiState(this.focusNode,"valuemin");this.constraints.max!==undefined?e.setWaiState(this.focusNode,"valuemax",this.constraints.max):e.removeWaiState(this.focusNode,"valuemax")}},_setValueAttr:function(a){e.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return e.form.ValidationTextBox});
define("orion/util",["dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,e){function a(s){v=s}function c(){return v}function d(s){var x="",B=navigator.platform.indexOf("Mac")!==-1;if(s.mod1)x+=B?"Cmd+":"Ctrl+";if(s.mod2)x+="Shift+";if(s.mod3)x+="Alt+";if(s.alphaKey)return x+s.alphaKey;for(var y in b.keys)if(typeof(b.keys[y]==="number"))if(b.keys[y]===s.keyCode)return x+y;var z;switch(s.keyCode){case 59:z=s.mod2?":":";";break;case 61:z=s.mod2?"+":"=";break;case 188:z=s.mod2?"<":",";
break;case 190:z=s.mod2?">":".";break;case 191:z=s.mod2?"?":"/";break;case 192:z=s.mod2?"~":"`";break;case 219:z=s.mod2?"{":"[";break;case 220:z=s.mod2?"|":"\\";break;case 221:z=s.mod2?"}":"]";break;case 222:z=s.mod2?'"':"'";break}if(z)return x+z;return x+String.fromCharCode(s.keyCode)}function f(s,x){s.startup();if(typeof x==="string"){var B=b.byId(x);if(!B)if(B=e.byId(x))B=B.domNode;x=B?B:null}if(x){x=b.position(x);s._setStyleAttr("left:"+(x.x+16)+"px !important;");s._setStyleAttr("top:"+(x.y+16)+
"px !important;")}s.show()}function i(s,x,B,y,z,E,F,K){F=function(M){return function(L){var N=e.byId(s),O=N.get("value");if(M&&L.keyCode===b.keys.ESCAPE){B&&b.style(x,"display","inline");N.destroyRecursive();E&&E()}else if(!(M&&L.keyCode!==b.keys.ENTER)){if(!N.isValid()||O===y)B&&b.style(x,"display","inline");else z(O);N.destroyRecursive();E&&E()}}};var G=new e.form.ValidationTextBox({id:s,required:true,value:y||""});b.place(G.domNode,x,"after");b.addClass(G.domNode,"userEditBoxPrompt");B&&b.style(x,
"display","none");b.connect(G,"onKeyDown",F(true));b.connect(G,"onBlur",F(false));window.setTimeout(function(){G.focus();if(y){var M=b.byId(s),L=K?y.indexOf(K):-1;L>0?e.selectInputText(M,0,L):M.select()}},0)}function h(s){var x=window.navigator.platform.indexOf("Mac")!==-1;return x&&s.metaKey||!x&&s.ctrlKey}function g(s,x){if(x&&h(x))window.open(s);else window.location=s}function j(s){if(!s)return s;var x=window.location.href.split("#")[0];x=x.substring(0,x.length-window.location.pathname.length);
if(s.indexOf(x)===0)return s.substring(x.length);return s}function k(s){var x,B,y,z,E;s=s.split("#");var F=s[s.length-1].split(/\?(?=(?:line|char))/);s=j(F[0]);if(F.length>1){F=F[1].split(/\&(?=(?:line|char))/);for(var K=0;K<F.length;K++){var G=F[K].split("=");if(G.length>1)switch(G[0]){case "char":G=G[1].split(",");if(y===undefined){x=window.parseInt(G[0]);if(G.length>1)B=window.parseInt(G[1])}else{z=G[0];if(G.length>1)E=window.parseInt(G[1]-z)}break;case "line":G=G[1].split(",");y=window.parseInt(G[0]);
break;default:break}}}return{filePath:s,start:x,end:B,line:y,offset:z,length:E}}function l(s,x,B,y,z,E){if(typeof x==="number"){s="#"+s+"?char="+x;if(typeof B==="number")s=s+","+B;else if(typeof E==="number")s=s+","+(x+E);return s}if(typeof y==="number"){s="#"+s+"?line="+y;if(typeof z==="number"){s=s+"&char="+z;if(typeof E==="number")s=s+","+(z+E)}return s}return"#"+s}function p(s){if(!s)return s;var x=window.location.href.split("#")[0];return x.substring(0,x.length-window.location.pathname.length)+
s}function m(s){return this.makeRelative(s).indexOf("/workspace")===0}function o(s,x){s.children=x;for(var B in x)x[B].parent=s;s.children.sort(function(y,z){var E=y.Directory;if(E!==z.Directory)return E?-1:1;y=y.Name&&y.Name.toLowerCase();z=z.Name&&z.Name.toLowerCase();if(y<z)return-1;if(y>z)return 1;return 0})}function q(s,x){s.Parents&&s.Parents.length===0&&x.getService("orion.core.preference").then(function(B){return B.getPreferences("/window/recent")}).then(function(B){var y=B.get("projects");
if(typeof y==="string")y=JSON.parse(y);var z=[];if(y&&y.length&&y.length>0)for(var E=0;E<y.length;E++)y[E].location!==s.ChildrenLocation&&y[E].name!==s.Name&&z.push(y[E]);z.push({name:s.Name,location:s.ChildrenLocation});if(z.length>5)z=z.slice(-5,z.length);B.put("projects",z)})}function u(s){return typeof s.textContent!=="undefined"?s.textContent:s.innerText}function r(s){return u(document.createTextNode(s))}function n(s,x){if(typeof s.textContent!=="undefined")s.textContent=x;else s.innerText=x}
var v=null;return{setUserName:a,getUserName:c,getUserKeyString:d,openDialog:f,getUserText:i,openInNewWindow:h,followLink:g,getPositionInfo:k,hashFromPosition:l,makeRelative:j,makeFullPath:p,isAtRoot:m,processNavigatorParent:o,rememberSuccessfulTraversal:q,getText:u,safeText:r,setText:n}});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,e){b.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,c){var d=this.containerNode;if(c&&typeof c=="number"){var f=this.getChildren();if(f&&f.length>=c){d=f[c-1].domNode;c="after"}}b.place(a.domNode,d,c);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(c){c.destroyRecursive(a)})},_getSiblingOfChild:function(a,c){a=a.domNode;c=c>0?"nextSibling":"previousSibling";do a=a[c];while(a&&(a.nodeType!=1||!e.byNode(a)));return a&&e.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 e._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,e){b.declare("dijit._KeyNavContainer",e._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,c){var d=this._keyNavCodes={},f=b.hitch(this,this.focusPrev),i=b.hitch(this,this.focusNext);b.forEach(a,function(h){d[h]=f});b.forEach(c,function(h){d[h]=i});d[b.keys.HOME]=b.hitch(this,"focusFirstChild");d[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){e._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,c){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(c?"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 c=this._keyNavCodes[a.charOrCode];if(c){c();b.stopEvent(a)}}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
c){if(a)a=this._getSiblingOfChild(a,c);for(var d=this.getChildren(),f=0;f<d.length;f++){a||(a=d[c>0?0:d.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,c)}return null}});return e._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,e){b.declare("dijit._Contained",null,{getParent:function(){var a=e.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var c=this.domNode;do c=c[a+"Sibling"];while(c&&c.nodeType!=1);return c&&e.byNode(c)},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 e._Contained});
define("dijit/MenuItem",["dojo","dijit","text!dijit/templates/MenuItem.html","dijit/_Widget","dijit/_Templated","dijit/_Contained","dijit/_CssStateMixin"],function(b,e){b.declare("dijit.MenuItem",[e._Widget,e._Templated,e._Contained,e._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(e._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"}e.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();e.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){e.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 e.MenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,e){b.declare("dijit.PopupMenuItem",e.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);e.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=e.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");e.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){if(this.popup){this.popup._destroyed||this.popup.destroyRecursive();delete this.popup}this.inherited(arguments)}});return e.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,e){b.declare("dijit.CheckedMenuItem",e.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:false,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);e.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 e.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,e){b.declare("dijit.MenuSeparator",[e._Widget,e._Templated,e._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,false)},isFocusable:function(){return false}});return e.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,e){b.declare("dijit._MenuBase",[e._Widget,e._Templated,e._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 c=a.popup;if(c){this._stopPendingCloseTimer(c);c._pendingClose_timer=setTimeout(function(){c._pendingClose_timer=null;if(c.parentMenu)c.parentMenu.currentPopup=
null;e.popup.close(c)},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,c){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return false;if(a.popup)this._openPopup();else{this.onExecute();a.onClick(c)}},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var c=a.popup;if(!c.isShowingNow){if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);e.popup.close(this.currentPopup)}c.parentMenu=this;c.from_item=a;var d=this;e.popup.open({parent:this,
popup:c,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(){d.focusChild(a);d._cleanUp();a._setSelected(true);d.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=c;c.connect(c.domNode,"onmouseenter",b.hitch(d,"_onPopupHover"));if(c.focus)c._focus_timer=setTimeout(b.hitch(c,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){e._curFocus&&b.isDescendant(e._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus();e.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",e._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,c=this.isLeftToRight();this._openSubMenuKey=c?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=c?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 c;if(a.tagName.toLowerCase()=="iframe"){var d=a,f=this._iframeContentWindow(d);c=b.withGlobal(f,b.body)}else c=a==b.body()?b.doc.documentElement:a;var i={node:a,iframe:d};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(i));var h=b.hitch(this,function(g){return[b.connect(g,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(j){b.stopEvent(j);this._scheduleOpen(j.target,d,{x:j.pageX,y:j.pageY})}),b.connect(g,"onkeydown",this,function(j){if(j.shiftKey&&
j.keyCode==b.keys.F10){b.stopEvent(j);this._scheduleOpen(j.target,d)}})]});i.connects=c?h(c):[];if(d){i.onloadHandler=b.hitch(this,function(){var g=this._iframeContentWindow(d);c=b.withGlobal(g,b.body);i.connects=h(c)});d.addEventListener?d.addEventListener("load",i.onloadHandler,false):d.attachEvent("onload",i.onloadHandler)}},unBindDomNode:function(a){var c;try{c=b.byId(a)}catch(d){return}a="_dijitMenu"+this.id;if(c&&b.hasAttr(c,a)){var f=b.attr(c,a)-1,i=this._bindings[f];b.forEach(i.connects,b.disconnect);
var h=i.iframe;if(h)h.removeEventListener?h.removeEventListener("load",i.onloadHandler,false):h.detachEvent("onload",i.onloadHandler);b.removeAttr(c,a);delete this._bindings[f]}},_scheduleOpen:function(a,c,d){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:c,coords:d})}),1)},_openMyself:function(a){function c(){k.refocus&&e.focus(l);e.popup.close(k)}var d=a.target,f=a.iframe;if(a=a.coords){if(f){d=b.position(f,true);var i=
this._iframeContentWindow(f);i=b.withGlobal(i,"_docScroll",b);var h=b.getComputedStyle(f),g=b._toPixelValue,j=(b.isIE&&b.isQuirks?0:g(f,h.paddingLeft))+(b.isIE&&b.isQuirks?g(f,h.borderLeftWidth):0);f=(b.isIE&&b.isQuirks?0:g(f,h.paddingTop))+(b.isIE&&b.isQuirks?g(f,h.borderTopWidth):0);a.x+=d.x+j-i.x;a.y+=d.y+f-i.y}}else{a=b.position(d,true);a.x+=10;a.y+=10}var k=this,l=e.getFocus(this);e.popup.open({popup:this,x:a.x,y:a.y,onExecute:c,onCancel:c,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=
function(){this.inherited("_onBlur",arguments);e.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return e.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,e){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 c=this.dropDown,d=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&&!d;)if(b.hasClass(f,"dijitPopup"))d=true;else f=f.parentNode;if(d){f=a.target;if(c.onItemClick){for(var i;f&&!(i=e.byNode(f));)f=f.parentNode;i&&i.onClick&&i.getParent&&i.getParent().onItemClick(i,a)}return}}}this._opened&&c.focus&&c.autoFocus!==false&&window.setTimeout(b.hitch(c,
"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 c=this.dropDown,d=a.target;if(c&&this._opened&&c.handleKey)if(c.handleKey(a)===false){b.stopEvent(a);return}if(c&&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==" ")&&((d.tagName||"").toLowerCase()!=="input"||d.type&&d.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(e._curFocus&&this.dropDown&&b.isDescendant(e._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,c=a.domNode,d=this._aroundNode||this.domNode,f=this;if(!this._preparedNode){this._preparedNode=true;if(c.style.width)this._explicitDDWidth=true;if(c.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(c,i);i=this.maxHeight;if(i==-1){i=b.window.getBox();var h=b.position(d,false);i=Math.floor(Math.max(h.y,i.h-(h.y+h.h)))}a.startup&&
!a._started&&a.startup();e.popup.moveOffScreen(a);h=b._getMarginSize(c);var g=i&&h.h>i;b.style(c,{overflowX:"hidden",overflowY:g?"auto":"hidden"});if(g){h.h=i;if("w"in h)h.w+=16}else delete h.h;if(this.forceWidth)h.w=d.offsetWidth;else if(this.autoWidth)h.w=Math.max(h.w,d.offsetWidth);else delete h.w;b.isFunction(a.resize)?a.resize(h):b.marginBox(c,h)}a=e.popup.open({parent:this,popup:a,around:d,orient:e.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();e.popup.close(this.dropDown);this._opened=false}}});
return e._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,e){b.declare("dijit.form.Button",e.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(e.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 c=this.domNode;c.parentNode;c=c.parentNode){var d=e.byNode(c);if(d&&typeof d._onSubmit=="function"){d._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",[e.form.Button,e._Container,e._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);e.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=e.byNode(a);delete this.dropDownContainer}this.dropDown&&e.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 c=b.connect(a,"onLoad",this,function(){b.disconnect(c);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});b.declare("dijit.form.ComboButton",e.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(e.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"]){e.focus(this._popupStateNode);b.stopEvent(a)}},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){e.focus(this.titleNode);b.stopEvent(a)}},focus:function(a){this.disabled||e.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",e.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:b.mixin(b.clone(e.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,c){this._set("checked",a);b.attr(this.focusNode||this.domNode,"checked",a);e.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,c)},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 e.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,e){return e.form.DropDownButton});
define("orion/commands",["dojo","dijit","orion/util","dijit/Menu","dijit/form/DropDownButton","dijit/MenuItem","dijit/PopupMenuItem","dijit/MenuSeparator"],function(b,e,a){function c(h){this._domScope={};this._objectScope={};this._globalScope={};this._namedGroups={};this._activeBindings={};this._init(h)}function d(h){this._init(h)}function f(h,g,j,k,l){this.keyCode=typeof h==="string"?h.toUpperCase().charCodeAt(0):h;this.mod1=g!==undefined&&g!==null?g:false;this.mod2=j!==undefined&&j!==null?j:false;
this.mod3=k!==undefined&&k!==null?k:false;this.mod4=l!==undefined&&l!==null?l:false}c.prototype={_init:function(h){this._registry=h.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._selection=h.selection;b.connect(window.document,"onkeydown",b.hitch(this,function(g){g=g||window.event;var j=g.target.nodeName.toLowerCase();if(j==="input")switch(g.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(j===
"textarea")return;this._processKey(g)}))},_processKey:function(h){function g(p){if(window.document.all)p.keyCode=0;else{p.preventDefault();p.stopPropagation()}}for(var j in this._activeBindings)if(this._activeBindings[j]&&this._activeBindings[j].keyBinding&&this._activeBindings[j].command)if(this._activeBindings[j].keyBinding.match(h)){var k=this._activeBindings[j],l=k.command;if(l.hrefCallback){g(h);h=l.hrefCallback.call(k.handler||window,k.items,j,k.userData);h.then?h.then(function(p){window.open(p)}):
window.open(h);return}else if(l.callback){g(h);window.setTimeout(function(){l.callback.call(k.handler||window,k.items,j,null,k.userData)},0);return}}},getSelectionService:function(){return this._selection},showKeyBindings:function(h){for(var g in this._activeBindings)this._activeBindings[g]&&this._activeBindings[g].keyBinding&&this._activeBindings[g].command&&b.place("<span>"+a.getUserKeyString(this._activeBindings[g].keyBinding)+" = "+this._activeBindings[g].command.name+"<br></span>",h,"last")},
addCommand:function(h,g){switch(g){case "dom":this._domScope[h.id]=h;break;case "object":this._objectScope[h.id]=h;break;case "global":this._globalScope[h.id]=h;break;default:throw"unrecognized command scope "+g;}},addCommandGroup:function(h,g,j,k,l){var p=this._namedGroups;if(k)p=this._createEntryForPath(k);if(p[h]){if(j)p[h].title=j;if(g)p[h].position=g;if(l)p[h].scopeId=l}else{p[h]={title:j,position:g,children:{},scopeId:l};p.sortedCommands=null}},_createEntryForPath:function(h){var g=this._namedGroups;
if(h){h=h.split("/");for(var j=0;j<h.length;j++)if(h[j].length>1){g[h[j]]||(g[h[j]]={position:0,children:{}});g=g[h[j]].children}}return g},registerCommandContribution:function(h,g,j,k,l,p){k=this._createEntryForPath(k);k[h]={scopeId:j,position:g};if(l)if(g=this._domScope[h]||this._globalScope[h])this._activeBindings[h]={command:g,keyBinding:l,keyOnly:p};k.sortedCommands=null},_isLastChildSeparator:function(h,g){if(g==="image")return h.childNodes.length>0&&b.hasClass(h.childNodes[h.childNodes.length-
1],"commandSeparator");if(g==="menu"){h=h.getChildren();return h.length>0&&h[h.length-1]instanceof e.MenuSeparator}return false},renderCommands:function(h,g,j,k,l,p,m,o){if(typeof h==="string")h=b.byId(h);if(j){var q;if(g==="object")q=this._objectScope;else if(g==="dom")q=this._domScope;else if(g==="global")q=this._globalScope;else throw"Unrecognized command scope "+g;this._render(this._namedGroups,h,g,j,k,l,p,m,q,o);if(l==="image")this._isLastChildSeparator(h,l)&&h.removeChild(h.childNodes[h.childNodes.length-
1]);else if(l==="menu")if(this._isLastChildSeparator(h,l)){j=h.getChildren()[h.getChildren().length-1];h.removeChild(j);j.destroy()}}else{var u=this;this._selection&&this._selection.getSelections(function(r){u.renderCommands(h,g,r,k,l,p,m,o)})}},_render:function(h,g,j,k,l,p,m,o,q,u){var r=h.sortedCommands;if(!r){r=[];for(var n in h){var v=h[n];if(v&&typeof v.position==="number"){v.id=n;r.push(v)}}r.sort(function(E,F){return E.position-F.position});h.sortedCommands=r}for(h=0;h<r.length;h++){var s;
if(r[h].children){n=r[h];if(!(n.scopeId&&g.id!==n.scopeId)){var x;if(p==="image")if(n.title){v=new e.Menu({style:"display: none;"});v.eclipseScopeId=g.eclipseScopeId||g.id;this._render(r[h].children,v,j,k,l,"menu",m,o,q,u);x=v.getChildren();if(this._isLastChildSeparator(v,"menu")){s=x[x.length-1];v.removeChild(s);s.destroy();x=v.getChildren()}if(x.length>0){var B=true;s=x[0].eclipseCommand;if(x.length===1)B=!(s&&s.hasImage());if(B){s=new e.form.DropDownButton({label:n.title,dropDown:v});b.addClass(s.domNode,
"commandLink");m&&b.addClass(s.domNode,m);b.place(s.domNode,g,"last")}else{v="image"+s.id+h;n=s._asImage(v,k,l,o,u);b.place(n,g,"last")}}}else{var y;if(g.childNodes.length>0&&!this._isLastChildSeparator(g,p)){y=this.generateSeparatorImage();b.place(y,g,"last")}this._render(r[h].children,g,j,k,l,p,m,o,q,u);if(g.childNodes.length>0)if(g.childNodes[g.childNodes.length-1]!==y){y=this.generateSeparatorImage();b.place(y,g,"last")}}else if(n.title){v=new e.Menu;this._render(r[h].children,v,j,k,l,p,m,o,q,
u);v.getChildren().length>0&&g.addChild(new e.PopupMenuItem({label:n.title,popup:v}))}else{var z;if(g.getChildren().length>0&&!this._isLastChildSeparator(g,p)){z=new e.MenuSeparator;g.addChild(z)}this._render(r[h].children,g,j,k,l,p,m,o,q,u);n=g.getChildren();if(n[n.length-1]!==z){z=new e.MenuSeparator;g.addChild(z)}}}}else{v=(n=q[r[h].id])?true:false;if(n){if(j==="dom")v=p==="image"?g.id===r[h].scopeId:p==="menu"?g.eclipseScopeId===r[h].scopeId:false;if(this._activeBindings[n.id]&&this._activeBindings[n.id].keyBinding){s=
this._activeBindings[n.id];s.items=k;s.userData=o;s.handler=l;if(s.keyOnly)v=false}if(v&&n.visibleWhen)v=n.visibleWhen(k)}if(v)if(n.choiceCallback){v=new e.Menu({style:"display: none;"});if(p==="image"){s=new e.form.DropDownButton({label:n.name,dropDown:v});if(n.image){b.addClass(s.iconNode,"commandImage");m&&b.addClass(s.iconNode,m);s.iconNode.src=n.image}b.place(s.domNode,g,"last");s.eclipseCommand=n;s.eclipseChoices=v;b.connect(s,"onClick",s,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,
k,l,o)})}else if(p==="menu"){s=new e.PopupMenuItem({label:n.name,popup:v});g.addChild(s);s.eclipseCommand=n;s.eclipseChoices=v;b.connect(g,"_openPopup",s,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,k,l,o)})}}else if(p==="image"){v="image"+n.id+h;n=n._asImage(v,k,l,o,m,u);b.place(n,g,"last")}else p==="menu"&&n._addMenuItem(g,k,l,o,m)}}},generateSeparatorImage:function(){var h=new Image;h.src="/images/sep.gif";b.addClass(h,"commandImage");b.addClass(h,"commandSeparator");
return h}};c.prototype.constructor=c;d.prototype={_init:function(h){this.id=h.id;this.name=h.name||"Empty Command";this.tooltip=h.tooltip||h.name;this.callback=h.callback;this.hrefCallback=h.hrefCallback;this.choiceCallback=h.choiceCallback;this.image=h.image||"/images/none.png";this.visibleWhen=h.visibleWhen;this._deviceSupportsHover=false},_asImage:function(h,g,j,k,l,p){j=j||this;var m=new Image,o=b.create("a");o.id=this.name+"link";m.alt=this.name;m.title=this.name;m.name=h;m.id=h;if(p||!this.hasImage()){h=
window.document.createTextNode(this.name);b.place(h,o,"last")}if(this.hrefCallback){h=this.hrefCallback.call(j,g,this.id,k);if(h.then)h.then(function(q){o.href=q});else o.href=h}else if(this.callback)!p&&this.hasImage()?b.connect(m,"onclick",this,function(){this.callback.call(j,g,this.id,m.id,k)}):b.connect(o,"onclick",this,function(){this.callback.call(j,g,this.id,o.id,k)});if(!p&&this.hasImage()){if(this._deviceSupportsHover){m.src="/images/none.png";b.connect(m,"onmouseover",this,function(){m.src=
this.image});b.connect(m,"onmouseout",this,function(){m.src="/images/none.png"})}else{m.src=this.image;b.connect(m,"onmouseover",this,function(){b.addClass(m,"commandOver")});b.connect(m,"onmouseout",this,function(){m.src=this.image;b.removeClass(m,"commandOver")})}b.addClass(m,"commandImage");l&&b.addClass(m,l);b.place(m,o,"last")}b.addClass(o,"commandLink");l&&b.addClass(o,l);return o},_asLink:function(h,g,j){g=g||this;var k=window.document.createElement("a");b.place(window.document.createTextNode(this.name),
k,"only");k.href="";k.id=this.id+"link";if(this.callback)b.connect(k,"onclick",this,function(){this.callback.call(g,h,this.id,k.id)});else if(this.hrefCallback){var l=this.hrefCallback.call(g,h,this.id);if(l)if(l.then)l.then(function(p){k.href=p});else k.href=l}b.addClass(k,"commandLink");j&&b.addClass(k,j);return k},_addMenuItem:function(h,g,j,k,l){var p=new e.MenuItem({labelType:this.hrefCallback?"html":"text",label:this.name,tooltip:this.tooltip});if(this.hrefCallback){var m=this.hrefCallback.call(j,
g,this.id,h.id,k);if(m)if(m.then)m.then(b.hitch(this,function(o){p.set("label","<a href='"+o+"'>"+this.name+"</a>");p.onClick=function(q){a.followLink(o,q)}}));else{p.set("label","<a href='"+m+"'>"+this.name+"</a>");p.onClick=function(o){a.followLink(m,o)}}}else if(this.callback)p.onClick=b.hitch(this,function(){this.callback.call(j,g,this.id,null,k)});p.eclipseCommand=this;h.addChild(p);if(this.image){b.addClass(p.iconNode,"commandImage");l&&b.addClass(p.iconNode,l);p.iconNode.src=this.image}},populateChoicesMenu:function(h,
g,j,k){h.focusedChild=null;b.forEach(h.getChildren(),function(m){h.removeChild(m);m.destroy()});j=this.getChoices(g,j,k);for(k=0;k<j.length;k++){var l=j[k],p;if(l.name){p=new e.MenuItem({label:l.name,onClick:this.makeChoiceCallback(l,g)});if(l.image){b.addClass(p.iconNode,"commandImage");p.iconNode.src=l.image}}else p=new e.MenuSeparator;h.addChild(p)}},getChoices:function(h,g,j){if(this.choiceCallback)return this.choiceCallback.call(g,h,j);return null},makeChoiceCallback:function(h,g){return function(j){h.callback&&
h.callback.call(h,g,j)}},hasImage:function(){return this.image!=="/images/none.png"}};d.prototype.constructor=d;var i=window.navigator.platform.indexOf("Mac")!==-1;f.prototype={match:function(h){if(this.keyCode===h.keyCode){if(this.mod1!==(i?h.metaKey:h.ctrlKey))return false;if(this.mod2!==h.shiftKey)return false;if(this.mod3!==h.altKey)return false;if(i&&this.mod4!==h.ctrlKey)return false;return true}return false},equals:function(h){if(!h)return false;if(this.keyCode!==h.keyCode)return false;if(this.mod1!==
h.mod1)return false;if(this.mod2!==h.mod2)return false;if(this.mod3!==h.mod3)return false;if(this.mod4!==h.mod4)return false;return true}};f.prototype.constructor=f;return{CommandService:c,CommandKeyBinding:f,Command:d}});var orion=orion||{};orion.textview=orion.textview||{};
orion.textview.KeyBinding=function(){function b(a,c,d,f,i){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=c!==undefined&&c!==null?c:false;this.mod2=d!==undefined&&d!==null?d:false;this.mod3=f!==undefined&&f!==null?f:false;this.mod4=i!==undefined&&i!==null?i:false}var e=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(e?a.metaKey:a.ctrlKey))return false;if(this.mod2!==a.shiftKey)return false;if(this.mod3!==
a.altKey)return false;if(e&&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 e;do e=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(e));return e};b.dnd._empty={};b.dnd.isFormElement=function(e){e=e.target;if(e.nodeType==3)e=e.parentNode;return" button textarea input select option ".indexOf(" "+e.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(e){var a=b.window.getBox(),c=0,d=0;if(e.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)c=-b.dnd.H_AUTOSCROLL_VALUE;else if(e.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)c=b.dnd.H_AUTOSCROLL_VALUE;if(e.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)d=-b.dnd.V_AUTOSCROLL_VALUE;
else if(e.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)d=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(c,d)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(e){for(var a=e.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in b.dnd._validNodes){var c=b.getComputedStyle(a);if(c.overflow.toLowerCase()in b.dnd._validOverflow){var d=b._getContentBox(a,c);c=b.position(a,true);var f=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,d.w/2),i=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
d.h/2),h=e.pageX-c.x,g=e.pageY-c.y,j=c=0;if(b.isWebKit||b.isOpera){h+=b.body().scrollLeft;g+=b.body().scrollTop}if(h>0&&h<d.w)if(h<f)c=-f;else if(h>d.w-f)c=f;if(g>0&&g<d.h)if(g<i)j=-i;else if(g>d.h-i)j=i;d=a.scrollLeft;f=a.scrollTop;a.scrollLeft+=c;a.scrollTop+=j;if(d!=a.scrollLeft||f!=a.scrollTop)return}}try{a=a.parentNode}catch(k){a=null}}b.dnd.autoScroll(e)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(e,a,c){this.node=b.byId(e);var d=a.touches?a.touches[0]:a;this.marginBox={l:d.pageX,t:d.pageY};this.mouseButton=a.button;a=this.host=c;e=e.ownerDocument;this.events=[b.connect(e,"onmousemove",this,"onFirstMove"),b.connect(e,"ontouchmove",this,"onFirstMove"),b.connect(e,"onmousemove",this,"onMouseMove"),b.connect(e,"ontouchmove",this,"onMouseMove"),b.connect(e,
"onmouseup",this,"onMouseUp"),b.connect(e,"ontouchend",this,"onMouseUp"),b.connect(e,"ondragstart",b.stopEvent),b.connect(e.body,"onselectstart",b.stopEvent)];a&&a.onMoveStart&&a.onMoveStart(this)},onMouseMove:function(e){b.dnd.autoScroll(e);var a=this.marginBox,c=e.touches?e.touches[0]:e;this.host.onMove(this,{l:a.l+c.pageX,t:a.t+c.pageY},e);b.stopEvent(e)},onMouseUp:function(e){if(b.isWebKit&&b.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button)this.destroy();b.stopEvent(e)},onFirstMove:function(e){var a=
this.node.style,c,d=this.host;switch(a.position){case "relative":case "absolute":c=Math.round(parseFloat(a.left))||0;a=Math.round(parseFloat(a.top))||0;break;default:a.position="absolute";a=b.marginBox(this.node);c=b.doc.body;var f=b.getComputedStyle(c),i=b._getMarginBox(c,f);f=b._getContentBox(c,f);c=a.l-(f.l-i.l);a=a.t-(f.t-i.t);break}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;d&&d.onFirstMove&&d.onFirstMove(this,e);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var e=this.host;e&&e.onMoveStop&&e.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(e,a){this.node=b.byId(e);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(e,a){return new b.dnd.Moveable(a,e)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(e){if(!(this.skip&&b.dnd.isFormElement(e))){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=e.touches?e.touches[0]:e;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(e);b.stopEvent(e)}},onMouseMove:function(e){var a=e.touches?e.touches[0]:e;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e)}b.stopEvent(e)},onMouseUp:function(e){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(e)},onSelectStart:function(e){if(!this.skip||
!b.dnd.isFormElement(e))b.stopEvent(e)},onDragDetected:function(e){new this.mover(this.node,e,this)},onMoveStart:function(e){b.publish("/dnd/move/start",[e]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(e){b.publish("/dnd/move/stop",[e]);b.removeClass(b.body(),"dojoMove");b.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(e,a){this.onMoving(e,a);var c=e.node.style;c.left=a.l+"px";c.top=a.t+"px";this.onMoved(e,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(e,a){return new b.dnd.move.constrainedMoveable(a,e)},constructor:function(e,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(e){var a=this.constraintBox=this.constraints.call(this,e);a.r=a.l+a.w;a.b=a.t+a.h;if(this.within){e=b._getMarginSize(e.node);a.r-=e.w;
a.b-=e.h}},onMove:function(e,a){var c=this.constraintBox,d=e.node.style;this.onMoving(e,a);a.l=a.l<c.l?c.l:c.r<a.l?c.r:a.l;a.t=a.t<c.t?c.t:c.b<a.t?c.b:a.t;d.left=a.l+"px";d.top=a.t+"px";this.onMoved(e,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(e,a){return new b.dnd.move.boxConstrainedMoveable(a,e)},constructor:function(e,a){var c=a&&a.box;this.constraints=function(){return c}}});b.declare("dojo.dnd.move.parentConstrainedMoveable",
b.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(e,a){return new b.dnd.move.parentConstrainedMoveable(a,e)},constructor:function(e,a){var c=a&&a.area;this.constraints=function(){var d=this.node.parentNode,f=b.getComputedStyle(d),i=b._getMarginBox(d,f);if(c=="margin")return i;var h=b._getMarginExtents(d,f);i.l+=h.l;i.t+=h.t;i.w-=h.w;i.h-=h.h;if(c=="border")return i;h=b._getBorderExtents(d,f);i.l+=h.l;i.t+=h.t;i.w-=h.w;i.h-=h.h;if(c=="padding")return i;h=b._getPadExtents(d,f);i.l+=
h.l;i.t+=h.t;i.w-=h.w;i.h-=h.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 e=b.dnd.Moveable.prototype.onMove;b.declare("dojo.dnd.TimedMoveable",b.dnd.Moveable,{timeout:40,constructor:function(a,c){c||(c={});if(c.timeout&&typeof c.timeout=="number"&&c.timeout>=0)this.timeout=c.timeout},markupFactory:function(a,c){return new b.dnd.TimedMoveable(c,a)},onMoveStop:function(a){if(a._timer){clearTimeout(a._timer);e.call(this,a,a._leftTop)}b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,c){a._leftTop=c;if(!a._timer){var d=this;a._timer=setTimeout(function(){a._timer=null;e.call(d,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(e){var a=this;b.mixin(a,e);a.node=e.node;a._showArgs=b.mixin({},e);a._showArgs.node=a.node;a._showArgs.duration=a.showDuration;a.showAnim=a.showFunc(a._showArgs);a._hideArgs=b.mixin({},e);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(e){return this.showAnim.play(e||0)},hide:function(e){return this.hideAnim.play(e||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var e={_fire:function(d,f){if(this[d])this[d].apply(this,f||[]);return this}},a=function(d){this._index=-1;this._animations=d||[];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(d,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")}),h=b.connect(this._current,"onBegin",this,function(){this._fire("onBegin",arguments)}),g=b.connect(this._current,"onPlay",this,function(){this._fire("onPlay",arguments);b.disconnect(i);b.disconnect(h);b.disconnect(g)});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 d=b.connect(this._current,"onPause",this,function(){this._fire("onPause",arguments);b.disconnect(d)});this._current.pause()}return this},gotoPercent:function(d,f){this.pause();var i=this.duration*d;this._current=null;b.some(this._animations,function(h){if(h.duration<=i){this._current=h;return true}i-=h.duration;return false});this._current&&this._current.gotoPercent(i/this._current.duration,f);return this},stop:function(d){if(this._current){if(d){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,e);b.fx.chain=function(d){return new a(d)};
var c=function(d){this._animations=d||[];this._connects=[];this.duration=this._finished=0;b.forEach(d,function(i){var h=i.duration;if(i.delay)h+=i.delay;if(this.duration<h)this.duration=h;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(c,{_doAction:function(d,f){b.forEach(this._animations,function(i){i[d].apply(i,f)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(d,f){var i=this._pseudoAnimation;i[d].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(d,f){var i=
this.duration*d;b.forEach(this._animations,function(h){h.gotoPercent(h.duration<i?1:i/h.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(c,e);b.fx.combine=function(d){return new c(d)};b.fx.wipeIn=function(d){var f=d.node=b.byId(d.node),i=f.style,h;d=b.animateProperty(b.mixin({properties:{height:{start:function(){h=
i.overflow;i.overflow="hidden";if(i.visibility=="hidden"||i.display=="none"){i.height="1px";i.display="";i.visibility="";return 1}else{var g=b.style(f,"height");return Math.max(g,1)}},end:function(){return f.scrollHeight}}}},d));b.connect(d,"onEnd",function(){i.height="auto";i.overflow=h});return d};b.fx.wipeOut=function(d){var f=(d.node=b.byId(d.node)).style,i;d=b.animateProperty(b.mixin({properties:{height:{end:1}}},d));b.connect(d,"beforeBegin",function(){i=f.overflow;f.overflow="hidden";f.display=
""});b.connect(d,"onEnd",function(){f.overflow=i;f.height="auto";f.display="none"});return d};b.fx.slideTo=function(d){var f=null,i=null,h=function(g){return function(){var j=b.getComputedStyle(g),k=j.position;f=k=="absolute"?g.offsetTop:parseInt(j.top)||0;i=k=="absolute"?g.offsetLeft:parseInt(j.left)||0;if(k!="absolute"&&k!="relative"){j=b.position(g,true);f=j.y;i=j.x;g.style.position="absolute";g.style.top=f+"px";g.style.left=i+"px"}}}(d.node=b.byId(d.node));h();d=b.animateProperty(b.mixin({properties:{top:d.top||
0,left:d.left||0}},d));b.connect(d,"beforeBegin",d,h);return d}})();return b.fx});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,e){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(c){c._hasBeenBlurred=true;var d=c.disabled||!c.validate||c.validate();if(!d&&!a){b.window.scrollIntoView(c.containerNode||c.domNode);c.focus();a=true}return d}),function(c){return c})},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 c={};b.forEach(this.getDescendants(),function(h){if(h.name)(c[h.name]||(c[h.name]=[])).push(h)});for(var d in c)if(c.hasOwnProperty(d)){var f=c[d],i=b.getObject(d,false,a);if(i!==undefined){b.isArray(i)||(i=[i]);if(typeof f[0].checked=="boolean")b.forEach(f,function(h){h.set("value",b.indexOf(i,h.value)!=-1)});else f[0].multiple?f[0].set("value",i):b.forEach(f,function(h,
g){h.set("value",i[g])})}}},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(c){var d=c.name;if(!(!d||c.disabled)){var f=c.get("value");if(typeof c.checked=="boolean")if(/Radio/.test(c.declaredClass))if(f!==false)b.setObject(d,f,a);else{f=b.getObject(d,false,a);f===undefined&&b.setObject(d,null,a)}else{c=b.getObject(d,false,a);
if(!c){c=[];b.setObject(d,c,a)}f!==false&&c.push(f)}else{c=b.getObject(d,false,a);if(typeof c!="undefined")b.isArray(c)?c.push(f):b.setObject(d,[c,f],a);else b.setObject(d,f,a)}}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=b.map(this._descendants,function(c){return c.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 c=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(h,g){c[h]=g}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var d=this._childConnections=[],f=this._childWatches=[];b.forEach(b.filter(this._descendants,function(h){return h.validate}),function(h){b.forEach(["state","disabled"],function(g){f.push(h.watch(g,function(){c.set("state",
c._getState())}))})});var i=function(){c._onChangeDelayTimer&&clearTimeout(c._onChangeDelayTimer);c._onChangeDelayTimer=setTimeout(function(){delete c._onChangeDelayTimer;c._set("value",c.get("value"))},10)};b.forEach(b.filter(this._descendants,function(h){return h.onChange}),function(h){d.push(c.connect(h,"onChange",i));f.push(h.watch("disabled",i))})},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(a,c,d){this.onValidStateChange(d=="")})},destroy:function(){this.disconnectChildren();
this.inherited(arguments)}});return e.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,e){b.declare("dijit._DialogMixin",null,{attributeMap:e._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=e._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return e._DialogMixin});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(b,e){b.declare("dijit.DialogUnderlay",[e._Widget,e._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,c=this.domNode.style;c.display="none";var d=b.window.getBox();c.top=d.t+"px";c.left=d.l+"px";a.width=d.w+"px";a.height=d.h+"px";c.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new e.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return e.DialogUnderlay});
define("dijit/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(b,e){b.declare("dijit.layout._LayoutWidget",[e._Widget,e._Container,e._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,c){var d=this.domNode;if(a){b.marginBox(d,a);if(a.t)d.style.top=a.t+"px";if(a.l)d.style.left=a.l+"px"}c=c||{};b.mixin(c,a||{});if(!("h"in c)||!("w"in c))c=b.mixin(b.marginBox(d),c);a=b.getComputedStyle(d);var f=b._getMarginExtents(d,a),i=b._getBorderExtents(d,a);c=this._borderBox={w:c.w-(f.w+i.w),h:c.h-(f.h+i.h)};f=b._getPadExtents(d,a);this._contentBox={l:b._toPixelValue(d,a.paddingLeft),t:b._toPixelValue(d,a.paddingTop),
w:c.w-f.w,h:c.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)}});e.layout.marginBox2contentBox=function(a,c){var d=b.getComputedStyle(a),f=b._getMarginExtents(a,
d),i=b._getPadBorderExtents(a,d);return{l:b._toPixelValue(a,d.paddingLeft),t:b._toPixelValue(a,d.paddingTop),w:c.w-(f.w+i.w),h:c.h-(f.h+i.h)}};(function(){var a=function(d){return d.substring(0,1).toUpperCase()+d.substring(1)},c=function(d,f){var i=d.resize?d.resize(f):b.marginBox(d.domNode,f);if(i)b.mixin(d,i);else{b.mixin(d,b.marginBox(d.domNode));b.mixin(d,f)}};e.layout.layoutChildren=function(d,f,i,h,g){f=b.mixin({},f);b.addClass(d,"dijitLayoutContainer");i=b.filter(i,function(j){return j.region!=
"center"&&j.layoutAlign!="client"}).concat(b.filter(i,function(j){return j.region=="center"||j.layoutAlign=="client"}));b.forEach(i,function(j){var k=j.domNode,l=j.region||j.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(h&&h==j.id)k[j.region=="top"||j.region=="bottom"?"h":"w"]=g;if(l=="top"||l=="bottom"){k.w=f.w;c(j,k);f.h-=j.h;if(l=="top")f.t+=j.h;else p.top=f.t+f.h+"px"}else if(l=="left"||l=="right"){k.h=f.h;c(j,k);f.w-=j.w;if(l==
"left")f.l+=j.w;else p.left=f.l+f.w+"px"}else if(l=="client"||l=="center")c(j,f)})}})();return e.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,e){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=e._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"}),c=a.filter(function(f){return b.hasAttr(f,"data-dojo-type")||b.hasAttr(f,"dojoType")||b.hasAttr(f,"widgetId")}),d=b.filter(c.map(e.byNode),function(f){return f&&
f.domNode&&f.resize});if(a.length==c.length&&d.length==1)this._singleChild=d[0];else delete this._singleChild;b.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,c){!this._wasShown&&this.open!==false&&this._onShow();this._resizeCalled=true;this._scheduleLayout(a,c)},_scheduleLayout:function(a,c){if(this._isShown())this._layout(a,c);else{this._needLayout=true;this._changeSize=a;this._resultSize=c}},_layout:function(a,c){a&&b.marginBox(this.domNode,
a);var d=this.containerNode;if(d===this.domNode){c=c||{};b.mixin(c,a||{});if(!("h"in c)||!("w"in c))c=b.mixin(b.marginBox(d),c);this._contentBox=e.layout.marginBox2contentBox(d,c)}else this._contentBox=b.contentBox(d);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(c){c.resize&&c.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,c=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!b.hasClass(a,"dijitHidden")&&c&&c.style&&c.style.display!="none"}},_onShow:function(){this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments);this._wasShown=
true}});return e.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",true,b);(function(){var e=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,c){b.empty(a);if(c){if(typeof c=="string")c=b._toDom(c,a.ownerDocument);if(!c.nodeType&&b.isArrayLike(c))for(var d=c.length,f=0;f<c.length;f=d==c.length?f+1:0)b.place(c[f],a,"last");else b.place(c,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,c){b.mixin(this,a||{});c=this.node=b.byId(this.node||c);if(!this.id)this.id=["Setter",c?c.id||c.tagName:"",e++].join("_")},set:function(a,c){if(undefined!==a)this.content=a;c&&this._mixin(c);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(c){var d=this.onContentError(c);try{a.innerHTML=d}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 c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(c)a=c[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 c={},d;for(d in a)d in c||(this[d]=a[d])},_parse:function(){var a=this.node;try{var c={};b.forEach(["dir","lang","textDir"],
function(f){if(this[f])c[f]=this[f]},this);this.parseResults=b.parser.parse({rootNode:a,noStart:!this.startup,inherited:c,scope:this.parserScope})}catch(d){this._onError("Content",d,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,d){a=this["on"+a+"Error"].call(this,c);if(d)console.error(d,c);else a&&b.html._setNodeContent(this.node,a,true)}});b.html.set=function(a,c,d){if(undefined==c){console.warn("dojo.html.set: no cont argument provided, using empty string");c=""}return d?(new b.html._ContentSetter(b.mixin(d,
{content:c,node:a}))).set():b.html._setNodeContent(a,c,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,e){b.declare("dijit.layout.ContentPane",[e._Widget,e.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(e._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(a,c){if((!a||!a.template)&&c&&!("href"in a)&&!("content"in a)){var d=b.doc.createDocumentFragment();for(c=b.byId(c);c.firstChild;)d.appendChild(c.firstChild);a=b.delegate(a,{content:d})}this.inherited(arguments,[a,c])},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")||e.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,c={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};b.isObject(this.ioArgs)&&b.mixin(c,this.ioArgs);var d=this._xhrDfd=(this.ioMethod||b.xhrGet)(c);d.addCallback(function(f){try{a._isDownloaded=true;a._setContent(f,false);a.onDownloadEnd()}catch(i){a._onError("Content",i)}delete a._xhrDfd;return f});d.addErrback(function(f){d.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(c){console.error("Error "+this.widgetId+" running custom onLoad code: "+c.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(c){c.destroyRecursive&&c.destroyRecursive()});if(a){b.forEach(a.parseResults,
function(c){c.destroyRecursive&&c.domNode&&c.domNode.parentNode==b.body()&&c.destroyRecursive()});delete a.parseResults}b.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,c){this.destroyDescendants();var d=this._contentSetter;if(!(d&&d instanceof b.html._ContentSetter))d=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(h){console.error("Fatal "+this.id+" could not change content due to "+h.message,h)}})});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||{});d.set(b.isObject(a)&&a.domNode?a.domNode:a,f);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();if(!c){if(this._started){this._startChildren();this._scheduleLayout()}this._onLoadHandler(a)}},
_onError:function(a,c,d){this.onLoadDeferred.errback(c);a=this["on"+a+"Error"].call(this,c);if(d)console.error(d,c);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 e.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,e){b.declare("dijit.TooltipDialog",[e.layout.ContentPane,e._Templated,e.form._FormMixin,e._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,c,d){a="dijitTooltipAB"+(d.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(d.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);e.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);this._onShow()},
onClose:function(){this.onHide()},_onKey:function(a){var c=a.target,d=b.keys;a.charOrCode===d.TAB&&this._getFocusItems(this.containerNode);var f=this._firstFocusItem==this._lastFocusItem;if(a.charOrCode==d.ESCAPE){setTimeout(b.hitch(this,"onCancel"),0);b.stopEvent(a)}else if(c==this._firstFocusItem&&a.shiftKey&&a.charOrCode===d.TAB){f||e.focus(this._lastFocusItem);b.stopEvent(a)}else if(c==this._lastFocusItem&&a.charOrCode===d.TAB&&!a.shiftKey){f||e.focus(this._firstFocusItem);b.stopEvent(a)}else a.charOrCode===
d.TAB&&a.stopPropagation()}});return e.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,e){b.declare("dijit._DialogBase",[e._Templated,e.form._FormMixin,e._DialogMixin,e._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),
baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(e._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:e.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&&e._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);e.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(c){return c+"_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),c=b.window.getBox();if(a.w>=c.w||a.h>=c.h){var d=Math.min(a.w,Math.floor(c.w*0.75));a=Math.min(a.h,Math.floor(c.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:d,h:a})}else b.style(this.containerNode,{width:d+"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,c=b.window.getBox(),d=this._relativePosition,f=d?null:b._getBorderBox(a),i=Math.floor(c.l+(d?d.x:(c.w-f.w)/2));c=Math.floor(c.t+(d?d.y:(c.h-f.h)/2));b.style(a,{left:i+"px",top:c+"px"})}},_onKey:function(a){if(a.charOrCode){var c=b.keys,d=a.target;a.charOrCode===c.TAB&&this._getFocusItems(this.domNode);var f=
this._firstFocusItem==this._lastFocusItem;if(d==this._firstFocusItem&&a.shiftKey&&a.charOrCode===c.TAB){f||e.focus(this._lastFocusItem);b.stopEvent(a)}else if(d==this._lastFocusItem&&a.charOrCode===c.TAB&&!a.shiftKey){f||e.focus(this._firstFocusItem);b.stopEvent(a)}else{for(;d;){if(d==this.domNode||b.hasClass(d,"dijitPopup"))if(a.charOrCode==c.ESCAPE)this.onCancel();else return;d=d.parentNode}if(a.charOrCode!==c.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 c=b.window.getBox();if(!this._oldViewport||c.h!=this._oldViewport.h||c.w!=this._oldViewport.w){this.layout();this._oldViewport=c}}));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(){e._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){if(this.autofocus&&e._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);
e.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";e._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"){e._underlay&&e._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);e._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[e.layout.ContentPane,e._DialogBase],{});e._DialogLevelManager={show:function(a,c){var d=e._dialogStack;d[d.length-1].focus=e.getFocus(a);var f=e._underlay;if(!f||f._destroyed)f=e._underlay=new e.DialogUnderlay(c);else f.set(a.underlayAttrs);var i=
d[d.length-1].dialog?d[d.length-1].zIndex+2:950;d.length==1&&f.show();b.style(e._underlay.domNode,"zIndex",i-1);b.style(a.domNode,"zIndex",i);d.push({dialog:a,underlayAttrs:c,zIndex:i})},hide:function(a){var c=e._dialogStack;if(c[c.length-1].dialog==a){c.pop();var d=c[c.length-1];if(c.length==1)e._underlay._destroyed||e._underlay.hide();else{b.style(e._underlay.domNode,"zIndex",d.zIndex-1);e._underlay.set(d.underlayAttrs)}if(a.refocus){c=d.focus;if(!c||d.dialog&&!b.isDescendant(c.node,d.dialog.domNode)){d.dialog._getFocusItems(d.dialog.domNode);
c=d.dialog._firstFocusItem}try{e.focus(c)}catch(f){}}}else{d=b.indexOf(b.map(c,function(i){return i.dialog}),a);d!=-1&&c.splice(d,1)}},isTop:function(a){var c=e._dialogStack;return c[c.length-1].dialog==a}};e._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return e.Dialog});define("text!orion/widgets/templates/OpenResourceDialog.html",function(){return'<div dojoAttachPoint="containerNode">\n\t<div dojoAttachPoint="dialog" dojoType="dijit.Dialog" title="${title}" widgetsInTemplate="true">\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","text!orion/widgets/templates/OpenResourceDialog.html"],function(b,e){return b.declare("orion.widgets.OpenResourceDialog",[e._Widget,e._Templated],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/OpenResourceDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,searchLocation:null,searcher:null,constructor:function(){this.inherited(arguments);this.timeoutId=null;this.time=0;this.searchLocation=
arguments[0]&&arguments[0].SearchLocation;this.searcher=arguments[0]&&arguments[0].searcher;if(!this.searchLocation)throw new Error("Missing required argument: SearchLocation");if(!this.searcher)throw new Error("Missing required argument: searcher");},postMixInProperties:function(){this.inherited(arguments);this.title="Open Resource";this.selectFile="Type the name of a file to open (? = any character, * = any string):";this.searchPlaceHolder="Search"},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.dialog.hide()}}});b.connect(this.dialog,"onMouseUp",function(a){a.target.focus()});b.connect(this.dialog,"onHide",this,function(){this.onHide()});this.dialog.refocus=
false},checkSearch:function(){clearTimeout(this.timeoutId);var a=+new Date;if(a-this.time>this.SEARCH_DELAY){this.time=a;this.doSearch()}else this.timeoutId=setTimeout(b.hitch(this,arguments.callee),50)},doSearch:function(){var a=this.resourceName&&this.resourceName.get("value");if(a){b.place("<div>Searching&#x2026;</div>",this.results,"only");var c=this;setTimeout(function(){var d=a+=/\*$/.test(a)?"":"*";c.searcher.search(c.results,c.searchLocation+"Name:"+d,false,false,b.hitch(c,c.decorateResult),
true)},0)}},decorateResult:function(a){var c=this;b.query("a",a).forEach(function(d){b.connect(d,"onmouseup",function(f){!b.mouseButtons.isMiddle(f)&&!b.isCopyKey(f)&&c.dialog.hide()})})},show:function(){this.dialog.show();this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);setTimeout(b.hitch(this,function(){this.dialog.destroyRecursive();this.destroyRecursive()}),this.dialog.duration)}})});
define("orion/globalCommands",["dojo","dijit","orion/commands","orion/util","orion/textview/keyBinding","dijit/Menu","dijit/MenuItem","dijit/form/DropDownButton","orion/widgets/OpenResourceDialog"],function(b,e,a,c,d){function f(l,p){var m=b.byId("userInfo");if(m){b.addClass(m,"globalActions");var o=e.byId("userMenu");o&&o.destroy();b.empty(m);if(l){c.setUserName(l);o=new e.Menu({style:"display: none;",id:"userMenu"});var q=new e.MenuItem({label:"Profile",onClick:b.hitch(this,function(){window.location=
"/profile/user-profile.html#/users/"+l})});o.addChild(q);q=new e.MenuItem({label:"Sign out",onClick:logout});o.addChild(q);p=new e.form.DropDownButton({label:l,dropDown:o,title:p});b.addClass(p.domNode,"commandImage");b.place(p.domNode,m,"last")}else{p=document.createElement("span");p.appendChild(document.createTextNode("Sign in"));p.onclick=function(){login()};p.id="signOutUser";m.appendChild(p);b.addClass(p,"commandLink")}k=null}else k={userName:l,userStatusText:p}}function i(l,p,m,o){var q=b.byId("pageActions");
if(m)q=b.byId(m);if(q){b.empty(q);l.renderCommands(q,"dom",p,p,"image",null,null,!o)}}function h(l,p,m,o,q,u,r,n){var v;o=b.byId(l);if(!o)throw"could not find banner parent, id was "+l;b.place(g,o,"only");b.place('<div id="keyAssist" class="keyAssistFloat"></div>',document.body,"last");var s=b.byId("primaryNav");if(s)for(var x=p.getServiceReferences("orion.page.link"),B=0;B<x.length;B++)p.getService(x[B]).then(function(){for(var F={},K=x[B].getPropertyNames(),G=0;G<K.length;G++)F[K[G]]=x[B].getProperty(K[G]);
if(F.href&&F.name){K=b.create("a",{href:F.href},s,"last");b.addClass(K,"commandLink");v=document.createTextNode(F.name);b.place(v,K,"only")}});var y=b.byId("search");if(!y)throw"failed to generate HTML for banner";b.connect(y,"onkeypress",function(F){if(F.charOrCode===b.keys.ENTER)if(y.value.length>0)window.location="/search/search.html#"+("/filesearch?q="+y.value)});if(l=b.byId("pageTitle")){v=document.createTextNode(document.title);b.place(v,l,"last")}var z=function(F,K,G){var M=new orion.widgets.OpenResourceDialog({SearchLocation:F,
searcher:K});G&&b.connect(M,"onHide",function(){G.getTextView().focus()});window.setTimeout(function(){M.show()},0)};l=new a.Command({name:"Find File Named...",id:"eclipse.openResource",callback:function(){z("/filesearch?q=",q,r)}});if(r){r.getTextView().setKeyBinding(new d.KeyBinding("r",true,true,false),"Find File Named...");r.getTextView().setAction("Find File Named...",function(){z("/filesearch?q=",q,r);return true})}m.addCommand(l,"global");m.registerCommandContribution("eclipse.openResource",
1,"globalActions",null,new a.CommandKeyBinding("t"),true);var E=b.byId("keyAssist");b.connect(document,"onkeypress",b.hitch(this,function(F){if(F.charOrCode===b.keys.ESCAPE)E.style.display="none"}));n&&n.addHandler({isActive:function(){return E.style.display==="block"},cancel:function(){if(this.isActive()){E.style.display="none";return true}return false}});n=new a.Command({name:"Show Keys",id:"eclipse.keyAssist",callback:function(){b.empty(E);if(r){b.place("<h2>Editor</h2>",E,"last");for(var F=r.getTextView().getActions(false),
K=0;K<F.length;K++)for(var G=F[K],M=r.getTextView().getKeyBindings(G),L=0;L<M.length;L++)b.place("<span>"+c.getUserKeyString(M[L])+" = "+G+"<br></span>",E,"last")}b.place("<h2>Global</h2>",E,"last");m.showKeyBindings(E);E.style.display="block";return true}});m.addCommand(n,"global");m.registerCommandContribution("eclipse.keyAssist",1,"globalActions",null,new a.CommandKeyBinding(191,false,true),true);if(r){r.getTextView().setKeyBinding(new a.CommandKeyBinding("L",true,true),"Show Keys");r.getTextView().setAction("Show Keys",
n.callback)}if(n=b.byId("globalActions")){b.empty(n);m.renderCommands(n,"global",u||{},u,"image")}k&&f(k.userName,k.userStatusText);if(j)(u=b.byId("footer"))&&b.place(j,u,"only")}var g='<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="/index.html"><img class="toolbarLabel" src="/images/orion.gif" 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="/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></td></tr></table>',
j='<img src="http://dev.eclipse.org/small_icons/emblems/emblem-important.png"/> 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=e4&component=Orion&version=0.2">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>',
k=null;return{generateUserInfo:f,generateDomCommandsInBanner:i,generateBanner:h}});
define("dojo/date",["dojo"],function(b){b.getObject("date",true,b);b.date.getDaysInMonth=function(e){var a=e.getMonth();if(a==1&&b.date.isLeapYear(e))return 29;return[31,28,31,30,31,30,31,31,30,31,30,31][a]};b.date.isLeapYear=function(e){e=e.getFullYear();return!(e%400)||!(e%4)&&!!(e%100)};b.date.getTimezoneName=function(e){var a=e.toString(),c="",d=a.indexOf("(");if(d>-1)c=a.substring(++d,a.indexOf(")"));else{d=/([A-Z\/]+) \d{4}$/;if(a=a.match(d))c=a[1];else{a=e.toLocaleString();d=/ ([A-Z\/]+)$/;
if(a=a.match(d))c=a[1]}}return c=="AM"||c=="PM"?"":c};b.date.compare=function(e,a,c){e=new Date(+e);a=new Date(+(a||new Date));if(c=="date"){e.setHours(0,0,0,0);a.setHours(0,0,0,0)}else if(c=="time"){e.setFullYear(0,0,0);a.setFullYear(0,0,0)}if(e>a)return 1;if(e<a)return-1;return 0};b.date.add=function(e,a,c){var d=new Date(+e),f=false,i="Date";switch(a){case "day":break;case "weekday":var h;if(a=c%5){a=a;h=parseInt(c/5)}else{a=c>0?5:-5;h=c>0?(c-5)/5:(c+5)/5}var g=e.getDay(),j=0;if(g==6&&c>0)j=1;
else if(g==0&&c<0)j=-1;g=g+a;if(g==0||g==6)j=c>0?2:-2;c=7*h+a+j;break;case "year":i="FullYear";f=true;break;case "week":c*=7;break;case "quarter":c*=3;case "month":f=true;i="Month";break;default:i="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}i&&d["set"+i](d["get"+i]()+c);f&&d.getDate()<e.getDate()&&d.setDate(0);return d};b.date.difference=function(e,a,c){a=a||new Date;c=c||"day";var d=a.getFullYear()-e.getFullYear(),f=1;switch(c){case "quarter":e=e.getMonth();a=a.getMonth();e=Math.floor(e/3)+
1;a=Math.floor(a/3)+1;a+=d*4;f=a-e;break;case "weekday":d=Math.round(b.date.difference(e,a,"day"));c=parseInt(b.date.difference(e,a,"week"));f=d%7;if(f==0)d=c*5;else{var i=0,h=e.getDay();a=a.getDay();c=parseInt(d/7);f=d%7;e=new Date(e);e.setDate(e.getDate()+c*7);e=e.getDay();if(d>0)switch(true){case h==6:i=-1;break;case h==0:i=0;break;case a==6:i=-1;break;case a==0:i=-2;break;case e+f>5:i=-2}else if(d<0)switch(true){case h==6:i=0;break;case h==0:i=1;break;case a==6:i=2;break;case a==0:i=1;break;case e+
f<0:i=2}d+=i;d-=c*2}f=d;break;case "year":f=d;break;case "month":f=a.getMonth()-e.getMonth()+d*12;break;case "week":f=parseInt(b.date.difference(e,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()-e.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(e){e={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(e)];return e===undefined?
1:e};b.cldr.supplemental._region=function(e){e=b.i18n.normalizeLocale(e);e=e.split("-");var a=e[1];if(a){if(a.length==4)a=e[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"}[e[0]];return a};b.cldr.supplemental.getWeekend=function(e){var a=b.cldr.supplemental._region(e);e={"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(e===undefined)e=6;if(a===undefined)a=0;return{start:e,end:a}};return b.cldr.supplemental});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",true,b);b.regexp.escapeString=function(e,a){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){if(a&&a.indexOf(c)!=-1)return c;return"\\"+c})};b.regexp.buildGroupRE=function(e,a,c){if(!(e instanceof Array))return a(e);for(var d=[],f=0;f<e.length;f++)d.push(a(e[f]));return b.regexp.group(d.join("|"),c)};b.regexp.group=function(e,a){return"("+(a?"?:":"")+e+")"};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 e(d,f,i,h){return h.replace(/([a-z])\1*/ig,function(g){var j,k,l=g.charAt(0);g=g.length;var p=["abbr","wide","narrow"];switch(l){case "G":j=f[g<4?"eraAbbr":"eraNames"][d.getFullYear()<0?0:1];break;case "y":j=d.getFullYear();switch(g){case 1:break;case 2:if(!i.fullYear){j=String(j);j=j.substr(j.length-
2);break}default:k=true}break;case "Q":case "q":j=Math.ceil((d.getMonth()+1)/3);k=true;break;case "M":j=d.getMonth();if(g<3){j=j+1;k=true}else{l=["months-format",p[g-3]].join("-");j=f[l][j]}break;case "w":j=b.date.locale._getWeekOfYear(d,0);k=true;break;case "d":j=d.getDate();k=true;break;case "D":j=b.date.locale._getDayOfYear(d);k=true;break;case "E":j=d.getDay();if(g<3){j=j+1;k=true}else{l=["days-format",p[g-3]].join("-");j=f[l][j]}break;case "a":j=d.getHours()<12?"am":"pm";j=i[j]||f["dayPeriods-format-wide-"+
j];break;case "h":case "H":case "K":case "k":k=d.getHours();switch(l){case "h":j=k%12||12;break;case "H":j=k;break;case "K":j=k%12;break;case "k":j=k||24;break}k=true;break;case "m":j=d.getMinutes();k=true;break;case "s":j=d.getSeconds();k=true;break;case "S":j=Math.round(d.getMilliseconds()*Math.pow(10,g-3));k=true;break;case "v":case "z":if(j=b.date.locale._getZone(d,true,i))break;g=4;case "Z":j=b.date.locale._getZone(d,false,i);j=[j<=0?"+":"-",b.string.pad(Math.floor(Math.abs(j)/60),2),b.string.pad(Math.abs(j)%
60,2)];if(g==4){j.splice(0,0,"GMT");j.splice(3,0,":")}j=j.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+h);}if(k)j=b.string.pad(j,g);return j})}function a(d,f,i,h){var g=function(l){return l};f=f||g;i=i||g;h=h||g;var j=d.match(/(''|[^'])+/g),k=d.charAt(0)=="'";b.forEach(j,function(l,p){if(l){j[p]=(k?i:f)(l.replace(/''/g,"'"));k=!k}else j[p]=""});return h(j.join(""))}function c(d,f,i,h){h=b.regexp.escapeString(h);i.strict||(h=h.replace(" a"," ?a"));return h.replace(/([a-z])\1*/ig,
function(g){var j;j=g.charAt(0);var k=g.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(j){case "y":j="\\d{2,4}";break;case "M":j=k>2?"\\S+?":"1[0-2]|"+l+"[1-9]";break;case "D":j="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p+"[1-9][0-9]|"+l+"[1-9]";break;case "d":j="3[01]|[12]\\d|"+l+"[1-9]";break;case "w":j="[1-4][0-9]|5[0-3]|"+l+"[1-9]";break;case "E":j="\\S+";break;case "h":j="1[0-2]|"+l+"[1-9]";break;case "k":j="1[01]|"+l+"\\d";break;case "H":j=
"1\\d|2[0-3]|"+l+"\\d";break;case "K":j="1\\d|2[0-4]|"+l+"[1-9]";break;case "m":case "s":j="[0-5]\\d";break;case "S":j="\\d{"+k+"}";break;case "a":k=i.am||f["dayPeriods-format-wide-am"];l=i.pm||f["dayPeriods-format-wide-pm"];j=k+"|"+l;if(!i.strict){if(k!=k.toLowerCase())j+="|"+k.toLowerCase();if(l!=l.toLowerCase())j+="|"+l.toLowerCase();if(j.indexOf(".")!=-1)j+="|"+j.replace(/\./g,"")}j=j.replace(/\./g,"\\.");break;default:j=".*"}d&&d.push(g);return"("+j+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=
function(d,f){return f?b.date.getTimezoneName(d):d.getTimezoneOffset()};b.date.locale.format=function(d,f){f=f||{};var i=b.i18n.normalizeLocale(f.locale),h=f.formatLength||"short";i=b.date.locale._getGregorianBundle(i);var g=[];d=b.hitch(this,e,d,i,f);if(f.selector=="year")return a(i["dateFormatItem-yyyy"]||"yyyy",d);var j;if(f.selector!="date")(j=f.timePattern||i["timeFormat-"+h])&&g.push(a(j,d));if(f.selector!="time")(j=f.datePattern||i["dateFormat-"+h])&&g.push(a(j,d));return g.length==1?g[0]:
i["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(k,l){return g[l]})};b.date.locale.regexp=function(d){return b.date.locale._parseInfo(d).regexp};b.date.locale._parseInfo=function(d){d=d||{};var f=b.i18n.normalizeLocale(d.locale);f=b.date.locale._getGregorianBundle(f);var i=d.formatLength||"short",h=d.datePattern||f["dateFormat-"+i],g=d.timePattern||f["timeFormat-"+i];i=d.selector=="date"?h:d.selector=="time"?g:f["dateTimeFormat-"+i].replace(/\{(\d+)\}/g,function(k,l){return[g,h][l]});var j=[];
return{regexp:a(i,b.hitch(this,c,j,f,d)),tokens:j,bundle:f}};b.date.locale.parse=function(d,f){var i=/[\u200E\u200F\u202A\u202E]/g,h=b.date.locale._parseInfo(f),g=h.tokens,j=h.bundle;d=(new RegExp("^"+h.regexp.replace(i,"")+"$",h.strict?"":"i")).exec(d&&d.replace(i,""));if(!d)return null;var k=["abbr","wide","narrow"],l=[1970,0,1,0,0,0,0],p="";d=b.every(d,function(o,q){if(!q)return true;q=g[q-1];var u=q.length;switch(q.charAt(0)){case "y":if(u!=2&&f.strict)l[0]=o;else if(o<100){o=Number(o);u=""+(new Date).getFullYear();
q=u.substring(0,2)*100;u=Math.min(Number(u.substring(2,4))+20,99);l[0]=o<u?q+o:q-100+o}else{if(f.strict)return false;l[0]=o}break;case "M":if(u>2){q=j["months-format-"+k[u-3]].concat();if(!f.strict){o=o.replace(".","").toLowerCase();q=b.map(q,function(n){return n.replace(".","").toLowerCase()})}o=b.indexOf(q,o);if(o==-1)return false}else o--;l[1]=o;break;case "E":case "e":q=j["days-format-"+k[u-3]].concat();if(!f.strict){o=o.toLowerCase();q=b.map(q,function(n){return n.toLowerCase()})}o=b.indexOf(q,
o);if(o==-1)return false;break;case "D":l[1]=0;case "d":l[2]=o;break;case "a":q=f.am||j["dayPeriods-format-wide-am"];u=f.pm||j["dayPeriods-format-wide-pm"];if(!f.strict){var r=/\./g;o=o.replace(r,"").toLowerCase();q=q.replace(r,"").toLowerCase();u=u.replace(r,"").toLowerCase()}if(f.strict&&o!=q&&o!=u)return false;p=o==u?"p":o==q?"a":"";break;case "K":if(o==24)o=0;case "h":case "H":case "k":if(o>23)return false;l[3]=o;break;case "m":l[4]=o;break;case "s":l[5]=o;break;case "S":l[6]=o}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 m=g.join("");h=m.indexOf("d")!=-1;m=m.indexOf("M")!=-1;if(!d||m&&i.getMonth()>l[1]||h&&i.getDate()>l[2])return null;if(m&&i.getMonth()<l[1]||h&&i.getDate()<l[2])i=b.date.add(i,"hour",1);return i}})();(function(){var e=[];b.date.locale.addCustomFormats=function(a,c){e.push({pkg:a,name:c})};b.date.locale._getGregorianBundle=function(a){var c={};b.forEach(e,
function(d){d=b.i18n.getLocalization(d.pkg,d.name,a);c=b.mixin(c,d)},this);return c}})();b.date.locale.addCustomFormats("dojo.cldr","gregorian");b.date.locale.getNames=function(e,a,c,d){var f;d=b.date.locale._getGregorianBundle(d);e=[e,c,a];if(c=="standAlone"){c=e.join("-");f=d[c];if(f[0]==1)f=undefined}e[1]="format";return(f||d[e.join("-")]).concat()};b.date.locale.isWeekend=function(e,a){a=b.cldr.supplemental.getWeekend(a);e=(e||new Date).getDay();if(a.end<a.start){a.end+=7;if(e<a.start)e+=7}return e>=
a.start&&e<=a.end};b.date.locale._getDayOfYear=function(e){return b.date.difference(new Date(e.getFullYear(),0,1,e.getHours()),e)+1};b.date.locale._getWeekOfYear=function(e,a){if(arguments.length==1)a=0;var c=(new Date(e.getFullYear(),0,1)).getDay(),d=(c-a+7)%7;d=Math.floor((b.date.locale._getDayOfYear(e)+d-1)/7);c==a&&d++;return d};return b.date.locale});
define("orion/auth",["dojo","orion/globalCommands","dojo/date/locale"],function(b,e){function a(j,k,l,p){i(k.xhr,function(){var m=b.xhrGet(j);l&&m.then(l,p)})}function c(j,k){i(k.xhr,function(){b.xhrPost(j)})}function d(j,k){i(k.xhr,function(){b.xhrDelete(j)})}function f(j,k){i(k.xhr,function(){b.xhrPut(j)})}function i(j,k){if(j.status===403){if(g==null)g=new dijit.Dialog({title:"Forbidden access"});g.set("content",j.message);g.show()}if(j.status===401){var l=b.subscribe("/auth",function(){k();b.unsubscribe(l)});
if(!h){h=true;eval(j.responseText)}}}var h=false,g;b.addOnLoad(function(){window.dojo=b;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=e;b.xhrGet({url:"/auth2",handleAs:"javascript",headers:{"Orion-Version":"1"}})});return{handleGetAuthenticationError:a,handlePostAuthenticationError:c,handleDeleteAuthenticationError:d,handlePutAuthenticationError:f,handleAuthenticationError:i}});
define("orion/preferences",["dojo","orion/auth"],function(b,e){function a(h,g,j){this._name=h;this._userProvider=g;this._defaultsProvider=j;this._flushPending=false;this._defaults=this._store=null}function c(h){this.location=h;this._currentPromises={}}function d(h){this.location=h;this._currentPromise=null}function f(h,g,j){g=g||"/prefs/user";j=j||"/defaults.pref";this._userProvider=new c(g);this._defaultsProvider=new d(j);this._serviceRegistration=h.registerService("orion.core.preference",this)}
a.prototype={_flush:function(){return this._userProvider.put(this._name,this._store)},_scheduleFlush:function(){if(!this._flushPending){this._flushPending=true;window.setTimeout(b.hitch(this,function(){if(this._flushPending){this._flushPending=false;this._flush()}}),0)}},keys:function(){var h,g=[];for(h in this._store)this._store.hasOwnProperty(h)&&h.charAt(0)!=="/"&&g.push(h);for(h in this._defaults)this._defaults.hasOwnProperty(h)&&!this._store.hasOwnProperty(h)&&h.charAt(0)!=="/"&&g.push(h);return g},
get:function(h){if(h.charAt(0)==="/")throw new Error("Bad character in key name: "+h);return this._store.hasOwnProperty(h)?this._store[h]:this._defaults[h]},put:function(h,g){if(h.charAt(0)==="/")throw new Error("Bad character in key name: "+h);if(this._store[h]!==g){this._store[h]=g;this._scheduleFlush()}},remove:function(h){if(h.charAt(0)==="/")throw new Error("Bad character in key name: "+h);if(this._store[h]){delete this._store[h];this._scheduleFlush();return true}return false},clear:function(){var h;
for(h in this._store)this._store.hasOwnProperty(h)&&h.charAt(0)!=="/"&&delete this._store[h];this._scheduleFlush()},sync:function(){if(this._flushPending){this._flushPending=false;return this._flush()}return this._defaultsProvider.get(this._name).then(b.hitch(this,function(h){this._defaults=h;return this._userProvider.get(this._name).then(b.hitch(this,function(g){this._store=g}))}))},flush:function(){this._flush()}};var i={get:function(h,g){h=localStorage.getItem(h);if(h==null)return null;h=JSON.parse(h);
if(g||h._expires&&h._expires>(new Date).getTime()){delete h._expires;return h}return null},set:function(h,g){g._expires=(new Date).getTime()+36E5;var j=JSON.stringify(g);localStorage.setItem(h,j);delete g._expires}};c.prototype={get:function(h){if(this._currentPromises[h])return this._currentPromises[h];var g=new b.Deferred,j="/orion/preferences/user"+h,k=i.get(j);if(k!==null)g.resolve(k);else{this._currentPromises[h]=g;var l=this;b.xhrGet({url:this.location+h,headers:{"Orion-Version":"1"},handleAs:"json",
timeout:15E3,load:function(p){i.set(j,p);delete l._currentPromises[h];g.resolve(p)},error:function(p,m){p.log=false;if(m.xhr.status===401)e.handleGetAuthenticationError(this,m);else if(m.xhr.status===404){p={};i.set(j,p);delete l._currentPromises[h];g.resolve(p)}else{delete l._currentPromises[h];g.resolve(i.get(j,true)||{})}},failOk:true})}return g},put:function(h,g){var j=new b.Deferred;i.set("/orion/preferences/user"+h,g);b.xhrPut({url:this.location+h,putData:JSON.stringify(g),headers:{"Orion-Version":"1"},
handleAs:"json",contentType:"application/json",timeout:15E3,load:function(){j.resolve()},error:function(k,l){l.xhr.status===401?e.handlePutAuthenticationError(this,l):j.resolve()}});return j}};d.prototype={get:function(h){if(this._currentPromise)return this._currentPromise;var g=new b.Deferred,j=i.get("/orion/preferences/default");if(j!==null)g.resolve(j[h]||{});else{this._currentPromise=g;var k=this;b.xhrGet({url:this.location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(l){i.set("/orion/preferences/default",
l);k._currentPromise=null;g.resolve(l[h]||{})},error:function(l,p){if(p.xhr.status===401)e.handleGetAuthenticationError(p.xhr,p);else if(p.xhr.status===404){i.set("/orion/preferences/default",{});k._currentPromise=null;g.resolve({})}else{k._currentPromise=null;l=i.get("/orion/preferences/default",true);l!==null?g.resolve(l[h]||{}):g.resolve({})}}})}return g}};f.prototype={getPreferences:function(h){var g=new a(h,this._userProvider,this._defaultsProvider);return g.sync().then(function(){return g})}};
return{Preferences:a,PreferencesService:f}});
define("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(e,a,c,d){var f=[];b.Deferred.call(this);var i=this;e.length===0&&!a&&this.resolve([0,[]]);var h=0;b.forEach(e,function(g,j){function k(l,p){f[j]=[l,p];h++;h===e.length&&i.resolve(f)}g.then(function(l){a?i.resolve([j,l]):k(true,l)},function(l){c?i.reject(l):k(false,l);if(d)return null;throw l;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(e){e=new b.DeferredList(e,false,true,false);
e.addCallback(function(a){var c=[];b.forEach(a,function(d){c.push(d[1])});return c});return e};return b.DeferredList});
define("orion/pluginregistry",["dojo","orion/serviceregistry","dojo/DeferredList"],function(b,e){var a=a||{};a.Plugin=function(c,d,f){function i(r,n,v,s){if(!l)throw new Error("plugin not connected");var x=o++;q[String(x)]=s;f.postMessage({id:x,serviceId:r,method:n,params:v},l)}function h(r){var n={};if(r.methods)for(var v=0;v<r.methods.length;v++){var s=r.methods[v];n[s]=function(x){return function(){var B=Array.prototype.slice.call(arguments),y=new b.Deferred;k._load().then(function(){i(r.serviceId,
x,B,y)});return y.promise}}(s)}return n}function g(){var r=d.services;if(r)for(var n=0;n<r.length;n++){var v=r[n],s=h(v);u[v.serviceId]=f.registerService(v.type,s,v.properties)}}function j(r){try{if(r.method)if("plugin"===r.method){if(d){if(JSON.stringify(d)!=JSON.stringify(r.params[0])){for(var n in u)if(u.hasOwnProperty(n)){u[n].unregister();delete u[n]}d=r.params[0];g();f.updatePlugin(k)}}else{d=r.params[0];g()}if(!m){m=true;p.resolve(k)}}else if("dispatchEvent"===r.method){var v=u[r.serviceId];
v.dispatchEvent.apply(v,r.params)}else throw new Error("Bad response method: "+r.method);else{var s=q[String(r.id)];delete q[String(r.id)];r.error?s.reject(r.error):s.resolve(r.result)}}catch(x){console.log(x)}}var k=this,l=null,p=new b.Deferred,m=false,o=0,q={},u={};this.getLocation=function(){return c};this.getData=function(){return d};this.uninstall=function(){for(var r in u)if(u.hasOwnProperty(r)){u[r].unregister();delete u[r]}if(l){f.disconnect(l);l=null}f.uninstallPlugin(this)};this.getServiceReferences=
function(){var r=[],n;for(n in u)u.hasOwnProperty(n)&&r.push(u[n].getServiceReference());return r};this._load=function(r){if(!l){l=f.connect(c,j);window.setTimeout(function(){if(!m){if(!r){d={};f.updatePlugin(k)}p.reject(new Error("Load timeout for plugin: "+c))}},15E3)}return p.promise};if(typeof c!=="string")throw new Error("invalid url:"+c);d&&g()};a.PluginRegistry=function(c,d){function f(){var n,v,s=[];if((n=k["/orion/preferences/default"]?JSON.parse(k["/orion/preferences/default"]):null)&&n["/plugins"]){q=
n["/plugins"];for(v in q)if(q.hasOwnProperty(v)){v=g(v);n="plugin."+v;if(k[n]){n=JSON.parse(k[n]);n=new a.Plugin(v,n,r);l.push(n)}else s.push(j.installPlugin(v))}}(u=k["/orion/preferences/user/plugins"]?JSON.parse(k["/orion/preferences/user/plugins"]):null)||(u={});for(v in u)if(u.hasOwnProperty(v)&&v!=="_expires"){v=g(v);n="plugin."+v;if(k[n]){n=JSON.parse(k[n]);n=new a.Plugin(v,n,r);l.push(n)}else s.push(j.installPlugin(v))}o=new b.DeferredList(s)}function i(n){var v;k["plugin."+n.getLocation()]=
JSON.stringify(n.getData());for(v in q)if(q.hasOwnProperty(v))if(n.getLocation()===g(v))return;for(v in u)if(u.hasOwnProperty(v))if(n.getLocation()===g(v))return;u[n.getLocation()]=true;k["/orion/preferences/user/plugins"]=JSON.stringify(u)}function h(n){var v;delete k["plugin."+n.getLocation()];for(v in u)if(u.hasOwnProperty(v))if(n.getLocation()===g(v)){delete u[n.getLocation()];k["/orion/preferences/user/plugins"]=JSON.stringify(u);return}}function g(n){if(n.indexOf("://")===-1){var v=document.createElement("a");
v.href=n;return v.href}return n}var j=this,k=d||localStorage||{},l=[],p=[],m=new e.EventTarget,o,q={},u;window.addEventListener("message",function(n){for(var v=0,s=n.source;v<p.length;v++)if(s===p[v].target){p[v].handler(JSON.parse(n.data));break}},false);var r={registerService:b.hitch(c,c.registerService),connect:function(n,v){var s=document.createElement("iframe");s.id=n;s.name=n;s.style.display="none";s.style.visibility="hidden";s.src=n;document.body.appendChild(s);n={iframe:s,target:s.contentWindow,
handler:v,url:n};p.push(n);return n},disconnect:function(n){for(var v=0;v<p.length;v++)if(n===p[v]){p.splice(v,1);try{document.body.removeChild(n.iframe)}catch(s){}break}},uninstallPlugin:function(n){h(n);for(var v=0;v<l.length;v++)if(n===l[v]){l.splice(v,1);m.dispatchEvent("pluginRemoved",n);break}},updatePlugin:function(n){k["plugin."+n.getLocation()]=JSON.stringify(n.getData());m.dispatchEvent("pluginUpdated",n)},postMessage:function(n,v){v.target.postMessage(JSON.stringify(n),v.url)}};this.startup=
function(){return o.promise};this.shutdown=function(){for(var n=0;n<p.length;n++)try{document.body.removeChild(p[n].iframe)}catch(v){}};this.installPlugin=function(n,v){n=g(n);for(var s=new b.Deferred,x,B=0;B<l.length;B++)if(n===l[B].getLocation()){x=l[B];break}if(x)if(x.getData())s.resolve(x);else{var y=function(z){if(z.getLocation()===n){s.resolve(z);m.removeEventListener("pluginAdded",y)}};m.addEventListener("pluginAdded",y)}else{x=new a.Plugin(n,v,r);l.push(x);if(x.getData()){i(x);m.dispatchEvent("pluginAdded",
x);s.resolve(x)}else x._load(!!o).then(function(){i(x);m.dispatchEvent("pluginAdded",x);s.resolve(x)},function(z){s.reject(z)})}return s.promise};this.getPlugins=function(){for(var n=[],v=0;v<l.length;v++)l[v].getData()&&n.push(l[v]);return n};this.getPlugin=function(n){n=g(n);for(var v=0;v<l.length;v++)if(l[v].getData()&&n===l[v].getLocation())return l[v];return null};this.addEventListener=function(n,v){m.addEventListener(n,v)};this.removeEventListener=function(n,v){m.removeEventListener(n,v)};f()};
return a});
define("orion/selection",["dojo"],function(b){function e(a){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.selection",this);this._selections=[]}e.prototype={getSelection:function(a){a(this._getSingleSelection())},getSelections:function(a){a(this._selections)},_getSingleSelection:function(){if(this._selections&&this._selections.length>0)return this._selections[0];return null},setSelections:function(a){this._selections=b.isArray(a)?a:a?[a]:null;this._serviceRegistration.dispatchEvent("selectionChanged",this._getSingleSelection(),
this._selections)}};e.prototype.constructor=e;return{Selection:e}});
define("orion/status",["dojo"],function(b){function e(a,c,d){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.message",this);this.domId=c;this.progressDomId=d||c}e.prototype={setMessage:function(a,c){b.place(window.document.createTextNode(a),this.domId,"only");if(typeof c==="number"){var d=this;window.setTimeout(function(){var f=b.byId(d.domId);(typeof f.textContent==="string"?f.textContent:f.innerText)===a&&b.place(window.document.createTextNode(""),d.domId,"only")},
c)}},setErrorMessage:function(a){var c=a.responseText||a;try{c=JSON.parse(c)}catch(d){}a=c.Message||c;var f="red";if(c.Severity)switch(c.Severity){case "Warning":f="#FFCC00";break;case "Error":f="red";break;case "Info":case "Ok":f="green";break}c=b.create("span",{style:{color:f}});b.place(window.document.createTextNode(a),c);b.place(c,this.domId,"only")},setProgressMessage:function(a){b.place(window.document.createTextNode(a),this.progressDomId,"only")},setProgressResult:function(a){a=a.responseText||
a;try{a=JSON.parse(a)}catch(c){}var d=a.Message||a,f="/images/info.gif",i="info";if(a.Severity)switch(a.Severity){case "Warning":f="/images/warning.gif";i="warning";break;case "Error":f="/images/error.gif";i="error";break}var h=new Image;h.alt=i;h.title="Press to clear message";h.name=i;h.src=f;b.style(h,"opacity","0.7");b.connect(h,"onmouseover",this,function(){b.style(h,"opacity","1")});b.connect(h,"onmouseout",this,function(){b.style(h,"opacity","0.7")});b.connect(h,"onclick",this,function(){this.setProgressMessage("")});
b.place(h,this.progressDomId,"only");a.HTML?b.place(d,this.progressDomId,"last"):b.place(window.document.createTextNode("   "+d),this.progressDomId,"last")},showWhile:function(a,c){var d=this;d.setProgressMessage(c);return a.then(function(f){if(f&&f.Location&&f.Message&&f.Running)return d._doProgressWhile(f);d.setProgressMessage("");f&&f.Result&&d.setProgressResult(f.Result);return f})},_doProgressWhile:function(a){var c=new b.Deferred;window.setTimeout(function(){b.xhrGet({url:a.Location,headers:{"Orion-Version":"1"},
handleAs:"json",timeout:15E3,load:function(d){c.callback(d)}})},2E3);return this.showWhile(c,a.Message)}};e.prototype.constructor=e;return{StatusReportingService:e}});define("orion/dialogs",[],function(){function b(e){this._serviceRegistry=e;this._serviceRegistration=e.registerService("orion.page.dialog",this)}b.prototype={confirm:function(e,a){a(window.confirm(e))},openFiles:function(){}};b.prototype.constructor=b;return{DialogService:b}});
define("orion/users",[],function(){function b(e){this._serviceRegistry=e;this._serviceRegistration=e.registerService("IUsers",this);this._user=null}b.prototype={setUser:function(e){this._user=e},getUser:function(e){e(this._user)}};return{UserService:b}});
define("orion/ssh/sshTools",[],function(){var b=b||{};b.SshService=function(){function e(a){if(a){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.net.ssh",this)}}e.prototype={_KNOWN_HOSTS:"known_hosts",addKnownHosts:function(a,c){c||(c="");var d=localStorage.getItem(c+this._KNOWN_HOSTS);if(d)d.indexOf(a)<0&&localStorage.setItem(c+this._KNOWN_HOSTS,d+"\n"+a);else localStorage.setItem(c+this._KNOWN_HOSTS,a)},clearKnownhosts:function(a){a||(a="");localStorage.removeItem(a+
this._KNOWN_HOSTS)},getKnownHosts:function(a){a||(a="");return localStorage.getItem(a+this._KNOWN_HOSTS)}};return e}();return b});
define("orion/favorites",["dojo","orion/util","orion/commands"],function(b,e,a){function c(f){this._favorites=[];this._searches=[];this._init(f);this._initializeFavorites()}function d(f){var i=f.parent;if(typeof i==="string")i=b.byId(i);if(!i)throw"no parent";if(!f.serviceRegistry)throw"no service registry";this._parent=i;this._registry=f.serviceRegistry;var h=this,g=new a.Command({name:"Add Favorite",tooltip:"Add link as favorite",image:"/images/add.gif",id:"eclipse.addExternalFave",callback:b.hitch(this,
function(p,m,o){this.getUserURL(o)})}),j=new a.Command({name:"Delete",image:"/images/delete.gif",id:"eclipse.deleteFave",visibleWhen:function(p){return p.isFavorite},callback:function(p){window.confirm("Do you want to remove "+p.name+" from favorites?")&&f.serviceRegistry.getService("orion.core.favorite").then(function(m){m.removeFavorite(p.path)})}}),k=new a.Command({name:"Rename",image:"/images/rename.gif",id:"eclipse.renameFave",visibleWhen:function(p){return p.isFavorite},callback:b.hitch(this,
function(p,m,o,q){this.editFavoriteName(p,m,o,q)})}),l=new a.Command({name:"Delete",image:"/images/delete.gif",id:"eclipse.deleteSearch",visibleWhen:function(p){return p.isSearch},callback:function(p){window.confirm("Do you want to remove "+p.name+" from favorites?")&&f.serviceRegistry.getService("orion.core.favorite").then(function(m){m.removeSearch(p.query)})}});this._registry.getService("orion.page.command").then(function(p){p.addCommand(j,"object");p.addCommand(k,"object");p.addCommand(l,"object");
p.addCommand(g,"dom");p.registerCommandContribution("eclipse.renameFave",1);p.registerCommandContribution("eclipse.deleteFave",2);p.registerCommandContribution("eclipse.deleteSearch",1);p.registerCommandContribution("eclipse.addExternalFave",1,"faveCommands")});this._registry.getService("orion.core.favorite").then(function(p){p.getFavorites().then(function(m){h.render(m.navigator,m.search)});p.addEventListener("favoritesChanged",function(m){h.render(m.navigator,m.search)})})}c.prototype={_init:function(f){this._registry=
f.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.favorite",this)},_notifyListeners:function(){this._serviceRegistration.dispatchEvent("favoritesChanged",{navigator:this._favorites,search:this._searches})},makeFavorites:function(f){f=b.isArray(f)?f:[f];for(var i=0;i<f.length;i++){var h=f[i],g=h.ChildrenLocation?h.ChildrenLocation:h.Location;g=e.makeRelative(g);this.addFavorite(h.Name,g,h.Directory)}this._storeFavorites();this._notifyListeners()},addFavoriteUrl:function(f){this.addFavorite(f,
f,false,true)},addFavorite:function(f,i,h,g){this._favorites.push({name:f,path:i,directory:h,isFavorite:true,isExternalResource:g});this._storeFavorites();this._notifyListeners()},removeFavorite:function(f){for(var i in this._favorites)if(this._favorites[i].path===f){this._favorites.splice(i,1);break}this._storeFavorites();this._notifyListeners()},renameFavorite:function(f,i){var h=false;for(var g in this._favorites)if(this._favorites[g].path===f){var j=this._favorites[g];if(j.name!==i){j.name=i;
h=true}}if(h){this._storeFavorites();this._notifyListeners()}},addFavoriteSearch:function(f,i){this._searches.push({name:f,query:i,isSearch:true});this._storeSearches();this._notifyListeners()},removeSearch:function(f){for(var i in this._searches)if(this._searches[i].query===f){this._searches.splice(i,1);break}this._storeSearches();this._notifyListeners()},_initializeFavorites:function(){var f=this;this._registry.getService("orion.core.preference").then(function(i){i.getPreferences("/window/favorites").then(function(h){var g,
j=h.get("navigate");if(typeof j==="string")j=JSON.parse(j);if(j)for(g in j){j[g].isFavorite=true;f._favorites.push(j[g])}h=h.get("search");if(typeof h==="string")h=JSON.parse(h);if(h)for(g in h){h[g].isSearch=true;f._searches.push(h[g])}f._notifyListeners()})})},_storeFavorites:function(){var f=this._favorites;this._registry.getService("orion.core.preference").then(function(i){return i.getPreferences("/window/favorites")}).then(function(i){i.put("navigate",f)})},_storeSearches:function(){var f=this._searches;
this._registry.getService("orion.core.preference").then(function(i){return i.getPreferences("/window/favorites")}).then(function(i){i.put("search",f)})},getFavorites:function(){return{navigator:this._favorites,search:this._searches}}};c.prototype.constructor=c;d.prototype={getUserURL:function(f){var i=this._registry,h=b.byId("spacer");e.getUserText(f+"EditBox",h,true,"",function(g){i.getService("orion.core.favorite").then(function(j){j.addFavoriteUrl(g)})},null,"Type or paste a URL")},editFavoriteName:function(f,
i,h,g){var j=this._registry;i=b.byId("fave"+g);g=b.byId(h).parentNode;b.style(i,"display","none");g=g.childNodes;for(var k=0;k<g.length;k++)b.style(g[k],"display","none");e.getUserText(h+"EditBox",i,true,f.name,function(l){j.getService("orion.core.favorite").then(function(p){p.renameFavorite(f.path,l)})},function(){for(var l=b.byId(h).parentNode.childNodes,p=0;p<l.length;p++)b.style(l[p],"display","inline")})},render:function(f,i){var h=b.create("table",{id:"faveTable"});b.addClass(h,"favoritesTable");
var g=b.create("thead",null,h);g=b.create("tr",null,g);var j=b.create("td",null,g);b.addClass(j,"paneHeadingContainer");b.place("<span class='paneHeading'>Favorites</span>",j,"only");g=b.create("td",null,g);b.style(g,"textAlign","right");b.addClass(g,"paneHeadingContainer");b.place("<span id='faveCommands' class='paneHeadingToolbar'></span>",g,"only");for(var k,l,p,m=b.create("tbody",null,h),o=0;o<f.length;o++){var q=f[o];if(q.isExternalResource)l=q.path;else{l=q.directory?"/navigate/table.html#"+
q.path:"/edit/edit.html#"+q.path;if(l==="#")l=""}var u=q.directory?"navlinkonpage":"navlink",r="fave"+o;g=b.create("tr");g.id="row"+r;k=b.create("td",null,g,"last");b.style(k,"whiteSpace","nowrap");j=b.create("td",{id:g.id+"actions"},g,"last");b.style(j,"whiteSpace","nowrap");b.style(j,"textAlign","right");k=b.create("a",{id:r,href:l,className:u},k,"only");b.place(window.document.createTextNode(q.name),k,"only");p=b.create("span",{id:g.id+"actionsWrapper"},j,"only");b.style(p,"visibility","hidden");
this._registry.getService("orion.page.command").then(function(x){x.renderCommands(p,"object",q,this,"image",null,o)});b.place(g,m,"last");b.connect(g,"onmouseover",g,function(){var x=b.byId(this.id+"actionsWrapper");b.style(x,"visibility","visible")});b.connect(g,"onmouseout",g,function(){var x=b.byId(this.id+"actionsWrapper");b.style(x,"visibility","hidden")})}b.place(h,this._parent,"only");var n=b.byId("faveCommands");this._registry.getService("orion.page.command").then(function(x){x.renderCommands(n,
"dom",this,this,"image")});f=b.create("tr",null,h);f=b.create("td",{colspan:2},f);b.create("span",{id:"spacer"},f);if(i.length>0){g=b.create("thead",null,h);g=b.create("tr",null,g);j=b.create("td",null,g);b.addClass(j,"paneHeadingContainer");b.place("<span class='paneHeading'>Searches</span>",j,"only");g=b.create("td",null,g);b.style(g,"textAlign","right");b.addClass(g,"paneHeadingContainer");m=b.create("tbody",null,h);for(var v=0;v<i.length;v++){var s=i[v];l="/search/search.html#"+s.query;g=b.create("tr");
g.id="searchRow"+v;k=b.create("td",null,g,"last");j=b.create("td",{id:g.id+"actions"},g,"last");b.style(j,"textAlign","right");k=b.create("a",{href:l},k,"only");b.place(window.document.createTextNode(s.name),k,"only");p=b.create("span",{id:g.id+"actionsWrapper"},j,"only");b.style(p,"visibility","hidden");this._registry.getService("orion.page.command").then(function(x){x.renderCommands(p,"object",s,this,"image",null,v)});b.place(g,m,"last");b.connect(g,"onmouseover",g,function(){var x=b.byId(this.id+
"actionsWrapper");b.style(x,"visibility","visible")});b.connect(g,"onmouseout",g,function(){var x=b.byId(this.id+"actionsWrapper");b.style(x,"visibility","hidden")})}}}};d.prototype.constructor=d;return{FavoritesService:c,Favorites:d}});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(e,a,c){var d=document.cookie;if(arguments.length==1){var f=d.match(new RegExp("(?:^|; )"+b.regexp.escapeString(e)+"=([^;]*)"));return f?decodeURIComponent(f[1]):undefined}else{c=c||{};d=c.expires;if(typeof d=="number"){var i=new Date;i.setTime(i.getTime()+d*24*60*60*1E3);d=c.expires=i}if(d&&d.toUTCString)c.expires=d.toUTCString();a=encodeURIComponent(a);d=e+"="+a;for(f in c){d+="; "+f;i=c[f];if(i!==true)d+="="+i}document.cookie=
d}};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,e){b.declare("dijit.layout.BorderContainer",e.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 c=a.region;if(c){this.inherited(arguments);b.addClass(a.domNode,this.baseClass+"Pane");var d=this.isLeftToRight();if(c=="leading")c=d?"left":"right";if(c=="trailing")c=d?"right":"left";if(c!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget){var f=b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter");d=new f({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters});d.isSplitter=
true;a._splitterWidget=d;b.place(d.domNode,a.domNode,"after");d.startup()}a.region=c}},layout:function(){this._layoutChildren()},addChild:function(){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var c=a.region,d=a._splitterWidget;if(d){d.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,c=="top"||c=="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(c){return c.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,c){if(this._borderBox&&this._borderBox.h){var d=b.map(this.getChildren(),function(i,h){return{pane:i,weight:[i.region=="center"?Infinity:0,i.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(i.region)?1:-1),h]}},this);d.sort(function(i,h){i=i.weight;h=h.weight;for(var g=0;g<i.length;g++)if(i[g]!=h[g])return i[g]-h[g];return 0});var f=[];b.forEach(d,function(i){i=i.pane;f.push(i);i._splitterWidget&&f.push(i._splitterWidget)});
e.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,c)}},destroyRecursive:function(){b.forEach(this.getChildren(),function(a){var c=a._splitterWidget;c&&c.destroy();delete a._splitterWidget});this.inherited(arguments)}});b.extend(e._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[e._Widget,e._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",c=b.marginBox(this.child.domNode)[a],d=b.filter(this.container.getChildren(),function(f){return f.region=="center"})[0];a=b.marginBox(d.domNode)[a];return Math.min(this.child.maxSize,c+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 c=this._factor,d=this.horizontal,f=d?"pageY":"pageX",i=a[f],h=this.domNode.style;d=d?"h":"w";var g=b.marginBox(this.child.domNode)[d],j=this._computeMaxSize(),k=this.child.minSize||20;d=this.region;var l=d==
"top"||d=="bottom"?"top":"left",p=parseInt(h[l],10),m=this._resize,o=b.hitch(this.container,"_layoutChildren",this.child.id);d=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(d,"onmousemove",this._drag=function(q,u){q=q[f]-i;var r=c*q+g,n=Math.max(Math.min(r,j),k);if(m||u)o(n);h[l]=q+p+c*(n-r)+"px"}),b.connect(d,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(d,"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 c=this.horizontal,d=1,f=b.keys;switch(a.charOrCode){case c?f.UP_ARROW:f.LEFT_ARROW:d*=-1;case c?f.DOWN_ARROW:f.RIGHT_ARROW:break;default:return}c=b._getMarginSize(this.child.domNode)[c?"h":"w"]+this._factor*d;this.container._layoutChildren(this.child.id,Math.max(Math.min(c,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",[e._Widget,e._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 e.layout.BorderContainer});
define("orion/searchClient",["dojo","dijit","orion/auth","orion/util","dijit/form/Button","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(b,e,a,c){function d(f){this.registry=f.serviceRegistry}d.prototype={search:function(f,i,h,g,j,k){b.xhrGet({url:i,handleAs:"json",headers:{Accept:"application/json","Orion-Version":"1"},sync:false,timeout:15E3,error:b.hitch(this,function(l,p){this.handleError(l,f);a.handleGetAuthenticationError(this,p,b.hitch(this,this.showSearchResult),b.hitch(this,
function(m){this.handleError(m,f)}));return l}),load:b.hitch(this,function(l){this.showSearchResult(f,i,h,g,j,k,l)})})},handleError:function(f,i){console.error(f);var h=document.createTextNode(f);b.place(h,i,"only");return f},saveSearch:function(f,i){this.registry.getService("orion.core.favorite").then(function(h){h.addFavoriteSearch(f,i)})},formatHighlight:function(f){f=f.split(/(##match|match##)/);for(var i=b.create("div"),h,g=0;g<f.length;g++){var j=f[g];if(j==="##match")h=b.create("b");else if(j===
"match##"){b.place(h,i,"last");h=null}else b.place(document.createTextNode(j),h||i,"last")}return i},showSearchResult:function(f,i,h,g,j,k,l){i=window.location.href.split("#")[0];var p=i.substring(0,i.length-window.location.pathname.length),m=false;b.empty(f);i=l.responseHeader.params.q;i=i.substring(i.indexOf("}")+1);if(l.response.numFound>0){for(var o=document.createElement("table"),q=0;q<l.response.docs.length;q++){var u=l.response.docs[q];if(!u.Directory&&u.Location!==h){var r;if(!m){m=true;if(g){r=
o.insertRow(0).insertCell(0);r.innerHTML="<h2>Search Results</h2>"}}r=o.insertRow(-1).insertCell(0);r.colspan=2;var n=document.createElement("a");b.place(document.createTextNode(u.Name),n);u.LineNumber&&b.place(document.createTextNode(" (Line "+u.LineNumber+")"),n);var v;v=i&&u.LineNumber?p+"/edit/edit.html#"+c.hashFromPosition(u.Location,null,null,u.LineNumber,u.Offset,i.length):p+"/edit/edit.html#"+u.Location;n.setAttribute("href",v);r.appendChild(n);if(!k&&l.highlighting&&l.highlighting[u.Id]&&
l.highlighting[u.Id].Text){u=l.highlighting[u.Id].Text[0];r=o.insertRow(-1).insertCell(0);r.colspan=2;b.place(this.formatHighlight(u),r,"only")}}}b.place(o,f,"last");typeof j==="function"&&j(f)}if(!m){f=b.place("<div>No matches found for </div>",f,"only");f=b.create("b",null,f,"last");b.place(document.createTextNode(i),f,"only")}}};d.prototype.constructor=d;return{Searcher:d}});
define("orion/fileClient",["dojo","orion/auth"],function(b,e){function a(c){this.fileService=c}a.prototype={setFileService:function(c){this.fileService=c},fetchChildren:function(){return this._doServiceCall("fetchChildren",arguments)},createWorkspace:function(){return this._doServiceCall("createWorkspace",arguments)},loadWorkspaces:function(){return this._doServiceCall("loadWorkspaces",arguments)},loadWorkspace:function(){return this._doServiceCall("loadWorkspace",arguments)},createProject:function(){return this._doServiceCall("createProject",
arguments)},createFolder:function(){return this._doServiceCall("createFolder",arguments)},createFile:function(){return this._doServiceCall("createFile",arguments)},deleteFile:function(){return this._doServiceCall("deleteFile",arguments)},moveFile:function(){return this._doServiceCall("moveFile",arguments)},copyFile:function(){return this._doServiceCall("copyFile",arguments)},read:function(){return this._doServiceCall("read",arguments)},write:function(){return this._doServiceCall("write",arguments)},
remoteImport:function(){return this._doServiceCall("remoteImport",arguments)},remoteExport:function(){return this._doServiceCall("remoteExport",arguments)},_doServiceCall:function(c,d){var f=new b.Deferred,i=this.fileService;i[c].apply(i,d).then(function(h){f.callback(h)},function(h){h.status===401||h.status===403?e.handleAuthenticationError(h,function(){i[c].apply(i,d).then(function(g){f.callback(g)},function(g){f.errback(g)})}):f.errback(h)});return f}};a.prototype.constructor=a;return{FileClient:a}});
define("text!dijit/form/templates/CheckBox.html",function(){return'<div class="dijit dijitReset dijitInline" role="presentation"\n\t><input\n\t \t${!nameAttrSetting} type="${type}" ${checkedAttrSetting}\n\t\tclass="dijitReset dijitCheckBoxInput"\n\t\tdojoAttachPoint="focusNode"\n\t \tdojoAttachEvent="onclick:_onClick"\n/></div>'});define("dijit/form/ToggleButton",["dojo","dijit","dijit/form/Button"],function(b,e){return e.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(b,e){b.declare("dijit.form.CheckBox",e.form.ToggleButton,{templateString:b.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:b.delegate(e.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);b.attr(this.focusNode,"readOnly",a);e.setWaiState(this.focusNode,
"readonly",a)},_setValueAttr:function(a,c){if(typeof a=="string"){this._set("value",a);b.attr(this.focusNode,"value",a);a=true}this._created&&this.set("checked",a,c)},_getValueAttr:function(){return this.checked?this.value:false},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value=="")this.value="on";this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments)},_fillContent:function(){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||
false);this._set("value",this.params.value||"on");b.attr(this.focusNode,"value",this.value)},_onFocus:function(){this.id&&b.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&b.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)},_onClick:function(a){if(this.readOnly){b.stopEvent(a);return false}return this.inherited(arguments)}});b.declare("dijit.form.RadioButton",e.form.CheckBox,{type:"radio",
baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);if(this._created)if(a){var c=this;b.query("INPUT[type=radio]",this.focusNode.form||b.doc).forEach(function(d){if(d.name==c.name&&d!=c.focusNode&&d.form==c.focusNode.form)(d=e.getEnclosingWidget(d))&&d.checked&&d.set("checked",false)})}},_clicked:function(){this.checked||this.set("checked",true)}});return e.form.CheckBox});
define("dijit/form/Form",["dojo","dijit","dijit/_Widget","dijit/_Templated","dijit/form/_FormMixin","dijit/layout/_ContentPaneResizeMixin"],function(b,e){b.declare("dijit.form.Form",[e._Widget,e._Templated,e.form._FormMixin,e.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:b.delegate(e._Widget.prototype.attributeMap,
{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?"name='"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(a){this.encType=a;b.attr(this.domNode,"encType",a);if(b.isIE)this.domNode.encoding=a},postCreate:function(){if(b.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var a=this.srcNodeRef.attributes.getNamedItem("encType");a&&!a.specified&&typeof a.value==
"string"&&this.set("encType",a.value)}this.inherited(arguments)},reset:function(a){var c={returnValue:true,preventDefault:function(){this.returnValue=false},stopPropagation:function(){},currentTarget:a?a.target:this.domNode,target:a?a.target:this.domNode};this.onReset(c)!==false&&c.returnValue&&this.inherited(arguments,[])},onReset:function(){return true},_onReset:function(a){this.reset(a);b.stopEvent(a);return false},_onSubmit:function(a){var c=e.form.Form.prototype;if(this.execute!=c.execute||this.onExecute!=
c.onExecute){b.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues())}this.onSubmit(a)===false&&b.stopEvent(a)},onSubmit:function(){return this.isValid()},submit:function(){this.onSubmit()!==false&&this.containerNode.submit()}});return e.form.Form});
define("dojo/data/util/filter",["dojo"],function(b){b.getObject("data.util.filter",true,b);b.data.util.filter.patternToRegExp=function(e,a){for(var c="^",d=null,f=0;f<e.length;f++){d=e.charAt(f);switch(d){case "\\":c+=d;f++;c+=e.charAt(f);break;case "*":c+=".*";break;case "?":c+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":c+="\\";default:c+=d}}c+="$";return a?new RegExp(c,"mi"):new RegExp(c,"m")};return b.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(b){b.getObject("data.util.sorter",true,b);b.data.util.sorter.basicComparator=function(e,a){var c=-1;if(e===null)e=undefined;if(a===null)a=undefined;if(e==a)c=0;else if(e>a||e==null)c=1;return c};b.data.util.sorter.createSortFunction=function(e,a){function c(l,p,m,o){return function(q,u){q=o.getValue(q,l);u=o.getValue(u,l);return p*m(q,u)}}for(var d=[],f,i=a.comparatorMap,h=b.data.util.sorter.basicComparator,g=0;g<e.length;g++){f=e[g];var j=f.attribute;
if(j){f=f.descending?-1:1;var k=h;if(i){if(typeof j!=="string"&&"toString"in j)j=j.toString();k=i[j]||h}d.push(c(j,f,k,a))}}return function(l,p){for(var m=0;m<d.length;){var o=d[m++](l,p);if(o!==0)return o}return 0}};return b.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(b){b.getObject("data.util.simpleFetch",true,b);b.data.util.simpleFetch.fetch=function(e){e=e||{};if(!e.store)e.store=this;var a=this,c=function(f,i){if(i.onError)i.onError.call(i.scope||b.global,f,i)},d=function(f,i){var h=i.abort||null,g=false,j=i.start?i.start:0,k=i.count&&i.count!==Infinity?j+i.count:f.length;i.abort=function(){g=true;h&&h.call(i)};var l=i.scope||b.global;if(!i.store)i.store=a;i.onBegin&&i.onBegin.call(l,
f.length,i);i.sort&&f.sort(b.data.util.sorter.createSortFunction(i.sort,a));if(i.onItem)for(var p=j;p<f.length&&p<k;++p){var m=f[p];g||i.onItem.call(l,m,i)}if(i.onComplete&&!g){p=null;i.onItem||(p=f.slice(j,k));i.onComplete.call(l,p,i)}};this._fetchItems(e,d,c);return e};return b.data.util.simpleFetch});
define("dojo/data/ItemFileReadStore",["dojo","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(b){b.declare("dojo.data.ItemFileReadStore",null,{constructor:function(e){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this.url=this._ccUrl=this._jsonFileUrl=e.url;this._jsonData=e.data;this.data=null;this._datatypeMap=e.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return b.date.stamp.fromISOString(a)}});
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(e.urlPreventCache!==undefined)this.urlPreventCache=e.urlPreventCache?true:false;if(e.hierarchical!==undefined)this.hierarchical=e.hierarchical?true:false;if(e.clearOnClose)this.clearOnClose=true;if("failOk"in e)this.failOk=e.failOk?true:
false},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(e){if(!this.isItem(e))throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(e){if(typeof e!=="string")throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(e,a,c){e=this.getValues(e,a);return e.length>0?e[0]:c},getValues:function(e,a){this._assertIsItem(e);this._assertIsAttribute(a);
return(e[a]||[]).slice(0)},getAttributes:function(e){this._assertIsItem(e);var a=[];for(var c in e)c!==this._storeRefPropName&&c!==this._itemNumPropName&&c!==this._rootItemPropName&&c!==this._reverseRefMap&&a.push(c);return a},hasAttribute:function(e,a){this._assertIsItem(e);this._assertIsAttribute(a);return a in e},containsValue:function(e,a,c){var d=undefined;if(typeof c==="string")d=b.data.util.filter.patternToRegExp(c,false);return this._containsValue(e,a,c,d)},_containsValue:function(e,a,c,d){return b.some(this.getValues(e,
a),function(f){if(f!==null&&!b.isObject(f)&&d){if(f.toString().match(d))return true}else if(c===f)return true})},isItem:function(e){if(e&&e[this._storeRefPropName]===this)if(this._arrayOfAllItems[e[this._itemNumPropName]]===e)return true;return false},isItemLoaded:function(e){return this.isItem(e)},loadItem:function(e){this._assertIsItem(e.item)},getFeatures:function(){return this._features},getLabel:function(e){if(this._labelAttr&&this.isItem(e))return this.getValue(e,this._labelAttr)},getLabelAttributes:function(){if(this._labelAttr)return[this._labelAttr];
return null},_fetchItems:function(e,a,c){var d=this,f=function(j,k){var l=[],p,m;if(j.query){var o;p=j.queryOptions?j.queryOptions.ignoreCase:false;var q={};for(m in j.query){o=j.query[m];if(typeof o==="string")q[m]=b.data.util.filter.patternToRegExp(o,p);else if(o instanceof RegExp)q[m]=o}for(p=0;p<k.length;++p){var u=true,r=k[p];if(r===null)u=false;else for(m in j.query){o=j.query[m];d._containsValue(r,m,o,q[m])||(u=false)}u&&l.push(r)}}else for(p=0;p<k.length;++p){m=k[p];m!==null&&l.push(m)}a(l,
j)};if(this._loadFinished)f(e,this._getItemsArray(e.queryOptions));else{if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:e,
filter:f});else{this._loadInProgress=true;var i=b.xhrGet({url:d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});i.addCallback(function(j){try{d._getItemsFromLoadedData(j);d._loadFinished=true;d._loadInProgress=false;f(e,d._getItemsArray(e.queryOptions));d._handleQueuedFetches()}catch(k){d._loadFinished=true;d._loadInProgress=false;c(k,e)}});i.addErrback(function(j){d._loadInProgress=false;c(j,e)});var h=null;if(e.abort)h=e.abort;e.abort=function(){i&&
i.fired===-1&&i.cancel();h&&h.call(e)}}else if(this._jsonData)try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;f(e,this._getItemsArray(e.queryOptions))}catch(g){c(g,e)}else c(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),e)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var e=0;e<this._queuedFetches.length;e++){var a=this._queuedFetches[e],c=a.args;(a=a.filter)?
a(c,this._getItemsArray(c.queryOptions)):this.fetchItemByIdentity(c)}this._queuedFetches=[]}},_getItemsArray:function(e){if(e&&e.deep)return this._arrayOfAllItems;return this._arrayOfTopLevelItems},close:function(){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null)&&this.data==null)console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload  information has not been provided.  Please set 'url' or 'data' to the appropriate value before the next fetch");
this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[]}},_getItemsFromLoadedData:function(e){function a(q){return q!==null&&typeof q==="object"&&(!b.isArray(q)||d)&&!b.isFunction(q)&&(q.constructor==Object||b.isArray(q))&&typeof q._reference==="undefined"&&typeof q._type==="undefined"&&typeof q._value==="undefined"&&f.hierarchical}function c(q){f._arrayOfAllItems.push(q);for(var u in q){var r=q[u];
if(r)if(b.isArray(r))for(var n=0;n<r.length;++n){var v=r[n];a(v)&&c(v)}else a(r)&&c(r)}}var d=false,f=this;this._labelAttr=e.label;var i,h;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=e.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){h=this._arrayOfTopLevelItems[i];if(b.isArray(h))d=true;c(h);h[this._rootItemPropName]=true}var g={},j;for(i=0;i<this._arrayOfAllItems.length;++i){h=this._arrayOfAllItems[i];for(j in h){if(j!==this._rootItemPropName){var k=h[j];if(k!==null)b.isArray(k)||
(h[j]=[k]);else h[j]=[null]}g[j]=j}}for(;g[this._storeRefPropName];)this._storeRefPropName+="_";for(;g[this._itemNumPropName];)this._itemNumPropName+="_";for(;g[this._reverseRefMap];)this._reverseRefMap+="_";if(g=e.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=g;for(i=0;i<this._arrayOfAllItems.length;++i){h=this._arrayOfAllItems[i];e=h[g];e=e[0];if(Object.hasOwnProperty.call(this._itemsByIdentity,e))if(this._jsonFileUrl)throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+
this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+g+"].  Value collided: ["+e+"]");else{if(this._jsonData)throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+g+"].  Value collided: ["+e+"]");}else this._itemsByIdentity[e]=h}}else this._features["dojo.data.api.Identity"]=Number;for(i=0;i<this._arrayOfAllItems.length;++i){h=this._arrayOfAllItems[i];h[this._storeRefPropName]=
this;h[this._itemNumPropName]=i}for(i=0;i<this._arrayOfAllItems.length;++i){h=this._arrayOfAllItems[i];for(j in h){e=h[j];for(g=0;g<e.length;++g){k=e[g];if(k!==null&&typeof k=="object"){if("_type"in k&&"_value"in k){var l=k._type,p=this._datatypeMap[l];if(p)if(b.isFunction(p))e[g]=new p(k._value);else if(b.isFunction(p.deserialize))e[g]=p.deserialize(k._value);else throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
else throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+l+"'");}if(k._reference){k=k._reference;if(b.isObject(k))for(l=0;l<this._arrayOfAllItems.length;++l){p=this._arrayOfAllItems[l];var m=true;for(var o in k)if(p[o]!=k[o])m=false;if(m)e[g]=p}else e[g]=this._getItemByIdentity(k);if(this.referenceIntegrity){k=e[g];this.isItem(k)&&this._addReferenceToMap(k,h,j)}}else this.isItem(k)&&this.referenceIntegrity&&this._addReferenceToMap(k,
h,j)}}}}},_addReferenceToMap:function(){},getIdentity:function(e){var a=this._features["dojo.data.api.Identity"];if(a===Number)return e[this._itemNumPropName];else if(e=e[a])return e[0];return null},fetchItemByIdentity:function(e){var a,c;if(this._loadFinished){a=this._getItemByIdentity(e.identity);if(e.onItem){c=e.scope?e.scope:b.global;e.onItem.call(c,a)}}else{var d=this;if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:e});else{this._loadInProgress=true;c=b.xhrGet({url:d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});c.addCallback(function(f){var i=e.scope?e.scope:b.global;try{d._getItemsFromLoadedData(f);
d._loadFinished=true;d._loadInProgress=false;a=d._getItemByIdentity(e.identity);e.onItem&&e.onItem.call(i,a);d._handleQueuedFetches()}catch(h){d._loadInProgress=false;e.onError&&e.onError.call(i,h)}});c.addErrback(function(f){d._loadInProgress=false;if(e.onError)e.onError.call(e.scope?e.scope:b.global,f)})}else if(this._jsonData){d._getItemsFromLoadedData(d._jsonData);d._jsonData=null;d._loadFinished=true;a=d._getItemByIdentity(e.identity);if(e.onItem){c=e.scope?e.scope:b.global;e.onItem.call(c,a)}}}},
_getItemByIdentity:function(e){var a=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,e))a=this._itemsByIdentity[e];else if(Object.hasOwnProperty.call(this._arrayOfAllItems,e))a=this._arrayOfAllItems[e];if(a===undefined)a=null;return a},getIdentityAttributes:function(){var e=this._features["dojo.data.api.Identity"];return e===Number?null:[e]},_forceLoad:function(){var e=this;if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl){var a=b.xhrGet({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true});a.addCallback(function(c){try{if(e._loadInProgress!==true&&!e._loadFinished){e._getItemsFromLoadedData(c);e._loadFinished=true}else if(e._loadInProgress)throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");
}catch(d){console.log(d);throw d;}});a.addErrback(function(c){throw c;})}else if(this._jsonData){e._getItemsFromLoadedData(e._jsonData);e._jsonData=null;e._loadFinished=true}}});b.extend(b.data.ItemFileReadStore,b.data.util.simpleFetch);return b.data.ItemFileReadStore});
define("orion/widgets/_OrionDialogMixin",["dojo","dijit"],function(b,e){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(e._curFocus,
this.domNode))e._curFocus=null;if(b.isDescendant(e._prevFocus,this.domNode))e._prevFocus=null;this.destroyRecursive()}),this.duration)}})});define("text!orion/widgets/templates/NewItemDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" 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<!-- Actual content here --\>\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 dojoAttachPoint="itemNameLabel" for="${id}_itemName" style="padding-right: 10">${itemNameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 30em; text-align: left;">\n\t\t\t\t\t<input dojoType="dijit.form.ValidationTextBox" dojoAttachPoint="itemName" id="${id}_itemName" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemURLLabel" for="itemURL" style="padding-right: 10">Server Path:</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; width: 40em; text-align: left; padding:5;">\n\t\t\t\t\t<input dojoAttachPoint="itemURL" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo1">\n\t\t\t\t<div style="display: table-cell;"></div>\n\t\t\t\t<div style="display: table-cell;">\n\t\t\t\t\t<input dojoAttachPoint="createCheckbox" id="${id}_createCheckbox" dojoType="dijit.form.CheckBox" checked="checked" value="on" type="checkbox">\n\t\t\t\t\t<label dojoAttachPoint="createCheckboxLabel" for="${id}_createCheckbox">Create if doesn\'t exist</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"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="newItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/NewItemDialog",["dojo","dijit","dijit/Dialog","dijit/form/CheckBox","dijit/form/CheckBox","dijit/form/Form","dijit/form/ValidationTextBox","dojo/data/ItemFileReadStore","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/NewItemDialog.html"],function(b,e){b.declare("orion.widgets.NewItemDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/NewItemDialog.html"),constructor:function(a){this.options=
a||{};this.options.advanced=this.options.advanced||false},postMixInProperties:function(){this.inherited(arguments);this.itemNameLabelText=this.options.label||"Name:"},postCreate:function(){this.inherited(arguments);if(this.options.advanced){this.itemAdvancedInfo.style.display="table-row";this.itemAdvancedInfo1.style.display="table-row";b.connect(this.itemURL,"onkeyup",null,b.hitch(this,this.onURLChange))}else{this.itemAdvancedInfo.style.display="none";this.itemAdvancedInfo1.style.display="none"}},
execute:function(){var a,c;this.newItemButton.focus();if(this.options.advanced){a=this.itemURL.value.replace(/^\s+|\s+$/g,"");c=this.createCheckbox.get("disabled")?false:this.createCheckbox.get("checked")}this.options.func(this.itemName.value,a&&a!==""?a:undefined,c)},onURLChange:function(){var a=this.itemURL.value;if(a.match(/^file:\/\//))this.createCheckbox.set("disabled",false);else a.match(/^[a-zA-Z][a-zA-Z]+:\/\/.+/)?this.createCheckbox.set("disabled",true):this.createCheckbox.set("disabled",
false)}})});define("text!dijit/templates/TreeNode.html",function(){return'<div class="dijitTreeNode" role="presentation"\n\t><div dojoAttachPoint="rowNode" class="dijitTreeRow" role="presentation" dojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick"\n\t\t><img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" role="presentation"\n\t\t/><span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" role="presentation"\n\t\t></span\n\t\t><span dojoAttachPoint="contentNode"\n\t\t\tclass="dijitTreeContent" role="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" role="presentation"\n\t\t\t/><span dojoAttachPoint="labelNode" class="dijitTreeLabel" role="treeitem" tabindex="-1" aria-selected="false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer" role="presentation" style="display: none;"></div>\n</div>'});
define("text!dijit/templates/Tree.html",function(){return'<div class="dijitTree dijitTreeContainer" role="tree"\n\tdojoAttachEvent="onkeypress:_onKeyPress">\n\t<div class="dijitInline dijitTreeIndent" style="position: absolute; top: -9999px" dojoAttachPoint="indentDetector"></div>\n</div>'});
define("dijit/tree/TreeStoreModel",["dojo","dijit"],function(b,e){b.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(a){b.mixin(this,a);this.connects=[];a=this.store;if(!a.getFeatures()["dojo.data.api.Identity"])throw new Error("dijit.Tree: store must support dojo.data.Identity");if(a.getFeatures()["dojo.data.api.Notification"])this.connects=this.connects.concat([b.connect(a,
"onNew",this,"onNewItem"),b.connect(a,"onDelete",this,"onDeleteItem"),b.connect(a,"onSet",this,"onSetItem")])},destroy:function(){b.forEach(this.connects,b.disconnect)},getRoot:function(a,c){this.root?a(this.root):this.store.fetch({query:this.query,onComplete:b.hitch(this,function(d){if(d.length!=1)throw new Error(this.declaredClass+": query "+b.toJson(this.query)+" returned "+d.length+" items, but must return exactly one item");this.root=d[0];a(this.root)}),onError:c})},mayHaveChildren:function(a){return b.some(this.childrenAttrs,
function(c){return this.store.hasAttribute(a,c)},this)},getChildren:function(a,c,d){var f=this.store;if(f.isItemLoaded(a)){for(var i=[],h=0;h<this.childrenAttrs.length;h++){var g=f.getValues(a,this.childrenAttrs[h]);i=i.concat(g)}var j=0;this.deferItemLoadingUntilExpand||b.forEach(i,function(l){f.isItemLoaded(l)||j++});j==0?c(i):b.forEach(i,function(l,p){f.isItemLoaded(l)||f.loadItem({item:l,onItem:function(m){i[p]=m;--j==0&&c(i)},onError:d})})}else{var k=b.hitch(this,arguments.callee);f.loadItem({item:a,
onItem:function(l){k(l,c,d)},onError:d})}},isItem:function(a){return this.store.isItem(a)},fetchItemByIdentity:function(a){this.store.fetchItemByIdentity(a)},getIdentity:function(a){return this.store.getIdentity(a)},getLabel:function(a){return this.labelAttr?this.store.getValue(a,this.labelAttr):this.store.getLabel(a)},newItem:function(a,c,d){var f={parent:c,attribute:this.childrenAttrs[0]},i;if(this.newItemIdAttr&&a[this.newItemIdAttr])this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(h){if(h)this.pasteItem(h,null,c,true,d);else(i=this.store.newItem(a,f))&&d!=undefined&&this.pasteItem(i,c,c,false,d)}});else(i=this.store.newItem(a,f))&&d!=undefined&&this.pasteItem(i,c,c,false,d)},pasteItem:function(a,c,d,f,i){var h=this.store,g=this.childrenAttrs[0];c&&b.forEach(this.childrenAttrs,function(k){if(h.containsValue(c,k,a)){if(!f){var l=b.filter(h.getValues(c,k),function(p){return p!=a});h.setValues(c,k,l)}g=k}});if(d)if(typeof i=="number"){var j=h.getValues(d,g).slice();
j.splice(i,0,a);h.setValues(d,g,j)}else h.setValues(d,g,h.getValues(d,g).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,c){c&&this.getChildren(c.item,b.hitch(this,function(d){this.onChildrenChange(c.item,d)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,c){b.indexOf(this.childrenAttrs,c)!=-1?this.getChildren(a,b.hitch(this,function(d){this.onChildrenChange(a,d)})):this.onChange(a)}});return e.tree.TreeStoreModel});
define("dijit/tree/ForestStoreModel",["dojo","dijit","dijit/tree/TreeStoreModel"],function(b,e){b.declare("dijit.tree.ForestStoreModel",e.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(a){this.root={store:this,root:true,id:a.rootId,label:a.rootLabel,children:a.rootChildren}},mayHaveChildren:function(a){return a===this.root||this.inherited(arguments)},getChildren:function(a,c,d){if(a===this.root)this.root.children?c(this.root.children):this.store.fetch({query:this.query,
onComplete:b.hitch(this,function(f){this.root.children=f;c(f)}),onError:d});else this.inherited(arguments)},isItem:function(a){return a===this.root?true:this.inherited(arguments)},fetchItemByIdentity:function(a){if(a.identity==this.root.id){var c=a.scope?a.scope:b.global;a.onItem&&a.onItem.call(c,this.root)}else this.inherited(arguments)},getIdentity:function(a){return a===this.root?this.root.id:this.inherited(arguments)},getLabel:function(a){return a===this.root?this.root.label:this.inherited(arguments)},
newItem:function(a,c){if(c===this.root){this.onNewRootItem(a);return this.store.newItem(a)}else return this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,c,d,f,i){if(c===this.root)f||this.onLeaveRoot(a);e.tree.TreeStoreModel.prototype.pasteItem.call(this,a,c===this.root?null:c,d===this.root?null:d,f,i);d===this.root&&this.onAddToRoot(a)},onAddToRoot:function(a){console.log(this,": item ",a," added to root")},onLeaveRoot:function(a){console.log(this,": item ",a," removed from root")},
_requeryTop:function(){var a=this.root.children||[];this.store.fetch({query:this.query,onComplete:b.hitch(this,function(c){this.root.children=c;if(a.length!=c.length||b.some(a,function(d,f){return c[f]!=d}))this.onChildrenChange(this.root,c)})})},onNewItem:function(){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){b.indexOf(this.root.children,a)!=-1&&this._requeryTop();this.inherited(arguments)},onSetItem:function(){this._requeryTop();this.inherited(arguments)}});return e.tree.ForestStoreModel});
define("dojo/dnd/Container",["dojo","dojo/dnd/common","dojo/parser"],function(b){b.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(e,a){this.node=b.byId(e);a||(a={});this.creator=a.creator||null;this.skipForm=a.skipForm;this.parent=a.dropParent&&b.byId(a.dropParent);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");a&&a._skipStartup||this.startup();this.events=[b.connect(this.node,"onmouseover",this,"onMouseOver"),b.connect(this.node,
"onmouseout",this,"onMouseOut"),b.connect(this.node,"ondragstart",this,"onSelectStart"),b.connect(this.node,"onselectstart",this,"onSelectStart")]},creator:function(){},getItem:function(e){return this.map[e]},setItem:function(e,a){this.map[e]=a},delItem:function(e){delete this.map[e]},forInItems:function(e,a){a=a||b.global;var c=this.map,d=b.dnd._empty;for(var f in c)f in d||e.call(a,c[f],f,this);return a},clearItems:function(){this.map={}},getAllNodes:function(){return b.query("> .dojoDndItem",this.parent)},
sync:function(){var e={};this.getAllNodes().forEach(function(a){if(a.id){var c=this.getItem(a.id);if(c){e[a.id]=c;return}}else a.id=b.dnd.getUniqueId();c=a.getAttribute("dndType");var d=a.getAttribute("dndData");e[a.id]={data:d||a.innerHTML,type:c?c.split(/\s*,\s*/):["text"]}},this);this.map=e;return this},insertNodes:function(e,a,c){if(this.parent.firstChild)if(a){if(!c)c=this.parent.firstChild}else{if(c)c=c.nextSibling}else c=null;if(c)for(a=0;a<e.length;++a){var d=this._normalizedCreator(e[a]);
this.setItem(d.node.id,{data:d.data,type:d.type});this.parent.insertBefore(d.node,c)}else for(a=0;a<e.length;++a){d=this._normalizedCreator(e[a]);this.setItem(d.node.id,{data:d.data,type:d.type});this.parent.appendChild(d.node)}return this},destroy:function(){b.forEach(this.events,b.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(e,a){e._skipStartup=true;return new b.dnd.Container(a,e)},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()==
"table"){var e=this.parent.getElementsByTagName("tbody");if(e&&e.length)this.parent=e[0]}}this.defaultCreator=b.dnd._defaultCreator(this.parent);this.sync()},onMouseOver:function(e){for(var a=e.relatedTarget;a;){if(a==this.node)break;try{a=a.parentNode}catch(c){a=null}}if(!a){this._changeState("Container","Over");this.onOverEvent()}a=this._getChildByEvent(e);if(this.current!=a){this.current&&this._removeItemClass(this.current,"Over");a&&this._addItemClass(a,"Over");this.current=a}},onMouseOut:function(e){for(e=
e.relatedTarget;e;){if(e==this.node)return;try{e=e.parentNode}catch(a){e=null}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null}this._changeState("Container","");this.onOutEvent()},onSelectStart:function(e){if(!this.skipForm||!b.dnd.isFormElement(e))b.stopEvent(e)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(e,a){var c="dojoDnd"+e;e=e.toLowerCase()+"State";b.replaceClass(this.node,c+a,c+this[e]);this[e]=a},_addItemClass:function(e,a){b.addClass(e,
"dojoDndItem"+a)},_removeItemClass:function(e,a){b.removeClass(e,"dojoDndItem"+a)},_getChildByEvent:function(e){if(e=e.target)for(var a=e.parentNode;a;e=a,a=e.parentNode)if(a==this.parent&&b.hasClass(e,"dojoDndItem"))return e;return null},_normalizedCreator:function(e,a){e=(this.creator||this.defaultCreator).call(this,e,a);if(!b.isArray(e.type))e.type=["text"];if(!e.node.id)e.node.id=b.dnd.getUniqueId();b.addClass(e.node,"dojoDndItem");return e}});b.dnd._createNode=function(e){if(!e)return b.dnd._createSpan;
return function(a){return b.create(e,{innerHTML:a})}};b.dnd._createTrTd=function(e){var a=b.create("tr");b.create("td",{innerHTML:e},a);return a};b.dnd._createSpan=function(e){return b.create("span",{innerHTML:e})};b.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};b.dnd._defaultCreator=function(e){e=e.tagName.toLowerCase();var a=e=="tbody"||e=="thead"?b.dnd._createTrTd:b.dnd._createNode(b.dnd._defaultCreatorNodes[e]);return function(c,d){var f=c&&b.isObject(c),i;if(f&&c.tagName&&c.nodeType&&
c.getAttribute){i=c.getAttribute("dndData")||c.innerHTML;f=(f=c.getAttribute("dndType"))?f.split(/\s*,\s*/):["text"];c=c}else{i=f&&c.data?c.data:c;f=f&&c.type?c.type:["text"];c=(d=="avatar"?b.dnd._createSpan:a)(String(i))}if(!c.id)c.id=b.dnd.getUniqueId();return{node:c,data:i,type:f}}};return b.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(b,e){b.getObject("tree",true,b);e.tree._compareNodes=function(a,c){if(a===c)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-c.sourceIndex;else if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(c)&2?1:-1;else if(document.createRange){var d=doc.createRange();d.setStartBefore(a);a=doc.createRange();a.setStartBefore(c);return d.compareBoundaryPoints(d.END_TO_END,
a)}else throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");};b.declare("dijit.tree._dndContainer",null,{constructor:function(a,c){this.tree=a;this.node=a.domNode;b.mixin(this,c);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");this.events=[b.connect(this.node,"onmouseenter",this,"onOverEvent"),b.connect(this.node,"onmouseleave",this,"onOutEvent"),b.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),
b.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),b.connect(this.node,"ondragstart",b,"stopEvent"),b.connect(this.node,"onselectstart",b,"stopEvent")]},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},destroy:function(){b.forEach(this.events,b.disconnect);this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(a,c){var d="dojoDnd"+a;a=a.toLowerCase()+"State";b.replaceClass(this.node,d+c,d+this[a]);
this[a]=c},_addItemClass:function(a,c){b.addClass(a,"dojoDndItem"+c)},_removeItemClass:function(a,c){b.removeClass(a,"dojoDndItem"+c)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}});return e.tree._dndContainer});
define("dijit/tree/_dndSelector",["dojo","dijit","dojo/dnd/common","dijit/tree/_dndContainer"],function(b,e){b.declare("dijit.tree._dndSelector",e.tree._dndContainer,{constructor:function(){this.selection={};this.anchor=null;e.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(b.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),b.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),b.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"))},singular:false,
getSelectedTreeNodes:function(){var a=[],c=this.selection;for(var d in c)a.push(c[d]);return a},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,c){this.setSelection(this.getSelectedTreeNodes().concat([a]));if(c)this.anchor=a;return a},removeTreeNode:function(a){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[a]));return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},
setSelection:function(a){var c=this.getSelectedTreeNodes();b.forEach(this._setDifference(c,a),b.hitch(this,function(d){d.setSelected(false);this.anchor==d&&delete this.anchor;delete this.selection[d.id]}));b.forEach(this._setDifference(a,c),b.hitch(this,function(d){d.setSelected(true);this.selection[d.id]=d}));this._updateSelectionProperties()},_setDifference:function(a,c){b.forEach(c,function(d){d.__exclude__=true});a=b.filter(a,function(d){return!d.__exclude__});b.forEach(c,function(d){delete d.__exclude__});
return a},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),c=[],d=[];b.forEach(a,function(f){d.push(f);c.push(f.getTreePath())});a=b.map(d,function(f){return f.item});this.tree._set("paths",c);this.tree._set("path",c[0]||[]);this.tree._set("selectedNodes",d);this.tree._set("selectedNode",d[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onMouseDown:function(a){if(!(!this.current||this.tree.isExpandoNode(a.target,this.current)))if(a.button!=
b.mouseButtons.RIGHT){b.stopEvent(a);var c=this.current,d=b.isCopyKey(a),f=c.id;if(!this.singular&&!a.shiftKey&&this.selection[f])this._doDeselect=true;else{this._doDeselect=false;this.userSelect(c,d,a.shiftKey)}}},onMouseUp:function(a){if(this._doDeselect){this._doDeselect=false;this.userSelect(this.current,b.isCopyKey(a),a.shiftKey)}},onMouseMove:function(){this._doDeselect=false},userSelect:function(a,c,d){if(this.singular)if(this.anchor==a&&c)this.selectNone();else{this.setSelection([a]);this.anchor=
a}else if(d&&this.anchor){d=this.anchor;if(e.tree._compareNodes(this.anchor.rowNode,a.rowNode)<0){c=d;a=a}else{c=a;a=d}for(nodes=[];c!=a;){nodes.push(c);c=this.tree._getNextNode(c)}nodes.push(a);this.setSelection(nodes)}else if(this.selection[a.id]&&c)this.removeTreeNode(a);else if(c)this.addTreeNode(a,true);else{this.setSelection([a]);this.anchor=a}},forInSelectedItems:function(a,c){c=c||b.global;for(var d in this.selection)a.call(c,this.getItem(d),d,this)}});return e.tree._dndSelector});
define("dijit/Tree",["dojo","dijit","text!dijit/templates/TreeNode.html","text!dijit/templates/Tree.html","dojo/fx","dojo/DeferredList","dijit/_Widget","dijit/_Templated","dijit/_Container","dijit/_Contained","dijit/_CssStateMixin","dojo/cookie","dijit/tree/TreeStoreModel","dijit/tree/ForestStoreModel","dijit/tree/_dndSelector"],function(b,e){b.declare("dijit._TreeNode",[e._Widget,e._Templated,e._Container,e._Contained,e._CssStateMixin],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,
state:"UNCHECKED",templateString:b.cache("dijit","templates/TreeNode.html"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:b.delegate(e._Widget.prototype.attributeMap,{label:{node:"labelNode",type:"innerText"},tooltip:{node:"rowNode",type:"attribute",attribute:"title"}}),buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);this.isExpandable&&e.setWaiState(this.labelNode,"expanded",this.isExpanded);
this.setSelected(false)},_setIndentAttr:function(a){var c=Math.max(a,0)*this.tree._nodePixelIndent+"px";b.style(this.domNode,"backgroundPosition",c+" 0px");b.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",c);b.forEach(this.getChildren(),function(d){d.set("indent",a+1)});this._set("indent",a)},markProcessing:function(){this.state="LOADING";this._setExpando(true)},unmarkProcessing:function(){this._setExpando(false)},_updateItemClasses:function(a){var c=this.tree,d=c.model;if(c._v10Compat&&
a===d.root)a=null;this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,c,d){var f="_"+c+"Class";c=c+"Node";var i=this[f];this[f]=this.tree["get"+d+"Class"](a,this.isExpanded);b.replaceClass(this[c],this[f]||"",i||"");b.style(this[c],this.tree["get"+d+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();!a||a.rowNode.style.display=="none"?b.addClass(this.domNode,"dijitTreeIsRoot"):
b.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling())},_setExpando:function(a){var c=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],d=["*","-","+","*"];a=a?0:this.isExpandable?this.isExpanded?1:2:3;b.replaceClass(this.expandoNode,c[a],c);this.expandoNodeText.innerHTML=d[a]},expand:function(){if(this._expandDeferred)return this._expandDeferred;this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;e.setWaiState(this.labelNode,"expanded",
"true");if(this.tree.showRoot||this!==this.tree.rootNode)e.setWaiRole(this.containerNode,"group");b.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&e.setWaiState(this.tree.domNode,"expanded","true");var a,c=b.fx.wipeIn({node:this.containerNode,duration:e.defaultDuration,onEnd:function(){a.callback(true)}});a=this._expandDeferred=new b.Deferred(function(){c.stop()});c.play();return a},collapse:function(){if(this.isExpanded){if(this._expandDeferred){this._expandDeferred.cancel();
delete this._expandDeferred}this.isExpanded=false;e.setWaiState(this.labelNode,"expanded","false");this==this.tree.rootNode&&e.setWaiState(this.tree.domNode,"expanded","false");b.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut)this._wipeOut=b.fx.wipeOut({node:this.containerNode,duration:e.defaultDuration});this._wipeOut.play()}},indent:0,setChildItems:function(a){var c=this.tree,d=c.model,f=[];b.forEach(this.getChildren(),
function(i){e._Container.prototype.removeChild.call(this,i)},this);this.state="LOADED";if(a&&a.length>0){this.isExpandable=true;b.forEach(a,function(i){var h=d.getIdentity(i),g=c._itemNodesMap[h],j;if(g)for(var k=0;k<g.length;k++)if(g[k]&&!g[k].getParent()){j=g[k];j.set("indent",this.indent+1);break}if(!j){j=this.tree._createTreeNode({item:i,tree:c,isExpandable:d.mayHaveChildren(i),label:c.getLabel(i),tooltip:c.getTooltip(i),dir:c.dir,lang:c.lang,indent:this.indent+1});if(g)g.push(j);else c._itemNodesMap[h]=
[j]}this.addChild(j);if(this.tree.autoExpand||this.tree._state(i))f.push(c._expandNode(j))},this);b.forEach(this.getChildren(),function(i){i._updateLayout()})}else this.isExpandable=false;this._setExpando&&this._setExpando(false);this._updateItemClasses(this.item);if(this==c.rootNode)if(a=this.tree.showRoot?this:this.getChildren()[0]){a.setFocusable(true);c.lastFocused=a}else c.domNode.setAttribute("tabIndex","0");return new b.DeferredList(f)},getTreePath:function(){for(var a=this,c=[];a&&a!==this.tree.rootNode;){c.unshift(a.item);
a=a.getParent()}c.unshift(this.tree.rootNode.item);return c},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(){this.inherited(arguments);var a=this.getChildren();if(a.length==0){this.isExpandable=false;this.collapse()}b.forEach(a,function(c){c._updateLayout()})},makeExpandable:function(){this.isExpandable=true;this._setExpando(false)},_onLabelFocus:function(){this.tree._onNodeFocus(this)},setSelected:function(a){e.setWaiState(this.labelNode,"selected",a);
b.toggleClass(this.rowNode,"dijitTreeRowSelected",a)},setFocusable:function(a){this.labelNode.setAttribute("tabIndex",a?"0":"-1")},_onClick:function(a){this.tree._onClick(this,a)},_onDblClick:function(a){this.tree._onDblClick(this,a)},_onMouseEnter:function(a){this.tree._onNodeMouseEnter(this,a)},_onMouseLeave:function(a){this.tree._onNodeMouseLeave(this,a)}});b.declare("dijit.Tree",[e._Widget,e._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],
path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:b.cache("dijit","templates/Tree.html"),persist:true,autoExpand:false,dndController:"dijit.tree._dndSelector",dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(a,
c){b.publish(this.id,[b.mixin({tree:this,event:a},c||{})])},postMixInProperties:function(){this.tree=this;if(this.autoExpand)this.persist=false;this._itemNodesMap={};if(!this.cookieName)this.cookieName=this.id+"SaveStateCookie";this._loadDeferred=new b.Deferred;this.inherited(arguments)},postCreate:function(){this._initState();this.model||this._store2model();this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,
"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(b.isString(this.dndController))this.dndController=b.getObject(this.dndController);for(var a={},c=0;c<this.dndParams.length;c++)if(this[this.dndParams[c]])a[this.dndParams[c]]=this[this.dndParams[c]];this.dndController=new this.dndController(this,a)}},_store2model:function(){this._v10Compat=true;b.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var a={id:this.id+
"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren)a.mayHaveChildren=b.hitch(this,"mayHaveChildren");if(this.params.getItemChildren)a.getChildren=b.hitch(this,function(c,d,f){this.getItemChildren(this._v10Compat&&c===this.model.root?null:c,d,f)});this.model=new e.tree.ForestStoreModel(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(b.hitch(this,function(a){var c=this.rootNode=this.tree._createTreeNode({item:a,
tree:this,isExpandable:true,label:this.label||this.getLabel(a),indent:this.showRoot?0:-1});if(!this.showRoot){c.rowNode.style.display="none";e.setWaiRole(this.domNode,"presentation");e.setWaiRole(c.labelNode,"presentation");e.setWaiRole(c.containerNode,"tree")}this.domNode.appendChild(c.domNode);a=this.model.getIdentity(a);if(this._itemNodesMap[a])this._itemNodesMap[a].push(c);else this._itemNodesMap[a]=[c];c._updateLayout();this._expandNode(c).addCallback(b.hitch(this,function(){this._loadDeferred.callback(true);
this.onLoad()}))}),function(a){console.error(this,": error loading root: ",a)})},getNodesByItem:function(a){if(!a)return[];return[].concat(this._itemNodesMap[b.isString(a)?a:this.model.getIdentity(a)])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var c=this;this._loadDeferred.addCallback(b.hitch(this,function(){var d=b.map(a,function(i){return!i||b.isString(i)?i:c.model.getIdentity(i)}),f=[];b.forEach(d,function(i){f=f.concat(c._itemNodesMap[i]||
[])});this.set("selectedNodes",f)}))},_setPathAttr:function(a){return a.length?this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function c(i,h,g){var j=i.shift(),k=b.filter(h,function(l){return l.getIdentity()==j})[0];if(k)i.length?f._expandNode(k).addCallback(function(){c(i,k.getChildren(),g)}):g.callback(k);else g.errback("Could not expand path at "+j)}function d(i){f.set("selectedNodes",b.map(b.filter(i,function(h){return h[0]}),function(h){return h[1]}))}var f=this;return(new b.DeferredList(b.map(a,
function(i){var h=new b.Deferred;i=b.map(i,function(g){return b.isString(g)?g:f.model.getIdentity(g)});i.length?f._loadDeferred.addCallback(function(){c(i,[f.rootNode],h)}):h.errback("Empty path");return h}))).addCallback(d)},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this._loadDeferred.addCallback(b.hitch(this,function(){this.dndController.setSelection(a)}))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(a){return this.model.getLabel(a)},
getIconClass:function(a,c){return!a||this.model.mayHaveChildren(a)?c?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onKeyPress:function(a){if(!a.altKey){var c=b.keys,d=e.getEnclosingWidget(a.target);if(d){var f=a.charOrCode;if(typeof f=="string"&&f!=" "){if(!a.altKey&&!a.ctrlKey&&!a.shiftKey&&!a.metaKey){this._onLetterKeyNav({node:d,
key:f.toLowerCase()});b.stopEvent(a)}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch}var i=this._keyHandlerMap;if(!i){i={};i[c.ENTER]="_onEnterKey";i[c.SPACE]=i[" "]="_onEnterKey";i[this.isLeftToRight()?c.LEFT_ARROW:c.RIGHT_ARROW]="_onLeftArrow";i[this.isLeftToRight()?c.RIGHT_ARROW:c.LEFT_ARROW]="_onRightArrow";i[c.UP_ARROW]="_onUpArrow";i[c.DOWN_ARROW]="_onDownArrow";i[c.HOME]="_onHomeKey";i[c.END]="_onEndKey";this._keyHandlerMap=i}if(this._keyHandlerMap[f]){this[this._keyHandlerMap[f]]({node:d,
item:d.item,evt:a});b.stopEvent(a)}}}}},_onEnterKey:function(a){this._publish("execute",{item:a.item,node:a.node});this.dndController.userSelect(a.node,b.isCopyKey(a.evt),a.evt.shiftKey);this.onClick(a.item,a.node,a.evt)},_onDownArrow:function(a){(a=this._getNextNode(a.node))&&a.isTreeNode&&this.focusNode(a)},_onUpArrow:function(a){a=a.node;var c=a.getPreviousSibling();if(c)for(a=c;a.isExpandable&&a.isExpanded&&a.hasChildren();){a=a.getChildren();a=a[a.length-1]}else{c=a.getParent();!this.showRoot&&
c===this.rootNode||(a=c)}a&&a.isTreeNode&&this.focusNode(a)},_onRightArrow:function(a){a=a.node;if(a.isExpandable&&!a.isExpanded)this._expandNode(a);else if(a.hasChildren())(a=a.getChildren()[0])&&a.isTreeNode&&this.focusNode(a)},_onLeftArrow:function(a){a=a.node;if(a.isExpandable&&a.isExpanded)this._collapseNode(a);else(a=a.getParent())&&a.isTreeNode&&!(!this.showRoot&&a===this.rootNode)&&this.focusNode(a)},_onHomeKey:function(){var a=this._getRootOrFirstNode();a&&this.focusNode(a)},_onEndKey:function(){for(var a=
this.rootNode;a.isExpanded;){a=a.getChildren();a=a[a.length-1]}a&&a.isTreeNode&&this.focusNode(a)},multiCharSearchDuration:250,_onLetterKeyNav:function(a){var c=this._curSearch;if(c){c.pattern+=a.key;clearTimeout(c.timer)}else c=this._curSearch={pattern:a.key,startNode:a.node};var d=this;c.timer=setTimeout(function(){delete d._curSearch},this.multiCharSearchDuration);a=c.startNode;do(a=this._getNextNode(a))||(a=this._getRootOrFirstNode());while(a!==c.startNode&&a.label.toLowerCase().substr(0,c.pattern.length)!=
c.pattern);a&&a.isTreeNode&&a!==c.startNode&&this.focusNode(a)},isExpandoNode:function(a,c){return b.isDescendant(a,c.expandoNode)},_onClick:function(a,c){var d=this.isExpandoNode(c.target,a);if(this.openOnClick&&a.isExpandable||d)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:c});this.onClick(a.item,a,c);this.focusNode(a)}b.stopEvent(c)},_onDblClick:function(a,c){var d=c.target;d=d==a.expandoNode||d==a.expandoNodeText;if(this.openOnDblClick&&a.isExpandable||
d)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:c});this.onDblClick(a.item,a,c);this.focusNode(a)}b.stopEvent(c)},_onExpandoClick:function(a){a=a.node;this.focusNode(a);a.isExpanded?this._collapseNode(a):this._expandNode(a)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(a){if(a.isExpandable&&a.isExpanded&&a.hasChildren())return a.getChildren()[0];else{for(;a&&a.isTreeNode;){var c=a.getNextSibling();
if(c)return c;a=a.getParent()}return null}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;if(a.isExpandable)if(a.state!="LOADING"){a.collapse();this.onClose(a.item,a);if(a.item){this._state(a.item,false);this._saveState()}}},_expandNode:function(a,c){if(a._expandNodeDeferred&&!c)return a._expandNodeDeferred;c=this.model;var d=a.item,f=this;switch(a.state){case "UNCHECKED":a.markProcessing();
var i=a._expandNodeDeferred=new b.Deferred;c.getChildren(d,function(h){a.unmarkProcessing();h=a.setChildItems(h);var g=f._expandNode(a,true);h.addCallback(function(){g.addCallback(function(){i.callback()})})},function(h){console.error(f,": error loading root children: ",h)});break;default:i=a._expandNodeDeferred=a.expand();this.onOpen(a.item,a);if(d){this._state(d,true);this._saveState()}}return i},focusNode:function(a){e.focus(a.labelNode)},_onNodeFocus:function(a){if(a&&a!=this.lastFocused){this.lastFocused&&
!this.lastFocused._destroyed&&this.lastFocused.setFocusable(false);a.setFocusable(true);this.lastFocused=a}},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var d=this.getLabel(a),f=this.getTooltip(a);b.forEach(c,function(i){i.set({item:a,label:d,tooltip:f});i._updateItemClasses(a)})}},_onItemChildrenChange:function(a,c){(a=this._itemNodesMap[this.model.getIdentity(a)])&&b.forEach(a,function(d){d.setChildItems(c)})},
_onItemDelete:function(a){a=this.model.getIdentity(a);var c=this._itemNodesMap[a];if(c){b.forEach(c,function(d){this.dndController.removeTreeNode(d);var f=d.getParent();f&&f.removeChild(d);d.destroyRecursive()},this);delete this._itemNodesMap[a]}},_initState:function(){if(this.persist){var a=b.cookie(this.cookieName);this._openedItemIds={};a&&b.forEach(a.split(","),function(c){this._openedItemIds[c]=true},this)}},_state:function(a,c){if(!this.persist)return false;var d=this.model.getIdentity(a);if(arguments.length===
1)return this._openedItemIds[d];if(c)this._openedItemIds[d]=true;else delete this._openedItemIds[d]},_saveState:function(){if(this.persist){var a=[];for(var c in this._openedItemIds)a.push(c);b.cookie(this.cookieName,a.join(","),{expires:365})}},destroy:function(){if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch}this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!b.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},
destroyRecursive:function(){this.destroy()},resize:function(a){a&&b.marginBox(this.domNode,a);this._nodePixelIndent=b._getMarginSize(this.tree.indentDetector).w;if(this.tree.rootNode)this.tree.rootNode.set("indent",this.showRoot?0:-1)},_createTreeNode:function(a){return new e._TreeNode(a)}});return e.Tree});define("text!orion/widgets/templates/_ExplorerTreeNode.html",function(){return'<div class="dijitTreeNode" waiRole="presentation">\n\t<div dojoAttachPoint="rowNode" class="dijitTreeRow"\n\t\twaiRole="presentation"\n\t\tdojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick">\n\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" waiRole="presentation" />\n\t\t<span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" waiRole="presentation"></span>\n\t\t<span dojoAttachPoint="contentNode" class="dijitTreeContent" waiRole="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" waiRole="presentation" />\n\t\t\t<!-- labelNode\'s innerText will be label string --\>\n\t\t\t<span dojoAttachPoint="labelNode" class="dijitTreeLabel" wairole="treeitem" tabindex="-1" waiState="selected-false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t\t<a href="" dojoAttachPoint="followLink"><img src="${_blankGif}" alt="" dojoAttachPoint="followNode" class="dijitIcon dijitTreeIcon follow" waiRole="link"></a>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer"\n\t\twaiRole="presentation" style="display: none;">\n\t</div>\n</div>'});
define("orion/widgets/ExplorerTree",["dojo","dijit","dijit/Tree","text!orion/widgets/templates/_ExplorerTreeNode.html"],function(b,e){b.declare("orion.widgets._ExplorerTreeNode",[e._TreeNode],{templateString:b.cache("orion","widgets/templates/_ExplorerTreeNode.html"),_updateItemClasses:function(a){this.inherited(arguments);this._applyClassAndStyle(a,"follow","Follow");typeof this.tree.updateFollowLink==="function"&&this.tree.updateFollowLink(a,this.followLink)}});b.declare("orion.widgets.ExplorerTree",
[e.Tree],{selectedNodes:{},postCreate:function(){b.connect(this,"onMouseDown",this._eatSelectionEvent);b.connect(this.domNode,"onselectstart",this._eatSelectionEvent);this.inherited(arguments)},getFollowClass:function(){},getFollowStyle:function(){},updateFollowLink:function(){},onFollowClick:function(){},getSelectedItems:function(){var a=[];this._forEachSelectedNode(function(c,d){a.push(d.item)});return a},_getSelectedNodes:function(){var a=[];this._forEachSelectedNode(function(c,d){a.push(d)});
return a},_forEachSelectedNode:function(a){var c=this.selectedNodes;for(var d in c)c.hasOwnProperty(d)&&a(d,c[d])},_createTreeNode:function(a){return new orion.widgets._ExplorerTreeNode(a)},_eatSelectionEvent:function(a){if(b.isCopyKey(a)||a.shiftKey)b.stopEvent(a)},_onClick:function(a,c){var d=c.target,f=d===a.expandoNode||d===a.expandoNodeText;d=d===a.followNode;if(b.isCopyKey(c)){this._toggleSelectNode(a);this.focusNode(a)}else if(c.shiftKey){if(this.selectedNode){this._selectRange(this.selectedNode,
a);this.focusNode(a)}}else{if(d)this.onFollowClick(a.item,a,c);else if(this.openOnClick&&a.isExpandable||f)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:c});this.onClick(a.item,a,c);this.focusNode(a)}!f&&!d&&this._selectNode(a)}d||b.stopEvent(c)},_onItemDelete:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var d=this;b.forEach(c,function(f){d._removeFromSelection(f)})}this.inherited(arguments)},_getVisibleAncestor:function(a){if(!a)return null;
for(var c=a.getParent();c&&!(c.isExpandable&&c.isExpanded);){a=c;c=c.getParent()}return a},_toggleSelectNode:function(a){if(this.selectedNodes[a.get("id")]){a.setSelected(false);this._removeFromSelection(a)}else{a.setSelected(true);this._addToSelection(a)}},_addToSelection:function(a){this.selectedNodes[a.get("id")]=a},_removeFromSelection:function(a){delete this.selectedNodes[a.get("id")]},_selectRange:function(a,c){function d(h,g){var j=[];h=h;do{j.push(h);h=f._getNextNode(h)}while(h&&h!==g);if(h===
g){j.push(g);return j}return null}a=this._getVisibleAncestor(a);c=this._getVisibleAncestor(c);if(a&&c)if(a===c)this._selectNode(a);else{var f=this,i=d(a,c);if(i)this._selectNodes(i.reverse(),true);else(i=d(c,a))?this._selectNodes(i,true):console.debug("Warning: couldn't select range from "+a.label+" to "+c.label)}},_selectNode:function(a){this._selectNodes(a?[a]:null)},_selectNodes:function(a){this._forEachSelectedNode(function(f,i){i._destroyed||i.setSelected(false)});this.selectedNodes={};if(a)for(var c=
0;c<a.length;c++){var d=a[c];d.setSelected(true);this._addToSelection(d);this.selectedNode=d}}})});define("text!orion/widgets/templates/DirectoryPrompterDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" 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<!-- Actual content here --\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row"> \n\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="treeContainerNode" id="${id}_treeContainerNode" dojoType="dijit.layout.BorderContainer" style="width:25em; height:25em; overflow:auto;" design="sidebar" gutters="true">\n\t\t\t\t\t\t\t<div dojoAttachPoint="treeContentPane" class="dijitDialogPaneContent" id="${id}_treeContentPane dojoType="dijit.layout.ContentPane" region="center" gutters="true">\n\t\t\t\t\t\t\t\t<div dojoAttachPoint="browseDirectoryExplorerTree" class="explorerTreeClass" id="${id}_browseDirectoryExplorerTree" style="margin-top: -3px;"></div> \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t</div> \n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\n\t\t\t\t\t\t<button dojoAttachPoint="directoryBrowserButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <!-- end table --\>\n\t</div> <!-- content pane --\>\n</div>'});
define("orion/widgets/DirectoryPrompterDialog",["dojo","dijit","orion/util","dijit/Dialog","dijit/form/Button","orion/widgets/ExplorerTree","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/DirectoryPrompterDialog.html"],function(b,e,a){b.declare("orion.widgets.DirectoryPrompterDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/DirectoryPrompterDialog.html"),constructor:function(){this.inherited(arguments);
this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Choose a Folder";this.buttonOk="OK"},postCreate:function(){this.inherited(arguments);this.loadFolderList("")},loadFolderList:function(c){c=a.makeRelative(c);this.treeRoot.Path=c;this.options.fileClient.loadWorkspace(c).then(b.hitch(this,function(d){for(var f in d)this.treeRoot[f]=d[f];a.processNavigatorParent(this.treeRoot,d.Children);this.createTree()}))},createTree:function(){var c=
new orion.widgets.DirectoryTreeModel(this.options.serviceRegistry,this.treeRoot,this.options.fileClient);this.treeWidget=new orion.widgets.ExplorerTree({id:"treeWidget",style:"width:100%; height:100%",model:c,showRoot:false,persist:true,openOnClick:false,getLabel:function(d){return d.Name},getIconClass:function(){return"folderItem"}});this.treeWidget.startup();b.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},execute:function(){var c=this.treeWidget.getSelectedItems();this.onHide();
this.options.func(c[0])}});orion.widgets.DirectoryTreeModel=function(){function c(d,f,i){this.registry=d;this.root=f;this.fileClient=i}c.prototype={destroy:function(){},getRoot:function(d){d(this.root)},mayHaveChildren:function(){return true},getChildren:function(d,f){if(d.children)f(d.children);else if(d.Directory!==undefined&&d.Directory===false)f([]);else d.Location?this.fileClient.fetchChildren(d.ChildrenLocation).then(b.hitch(this,function(i){for(var h=[],g=0;g<i.length;g++)i[g].Directory&&h.push(i[g]);
a.processNavigatorParent(d,h);f(h)})):f([])},getIdentity:function(d){return d.Name?d.Location:"ROOT"},getLabel:function(d){return d.Name},onChildrenChange:function(){}};return c}()});define("dojox",["dojo"],function(b){return dojox=b._dojox||{}});
define("dojo/io/iframe",["dojo"],function(b){b.getObject("io",true,b);b.io.iframe={create:function(e,a,c){if(window[e])return window[e];if(window.frames[e])return window.frames[e];var d=null;c=c;if(!c){b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.io.iframe.create: 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");c=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo",
"resources/blank.html")}d=b.place('<iframe id="'+e+'" name="'+e+'" src="'+c+'" onload="'+a+'" style="position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden">',b.body());return window[e]=d},setSrc:function(e,a,c){try{if(c){var d;if(d=b.isIE||b.isWebKit?e.contentWindow.document:e.contentWindow)d.location.replace(a);else e.location=a}else if(b.isWebKit)e.location=a;else frames[e.name].location=a}catch(f){console.log("dojo.io.iframe.setSrc: ",f)}},doc:function(e){return e.contentDocument||
e.name&&e.document&&b.doc.getElementsByTagName("iframe")[e.name].contentWindow&&b.doc.getElementsByTagName("iframe")[e.name].contentWindow.document||e.name&&b.doc.frames[e.name]&&b.doc.frames[e.name].document||null},send:function(e){if(!this._frame)this._frame=this.create(this._iframeName,b._scopeName+".io.iframe._iframeOnload();");e=b._ioSetArgs(e,function(a){a.canceled=true;a.ioArgs._callNext()},function(a){var c=null;try{var d=a.ioArgs,f=b.io.iframe,i=f.doc(f._frame),h=d.handleAs;c=i;if(h!="html")if(h==
"xml"){if(b.isIE<9||b.isIE&&b.isQuirks){b.query("a",f._frame.contentWindow.document.documentElement).orphan();var g=f._frame.contentWindow.document.documentElement.innerText;g=g.replace(/>\s+</g,"><");g=b.trim(g);c=b._contentHandlers.xml({responseText:g})}}else{c=i.getElementsByTagName("textarea")[0].value;if(h=="json")c=b.fromJson(c);else if(h=="javascript")c=b.eval(c)}}catch(j){c=j}finally{d._callNext()}return c},function(a,c){c.ioArgs._hasError=true;c.ioArgs._callNext();return a});e.ioArgs._callNext=
function(){if(!this._calledNext){this._calledNext=true;b.io.iframe._currentDfd=null;b.io.iframe._fireNextRequest()}};this._dfdQueue.push(e);this._fireNextRequest();b._ioWatch(e,function(a){return!a.ioArgs._hasError},function(a){return!!a.ioArgs._finished},function(a){a.ioArgs._finished?a.callback(a):a.errback(new Error("Invalid dojo.io.iframe request state"))});return e},_currentDfd:null,_dfdQueue:[],_iframeName:b._scopeName+"IoIframe",_fireNextRequest:function(){try{if(!(this._currentDfd||this._dfdQueue.length==
0)){do var e=this._currentDfd=this._dfdQueue.shift();while(e&&e.canceled&&this._dfdQueue.length);if(!e||e.canceled)this._currentDfd=null;else{var a=e.ioArgs,c=a.args;a._contentToClean=[];var d=b.byId(c.form),f=c.content||{};if(d){if(f){var i=function(o,q){b.create("input",{type:"hidden",name:o,value:q},d);a._contentToClean.push(o)};for(var h in f){var g=f[h];if(b.isArray(g)&&g.length>1){var j;for(j=0;j<g.length;j++)i(h,g[j])}else if(d[h])d[h].value=g;else i(h,g)}}var k=d.getAttributeNode("action"),
l=d.getAttributeNode("method"),p=d.getAttributeNode("target");if(c.url){a._originalAction=k?k.value:null;if(k)k.value=c.url;else d.setAttribute("action",c.url)}if(!l||!l.value)if(l)l.value=c.method?c.method:"post";else d.setAttribute("method",c.method?c.method:"post");a._originalTarget=p?p.value:null;if(p)p.value=this._iframeName;else d.setAttribute("target",this._iframeName);d.target=this._iframeName;b._ioNotifyStart(e);d.submit()}else{i=c.url+(c.url.indexOf("?")>-1?"&":"?")+a.query;b._ioNotifyStart(e);
this.setSrc(this._frame,i,true)}}}}catch(m){e.errback(m)}},_iframeOnload:function(){var e=this._currentDfd;if(e){e=e.ioArgs;var a=b.byId(e.args.form);if(a){for(var c=e._contentToClean,d=0;d<c.length;d++)for(var f=c[d],i=0;i<a.childNodes.length;i++){var h=a.childNodes[i];if(h.name==f){b.destroy(h);break}}e._originalAction&&a.setAttribute("action",e._originalAction);if(e._originalTarget){a.setAttribute("target",e._originalTarget);a.target=e._originalTarget}}e._finished=true}else this._fireNextRequest()}};
return b.io.iframe});
define("dojox/embed/Flash",["dojo","dojox"],function(b,e){e.embed=e.embed||{};e.embed.Flash=e.embed.Flash||{};(function(){function a(g){g=b.delegate(h,g);if(!("path"in g)){console.error("dojox.embed.Flash(ctor):: no path reference to a Flash movie was provided.");return null}if(!("id"in g))g.id=f+i++;return g}var c,d,f="dojox-embed-flash-",i=0,h={expressInstall:false,width:320,height:240,swLiveConnect:"true",allowScriptAccess:"sameDomain",allowNetworking:"all",style:null,redirect:null};if(b.isIE){c=
function(g){g=a(g);if(!g)return null;var j,k=g.path;if(g.vars){var l=[];for(j in g.vars)l.push(j+"="+g.vars[j]);g.params.FlashVars=l.join("&");delete g.vars}k='<object id="'+g.id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+g.width+'" height="'+g.height+'"'+(g.style?' style="'+g.style+'"':"")+'><param name="movie" value="'+k+'" />';if(g.params)for(j in g.params)k+='<param name="'+j+'" value="'+g.params[j]+'" />';k+="</object>";return{id:g.id,markup:k}};d=function(){for(var g=10,
j=null;!j&&g>7;)try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+g--)}catch(k){}if(j){g=j.GetVariable("$version").split(" ")[1].split(",");return{major:g[0]!=null?parseInt(g[0]):0,minor:g[1]!=null?parseInt(g[1]):0,rev:g[2]!=null?parseInt(g[2]):0}}return{major:0,minor:0,rev:0}}();b.addOnUnload(function(){var g=function(){};b.query("object").reverse().style("display","none").forEach(function(j){for(var k in j)if(k!="FlashVars"&&b.isFunction(j[k]))try{j[k]=g}catch(l){}})})}else{c=function(g){g=
a(g);if(!g)return null;var j,k=g.path;if(g.vars){var l=[];for(j in g.vars)l.push(j+"="+g.vars[j]);g.params.flashVars=l.join("&");delete g.vars}k='<embed type="application/x-shockwave-flash" src="'+k+'" id="'+g.id+'" width="'+g.width+'" height="'+g.height+'"'+(g.style?' style="'+g.style+'" ':"")+'pluginspage="'+window.location.protocol+'//www.adobe.com/go/getflashplayer" ';if(g.params)for(j in g.params)k+=" "+j+'="'+g.params[j]+'"';k+=" />";return{id:g.id,markup:k}};d=function(){var g=navigator.plugins["Shockwave Flash"];
if(g&&g.description){g=g.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".");return{major:g[0]!=null?parseInt(g[0]):0,minor:g[1]!=null?parseInt(g[1]):0,rev:g[2]!=null?parseInt(g[2]):0}}return{major:0,minor:0,rev:0}}()}e.embed.Flash=function(g,j){if(location.href.toLowerCase().indexOf("file://")>-1)throw new Error("dojox.embed.Flash can't be run directly from a file. To instatiate the required SWF correctly it must be run from a server, like localHost.");this.available=
e.embed.Flash.available;this.minimumVersion=g.minimumVersion||9;this.domNode=this.movie=this.id=null;if(j)j=b.byId(j);setTimeout(b.hitch(this,function(){if(g.expressInstall||this.available&&this.available>=this.minimumVersion)g&&j?this.init(g,j):this.onError("embed.Flash was not provided with the proper arguments.");else this.available?this.onError("Flash version detected: "+this.available+" is out of date. Minimum required: "+this.minimumVersion):this.onError("Flash is not installed.")}),100)};b.extend(e.embed.Flash,
{onReady:function(g){console.warn("embed.Flash.movie.onReady:",g)},onLoad:function(g){console.warn("embed.Flash.movie.onLoad:",g)},onError:function(){},_onload:function(){clearInterval(this._poller);delete this._poller;delete this._pollCount;delete this._pollMax;this.onLoad(this.movie)},init:function(g,j){console.log("embed.Flash.movie.init");this.destroy();j=b.byId(j||this.domNode);if(!j)throw new Error("dojox.embed.Flash: no domNode reference has been passed.");var k=0;this._poller=null;this._pollCount=
0;this._pollMax=15;this.pollTime=100;if(e.embed.Flash.initialized){this.id=e.embed.Flash.place(g,j);this.domNode=j;setTimeout(b.hitch(this,function(){this.movie=this.byId(this.id,g.doc);this.onReady(this.movie);this._poller=setInterval(b.hitch(this,function(){try{k=this.movie.PercentLoaded()}catch(l){console.warn("this.movie.PercentLoaded() failed")}if(k==100)this._onload();else if(k==0&&this._pollCount++>this._pollMax){clearInterval(this._poller);throw new Error("Building SWF failed.");}}),this.pollTime)}),
1)}},_destroy:function(){try{this.domNode.removeChild(this.movie)}catch(g){}this.id=this.movie=this.domNode=null},destroy:function(){if(this.movie){var g=b.delegate({id:true,movie:true,domNode:true,onReady:true,onLoad:true});for(var j in this)g[j]||delete this[j];this._poller?b.connect(this,"onLoad",this,"_destroy"):this._destroy()}},byId:function(g,j){j=j||document;if(j.embeds[g])return j.embeds[g];if(j[g])return j[g];if(window[g])return window[g];if(document[g])return document[g];return null}});
b.mixin(e.embed.Flash,{minSupported:8,available:d.major,supported:d.major>=d.required,minimumRequired:d.required,version:d,initialized:false,onInitialize:function(){e.embed.Flash.initialized=true},__ie_markup__:function(g){return c(g)},proxy:function(g,j){b.forEach(b.isArray(j)?j:[j],function(k){this[k]=b.hitch(this,function(){return function(){return eval(this.movie.CallFunction('<invoke name="'+k+'" returntype="javascript"><arguments>'+b.map(arguments,function(l){return __flash__toXML(l)}).join("")+
"</arguments></invoke>"))}.apply(this,arguments||[])})},g)}});e.embed.Flash.place=function(g,j){g=c(g);j=b.byId(j);if(!j){j=b.doc.createElement("div");j.id=g.id+"-container";b.body().appendChild(j)}if(g){j.innerHTML=g.markup;return g.id}return null};e.embed.Flash.onInitialize()})()});
define("dojox/html/styles",["dojo","dojox"],function(b,e){e.html=e.html||{};(function(){var a={},c={},d=[];e.html.insertCssRule=function(f,i,h){h=e.html.getDynamicStyleSheet(h);var g=f+" {"+i+"}";console.log("insertRule:",g);if(b.isIE){h.cssText+=g;console.log("ss.cssText:",h.cssText)}else h.sheet?h.sheet.insertRule(g,h._indicies.length):h.appendChild(b.doc.createTextNode(g));h._indicies.push(f+" "+i);return f};e.html.removeCssRule=function(f,i,h){var g,j=-1;for(var k in a)if(!(h&&h!=k)){g=a[k];for(var l=
0;l<g._indicies.length;l++)if(f+" "+i==g._indicies[l]){j=l;break}if(j>-1)break}if(!g){console.log("No dynamic style sheet has been created from which to remove a rule.");return false}if(j==-1){console.log("The css rule was not found and could not be removed.");return false}g._indicies.splice(j,1);if(b.isIE)g.removeRule(j);else if(g.sheet)g.sheet.deleteRule(j);else document.styleSheets[0]&&console.log("what browser hath useth thith?");return true};e.html.getStyleSheet=function(f){if(a[f||"default"])return a[f||
"default"];if(!f)return false;var i=e.html.getStyleSheets();if(i[f])return e.html.getStyleSheets()[f];for(var h in i)if(i[h].href&&i[h].href.indexOf(f)>-1)return i[h];return false};e.html.getDynamicStyleSheet=function(f){f||(f="default");if(!a[f]){if(b.doc.createStyleSheet){a[f]=b.doc.createStyleSheet();if(b.isIE<9)a[f].title=f}else{a[f]=b.doc.createElement("style");a[f].setAttribute("type","text/css");b.doc.getElementsByTagName("head")[0].appendChild(a[f]);console.log(f," ss created: ",a[f].sheet)}a[f]._indicies=
[]}return a[f]};e.html.enableStyleSheet=function(f){if(f=e.html.getStyleSheet(f))if(f.sheet)f.sheet.disabled=false;else f.disabled=false};e.html.disableStyleSheet=function(f){if(f=e.html.getStyleSheet(f))if(f.sheet)f.sheet.disabled=true;else f.disabled=true};e.html.activeStyleSheet=function(f){var i=e.html.getToggledStyleSheets();if(arguments.length==1)b.forEach(i,function(g){g.disabled=g.title==f?false:true});else for(var h=0;h<i.length;h++)if(i[h].disabled==false)return i[h];return true};e.html.getPreferredStyleSheet=
function(){};e.html.getToggledStyleSheets=function(){if(!d.length){var f=e.html.getStyleSheets();for(var i in f)f[i].title&&d.push(f[i])}return d};e.html.getStyleSheets=function(){if(c.collected)return c;b.forEach(b.doc.styleSheets,function(f){var i=f.sheet?f.sheet:f;f=i.title||i.href;if(b.isIE){if(i.cssText.indexOf("#default#VML")==-1)if(i.href)c[f]=i;else if(i.imports.length)b.forEach(i.imports,function(h){c[h.title||h.href]=h});else c[f]=i}else{c[f]=i;c[f].id=i.ownerNode.id;b.forEach(i.cssRules,
function(h){if(h.href){c[h.href]=h.styleSheet;c[h.href].id=i.ownerNode.id}})}});c.collected=true;return c}})()});
define("dojox/embed/flashVars",["dojo","dojox"],function(b,e){e.embed=e.embed||{};e.embed.flashVars=e.embed.flashVars||{};b.mixin(e.embed.flashVars,{serialize:function(a,c){var d=function(g){if(typeof g=="string"){g=g.replace(/;/g,"_sc_");g=g.replace(/\./g,"_pr_");g=g.replace(/\:/g,"_cl_")}return g},f=e.embed.flashVars.serialize,i="";if(b.isArray(c)){for(var h=0;h<c.length;h++)i+=f(a+"."+h,d(c[h]))+";";return i.replace(/;{2,}/g,";")}else if(b.isObject(c)){for(h in c)i+=f(a+"."+h,d(c[h]))+";";return i.replace(/;{2,}/g,
";")}return a+":"+c}})});
define("dojox/form/FileUploader",["dojo","dijit","dojox","dojox/embed/Flash","dojo/io/iframe","dojox/html/styles","dijit/_Widget","dijit/_Templated","dojox/embed/flashVars","dijit/_Contained"],function(b,e,a){console.warn("DEPRECATED: dojox.form.FileUploader is no longer supported and will be removed in 2.0. Suggested that you use dojox.form.Uploader instead.");b.declare("dojox.form.FileUploader",[e._Widget,e._Templated,e._Contained],{swfPath:b.config.uploaderPath||b.moduleUrl("dojox.form","resources/fileuploader.swf"),
templateString:'<div><div dojoAttachPoint="progNode"><div dojoAttachPoint="progTextNode"></div></div><div dojoAttachPoint="insideNode" class="uploaderInsideNode"></div></div>',uploadUrl:"",isDebug:false,devMode:false,baseClass:"dojoxUploaderNorm",hoverClass:"dojoxUploaderHover",activeClass:"dojoxUploaderActive",disabledClass:"dojoxUploaderDisabled",force:"",uploaderType:"",flashObject:null,flashMovie:null,insideNode:null,deferredUploading:1,fileListId:"",uploadOnChange:false,selectMultipleFiles:true,
htmlFieldName:"uploadedfile",flashFieldName:"flashUploadFiles",fileMask:null,minFlashVersion:9,tabIndex:-1,showProgress:false,progressMessage:"Loading",progressBackgroundUrl:b.moduleUrl("dijit","themes/tundra/images/buttonActive.png"),progressBackgroundColor:"#ededed",progressWidgetId:"",skipServerCheck:false,serverTimeout:5E3,log:function(){this.isDebug&&console.log(Array.prototype.slice.call(arguments).join(" "))},constructor:function(){this._subs=[]},postMixInProperties:function(){this.fileList=
[];this._cons=[];this.fileMask=this.fileMask||[];this.fileInputs=[];this.fileCount=0;this._disabled=this.flashReady=false;this.force=this.force.toLowerCase();this.uploaderType=(a.embed.Flash.available>=this.minFlashVersion||this.force=="flash")&&this.force!="html"?"flash":"html";this.deferredUploading=this.deferredUploading===true?1:this.deferredUploading;this._refNode=this.srcNodeRef;this.getButtonStyle()},startup:function(){},postCreate:function(){this.inherited(arguments);this.setButtonStyle();
var c;if(this.uploaderType=="flash")c="createFlashUploader";else{this.uploaderType="html";c="createHtmlUploader"}this[c]();this.fileListId&&this.connect(b.byId(this.fileListId),"click",function(d){d=d.target.parentNode.parentNode.parentNode;d.id&&d.id.indexOf("file_")>-1&&this.removeFile(d.id.split("file_")[1])});b.addOnUnload(this,this.destroy)},getHiddenWidget:function(){for(var c=this.domNode.parentNode;c;){var d=c.getAttribute&&c.getAttribute("widgetId");if(d&&e.byId(d).onShow)return e.byId(d);
c=c.parentNode}return null},getHiddenNode:function(c){if(!c)return null;var d=null;for(c=c.parentNode;c&&c.tagName.toLowerCase()!="body";){if(b.style(c,"display")=="none"){d=c;break}c=c.parentNode}return d},getButtonStyle:function(){var c=this.srcNodeRef;(this._hiddenNode=this.getHiddenNode(c))&&b.style(this._hiddenNode,"display","block");if(!c&&this.button&&this.button.domNode){var d=true;c=this.button.domNode.className+" dijitButtonNode";var f=this.getText(b.query(".dijitButtonText",this.button.domNode)[0]);
this.srcNodeRef=c=b.place('<button id="'+this.button.id+'" class="'+c+'">'+f+"</button>",this.button.domNode,"after");this.button.destroy();this.baseClass="dijitButton";this.hoverClass="dijitButtonHover";this.pressClass="dijitButtonActive";this.disabledClass="dijitButtonDisabled"}else if(!this.srcNodeRef&&this.button)c=this.button;if(b.attr(c,"class"))this.baseClass+=" "+b.attr(c,"class");b.attr(c,"class",this.baseClass);this.norm=this.getStyle(c);this.width=this.norm.w;this.height=this.norm.h;if(this.uploaderType==
"flash"){this.over=this.getTempNodeStyle(c,this.baseClass+" "+this.hoverClass,d);this.down=this.getTempNodeStyle(c,this.baseClass+" "+this.activeClass,d);this.dsbl=this.getTempNodeStyle(c,this.baseClass+" "+this.disabledClass,d);this.fhtml={cn:this.getText(c),nr:this.norm,ov:this.over,dn:this.down,ds:this.dsbl}}else{this.fhtml={cn:this.getText(c),nr:this.norm};if(this.norm.va=="middle")this.norm.lh=this.norm.h}if(this.devMode){this.log("classes - base:",this.baseClass," hover:",this.hoverClass,"active:",
this.activeClass);this.log("fhtml:",this.fhtml);this.log("norm:",this.norm);this.log("over:",this.over);this.log("down:",this.down)}},setButtonStyle:function(){b.style(this.domNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+"px",padding:"0px",lineHeight:"normal",position:"relative"});this.uploaderType=="html"&&this.norm.va=="middle"&&b.style(this.domNode,"lineHeight",this.norm.lh+"px");if(this.showProgress){this.progTextNode.innerHTML=this.progressMessage;b.style(this.progTextNode,{width:this.fhtml.nr.w+
"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",lineHeight:this.fhtml.nr.h+0+"px",position:"absolute"});b.style(this.progNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",position:"absolute",display:"none",backgroundImage:"url("+this.progressBackgroundUrl+")",backgroundPosition:"bottom",backgroundRepeat:"repeat-x",backgroundColor:this.progressBackgroundColor})}else b.destroy(this.progNode);b.style(this.insideNode,{position:"absolute",
top:"0px",left:"0px",display:""});b.addClass(this.domNode,this.srcNodeRef.className);this.fhtml.nr.d.indexOf("inline")>-1&&b.addClass(this.domNode,"dijitInline");try{this.insideNode.innerHTML=this.fhtml.cn}catch(c){if(this.uploaderType=="flash"){this.insideNode=this.insideNode.parentNode.removeChild(this.insideNode);b.body().appendChild(this.insideNode);this.insideNode.innerHTML=this.fhtml.cn;var d=b.connect(this,"onReady",this,function(){b.disconnect(d);this.insideNode=this.insideNode.parentNode.removeChild(this.insideNode);
this.domNode.appendChild(this.insideNode)})}else this.insideNode.appendChild(document.createTextNode(this.fhtml.cn))}this._hiddenNode&&b.style(this._hiddenNode,"display","none")},onChange:function(){},onProgress:function(){},onComplete:function(){},onCancel:function(){},onError:function(){},onReady:function(){},onLoad:function(){},submit:function(c){this.upload(c?b.formToObject(c):null);return false},upload:function(c){if(!this.fileList.length)return false;if(!this.uploadUrl){console.warn("uploadUrl not provided. Aborting.");
return false}this.showProgress||this.set("disabled",true);if(this.progressWidgetId){var d=e.byId(this.progressWidgetId).domNode;if(b.style(d,"display")=="none"){this.restoreProgDisplay="none";b.style(d,"display","block")}if(b.style(d,"visibility")=="hidden"){this.restoreProgDisplay="hidden";b.style(d,"visibility","visible")}}if(c&&!c.target)this.postData=c;this.log("upload type:",this.uploaderType," - postData:",this.postData);for(c=0;c<this.fileList.length;c++){d=this.fileList[c];d.bytesLoaded=0;
d.bytesTotal=d.size||1E5;d.percent=0}this.uploaderType=="flash"?this.uploadFlash():this.uploadHTML();return false},removeFile:function(c,d){var f;for(f=0;f<this.fileList.length;f++)if(this.fileList[f].name==c){d||this.fileList.splice(f,1);break}if(this.uploaderType=="flash")this.flashMovie.removeFile(c);else if(!d){b.destroy(this.fileInputs[f]);this.fileInputs.splice(f,1);this._renumberInputs()}this.fileListId&&b.destroy("file_"+c)},destroy:function(){if(this.uploaderType=="flash"&&!this.flashMovie)this._cons.push(b.connect(this,
"onLoad",this,"destroy"));else{b.forEach(this._subs,b.unsubscribe,b);b.forEach(this._cons,b.disconnect,b);this.scrollConnect&&b.disconnect(this.scrollConnect);if(this.uploaderType=="flash"){this.flashObject.destroy();delete this.flashObject}else{b.destroy(this._fileInput);b.destroy(this._formNode)}this.inherited(arguments)}},_displayProgress:function(c){if(c===true){this.uploaderType=="flash"?b.style(this.insideNode,"top","-2500px"):b.style(this.insideNode,"display","none");b.style(this.progNode,
"display","")}else if(c===false){b.style(this.insideNode,{display:"",left:"0px"});b.style(this.progNode,"display","none")}else b.style(this.progNode,"width",c*this.fhtml.nr.w+"px")},_animateProgress:function(){this._displayProgress(true);var c=false,d=b.connect(this,"_complete",function(){b.disconnect(d);c=true}),f=0,i=setInterval(b.hitch(this,function(){f+=5;if(f>this.fhtml.nr.w){f=0;c=true}this._displayProgress(f/this.fhtml.nr.w);if(c){clearInterval(i);setTimeout(b.hitch(this,function(){this._displayProgress(false)}),
500)}}),50)},_error:function(c){if(typeof c=="string")c=new Error(c);this.onError(c)},_addToFileList:function(){if(this.fileListId){var c="";b.forEach(this.fileList,function(d){c+='<table id="file_'+d.name+'" class="fileToUpload"><tr><td class="fileToUploadClose"></td><td class="fileToUploadName">'+d.name+'</td><td class="fileToUploadSize">'+(d.size?Math.ceil(d.size*0.0010)+"kb":"")+"</td></tr></table>"},this);b.byId(this.fileListId).innerHTML=c}},_change:function(c){b.isIE&&b.forEach(c,function(d){d.name=
d.name.split("\\")[d.name.split("\\").length-1]});if(this.selectMultipleFiles)this.fileList=this.fileList.concat(c);else{this.fileList[0]&&this.removeFile(this.fileList[0].name,true);this.fileList=c}this._addToFileList();this.onChange(c);if(this.uploadOnChange){this.uploaderType=="html"&&this._buildFileInput();this.upload()}else if(this.uploaderType=="html"&&this.selectMultipleFiles){this._buildFileInput();this._connectInput()}},_complete:function(c){c=b.isArray(c)?c:[c];b.forEach(c,function(d){d.ERROR&&
this._error(d.ERROR)},this);b.forEach(this.fileList,function(d){d.bytesLoaded=1;d.bytesTotal=1;d.percent=100;this._progress(d)},this);b.forEach(this.fileList,function(d){this.removeFile(d.name,true)},this);this.onComplete(c);this.fileList=[];this._resetHTML();this.set("disabled",false);this.restoreProgDisplay&&setTimeout(b.hitch(this,function(){b.style(e.byId(this.progressWidgetId).domNode,this.restoreProgDisplay=="none"?"display":"visibility",this.restoreProgDisplay)}),500)},_progress:function(c){for(var d=
0,f=0,i=0;i<this.fileList.length;i++){var h=this.fileList[i];if(h.name==c.name){h.bytesLoaded=c.bytesLoaded;h.bytesTotal=c.bytesTotal;h.percent=Math.ceil(h.bytesLoaded/h.bytesTotal*100);this.log(h.name,"percent:",h.percent)}f+=Math.ceil(0.0010*h.bytesLoaded);d+=Math.ceil(0.0010*h.bytesTotal)}c=Math.ceil(f/d*100);this.progressWidgetId&&e.byId(this.progressWidgetId).update({progress:c+"%"});this.showProgress&&this._displayProgress(c*0.01);this.onProgress(this.fileList)},_getDisabledAttr:function(){return this._disabled},
_setDisabledAttr:function(c){if(this._disabled!=c){if(this.uploaderType=="flash"){if(!this.flashReady){var d=b.connect(this,"onLoad",this,function(){b.disconnect(d);this._setDisabledAttr(c)});return}this._disabled=c;this.flashMovie.doDisable(c)}else{this._disabled=c;b.style(this._fileInput,"display",this._disabled?"none":"")}b.toggleClass(this.domNode,this.disabledClass,c)}},_onFlashBlur:function(){this.flashMovie.blur();if(!this.nextFocusObject&&this.tabIndex)for(var c=b.query("[tabIndex]"),d=0;d<
c.length;d++)if(c[d].tabIndex>=Number(this.tabIndex)+1){this.nextFocusObject=c[d];break}this.nextFocusObject.focus()},_disconnect:function(){b.forEach(this._cons,b.disconnect,b)},uploadHTML:function(){this.selectMultipleFiles&&b.destroy(this._fileInput);this._setHtmlPostData();this.showProgress&&this._animateProgress();b.io.iframe.send({url:this.uploadUrl.toString(),form:this._formNode,handleAs:"json",error:b.hitch(this,function(c){this._error("HTML Upload Error:"+c.message)}),load:b.hitch(this,function(c){this._complete(c)})})},
createHtmlUploader:function(){this._buildForm();this._setFormStyle();this._buildFileInput();this._connectInput();this._styleContent();b.style(this.insideNode,"visibility","visible");this.onReady()},_connectInput:function(){this._disconnect();this._cons.push(b.connect(this._fileInput,"mouseover",this,function(c){b.addClass(this.domNode,this.hoverClass);this.onMouseOver(c)}));this._cons.push(b.connect(this._fileInput,"mouseout",this,function(c){setTimeout(b.hitch(this,function(){b.removeClass(this.domNode,
this.activeClass);b.removeClass(this.domNode,this.hoverClass);this.onMouseOut(c);this._checkHtmlCancel("off")}),0)}));this._cons.push(b.connect(this._fileInput,"mousedown",this,function(c){b.addClass(this.domNode,this.activeClass);b.removeClass(this.domNode,this.hoverClass);this.onMouseDown(c)}));this._cons.push(b.connect(this._fileInput,"mouseup",this,function(c){b.removeClass(this.domNode,this.activeClass);this.onMouseUp(c);this.onClick(c);this._checkHtmlCancel("up")}));this._cons.push(b.connect(this._fileInput,
"change",this,function(){this._checkHtmlCancel("change");this._change([{name:this._fileInput.value,type:"",size:0}])}));this.tabIndex>=0&&b.attr(this.domNode,"tabIndex",this.tabIndex)},_checkHtmlCancel:function(c){if(c=="change")this.dialogIsOpen=false;if(c=="up")this.dialogIsOpen=true;if(c=="off"){this.dialogIsOpen&&this.onCancel();this.dialogIsOpen=false}},_styleContent:function(){var c=this.fhtml.nr;b.style(this.insideNode,{width:c.w+"px",height:c.va=="middle"?c.h+"px":"auto",textAlign:c.ta,paddingTop:c.p[0]+
"px",paddingRight:c.p[1]+"px",paddingBottom:c.p[2]+"px",paddingLeft:c.p[3]+"px"});try{b.style(this.insideNode,"lineHeight","inherit")}catch(d){}},_resetHTML:function(){if(this.uploaderType=="html"&&this._formNode){this.fileInputs=[];b.query("*",this._formNode).forEach(function(c){b.destroy(c)});this.fileCount=0;this._buildFileInput();this._connectInput()}},_buildForm:function(){if(!this._formNode)if(b.isIE<9||b.isIE&&b.isQuirks){this._formNode=document.createElement('<form enctype="multipart/form-data" method="post">');
this._formNode.encoding="multipart/form-data";this._formNode.id=e.getUniqueId("FileUploaderForm");this.domNode.appendChild(this._formNode)}else this._formNode=b.create("form",{enctype:"multipart/form-data",method:"post",id:e.getUniqueId("FileUploaderForm")},this.domNode)},_buildFileInput:function(){if(this._fileInput){this._disconnect();this._fileInput.id+=this.fileCount;b.style(this._fileInput,"display","none")}this._fileInput=document.createElement("input");this.fileInputs.push(this._fileInput);
var c=this.htmlFieldName,d=this.id;if(this.selectMultipleFiles){c+=this.fileCount;d+=this.fileCount;this.fileCount++}b.attr(this._fileInput,{id:this.id,name:c,type:"file"});b.addClass(this._fileInput,"dijitFileInputReal");this._formNode.appendChild(this._fileInput);c=b.marginBox(this._fileInput);b.style(this._fileInput,{position:"relative",left:this.fhtml.nr.w-c.w+"px",opacity:0})},_renumberInputs:function(){if(this.selectMultipleFiles){var c;this.fileCount=0;b.forEach(this.fileInputs,function(d){c=
this.htmlFieldName+this.fileCount;this.fileCount++;b.attr(d,"name",c)},this)}},_setFormStyle:function(){var c=Math.max(2,Math.max(Math.ceil(this.fhtml.nr.w/60),Math.ceil(this.fhtml.nr.h/15)));a.html.insertCssRule("#"+this._formNode.id+" input","font-size:"+c+"em");b.style(this.domNode,{overflow:"hidden",position:"relative"});b.style(this.insideNode,"position","absolute")},_setHtmlPostData:function(){if(this.postData)for(var c in this.postData)b.create("input",{type:"hidden",name:c,value:this.postData[c]},
this._formNode)},uploadFlash:function(){try{if(this.showProgress){this._displayProgress(true);var c=b.connect(this,"_complete",this,function(){b.disconnect(c);this._displayProgress(false)})}var d={};for(var f in this.postData)d[f]=this.postData[f];this.flashMovie.doUpload(d)}catch(i){this._error("FileUploader - Sorry, the SWF failed to initialize."+i)}},createFlashUploader:function(){if(this.uploadUrl=this.uploadUrl.toString())if(this.uploadUrl.toLowerCase().indexOf("http")<0&&this.uploadUrl.indexOf("/")!=
0){var c=window.location.href.split("/");c.pop();c=c.join("/")+"/";this.uploadUrl=c+this.uploadUrl;this.log("SWF Fixed - Relative loc:",c," abs loc:",this.uploadUrl)}else this.log("SWF URL unmodified:",this.uploadUrl);else console.warn("Warning: no uploadUrl provided.");c={expressInstall:true,path:this.swfPath.uri||this.swfPath,width:this.fhtml.nr.w,height:this.fhtml.nr.h,allowScriptAccess:"always",allowNetworking:"all",vars:{uploadDataFieldName:this.flashFieldName,uploadUrl:this.uploadUrl,uploadOnSelect:this.uploadOnChange,
deferredUploading:this.deferredUploading||0,selectMultipleFiles:this.selectMultipleFiles,id:this.id,isDebug:this.isDebug,devMode:this.devMode,flashButton:a.embed.flashVars.serialize("fh",this.fhtml),fileMask:a.embed.flashVars.serialize("fm",this.fileMask),noReturnCheck:this.skipServerCheck,serverTimeout:this.serverTimeout},params:{scale:"noscale",wmode:"opaque",allowScriptAccess:"always",allowNetworking:"all"}};this.flashObject=new a.embed.Flash(c,this.insideNode);this.flashObject.onError=b.hitch(function(d){this._error("Flash Error: "+
d)});this.flashObject.onReady=b.hitch(this,function(){b.style(this.insideNode,"visibility","visible");this.log("FileUploader flash object ready");this.onReady(this)});this.flashObject.onLoad=b.hitch(this,function(d){this.flashMovie=d;this.flashReady=true;this.onLoad(this)});this._connectFlash()},_connectFlash:function(){this._doSub("/filesSelected","_change");this._doSub("/filesUploaded","_complete");this._doSub("/filesProgress","_progress");this._doSub("/filesError","_error");this._doSub("/filesCanceled",
"onCancel");this._doSub("/stageBlur","_onFlashBlur");this._doSub("/up","onMouseUp");this._doSub("/down","onMouseDown");this._doSub("/over","onMouseOver");this._doSub("/out","onMouseOut");this.connect(this.domNode,"focus",function(){this.flashMovie.focus();this.flashMovie.doFocus()});this.tabIndex>=0&&b.attr(this.domNode,"tabIndex",this.tabIndex)},_doSub:function(c,d){this._subs.push(b.subscribe(this.id+c,this,d))},urlencode:function(c){if(!c||c=="none")return false;return c.replace(/:/g,"||").replace(/\./g,
"^^").replace("url(","").replace(")","").replace(/'/g,"").replace(/"/g,"")},isButton:function(c){c=c.tagName.toLowerCase();return c=="button"||c=="input"},getTextStyle:function(c){var d={};d.ff=b.style(c,"fontFamily");if(d.ff){d.ff=d.ff.replace(", ",",");d.ff=d.ff.replace(/\"|\'/g,"");d.ff=d.ff=="sans-serif"?"Arial":d.ff;d.fw=b.style(c,"fontWeight");d.fi=b.style(c,"fontStyle");d.fs=parseInt(b.style(c,"fontSize"),10);if(b.style(c,"fontSize").indexOf("%")>-1)for(var f=c;f.tagName;){if(b.style(f,"fontSize").indexOf("%")==
-1){d.fs=parseInt(b.style(f,"fontSize"),10);break}if(f.tagName.toLowerCase()=="body")d.fs=0.16*parseInt(b.style(f,"fontSize"),10);f=f.parentNode}d.fc=(new b.Color(b.style(c,"color"))).toHex();d.fc=parseInt(d.fc.substring(1,Infinity),16)}d.lh=b.style(c,"lineHeight");d.ta=b.style(c,"textAlign");d.ta=d.ta=="start"||!d.ta?"left":d.ta;d.va=this.isButton(c)?"middle":d.lh==d.h?"middle":b.style(c,"verticalAlign");return d},getText:function(c){c=b.trim(c.innerHTML);if(c.indexOf("<")>-1)c=escape(c);return c},
getStyle:function(c){var d={},f=b.contentBox(c),i=b._getPadExtents(c);d.p=[i.t,i.w-i.l,i.h-i.t,i.l];d.w=f.w+i.w;d.h=f.h+i.h;d.d=b.style(c,"display");f=new b.Color(b.style(c,"backgroundColor"));d.bc=f.a==0?"#ffffff":f.toHex();d.bc=parseInt(d.bc.substring(1,Infinity),16);if(f=this.urlencode(b.style(c,"backgroundImage"))){d.bi={url:f,rp:b.style(c,"backgroundRepeat"),pos:escape(b.style(c,"backgroundPosition"))};if(!d.bi.pos){f=b.style(c,"backgroundPositionX");i=b.style(c,"backgroundPositionY");f=f=="left"?
"0%":f=="right"?"100%":f;i=i=="top"?"0%":i=="bottom"?"100%":i;d.bi.pos=escape(f+" "+i)}}return b.mixin(d,this.getTextStyle(c))},getTempNodeStyle:function(c,d,f){if(f){f=b.place("<"+c.tagName+"><span>"+c.innerHTML+"</span></"+c.tagName+">",c.parentNode);var i=f.firstChild;b.addClass(i,c.className);b.addClass(f,d);c=this.getStyle(i)}else{f=b.place("<"+c.tagName+">"+c.innerHTML+"</"+c.tagName+">",c.parentNode);b.addClass(f,c.className);b.addClass(f,d);f.id=c.id;c=this.getStyle(f)}b.destroy(f);return c}})});
define("text!dijit/templates/ProgressBar.html",function(){return'<div class="dijitProgressBar dijitProgressBarEmpty" role="progressbar"\n\t><div  dojoAttachPoint="internalProgress" class="dijitProgressBarFull"\n\t\t><div class="dijitProgressBarTile" role="presentation"></div\n\t\t><span style="visibility:hidden">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint="labelNode" class="dijitProgressBarLabel" id="${id}_label"></div\n\t><img dojoAttachPoint="indeterminateHighContrastImage" class="dijitProgressBarIndeterminateHighContrastImage" alt=""\n/></div>'});
define("dojo/cldr/nls/number",{root:{scientificFormat:"#E0","currencySpacing-afterCurrency-currencyMatch":"[:letter:]",infinity:"\u221e",list:";",percentSign:"%",minusSign:"-","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","decimalFormat-short":"000T","currencySpacing-afterCurrency-insertBetween":"\u00a0",nan:"NaN",nativeZeroDigit:"0",plusSign:"+","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]",currencyFormat:"\u00a4\u00a0#,##0.00",
perMille:"\u2030",group:",",percentFormat:"#,##0%",decimalFormat:"#,##0.###",decimal:".",patternDigit:"#","currencySpacing-beforeCurrency-insertBetween":"\u00a0",exponential:"E"},ar:true,ca:true,cs:true,da:true,de:true,el:true,en:true,"en-au":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});
define("dojo/cldr/nls/en/number",{group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"\u221e",patternDigit:"#",minusSign:"-",decimal:".",nan:"NaN",nativeZeroDigit:"0",perMille:"\u2030",decimalFormat:"#,##0.###",currencyFormat:"\u00a4#,##0.00;(\u00a4#,##0.00)",plusSign:"+","decimalFormat-short":"000T"});
define("dojo/number",["dojo","dojo/i18n","i18n!dojo/cldr/nls/number","dojo/string","dojo/regexp"],function(b){b.getObject("number",true,b);b.number.format=function(e,a){a=b.mixin({},a||{});var c=b.i18n.normalizeLocale(a.locale);c=b.i18n.getLocalization("dojo.cldr","number",c);a.customs=c;c=a.pattern||c[(a.type||"decimal")+"Format"];if(isNaN(e)||Math.abs(e)==Infinity)return null;return b.number._applyPattern(e,c,a)};b.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;b.number._applyPattern=function(e,
a,c){c=c||{};var d=c.customs.group,f=c.customs.decimal;a=a.split(";");var i=a[0];a=a[e<0?1:0]||"-"+i;if(a.indexOf("%")!=-1)e*=100;else if(a.indexOf("\u2030")!=-1)e*=1E3;else if(a.indexOf("\u00a4")!=-1){d=c.customs.currencyGroup||d;f=c.customs.currencyDecimal||f;a=a.replace(/\u00a4{1,3}/,function(g){return c[["symbol","currency","displayName"][g.length-1]]||c.currency||""})}else if(a.indexOf("E")!=-1)throw new Error("exponential notation not supported");var h=b.number._numberPatternRE;i=i.match(h);
if(!i)throw new Error("unable to find a number expression in pattern: "+a);if(c.fractional===false)c.places=0;return a.replace(h,b.number._formatAbsolute(e,i[0],{decimal:f,group:d,places:c.places,round:c.round}))};b.number.round=function(e,a,c){c=10/(c||10);return(c*+e).toFixed(a)/c};(0.9).toFixed()==0&&function(){var e=b.number.round;b.number.round=function(a,c,d){var f=Math.pow(10,-c||0),i=Math.abs(a);if(!a||i>=f||i*Math.pow(10,c+1)<5)f=0;return e(a,c,d)+(a>0?f:-f)}}();b.number._formatAbsolute=
function(e,a,c){c=c||{};if(c.places===true)c.places=0;if(c.places===Infinity)c.places=6;a=a.split(".");var d=typeof c.places=="string"&&c.places.indexOf(","),f=c.places;if(d)f=c.places.substring(d+1);else if(!(f>=0))f=(a[1]||[]).length;c.round<0||(e=b.number.round(e,f,c.round));e=String(Math.abs(e)).split(".");var i=e[1]||"";if(a[1]||c.places){if(d)c.places=c.places.substring(0,d);d=c.places!==undefined?c.places:a[1]&&a[1].lastIndexOf("0")+1;if(d>i.length)e[1]=b.string.pad(i,d,"0",true);if(f<i.length)e[1]=
i.substr(0,f)}else e[1]&&e.pop();f=a[0].replace(",","");d=f.indexOf("0");if(d!=-1){d=f.length-d;if(d>e[0].length)e[0]=b.string.pad(e[0],d);if(f.indexOf("#")==-1)e[0]=e[0].substr(e[0].length-d)}f=a[0].lastIndexOf(",");var h,g;if(f!=-1){h=a[0].length-f-1;a=a[0].substr(0,f);f=a.lastIndexOf(",");if(f!=-1)g=a.length-f-1}a=[];for(f=e[0];f;){d=f.length-h;a.push(d>0?f.substr(d):f);f=d>0?f.slice(0,d):"";if(g){h=g;delete g}}e[0]=a.reverse().join(c.group||",");return e.join(c.decimal||".")};b.number.regexp=
function(e){return b.number._parseInfo(e).regexp};b.number._parseInfo=function(e){e=e||{};var a=b.i18n.normalizeLocale(e.locale);a=b.i18n.getLocalization("dojo.cldr","number",a);var c=e.pattern||a[(e.type||"decimal")+"Format"],d=a.group,f=a.decimal,i=1;if(c.indexOf("%")!=-1)i/=100;else if(c.indexOf("\u2030")!=-1)i/=1E3;else{var h=c.indexOf("\u00a4")!=-1;if(h){d=a.currencyGroup||d;f=a.currencyDecimal||f}}a=c.split(";");a.length==1&&a.push("-"+a[0]);a=b.regexp.buildGroupRE(a,function(g){g="(?:"+b.regexp.escapeString(g,
".")+")";return g.replace(b.number._numberPatternRE,function(j){var k={signed:false,separator:e.strict?d:[d,""],fractional:e.fractional,decimal:f,exponent:false};j=j.split(".");var l=e.places;if(j.length==1&&i!=1)j[1]="###";if(j.length==1||l===0)k.fractional=false;else{if(l===undefined)l=e.pattern?j[1].lastIndexOf("0")+1:Infinity;if(l&&e.fractional==undefined)k.fractional=true;if(!e.places&&l<j[1].length)l+=","+j[1].length;k.places=l}j=j[0].split(",");if(j.length>1){k.groupSize=j.pop().length;if(j.length>
1)k.groupSize2=j.pop().length}return"("+b.number._realNumberRegexp(k)+")"})},true);if(h)a=a.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(g,j,k,l){g=b.regexp.escapeString(e[["symbol","currency","displayName"][k.length-1]]||e.currency||"");j=j?"[\\s\\xa0]":"";l=l?"[\\s\\xa0]":"";if(!e.strict){if(j)j+="*";if(l)l+="*";return"(?:"+j+g+l+")?"}return j+g+l});return{regexp:a.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:d,decimal:f,factor:i}};b.number.parse=function(e,a){a=b.number._parseInfo(a);e=(new RegExp("^"+
a.regexp+"$")).exec(e);if(!e)return NaN;var c=e[1];if(!e[1]){if(!e[2])return NaN;c=e[2];a.factor*=-1}c=c.replace(new RegExp("["+a.group+"\\s\\xa0]","g"),"").replace(a.decimal,".");return c*a.factor};b.number._realNumberRegexp=function(e){e=e||{};if(!("places"in e))e.places=Infinity;if(typeof e.decimal!="string")e.decimal=".";if(!("fractional"in e)||/^0/.test(e.places))e.fractional=[true,false];if(!("exponent"in e))e.exponent=[true,false];if(!("eSigned"in e))e.eSigned=[true,false];var a=b.number._integerRegexp(e),
c=b.regexp.buildGroupRE(e.fractional,function(f){var i="";if(f&&e.places!==0){i="\\"+e.decimal;if(e.places==Infinity)i="(?:"+i+"\\d+)?";else i+="\\d{"+e.places+"}"}return i},true),d=b.regexp.buildGroupRE(e.exponent,function(f){if(f)return"([eE]"+b.number._integerRegexp({signed:e.eSigned})+")";return""});a=a+c;if(c)a="(?:(?:"+a+")|(?:"+c+"))";return a+d};b.number._integerRegexp=function(e){e=e||{};if(!("signed"in e))e.signed=[true,false];if("separator"in e){if(!("groupSize"in e))e.groupSize=3}else e.separator=
"";var a=b.regexp.buildGroupRE(e.signed,function(d){return d?"[-+]":""},true),c=b.regexp.buildGroupRE(e.separator,function(d){if(!d)return"(?:\\d+)";d=b.regexp.escapeString(d);if(d==" ")d="\\s";else if(d=="\u00a0")d="\\s\\xa0";var f=e.groupSize,i=e.groupSize2;if(i){d="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+d+"]\\d{"+i+"})*["+d+"]\\d{"+f+"})";return f-i>0?"(?:"+d+"|(?:0|[1-9]\\d{0,"+(f-1)+"}))":d}return"(?:0|[1-9]\\d{0,"+(f-1)+"}(?:["+d+"]\\d{"+f+"})*)"},true);return a+c};return b.number});
define("dijit/ProgressBar",["dojo","dijit","text!dijit/templates/ProgressBar.html","dojo/fx","dojo/number","dijit/_Widget","dijit/_Templated"],function(b,e){b.declare("dijit.ProgressBar",[e._Widget,e._Templated],{progress:"0",value:"",maximum:100,places:0,indeterminate:false,label:"",name:"",templateString:b.cache("dijit","templates/ProgressBar.html"),_indeterminateHighContrastImagePath:b.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postMixInProperties:function(){this.inherited(arguments);
if(!("value"in this.params))this.value=this.indeterminate?Infinity:this.progress},buildRendering:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());this.update()},update:function(a){b.mixin(this,a||{});a=this.internalProgress;var c=this.domNode,d=1;if(this.indeterminate){e.removeWaiState(c,"valuenow");e.removeWaiState(c,"valuemin");e.removeWaiState(c,"valuemax")}else{if(String(this.progress).indexOf("%")!=
-1){d=Math.min(parseFloat(this.progress)/100,1);this.progress=d*this.maximum}else{this.progress=Math.min(this.progress,this.maximum);d=this.progress/this.maximum}e.setWaiState(c,"describedby",this.labelNode.id);e.setWaiState(c,"valuenow",this.progress);e.setWaiState(c,"valuemin",0);e.setWaiState(c,"valuemax",this.maximum)}this.labelNode.innerHTML=this.report(d);b.toggleClass(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);a.style.width=d*100+"%";this.onChange()},_setValueAttr:function(a){this._set("value",
a);a==Infinity?this.update({indeterminate:true}):this.update({indeterminate:false,progress:a})},_setLabelAttr:function(a){this._set("label",a);this.update()},_setIndeterminateAttr:function(a){this.indeterminate=a;this.update()},report:function(a){return this.label?this.label:this.indeterminate?"&nbsp;":b.number.format(a,{type:"percent",places:this.places,locale:this.lang})},onChange:function(){}});return e.ProgressBar});define("text!orion/widgets/templates/ImportDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" 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<!-- Actual content here --\>\n\n\t\t<!--<form dojoAttachPoint="importDialogForm" id="${id}_importDialogForm" class="form">--\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<label>File:</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tstyle="border: 1px solid #ccc; min-width: 35em; height: 19px; line-height: 19px; vertical-align: bottom;">\n\t\t\t\t\t\t\t<div dojoAttachPoint="importDialogFilesList" id="${id}_importDialogFilesList" style="margin-top: -3px;"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="importDialogSelectButton" id="${id}_importDialogSelectButton">\n\t\t\t\t\t\t\tBrowse...\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t<div dojoAttachPoint="importDialogProgressBar" id="${id}_importDialogProgressBar" indeterminate="false" \n\t\t\t\t\t\t\tclass="progBar" dojoType="dijit.ProgressBar"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t<button dojoAttachPoint="importButton" id="${id}_importButton" dojoType="dijit.form.Button"\n\t\t\t\t\t\t\tstyle="padding: 20 0 10 0; float: right; clear: both;">\n\t\t\t\t\t\t\tFinish\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<!--</form>--\>\n\t</div>\n</div>'});
define("orion/widgets/ImportDialog",["dojo","dijit","dojox","dijit/Dialog","dojo/data/ItemFileReadStore","dojo/io/iframe","dojox/form/FileUploader","dijit/form/Button","dijit/ProgressBar","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/ImportDialog.html"],function(b,e,a){b.declare("orion.widgets.ImportDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/ImportDialog.html"),constructor:function(){this.inherited(arguments);
this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title="Import from zip"},postCreate:function(){this.inherited(arguments);this.fileUpload=new a.form.FileUploader({isDebug:false,hoverClass:"uploadHover",activeClass:"uploadPress",disabledClass:"uploadDisabled",fileMask:["Zip","*.zip"],uploadUrl:this.options.importLocation,force:"html",showProgress:true,selectMultipleFiles:false,progressWidgetId:this.importDialogProgressBar.id,fileListId:this.importDialogFilesList.id,
destroy:function(){}},this.importDialogSelectButton.id);b.connect(this.importButton,"onClick",b.hitch(this,function(){this.fileUpload.upload()}));b.connect(this.fileUpload,"onError",b.hitch(this,function(){this.hide()}));b.connect(this.fileUpload,"onComplete",b.hitch(this,function(){this.hide();this.options.func()}))},execute:function(){},onShow:function(){this.inherited(arguments);var c=b.query("#"+this.fileUpload.id+" input")[0];b.style(c,{left:"0px"})},show:function(){var c=this.inherited(arguments);
c.then(b.hitch(this,function(){b.style(this.importDialogSelectButton.id,{overflow:"visible"})}));return c}})});define("text!dijit/form/templates/DropDownBox.html",function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}"\n\trole="combobox"\n\t><div class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdojoAttachPoint="_buttonNode, _popupStateNode" role="presentation"\n\t\t><input class="dijitReset dijitInputField dijitArrowButtonInner" value="&#9660; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t${_buttonInputDisabled}\n\t/></div\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\' ${!nameAttrSetting} type="text" autocomplete="off"\n\t\t\tdojoAttachPoint="textbox,focusNode" role="textbox" aria-haspopup="true"\n\t/></div\n></div>'});
define("dijit/form/nls/ComboBox",{root:{previousMessage:"Previous choices",nextMessage:"More choices"},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/ComboBox",["dojo","dijit","text!dijit/form/templates/DropDownBox.html","dojo/window","dojo/regexp","dojo/data/util/simpleFetch","dojo/data/util/filter","dijit/_CssStateMixin","dijit/form/_FormWidget","dijit/form/ValidationTextBox","dijit/_HasDropDown","i18n!dijit/form/nls/ComboBox"],function(b,e){b.declare("dijit.form.ComboBoxMixin",e._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",
labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:b.cache("dijit.form","templates/DropDownBox.html"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(a){var c=0;if(typeof a.selectionStart=="number")c=a.selectionStart;else if(b.isIE){var d=b.doc.selection.createRange().duplicate();a=a.createTextRange();d.move("character",
0);a.move("character",0);try{a.setEndPoint("EndToEnd",d);c=String(a.text).replace(/\r/g,"").length}catch(f){}}return c},_setCaretPos:function(a,c){c=parseInt(c);e.selectInputText(a,c,c)},_setDisabledAttr:function(a){this.inherited(arguments);e.setWaiState(this.domNode,"disabled",a)},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null}if(this._fetchHandle){this._fetchHandle.abort&&this._fetchHandle.abort();this._fetchHandle=null}},_onInput:function(a){if(!this.searchTimer&&
(a.type=="paste"||a.type=="input")&&this._lastInput!=this.textbox.value)this.searchTimer=setTimeout(b.hitch(this,function(){this._onKey({charOrCode:229})}),100);this.inherited(arguments)},_onKey:function(a){var c=a.charOrCode;if(!(a.altKey||(a.ctrlKey||a.metaKey)&&c!="x"&&c!="v"||c==b.keys.SHIFT)){var d=false,f=this.dropDown,i=b.keys,h=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened)h=f.getHighlightedOption();switch(c){case i.PAGE_DOWN:case i.DOWN_ARROW:case i.PAGE_UP:case i.UP_ARROW:this._opened&&
this._announceOption(h);b.stopEvent(a);break;case i.ENTER:if(h)if(h==f.nextButton){this._nextSearch(1);b.stopEvent(a);break}else{if(h==f.previousButton){this._nextSearch(-1);b.stopEvent(a);break}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length)}if(this._opened||this._fetchHandle)a.preventDefault();case i.TAB:c=this.get("displayedValue");if(f&&(c==f._messages.previousMessage||c==f._messages.nextMessage))break;h&&this._selectOption();if(this._opened){this._lastQuery=
null;this.closeDropDown()}break;case " ":if(h){b.stopEvent(a);this._selectOption();this.closeDropDown()}else d=true;break;case i.DELETE:case i.BACKSPACE:d=this._prev_key_backspace=true;break;default:d=typeof c=="string"||c==229}if(d){this.item=undefined;this.searchTimer=setTimeout(b.hitch(this,"_startSearchFromInput"),1)}}},_autoCompleteText:function(a){var c=this.focusNode;e.selectInputText(c,c.value.length);var d=this.ignoreCase?"toLowerCase":"substr";if(a[d](0).indexOf(this.focusNode.value[d](0))==
0){d=this._getCaretPos(c);if(d+1>c.value.length){c.value=a;e.selectInputText(c,d)}}else{c.value=a;e.selectInputText(c)}},_openResultList:function(a,c){this._fetchHandle=null;if(!(this.disabled||this.readOnly||c.query[this.searchAttr]!=this._lastQuery)){var d=this.dropDown._highlighted_option&&b.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!a.length&&!this._maxOptions)this.closeDropDown();else{c._maxOptions=this._maxOptions;a=this.dropDown.createOptions(a,
c,b.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(c.direction){if(1==c.direction)this.dropDown.highlightFirstOption();else-1==c.direction&&this.dropDown.highlightLastOption();d&&this._announceOption(this.dropDown.getHighlightedOption())}else this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(c.query[this.searchAttr])&&this._announceOption(a[1])}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();e.setWaiState(this.domNode,"expanded",
"true")},loadDropDown:function(){this._startSearchAll()},isLoaded:function(){return false},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);e.setWaiState(this.domNode,"expanded","false");e.removeWaiState(this.focusNode,"activedescendant")}},_setBlurValue:function(){var a=this.get("displayedValue"),c=this.dropDown;if(c&&(a==c._messages.previousMessage||a==c._messages.nextMessage))this._setValueAttr(this._lastValueReported,true);else if(typeof this.item=="undefined"){this.item=
null;this.set("displayedValue",a)}else{this.value!=this._lastValueReported&&e.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);this._refreshState()}},_onBlur:function(){this.closeDropDown();this.inherited(arguments)},_setItemAttr:function(a,c,d){d||(d=this.store.getValue(a,this.searchAttr));var f=this._getValueField()!=this.searchAttr?this.store.getIdentity(a):d;this._set("item",a);e.form.ComboBox.superclass._setValueAttr.call(this,f,c,d)},_announceOption:function(a){if(a){var c;
if(a==this.dropDown.nextButton||a==this.dropDown.previousButton){c=a.innerHTML;this.item=undefined;this.value=""}else{c=this.store.getValue(a.item,this.searchAttr).toString();this.set("item",a.item,false,c)}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);e.setWaiState(this.focusNode,"activedescendant",b.attr(a,"id"));this._autoCompleteText(c)}},_selectOption:function(a){a&&this._announceOption(a.target);this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);
e.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true)},_startSearchAll:function(){this._startSearch("")},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"))},_getQueryString:function(a){return b.string.substitute(this.queryExpr,[a])},_startSearch:function(a){if(!this.dropDown){var c=this.id+"_popup";this.dropDown=new (b.getObject(this.dropDownClass,false))({onChange:b.hitch(this,this._selectOption),id:c,dir:this.dir});e.removeWaiState(this.focusNode,
"activedescendant");e.setWaiState(this.textbox,"owns",c)}c=b.clone(this.query);this._lastInput=a;this._lastQuery=c[this.searchAttr]=this._getQueryString(a);this.searchTimer=setTimeout(b.hitch(this,function(d,f){this.searchTimer=null;d={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:d,onBegin:b.hitch(this,"_setMaxOptions"),onComplete:b.hitch(this,"_openResultList"),onError:function(i){f._fetchHandle=null;console.error("dijit.form.ComboBox: "+i);f.closeDropDown()},start:0,count:this.pageSize};
b.mixin(d,f.fetchProperties);this._fetchHandle=f.store.fetch(d);this._nextSearch=this.dropDown.onPage=b.hitch(this,function(i,h){i.start+=i.count*h;i.direction=h;this._fetchHandle=this.store.fetch(i);this.focus()},this._fetchHandle)},c,this),this.searchDelay)},_setMaxOptions:function(a){this._maxOptions=a},_getValueField:function(){return this.searchAttr},constructor:function(){this.query={};this.fetchProperties={}},postMixInProperties:function(){if(!this.store){this.store=new e.form._ComboBoxDataStore(this.srcNodeRef);
if(!("value"in this.params)){var a=this.item=this.store.fetchSelectedItem();if(a){var c=this._getValueField();this.value=this.store.getValue(a,c)}}}this.inherited(arguments)},postCreate:function(){var a=b.query('label[for="'+this.id+'"]');if(a.length){a[0].id=this.id+"_label";e.setWaiState(this.domNode,"labelledby",a[0].id)}this.inherited(arguments)},_setHasDownArrowAttr:function(a){this.hasDownArrow=a;this._buttonNode.style.display=a?"":"none"},_getMenuLabelFromItem:function(a){a=this.labelFunc(a,
this.store);var c=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){a=this.doHighlight(a,this._escapeHtml(this._lastInput));c="html"}return{html:c=="html",label:a}},doHighlight:function(a,c){var d=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),f=this.queryExpr.indexOf("${0}");c=b.regexp.escapeString(c);return this._escapeHtml(a).replace(new RegExp((f==0?"^":"")+"("+c+")"+(f==this.queryExpr.length-4?"$":""),d),'<span class="dijitComboBoxHighlightMatch">$1</span>')},
_escapeHtml:function(a){return a=String(a).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(a,c){return c.getValue(a,this.labelAttr||this.searchAttr).toString()}});b.declare("dijit.form._ComboBoxMenu",[e._Widget,e._Templated,e._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'><li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li><li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li></ul>",
_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=b.i18n.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages.previousMessage;this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(a){this.value=a;this.onChange(a)},onChange:function(){},onPage:function(){},onClose:function(){this._blurOptionNode()},_createOption:function(a,
c){var d=b.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});c=c(a);if(c.html)d.innerHTML=c.label;else d.appendChild(b.doc.createTextNode(c.label));if(d.innerHTML=="")d.innerHTML="&nbsp;";d.item=a;return d},createOptions:function(a,c,d){this.previousButton.style.display=c.start==0?"none":"";b.attr(this.previousButton,"id",this.id+"_prev");b.forEach(a,function(i,h){i=this._createOption(i,d);b.attr(i,"id",this.id+h);this.domNode.insertBefore(i,
this.nextButton)},this);var f=false;if(c._maxOptions&&c._maxOptions!=-1)if(c.start+c.count<c._maxOptions)f=true;else{if(c.start+c.count>c._maxOptions&&c.count==a.length)f=true}else if(c.count==a.length)f=true;this.nextButton.style.display=f?"":"none";b.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes},clearResultList:function(){for(;this.domNode.childNodes.length>2;)this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);this._blurOptionNode()},
_onMouseDown:function(a){b.stopEvent(a)},_onMouseUp:function(a){if(!(a.target===this.domNode||!this._highlighted_option))if(a.target==this.previousButton){this._blurOptionNode();this.onPage(-1)}else if(a.target==this.nextButton){this._blurOptionNode();this.onPage(1)}else{for(a=a.target;!a.item;)a=a.parentNode;this._setValueAttr({target:a},true)}},_onMouseOver:function(a){if(a.target!==this.domNode){a=a.target;if(!(a==this.previousButton||a==this.nextButton))for(;!a.item;)a=a.parentNode;this._focusOptionNode(a)}},
_onMouseOut:function(a){a.target!==this.domNode&&this._blurOptionNode()},_focusOptionNode:function(a){if(this._highlighted_option!=a){this._blurOptionNode();this._highlighted_option=a;b.addClass(this._highlighted_option,"dijitMenuItemSelected")}},_blurOptionNode:function(){if(this._highlighted_option){b.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null}},_highlightNextOption:function(){if(this.getHighlightedOption()){var a=this._highlighted_option.nextSibling;
a&&a.style.display!="none"?this._focusOptionNode(a):this.highlightFirstOption()}else{a=this.domNode.firstChild;this._focusOptionNode(a.style.display=="none"?a.nextSibling:a)}b.window.scrollIntoView(this._highlighted_option)},highlightFirstOption:function(){var a=this.domNode.firstChild,c=a.nextSibling;this._focusOptionNode(c.style.display=="none"?a:c);b.window.scrollIntoView(this._highlighted_option)},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);b.window.scrollIntoView(this._highlighted_option)},
_highlightPrevOption:function(){if(this.getHighlightedOption()){var a=this._highlighted_option.previousSibling;a&&a.style.display!="none"?this._focusOptionNode(a):this.highlightLastOption()}else{a=this.domNode.lastChild;this._focusOptionNode(a.style.display=="none"?a.previousSibling:a)}b.window.scrollIntoView(this._highlighted_option)},_page:function(a){var c=0,d=this.domNode.scrollTop,f=b.style(this.domNode,"height");for(this.getHighlightedOption()||this._highlightNextOption();c<f;){if(a){if(!this.getHighlightedOption().previousSibling||
this._highlighted_option.previousSibling.style.display=="none")break;this._highlightPrevOption()}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none")break;this._highlightNextOption()}var i=this.domNode.scrollTop;c+=(i-d)*(a?-1:1);d=i}},pageUp:function(){this._page(true)},pageDown:function(){this._page(false)},getHighlightedOption:function(){var a=this._highlighted_option;return a&&a.parentNode?a:null},handleKey:function(a){switch(a.charOrCode){case b.keys.DOWN_ARROW:this._highlightNextOption();
return false;case b.keys.PAGE_DOWN:this.pageDown();return false;case b.keys.UP_ARROW:this._highlightPrevOption();return false;case b.keys.PAGE_UP:this.pageUp();return false;default:return true}}});b.declare("dijit.form.ComboBox",[e.form.ValidationTextBox,e.form.ComboBoxMixin],{_setValueAttr:function(a,c,d){this._set("item",null);a||(a="");e.form.ValidationTextBox.prototype._setValueAttr.call(this,a,c,d)}});b.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(a){this.root=a;if(a.tagName!=
"SELECT"&&a.firstChild){a=b.query("select",a);if(a.length>0)a=a[0];else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";a=this.root.firstChild}this.root=a}b.query("> option",a).forEach(function(c){c.innerHTML=b.trim(c.innerHTML)})},getValue:function(a,c){return c=="value"?a.value:a.innerText||a.textContent||""},isItemLoaded:function(){return true},getFeatures:function(){return{"dojo.data.api.Read":true,"dojo.data.api.Identity":true}},_fetchItems:function(a,c){if(!a.query)a.query={};
if(!a.query.name)a.query.name="";if(!a.queryOptions)a.queryOptions={};var d=b.data.util.filter.patternToRegExp(a.query.name,a.queryOptions.ignoreCase),f=b.query("> option",this.root).filter(function(i){return(i.innerText||i.textContent||"").match(d)});a.sort&&f.sort(b.data.util.sorter.createSortFunction(a.sort,this));c(f,a)},close:function(){},getLabel:function(a){return a.innerHTML},getIdentity:function(a){return b.attr(a,"value")},fetchItemByIdentity:function(a){var c=b.query("> option[value='"+
a.identity+"']",this.root)[0];a.onItem(c)},fetchSelectedItem:function(){var a=this.root,c=a.selectedIndex;return typeof c=="number"?b.query("> option:nth-child("+(c!=-1?c+1:1)+")",a)[0]:null}});b.extend(e.form._ComboBoxDataStore,b.data.util.simpleFetch);return e.form.ComboBox});define("text!orion/widgets/templates/SFTPConnectionDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoType="dojo.data.ItemFileReadStore" data="sftpConnectionStoreData" jsId="sftpConnectionStore">\n\t</div>\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<!-- Actual content here --\>\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 dojoAttachPoint="locationLabel" for="${id}_sftpPath" style="padding-right: 10">${locationLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<div dojoType="dijit.form.ComboBox" store="sftpConnectionStore" style="display: inline-block; width: 88%;" dojoAttachPoint="sftpConnectionList" searchAttr="name">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div dojoType="dijit.form.DropDownButton">\n\t\t\t\t\t    <span>New</span>\n\t\t\t    \t\t<div dojoType="dijit.TooltipDialog">\n\t\t\t\t\t\t\t<div style="display: table">\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpHostLabel" for="${id}_sftpHost" style="padding-right: 10">${sftpHostLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpHost" id="${id}_sftpHost" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpPathLabel" for="${id}_sftpPath" style="padding-right: 10">${sftpPathLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpPath" id="${id}_sftpPath" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpUserLabel" for="${id}_sftpUser" style="padding-right: 10">${sftpUserLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpUser" id="${id}_sftpUser" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<button dojoAttachPoint="addSFTPConnection" type="submit" dojoType="dijit.form.Button" style="padding: 20 0 10 0; float: right; clear: both;">Add</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div><!-- End inner table--\>\n\t\t\t    \t\t</div><!-- End TooltipDialog --\>\n\t\t\t    \t</div><!-- End DropDownButton --\>\n\t\t\t\t</div><!-- End table cell --\>\n\t\t\t</div><!-- End table row --\>\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 dojoAttachPoint="sftpPasswordLabel" for="${id}_sftpPassword" style="padding-right: 10">${sftpPasswordLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="sftpPassword" id="${id}_sftpPassword" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\t\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<p>If the same file exists in both the source and destination:</p>\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteCancel" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteCancel" checked value="overwriteCancel" />\n\t\t\t\t    <label for="radioOne">Cancel the transfer</label>\n\t\t\t\t    <br />\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteAll" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteAll"/>\n\t\t\t\t    <label for="radioOne">Always overwrite destination</label>\n\t\t\t\t    <br />\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteOlder" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteOlder"/>\n\t\t\t\t    <label for="radioOne">Overwrite if source is newer</label>\n\t\t\t\t</div>\n\t\t\t</div><!-- End table row --\>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="sftpConnectionButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div><!-- End table row --\>\n\t\t</div><!-- End table --\>\n\t</div><!-- End dijitDialogPaneContent --\>\n</div>'});
define("orion/widgets/SFTPConnectionDialog",["dojo","dijit","dijit/Dialog","dijit/form/CheckBox","dijit/form/ComboBox","dojo/data/ItemFileReadStore","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/SFTPConnectionDialog.html"],function(b,e){localStorage.getItem("orion.sftpConnections")||localStorage.setItem("orion.sftpConnections",JSON.stringify({identifier:"name",label:"name",items:[]}));window.sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"));b.declare("orion.widgets.SFTPConnectionDialog",
[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/SFTPConnectionDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title="SFTP Transfer";this.sftpHostLabelText="Remote host:";this.sftpPathLabelText="Remote path:";this.sftpUserLabelText="User name:";this.sftpPasswordLabelText="Password:";this.buttonOk="Start Transfer";this.locationLabelText=
"Location:";sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"))},postCreate:function(){this.inherited(arguments);b.connect(this.addSFTPConnection,"onClick",null,b.hitch(this,this.onAddConnection))},execute:function(){var a=this.sftpConnectionList.value.split("@");if(a.length===2){var c=a[0],d=a[1].indexOf("/");if(!(d<=0)){var f=a[1].substring(0,d);a=a[1].substring(d);this.options.func(f,a,c,this.sftpPassword.value,this._computeOverwriteValue())}}},_computeOverwriteValue:function(){if(this.overwriteCancel.checked)return"no-overwrite";
else if(this.overwriteOlder.checked)return"overwrite-older";return""},onAddConnection:function(){for(var a={name:this.sftpUser.value+"@"+this.sftpHost.value+this.sftpPath.value},c=JSON.parse(localStorage.getItem("orion.sftpConnections")),d=false,f=0;f<c.items.length;f++)if(c.items[f].name===a.name){d=true;break}if(!d){c.items.unshift(a);localStorage.setItem("orion.sftpConnections",JSON.stringify(c));this.sftpConnectionList.set("value",a.name)}}})});
define("orion/fileCommands",["dojo","orion/util","orion/commands","orion/widgets/NewItemDialog","orion/widgets/DirectoryPrompterDialog","orion/widgets/ImportDialog","orion/widgets/SFTPConnectionDialog"],function(b,e,a){function c(i){this.registry=i;this.favorites=[];var h=this;this.registry.getService("orion.core.favorite").then(function(g){g.getFavorites().then(function(j){h.cacheFavorites(j.navigator)});g.addEventListener("favoritesChanged",function(j){h.cacheFavorites(j.navigator)})})}var d={},
f=null;c.prototype={cacheFavorites:function(i){this.favorites=[];for(var h=0;h<i.length;h++)i[h].directory&&this.favorites.push(i[h]);this.favorites.sort(function(g,j){if(g<j)return-1;if(g>j)return 1;return 0})}};c.prototype.constructor=c;d.updateNavTools=function(i,h,g,j,k){var l=b.byId(g);if(l)b.empty(l);else throw"could not find toolbar "+g;i.getService("orion.page.command").then(b.hitch(h,function(p){p.renderCommands(l,"dom",k,h,"image",null,null,true);if(j){var m=b.create("span",{id:j},l,"last");
p.renderCommands(m,"dom",null,h,"image",null,null,true)}}));if(!f){f=new c(i);i.getService("orion.page.selection").then(function(p){p.addEventListener("selectionChanged",function(m,o){var q=b.byId(j);if(q){b.empty(q);i.getService("orion.page.command").then(function(u){u.renderCommands(q,"dom",o,h,"image",null,null,true)})}})})}};d.createFileCommands=function(i,h,g,j){function k(n){if(b.isArray(n))n=n.length>1?{}:n[0];return n}function l(n,v){for(var s=0;s<n.length;s++)if(n[s]===v)return true;return false}
function p(n){n=e.makeRelative(n);n=n.split("#");n=n[n.length-1];var v=n.indexOf("/?");if(v>0)n=n.substring(0,v+1);return n}function m(n,v,s){n=b.isArray(n)?n:[n];var x=function(){this.changedItem(this.treeRoot)};v=function(G){for(var M=0;M<G.length;M++)(s?j.copyFile:j.moveFile).apply(j,[G[M].Location,this.path]).then(b.hitch(g,x))};for(var B=[],y=0;y<n.length;y++){if(n[y].parent&&n[y].parent.Location){n[y].parent.stripped=n[y].parent.stripped||p(n[y].parent.Location);l(B,n[y].parent.stripped)||B.push(n[y].parent.stripped)}if(n[y].Directory&&
!s){n[y].stripped=n[y].stripped||p(n[y].Location);B.push(n[y].stripped)}}n=[];if(f){var z=f.favorites;for(y=0;y<z.length;y++){var E=p(z[y].path);l(B,E)||n.push({name:z[y].name,image:"/images/makeFavorite.gif",path:E,callback:v})}}n.push({});z=[];E=g.treeRoot.Children;for(y=0;y<E.length;y++){var F=E[y];F.stripped=F.stripped||(F.Directory?p(F.Location):null);F.stripped&&!l(B,F.stripped)&&z.push(F)}z.sort(function(G,M){if(G.stripped<M.stripped)return-1;if(G.stripped>M.stripped)return 1;return 0});for(y=
0;y<z.length;y++){B=z[y];E=B.Name;F=B.stripped.split("/").length+1;for(var K=0;K<F-2;K++)E="  "+E;n.push({name:E,path:B.stripped,callback:v})}z.length>0&&n.push({});n.push({name:"Choose folder...",callback:function(G){var M=new orion.widgets.DirectoryPrompterDialog({title:"Choose a Folder",serviceRegistry:i,fileClient:j,func:function(L){if(L&&L.Location)for(var N=0;N<G.length;N++){var O=L.Location,U,$=G[N],da=s?j.copyFile:j.moveFile;if(s&&$.parent&&$.parent.Location===O)(U=window.prompt("Enter a new name for '"+
$.Name+"'","Copy of "+$.Name))||(O=null);O&&da.apply(j,[$.Location,L.Location,U]).then(b.hitch(g,x),function(fa){i.getService("orion.page.message").then(function(t){t.setErrorMessage(fa)})})}}});M.startup();M.show()}});return n}function o(n,v,s,x){var B;if(n.Location===g.treeRoot.Location)n=b.byId(v);else{var y=g.makeNewItemPlaceHolder(n,v);if(y){n=y.refNode;B=y.tempNode}else n=b.byId(v)}if(n)e.getUserText(v+"EditBox",n,false,s,b.hitch(this,function(z){if(z){B&&B.parentNode.removeChild(B);x(z)}}));
else(v=window.prompt(s))&&x(v)}var q=function(n){n=b.isArray(n)?n:[n];if(n.length===0)return false;for(var v=0;v<n.length;v++)if(!n[v].Location)return false;return true},u=new a.Command({name:"Make Favorite",image:"/images/makeFavorite.gif",id:"eclipse.makeFavorite",visibleWhen:function(n){n=b.isArray(n)?n:[n];for(var v=0;v<n.length;v++)if(!n[v].Location)return false;return true},callback:function(n){i.getService("orion.core.favorite").then(function(v){v.makeFavorites(n)})}});h.addCommand(u,"object");
u=new a.Command({name:"Rename",image:"/images/rename.gif",id:"eclipse.renameResource",visibleWhen:function(n){n=k(n);return n.Location},callback:b.hitch(this,function(n,v,s){(v=g.getNameNode(n))||(v=b.byId(s));e.getUserText(s+"EditBox",v,true,n.Name,b.hitch(this,function(x){j.moveFile(n.Location,n.parent.Location,x).then(b.hitch(g,function(){this.changedItem(this.treeRoot)}))}),null,null,".")})});h.addCommand(u,"object");u=new a.Command({name:"Delete",image:"/images/delete.gif",id:"eclipse.deleteFile",
visibleWhen:q,callback:function(n){var v=b.isArray(n)?n:[n],s=v.length===1?"Are you sure you want to delete '"+v[0].Name+"'?":"Are you sure you want to delete these "+v.length+" items?";i.getService("orion.page.dialog").then(function(x){x.confirm(s,b.hitch(g,function(B){if(B)for(B=0;B<v.length;B++){var y=v[B],z=y.Location,E=y.parent;if(y.parent.Projects){E=this.treeRoot;z=null;for(var F=0;F<y.parent.Projects.length;F++){var K=y.parent.Projects[F];if(K.Id===y.Id){z=K.Location;break}}}z&&j.deleteFile(z).then(function(){g.changedItem(E)})}}))})}});
h.addCommand(u,"object");h.addCommand(u,"dom");u=new a.Command({name:"Export as zip...",image:"/images/exportzip.gif",id:"eclipse.downloadFile",visibleWhen:function(n){n=k(n);return n.ExportLocation&&n.Directory},hrefCallback:function(n){return k(n).ExportLocation}});h.addCommand(u,"object");u=new a.Command({name:"New File",image:"/images/new_file.gif",id:"eclipse.newFile",callback:function(n,v,s){n=k(n);o(n,s,"New File",function(x){x&&j.createFile(n.Location,x).then(b.hitch(g,function(){this.changedItem(n)}),
function(B){i.getService("orion.page.message").then(function(y){y.setErrorMessage(B)})})})},visibleWhen:function(n){n=k(n);return n.Directory&&!e.isAtRoot(n.Location)}});h.addCommand(u,"dom");h.addCommand(u,"object");u=new a.Command({name:"New Folder",image:"/images/new_folder.gif",id:"eclipse.newFolder",callback:function(n,v,s){n=k(n);o(n,s,"New Folder",function(x){x&&j.createFolder(n.Location,x).then(b.hitch(g,function(){this.changedItem(n)}),function(B){i.getService("orion.page.message").then(function(y){y.setErrorMessage(B)})})})},
visibleWhen:function(n){n=k(n);return n.Directory&&!e.isAtRoot(n.Location)}});h.addCommand(u,"dom");h.addCommand(u,"object");u=new a.Command({name:"New Folder",image:"/images/new_folder.gif",id:"eclipse.newProject",callback:function(n,v,s){o(n,s,"New Folder",function(x){x&&j.createProject(g.treeRoot.ChildrenLocation,x).then(b.hitch(g,function(){this.loadResourceList(this.treeRoot.Path,true)}))})},visibleWhen:function(n){n=k(n);return n.Location&&e.isAtRoot(n.Location)}});h.addCommand(u,"dom");u=new a.Command({name:"Link Folder",
image:"/images/link.gif",id:"eclipse.linkProject",callback:function(){var n=new orion.widgets.NewItemDialog({title:"Link Folder",label:"Folder name:",func:function(v,s,x){j.createProject(g.treeRoot.ChildrenLocation,v,s,x).then(b.hitch(g,function(){this.loadResourceList(this.treeRoot.Path,true)}))},advanced:true});n.startup();n.show()},visibleWhen:function(n){n=k(n);return n.Location&&e.isAtRoot(n.Location)}});h.addCommand(u,"dom");u=new a.Command({name:"Import from zip...",image:"/images/importzip.gif",
id:"eclipse.importCommand",callback:function(n){n=k(n);var v=new orion.widgets.ImportDialog({importLocation:n.ImportLocation,func:b.hitch(g,function(){this.changedItem(n)})});v.startup();v.show()},visibleWhen:function(n){n=k(n);return n.Directory&&!e.isAtRoot(n.Location)}});h.addCommand(u,"object");h.addCommand(u,"dom");u=new a.Command({name:"SFTP from...",image:"/images/transferin.gif",id:"eclipse.importSFTPCommand",callback:function(n){n=k(n);var v=new orion.widgets.SFTPConnectionDialog({func:function(s,
x,B,y,z){i.getService("orion.page.message").then(function(E){var F=j.remoteImport(n.ImportLocation,{OptionHeader:z?"sftp,"+z:"sftp",Host:s,Path:x,UserName:B,Passphrase:y});E.showWhile(F,"Importing from "+s).then(b.hitch(g,function(){this.changedItem(this.treeRoot)}))})}});v.startup();v.show()},visibleWhen:function(n){n=k(n);return n.Directory&&!e.isAtRoot(n.Location)}});h.addCommand(u,"object");h.addCommand(u,"dom");u=new a.Command({name:"SFTP to...",image:"/images/transferout.gif",id:"eclipse.exportSFTPCommand",
callback:function(n){n=k(n);var v=new orion.widgets.SFTPConnectionDialog({func:function(s,x,B,y,z){i.getService("orion.page.message").then(function(E){var F=j.remoteExport(n.ExportLocation,{OptionHeader:z?"sftp,"+z:"sftp",Host:s,Path:x,UserName:B,Passphrase:y});E.showWhile(F,"Exporting from "+s).then(b.hitch(g,function(){this.changedItem(this.treeRoot)}))})}});v.startup();v.show()},visibleWhen:function(n){n=k(n);return n.Directory&&!e.isAtRoot(n.Location)}});h.addCommand(u,"object");h.addCommand(u,
"dom");u=new a.Command({name:"Copy to",id:"eclipse.copyFile",choiceCallback:function(n,v){return m(n,v,true)},visibleWhen:q});h.addCommand(u,"dom");q=new a.Command({name:"Move to",id:"eclipse.moveFile",choiceCallback:function(n,v){return m(n,v,false)},visibleWhen:q});h.addCommand(q,"dom");var r=[];q=new a.Command({name:"Copy Items",id:"eclipse.copySelections",callback:function(){h.getSelectionService().getSelections(function(n){r=n})}});h.addCommand(q,"dom");q=new a.Command({name:"Paste Items",id:"eclipse.pasteSelections",
callback:function(){if(r.length>0)for(var n=0;n<r.length;n++){var v=r[n].Location,s=null;if(v){if(r[n].parent&&r[n].parent.Location===g.treeRoot.Location)(s=window.prompt("Enter a new name for '"+r[n].Name+"'","Copy of "+r[n].Name))||(v=null);v&&j.copyFile(v,g.treeRoot.Location,s).then(b.hitch(g,function(){this.changedItem(this.treeRoot)}))}}}});h.addCommand(q,"dom")};d._cloneItemWithoutChildren=function i(h){if(h===null||typeof h!=="object")return h;var g=h.constructor();for(var j in h)if(j!=="children"&&
j!=="Children")g[j]=i(h[j]);return g};d.createAndPlaceFileCommandsExtension=function(i,h,g,j,k,l,p){function m(B){return function(y){return B.replace(/\$\{([\d\w-_$.]+)\}/g,function(z,E){return b.getObject(E,false,y)})}}var o=i.getServiceReferences("orion.navigate.command"),q=i.getServiceReferences("orion.navigate.openWith"),u=[],r;for(r=0;r<o.length;r++)i.getService(o[r]).then(function(B){for(var y={},z=o[r].getPropertyNames(),E=0;E<z.length;E++)y[z[E]]=o[r].getProperty(z[E]);u.push({properties:y,
service:B})});for(r=0;r<q.length;r++){var n=q[r],v=n.getProperty("name"),s=n.getProperty("href");n=n.getProperty("validationProperties");if(s&&n&&v){v={name:v,id:"eclipse.editor."+r,tooltip:v,validationProperties:n,href:true,forceSingleItem:true,isEditor:true};s={run:m(s)};u.push({properties:v,service:s})}}for(r=0;r<u.length;r++){q=u[r].properties;s=d._createFileCommandOptions(q,u[r].service);s=new a.Command(s);if(q.isEditor)s.isEditor=true;var x=n=v=false;if(q.forceSingleItem||q.href){h.addCommand(s,
"object");if(!v){v=true;h.addCommandGroup("eclipse.fileCommandExtensions",1E3,null,l)}if(!x){x=true;h.addCommandGroup("eclipse.openWith",1E3,"Open With",l+"/eclipse.fileCommandExtensions")}q.isEditor?h.registerCommandContribution(s.id,r,null,l+"/eclipse.fileCommandExtensions/eclipse.openWith"):h.registerCommandContribution(s.id,r,null,l+"/eclipse.fileCommandExtensions")}else{h.addCommand(s,"dom");if(!n){n=true;h.addCommandGroup("eclipse.bulkFileCommandExtensions",1E3,null,p)}h.registerCommandContribution(s.id,
r,k,p+"/eclipse.bulkFileCommandExtensions")}d.updateNavTools(i,g,j,k,g.treeRoot);g.updateCommands()}};d._createFileCommandOptions=function(i,h){function g(p){for(var m="^",o=0;o<p.length;o++){var q=p.charAt(o);switch(q){case "?":m+=".";break;case "*":m+=".*";break;default:m+=q}}m+="$";return new RegExp(m)}function j(p,m,o){var q,u;if(m.indexOf(":")>=0){q=g(m.substring(0,m.indexOf(":")));var r=m.substring(m.indexOf(":")+1);for(u in p)if(q.test(u))if(j(p[u],r,o))return true}q=g(m);for(u in p)if(q.test(u))if(typeof o===
"string"){if(g(o).test(p[u]))return true}else if(o===p[u])return true;return false}function k(p,m){for(var o in m)if(!j(p,o,m[o]))return false;return true}var l={name:i.name,image:i.image,id:i.id,tooltip:i.tooltip,visibleWhen:b.hitch(i,function(p){if(b.isArray(p)){if((this.forceSingleItem||this.href)&&p.length!==1)return false;if(!this.forceSingleItem&&p.length<1)return false}else p=[p];if(!this.validationProperties)return true;for(var m in p)if(!k(p[m],this.validationProperties))return false;return true}),
isEditor:i.isEditor};if(i.href)l.hrefCallback=b.hitch(i,function(p){p=b.isArray(p)?p[0]:p;p=d._cloneItemWithoutChildren(p);if(h.run)return h.run(p)});else l.callback=b.hitch(i,function(p){var m;if(this.forceSingleItem){p=b.isArray()?p[0]:p;m=d._cloneItemWithoutChildren(p)}else if(b.isArray(p)){m=[];for(var o=0;o<p.length;o++)m.push(d._cloneItemWithoutChildren(p[o]))}else m=d._cloneItemWithoutChildren(p);h.run&&h.run(m)});return l};d.getOpenWithCommands=function(i){var h=[];for(var g in i._objectScope){var j=
i._objectScope[g];j.isEditor&&h.push(j)}return h};return d});
define("orion/treetable",["dojo"],function(b){function e(a){this._init(a)}e.prototype={_init:function(a){var c=a.parent,d=this;if(typeof c==="string")c=b.byId(c);if(!c)throw"no parent";if(!a.model)throw"no tree model";if(!a.renderer)throw"no renderer";this._parent=c;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 d._treeModel.getChildren(f,function(i){d._generate(i,0)})})},_generate:function(a,c){b.empty(this._parent);var d=document.createElement("table");d.id=this._id;this._renderer.initTable(d,this);var f=document.createElement("tbody");f.id=this._id+"tbody";this._generateChildren(a,c,f,"last");d.appendChild(f);this._parent.appendChild(d);this._rowsChanged()},_generateChildren:function(a,
c,d,f){for(var i in a){var h=document.createElement("tr");h.id=this._treeModel.getId(a[i]);h._depth=c;h._item=a[i];this._renderer.render(a[i],h);b.style(h.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*c+"px");b.place(h,d,f);if(f==="after")d=h}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},refresh:function(a,c,d,f,i){var h=this._treeModel.getId(a);if(h===this._id){this._removeChildRows(h);
this._generateChildren(c,0,b.byId(h+"tbody"),"last");this._rowsChanged()}else{var g=b.byId(h);if(g){g._item=a;if(g&&(d||g._expanded)){g._expanded=true;this._removeChildRows(h);if(c){this._generateChildren(c,g._depth+1,g,"after");this._rowsChanged();if(f&&i)document.images[f].src=i}else{tree=this;c=this._treeModel.getChildren(g._item,function(j){tree._generateChildren(j,g._depth+1,g,"after");tree._rowsChanged()})}}}else console.log("could not find table row "+h)}},refreshAndExpand:function(a,c,d,f){this.refresh(a,
c,true,d,f)},getItem:function(a){if(typeof a==="string"){var c=b.byId(a);if(c)return c._item}if(a._item)return a._item;return a},toggle:function(a,c,d,f){var i=b.byId(a);if(i)if(i._expanded){this.collapse(a);if(c)document.images[c].src=f}else{this.expand(a);if(c)document.images[c].src=d}},isExpanded:function(a){if(a=b.byId(a))return a._expanded;return false},expand:function(a,c,d){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(h){i._generateChildren(h,f._depth+1,f,"after");i._rowsChanged();c&&c.apply(this,d)})}},_removeChildRows:function(a){b.byId(this._id);var c=a===this._id,d=false,f=-1,i=[];b.query(".treeTableRow").forEach(function(j){if(!d)if(c)if(j._depth>f)i.push(j);else d=true;else if(j.id===a){c=true;f=j._depth}});for(var h in i){var g=i[h];g.parentNode.removeChild(g)}},collapse:function(a){a=typeof a==="string"?a:this._treeModel.getId(a);var c=b.byId(a);if(c)if(c._expanded){c._expanded=false;this._removeChildRows(a);
this._rowsChanged()}}};e.prototype.constructor=e;return{TableTree:e}});
define("orion/explorer",["dojo","orion/treetable"],function(b,e){var a={};a.Explorer=function(){function c(d,f,i){this.registry=d;this.renderer=i;this.selection=f;this.myTree=null}c.prototype={changedItem:function(d,f){b.hitch(this.myTree,this.myTree.refreshAndExpand)(d,f)},updateCommands:function(d){this.myTree&&b.hitch(this.myTree._renderer,this.myTree._renderer.updateCommands(d))},makeNewItemPlaceHolder:function(d,f,i){d=this.getRow(d);if(i){d=d.childNodes[i];b.place("<br><span id='"+f+"placeHolderRow'></span>",
d,"last");if(i=b.byId(f+"placeHolderRow"))return{tempNode:i,refNode:i}}if(d){b.place("<tr id='"+f+"placeHolderRow'><td id='"+f+"placeHolderCol'></td>",d,"after");i=b.byId(f+"placeHolderRow");d=b.byId(f+"placeHolderCol");if(i&&d)return{tempNode:i,refNode:d}}return null},getRow:function(d){if(d=this.model.getId(d))return b.byId(d)},createTree:function(d,f){var i=d+"innerTree",h=b.byId(i);h&&b.destroy(h);if(f)f.rootId=i;this.model=f;this.myTree=new e.TableTree({id:i,model:f,showRoot:false,parent:d,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 c}();a.ExplorerModel=function(){function c(d,f){this.rootPath=d;this.fetchItems=f}c.prototype={destroy:function(){},getRoot:function(d){this.fetchItems(this.rootPath).then(b.hitch(this,function(f){this.root=f;d(f)}))},getChildren:function(d,f){if(d.Children)f(d.Children);else d.ChildrenLocation?
this.fetchItems(d.ChildrenLocation).then(b.hitch(this,function(i){d.Children=i;f(i)})):f([])},getId:function(d){if(d===this.root)d=this.rootId;else{d=d.Location;d=d.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}return d}};return c}();a.ExplorerFlatModel=function(){function c(d,f){this.rootPath=d;this.fetchItems=f}c.prototype=new a.ExplorerModel;c.prototype.getChildren=function(d,f){d==this.root?f(d):f([])};return c}();a.ExplorerRenderer=function(){function c(d,f){this.explorer=f;this._init(d);this._expandImgSrc=
"/images/twistie_open.gif";this._collapseImgSrc="/images/twistie_closed.gif"}c.prototype={initTable:function(d,f){this.tableTree=f;b.empty(d);b.addClass(d,"treetable");this.renderTableHeader(d)},getActionsColumn:function(d,f){b.connect(f,"onmouseover",f,function(){var g=b.byId(this.id+"actionswrapper");b.style(g,"visibility","visible")});b.connect(f,"onmouseout",f,function(){var g=b.byId(this.id+"actionswrapper");b.style(g,"visibility","hidden")});var i=document.createElement("td");i.id=f.id+"actions";
var h=document.createElement("span");h.id=f.id+"actionswrapper";i.appendChild(h);b.style(h,"visibility","hidden");this.explorer.registry.getService("orion.page.command").then(function(g){g.renderCommands(h,"object",d,this.explorer,"image")});return i},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},getCheckboxColumn:function(d,f){if(this._useCheckboxSelection){d=document.createElement("td");b.addClass(d,"secondaryColumn");var i=document.createElement("input");
b.style(i,"verticalAlign","middle");i.type="checkbox";i.id=f.id+"selectedState";b.addClass(i,"selectionCheckmark");i.itemId=f.id;d.appendChild(i);b.connect(i,"onclick",b.hitch(this,function(h){b.toggleClass(f,"checkedRow",!!h.target.checked);this._storeSelections();this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())}));return d}},_storeSelections:function(){var d=this.getSelectedIds(),f=this._getUIStatePreferencePath();if(f&&window.sessionStorage)window.sessionStorage[f+
"selection"]=JSON.stringify(d)},_restoreSelections:function(d){d=window.sessionStorage[d+"selection"];if(typeof d==="string")d=d.length>0?JSON.parse(d):null;var f;if(d)for(f=0;f<d.length;f++){var i=b.byId(d[f]);if(i){b.addClass(i,"checkedRow");if(i=b.byId(i.id+"selectedState"))i.checked=true}}d=this.getSelected();this.explorer.selection&&this.explorer.selection.setSelections(d)},_storeExpansions:function(d){window.sessionStorage[d+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(d){var f=
false,i=window.sessionStorage[d+"expanded"];if(typeof i==="string")i=i.length>0?JSON.parse(i):null;var h;if(i)for(h=0;h<i.length;h++)if(b.byId(i[h])){this._expanded.push(i[h]);this.tableTree.expand(i[h],b.hitch(this,function(){this._restoreSelections(d)}));f=true}return!f},_getUIStatePreferencePath:function(){if(this.explorer){var d=this.explorer.getRootPath();if(this._cachePrefix&&d)return"/"+this._cachePrefix+"/"+d.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")+"/uiState"}return null},expandCollapseImageId:function(d){return d+
"__expand"},getExpandImage:function(d,f,i){var h=b.create("img",{style:"vertical-align: middle;",src:this._collapseImgSrc,name:this.expandCollapseImageId(d.id)},f,"last");b.create("img",{style:"vertical-align: middle; margin-right: 4px",src:i?i:"/images/folder.gif"},f,"last");h.onclick=b.hitch(this,function(){this.tableTree.toggle(d.id,this.expandCollapseImageId(d.id),this._expandImgSrc,this._collapseImgSrc);if(this.tableTree.isExpanded(d.id))this._expanded.push(d.id);else for(var g in this._expanded)if(this._expanded[g]===
d.id){this._expanded.splice(g,1);break}(g=this._getUIStatePreferencePath())&&window.sessionStorage&&this._storeExpansions(g)});return h},render:function(d,f){f.cellSpacing="8px";this.renderRow(d,f)},getSelected:function(){var d=[];b.query(".selectionCheckmark").forEach(b.hitch(this,function(f){f.checked&&d.push(this.tableTree.getItem(f.parentNode.parentNode))}));return d},getSelectedIds:function(){var d=[];b.query(".selectionCheckmark").forEach(b.hitch(this,function(f){f.checked&&d.push(f.parentNode.parentNode.id)}));
return d},rowsChanged:function(){b.query(".treeTableRow").forEach(function(d,f){if(f%2){b.addClass(d,"darkTreeTableRow");b.removeClass(d,"lightTreeTableRow")}else{b.addClass(d,"lightTreeTableRow");b.removeClass(d,"darkTreeTableRow")}});this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())},updateCommands:function(){var d=this.explorer.registry;b.query(".treeTableRow").forEach(function(f){var i=b.byId(f.id+"actionswrapper");b.empty(i);d.getService("orion.page.command").then(function(h){h.renderCommands(i,
"object",f._item,this.explorer,"image")})})},_init:function(d){if(d){this._useCheckboxSelection=d.checkbox===undefined?false:d.checkbox;this._colums=d.colums||[];this._cachePrefix=d.cachePrefix}},_initializeUIState:function(){this._expanded=[];var d=this._getUIStatePreferencePath();d&&window.sessionStorage&&this._restoreExpansions(d)&&this._restoreSelections(d)}};return c}();a.SelectionRenderer=function(){function c(d,f){this._init(d);this.explorer=f}c.prototype=new a.ExplorerRenderer;c.prototype.renderTableHeader=
function(d){var f=document.createElement("thead"),i=document.createElement("tr");b.addClass(f,"navTableHeading");this._useCheckboxSelection&&i.appendChild(this.initCheckboxColumn(d));for(var h=0,g=this.getCellHeaderElement(h);g;){b.addClass(g,"navColumn");i.appendChild(g);g=this.getCellHeaderElement(++h)}f.appendChild(i);d.appendChild(f)};c.prototype.renderRow=function(d,f){b.style(f,"verticalAlign","baseline");b.addClass(f,"treeTableRow");var i=this.getCheckboxColumn(d,f);i&&f.appendChild(i);i=0;
for(var h=this.getCellElement(i,d,f);h;){f.appendChild(h);b.addClass(h,"secondaryColumn");h=this.getCellElement(++i,d,f)}};c.prototype.getCellHeaderElement=function(){};c.prototype.getCellElement=function(){};return c}();return a});
define("orion/breadcrumbs",["dojo"],function(b){function e(a){this._init(a)}e.prototype={_init:function(a){var c=a.container;if(typeof c==="string")c=b.byId(c);if(!c)throw"no parent container";this._container=c;b.removeClass(c,"currentLocation");this._id=a.id||"eclipse.breadcrumbs";this._resource=a.resource||null;this._firstSegmentName=a.firstSegmentName;this._makeHref=a.makeHref;this.path="";this.render()},getNavigatorRootSegment:function(){if(this._firstSegmentName){var a=document.createElement("a");
b.place(document.createTextNode(this._firstSegmentName),a,"only");a.href="/navigate/table.html#";return a}return null},render:function(){var a=this._container,c=b.byId(this._id);if(c)b.empty(c);else{c=document.createElement("span");c.id=this._id;a.appendChild(c)}var d;if(d=this.getNavigatorRootSegment()){b.addClass(d,"breadcrumb");c.appendChild(d);if(this._resource&&this._resource.Parents){d=document.createElement("span");b.place(document.createTextNode(" / "),d,"only");this.path+="/";b.addClass(d,
"breadcrumb");c.appendChild(d)}else{d.href="";b.removeClass(d,"breadcrumb");b.addClass(d,"currentLocation")}}if(this._resource&&this._resource.Parents){a=this._resource.Parents;for(var f=a.length;--f>=0;){d=document.createElement("a");b.addClass(d,"breadcrumb");b.place(document.createTextNode(a[f].Name),d,"only");this.path+=a[f].Name;if(this._makeHref)this._makeHref(d,a[f].ChildrenLocation);else d.href="/navigate/table.html#"+a[f].ChildrenLocation;c.appendChild(d);d=document.createElement("span");
b.place(document.createTextNode(" / "),d,"only");this.path+="/";b.addClass(d,"breadcrumb");c.appendChild(d)}if(this._resource){d=document.createElement("a");b.place(document.createTextNode(this._resource.Name),d,"only");b.addClass(d,"breadcrumb");b.addClass(d,"currentLocation");this.path+=this._resource.Name;c.appendChild(d)}}if(c.childNodes.length===0){d=document.createElement("a");b.place(document.createTextNode(document.title),d,"only");b.addClass(d,"breadcrumb");b.addClass(d,"currentLocation");
c.appendChild(d)}}};e.prototype.constructor=e;return{BreadCrumbs:e}});
define("orion/explorer-table",["dojo","orion/util","orion/explorer","orion/breadcrumbs","orion/fileCommands","dojo/number"],function(b,e,a,c,d){function f(g,j,k,l){this.registry=g;this.root=j;this.fileClient=k;this.treeId=l}function i(g,j,k){this.explorer=j;this.commandService=k;this.openWithCommands=null;this._init(g)}function h(g,j,k,l,p,m,o,q,u,r){this.registry=g;this.treeRoot=j;this.selection=k;this.searcher=l;this.fileClient=p;this.parentId=o;this.breadcrumbId=q;this.toolbarId=u;this.selectionToolsId=
r;this.myTree=this.model=null;this.renderer=new i({checkbox:true,cachePrefix:"Navigator"},this,m)}f.prototype=a.ExplorerModel.prototype;f.prototype.getRoot=function(g){g(this.root)};f.prototype.getChildren=function(g,j){if(g.children)j(g.children);else if(g.Directory!==undefined&&g.Directory===false)j([]);else g.Location?this.fileClient.fetchChildren(g.ChildrenLocation).then(b.hitch(this,function(k){e.processNavigatorParent(g,k);j(k)})):j([])};f.prototype.constructor=f;i.prototype=a.SelectionRenderer.prototype;
i.prototype.getCellHeaderElement=function(g){switch(g){case 0:return b.create("th",{innerHTML:"<h2>Name</h2>"});case 1:return b.create("th",{innerHTML:"<h2>Actions</h2>"});case 2:return b.create("th",{innerHTML:"<h2>Date/Time</h2>"});case 3:g=b.create("th",{innerHTML:"<h2>Size</h2>"});b.style(g,"textAlign","right");return g}};i.prototype.getCellElement=function(g,j,k){switch(g){case 0:var l;if(j.Directory){g=document.createElement("td");l=b.create("span",null,g,"only");this.getExpandImage(k,l);k=
b.create("a",{className:"navlinkonpage",id:k.id+"NameColumn",href:"#"+j.ChildrenLocation},l,"last")}else{g=document.createElement("td");if(!this.openWithCommands)this.openWithCommands=d.getOpenWithCommands(this.commandService);var p=j.Location;for(l=0;l<this.openWithCommands.length;l++){var m=this.openWithCommands[l];if(m.visibleWhen(j)){p=m.hrefCallback(j);break}}l=b.create("span",null,g,"only");b.create("img",{src:"/images/none.png",style:"vertical-align: middle"},l,"last");b.create("img",{src:"/images/file.gif",
style:"vertical-align: middle; margin-right: 4px"},l,"last");k=b.create("a",{className:"navlink",id:k.id+"NameColumn",href:p},l,"last")}b.place(document.createTextNode(j.Name),k,"only");return g;case 1:return this.getActionsColumn(j,k);case 2:k=document.createElement("td");if(j.LocalTimeStamp)k.innerHTML=b.date.locale.format(new Date(j.LocalTimeStamp));return k;case 3:k=document.createElement("td");if(!j.Directory&&typeof j.Length==="number"){j=parseInt(j.Length,10)/1024;k.innerHTML=b.number.format(Math.ceil(j))+
" KB"}b.style(k,"textAlign","right");return k}};i.prototype.constructor=i;h.prototype=a.Explorer.prototype;h.prototype.changedItem=function(g){var j=this;this.fileClient.fetchChildren(g.ChildrenLocation).then(function(k){e.processNavigatorParent(g,k);b.hitch(j.myTree,j.myTree.refreshAndExpand)(g,k,j.renderer.expandCollapseImageId(j.model.getId(g)),j.renderer._expandImgSrc)})};h.prototype.getNameNode=function(g){if(g=this.model.getId(g))return b.byId(g+"NameColumn")};h.prototype.loadResourceList=function(g,
j){g=e.makeRelative(g);if(!(!j&&g===this._lastHash)){this._lastHash=g;var k=b.byId(this.parentId);this.treeRoot={};if(j||g!==this.treeRoot.Path){var l=b.byId("progress");l||(l=b.create("div",{id:"progress"},k,"only"));b.empty(l);var p=setTimeout(function(){b.empty(l);var m=b.create("b");b.place(document.createTextNode("Loading "),l,"last");b.place(document.createTextNode(g),m,"last");b.place(m,l,"last");b.place(document.createTextNode("..."),l,"last")},500);this.treeRoot.Path=g;this.fileClient.loadWorkspace(g).then(b.hitch(this,
function(m){clearTimeout(p);for(var o in m)this.treeRoot[o]=m[o];e.rememberSuccessfulTraversal(this.treeRoot,this.registry);e.processNavigatorParent(this.treeRoot,m.Children);m=b.byId(this.breadcrumbId);o=e.getUserName()||"Navigator Root";if(m){b.empty(m);new c.BreadCrumbs({container:m,resource:this.treeRoot,firstSegmentName:o})}d.updateNavTools(this.registry,this,this.toolbarId,this.selectionToolsId,this.treeRoot);this.model=new f(this.registry,this.treeRoot,this.fileClient);this.createTree(this.parentId,
this.model)}),b.hitch(this,function(m){clearTimeout(p);m.status!==null&&m.status!==401&&b.place(document.createTextNode("Sorry, an error occurred: "+m.message),l,"only")}))}}};h.prototype.constructor=h;return{FileExplorer:h}});
define("dojox/layout/ToggleSplitter",["dojo","dijit","dijit/layout/BorderContainer"],function(b,e){b.declare("dojox.layout.ToggleSplitter",[e.layout._Splitter],{open:true,closedThreshold:5,openSize:"",_closedSize:"0",templateString:'<div class="dijitSplitter dojoxToggleSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_onMouseDown" tabIndex="0" role="separator"><div dojoAttachPoint="toggleNode" class="dijitSplitterThumb dojoxToggleSplitterIcon"></div></div>',postCreate:function(){this._started=
false;this.inherited(arguments);var a=this.region;b.addClass(this.domNode,"dojoxToggleSplitter"+a.charAt(0).toUpperCase()+a.substring(1));this.connect(this,"onDblClick","_toggleMe")},startup:function(){this.inherited(arguments);var a=this.child.domNode,c=b.style(a,this.horizontal?"height":"width");b.forEach(["toggleSplitterOpen","toggleSplitterClosedThreshold","toggleSplitterOpenSize"],function(d){var f=d.substring(14);f=f.charAt(0).toLowerCase()+f.substring(1);if(d in this.child)this[f]=this.child[d]},
this);if(!this.openSize)this.openSize=this.open?c+"px":"75px";this._openStyleProps=this._getStyleProps(a,true);this._started=true;this.set("open",this.open);return this},_onMouseUp:function(){b.disconnect(this._onMoveHandle);b.disconnect(this._onUpHandle);delete this._onMoveHandle;delete this._onUpHandle;delete this._startPosn},_onPrelimMouseMove:function(a){if(Math.abs((this._startPosn||0)-(this.horizontal?a.clientY:a.clientX))>=3){b.disconnect(this._onMoveHandle);this._startDrag(a)}},_onMouseDown:function(a){if(this.open){if(!this._onUpHandle)this._onUpHandle=
b.connect(b.body(),"onmouseup",this,"_onMouseUp");if(!this._onMoveHandle){this._startPosn=this.horizontal?a.clientY:a.clientX;this._onMoveHandle=b.connect(b.body(),"onmousemove",this,"_onPrelimMouseMove")}}},_handleOnChange:function(){var a=this.child.domNode,c;c=this.horizontal?"height":"width";if(this.open){var d=b.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);d[c]=this._openStyleProps&&this._openStyleProps[c]?this._openStyleProps[c]:this.openSize;b.style(a,
d);this.connect(this.domNode,"onmousedown","_onMouseDown")}else{d=b.getComputedStyle(a);c=this._getStyleProps(a,true,d);d=this._getStyleProps(a,false,d);this._openStyleProps=c;b.style(a,d)}this._setStateClass();this.container._started&&this.container._layoutChildren(this.region)},_getStyleProps:function(a,c,d){d||(d=b.getComputedStyle(a));var f={},i=this.horizontal?"height":"width";f.visibility=c?d.visibility:"hidden";f[i]=c?a.style[i]||d[i]:this._closedSize;var h=["Top","Right","Bottom","Left"];
b.forEach(["padding","margin","border"],function(g){for(var j=0;j<h.length;j++){var k=g+h[j];if(g=="border")g+="Width";if(undefined!==d[k])f[k]=c?d[k]:0}});return f},_setStateClass:function(){if(this.open){b.removeClass(this.domNode,"dojoxToggleSplitterClosed");b.addClass(this.domNode,"dojoxToggleSplitterOpen");b.removeClass(this.toggleNode,"dojoxToggleSplitterIconClosed");b.addClass(this.toggleNode,"dojoxToggleSplitterIconOpen")}else{b.addClass(this.domNode,"dojoxToggleSplitterClosed");b.removeClass(this.domNode,
"dojoxToggleSplitterOpen");b.addClass(this.toggleNode,"dojoxToggleSplitterIconClosed");b.removeClass(this.toggleNode,"dojoxToggleSplitterIconOpen")}},_setOpenAttr:function(a){if(this._started){this.open=a;this._handleOnChange(a,true);this[this.open?"onOpen":"onClose"](this.child)}},onOpen:function(){},onClose:function(){},_toggleMe:function(a){a&&b.stopEvent(a);this.set("open",!this.open)},_onKeyPress:function(){this.inherited(arguments)}});b.extend(e._Widget,{toggleSplitterOpen:true,toggleSplitterClosedThreshold:5,
toggleSplitterOpenSize:""})});
define("orion/widgets/eWebBorderContainer",["dojo","dijit","dijit/layout/BorderContainer","dojox/layout/ToggleSplitter"],function(b,e){b.declare("orion.widgets.eWebBorderContainer",e.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",getPreferredLeftPaneWidth:function(){var a=this.getSizeCookie();return a<=0?b.position(this.getRightPane()).w*0.25:a},isLeftPaneOpen:function(){var a=this.getSplitter("left");if(a)return a.open;return false},getLeftPane:function(){if(this._left)return this._left;for(var a=
this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&(a[c].region==="leading"||a[c].region==="left"))return this._left=a[c].domNode},getHidingPane:function(){return this.getLeftPane()},getRightPane:function(){if(this._center)return this._center;for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")return this._center=a[c].domNode},getSizeCookie:function(){var a=this.getSplitter("left");if(a)return a.getSizeCookie();return 0},setSizeCookie:function(a){var c=this.getSplitter("left");
if(c)return c.setSizeCookie(a)},toggleLeftPaneState:function(){var a=this.getSplitter("left");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._left||!this._center)for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")this._center=a[c].domNode;else if(a[c].region&&(a[c].region==="leading"||a[c].region==="left"))this._left=a[c].domNode;var d=this._left,f=this._center,i=b.position(d).w,h=this.isLeftPaneOpen(),
g;g=h?0:this.getPreferredLeftPaneWidth();h||this.toggleLeftPaneState();var j=d.style.overflow,k=f.style.overflow;(new b.Animation({node:d,duration:300,curve:[1,100],onAnimate:b.hitch(this,function(l){d.style.width=i+(g-i)*l/100+"px";d.style.overflow="hidden";f.style.overflow="hidden";this.layout()}),onEnd:b.hitch(this,function(){f.style.overflow=k;d.style.overflow=j;this.toggleCallback&&this.toggleCallback.apply();h?this.toggleLeftPaneState():this.setSizeCookie(null)})})).play()}});b.declare("orion.widgets.eWebSplitter",
dojox.layout.ToggleSplitter,{postCreate:function(){this.inherited(arguments);this.connect(this.toggleNode,"onmousedown","_onThumbMouseDown");this.connect(this.toggleNode,"onmouseover","_onThumbMouseOver");this.connect(this.domNode,"onmouseover","_onMouseOver");this.connect(this.toggleNode,"onmouseout","_onThumbMouseOut");this._openStateCookieName=this.container.id+"_"+this.region+"_open"},startup:function(){this.inherited(arguments);if(this.container.persist){var a=b.cookie(this._openStateCookieName);
if(a==="true")this.container.getHidingPane().style.width=this.getSizeCookie()+"px";else{a==="false"?this.set("open",false):this.set("open",true);this._handleOnChange()}}else{this.set("open",true);this._handleOnChange()}return this},_handleOnChange:function(){var a=this.child.domNode,c;c=this.horizontal?"height":"width";if(this.open){var d=b.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);d[c]=this._openStyleProps&&this._openStyleProps[c]?this._openStyleProps[c]:
this.openSize;b.style(a,d);this.connect(this.domNode,"onmousedown","_onMouseDown")}else{d=b.getComputedStyle(a);c=this._getStyleProps(a,true,d);d=this._getStyleProps(a,false,d);this._openStyleProps=c;b.style(a,d)}this._setStateClass();if(this.container._started){a=0;if(this.open&&this.openSize)a=parseInt(this.openSize.replace("px",""),10);this.container._layoutChildren(this.region,a)}},_removeFocusVisual:function(a){b.stopEvent(a)},_onMouseDown:function(a){this.open?this._startDrag(a):this._removeFocusVisual(a)},
_onMouseOver:function(){this.domNode.style.cursor=this.open?"e-resize":"default"},_onThumbMouseDown:function(a){a.stopPropagation();this._removeFocusVisual(a);this.container.toggle()},_onThumbMouseOver:function(){this.toggleNode.style.backgroundColor="#AAAAAA"},_onThumbMouseOut:function(){this.toggleNode.style.backgroundColor="#DDDDDD"},_toggleMe:function(){},getSizeCookie:function(){if(this.container.persist){var a=b.cookie(this._cookieName);if(a)return parseInt(a.replace("px",""),10)}return 0},
setSizeCookie:function(){if(this.container.persist)b.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},toggleHidingPaneState:function(){this.set("open",!this.open);this.container.getHidingPane().style.visibility=this.open?"visible":"hidden";if(this.container.persist)b.cookie(this._openStateCookieName,this.open?"true":"false",{expires:365})}});b.declare("orion.widgets.eWebBorderContainerReverse",e.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",
getPreferredRightPaneWidth:function(){var a=this.getSizeCookie();return a<=0?b.position(this.getLeftPane()).w*0.25:a},isRightPaneOpen:function(){var a=this.getSplitter("right");if(a)return a.open;return false},getRightPane:function(){if(this._right)return this._right;for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&(a[c].region==="trailing"||a[c].region==="right"))return this._right=a[c].domNode},getHidingPane:function(){return this.getRightPane()},getLeftPane:function(){if(this._center)return this._center;
for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")return this._center=a[c].domNode},getSizeCookie:function(){var a=this.getSplitter("right");if(a)return a.getSizeCookie();return 0},setSizeCookie:function(a){var c=this.getSplitter("right");if(c)return c.setSizeCookie(a)},toggleRightPaneState:function(){var a=this.getSplitter("right");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._right||!this._center)for(var a=
this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")this._center=a[c].domNode;else if(a[c].region&&(a[c].region==="trailing"||a[c].region==="right"))this._right=a[c].domNode;var d=this._right,f=this._center,i=b.position(d).w,h=this.isRightPaneOpen(),g;g=h?0:this.getPreferredRightPaneWidth();h||this.toggleRightPaneState();var j=d.style.overflow,k=f.style.overflow;(new b.Animation({node:d,duration:300,curve:[1,100],onAnimate:b.hitch(this,function(l){d.style.width=i+(g-i)*l/
100+"px";d.style.overflow="hidden";f.style.overflow="hidden";this.layout()}),onEnd:b.hitch(this,function(){f.style.overflow=k;d.style.overflow=j;this.toggleCallback&&this.toggleCallback.apply();h?this.toggleRightPaneState():this.setSizeCookie(null)})})).play()}})});
define("table",["dojo","orion/serviceregistry","orion/preferences","orion/pluginregistry","orion/selection","orion/status","orion/dialogs","orion/users","orion/ssh/sshTools","orion/commands","orion/favorites","orion/searchClient","orion/fileClient","orion/globalCommands","orion/fileCommands","orion/explorer-table","dojo/parser","dijit/layout/BorderContainer","dijit/layout/ContentPane","orion/widgets/eWebBorderContainer"],function(b,e,a,c,d,f,i,h,g,j,k,l,p,m,o,q){b.addOnLoad(function(){var u=new e.ServiceRegistry,
r=new a.PreferencesService(u,"/prefs/user"),n;r.getPreferences("/plugins").then(function(){n=new c.PluginRegistry(u);b.addOnWindowUnload(function(){n.shutdown()});return n.startup()}).then(function(){function v(){var N=new b.Deferred;N.callback([]);return N}function s(){var N=new b.Deferred;N.callback({});return N}function x(){var N;F=[];for(var O=0;O<E.length;O++){for(var U={Directory:true,Length:0,LocalTimeStamp:0},$=E[O].getPropertyNames(),da=0;da<$.length;da++)U[$[da]]=E[O].getProperty($[da]);
U.ChildrenLocation=U.top;U.Location=U.top;F.push(U);if((new RegExp(U.pattern)).test(b.hash()))N=E[O]}F.length===1&&!N?b.hash(F[0].top):(N?u.getService(N):{then:function(fa){fa(K)}}).then(function(fa){G.setFileService(fa);M.loadResourceList(b.hash())})}var B=new d.Selection(u);new f.StatusReportingService(u,"statusPane","notifications");new i.DialogService(u);new h.UserService(u);new g.SshService(u);var y=new j.CommandService({serviceRegistry:u,selection:B});new k.FavoritesService({serviceRegistry:u});
var z=new l.Searcher({serviceRegistry:u}),E=u.getServiceReferences("orion.core.file"),F=[],K={fetchChildren:v,createWorkspace:s,loadWorkspaces:v,loadWorkspace:function(){var N=new b.Deferred;N.callback({Children:F});return N},createProject:s,createFolder:s,createFile:s,deleteFile:s,moveFile:s,copyFile:s,read:s,write:s},G=new p.FileClient(K),M=new q.FileExplorer(u,{children:[]},B,z,G,y,"explorer-tree","location","pageActions","selectionTools");new k.Favorites({parent:"favoriteProgress",serviceRegistry:u});
var L=dijit.byId("orion.innerNavigator");m.generateBanner("toolbar",u,y,r,z,M);o.createFileCommands(u,y,M,G,"pageActions","selectionTools");B=new j.Command({name:"Toggle Left Pane",id:"eclipse.toggleSplitter",callback:function(){L.toggle()}});y.addCommand(B,"dom");y.addCommandGroup("eclipse.fileGroup",100,"More");y.addCommandGroup("eclipse.newResources",100,null,"eclipse.fileGroup");y.addCommandGroup("eclipse.fileGroup.unlabeled",100,null,null,"pageActions");y.addCommandGroup("eclipse.fileGroup.openWith",
100,"Open With","eclipse.fileGroup");y.addCommandGroup("eclipse.gitGroup",100,null,null,"pageActions");y.addCommandGroup("eclipse.selectionGroup",500,"More",null,"selectionTools");y.registerCommandContribution("eclipse.toggleSplitter",1,"eclipse.navigate-table",null,new j.CommandKeyBinding("o",true),true);y.registerCommandContribution("eclipse.copySelections",1,"eclipse.navigate-table",null,new j.CommandKeyBinding("c",true),true);y.registerCommandContribution("eclipse.pasteSelections",1,"eclipse.navigate-table",
null,new j.CommandKeyBinding("v",true),true);y.registerCommandContribution("eclipse.makeFavorite",1);y.registerCommandContribution("eclipse.renameResource",2);y.registerCommandContribution("eclipse.openResource",500,"pageActions");y.registerCommandContribution("eclipse.copyFile",1,null,"eclipse.fileGroup");y.registerCommandContribution("eclipse.moveFile",2,null,"eclipse.fileGroup");y.registerCommandContribution("eclipse.deleteFile",3,null,"eclipse.fileGroup");y.registerCommandContribution("eclipse.importCommand",
4,null,"eclipse.fileGroup");y.registerCommandContribution("eclipse.downloadFile",5,null,"eclipse.fileGroup");y.registerCommandContribution("eclipse.importSFTPCommand",6,null,"eclipse.fileGroup");y.registerCommandContribution("eclipse.exportSFTPCommand",7,null,"eclipse.fileGroup");y.registerCommandContribution("eclipse.newFile",1,null,"eclipse.fileGroup/eclipse.newResources");y.registerCommandContribution("eclipse.newFolder",2,null,"eclipse.fileGroup/eclipse.newResources");y.registerCommandContribution("eclipse.newFile",
1,"pageActions","eclipse.fileGroup.unlabeled");y.registerCommandContribution("eclipse.newFolder",2,"pageActions","eclipse.fileGroup.unlabeled");y.registerCommandContribution("eclipse.newProject",3,"pageActions","eclipse.fileGroup.unlabeled");y.registerCommandContribution("eclipse.linkProject",4,"pageActions","eclipse.fileGroup.unlabeled");y.registerCommandContribution("eclipse.copyFile",1,"selectionTools","eclipse.selectionGroup");y.registerCommandContribution("eclipse.moveFile",2,"selectionTools",
"eclipse.selectionGroup");y.registerCommandContribution("eclipse.deleteFile",3,"selectionTools","eclipse.selectionGroup");o.createAndPlaceFileCommandsExtension(u,y,M,"pageActions","selectionTools","eclipse.fileGroup","eclipse.selectionGroup");b.subscribe("/dojo/hashchange",M,function(){x()});x();document.body.style.visibility="visible";b.parser.parse()})})});