diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-01-22 15:54:51 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-02-21 14:11:46 +0100 |
commit | 75eee33ed917f654cc8cd5ed9e20d63903bffb25 (patch) | |
tree | 2e64dc755df72255bc577f7b78a09ba779ea0393 | |
parent | 28551ae541233baa42ea5a6fdee35f95465d4c5c (diff) | |
download | freeipa-75eee33ed917f654cc8cd5ed9e20d63903bffb25.tar.gz freeipa-75eee33ed917f654cc8cd5ed9e20d63903bffb25.tar.xz freeipa-75eee33ed917f654cc8cd5ed9e20d63903bffb25.zip |
Allow to specify modules for which builder doesn't raise dependency error
One can specify module ids provided by other means (already built layer file) in providedMids array of build profile file's package section. Builder then ignores dependency errors for specified modules. This allows to build layers without source codes of their dependencies, with no expected errors raised.
Example:
packages:[
{
name: "freeipa",
location: "freeipa",
providedMids: [
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/Stateful'
//etc
]
}
],
-rw-r--r-- | install/ui/util/build/build.js | 2 | ||||
-rw-r--r-- | install/ui/util/build/patches/002-dojo-build-pvoborni-02-Allow-to-specify-modules-for-which-builder-doesn-t-r.patch | 98 |
2 files changed, 99 insertions, 1 deletions
diff --git a/install/ui/util/build/build.js b/install/ui/util/build/build.js index a7aaf4c3b..4cfaa19a9 100644 --- a/install/ui/util/build/build.js +++ b/install/ui/util/build/build.js @@ -1 +1 @@ -(function(e,t){var n=function(){},r=function(e){for(var t in e)return 0;return 1},i={}.toString,s=function(e){return i.call(e)=="[object Function]"},o=function(e){return i.call(e)=="[object String]"},u=function(e){return i.call(e)=="[object Array]"},a=function(e,t){if(e)for(var n=0;n<e.length;)t(e[n++])},f=function(e,t){for(var n in t)e[n]=t[n];return e},l=function(e,t){return f(new Error(e),{src:"dojoLoader",info:t})},c=1,h=function(){return"_"+c++},p=function(e,t,n){return St(e,t,n,0,p)},d=this,v=d.document,m=v&&v.createElement("DiV"),g=p.has=function(e){return s(y[e])?y[e]=y[e](d,v,m):y[e]},y=g.cache=t.hasCache;g.add=function(e,t,n,r){return(y[e]===undefined||r)&&(y[e]=t),n&&g(e)},0,1;for(var b=e.baseUrl||".",w,E=this.arguments,S=0;S<E.length;){w=(E[S++]+"").split("=");if(w[0]=="baseUrl"){b=w[1];break}}load(b+"/_base/configRhino.js"),rhinoDojoConfig(t,b,E);for(var x in e.has)g.add(x,e.has[x],0,1);var T=1,N=2,C=3,k=4,L=5;T="requested",N="arrived",C="not-a-module",k="executing",L="executed";var A=0,O="sync",M="xd",_=[],D=0,P=n,H=n,B;p.isXdUrl=n,p.initSyncLoader=function(e,t,n){return D||(D=e,P=t,H=n),{sync:O,requested:T,arrived:N,nonmodule:C,executing:k,executed:L,syncExecStack:_,modules:Z,execQ:Tt,getModule:jt,injectModule:fn,setArrived:Lt,signal:X,finishExec:Qt,execModule:Yt,dojoRequirePlugin:D,getLegacyMode:function(){return A},guardCheckComplete:en}};var U=new Function("return eval(arguments[0]);");p.eval=function(e,t){return U(e+"\r\n////@ sourceURL="+t)};var z={},W="error",X=p.signal=function(e,t){var n=z[e];a(n&&n.slice(0),function(e){e.apply(null,u(t)?t:[t])})},V=p.on=function(e,t){var n=z[e]||(z[e]=[]);return n.push(t),{remove:function(){for(var e=0;e<n.length;e++)if(n[e]===t){n.splice(e,1);return}}}},$=[],J={},K=[],Q={},G=p.map={},Y=[],Z={},et="",tt={},nt="url:",rt={},it={},st=function(e){var t,n,r,i,s;for(t in rt)n=rt[t],r=t.match(/^url\:(.+)/),r?tt[nt+It(r[1],e)]=n:t=="*now"?i=n:t!="*noref"&&(s=Pt(t,e),tt[s.mid]=tt[nt+s.url]=n);i&&i(xt(e)),rt={}},ot=function(e){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(e){return"\\"+e})},ut=function(e,t){t.splice(0,t.length);for(var n in e)t.push([n,e[n],new RegExp("^"+ot(n)+"(/|$)"),n.length]);return t.sort(function(e,t){return t[3]-e[3]}),t},at=function(e){var t=e.name;t||(t=e,e={name:t}),e=f({main:"main"},e),e.location=e.location?e.location:t,e.packageMap&&(G[t]=e.packageMap),e.main.indexOf("./")||(e.main=e.main.substring(2)),Q[t]=e},ft=[],lt=function(e,t,n){for(var r in e){r=="waitSeconds"&&(p.waitms=(e[r]||0)*1e3),r=="cacheBust"&&(et=e[r]?o(e[r])?e[r]:(new Date).getTime()+"":"");if(r=="baseUrl"||r=="combo")p[r]=e[r];if(r=="async"){var i=e[r];p.legacyMode=A=o(i)&&/sync|legacyAsync/.test(i)?i:i?!1:O,p.async=!A}e[r]!==y&&(p.rawConfig[r]=e[r],r!="has"&&g.add("config-"+r,e[r],0,t))}p.baseUrl||(p.baseUrl="./"),/\/$/.test(p.baseUrl)||(p.baseUrl+="/");for(r in e.has)g.add(r,e.has[r],0,t);a(e.packages,at);for(b in e.packagePaths)a(e.packagePaths[b],function(e){var t=b+"/"+e;o(e)&&(e={name:e}),e.location=t,at(e)});ut(f(G,e.map),Y),a(Y,function(e){e[1]=ut(e[1],[]),e[0]=="*"&&(Y.star=e)}),ut(f(J,e.paths),K),a(e.aliases,function(e){o(e[0])&&(e[0]=new RegExp("^"+ot(e[0])+"$")),$.push(e)});if(t)ft.push({config:e.config});else for(r in e.config){var s=jt(r,n);s.config=f(s.config||{},e.config[r])}e.cache&&(st(),rt=e.cache,e.cache["*noref"]&&st()),X("config",[e,p.rawConfig])};if(g("dojo-cdn")||0){var ct=v.getElementsByTagName("script"),S=0,ht,pt,dt,vt;while(S<ct.length){ht=ct[S++];if((dt=ht.getAttribute("src"))&&(vt=dt.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))){pt=vt[3]||"",t.baseUrl=t.baseUrl||pt,dt=ht.getAttribute("data-dojo-config")||ht.getAttribute("djConfig"),dt&&(it=p.eval("({ "+dt+" })","data-dojo-config"));break}}}p.rawConfig={},lt(t,1),g("dojo-cdn")&&(Q.dojo.location=pt,pt&&(pt+="/"),Q.dijit.location=pt+"../dijit/",Q.dojox.location=pt+"../dojox/"),lt(e,1),lt(it,1);var Et=function(e){en(function(){a(e.deps,fn)})},St=function(e,t,r,i,s){var a,c;if(o(e)){a=jt(e,i,!0);if(a&&a.executed)return a.result;throw l("undefinedModule",e)}u(e)||(lt(e,0,i),e=t,t=r);if(u(e))if(!e.length)t&&t();else{c="require*"+h();for(var d,v=[],m=0;m<e.length;)d=e[m++],v.push(jt(d,i));a=f(_t("",c,0,""),{injected:N,deps:v,def:t||n,require:i?i.require:p,gc:1}),Z[a.mid]=a,Et(a);var g=Zt&&A!=O;en(function(){Yt(a,g)}),a.executed||Tt.push(a),tn()}return s},xt=function(e){if(!e)return p;var t=e.require;return t||(t=function(n,r,i){return St(n,r,i,e,t)},e.require=f(t,p),t.module=e,t.toUrl=function(t){return It(t,e)},t.toAbsMid=function(t){return Ft(t,e)},t.syncLoadNls=function(t){var n=Pt(t,e),r=Z[n.mid];if(!r||!r.executed)sn=tt[n.mid]||tt[nt+n.url],sn&&(an(sn),r=Z[n.mid]);return r&&r.executed&&r.result}),t},Tt=[],Nt=[],Ct={},kt=function(e){e.injected=T,Ct[e.mid]=1,e.url&&(Ct[e.url]=e.pack||1),dn()},Lt=function(e){e.injected=N,delete Ct[e.mid],e.url&&delete Ct[e.url],r(Ct)&&(pn(),A==M&&(A=O))},At=p.idle=function(){return!Nt.length&&r(Ct)&&!Tt.length&&!Zt},Ot=function(e,t){if(t)for(var n=0;n<t.length;n++)if(t[n][2].test(e))return t[n];return 0},Mt=function(e){var t=[],n,r;e=e.replace(/\\/g,"/").split("/");while(e.length)n=e.shift(),n==".."&&t.length&&r!=".."?(t.pop(),r=t[t.length-1]):n!="."&&t.push(r=n);return t.join("/")},_t=function(e,t,n,r){var i=p.isXdUrl(r);return{pid:e,mid:t,pack:n,url:r,executed:0,def:0,isXd:i,isAmd:!!(i||Q[e]&&Q[e].isAmd)}},Dt=function(e,t,n,r,i,o,u,f){var c,h,p,d,v,m,y,b,w;w=e,b=/^\./.test(e);if(/(^\/)|(\:)|(\.js$)/.test(e)||b&&!t)return _t(0,e,0,e);e=Mt(b?t.mid+"/../"+e:e);if(/^\./.test(e))throw l("irrationalPath",e);t&&(v=Ot(t.mid,o)),v=v||o.star,v=v&&Ot(e,v[1]),v&&(e=v[1]+e.substring(v[3])),vt=e.match(/^([^\/]+)(\/(.+))?$/),c=vt?vt[1]:"",(h=n[c])?e=c+"/"+(p=vt[3]||h.main):c="";var E=0,S=0;return a($,function(t){var n=e.match(t[0]);n&&n.length>E&&(S=s(t[1])?e.replace(t[0],t[1]):t[1])}),S?Dt(S,0,n,r,i,o,u,f):(y=r[e],y?f?_t(y.pid,y.mid,y.pack,y.url):r[e]:(v=Ot(e,u),v?m=v[1]+e.substring(v[3]):c?m=h.location+"/"+p:g("config-tlmSiblingOfDojo")?m="../"+e:m=e,/(^\/)|(\:)/.test(m)||(m=i+m),m+=".js",_t(c,e,h,Mt(m))))},Pt=function(e,t){return Dt(e,t,Q,Z,p.baseUrl,Y,K)},Ht=function(e,t,n){return e.normalize?e.normalize(t,function(e){return Ft(e,n)}):Ft(t,n)},Bt=0,jt=function(e,t,n){var r,i,s,o;return r=e.match(/^(.+?)\!(.*)$/),r?(i=jt(r[1],t,n),A==O&&!i.executed&&(fn(i),i.injected===N&&!i.executed&&en(function(){Yt(i)}),i.executed?Jt(i):Tt.unshift(i)),i.executed===L&&!i.load&&Jt(i),i.load?(s=Ht(i,r[2],t),e=i.mid+"!"+(i.dynamic?++Bt+"!":"")+s):(s=r[2],e=i.mid+"!"+ ++Bt+"!waitingForPlugin"),o={plugin:i,mid:e,req:xt(t),prid:s}):o=Pt(e,t),Z[o.mid]||!n&&(Z[o.mid]=o)},Ft=p.toAbsMid=function(e,t){return Pt(e,t).mid},It=p.toUrl=function(e,t){var n=Pt(e+"/x",t),r=n.url;return nn(n.pid===0?e:r.substring(0,r.length-5))},qt={injected:N,executed:L,def:C,result:C},Rt=function(e){return Z[e]=f({mid:e},qt)},Ut=Rt("require"),zt=Rt("exports"),Wt=Rt("module"),Xt=function(e,t){p.trace("loader-run-factory",[e.mid]);var n=e.def,r;_.unshift(e);if(g("config-dojo-loader-catches"))try{r=s(n)?n.apply(null,t):n}catch(i){X(W,e.result=l("factoryThrew",[e,i]))}else r=s(n)?n.apply(null,t):n;e.result=r===undefined&&e.cjs?e.cjs.exports:r,_.shift(e)},Vt={},$t=0,Jt=function(e){var t=e.result;return e.dynamic=t.dynamic,e.normalize=t.normalize,e.load=t.load,e},Kt=function(e){var t={};a(e.loadQ,function(n){var r=Ht(e,n.prid,n.req.module),i=e.dynamic?n.mid.replace(/waitingForPlugin$/,r):e.mid+"!"+r,s=f(f({},n),{mid:i,prid:r,injected:0});Z[i]||rn(Z[i]=s),t[n.mid]=Z[i],Lt(n),delete Z[n.mid]}),e.loadQ=0;var n=function(e){for(var n,r=e.deps||[],i=0;i<r.length;i++)n=t[r[i].mid],n&&(r[i]=n)};for(var r in Z)n(Z[r]);a(Tt,n)},Qt=function(e){p.trace("loader-finish-exec",[e.mid]),e.executed=L,e.defOrder=$t++,a(e.provides,function(e){e()}),e.loadQ&&(Jt(e),Kt(e));for(S=0;S<Tt.length;)Tt[S]===e?Tt.splice(S,1):S++;/^require\*/.test(e.mid)&&delete Z[e.mid]},Gt=[],Yt=function(e,t){if(e.executed===k)return p.trace("loader-circular-dependency",[Gt.concat(e.mid).join("->")]),!e.def||t?Vt:e.cjs&&e.cjs.exports;if(!e.executed){if(!e.def)return Vt;var n=e.mid,r=e.deps||[],i,s,o=[],u=0;Gt.push(n),p.trace("loader-exec-module",["exec",Gt.length,n]),e.executed=k;while(u<r.length){i=r[u++],s=i===Ut?xt(e):i===zt?e.cjs.exports:i===Wt?e.cjs:Yt(i,t);if(s===Vt)return e.executed=0,p.trace("loader-exec-module",["abort",n]),Gt.pop(),Vt;o.push(s)}Xt(e,o),Qt(e),Gt.pop()}return e.result},Zt=0,en=function(e){try{Zt++,e()}finally{Zt--}At()&&X("idle",[])},tn=function(){if(Zt)return;en(function(){P();for(var e,t,n=0;n<Tt.length;)e=$t,t=Tt[n],Yt(t),e!=$t?(P(),n=0):n++})};g("dojo-loader-eval-hint-url")===undefined&&g.add("dojo-loader-eval-hint-url",1);var nn=function(e){return e+="",e+(et?(/\?/.test(e)?"&":"?")+et:"")},rn=function(e){var t=e.plugin;t.executed===L&&!t.load&&Jt(t);var n=function(t){e.result=t,Lt(e),Qt(e),tn()};t.load?t.load(e.prid,e.req,n):t.loadQ?t.loadQ.push(e):(t.loadQ=[e],Tt.unshift(t),fn(t))},sn=0,on=0,un=0,an=function(e,t){g("config-stripStrict")&&(e=e.replace(/"use strict"/g,"")),un=1;if(g("config-dojo-loader-catches"))try{e===sn?sn.call(null):p.eval(e,g("dojo-loader-eval-hint-url")?t.url:t.mid)}catch(n){X(W,l("evalModuleThrew",t))}else e===sn?sn.call(null):p.eval(e,g("dojo-loader-eval-hint-url")?t.url:t.mid);un=0},fn=function(e){var t=e.mid,n=e.url;if(e.executed||e.injected||Ct[t]||e.url&&(e.pack&&Ct[e.url]===e.pack||Ct[e.url]==1))return;kt(e);if(e.plugin){rn(e);return}var i=function(){cn(e),e.injected!==N&&(Lt(e),f(e,qt),p.trace("loader-define-nonmodule",[e.url])),A?!_.length&&tn():tn()};sn=tt[t]||tt[nt+e.url];if(sn){p.trace("loader-inject",["cache",e.mid,n]),an(sn,e),i();return}if(A)if(e.isXd)A==O&&(A=M);else if(!e.isAmd||A==O){var s=function(r){if(A==O){_.unshift(e),an(r,e),_.shift(),cn(e),e.cjs||(Lt(e),Qt(e));if(e.finish){var s=t+"*finish",o=e.finish;delete e.finish,wn(s,["dojo",("dojo/require!"+o.join(",")).replace(/\./g,"/")],function(e){a(o,function(t){e.require(t)})}),Tt.unshift(jt(s))}i()}else r=H(e,r),r?(an(r,e),i()):(on=e,p.injectUrl(nn(n),i,e),on=0)};p.trace("loader-inject",["xhr",e.mid,n,A!=O]);if(g("config-dojo-loader-catches"))try{p.getText(n,A!=O,s)}catch(o){X(W,l("xhrInjectFailed",[e,o]))}else p.getText(n,A!=O,s);return}p.trace("loader-inject",["script",e.mid,n]),on=e,p.injectUrl(nn(n),i,e),on=0},ln=function(e,t,n){p.trace("loader-define-module",[e.mid,t]);var r=e.mid;if(e.injected===N)return X(W,l("multipleDefine",e)),e;f(e,{deps:t,def:n,cjs:{id:e.mid,uri:e.url,exports:e.result={},setExports:function(t){e.cjs.exports=t},config:function(){return e.config}}});for(var i=0;i<t.length;i++)t[i]=jt(t[i],e);return A&&!Ct[r]&&(Et(e),Tt.push(e),tn()),Lt(e),!s(n)&&!t.length&&(e.result=n,Qt(e)),e},cn=function(e,t){var n=[],r,i;while(Nt.length)i=Nt.shift(),t&&(i[0]=t.shift()),r=i[0]&&jt(i[0])||e,n.push([r,i[1],i[2]]);st(e),a(n,function(e){Et(ln.apply(null,e))})},hn=0,pn=n,dn=n;p.log=function(){try{for(var e=0;e<arguments.length;e++)console.log(arguments[e])}catch(t){}};var bn=p.trace=function(e,t){if(bn.on&&bn.group[e]){X("trace",[e,t]);for(var n,r=[],i="trace:"+e+(t.length?":"+t[0]:""),s=1;s<t.length;)n=t[s++],o(n)?i+=", "+n:r.push(n);p.log(i),r.length&&r.push("."),p.log.apply(p,r)}};f(bn,{on:1,group:{},set:function(e,t){o(e)?bn.group[e]=t:f(bn.group,e)}}),bn.set(f(f(f({},t.trace),e.trace),it.trace)),V("config",function(e){e.trace&&bn.set(e.trace)});var wn=function(e,t,n){var r=arguments.length,i=["require","exports","module"],a=[0,e,t];r==1?a=[0,s(e)?i:[],e]:r==2&&o(e)?a=[e,s(t)?i:[],t]:r==3&&(a=[e,t,n]),p.trace("loader-define",a.slice(0,2));var f=a[0]&&jt(a[0]),c;if(f&&!Ct[f.mid])Et(ln(f,a[1],a[2]));else if(!g("ie-event-behavior")||!0||un)Nt.push(a);else{f=f||on;if(!f)for(e in Ct){c=Z[e];if(c&&c.node&&c.node.readyState==="interactive"){f=c;break}}f?(st(f),Et(ln(f,a[1],a[2]))):X(W,l("ieDefineFailed",a[0])),tn()}};wn.amd={vendor:"dojotoolkit.org"},f(f(p,t.loaderPatch),e.loaderPatch),V(W,function(e){try{console.error(e);if(e instanceof Error){for(var t in e)console.log(t+":",e[t]);console.log(".")}}catch(n){}}),f(p,{uid:h,cache:tt,packs:Q}),f(p,{paths:J,aliases:$,modules:Z,legacyMode:A,execQ:Tt,defQ:Nt,waiting:Ct,packs:Q,mapProgs:Y,pathsMapProg:K,listenerQueues:z,computeMapProg:ut,runMapProg:Ot,compactPath:Mt,getModuleInfo:Dt});if(d.define){X(W,l("defineAlreadyDefined",0));return}d.define=wn,d.require=p,a(ft,function(e){lt(e)});var xn=it.deps||e.deps||t.deps,Tn=it.callback||e.callback||t.callback;p.boot=xn||Tn?[xn||[],Tn]:0})(this.dojoConfig||this.djConfig||this.require||{},{async:0,hasCache:{"config-selectorEngine":"lite","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:".",name:"dojo"},{location:"../build",name:"build"}]}),require({cache:{"dojo/main":function(){define("dojo/main",["./_base/kernel","./has","require","./sniff","./_base/lang","./_base/array","./_base/config","./ready","./_base/declare","./_base/connect","./_base/Deferred","./_base/json","./_base/Color","./has!dojo-firebug?./_firebug/firebug","require","./_base/loader"],function(e,t,n,r,i,s,o,u){o.isDebug&&n(["./_firebug/firebug"]),1;var a=o.require;return a&&(a=s.map(i.isArray(a)?a:[a],function(e){return e.replace(/\./g,"/")}),e.isAsync?n(a):u(1,function(){n(a)})),e})},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(e,t,n,r){var i,s,o={},u={},a={config:t,global:this,dijit:o,dojox:u},f={dojo:["dojo",a],dijit:["dijit",o],dojox:["dojox",u]},l=n.map&&n.map[r.id.match(/[^\/]+/)[0]],c;for(s in l)f[s]?f[s][0]=l[s]:f[s]=[l[s],{}];for(s in f)c=f[s],c[1]._scopeName=c[0],t.noGlobals||(this[c[0]]=c[1]);a.scopeMap=f,a.baseUrl=a.config.baseUrl=n.baseUrl,a.isAsync=n.async,a.locale=t.locale;var h="$Rev: 30226 $".match(/\d+/);a.version={major:1,minor:8,patch:3,flag:"",revision:h?+h[0]:NaN,toString:function(){var e=a.version;return e.major+"."+e.minor+"."+e.patch+e.flag+" ("+e.revision+")"}},1,Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(a),a.exit=function(e){quit(e)},1,typeof console!="undefined"||(console={});var p=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"],d;i=0;while(d=p[i++])console[d]||function(){var e=d+"";console[e]="log"in console?function(){var t=Array.apply({},arguments);t.unshift(e+":"),console.log(t.join(" "))}:function(){},console[e]._fake=!0}();e.add("dojo-debug-messages",!!t.isDebug),a.deprecated=a.experimental=function(){},e("dojo-debug-messages")&&(a.deprecated=function(e,t,n){var r="DEPRECATED: "+e;t&&(r+=" "+t),n&&(r+=" -- will be removed in version: "+n),console.warn(r)},a.experimental=function(e,t){var n="EXPERIMENTAL: "+e+" -- APIs subject to change without notice.";t&&(n+=" "+t),console.warn(n)}),1;if(t.modulePaths){a.deprecated("dojo.modulePaths","use paths configuration");var v={};for(s in t.modulePaths)v[s.replace(/\./g,"/")]=t.modulePaths[s];n({paths:v})}return 1,a.moduleUrl=function(e,t){a.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var r=null;return e&&(r=n.toUrl(e.replace(/\./g,"/")+(t?"/"+t:"")+"/*.*").replace(/\/\*\.\*/,"")+(t?"":"/")),r},a._hasResource={},a})},"dojo/has":function(){define("dojo/has",["require","module"],function(e,t){var n=e.has||function(){};return n.clearElement=function(e){return e.innerHTML="",e},n.normalize=function(e,t){var r=e.match(/[\?:]|[^:\?]*/g),i=0,s=function(e){var t=r[i++];return t==":"?0:r[i++]=="?"?!e&&n(t)?s():(s(!0),s(e)):t||0};return e=s(),e&&t(e)},n.load=function(e,t,n){e?t([e],n):n()},n})},"dojo/_base/config":function(){define(["../has","require"],function(e,t){var n={},r=t.rawConfig,i;for(i in r)n[i]=r[i];return n})},"dojo/sniff":function(){define("dojo/sniff",["./has"],function(e){return e})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(e,t){t.add("bug-for-in-skips-shadowed",function(){for(var e in{toString:1})return 0;return 1});var n=t("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],r=n.length,i=function(t,n,r){var i,s=0,o=e.global;if(!r){if(!t.length)return o;i=t[s++];try{r=e.scopeMap[i]&&e.scopeMap[i][1]}catch(u){}r=r||(i in o?o[i]:n?o[i]={}:undefined)}while(r&&(i=t[s++]))r=i in r?r[i]:n?r[i]={}:undefined;return r},s=Object.prototype.toString,o=function(e,t,n){return(n||[]).concat(Array.prototype.slice.call(e,t||0))},u=/\{([^\}]+)\}/g,a={_extraNames:n,_mixin:function(e,i,s){var o,u,a,f={};for(o in i){u=i[o];if(!(o in e)||e[o]!==u&&(!(o in f)||f[o]!==u))e[o]=s?s(u):u}if(t("bug-for-in-skips-shadowed")&&i)for(a=0;a<r;++a){o=n[a],u=i[o];if(!(o in e)||e[o]!==u&&(!(o in f)||f[o]!==u))e[o]=s?s(u):u}return e},mixin:function(e,t){e||(e={});for(var n=1,r=arguments.length;n<r;n++)a._mixin(e,arguments[n]);return e},setObject:function(e,t,n){var r=e.split("."),s=r.pop(),o=i(r,!0,n);return o&&s?o[s]=t:undefined},getObject:function(e,t,n){return i(e.split("."),t,n)},exists:function(e,t){return a.getObject(e,!1,t)!==undefined},isString:function(e){return typeof e=="string"||e instanceof String},isArray:function(e){return e&&(e instanceof Array||typeof e=="array")},isFunction:function(e){return s.call(e)==="[object Function]"},isObject:function(e){return e!==undefined&&(e===null||typeof e=="object"||a.isArray(e)||a.isFunction(e))},isArrayLike:function(e){return e&&e!==undefined&&!a.isString(e)&&!a.isFunction(e)&&(!e.tagName||e.tagName.toLowerCase()!="form")&&(a.isArray(e)||isFinite(e.length))},isAlien:function(e){return e&&!a.isFunction(e)&&/\{\s*\[native code\]\s*\}/.test(String(e))},extend:function(e,t){for(var n=1,r=arguments.length;n<r;n++)a._mixin(e.prototype,arguments[n]);return e},_hitchArgs:function(t,n){var r=a._toArray(arguments,2),i=a.isString(n);return function(){var s=a._toArray(arguments),o=i?(t||e.global)[n]:n;return o&&o.apply(t||this,r.concat(s))}},hitch:function(t,n){if(arguments.length>2)return a._hitchArgs.apply(e,arguments);n||(n=t,t=null);if(a.isString(n)){t=t||e.global;if(!t[n])throw['lang.hitch: scope["',n,'"] is null (scope="',t,'")'].join("");return function(){return t[n].apply(t,arguments||[])}}return t?function(){return n.apply(t,arguments||[])}:n},delegate:function(){function e(){}return function(t,n){e.prototype=t;var r=new e;return e.prototype=null,n&&a._mixin(r,n),r}}(),_toArray:t("ie")?function(){function e(e,t,n){var r=n||[];for(var i=t||0;i<e.length;i++)r.push(e[i]);return r}return function(t){return(t.item?e:o).apply(this,arguments)}}():o,partial:function(t){var n=[null];return a.hitch.apply(e,n.concat(a._toArray(arguments)))},clone:function(e){if(!e||typeof e!="object"||a.isFunction(e))return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);var t,n,r;if(a.isArray(e)){t=[];for(n=0,r=e.length;n<r;++n)n in e&&t.push(a.clone(e[n]))}else t=e.constructor?new e.constructor:{};return a._mixin(t,e,a.clone)},trim:String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(e,t,n){return e.replace(n||u,a.isFunction(t)?t:function(e,n){return a.getObject(n,!1,t)})}};return a.mixin(e,a),a})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(e,t,n){function s(e){return r[e]=new Function("item","index","array",e)}function o(e){var t=!e;return function(n,i,o){var u=0,a=n&&n.length||0,f;a&&typeof n=="string"&&(n=n.split("")),typeof i=="string"&&(i=r[i]||s(i));if(o)for(;u<a;++u){f=!i.call(o,n[u],u,n);if(e^f)return!f}else for(;u<a;++u){f=!i(n[u],u,n);if(e^f)return!f}return t}}function u(e){var t=1,n=0,r=0;return e||(t=n=r=-1),function(s,o,u,f){if(f&&t>0)return a.lastIndexOf(s,o,u);var l=s&&s.length||0,c=e?l+r:n,h;u===i?h=e?n:l+r:u<0?(h=l+u,h<0&&(h=n)):h=u>=l?l+r:u,l&&typeof s=="string"&&(s=s.split(""));for(;h!=c;h+=t)if(s[h]==o)return h;return-1}}var r={},i,a={every:o(!1),some:o(!0),indexOf:u(!0),lastIndexOf:u(!1),forEach:function(e,t,n){var i=0,o=e&&e.length||0;o&&typeof e=="string"&&(e=e.split("")),typeof t=="string"&&(t=r[t]||s(t));if(n)for(;i<o;++i)t.call(n,e[i],i,e);else for(;i<o;++i)t(e[i],i,e)},map:function(e,t,n,i){var o=0,u=e&&e.length||0,a=new(i||Array)(u);u&&typeof e=="string"&&(e=e.split("")),typeof t=="string"&&(t=r[t]||s(t));if(n)for(;o<u;++o)a[o]=t.call(n,e[o],o,e);else for(;o<u;++o)a[o]=t(e[o],o,e);return a},filter:function(e,t,n){var i=0,o=e&&e.length||0,u=[],a;o&&typeof e=="string"&&(e=e.split("")),typeof t=="string"&&(t=r[t]||s(t));if(n)for(;i<o;++i)a=e[i],t.call(n,a,i,e)&&u.push(a);else for(;i<o;++i)a=e[i],t(a,i,e)&&u.push(a);return u},clearCache:function(){r={}}};return n.mixin(e,a),a})},"dojo/ready":function(){define("dojo/ready",["./_base/kernel","./has","require","require","./_base/lang"],function(e,t,n,r,i){var s=0,o,u=[],a=0,f=function(){s=1,e._postLoad=e.config.afterOnLoad=!0,u.length&&o(l)},l=function(){if(s&&!a&&u.length){a=1;var e=u.shift();try{e()}finally{a=0}a=0,u.length&&o(l)}};n.on("idle",l),o=function(){n.idle()&&l()};var c=e.ready=e.addOnLoad=function(t,n,r){var s=i._toArray(arguments);typeof t!="number"?(r=n,n=t,t=1e3):s.shift(),r=r?i.hitch.apply(e,s):function(){n()},r.priority=t;for(var a=0;a<u.length&&t>=u[a].priority;a++);u.splice(a,0,r),o()};1;var h=e.config.addOnLoad;return h&&c[i.isArray(h)?"apply":"call"](e,h),e.config.parseOnLoad&&!e.isAsync&&c(99,function(){e.parser||(e.deprecated("Add explicit require(['dojo/parser']);","","2.0"),n(["dojo/parser"]))}),f(),c})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(e,t,n){function f(e,t){throw new Error("declare"+(t?" "+t:"")+": "+e)}function l(e,t){var n=[],r=[{cls:0,refs:[]}],i={},o=1,a=e.length,l=0,c,h,p,d,v,m,g,y;for(;l<a;++l){p=e[l],p?s.call(p)!="[object Function]"&&f("mixin #"+l+" is not a callable constructor.",t):f("mixin #"+l+" is unknown. Did you use dojo.require to pull it in?",t),h=p._meta?p._meta.bases:[p],d=0;for(c=h.length-1;c>=0;--c)v=h[c].prototype,v.hasOwnProperty("declaredClass")||(v.declaredClass="uniqName_"+u++),g=v.declaredClass,i.hasOwnProperty(g)||(i[g]={count:0,refs:[],cls:h[c]},++o),m=i[g],d&&d!==m&&(m.refs.push(d),++d.count),d=m;++d.count,r[0].refs.push(d)}while(r.length){d=r.pop(),n.push(d.cls),--o;while(y=d.refs,y.length==1){d=y[0];if(!d||--d.count){d=0;break}n.push(d.cls),--o}if(d)for(l=0,a=y.length;l<a;++l)d=y[l],--d.count||r.push(d)}return o&&f("can't build consistent linearization",t),p=e[0],n[0]=p?p._meta&&p===n[n.length-p._meta.bases.length]?p._meta.bases.length:1:0,n}function c(e,t,n){var r,s,o,u,l,c,h,p,d,v=this._inherited=this._inherited||{};typeof e=="string"&&(r=e,e=t,t=n),n=0,u=e.callee,r=r||u.nom,r||f("can't deduce a name to call inherited()",this.declaredClass),l=this.constructor._meta,o=l.bases,d=v.p;if(r!=a){if(v.c!==u){d=0,c=o[0],l=c._meta;if(l.hidden[r]!==u){s=l.chains,s&&typeof s[r]=="string"&&f("calling chained method with inherited: "+r,this.declaredClass);do{l=c._meta,h=c.prototype;if(l&&(h[r]===u&&h.hasOwnProperty(r)||l.hidden[r]===u))break}while(c=o[++d]);d=c?d:-1}}c=o[++d];if(c){h=c.prototype;if(c._meta&&h.hasOwnProperty(r))n=h[r];else{p=i[r];do{h=c.prototype,n=h[r];if(n&&(c._meta?h.hasOwnProperty(r):n!==p))break}while(c=o[++d])}}n=c&&n||i[r]}else{if(v.c!==u){d=0,l=o[0]._meta;if(l&&l.ctor!==u){s=l.chains,(!s||s.constructor!=="manual")&&f("calling chained constructor with inherited",this.declaredClass);while(c=o[++d]){l=c._meta;if(l&&l.ctor===u)break}d=c?d:-1}}while(c=o[++d]){l=c._meta,n=l?l.ctor:c;if(n)break}n=c&&n}v.c=n,v.p=d;if(n)return t===!0?n:n.apply(this,t||e)}function h(e,t){return typeof e=="string"?this.__inherited(e,t,!0):this.__inherited(e,!0)}function p(e,t,n){var r=this.getInherited(e,t);if(r)return r.apply(this,n||t||e)}function v(e){var t=this.constructor._meta.bases;for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return this instanceof e}function m(e,r){for(var i in r)i!=a&&r.hasOwnProperty(i)&&(e[i]=r[i]);if(t("bug-for-in-skips-shadowed"))for(var s=n._extraNames,o=s.length;o;)i=s[--o],i!=a&&r.hasOwnProperty(i)&&(e[i]=r[i])}function g(e,r){var o,u;for(o in r)u=r[o],(u!==i[o]||!(o in i))&&o!=a&&(s.call(u)=="[object Function]"&&(u.nom=o),e[o]=u);if(t("bug-for-in-skips-shadowed"))for(var f=n._extraNames,l=f.length;l;)o=f[--l],u=r[o],(u!==i[o]||!(o in i))&&o!=a&&(s.call(u)=="[object Function]"&&(u.nom=o),e[o]=u);return e}function y(e){return C.safeMixin(this.prototype,e),this}function b(e){return C([this].concat(e))}function w(e,t){return function(){var n=arguments,r=n,i=n[0],s,o,u,a=e.length,f;if(!(this instanceof n.callee))return N(n);if(t&&(i&&i.preamble||this.preamble)){f=new Array(e.length),f[0]=n;for(o=0;;){i=n[0],i&&(s=i.preamble,s&&(n=s.apply(this,n)||n)),s=e[o].prototype,s=s.hasOwnProperty("preamble")&&s.preamble,s&&(n=s.apply(this,n)||n);if(++o==a)break;f[o]=n}}for(o=a-1;o>=0;--o)s=e[o],u=s._meta,s=u?u.ctor:s,s&&s.apply(this,f?f[o]:n);s=this.postscript,s&&s.apply(this,r)}}function E(e,t){return function(){var n=arguments,r=n,i=n[0],s;if(!(this instanceof n.callee))return N(n);t&&(i&&(s=i.preamble,s&&(r=s.apply(this,r)||r)),s=this.preamble,s&&s.apply(this,r)),e&&e.apply(this,n),s=this.postscript,s&&s.apply(this,n)}}function S(e){return function(){var t=arguments,n=0,r,i;if(!(this instanceof t.callee))return N(t);for(;r=e[n];++n){i=r._meta,r=i?i.ctor:r;if(r){r.apply(this,t);break}}r=this.postscript,r&&r.apply(this,t)}}function x(e,t,n){return function(){var r,i,s,o=0,u=1;n&&(o=t.length-1,u=-1);for(;r=t[o];o+=u)i=r._meta,s=(i?i.hidden:r.prototype)[e],s&&s.apply(this,arguments)}}function T(e){o.prototype=e.prototype;var t=new o;return o.prototype=null,t}function N(e){var t=e.callee,n=T(t);return t.apply(n,e),n}function C(e,t,o){typeof e!="string"&&(o=t,t=e,e=""),o=o||{};var u,p,g,N,k,L,A,O=1,M=t;s.call(t)=="[object Array]"?(L=l(t,e),g=L[0],O=L.length-g,t=L[O]):(L=[0],t?s.call(t)=="[object Function]"?(g=t._meta,L=L.concat(g?g.bases:t)):f("base class is not a callable constructor.",e):t!==null&&f("unknown base class. Did you use dojo.require to pull it in?",e));if(t)for(p=O-1;;--p){u=T(t);if(!p)break;g=L[p],(g._meta?m:r)(u,g.prototype),N=new Function,N.superclass=t,N.prototype=u,t=u.constructor=N}else u={};C.safeMixin(u,o),g=o.constructor,g!==i.constructor&&(g.nom=a,u.constructor=g);for(p=O-1;p;--p)g=L[p]._meta,g&&g.chains&&(A=r(A||{},g.chains));u["-chains-"]&&(A=r(A||{},u["-chains-"])),g=!A||!A.hasOwnProperty(a),L[0]=N=A&&A.constructor==="manual"?S(L):L.length==1?E(o.constructor,g):w(L,g),N._meta={bases:L,hidden:o,chains:A,parents:M,ctor:o.constructor},N.superclass=t&&t.prototype,N.extend=y,N.createSubclass=b,N.prototype=u,u.constructor=N,u.getInherited=h,u.isInstanceOf=v,u.inherited=d,u.__inherited=c,e&&(u.declaredClass=e,n.setObject(e,N));if(A)for(k in A)u[k]&&typeof A[k]=="string"&&k!=a&&(g=u[k]=x(k,L,A[k]==="after"),g.nom=k);return N}var r=n.mixin,i=Object.prototype,s=i.toString,o=new Function,u=0,a="constructor",d=e.config.isDebug?p:c;return e.safeMixin=C.safeMixin=g,e.declare=C,C})},"dojo/_base/connect":function(){define(["./kernel","../on","../topic","../aspect","./event","../mouse","./sniff","./lang","../keys"],function(e,t,n,r,i,s,o,u){function a(n,i,o,a,f){a=u.hitch(o,a);if(!n||!n.addEventListener&&!n.attachEvent)return r.after(n||e.global,i,a,!0);typeof i=="string"&&i.substring(0,2)=="on"&&(i=i.substring(2)),n||(n=e.global);if(!f)switch(i){case"keypress":i=p;break;case"mouseenter":i=s.enter;break;case"mouseleave":i=s.leave}return t(n,i,a,f)}function h(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode}o.add("events-keypress-typed",function(){var e={charCode:0};try{e=document.createEvent("KeyboardEvent"),(e.initKeyboardEvent||e.initKeyEvent).call(e,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(t){}return e.charCode==0&&!o("opera")});var f={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,229:113},l=o("mac")?"metaKey":"ctrlKey",c=function(e,t){var n=u.mixin({},e,t);return h(n),n.preventDefault=function(){e.preventDefault()},n.stopPropagation=function(){e.stopPropagation()},n},p;if(o("events-keypress-typed")){var d=function(e,t){try{return e.keyCode=t}catch(e){return 0}};p=function(e,n){var r=t(e,"keydown",function(e){var t=e.keyCode,r=t!=13&&t!=32&&(t!=27||!o("ie"))&&(t<48||t>90)&&(t<96||t>111)&&(t<186||t>192)&&(t<219||t>222)&&t!=229;if(r||e.ctrlKey){var i=r?0:t;if(e.ctrlKey){if(t==3||t==13)return n.call(e.currentTarget,e);i>95&&i<106?i-=48:!e.shiftKey&&i>=65&&i<=90?i+=32:i=f[i]||i}var s=c(e,{type:"keypress",faux:!0,charCode:i});n.call(e.currentTarget,s),o("ie")&&d(e,s.keyCode)}}),i=t(e,"keypress",function(e){var t=e.charCode;return t=t>=32?t:0,e=c(e,{charCode:t,faux:!0}),n.call(this,e)});return{remove:function(){r.remove(),i.remove()}}}}else o("opera")?p=function(e,n){return t(e,"keypress",function(e){var t=e.which;return t==3&&(t=99),t=t<32&&!e.shiftKey?0:t,e.ctrlKey&&!e.shiftKey&&t>=65&&t<=90&&(t+=32),n.call(this,c(e,{charCode:t}))})}:p=function(e,n){return t(e,"keypress",function(e){return h(e),n.call(this,e)})};var v={_keypress:p,connect:function(e,t,n,r,i){var s=arguments,o=[],u=0;o.push(typeof s[0]=="string"?null:s[u++],s[u++]);var f=s[u+1];o.push(typeof f=="string"||typeof f=="function"?s[u++]:null,s[u++]);for(var l=s.length;u<l;u++)o.push(s[u]);return a.apply(this,o)},disconnect:function(e){e&&e.remove()},subscribe:function(e,t,r){return n.subscribe(e,u.hitch(t,r))},publish:function(e,t){return n.publish.apply(n,[e].concat(t))},connectPublisher:function(e,t,n){var r=function(){v.publish(e,arguments)};return n?v.connect(t,n,r):v.connect(t,r)},isCopyKey:function(e){return e[l]}};return v.unsubscribe=v.disconnect,u.mixin(e,v),v})},"dojo/on":function(){define("dojo/on",["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],function(e,t,n){"use strict";function o(e,t,r,o,u){var a=t.match(/(.*):(.*)/);if(a)return t=a[2],a=a[1],i.selector(a,t).call(u,e,r);n("touch")&&(s.test(t)&&(r=x(r)),!n("event-orientationchange")&&t=="orientationchange"&&(t="resize",e=window,r=x(r))),p&&(r=p(r));if(e.addEventListener){var f=t in c,l=f?c[t]:t;return e.addEventListener(l,r,f),{remove:function(){e.removeEventListener(l,r,f)}}}t="on"+t;if(g&&e.attachEvent)return g(e,t,r);throw new Error("Target must be an event emitter")}function u(){this.cancelable=!1}function a(){this.bubbles=!1}var i=function(e,t,n,r){return typeof e.on=="function"&&typeof t!="function"?e.on(t,n):i.parse(e,t,n,o,r,this)};i.pausable=function(e,t,n,r){var s,o=i(e,t,function(){if(!s)return n.apply(this,arguments)},r);return o.pause=function(){s=!0},o.resume=function(){s=!1},o},i.once=function(e,t,n,r){var s=i(e,t,function(){return s.remove(),n.apply(this,arguments)});return s},i.parse=function(e,t,n,r,i,s){if(t.call)return t.call(s,e,n);if(t.indexOf(",")>-1){var o=t.split(/\s*,\s*/),u=[],a=0,f;while(f=o[a++])u.push(r(e,f,n,i,s));return u.remove=function(){for(var e=0;e<u.length;e++)u[e].remove()},u}return r(e,t,n,i,s)};var s=/^touch/;i.selector=function(e,n,r){return function(s,o){function f(n){u=u&&u.matches?u:t.query;while(!u.matches(n,e,s))if(n==s||r===!1||!(n=n.parentNode)||n.nodeType!=1)return;return n}var u=typeof e=="function"?{matches:e}:this,a=n.bubble;return a?i(s,a(f),o):i(s,n,function(e){var t=f(e.target);return t&&o.call(t,e)})}};var f=[].slice,l=i.emit=function(e,t,n){var r=f.call(arguments,2),i="on"+t;if("parentNode"in e){var s=r[0]={};for(var o in n)s[o]=n[o];s.preventDefault=u,s.stopPropagation=a,s.target=e,s.type=t,n=s}do e[i]&&e[i].apply(e,r);while(n&&n.bubbles&&(e=e.parentNode));return n&&n.cancelable&&n},c={};if(!n("event-stopimmediatepropagation"))var h=function(){this.immediatelyStopped=!0,this.modified=!0},p=function(e){return function(t){if(!t.immediatelyStopped)return t.stopImmediatePropagation=h,e.apply(this,arguments)}};if(n("dom-addeventlistener"))c={focusin:"focus",focusout:"blur"},i.emit=function(e,t,n){if(e.dispatchEvent&&document.createEvent){var r=e.ownerDocument.createEvent("HTMLEvents");r.initEvent(t,!!n.bubbles,!!n.cancelable);for(var s in n){var o=n[s];s in r||(r[s]=n[s])}return e.dispatchEvent(r)&&r}return l.apply(i,arguments)};else{i._fixEvent=function(e,t){if(!e){var n=t&&(t.ownerDocument||t.document||t).parentWindow||window;e=n.event}if(!e)return e;d&&e.type==d.type&&(e=d);if(!e.target){e.target=e.srcElement,e.currentTarget=t||e.srcElement,e.type=="mouseover"&&(e.relatedTarget=e.fromElement),e.type=="mouseout"&&(e.relatedTarget=e.toElement),e.stopPropagation||(e.stopPropagation=b,e.preventDefault=w);switch(e.type){case"keypress":var r="charCode"in e?e.charCode:e.keyCode;r==10?(r=0,e.keyCode=13):r==13||r==27?r=0:r==3&&(r=99),e.charCode=r,y(e)}}return e};var d,v=function(e){this.handle=e};v.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var m=function(e){return function(t){t=i._fixEvent(t,this);var n=e.call(this,t);return t.modified&&(d||setTimeout(function(){d=null}),d=t),n}},g=function(t,r,i){i=m(i);if(((t.ownerDocument?t.ownerDocument.parentWindow:t.parentWindow||t.window||window)!=top||n("jscript")<5.8)&&!n("config-_allow_leaks")){typeof _dojoIEListeners_=="undefined"&&(_dojoIEListeners_=[]);var s=t[r];if(!s||!s.listeners){var o=s;s=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}"),s.listeners=[],t[r]=s,s.global=this,o&&s.listeners.push(_dojoIEListeners_.push(o)-1)}var u;return s.listeners.push(u=s.global._dojoIEListeners_.push(i)-1),new v(u)}return e.after(t,r,i,!0)},y=function(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode},b=function(){this.cancelBubble=!0},w=i._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(e){}this.defaultPrevented=!0,this.returnValue=!1}}if(n("touch"))var E=function(){},S=window.orientation,x=function(e){return function(t){var n=t.corrected;if(!n){var r=t.type;try{delete t.type}catch(i){}if(t.type){E.prototype=t;var n=new E;n.preventDefault=function(){t.preventDefault()},n.stopPropagation=function(){t.stopPropagation()}}else n=t,n.type=r;t.corrected=n;if(r=="resize")return S==window.orientation?null:(S=window.orientation,n.type="orientationchange",e.call(this,n));"rotation"in n||(n.rotation=0,n.scale=1);var s=n.changedTouches[0];for(var o in s)delete n[o],n[o]=s[o]}return e.call(this,n)}};return i})},"dojo/topic":function(){define("dojo/topic",["./Evented"],function(e){var t=new e;return{publish:function(e,n){return t.emit.apply(t,arguments)},subscribe:function(e,n){return t.on.apply(t,arguments)}}})},"dojo/Evented":function(){define("dojo/Evented",["./aspect","./on"],function(e,t){"use strict";function r(){}var n=e.after;return r.prototype={on:function(e,r){return t.parse(this,e,r,function(e,t){return n(e,"on"+t,r,!0)})},emit:function(e,n){var r=[this];return r.push.apply(r,arguments),t.emit.apply(t,r)}},r})},"dojo/aspect":function(){define("dojo/aspect",[],function(){"use strict";function n(e,n,r,i){var s=e[n],o=n=="around",u;if(o){var a=r(function(){return s.advice(this,arguments)});u={remove:function(){u.cancelled=!0},advice:function(e,t){return u.cancelled?s.advice(e,t):a.apply(e,t)}}}else u={remove:function(){var t=u.previous,r=u.next;!r&&!t?delete e[n]:(t?t.next=r:e[n]=r,r&&(r.previous=t))},id:t++,advice:r,receiveArguments:i};if(s&&!o)if(n=="after"){while(s.next&&(s=s.next));s.next=u,u.previous=s}else n=="before"&&(e[n]=u,u.next=s,s.previous=u);else e[n]=u;return u}function r(r){return function(i,s,o,u){var a=i[s],f;if(!a||a.target!=i)i[s]=f=function(){var n=t,r=arguments,i=f.before;while(i)r=i.advice.apply(this,r)||r,i=i.next;if(f.around)var s=f.around.advice(this,r);var o=f.after;while(o&&o.id<n){if(o.receiveArguments){var u=o.advice.apply(this,r);s=u===e?s:u}else s=o.advice.call(this,s,r);o=o.next}return s},a&&(f.around={advice:function(e,t){return a.apply(e,t)}}),f.target=i;var l=n(f||a,r,o,u);return o=null,l}}var e,t=0,i=r("after"),s=r("before"),o=r("around");return{before:s,around:o,after:i}})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(e,t,n,r){if(t._fixEvent){var i=t._fixEvent;t._fixEvent=function(e,t){return e=i(e,t),e&&r.normalizeEvent(e),e}}var s={fix:function(e,n){return t._fixEvent?t._fixEvent(e,n):e},stop:function(e){n("dom-addeventlistener")||e&&e.preventDefault?(e.preventDefault(),e.stopPropagation()):(e=e||window.event,e.cancelBubble=!0,t._preventDefault.call(e))}};return e.fixEvent=s.fix,e.stopEvent=s.stop,s})},"dojo/dom-geometry":function(){define("dojo/dom-geometry",["./sniff","./_base/window","./dom","./dom-style"],function(e,t,n,r){function o(e,t,n,r,i,s){s=s||"px";var o=e.style;isNaN(t)||(o.left=t+s),isNaN(n)||(o.top=n+s),r>=0&&(o.width=r+s),i>=0&&(o.height=i+s)}function u(e){return e.tagName.toLowerCase()=="button"||e.tagName.toLowerCase()=="input"&&(e.getAttribute("type")||"").toLowerCase()=="button"}function a(e){return i.boxModel=="border-box"||e.tagName.toLowerCase()=="table"||u(e)}var i={};i.boxModel="content-box",e("ie")&&(i.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box"),i.getPadExtents=function(t,i){t=n.byId(t);var s=i||r.getComputedStyle(t),o=r.toPixelValue,u=o(t,s.paddingLeft),a=o(t,s.paddingTop),f=o(t,s.paddingRight),l=o(t,s.paddingBottom);return{l:u,t:a,r:f,b:l,w:u+f,h:a+l}};var s="none";i.getBorderExtents=function(t,i){t=n.byId(t);var o=r.toPixelValue,u=i||r.getComputedStyle(t),a=u.borderLeftStyle!=s?o(t,u.borderLeftWidth):0,f=u.borderTopStyle!=s?o(t,u.borderTopWidth):0,l=u.borderRightStyle!=s?o(t,u.borderRightWidth):0,c=u.borderBottomStyle!=s?o(t,u.borderBottomWidth):0;return{l:a,t:f,r:l,b:c,w:a+l,h:f+c}},i.getPadBorderExtents=function(t,s){t=n.byId(t);var o=s||r.getComputedStyle(t),u=i.getPadExtents(t,o),a=i.getBorderExtents(t,o);return{l:u.l+a.l,t:u.t+a.t,r:u.r+a.r,b:u.b+a.b,w:u.w+a.w,h:u.h+a.h}},i.getMarginExtents=function(t,i){t=n.byId(t);var s=i||r.getComputedStyle(t),o=r.toPixelValue,u=o(t,s.marginLeft),a=o(t,s.marginTop),f=o(t,s.marginRight),l=o(t,s.marginBottom);return{l:u,t:a,r:f,b:l,w:u+f,h:a+l}},i.getMarginBox=function(o,u){o=n.byId(o);var a=u||r.getComputedStyle(o),f=i.getMarginExtents(o,a),l=o.offsetLeft-f.l,c=o.offsetTop-f.t,h=o.parentNode,p=r.toPixelValue,d;if(e("mozilla")){var v=parseFloat(a.left),m=parseFloat(a.top);!isNaN(v)&&!isNaN(m)?(l=v,c=m):h&&h.style&&(d=r.getComputedStyle(h),d.overflow!="visible"&&(l+=d.borderLeftStyle!=s?p(o,d.borderLeftWidth):0,c+=d.borderTopStyle!=s?p(o,d.borderTopWidth):0))}else(e("opera")||e("ie")==8&&!e("quirks"))&&h&&(d=r.getComputedStyle(h),l-=d.borderLeftStyle!=s?p(o,d.borderLeftWidth):0,c-=d.borderTopStyle!=s?p(o,d.borderTopWidth):0);return{l:l,t:c,w:o.offsetWidth+f.w,h:o.offsetHeight+f.h}},i.getContentBox=function(s,o){s=n.byId(s);var u=o||r.getComputedStyle(s),a=s.clientWidth,f,l=i.getPadExtents(s,u),c=i.getBorderExtents(s,u);return a?(f=s.clientHeight,c.w=c.h=0):(a=s.offsetWidth,f=s.offsetHeight),e("opera")&&(l.l+=c.l,l.t+=c.t),{l:l.l,t:l.t,w:a-l.w-c.w,h:f-l.h-c.h}},i.setContentSize=function(t,r,s){t=n.byId(t);var u=r.w,f=r.h;if(a(t)){var l=i.getPadBorderExtents(t,s);u>=0&&(u+=l.w),f>=0&&(f+=l.h)}o(t,NaN,NaN,u,f)};var f={l:0,t:0,w:0,h:0};return i.setMarginBox=function(s,l,c){s=n.byId(s);var h=c||r.getComputedStyle(s),p=l.w,d=l.h,v=a(s)?f:i.getPadBorderExtents(s,h),m=i.getMarginExtents(s,h);if(e("webkit")&&u(s)){var g=s.style;p>=0&&!g.width&&(g.width="4px"),d>=0&&!g.height&&(g.height="4px")}p>=0&&(p=Math.max(p-v.w-m.w,0)),d>=0&&(d=Math.max(d-v.h-m.h,0)),o(s,l.l,l.t,p,d)},i.isBodyLtr=function(n){return n=n||t.doc,(t.body(n).dir||n.documentElement.dir||"ltr").toLowerCase()=="ltr"},i.docScroll=function(r){r=r||t.doc;var s=t.doc.parentWindow||t.doc.defaultView;return"pageXOffset"in s?{x:s.pageXOffset,y:s.pageYOffset}:(s=e("quirks")?t.body(r):r.documentElement)&&{x:i.fixIeBiDiScrollLeft(s.scrollLeft||0,r),y:s.scrollTop||0}},e("ie")&&(i.getIeDocumentElementOffset=function(r){r=r||t.doc;var i=r.documentElement;if(e("ie")<8){var s=i.getBoundingClientRect(),o=s.left,u=s.top;return e("ie")<7&&(o+=i.clientLeft,u+=i.clientTop),{x:o<0?0:o,y:u<0?0:u}}return{x:0,y:0}}),i.fixIeBiDiScrollLeft=function(r,s){s=s||t.doc;var o=e("ie");if(o&&!i.isBodyLtr(s)){var u=e("quirks"),a=u?t.body(s):s.documentElement,f=t.global;return o==6&&!u&&f.frameElement&&a.scrollHeight>a.clientHeight&&(r+=a.clientLeft),o<8||u?r+a.clientWidth-a.scrollWidth:-r}return r},i.position=function(r,s){r=n.byId(r);var o=t.body(r.ownerDocument),u=r.getBoundingClientRect();u={x:u.left,y:u.top,w:u.right-u.left,h:u.bottom-u.top};if(e("ie")<9){var a=i.getIeDocumentElementOffset(r.ownerDocument);u.x-=a.x+(e("quirks")?o.clientLeft+o.offsetLeft:0),u.y-=a.y+(e("quirks")?o.clientTop+o.offsetTop:0)}if(s){var f=i.docScroll(r.ownerDocument);u.x+=f.x,u.y+=f.y}return u},i.getMarginSize=function(t,s){t=n.byId(t);var o=i.getMarginExtents(t,s||r.getComputedStyle(t)),u=t.getBoundingClientRect();return{w:u.right-u.left+o.w,h:u.bottom-u.top+o.h}},i.normalizeEvent=function(t){"layerX"in t||(t.layerX=t.offsetX,t.layerY=t.offsetY);if(!e("dom-addeventlistener")){var n=t.target,r=n&&n.ownerDocument||document,s=e("quirks")?r.body:r.documentElement,o=i.getIeDocumentElementOffset(r);t.pageX=t.clientX+i.fixIeBiDiScrollLeft(s.scrollLeft||0,r)-o.x,t.pageY=t.clientY+(s.scrollTop||0)-o.y}},i})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(e,t,n){var r={global:e.global,doc:this.document||null,body:function(t){return t=t||e.doc,t.body||t.getElementsByTagName("body")[0]},setContext:function(t,n){e.global=r.global=t,e.doc=r.doc=n},withGlobal:function(t,n,i,s){var o=e.global;try{return e.global=r.global=t,r.withDoc.call(null,t.document,n,i,s)}finally{e.global=r.global=o}},withDoc:function(t,i,s,o){var u=r.doc,a=n("quirks"),f=n("ie"),l,c,h;try{return e.doc=r.doc=t,e.isQuirks=n.add("quirks",e.doc.compatMode=="BackCompat",!0,!0),n("ie")&&(h=t.parentWindow)&&h.navigator&&(l=parseFloat(h.navigator.appVersion.split("MSIE ")[1])||undefined,c=t.documentMode,c&&c!=5&&Math.floor(l)!=c&&(l=c),e.isIE=n.add("ie",l,!0,!0)),s&&typeof i=="string"&&(i=s[i]),i.apply(s,o||[])}finally{e.doc=r.doc=u,e.isQuirks=n.add("quirks",a,!0,!0),e.isIE=n.add("ie",f,!0,!0)}}};return t.mixin(e,r),r})},"dojo/dom":function(){define("dojo/dom",["./sniff","./_base/window"],function(e,t){if(e("ie")<=7)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(n){}var r={};e("ie")?r.byId=function(e,n){if(typeof e!="string")return e;var r=n||t.doc,i=e&&r.getElementById(e);if(!(!i||i.attributes.id.value!=e&&i.id!=e))return i;var s=r.all[e];if(!s||s.nodeName)s=[s];var o=0;while(i=s[o++])if(i.attributes&&i.attributes.id&&i.attributes.id.value==e||i.id==e)return i}:r.byId=function(e,n){return(typeof e=="string"?(n||t.doc).getElementById(e):e)||null},r.isDescendant=function(e,t){try{e=r.byId(e),t=r.byId(t);while(e){if(e==t)return!0;e=e.parentNode}}catch(n){}return!1},e.add("css-user-select",function(e,t,n){if(!n)return!1;var r=n.style,i=["Khtml","O","ms","Moz","Webkit"],s=i.length,o="userSelect",u;do if(typeof r[o]!="undefined")return o;while(s--&&(o=i[s]+"UserSelect"));return!1});var i=e("css-user-select");return r.setSelectable=i?function(e,t){r.byId(e).style[i]=t?"":"none"}:function(e,t){e=r.byId(e);var n=e.getElementsByTagName("*"),i=n.length;if(t){e.removeAttribute("unselectable");while(i--)n[i].removeAttribute("unselectable")}else{e.setAttribute("unselectable","on");while(i--)n[i].setAttribute("unselectable","on")}},r})},"dojo/dom-style":function(){define("dojo/dom-style",["./sniff","./dom"],function(e,t){function c(t,n,r){n=n.toLowerCase();if(e("ie")){if(r=="auto"){if(n=="height")return t.offsetHeight;if(n=="width")return t.offsetWidth}if(n=="fontweight")switch(r){case 700:return"bold";case 400:default:return"normal"}}return n in f||(f[n]=l.test(n)),f[n]?i(t,r):r}var n,r={};e("webkit")?n=function(e){var t;if(e.nodeType==1){var n=e.ownerDocument.defaultView;t=n.getComputedStyle(e,null),!t&&e.style&&(e.style.display="",t=n.getComputedStyle(e,null))}return t||{}}:e("ie")&&(e("ie")<9||e("quirks"))?n=function(e){return e.nodeType==1&&e.currentStyle?e.currentStyle:{}}:n=function(e){return e.nodeType==1?e.ownerDocument.defaultView.getComputedStyle(e,null):{}},r.getComputedStyle=n;var i;e("ie")?i=function(e,t){if(!t)return 0;if(t=="medium")return 4;if(t.slice&&t.slice(-2)=="px")return parseFloat(t);var n=e.style,r=e.runtimeStyle,i=e.currentStyle,s=n.left,o=r.left;r.left=i.left;try{n.left=t,t=n.pixelLeft}catch(u){t=0}return n.left=s,r.left=o,t}:i=function(e,t){return parseFloat(t)||0},r.toPixelValue=i;var s="DXImageTransform.Microsoft.Alpha",o=function(e,t){try{return e.filters.item(s)}catch(n){return t?{}:null}},u=e("ie")<9||e("ie")<10&&e("quirks")?function(e){try{return o(e).Opacity/100}catch(t){return 1}}:function(e){return n(e).opacity},a=e("ie")<9||e("ie")<10&&e("quirks")?function(e,t){var n=t*100,r=t==1;e.style.zoom=r?"":1;if(!o(e)){if(r)return t;e.style.filter+=" progid:"+s+"(Opacity="+n+")"}else o(e,1).Opacity=n;o(e,1).Enabled=!r;if(e.tagName.toLowerCase()=="tr")for(var i=e.firstChild;i;i=i.nextSibling)i.tagName.toLowerCase()=="td"&&a(i,t);return t}:function(e,t){return e.style.opacity=t},f={left:!0,top:!0},l=/margin|padding|width|height|max|min|offset/,h=e("ie")?"styleFloat":"cssFloat",p={cssFloat:h,styleFloat:h,"float":h};return r.get=function(n,i){var s=t.byId(n),o=arguments.length,a=i=="opacity";if(o==2&&a)return u(s);i=p[i]||i;var f=r.getComputedStyle(s);return o==1?f:c(s,i,f[i]||s.style[i])},r.set=function(n,i,s){var o=t.byId(n),u=arguments.length,f=i=="opacity";i=p[i]||i;if(u==3)return f?a(o,s):o.style[i]=s;for(var l in i)r.set(n,l,i[l]);return r.getComputedStyle(o)},r})},"dojo/mouse":function(){define("dojo/mouse",["./_base/kernel","./on","./has","./dom","./_base/window"],function(e,t,n,r,i){function o(e,n){var i=function(i,s){return t(i,e,function(e){if(n)return n(e,s);if(!r.isDescendant(e.relatedTarget,i))return s.call(this,e)})};return i.bubble=function(t){return o(e,function(e,n){var r=t(e.target),i=e.relatedTarget;if(r&&r!=(i&&i.nodeType==1&&t(i)))return n.call(r,e)})},i}n.add("dom-quirks",i.doc&&i.doc.compatMode=="BackCompat"),n.add("events-mouseenter",i.doc&&"onmouseenter"in i.doc.createElement("div")),n.add("events-mousewheel",i.doc&&"onmousewheel"in i.doc);var s;n("dom-quirks")&&n("ie")||!n("dom-addeventlistener")?s={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,t){return e.button&t},isLeft:function(e){return e.button&1},isMiddle:function(e){return e.button&4},isRight:function(e){return e.button&2}}:s={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,t){return e.button==t},isLeft:function(e){return e.button==0},isMiddle:function(e){return e.button==1},isRight:function(e){return e.button==2}},e.mouseButtons=s;var u;return n("events-mousewheel")?u="mousewheel":u=function(e,n){return t(e,"DOMMouseScroll",function(e){e.wheelDelta=-e.detail,n.call(this,e)})},{_eventHandler:o,enter:o("mouseover"),leave:o("mouseout"),wheel:u,isLeft:s.isLeft,isMiddle:s.isMiddle,isRight:s.isRight}})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(e,t,n){return n})},"dojo/keys":function(){define("dojo/keys",["./_base/kernel","./sniff"],function(e,t){return e.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:t("webkit")?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,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:t("mac")&&!t("air")?t("safari")?91:224:17}})},"dojo/_base/Deferred":function(){define(["./kernel","../Deferred","../promise/Promise","../errors/CancelError","../has","./lang","../when"],function(e,t,n,r,i,s,o){var u=function(){},a=Object.freeze||function(){},f=e.Deferred=function(e){function v(e){if(l)throw new Error("This deferred has already been resolved");o=e,l=!0,m()}function m(){var e;while(!e&&p){var n=p;p=p.next;if(e=n.progress==u)l=!1;var r=c?n.error:n.resolved;i("config-useDeferredInstrumentation")&&c&&t.instrumentRejected&&t.instrumentRejected(o,!!r);if(r)try{var a=r(o);if(a&&typeof a.then=="function"){a.then(s.hitch(n.deferred,"resolve"),s.hitch(n.deferred,"reject"),s.hitch(n.deferred,"progress"));continue}var f=e&&a===undefined;e&&!f&&(c=a instanceof Error),n.deferred[f&&c?"reject":"resolve"](f?o:a)}catch(h){n.deferred.reject(h)}else c?n.deferred.reject(o):n.deferred.resolve(o)}}var o,l,c,h,p,d=this.promise=new n;this.resolve=this.callback=function(e){this.fired=0,this.results=[e,null],v(e)},this.reject=this.errback=function(e){c=!0,this.fired=1,i("config-useDeferredInstrumentation")&&t.instrumentRejected&&t.instrumentRejected(e,!!p),v(e),this.results=[null,e]},this.progress=function(e){var t=p;while(t){var n=t.progress;n&&n(e),t=t.next}},this.addCallbacks=function(e,t){return this.then(e,t,u),this},d.then=this.then=function(e,t,n){var r=n==u?this:new f(d.cancel),i={resolved:e,error:t,progress:n,deferred:r};return p?h=h.next=i:p=h=i,l&&m(),r.promise};var g=this;d.cancel=this.cancel=function(){if(!l){var t=e&&e(g);l||(t instanceof Error||(t=new r(t)),t.log=!1,g.reject(t))}},a(d)};return s.extend(f,{addCallback:function(t){return this.addCallbacks(s.hitch.apply(e,arguments))},addErrback:function(t){return this.addCallbacks(null,s.hitch.apply(e,arguments))},addBoth:function(t){var n=s.hitch.apply(e,arguments);return this.addCallbacks(n,n)},fired:-1}),f.when=e.when=o,f})},"dojo/Deferred":function(){define("dojo/Deferred",["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(e,t,n,r,i){"use strict";var s=0,o=1,u=2,a="This deferred has already been fulfilled.",f=Object.freeze||function(){},l=function(e,t,n,r,i){t===u&&d.instrumentRejected&&e.length===0&&d.instrumentRejected(n,!1,r,i);for(var s=0;s<e.length;s++)c(e[s],t,n,r)},c=function(e,t,n,r){var i=e[t],a=e.deferred;if(i)try{var f=i(n);if(t===s)typeof f!="undefined"&&p(a,t,f);else{if(f&&typeof f.then=="function"){e.cancel=f.cancel,f.then(h(a,o),h(a,u),h(a,s));return}p(a,o,f)}}catch(l){p(a,u,l)}else p(a,t,n);t===u&&d.instrumentRejected&&d.instrumentRejected(n,!!i,r,a.promise)},h=function(e,t){return function(n){p(e,t,n)}},p=function(e,t,n){if(!e.isCanceled())switch(t){case s:e.progress(n);break;case o:e.resolve(n);break;case u:e.reject(n)}},d=function(e){var t=this.promise=new r,i=this,h,p,v,m=!1,g=[];Error.captureStackTrace&&(Error.captureStackTrace(i,d),Error.captureStackTrace(t,d)),this.isResolved=t.isResolved=function(){return h===o},this.isRejected=t.isRejected=function(){return h===u},this.isFulfilled=t.isFulfilled=function(){return!!h},this.isCanceled=t.isCanceled=function(){return m},this.progress=function(e,n){if(!h)return l(g,s,e,null,i),t;if(n===!0)throw new Error(a);return t},this.resolve=function(e,n){if(!h)return l(g,h=o,p=e,null,i),g=null,t;if(n===!0)throw new Error(a);return t};var y=this.reject=function(e,n){if(!h)return Error.captureStackTrace&&Error.captureStackTrace(v={},y),l(g,h=u,p=e,v,i),g=null,t;if(n===!0)throw new Error(a);return t};this.then=t.then=function(e,n,r){var i=[r,e,n];return i.cancel=t.cancel,i.deferred=new d(function(e){return i.cancel&&i.cancel(e)}),h&&!g?c(i,h,p,v):g.push(i),i.deferred.promise},this.cancel=t.cancel=function(t,r){if(!h){if(e){var i=e(t);t=typeof i=="undefined"?t:i}m=!0;if(!h)return typeof t=="undefined"&&(t=new n),y(t),t;if(h===u&&p===t)return t}else if(r===!0)throw new Error(a)},f(t)};return d.prototype.toString=function(){return"[object Deferred]"},i&&i(d),d})},"dojo/errors/CancelError":function(){define(["./create"],function(e){return e("CancelError",null,null,{dojoType:"cancel"})})},"dojo/errors/create":function(){define(["../_base/lang"],function(e){return function(t,n,r,i){r=r||Error;var s=function(e){if(r===Error){Error.captureStackTrace&&Error.captureStackTrace(this,s);var t=Error.call(this,e),i;for(i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);this.message=e,this.stack=t.stack}else r.apply(this,arguments);n&&n.apply(this,arguments)};return s.prototype=e.delegate(r.prototype,i),s.prototype.name=t,s.prototype.constructor=s,s}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(e){"use strict";function t(){throw new TypeError("abstract")}return e.extend(function(){},{then:function(e,n,r){t()},cancel:function(e,n){t()},isResolved:function(){t()},isRejected:function(){t()},isFulfilled:function(){t()},isCanceled:function(){t()},always:function(e){return this.then(e,e)},otherwise:function(e){return this.then(null,e)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(e,t,n,r){function i(e,t,n){var r="";e&&e.stack&&(r+=e.stack),t&&t.stack&&(r+="\n ----------------------------------------\n rejected"+t.stack.split("\n").slice(1).join("\n").replace(/^\s+/," ")),n&&n.stack&&(r+="\n ----------------------------------------\n"+n.stack),console.error(e,r)}function s(e,t,n,r){t||i(e,n,r)}function f(e,t,n,i){t?r.some(o,function(t,n){if(t.error===e)return o.splice(n,1),!0}):r.some(o,function(t){return t.error===e})||o.push({error:e,rejection:n,deferred:i,timestamp:(new Date).getTime()}),u||(u=setTimeout(l,a))}function l(){var e=(new Date).getTime(),t=e-a;o=r.filter(o,function(e){return e.timestamp<t?(i(e.error,e.rejection,e.deferred),!1):!0}),o.length?u=setTimeout(l,o[0].timestamp+a-e):u=!1}var o=[],u=!1,a=1e3;return function(r){var i=t("config-useDeferredInstrumentation");if(i){e.on("resolved",n.hitch(console,"log","resolved")),e.on("rejected",n.hitch(console,"log","rejected")),e.on("progress",n.hitch(console,"log","progress"));var o=[];typeof i=="string"&&(o=i.split(","),i=o.shift());if(i==="report-rejections")r.instrumentRejected=s;else{if(i!=="report-unhandled-rejections"&&i!==!0&&i!==1)throw new Error("Unsupported instrumentation usage <"+i+">");r.instrumentRejected=f,a=parseInt(o[0],10)||a}}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(e,t,n){"use strict";function s(e){setTimeout(function(){i.apply(r,e)},0)}var r=new n,i=r.emit;return r.emit=null,t.prototype.trace=function(){var t=e._toArray(arguments);return this.then(function(e){s(["resolved",e].concat(t))},function(e){s(["rejected",e].concat(t))},function(e){s(["progress",e].concat(t))}),this},t.prototype.traceRejected=function(){var t=e._toArray(arguments);return this.otherwise(function(e){s(["rejected",e].concat(t))}),this},r})},"dojo/when":function(){define("dojo/when",["./Deferred","./promise/Promise"],function(e,t){"use strict";return function(r,i,s,o){var u=r&&typeof r.then=="function",a=u&&r instanceof t;if(!u)return i?i(r):(new e).resolve(r);if(!a){var f=new e(r.cancel);r.then(f.resolve,f.reject,f.progress),r=f.promise}return i||s||o?r.then(i,s,o):r}})},"dojo/_base/json":function(){define(["./kernel","../json"],function(dojo,json){return dojo.fromJson=function(js){return eval("("+js+")")},dojo._escapeString=json.stringify,dojo.toJsonIndentStr=" ",dojo.toJson=function(e,t){return json.stringify(e,function(e,t){if(t){var n=t.__json__||t.json;if(typeof n=="function")return n.call(t)}return t},t&&dojo.toJsonIndentStr)},dojo})},"dojo/json":function(){define("dojo/json",["./has"],function(has){"use strict";var hasJSON=typeof JSON!="undefined";has.add("json-parse",hasJSON),has.add("json-stringify",hasJSON&&JSON.stringify({a:0},function(e,t){return t||1})=='{"a":1}');if(has("json-stringify"))return JSON;var 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")};return{parse:has("json-parse")?JSON.parse:function(str,strict){if(strict&&!/^([\s\[\{]*(?:"(?:\\.|[^"])+"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str))throw new SyntaxError("Invalid characters in JSON");return eval("("+str+")")},stringify:function(e,t,n){function i(e,s,o){t&&(e=t(o,e));var u,a=typeof e;if(a=="number")return isFinite(e)?e+"":"null";if(a=="boolean")return e+"";if(e===null)return"null";if(typeof e=="string")return escapeString(e);if(a=="function"||a=="undefined")return r;if(typeof e.toJSON=="function")return i(e.toJSON(o),s,o);if(e instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(t,n,r){var i=e["getUTC"+n]()+(r?1:0);return i<10?"0"+i:i});if(e.valueOf()!==e)return i(e.valueOf(),s,o);var f=n?s+n:"",l=n?" ":"",c=n?"\n":"";if(e instanceof Array){var h=e.length,p=[];for(o=0;o<h;o++){var d=e[o];u=i(d,f,o),typeof u!="string"&&(u="null"),p.push(c+f+u)}return"["+p.join(",")+c+s+"]"}var v=[];for(o in e){var m;if(e.hasOwnProperty(o)){if(typeof o=="number")m='"'+o+'"';else{if(typeof o!="string")continue;m=escapeString(o)}u=i(e[o],f,o);if(typeof u!="string")continue;v.push(c+f+m+":"+l+u)}}return"{"+v.join(",")+c+s+"}"}var r;return typeof t=="string"&&(n=t,t=null),i(e,"","")}}})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(e,t,n,r){var i=e.Color=function(e){e&&this.setColor(e)};return i.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:r.transparentColor||[0,0,0,0]},t.extend(i,{r:255,g:255,b:255,a:1,_set:function(e,t,n,r){var i=this;i.r=e,i.g=t,i.b=n,i.a=r},setColor:function(e){return t.isString(e)?i.fromString(e,this):t.isArray(e)?i.fromArray(e,this):(this._set(e.r,e.g,e.b,e.a),e instanceof i||this.sanitize()),this},sanitize:function(){return this},toRgb:function(){var e=this;return[e.r,e.g,e.b]},toRgba:function(){var e=this;return[e.r,e.g,e.b,e.a]},toHex:function(){var e=n.map(["r","g","b"],function(e){var t=this[e].toString(16);return t.length<2?"0"+t:t},this);return"#"+e.join("")},toCss:function(e){var t=this,n=t.r+", "+t.g+", "+t.b;return(e?"rgba("+n+", "+t.a:"rgb("+n)+")"},toString:function(){return this.toCss(!0)}}),i.blendColors=e.blendColors=function(e,t,r,s){var o=s||new i;return n.forEach(["r","g","b","a"],function(n){o[n]=e[n]+(t[n]-e[n])*r,n!="a"&&(o[n]=Math.round(o[n]))}),o.sanitize()},i.fromRgb=e.colorFromRgb=function(e,t){var n=e.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return n&&i.fromArray(n[1].split(/\s*,\s*/),t)},i.fromHex=e.colorFromHex=function(e,t){var r=t||new i,s=e.length==4?4:8,o=(1<<s)-1;return e=Number("0x"+e.substr(1)),isNaN(e)?null:(n.forEach(["b","g","r"],function(t){var n=e&o;e>>=s,r[t]=s==4?17*n:n}),r.a=1,r)},i.fromArray=e.colorFromArray=function(e,t){var n=t||new i;return n._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(n.a)&&(n.a=1),n.sanitize()},i.fromString=e.colorFromString=function(e,t){var n=i.named[e];return n&&i.fromArray(n,t)||i.fromRgb(e,t)||i.fromHex(e,t)},i})},"dojo/_base/loader":function(){define(["./kernel","../has","require","module","./json","./lang","./array"],function(dojo,has,require,thisModule,json,lang,array){1;var makeErrorToken=function(e){return{src:thisModule.id,id:e}},slashName=function(e){return e.replace(/\./g,"/")},buildDetectRe=/\/\/>>built/,dojoRequireCallbacks=[],dojoRequireModuleStack=[],dojoRequirePlugin=function(e,t,n){dojoRequireCallbacks.push(n),array.forEach(e.split(","),function(e){var n=getModule(e,t.module);dojoRequireModuleStack.push(n),injectModule(n)}),checkDojoRequirePlugin()},checkDojoRequirePlugin=function(){var e,t;for(t in modules){e=modules[t],e.noReqPluginCheck===undefined&&(e.noReqPluginCheck=/loadInit\!/.test(t)||/require\!/.test(t)?1:0);if(!e.executed&&!e.noReqPluginCheck&&e.injected==requested)return}guardCheckComplete(function(){var e=dojoRequireCallbacks;dojoRequireCallbacks=[],array.forEach(e,function(e){e(1)})})},dojoLoadInitPlugin=function(mid,require,loaded){require([mid],function(bundle){require(bundle.names,function(){for(var scopeText="",args=[],i=0;i<arguments.length;i++)scopeText+="var "+bundle.names[i]+"= arguments["+i+"]; ",args.push(arguments[i]);eval(scopeText);var callingModule=require.module,requireList=[],i18nDeps,syncLoaderApi={provide:function(e){e=slashName(e);var t=getModule(e,callingModule);t!==callingModule&&setArrived(t)},require:function(e,t){e=slashName(e),t&&(getModule(e,callingModule).result=nonmodule),requireList.push(e)},requireLocalization:function(e,t,n){i18nDeps||(i18nDeps=["dojo/i18n"]),n=(n||dojo.locale).toLowerCase(),e=slashName(e)+"/nls/"+(/root/i.test(n)?"":n+"/")+slashName(t),getModule(e,callingModule).isXd&&i18nDeps.push("dojo/i18n!"+e)},loadInit:function(e){e()}},hold={},p;try{for(p in syncLoaderApi)hold[p]=dojo[p],dojo[p]=syncLoaderApi[p];bundle.def.apply(null,args)}catch(e){signal("error",[makeErrorToken("failedDojoLoadInit"),e])}finally{for(p in syncLoaderApi)dojo[p]=hold[p]}i18nDeps&&(requireList=requireList.concat(i18nDeps)),requireList.length?dojoRequirePlugin(requireList.join(","),require,loaded):loaded()})})},extractApplication=function(e,t,n){var r=/\(|\)/g,i=1,s;r.lastIndex=t;while(s=r.exec(e)){s[0]==")"?i-=1:i+=1;if(i==0)break}if(i!=0)throw"unmatched paren around character "+r.lastIndex+" in: "+e;return[dojo.trim(e.substring(n,r.lastIndex))+";\n",r.lastIndex]},removeCommentRe=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,syncLoaderApiRe=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,amdLoaderApiRe=/(^|\s)(require|define)\s*\(/m,extractLegacyApiApplications=function(e,t){var n,r,i,s,o=[],u=[],a=[];t=t||e.replace(removeCommentRe,function(e){return syncLoaderApiRe.lastIndex=amdLoaderApiRe.lastIndex=0,syncLoaderApiRe.test(e)||amdLoaderApiRe.test(e)?"":e});while(n=syncLoaderApiRe.exec(t))r=syncLoaderApiRe.lastIndex,i=r-n[0].length,s=extractApplication(t,r,i),n[2]=="loadInit"?o.push(s[0]):u.push(s[0]),syncLoaderApiRe.lastIndex=s[1];return a=o.concat(u),a.length||!amdLoaderApiRe.test(t)?[e.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),a.join(""),a]:0},transformToAmd=function(e,t){var n,r,i=[],s=[];if(buildDetectRe.test(t)||!(n=extractLegacyApiApplications(t)))return 0;r=e.mid+"-*loadInit";for(var o in getModule("dojo",e).result.scopeMap)i.push(o),s.push('"'+o+'"');return"// xdomain rewrite of "+e.mid+"\n"+"define('"+r+"',{\n"+" names:"+dojo.toJson(i)+",\n"+" def:function("+i.join(",")+"){"+n[1]+"}"+"});\n\n"+"define("+dojo.toJson(i.concat(["dojo/loadInit!"+r]))+", function("+i.join(",")+"){\n"+n[0]+"});"},loaderVars=require.initSyncLoader(dojoRequirePlugin,checkDojoRequirePlugin,transformToAmd),sync=loaderVars.sync,requested=loaderVars.requested,arrived=loaderVars.arrived,nonmodule=loaderVars.nonmodule,executing=loaderVars.executing,executed=loaderVars.executed,syncExecStack=loaderVars.syncExecStack,modules=loaderVars.modules,execQ=loaderVars.execQ,getModule=loaderVars.getModule,injectModule=loaderVars.injectModule,setArrived=loaderVars.setArrived,signal=loaderVars.signal,finishExec=loaderVars.finishExec,execModule=loaderVars.execModule,getLegacyMode=loaderVars.getLegacyMode,guardCheckComplete=loaderVars.guardCheckComplete;return dojoRequirePlugin=loaderVars.dojoRequirePlugin,dojo.provide=function(e){var t=syncExecStack[0],n=lang.mixin(getModule(slashName(e),require.module),{executed:executing,result:lang.getObject(e,!0)});return setArrived(n),t&&(t.provides||(t.provides=[])).push(function(){n.result=lang.getObject(e),delete n.provides,n.executed!==executed&&finishExec(n)}),n.result},has.add("config-publishRequireResult",1,0,0),dojo.require=function(e,t){function n(e,t){var n=getModule(slashName(e),require.module);if(syncExecStack.length&&syncExecStack[0].finish)return syncExecStack[0].finish.push(e),undefined;if(n.executed)return n.result;t&&(n.result=nonmodule);var r=getLegacyMode();return injectModule(n),r=getLegacyMode(),n.executed!==executed&&n.injected===arrived&&loaderVars.guardCheckComplete(function(){execModule(n)}),n.executed?n.result:(r==sync?n.cjs?execQ.unshift(n):syncExecStack.length&&(syncExecStack[0].finish=[e]):execQ.push(n),undefined)}var r=n(e,t);return has("config-publishRequireResult")&&!lang.exists(e)&&r!==undefined&&lang.setObject(e,r),r},dojo.loadInit=function(e){e()},dojo.registerModulePath=function(e,t){var n={};n[e.replace(/\./g,"/")]=t,require({paths:n})},dojo.platformRequire=function(e){var t=(e.common||[]).concat(e[dojo._name]||e["default"]||[]),n;while(t.length)lang.isArray(n=t.shift())?dojo.require.apply(dojo,n):dojo.require(n)},dojo.requireIf=dojo.requireAfterIf=function(e,t,n){e&&dojo.require(t,n)},dojo.requireLocalization=function(e,t,n){require(["../i18n"],function(r){r.getLocalization(e,t,n)})},{extractLegacyApiApplications:extractLegacyApiApplications,require:dojoRequirePlugin,loadInit:dojoLoadInitPlugin}})}}}),require({cache:{"build/build":function(){define([],1)},"build/buildControlBase":function(){define(["./messages","dojo/text!./copyright.txt","dojo/text!./buildNotice.txt"],function(e,t,n){var r={exitCode:0,newline:"\n",newlineFilter:function(e,t,n){return e},built:!0,startTimestamp:new Date,paths:{},destPathTransforms:[],packageMap:{},resources:{},resourcesByDest:{},amdResources:{},closureCompilerPath:"../closureCompiler/compiler.jar",maxOptimizationProcesses:5,buildReportDir:".",buildReportFilename:"build-report.txt",defaultCopyright:t,defaultBuildNotice:n};for(var i in e)r[i]=e[i];return r})},"build/messages":function(){define([],function(){var e={info:[[100,199]],warn:[[200,299]],error:[[300,399]],report:[[400,499]]},t=[[1,100,"legacyAssumed","Assumed module uses legacy loader API."],[1,101,"legacyUsingLoadInitPlug","Using dojo/loadInit plugin for module."],[1,102,"optimize","Optimizing module"],[1,103,"optimizeDone","Optimizing module complete."],[1,104,"optimizeMessages","Optimizer messages."],[1,105,"pacify",""],[1,106,"cssOptimize","Optimizing CSS."],[1,107,"packageVersion","Package Version:"],[1,108,"internStrings","Interning strings."],[1,109,"processHtmlFiles","Processing HTML files."],[1,110,"userTrace","User trace:"],[1,111,"userInfo","User info:"],[1,112,"cssOptimizeIgnored","While optimizing a CSS file, an import directive was not expanded as instructed by the profile."],[1,113,"cssOptimizeIgnoredMultiMediaTypes","While optimizing a CSS file, an import directive was not expanded because it indicated multiple media types."],[1,200,"configUnresolvedValues","Configuration contains unsolved values."],[1,201,"amdCircularDependency","Cycle detected in layer dependencies."],[1,202,"amdInconsistentMid","AMD module specified and absolute module identifier that is not consistent with the configuration and filename"],[1,203,"amdPureContainedLegacyApi","Module tagged as pure AMD yet it contains legacy loader API applications."],[1,205,"amdNotPureContainedNoLegacyApi","Module not tagged as pure AMD yet it contains AMD API applications."],[1,206,"legacyMultipleProvides","Module included multiple dojo.provide applications."],[1,207,"legacyImproperProvide","dojo.provide application identifier inconsistent with module identifier."],[1,208,"inputDeprecatedProfileFile",'The "profileFile" switch has been deprecated; use "profile" instead.'],[1,209,"missingPackageJson","Missing or empty package.json."],[1,210,"inputDeprecatedStripConsole","Given strip console value is deprecated."],[1,211,"inputDeprecated","Deprecated switch; ignored"],[1,212,"oddDojoPath","No profile.basePath provided, yet dojo path is relative and running build with the current working directory different than util/buildscripts"],[1,213,"buildUsingDifferentDojo","Dojo path specified in profile is different than the dojo being used for the build program"],[1,214,"ignoringReleaseDirName","DestBasePath given; ignoring releaseDir and releaseName."],[1,215,"inputLoggerRemoved","Logger has been removed; all calls ignored"],[1,216,"dojoHasUnresolvedMid","dojo/has plugin resource could not be resolved during build-time."],[1,217,"cleanRemoved","the clean action has been removed; use rm (*nix) or rmdir (Windows)"],[1,218,"inputProfileFileDeprecated","the command line switch profileFile is deprectated; use profile for both files and profiles"],[1,219,"userWarn","User warn:"],[1,220,"outputToProfileFileDeprecated","Writing htmlFiles- or htmlDirs-derived profile via the profileFile option is deprecated; use the writeProfile option instead"],[1,221,"assumeLayerIsDojoModule","Assumed layer is referencing a dojo module."],[1,222,"assumeLayerDependencyIsDojoModule","Assumed layer is referencing a dojo module."],[1,223,"possibleLegacyModuleId","Name in internStringsSkipList looks like a legacy module identifier."],[1,224,"missingPluginResolver","A plugin dependency was encountered but there was no build-time plugin resolver."],[1,225,"missingDirDuringDiscovery","A directory that was scheduled to be read during discovery did not exist."],[1,226,"missingProfile","A package without a profile could throw errors or warnings."],[1,227,"symbolsLeak","Inserting symbols (by setting the profile variable 'symbol') causes leaks in IE."],[1,300,"dojoHasMissingPlugin","Missing dojo/has module."],[1,302,"dojoHasMissingMid","Missing dojo/has plugin resource that was resolved at build-time."],[1,303,"amdMissingLayerIncludeModule","Missing include module for layer."],[1,304,"amdMissingLayerExcludeModule","Missing exclude module for layer."],[1,305,"amdMissingLayerModuleText","Missing module text for layer."],[1,306,"legacyFailedEval","Failed to evaluate legacy API application."],[1,307,"amdFailedEval","Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions)."],[1,308,"amdFailedDefineEval","Failed to evaluate AMD define function."],[1,309,"i18nNoRoot","Missing root bundle for locale-specific legacy i18n bundle"],[1,310,"i18nImproperBundle","Non-i18n module found in nls tree (copied only)."],[1,311,"amdMissingDependency","Missing dependency."],[1,312,"optimizeFailedWrite","Failed to write optimized file."],[1,313,"cssOptimizeFailed","Failed to optimize CSS file."],[1,314,"execFailed","(Rhino)External process threw."],[1,315,"inputInvalidPath","Unable to compute absolute path."],[1,316,"inputUnknownAction","Unknown action."],[1,317,"inputUnknownStripConsole","Unknown strip console value."],[1,318,"inputUnknownLayerOptimize","Unknown layer optimize value."],[1,319,"inputUnknownOptimize","Unknown optimize value."],[1,320,"inputUnknownTransform","Unknown transform."],[1,321,"inputUnknownGate","Unknown gate."],[1,322,"inputNoLoaderForBoot","Unable to find loader for boot layer."],[1,323,"failedReadAndEval","failed to read and eval file."],[1,324,"transformFailed","Error while transforming resource."],[1,325,"discoveryFailed","Failed to discover any resources to transform. Nothing to do; terminating application"],[1,326,"overwrite","Output intersects input"],[1,327,"outputCollide","Multiple resources are destined for same filename."],[1,328,"noTransform","No transform found for discovered resouce."],[1,329,"layerToMidFailed","Failed to resolve layer name into a module identifier."],[1,330,"layerMissingDependency","Failed to resolve layer dependency."],[1,331,"getDependencyListRemoved",'load("getDependencyList.js") is no supported.'],[1,332,"invalidMessageId","Invalid message identifier."],[1,333,"legacyMissingDependency","Missing dependency in legacy module."],[1,334,"amdCannotInstantiateLayer","Cannot instantiate all modules in layer."],[1,335,"dojoPragmaEvalFail","Failed to evaluate dojo pragma."],[1,336,"dojoPragmaInvalid","Failed to find end marker for dojo pragma."],[1,337,"inputMissingPackageJson","Missing or empty package.json file at location specified by package flag."],[1,337,"inputMalformedPackageJson","Malformed package.json file."],[1,338,"inputProfileDoesNotExist",'Profile given for "profile" switch does not exist.'],[1,339,"inputProfileFileDoesNotExist",'Profile file given for "profileFile" switch does not exist.'],[1,340,"inputHTMLFileDoesNotExist",'HTML file given for "htmlFiles" switch does not exist.'],[1,341,"inputHTMLDirDoesNotExist",'HTML directory given for "htmlDir" switch does not exist.'],[1,342,"inputHTMLDirNoFiles",'HTML directory given for "htmlDir" switch contains no HTML files.'],[1,343,"inputIllegalCommandlineArg","Illegal command line argument."],[1,344,"inputFileDoesNotExist","File does not exist."],[1,345,"inputProcessingHtmlFileNotImplemented","Pulling profiles from HTML files is not implemented."],[1,346,"inputFailedReadfile","Failed to read input file."],[1,347,"inputFailedToEvalProfile","Failed to evaluate profile file."],[1,348,"userError","User error:"],[1,349,"missingPrefix","Missing prefix for top-level module."],[1,350,"cannotDeduceModuleIdFrom16LayerName","Cannot deduce module identifier from layer name"],[1,351,"cannotDeduceModuleIdFrom16LayerDependency","Cannot deduce module identifier from layer dependency"],[1,352,"optimizerReportedErrors","Optimizer reported errors; consult build report for details."],[1,352,"failedToReadLayerCopyrightFile","Failed to read copyright file given with layer."],[1,353,"i18nUnevaluableBundle","I18n bundle was not evaluable in the build environment; therefore it will not be included in the flattening computations."],[1,354,"missingL10n","Root bundle indicates localized bundles that don't exist."],[1,355,"declarativeRequireFailed","Unable to convert declarative require."],[1,356,"optimizeFailed","The optimizer threw an exception; the module probably contains syntax errors."],[1,357,"cssOptimizeUnableToResolveURL","While optimizing a CSS file, it was impossible to compute the destination location of a relative URL."],[1,358,"cssOptimizeImproperComment","While optimizing a CSS file, an improper comment was encountered."],[1,359,"cssOptimizeIgnoredNoResource","While optimizing a CSS file, an import directive was not expanded because the source for the import was not available to the builder."],[1,400,"hasReport","Has Features Detected"],[3,499,"signoff","Process completed normally:"]],n=400,r=500,i=0,s=0,o={},u={},a=function(e){return e?++n:++r},f=function(e,n,r,i,s){for(var a=0;a<t.length;a++)if(t[a][0]>e)break;t.splice(a,0,[e,n,r,i,[]]),o[r]=t[a],s&&(u[r]=1)},l=function(t,n){e[t]?e[t].push(n):e[t]=[n]},c=function(t){var n;for(var r in e)if(e[r].some(function(e){return e[0]<=t&&t<e[1]?n=r+"("+t+")":0}))return n;return"message-id("+t+")"},h=function(e){var t="";if(typeof e!="undefined")if(typeof e=="string")t+=e;else if(e.length==1)t+=e[0];else for(var n=0;n<e.length;)t+=e[n++],n<e.length&&(t+=": "+e[n++]),n<e.length&&(t+="; ");return t},p=0,d=function(e,t){if(p)return;if(e=="pacify")console.log(t);else if(e in o){var n=o[e];n[4].push(t),200<=n[1]&&n[1]<=299?i++:300<=n[1]&&n[1]<=399&&s++,e in u&&console.log(c(n[1])+" "+n[3]+" "+h(t))}else o.invalidMessageId[4].push(["id",e].concat(t))},v=0,m=function(){v||(d("optimizerReportedErrors"),v=1)},g="",y=function(e){/\sERROR\s/.test(e)&&m(),g+=e},b=function(){return g},w=function(){var e="";return t.forEach(function(t){(t[1]<400||499<t[1])&&t[4].length&&(e+=c(t[1])+" "+t[3]+"\n",t[4].forEach(function(t){e+=" "+h(t)+"\n"}))}),e},E=function(){var e="";return t.forEach(function(t){400<=t[1]&&t[1]<=499&&t[4].length&&(e+="\n\n"+t[3]+"\n",t[4].forEach(function(t){e+=" "+h(t)+"\n"}))}),e},S=t;return t=[],S.forEach(function(e){f(e[0],e[1],e[2],e[3]),200<=e[1]&&e[1]<=399&&(u[e[2]]=1)}),u.packageVersion=1,u.signoff=1,{stop:function(){p=1},messages:t,messageMap:o,pacifySet:u,getNewMessageId:a,addMessage:f,addCategory:l,log:d,logOptimizerOutput:y,getOptimizerOutput:b,getAllNonreportMessages:w,getAllReportMessages:E,getWarnCount:function(){return i},getErrorCount:function(){return s},trace:function(e){d("userTrace",e)},info:function(e){d("userInfo",e)},warn:function(e){d("userWarn",e)},error:function(e){d("userError",e)}}})},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","require"],function(e,t,n,r){var i;t.getText?i=t.getText:console.error("dojo/text plugin failed to load because loader does not support getText");var s={},o=function(e){if(e){e=e.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var t=e.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);t&&(e=t[1])}else e="";return e},u={},a={};return e.cache=function(e,n,r){var u;typeof e=="string"?/\//.test(e)?(u=e,r=n):u=t.toUrl(e.replace(/\./g,"/")+(n?"/"+n:"")):(u=e+"",r=n);var a=r!=undefined&&typeof r!="string"?r.value:r,f=r&&r.sanitize;return typeof a=="string"?(s[u]=a,f?o(a):a):a===null?(delete s[u],null):(u in s||i(u,!0,function(e){s[u]=e}),f?o(s[u]):s[u])},{dynamic:!0,normalize:function(e,t){var n=e.split("!"),r=n[0];return(/^\./.test(r)?t(r):r)+(n[1]?"!"+n[1]:"")},load:function(e,t,n){var r=e.split("!"),f=r.length>1,l=r[0],c=t.toUrl(r[0]),h="url:"+c,p=u,d=function(e){n(f?o(e):e)};l in s?p=s[l]:h in t.cache?p=t.cache[h]:c in s&&(p=s[c]);if(p===u)if(a[c])a[c].push(d);else{var v=a[c]=[d];i(c,!t.async,function(e){s[l]=s[c]=e;for(var t=0;t<v.length;)v[t++](e);delete a[c]})}else d(p)}}})},"url:build/copyright.txt":"/*\n Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.\n Available via Academic Free License >= 2.1 OR the modified BSD license.\n see: http://dojotoolkit.org/license for details\n*/\n\n","url:build/buildNotice.txt":"/*\n This is an optimized version of Dojo, built for deployment and not for\n development. To get sources and documentation, please visit:\n\n http://dojotoolkit.org\n*/\n\n","build/argv":function(){define(["require","dojo/json","dojo/has","./fs","./fileUtils","./process","./commandLineArgs","./stringify","./version","./messages","./v1xProfiles","dojo/text!./help.txt"],function(require,json,has,fs,fileUtils,process,argv,stringify,version,messages,v1xProfiles,help){eval(require.scopeify("./fileUtils"));var result={profiles:[]},cwd=process.cwd(),dojoPath=computePath(require.toUrl("dojo/package.json").match(/(.+)\/package\.json$/)[1],cwd),utilBuildscriptsPath=compactPath(catPath(dojoPath,"/../util/buildscripts")),printVersion=0,printHelp=0,checkArgs=0,illegalArgumentValue=function(e,t){messages.log("inputIllegalCommandlineArg",["switch",e,"position",t])},evalScriptArg=function(e){return e=="true"?!0:e=="false"?!1:e=="null"?null:isNaN(e)?json.parse('{"result":"'+e+'"}').result:Number(e)},readProfile=function(e,t){var n=getFilepath(t);if(!fileExists(t))return messages.log("inputFileDoesNotExist",[e,t]),0;try{var r=fs.readFileSync(t,"utf8")}catch(i){return messages.log("inputFailedReadfile",[e,t,"error",i]),0}e=="profileFile"&&(messages.log("inputProfileFileDeprecated"),e="profile");var s=function(e){var t=function(e,t){return e?e=computePath(e,t):typeof e=="undefined"&&(e=t),e};e.basePath=t(e.basePath,n),e.build&&e.build.basePath&&(e.build.basePath=t(e.build.basePath,n))},o,u;try{return r=fs.readFileSync(t,"utf8"),e=="require"?(o=new Function("var __result, require= function(config){__result=config;};"+r+"; return __result || require;"),u=o(),s(u)):e=="dojoConfig"?(o=new Function(r+"; return dojoConfig;"),u=o(),s(u)):e=="profile"&&(o=new Function("selfPath","logger","profile","dependencies",r+"; return {profile:profile, dependencies:dependencies}"),u=o(n,messages,0,0,0),u.profile?(u=u.profile,s(u)):u=v1xProfiles.processProfile(u.dependencies,dojoPath,utilBuildscriptsPath,n)),u.selfFilename=t,messages.log("pacify","processing "+e+" resource "+t),u}catch(i){return messages.log("inputFailedToEvalProfile",[e,t,"error",i]),0}},processHtmlDir=function(e){if(!fileUtils.dirExists(e))return messages.log("inputHTMLDirDoesNotExist",["directory",e]),0;var t=[];return fs.readdirSync(e).forEach(function(n){/\.html$/.test(n)&&t.push(e+"/"+n)}),t.length?v1xProfiles.processHtmlFiles(t,dojoPath,utilBuildscriptsPath):(messages.log("inputHTMLDirNoFiles",["directory",e]),0)},processHtmlFiles=function(e){var t=e.split(",").filter(function(e){return fileUtils.fileExists(e)?1:(messages.log("inputHTMLFileDoesNotExist",["filename",e]),0)});return t.length?v1xProfiles.processHtmlFiles(t,dojoPath,utilBuildscriptsPath):0},readPackageJson=function(e,t){if(!fileUtils.fileExists(e))messages.log(t,["filename",e]);else try{var n=json.parse(fs.readFileSync(e,"utf8"));return n.selfFilename=e,n}catch(r){messages.log("inputMalformedPackageJson",["filename",e])}return 0},processPackageJson=function(e){var t=catPath(e,"package.json"),n=readPackageJson(t,"inputMissingPackageJson");n&&(n.selfFilename=t,result.profiles.push({packages:[{name:n.progName||n.name,packageJson:n}]}))},readCopyrightOrBuildNotice=function(e,t){fileExists(e)||messages.log("inputFileDoesNotExist",[t,e]);try{var n=t=="copyrightFile"?"copyright":"buildNotice";result[n]=fs.readFileSync(e,"utf8")}catch(r){messages.log("inputFailedReadfile",[t,e,"error",r])}},normalizeSwitch={"-p":"profile","--profile":"profile","--profileFile":"profileFile",p:"profile",profile:"profile",profileFile:"profileFile","--package":"package","package":"package","--require":"require",require:"require","--dojoConfig":"dojoConfig",dojoConfig:"dojoConfig","--htmlDir":"htmlDir",htmlDir:"htmlDir","--htmlFiles":"htmlFiles",htmlFiles:"htmlFiles","--copyrightFile":"copyrightFile",copyrightFile:"copyrightFile","--buildNoticeFile":"buildNoticeFile",buildNoticeFile:"buildNoticeFile"};for(var arg,processVector=[],i=1,end=argv.length;i<end;){arg=argv[i++];switch(arg){case"-p":case"--profile":i<end?processVector.push([normalizeSwitch[arg],argv[i++],cwd]):illegalArgumentValue(arg,i);break;case"--profileFile":case"--require":case"--dojoConfig":case"--htmlDir":case"--htmlFiles":case"--copyrightFile":case"--buildNoticeFile":i<end?processVector.push([normalizeSwitch[arg],getAbsolutePath(argv[i++],cwd)]):illegalArgumentValue(arg,i);break;case"--package":i<end?argv[i++].split(",").forEach(function(e){processVector.push(["package",getAbsolutePath(e,cwd)])}):illegalArgumentValue(arg,i);break;case"--writeProfile":i<end?result.writeProfile=getAbsolutePath(argv[i++],cwd):illegalArgumentValue(arg,i);break;case"--check":result.check=!0;break;case"--check-args":checkArgs=!0;break;case"--check-discovery":result.checkDiscovery=!0,result.release=!0;break;case"--debug-check":result.debugCheck=!0;break;case"--clean":result.clean=!0;break;case"-r":case"--release":result.release=!0;break;case"--help":printHelp=!0;break;case"-v":printVersion=function(){messages.log("pacify",version+"")};break;case"--unit-test":i<end?result.unitTest=argv[i++]:illegalArgumentValue("unit-test",i);break;case"--unit-test-param":i<end?(result.unitTestParam=result.unitTestParam||[],result.unitTestParam.push(evalScriptArg(argv[i++]))):illegalArgumentValue("unit-test",i);break;default:var match=arg.match(/^\-\-?(.+)/);if(match&&i<end)result[match[1]]=evalScriptArg(argv[i++]);else{var parts=arg.split("=");if(parts.length==2)switch(parts[0]){case"p":case"profile":processVector.push([normalizeSwitch[parts[0]],parts[1]]);break;case"package":parts[1].split(",").forEach(function(e){processVector.push(["package",getAbsolutePath(e,cwd)])});break;case"profileFile":case"require":case"dojoConfig":case"htmlDir":case"htmlFiles":case"copyrightFile":case"buildNoticeFile":processVector.push([normalizeSwitch[parts[0]],getAbsolutePath(parts[1],cwd)]);break;default:result[parts[0]]=evalScriptArg(parts[1])}else illegalArgumentValue(arg,i)}}}var processingHtmlFiles=processVector.some(function(e){return e[0]=="htmlFiles"||e[0]=="htmlDir"});if(processingHtmlFiles)for(i=0;i<processVector.length;i++)if(processVector[i][0]=="profileFile"&&!fileExists(processVector[i][1])){messages.log("outputToProfileFileDeprecated"),result.writeProfile=processVector[i][1],processVector.splice(i,1);break}processVector.forEach(function(e){var t;switch(e[0]){case"profile":var n=getFiletype(e[1],!0),r;if(n==""){r=getAbsolutePath(e[1]+".profile.js",cwd),!fileExists(r)&&!/\//.test(e[1])&&(r=catPath(utilBuildscriptsPath,"profiles/"+e[1]+".profile.js"));if(!fileExists(r)){messages.log("inputFileDoesNotExist",["filename",r]);break}}else{if(/^(html|htm)$/.test(n)){messages.log("inputProcessingHtmlFileNotImplemented",["profile",r]);return}r=getAbsolutePath(e[1],cwd)}t=readProfile(e[0],r);break;case"htmlDir":t=processHtmlDir(e[1]);break;case"htmlFiles":t=processHtmlFiles(e[1]);break;case"package":t=processPackageJson(e[1]);break;case"copyrightFile":case"buildNoticeFile":t=readCopyrightOrBuildNotice(e[1],e[0]);break;default:t=readProfile(e[0],e[1])}t&&result.profiles.push(t)});if((printHelp||printVersion)&&argv.length==2||printHelp&&printVersion&&argv.length==3)return printHelp&&(messages.log("pacify",help),messages.log("pacify",version+""),messages.log("pacify","running under rhino"),0),printVersion&&printVersion(),process.exit(0),0;printVersion&&printVersion();if(checkArgs)return messages.log("pacify",stringify(result)),process.exit(0),0;if(messages.getErrorCount())return messages.log("pacify","errors on command line; terminating application."),process.exit(-1),0;if(!result.profiles.length)return messages.log("pacify","no profile provided; use the option --help for help"),process.exit(-1),0;if(result.unitTest=="argv"){var testId=result.unitTestParam[0],writingExpected=testId<0;writingExpected&&(testId=-testId),result.unitTestParam=testId;var expectedFilename=compactPath(utilBuildscriptsPath+"/../build/tests/argvTestsExpected.js"),expected=json.parse(fs.readFileSync(expectedFilename,"utf8")),pathNormalize=utilBuildscriptsPath.match(/(.*)\/util\/buildscripts/)[1],testResult=stringify(result).replace(RegExp(pathNormalize,"g"),"~"),passed=1;writingExpected?(console.log("result:"),debug(testResult),expected[result.unitTestParam]=testResult,fs.writeFileSync(expectedFilename,json.stringify(expected),"utf8")):(passed=testResult==expected[result.unitTestParam],console.log(result.unitTestParam+":"+(passed?"PASSED":"FAILED")),passed||(console.log("Expected:"),console.log(expected[result.unitTestParam]),console.log("But Got:"),console.log(testResult))),process.exit(passed?0:-1)}return{args:result,readPackageJson:readPackageJson,readProfile:readProfile}})},"build/fs":function(){define(["./rhino/fs"],function(e){return e})},"build/rhino/fs":function(){define([],function(){var e=function(e,t){return t=="utf8"&&(t="utf-8"),readFile(e,t||"utf-8")},t=function(e,t,n){var r=new java.io.File(e),i;n=="utf8"&&(n="UTF-8"),n?i=new java.io.OutputStreamWriter(new java.io.FileOutputStream(r),n):i=new java.io.OutputStreamWriter(new java.io.FileOutputStream(r));var s=new java.io.BufferedWriter(i);try{s.write(t)}finally{s.close()}};return{statSync:function(e){return new java.io.File(e)},mkdirSync:function(e){var t=new java.io.File(e);t.exists()||t.mkdirs()},readFileSync:e,readdirSync:function(e){return(new java.io.File(e)).listFiles().map(function(e){return e.name+""})},readFile:function(t,n,r){var i=e(t,n);r&&r(0,i)},writeFileSync:t,writeFile:function(e,n,r,i){arguments.length==3&&typeof r!="string"&&(i=r,r=0),t(e,n,r),i&&i(0)}}})},"build/fileUtils":function(){define(["./fs","./buildControlBase","dojo/has"],function(fs,bc,has){var getFilename=function(e){return/\//.test(e)?e.match(/^.*\/([^\/]+)$/)[1]:e},getFilepath=function(e){if(/\//.test(e)){var t=e.match(/^(.*)\/[^\/]+$/)[1];return t.length?t:"/"}return""},getFiletype=function(e,t){var n=e.match(/(\.([^\/]*))$/);return n&&(t?n[2]:n[1])||""},cleanupPath=function(e){return e=e||"",e=e.replace(/\\/g,"/"),e.length>1&&e.charAt(e.length-1)=="/"&&(e=e.substring(0,e.length-1)),e},catPath=function(e,t){if(arguments.length>2){for(var n=[],r=1;r<arguments.length;n.push(arguments[r++]));return catPath(e,catPath.apply(this,n))}return!t||!t.length?e:!e||!e.length?t:(e+"/"+t).replace(/\/\/\/?/g,"/")},compactPath=function(e){var t=[],n,r;e=e.replace(/\\/g,"/").split("/");while(e.length)n=e.shift(),n==".."&&t.length&&r!=".."?(t.pop(),r=t[t.length-1]):n!="."&&t.push(r=n);return t.join("/")},isAbsolutePathRe=has("is-windows")?/^((\\\\)|([^\/\\]+\:))/:/^\//,isAbsolutePath=function(e){return e&&e.length&&isAbsolutePathRe.test(e)},normalize=function(e){return has("is-windows")?e.replace(/\//g,"\\"):e},getAbsolutePath=function(e,t){return e=cleanupPath(e),isAbsolutePath(e)||(e=catPath(t,e)),compactPath(e)},computePath=function(e,t){return e=cleanupPath(e),compactPath(isAbsolutePath(e)?e:catPath(t,e))},getTimestamp=function(e){var t=function(e){return"-"+(e<10?"0"+e:e)};return e.getFullYear()+t(e.getMonth()+1)+t(e.getDate())+t(e.getHours())+t(e.getMinutes())+t(e.getSeconds())},dirExists=function(e){try{return fs.statSync(e).isDirectory()}catch(t){return!1}},fileExists=function(e){try{return fs.statSync(e).isFile()}catch(t){return!1}},checkedDirectories={},clearCheckedDirectoriesCache=function(){checkedDirectories={}},ensureDirectory=function(e){if(!checkedDirectories[e]){if(!dirExists(e)){ensureDirectory(getFilepath(e));try{fs.mkdirSync(e,493)}catch(t){}}checkedDirectories[e]=1}},ensureDirectoryByFilename=function(e){ensureDirectory(getFilepath(e))},readAndEval=function(filename,type){try{if(fileExists(filename))return eval("("+fs.readFileSync(filename,"utf8")+")")}catch(e){bc.log("failedReadAndEval",["filename",filename,"type",type,"error",e])}return{}},maybeRead=function(e){try{if(fileExists(e))return fs.readFileSync(e,"utf8")}catch(t){}return 0};return{getFilename:getFilename,getFilepath:getFilepath,getFiletype:getFiletype,cleanupPath:cleanupPath,isAbsolutePath:isAbsolutePath,normalize:normalize,getAbsolutePath:getAbsolutePath,catPath:catPath,compactPath:compactPath,computePath:computePath,getTimestamp:getTimestamp,dirExists:dirExists,ensureDirectory:ensureDirectory,ensureDirectoryByFilename:ensureDirectoryByFilename,clearCheckedDirectoriesCache:clearCheckedDirectoriesCache,readAndEval:readAndEval,maybeRead:maybeRead,fileExists:fileExists}})},"build/process":function(){define(["./rhino/process"],function(e){return e})},"build/rhino/process":function(){define([],function(){return{cwd:function(){return environment["user.dir"]},exit:function(e){e&&java.lang.System.exit(e),quit()},exec:function(){for(var e=[],t=0;t<arguments.length-3;t++)e.push(arguments[t]);var n=arguments[t++],r=arguments[t++],i=arguments[t],s={output:""};e.push(s);try{runCommand.apply(this,e),i&&i(0,s.output)}catch(o){r.log("execFailed",["message",n,"output",s.output+"","error",o]),i&&i(-1,n+"\n"+s.output+"\n"+o)}}}})},"build/commandLineArgs":function(){define([],function(){var e=[];return e})},"build/stringify":function(){define(["dojo/json","./buildControlBase"],function(e,t){var n=" ",r=2,i=function(e){r=e},s=function(e,t){e*=t||r;while(n.length<e)n+=n;return n.substring(0,e)},o=function(e){return/^[\w\$]+$/.test(e)?e+":":"'"+e+"':"},u,a,f=function(e){return e.replace(/(\r\n)|(\n\r)/g,"\n").replace(/\r/,"\n").split("\n")},l=function(n,r){r?r++:(u="",a=!1,r=1);var i,c,h,p,d=t.newline;switch(typeof n){case"undefined":u+="undefined";break;case"boolean":u+=n?"true":"false";break;case"number":u+=n.toString();break;case"string":u+=e.stringify(n);break;case"object":if(n===null)u+="null";else if(n instanceof RegExp)u+=RegExp.toString();else if(n instanceof Array)if(n.length>1){u+="["+d;for(p=0;p<n.length-1;p++)u+=s(r),l(n[p],r),u+=","+d;u+=s(r),l(n[p],r),u+=d+s(r-1)+"]"}else n.length?(u+="[",l(n[0],r),u+="]"):u+="[]";else{i=[];for(h in n)i.push(h);i.sort();if(i.length>1){u+="{"+d;for(p=0;p<i.length-1;p++)u+=s(r)+o(i[p]),l(n[i[p]],r),u+=","+d;u+=s(r)+o(i[p]),l(n[i[p]],r),u+=d,u+=s(r-1)+"}"}else i.length?(u+="{"+o(i[0]),l(n[i[0]],r),u+="}"):u+="{}"}break;case"function":c=s(r);var v=f(n.toString()),m=v.shift(),g=Number.MAX_VALUE;v.forEach(function(e){var t=e.match(/(\s*)\S/);t&&(g=Math.min(g,t[1].length))}),g==Number.MAX_VALUE&&(g=0),v.unshift(s(g,1)+m),u+=d+v.map(function(e){return c+e.substring(g)}).join(d);break;default:u+="undefined /* unsolved */",a=!0}return u.unsolved=a,u};return l.setIndentFactor=i,l.split=f,l})},"build/version":function(){define([],function(){var e="$Rev: 23930 $".match(/\d+/),t={major:1,minor:7,patch:0,flag:"dev",revision:e?+e[0]:NaN,toString:function(){var e=t;return e.major+"."+e.minor+"."+e.patch+e.flag+" ("+e.revision+")"}};return t})},"build/v1xProfiles":function(){define(["require","./buildControlBase","./fs","./fileUtils"],function(require,bc,fs,fileUtils){eval(require.scopeify("./fs, ./fileUtils"));var mix=function(e,t){e=e||{},t=t||{};for(var n in t)e[n]=t[n];return e},defaultBuildProps={staticHasFeatures:{},defaultConfig:{hasCache:{}}},processProfile=function(e,t,n,r){var i,s={},o=e.layers||[],u=e.prefixes||[];for(i in defaultBuildProps)s[i]=defaultBuildProps[i];for(i in e)if(/^(loader|xdDojoPath|scopeDjConfig|xdScopeArgs|xdDojoScopeName|expandProvide|buildLayers|query|removeDefaultNameSpaces|addGuards)$/.test(i))bc.log("inputDeprecated",["switch",i]);else if(i=="staticHasFeatures")mix(s.staticHasFeatures,e.staticHasFeatures);else if(i=="defaultConfig")for(i in e.defaultConfig)i=="hasCache"?mix(s.defaultConfig.hasCache,e.defaultConfig.hasCache):s.defaultConfig[i]=e.defaultConfig[i];else s[i]=e[i]=="false"?!1:e[i];var a={},f={},l={};u.forEach(function(e){var t=e[0];a[t]=e[1],f[t]=e[2]&&(maybeRead(computePath(e[2],n))||maybeRead(computePath(e[2],r))||e[2])||"",l[t]=e[3]});var c=s.basePath=n;a.dojo||(a.dojo=t),a.dojo=computePath(a.dojo,c),a.dojo!=t&&bc.log("buildUsingDifferentDojo"),t=a.dojo;for(var h in a)h!="dojo"&&(a[h]=computePath(a[h],t));s.releaseDir=computePath((e.releaseDir||"../../release").replace(/\\/g,"/"),c),typeof e.releaseName=="undefined"&&(e.releaseName="dojo"),e.releaseName||(e.releaseName=""),s.releaseName=e.releaseName.replace(/\\/g,"/");var p=s.packages=[];for(h in a)p.push({name:h,location:a[h],copyright:f[h]!==undefined?f[h]:bc.defaultCopyright,runtime:l[h]});var d=function(e,t){if(e!==undefined)return e;var n=f[t.split("/",1)[0]];return n?n:bc.defaultCopyright+bc.defaultBuildNotice},v=function(e){return e?e.map(function(e){return b[e=e.replace(/\./g,"/")]=1,e}):[]},m=function(e,t){return e?e.map(function(e){if(!/\//.test(e)&&!/\.js$/.test(e))return b[e.split(".")[0]]=1,e;var n;return/^\.\//.test(e)&&(e=e.substring(2)),e=="dojo/dojo"?e:e=="dojo.js"?"dojo/dojo":(n=e.match(g))?(b[n[1]]=1,n[1]):(n=e.match(y))?(bc.log("assumeLayerDependencyIsDojoModule",["layer dependency",e]),n[1]):(bc.log("cannotDeduceModuleIdFrom16LayerDependency",["layer name",t,"layer dependency name",e]),"error")}):[]},g=/^\.\.\/([^\.].*)\.js$/,y=/^([^\.].*)\.js$/,b={},w={};o.forEach(function(e){var t,n;e.resourceName?n=e.resourceName.replace(/\./g,"/"):(n=e.name,/^\.\//.test(n)&&(n=n.substring(2)),e.name=="dojo.js"?(n="dojo/dojo",e.customBase||e.dependencies.push("dojo/main"),e.boot=!0):(t=n.match(g))?n=t[1]:(t=n.match(y))?(n="dojo/"+t[1],bc.log("assumeLayerIsDojoModule",["layer name",e.name])):bc.log("cannotDeduceModuleIdFrom16LayerName",["layer name",e.name])),e.include=v(e.dependencies),e.exclude=m(e.layerDependencies,e.name),n!="dojo/dojo"&&!e.customBase&&e.exclude.push("dojo/dojo"),e.name=n,b[n.split("/")[0]]=1,e.copyright=d(e.copyright,n),w[n]=e});for(i in b){var E=i.split("/")[0];a[E]||bc.log("missingPrefix",["top-level module",E])}return s.layers=w,s},processHtmlFiles=function(e,t,n){bc.log("processHtmlFiles",["files",e.join(", ")]);var r="",i={},s="",o={dijit:!0,dojox:!0};e.forEach(function(e){var t=[],n=function(e){i[e]?i[e]=i[e].filter(function(e){return t.indexOf(e)>-1}):i[e]=t.concat(),e.indexOf(".")>-1&&(o[e.substring(e,e.indexOf("."))]=!0),t.push(e)},u=fs.readFileSync(e,"utf8");u.replace(/<script [^>]*src=["']([^'"]+)["']/gi,function(t,i){i.indexOf("dojo/dojo.js")>-1?(s=i.substring(0,i.indexOf("dojo/dojo.js")),r||(r=fileUtils.getFilepath(e))):n(i=i.substring(s.length,i.length-3).replace(/\//g,"."))}),u.replace(/dojo\.require\(["']([^'"]+)["']\)/g,function(e,t){n(t)})});var u=[];for(s in o)u.push([s,"../"+s]);var a=[];for(var f in i)a.push({name:"../"+f.replace(/\./g,"/")+".js",dependencies:[f.replace(/\//g,".")],layerDependencies:i[f].map(function(e){return"../"+e.replace(/\./g,"/")+".js"})});var l={layers:a,prefixes:u,basePath:r};return processProfile(l,t,n)};return{processProfile:processProfile,processHtmlFiles:processHtmlFiles}})},"url:build/help.txt":"NAME\n The Dojo Builder - Read, process, and write a set of resources as instructed by a profile.\n\nDESCRIPTION\n Discover and process a set of resources with an ordered synchronized set of transforms.\n\n See http://dojotoolkit.org/reference-guide/build/index.html for reference documentation.\n \n See http://dojotoolkit.org/reference-guide/build/qref.html for a quick reference manual.\n\n Typically this program is executed with the convience wrapper /util/buildscripts/build.bat (Window) or\n /util/buildscripts/build.sh (all other environments); it may also be executed explicitly.\n\n Usage with the build script on non-windows:\n path/to/util/buildscripts/build.sh [options]\n \n Usage with the build script on windows:\n IMPORTANT: the util/buildscripts directory must be the current working directory\n build.bat [options]\n\n Explicit usage with node.js:\n node path/to/dojo/dojo.js load=build [options] \n \n Explicit usage with java:\n java -Xms256m -Xmx256m -jar path/to/util/shrinksafe/js.jar path/to/dojo/dojo.js baseUrl=path/to/dojo load=build [options]\n \n IMPORTANT:\n This program assumes the default directory structure provided with the standard dojo source release.\n \n IMPORTANT:\n When using v1.6- profiles, this program assumes the current working directory is utils/buildscripts.\n\nOPTIONS\n -p <filename>\n --profile <filename> read profile for file\n \n -p <profile>\n --profile <profile> read profile from profile in util/buildscripts/profiles\n \n --package <path> read profile from package.json located in the directory path\n \n --require <filename>\n --dojoConfig read profile from loader configuration \n \n --htmlFiles <file-list> deduce profile from HTML file(s); file-list is a comma-separated list of filenames\n \n --htmlDir <path> deduce profile from all HTML files in directory at path\n \n --check-args print computed raw command line input, including raw profiles, then terminate\n \n --check print computed profile, then terminate\n \n --check-discovery print all discovered resources, then terminate\n \n --debug-check print computed profile, including internal structures\n \n -r\n --release process the build control script(s) and/or profile(s) and transform sources into a release\n \n --releaseDir <path> base directory for build output\n \n --releaseName <string> path segment to append to releaseDir that gives base directory for build output\n \n --writeProfile <filename> write the processed profile to filename\n \n --copyTests Copy test files and the DOH package.\n \n --mini Ignore resources tagged as not mini (e.g. tests, demos dijit/bench, etc.)\n \n -v print the program's version number\n \n --help this help message\n \n Scalar profile property values may also be specified as options with the syntax\n \n --<profile-property-name> <value>\n \n","build/build.profile":function(){var e=function(){var e=/^build\/examples\//,t={"build/transforms/dojoBoot":1,"build/optimizeRunner":1};return{resourceTags:{amd:function(n,r){var i=!e.test(r)&&!(r in t)&&/\.js$/.test(n);return i},miniExclude:function(n,r){return e.test(r)||!/\.js$/.test(n)||r in t}}}}()},"build/discover":function(){define(["./buildControl","./fileUtils","./fs"],function(e,t,n){var r={},i=["trees","dirs","files"],s={},o={},u=t.getFilepath,a=t.catPath,f=t.compactPath,l=function(t,n){t.tag||(t.tag={}),n&&n(t),e.start(t),s[u(t.src)]=1,o[u(t.dest)]=1},c=function(e){var t=function(e){return typeof e=="function"?e:function(t){return e.test(t)}},n={},r=!1;for(var i in e)n[i]=t(e[i]),r=!0;return r?function(e){for(var t in n)n[t](e.src,e.mid,e)&&(e.tag[t]=1)}:0},h=function(){return 0},p=function(e){return e?typeof e=="function"?e:function(t){return e.test(t)}:h},d=function(e,t,i,s,o,u){var a=e+(i?"/"+i:""),f=a+"/",l=i?i+"/":"",c=[];if(r[a])return;r[a]=1,n.readdirSync(a).forEach(function(e){var r=l+e;if(!s||!s(r)){var i=f+e,u=n.statSync(i);u.isDirectory()?c.push(r):o(i,t+"/"+r)}}),u&&c.length&&c.forEach(function(n){d(e,t,n,s,o,1)})},v=function(e,t){t(e[0],e[1])},m=function(n){return t.dirExists(n)?1:(e.log("missingDirDuringDiscovery",["directory",n]),0)},g=function(e,t){m(e[0])&&d(e[0],e[1],0,p(e[2]),t,0,0)},y=function(e,t){m(e[0])&&d(e[0],e[1],0,p(e[2]),t,1)},b={files:v,dirs:g,trees:y},w=function(t,n){var r;for(var s=t.trees||[],o=0;o<s.length;o++)if(s[o][0]==t.location){r=s[o];break}r||(r=[t.location,n.location,/(\/\.)|(^\.)|(~$)/]);var u=[];y(r,function(e){u.push(e)});var f={},h={},p=t.location.length+1,d=t.name,v=d?d+"/":"",m=d&&e.getSrcModuleInfo(d),g=d&&m.url;u.forEach(function(t){var n=/\.js$/.test(t),r=v+t.substring(p,n?t.length-3:t.length),i=n&&e.getSrcModuleInfo(r);n?t==g?f[d]=m:f[r]=i:h[r]=[t,r]});for(var w in t.modules){var E=v+w,S=e.getSrcModuleInfo(E);typeof t.modules[w]=="string"&&(S.url=t.modules[w]),f[E]=S,delete h[E]}var x=c(t.resourceTags);for(var T in f){S=f[T];var N={src:S.url,dest:e.getDestModuleInfo(S.mid).url,pid:S.pid,mid:S.mid,pack:t,deps:[]};l(N,x)}var C=v.length;for(T in h)N={src:h[T][0],mid:h[T][1],dest:a(n.location,T.substring(C))},l(N,x);for(o=0;o<i.length;o++){var k=i[o];t[k]&&t[k].forEach(function(e){b[k](e,function(e,t){l({src:e,dest:t},x)})})}},E=function(){for(var t in e.packages)w(e.packages[t],e.destPackages[t])};return function(){e.waiting++,l({tag:{report:1},src:"*report",dest:"*report",reports:[]}),E();var t=c(e.resourceTags);for(var n=0;n<i.length;n++){var r=i[n];e[r].forEach(function(e){b[r](e,function(e,n){l({src:e,dest:n},t)})})}for(var s in e.layers){var o=e.layers[s],u=e.getSrcModuleInfo(s),a=e.resources[u.url];a||(a={tag:{synthetic:1,amd:1},src:u.url,dest:e.getDestModuleInfo(u.mid).url,pid:u.pid,mid:u.mid,pack:u.pack,deps:[],text:"define([], 1);"+e.newline,getText:function(){return this.text},encoding:"utf8"},l(a)),a.layer=o,o.boot&&(e.loader?e.loader.boots.push(a):e.log("inputNoLoaderForBoot",["boot layer",s]))}e.passGate()}})},"build/buildControl":function(){define(["require","dojo/_base/lang","./argv","./fs","./fileUtils","./buildControlDefault","./v1xProfiles","./stringify","./process","./messages","dojo/text!./help.txt"],function(require,lang,argv,fs,fileUtils,bc,v1xProfiles,stringify,process,messages,helpText){function getDiscreteLocales(e){for(var t=e.split("-"),n=[],r="",i=0;i<t.length;i++)n.push(r+=(i?"-":"")+t[i]);return n}function fixupOptimize(e){return e&&(e+="",e=e.toLowerCase(),/^((comments|shrinksafe)(\.keeplines)?)|(closure(\.keeplines)?)$/.test(e)?/shrinksafe/.test(e)&&stripConsole&&(e+="."+stripConsole):(bc.log("inputUnknownOptimize",["value",e]),e=0)),e}if(!isNaN(argv))return bc.exitCode=argv,bc;eval(require.scopeify("./fs, ./fileUtils, ./v1xProfiles"));var isString=function(e){return typeof e=="string"},isNonemptyString=function(e){return isString(e)&&e.length},isDefined=function(e){return typeof e!="undefined"},cleanupFilenamePair=function(e,t,n,r){var i;return isString(e)?i=[computePath(e,t),computePath(e,n)]:i=[computePath(e[0],t),computePath(e[1],n)].concat(e.slice(2)),(!isAbsolutePath(i[0])||!isAbsolutePath(i[1]))&&bc.log("inputInvalidPath",["path",e,"hint",r]),i},slashTerminate=function(e){return e+/\/$/.test(e)?"":"/"},isEmpty=function(e){for(var t in e)return!1;return!0},cleanDeprecated=function(e,t){var n=[];for(p in e)/^(log|loader|xdDojoPath|scopeDjConfig|xdScopeArgs|xdDojoScopeName|expandProvide|buildLayers|query|removeDefaultNameSpaces|addGuards)$/.test(p)&&(n.push(p),bc.log("inputDeprecated",["switch",p,t]));n.forEach(function(t){delete e[t]})},mix=function(e,t){e=e||{},t=t||{};for(var n in t)e[n]=t[n];return e},mixPackage=function(e){var t=e.name;bc.packageMap[t]=mix(bc.packageMap[t],e)},mixProfileObject=function(e){cleanDeprecated(e,e.selfFilename);for(var t in e)/paths|plugins|messages|transforms|staticHasFeatures|packages|packagePaths|defaultConfig/.test(t)||(bc[t]=e[t]);["paths","plugins","transforms","staticHasFeatures"].forEach(function(t){bc[t]=mix(bc[t],e[t])});if(e.messageCategories)for(t in e.messageCategories)bc.addCategory(t,e.messageCategories[t]);(e.messages||[]).forEach(function(e){bc.addMessage.apply(bc,e)});for(var n in e.packagePaths)e.packagePaths[n].forEach(function(e){isString(e)&&(e={name:e}),e.location=catPath(n,e.name),mixPackage(e)});(e.packages||[]).forEach(function(e){isString(e)&&(e={name:e}),mixPackage(e)});for(t in e.defaultConfig)t=="hasCache"?mix(bc.defaultConfig.hasCache,e.defaultConfig.hasCache):bc.defaultConfig[t]=e.defaultConfig[t]};argv.args.profiles.forEach(function(e){var t=mix({},e),n=e.build;delete t.build,mixProfileObject(t),n&&mixProfileObject(n)}),cleanDeprecated(argv.args,"command line");for(var argName in argv.args)argName!="profiles"&&(bc[argName]=argv.args[argName]);bc.basePath=computePath(bc.basePath,process.cwd());var releaseDir=catPath(bc.releaseDir||"../release",bc.releaseName||"");bc.destBasePath=computePath(releaseDir,bc.basePath),bc.copyright=isNonemptyString(bc.copyright)?maybeRead(computePath(bc.copyright,bc.basePath))||bc.copyright:"",bc.copyrightLayers=!!bc.copyrightLayers,bc.copyrightNonlayers=!!bc.copyrightNonlayers,function(){for(var e in{files:1,dirs:1,trees:1})bc[e]instanceof Array&&(bc[e]=bc[e].map(function(t){return cleanupFilenamePair(t,bc.basePath,bc.destBasePath,e)}))}(),function(){var e={},t,n;for(t in bc.replacements)e[computePath(t,bc.basePath)]=bc.replacements[t];bc.replacements=e}(),"mini"in bc||(bc.mini=!0),"copyTests"in bc||(bc.copyTests=!bc.mini),isString(bc.copyTests)&&(bc.copyTests=bc.copyTests.toLowerCase()),bc.copyTests!="build"&&(bc.copyTests=!!bc.copyTests),isString(bc.localeList)&&(bc.localeList=bc.localeList.split(","));if(bc.localeList&&bc.localeList.length){bc.localeList.indexOf("ROOT")==-1&&bc.localeList.push("ROOT");var localeList={};bc.localeList.forEach(function(e){e=lang.trim(e),localeList[e]=getDiscreteLocales(e)}),bc.localeList.discreteLocales=localeList}else bc.localeList=!1;(function(){function e(e){var t=e.name,n=e.basePath||bc.basePath;e.packageJson||(e.packageJson=argv.readPackageJson(catPath(computePath(e.location||"./"+t,n),"package.json"),"missingPackageJson"));var r=e.packageJson;if(r){r.version&&(bc.log("packageVersion",["package",t,"version",r.version]),typeof bc.version=="undefined"&&t=="dojo"&&(bc.version=r.version)),r.main&&!e.main&&(e.main=r.main),r.directories&&r.directories.lib&&!e.location&&(e.location=catPath(getFilepath(r.selfFilename),r.directories.lib));if("dojoBuild"in r){var i=argv.readProfile("profile",catPath(getFilepath(r.selfFilename),r.dojoBuild));for(var s in i)s in e?s in{resourceTags:1}&&mix(e[s],i[s]):e[s]=i[s]}else bc.log("missingProfile",["package",r.name])}e.main=isString(e.main)?e.main:"main",e.main.indexOf("./")==0&&(e.main=e.main.substring(2)),e.destMain&&e.destMain.indexOf("./")==0&&(e.destMain=e.destMain.substring(2)),e.location=computePath(e.location||"./"+t,n),e.copyright=isNonemptyString(e.copyright)?maybeRead(computePath(e.copyright,e.location))||maybeRead(computePath(e.copyright,bc.basePath))||e.copyright:e.copyright?bc.copyright:"",e.copyrightLayers=isDefined(e.copyrightLayers)?!!e.copyrightLayers:bc.copyrightLayers,e.copyrightNonlayers=isDefined(e.copyrightNonlayers)?!!e.copyrightNonlayers:bc.copyrightNonlayers;var o=bc.destPackages[t]={name:e.destName||t,main:e.destMain||e.main,location:computePath(e.destLocation||"./"+(e.destName||t),bc.destBasePath)};delete e.destName,delete e.destMain,delete e.destLocation,e.trees||(e.trees=[[e.location,o.location,/(\/\.)|(^\.)|(~$)/]]);for(var u in{files:1,dirs:1,trees:1})e[u]=(e[u]||[]).map(function(n){return cleanupFilenamePair(n,e.location,o.location,u+" in package "+t)})}bc.packages=bc.packageMap,delete bc.packageMap,bc.destPackages={};for(var t in bc.packages){var n=bc.packages[t];n.name=n.name||t,e(n)}bc.copyTests&&!bc.packages.doh&&(bc.packages.doh={name:"doh",location:compactPath(bc.packages.dojo.location+"/../util/doh"),destLocation:"util/doh"},e(bc.packages.doh)),require.computeMapProg(bc.paths,bc.pathsMapProg=[]),require.computeMapProg(bc.destPaths||bc.paths,bc.destPathsMapProg=[]),bc.srcModules={},bc.destModules={};var r=function(e,t){return e.substring(0,e.length-t)};bc.getSrcModuleInfo=function(e,t,n){if(n){var i=require.getModuleInfo(e+"/x",t,bc.packages,bc.srcModules,bc.basePath+"/",{},[],!0);return i.mid=r(i.mid,2),i.pid!==0&&(i.url=r(i.url,5)),i}return require.getModuleInfo(e,t,bc.packages,bc.srcModules,bc.basePath+"/",{},[],!0)},bc.getDestModuleInfo=function(e,t,n){if(n){var i=require.getModuleInfo(e+"/x",t,bc.destPackages,bc.destModules,bc.destBasePath+"/",{},[],!0);return i.mid=r(i.mid,2),i.pid!==0&&(i.url=r(i.url,5)),i}return require.getModuleInfo(e,t,bc.destPackages,bc.destModules,bc.destBasePath+"/",{},[],!0)}})(),bc.selectorEngine&&bc.defaultConfig&&bc.defaultConfig.hasCache&&(bc.defaultConfig.hasCache["config-selectorEngine"]=bc.selectorEngine),function(){var e,t={};for(var n in bc.layers){e=bc.layers[n],e.exclude=e.exclude||[],e.include=e.include||[],e.boot=!!e.boot,e.discard=!!e.discard,e.noref=e.noref!==undefined?!!e.noref:!!bc.noref,e.compat=e.compat!==undefined?e.compat:bc.layerCompat||"";var r=n.split("/")[0],i=bc.packages[r],s=i&&i.location,o=i&&i.copyright,u=i&&i.copyrightLayers;isNonemptyString(e.copyright)?e.copyright=s&&maybeRead(computePath(e.copyright,s))||maybeRead(computePath(e.copyright,bc.basePath))||e.copyright:isDefined(e.copyright)?e.copyright=e.copyright?o||bc.copyright:"":e.copyright=i?u&&(o||bc.copyright):bc.copyrightLayers&&bc.copyright,e.copyright||(e.copyright=""),t[n]=e}bc.layers=t;if(bc.packages.dojo){bc.layers["dojo/dojo"]||(bc.layers["dojo/dojo"]={name:"dojo/dojo",copyright:bc.defaultCopyright+bc.defaultBuildNotice,include:["dojo/main"],exclude:[]});for(var a in bc.layers)e=bc.layers[a],a=="dojo/dojo"?e.customBase||e.include.indexOf("dojo/main")==-1&&e.include.push("dojo/main"):((e.boot||!e.customBase)&&e.exclude.indexOf("dojo/dojo")==-1&&e.exclude.push("dojo/dojo"),e.customBase=e.boot)}}();var deleteStaticHasFlagSet=[];for(var p in bc.staticHasFeatures)bc.staticHasFeatures[p]==-1&&deleteStaticHasFlagSet.push(p);deleteStaticHasFlagSet.forEach(function(e){delete bc.staticHasFeatures[e]}),bc.action&&bc.action.split(/\W|\s/).forEach(function(e){e=e.match(/\s*(\S+)\s*/)[1];switch(e){case"check":bc.check=!0;break;case"clean":bc.clean=!0;break;case"release":bc.release=!0;break;default:bc.log("inputUnknownAction",["action",e])}}),bc.clean&&bc.log("cleanRemoved");var stripConsole=bc.stripConsole;return!stripConsole||stripConsole=="none"?stripConsole=!1:stripConsole=="normal,warn"?(bc.log("inputDeprecatedStripConsole",["deprecated","normal,warn","use","warn"]),stripConsole="warn"):stripConsole=="normal,error"?(bc.log("inputDeprecatedStripConsole",["deprecated","normal,error","use","all"]),stripConsole="all"):/normal|warn|all|none/.test(stripConsole)||bc.log("inputUnknownStripConsole",["value",stripConsole]),bc.stripConsole=stripConsole,bc.optimize=fixupOptimize(bc.optimize),bc.layerOptimize=fixupOptimize(bc.layerOptimize),function(){var e={dojo:"dojo",dijit:"dijit",dojox:"dojox"};(bc.scopeMap||[]).forEach(function(t){t[1]?e[t[0]]=t[1]:delete e[t[0]]}),bc.scopeMap=e,bc.scopeNames=[];for(var t in e)bc.scopeNames.push(t)}(),bc.internSkip=function(){return!1},bc.internSkipList&&(bc.internSkip=function(e,t){return bc.internSkipList.some(function(n){var r=!1;return n instanceof RegExp?r=n.test(e):n instanceof Function?r=n(e,t):r=n==e,r&&bc.log("internStrings",["module",t.mid,"skipping",e]),r})}),bc.check&&(function(){var e={basePath:1,buildReportDir:1,buildReportFilename:1,closureCompilerPath:1,copyright:1,copyrightLayers:1,copyrightNonlayers:1,copyTests:1,destBasePath:1,destModules:1,destPackages:1,destPathTransforms:1,destPathsMapProg:1,dirs:1,discoveryProcs:1,files:1,internStringsSkipList:1,layers:1,localeList:1,maxOptimizationProcesses:1,mini:1,optimize:1,layerOptimize:1,"package":1,packages:1,paths:1,pathsMapProg:1,plugins:1,replacements:1,startTimestamp:1,staticHasFeatures:1,stripConsole:1,trees:1};for(var t in e)e[t]=bc[t];bc.log("pacify",stringify(e))}(),bc.release=0),bc.writeProfile,bc.debugCheck&&(function(){var e={};for(var t in bc)bc[t]!==messages[t]&&typeof bc[t]!="function"&&(e[t]=bc[t]);console.log("profile:"),console.log(stringify(e)),e={};for(t in require)t!="modules"&&t!="module"&&t!="rawConfig"&&typeof require[t]!="function"&&(e[t]=require[t]);console.log("require config:"),console.log(stringify(e))}(),bc.release=0),function(){for(var e={},t=0;t<bc.gates.length;t++)e[bc.gates[t][1]]=t;var n=bc.transforms,r;for(var i in n)r=e[n[i][1]],typeof r=="undefined"?bc.log("inputUnknownGate",["transform",i,"gate",n[i][1]]):n[i][1]=r}(),function(){var e=bc.transforms;bc.transformJobs.forEach(function(t){var n=!1,r=t[1].map(function(t){return e[t]?[t,e[t][1]]:(n=!0,bc.log("inputUnknownTransform",["transform",t]),0)});if(!n){for(var i=0,s=r.length-1;i<s;)if(r[i][1]>r[i+1][1]){var o=r[i];r[i]=r[i+1],r[i+1]=o,i&&i--}else i++;t[1]=r}})}(),argv.args.unitTest=="dumpbc"&&console.log(stringify(bc)+"\n"),bc.quiet&&function(){var e={};for(var t in bc.pacifySet)bc.messageMap[t][1]>199&&(e[t]=1);for(t in e)delete bc.pacifySet[t]}(),bc.unitTestComputedProfile&&(bc.unitTestComputedProfile(),bc.release=0),!bc.unitTestComputedProfile&&!bc.check&&!bc.debugCheck&&!bc.clean&&!bc.release&&bc.log("pacify","Nothing to do; you must explicitly instruct the application to do something; use the option --help for help."),bc})},"build/buildControlDefault":function(){define(["./buildControlBase"],function(e){var t={internStrings:!0,internSkipList:[],optimize:"",layerOptimize:"shrinksafe",cssOptimize:"",cssImportIgnore:"",stripConsole:"normal",scopeMap:[],insertAbsMids:1,applyDojoPragmas:1,localeList:"ar,ca,cs,da,de,el,en-gb,en-us,es-es,fi-fi,fr-fr,he-il,hu,it-it,ja-jp,ko-kr,nl-nl,nb,pl,pt-br,pt-pt,ru,sk,sl,sv,th,tr,zh-tw,zh-cn".split(","),replaceLoaderConfig:1,defaultConfig:{hasCache:{"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1,"config-tlmSiblingOfDojo":1,"config-selectorEngine":"acme"},async:0},files:[],dirs:[],trees:[],replacements:{},staticHasFeatures:{"extend-dojo":1,"dojo-amd-factory-scan":0,"dojo-built":1,"dojo-combo-api":0,"dojo-log-api":1,"dojo-test-sniff":0,"dojo-config-addOnLoad":1,"dojo-config-api":1,"dojo-config-require":1,"dojo-dom-ready-api":1,"dojo-guarantee-console":1,"dojo-has-api":1,"dojo-inject-api":1,"dojo-loader":1,"dojo-modulePaths":1,"dojo-moduleUrl":1,"dojo-publish-privates":0,"dojo-requirejs-api":0,"dojo-sniff":1,"dojo-sync-loader":1,"dojo-timeout-api":1,"dojo-trace-api":0,"dojo-undef-api":0,"dojo-v1x-i18n-Api":1,"dojo-xhr-factory":1,"dojo-fast-sync-require":1,"config-deferredInstrumentation":1,dom:1,"host-browser":1,"host-node":0,"host-rhino":0},discoveryProcs:["build/discover"],plugins:{"dojo/text":"build/plugins/text","dojo/i18n":"build/plugins/i18n","dojo/has":"build/plugins/has","dojo/domReady":"build/plugins/domReady","dojo/loadInit":"build/plugins/loadInit","dojo/require":"build/plugins/require","dojo/selector/_loader":"build/plugins/querySelector"},gates:[[0,"read","reading resources"],[0,"text","processing raw resource content"],[0,"tokenize","tokenizing resource"],[0,"tokens","processing resource tokens"],[0,"parse","parsing resource"],[1,"ast","processing resource AST"],[1,"optimize","executing global optimizations"],[1,"write","writing resources"],[1,"cleanup","cleaning up"],[1,"report","reporting"]],transformConfig:{},transforms:{trace:["build/transforms/trace","read"],read:["build/transforms/read","read"],dojoPragmas:["build/transforms/dojoPragmas","read"],insertSymbols:["build/transforms/insertSymbols","read"],depsDeclarative:["build/transforms/depsDeclarative","read"],depsScan:["build/transforms/depsScan","ast"],hasFixup:["build/transforms/hasFixup","ast"],write:["build/transforms/write","write"],writeAmd:["build/transforms/writeAmd","write"],writeOptimized:["build/transforms/writeOptimized","write"],copy:["build/transforms/copy","write"],writeDojo:["build/transforms/writeDojo","write"],optimizeCss:["build/transforms/optimizeCss","optimize"],writeCss:["build/transforms/writeCss","write"],hasFindAll:["build/transforms/hasFindAll","read"],hasReport:["build/transforms/hasReport","cleanup"],depsDump:["build/transforms/depsDump","cleanup"],dojoReport:["build/transforms/dojoReport","report"],report:["build/transforms/report","report"]},transformJobs:[[function(e,t){return t.mini&&e.tag.miniExclude||!t.copyTests&&e.tag.test||e.tag.ignore},[]],[function(e,t){return e.tag.copyOnly},["copy"]],[function(e,t){return e.tag.report},["dojoReport","insertSymbols","report"]],[function(e,t){return e.mid=="dojo/dojo"?(t.loader=e,e.boots=[],e.deps=[],t.amdResources[e.mid]=e,!0):!1},["read","dojoPragmas","hasFindAll","hasFixup","writeDojo","writeOptimized"]],[function(e,t){return/^\w+\/has$/.test(e.mid)?(t.amdResources[e.mid]=e,!0):!1},["read","dojoPragmas","hasFindAll","hasFixup","depsScan","writeAmd","writeOptimized","hasReport","depsDump"]],[function(e,t){return!!e.tag.flattenedNlsBundle},["writeAmd","writeOptimized"]],[function(e,t){return/\/nls\//.test(e.mid)||/\/nls\/.+\.js$/.test(e.src)?(e.tag.nls=1,t.amdResources[e.mid]=e,!0):!1},["read","dojoPragmas","hasFindAll","hasFixup","depsScan","writeAmd","writeOptimized"]],[function(e,t){return e.tag.synthetic&&e.tag.amd?(t.amdResources[e.mid]=e,!0):!1},["depsScan","writeAmd","writeOptimized"]],[function(e,t){return e.tag.loadInitResource?(t.amdResources[e.mid]=e,!0):!1},["writeAmd","writeOptimized"]],[function(e,t){return e.tag.amd||/\.js$/.test(e.src)&&(!e.tag.test||t.copyTests=="build")&&!/\.(bcs|profile)\.js$/.test(e.src)?(t.amdResources[e.mid]=e,!0):!1},["read","dojoPragmas","hasFindAll","insertSymbols","hasFixup","depsScan","writeAmd","writeOptimized"]],[function(e,t){return e.tag.declarative},["read","dojoPragmas","depsDeclarative","write"]],[function(e,t){return e.tag.test},["read","dojoPragmas","write"]],[function(e,t){return/\.(html|htm)$/.test(e.src)},["read","dojoPragmas","write"]],[function(e,t){return/\.css$/.test(e.src)},["read","optimizeCss","write"]],[function(e,t){return!e.tag.test},["copy"]]]};for(var n in t)e[n]=t[n];return e})},"build/removeComments":function(){define(["dojo/has"],function(e){return function(e){return e.replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,"")}})},"build/main":function(){define(["require","dojo/has","./commandLineArgs"],function(e,t,n){e.rawConfig.commandLineArgs.forEach(function(e){var t=e.split("=");t[0]!="baseUrl"&&n.push(e)}),t.add("is-windows",/indows/.test(environment["os.name"])),this.require.scopeify=function(e){for(var t,n,r,i="",s=this,o=e.split(","),u=0;u<o.length;){n=o[u++].match(/\S+/)[0],r=s(n),n=n.match(/[^\/]+$/)[0];for(t in r)i+="var "+t+"="+n+"."+t+";\n"}return i},e(["./buildControl","./process"],function(t,n){function p(){var n=[],r=[],i=[];t.discoveryProcs.forEach(function(e){i.push(e)});for(var o in t.transforms)n.push(o),i.push(t.transforms[o][0]);for(o in t.plugins)r.push(o),i.push(t.plugins[o]);t.plugins={},e(i,function(){for(var e=[],i=0;i<t.discoveryProcs.length;e.push(arguments[i++]));for(var o,u,a=0;a<n.length;)o=n[a++],u=arguments[i++],s.forEach(function(e){for(var t=e[1],n=0;n<t.length;n++)if(t[n][0]==o){t[n][0]=u;break}});for(a=0;a<r.length;)t.plugins[t.getSrcModuleInfo(r[a++]).mid]=arguments[i++];t.waiting=1,t.log("pacify","discovering resources..."),c(-1),e.forEach(function(e){e()}),h()})}var r=t.gateListeners=[],i=t.transforms,s=t.transformJobs,o=s.length,u=[],a=function(e,n){t.log("transformFailed",["resource",e.src,"transform",e.jobPos,"error",n]),e.error=!0},f=function(e,n){t.waiting--,n&&a(e,n),l(e,!0)},l=function(e,n){if(e.error)return;n||t.waiting++;var r,i,s;for(;;){i=e.jobPos+1,s=i<e.job.length&&e.job[i];if(!(s&&s[1]<=t.currentGate))break;e.jobPos++,t.waiting++,r=s[0](e,f);if(r===f)return;t.waiting--;if(r){a(e,r);break}}h()},c=function(e){for(;;){t.currentGate=++e,t.log("pacify","starting "+t.gates[t.currentGate][2]+"..."),r.forEach(function(e){e(t.gates[t.currentGate][1])});if(e==t.gates.length-1||t.gates[e+1][0])return}},h=t.passGate=function(){if(--t.waiting)return;t.checkDiscovery&&n.exit(0),t.currentGate<t.gates.length-1?(c(t.currentGate),t.waiting++,u.forEach(function(e){l(e,0)}),h()):(u.length||t.log("discoveryFailed"),t.log("pacify","Process finished normally.\n errors: "+t.getErrorCount()+"\n warnings: "+t.getWarnCount()+"\n build time: "+((new Date).getTime()-t.startTimestamp.getTime())/1e3+" seconds"),!t.exitCode&&t.getErrorCount()&&(t.exitCode=1),n.exit(t.exitCode))};t.start=function(e){var n=e.src,r=e.dest;if(t.resourcesByDest[n]){t.log("overwrite",["input",n,"resource destined for same location: ",t.resourcesByDest[n].src]);return}if(t.resourcesByDest[r]){t.log("outputCollide",["source-1",n,"source-2",t.resourcesByDest[r].src]);return}t.resources[e.src]=e,t.resourcesByDest[e.dest]=e;if(t.checkDiscovery){t.log("pacify",n+"-->"+r);return}for(var i=0;i<o;i++)if(s[i][0](e,t)){u.push(e),e.job=s[i][1],e.jobPos=-1,l(e);return}t.log("noTransform",["resoures",e.src])},!t.errorCount&&t.release&&p()})})},"build/replace":function(){define(["./fs"],function(e){var t={};return function(n,r){var i="utf8";return r instanceof Array?typeof r[0]=="string"&&(i=r[0],r=r.slice(1)):r=[r],r.forEach(function(r){var s=r[0],o=r[1],u=r[2];u=="file"&&(o=t[filename]=t[filename]||e.readFileSynch(o,i));if(s instanceof RegExp)n=n.replace(s,o);else if(typeof s=="function")n=s(n);else{var a=s.length,f=o.length,l=n.indexOf(s);while(l!=-1)n=n.substring(0,l)+o+n.substring(l+a),l=n.indexOf(s,l+f)}}),n}})},"build/fileHandleThrottle":function(){define([],function(){var e=0,t=10,n=[];return{release:function(){n.length?n.shift()():e--},enqueue:function(r){e<t?(e++,r()):n.push(r)}}})},"build/plugins/querySelector":function(){define(function(){return{start:function(e,t,n){var r=[n.amdResources["dojo/selector/_loader"]];return n.selectorEngine&&(r=r.concat(n.amdResources["dojo/selector/"+n.selectorEngine])),r}}})},"build/plugins/domReady":function(){define(function(){return{start:function(e,t,n){return n.amdResources[n.getSrcModuleInfo("dojo/domReady",t).mid]}}})},"build/plugins/has":function(){define(["dojo/regexp"],function(e){return{start:function(t,n,r){var i=function(){var e=r.amdResources["dojo/has"];return e?[e]:(r.log("dojoHasMissingPlugin"),[])},s=function(e){var t=r.staticHasFeatures[e];return t===undefined||t==-1?undefined:t},o=t.match(/[\?:]|[^:\?]*/g),u=0,a=function(e){var t,n=o[u++];if(n==":")return"";if(o[u++]=="?"){var r=s(n);return r===undefined?undefined:!e&&r?a():(a(!0),a(e))}return n===undefined?"":n},f=a();if(f===undefined)return r.log("dojoHasUnresolvedMid",["plugin resource id",t,"reference module id",n&&n.mid]),i();var l=new RegExp("((dojo\\/)|([./]+))has\\!"+e.escapeString(t));if(!f)return n.text=n.text.replace(l,"require"),[];var c=r.getSrcModuleInfo(f,n),h=r.amdResources[c.mid];return h?(n.text=n.text.replace(l,f),[h]):(r.log("dojoHasMissingMid",["plugin resource id",t,"resolved plugin resource id",c.mid,"reference module id",n&&n.mid]),i())}}})},"dojo/regexp":function(){define(["./_base/kernel","./_base/lang"],function(e,t){var n={};return t.setObject("dojo.regexp",n),n.escapeString=function(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(e){return t&&t.indexOf(e)!=-1?e:"\\"+e})},n.buildGroupRE=function(e,t,r){if(e instanceof Array){var i=[];for(var s=0;s<e.length;s++)i.push(t(e[s]));return n.group(i.join("|"),r)}return t(e)},n.group=function(e,t){return"("+(t?"?:":"")+e+")"},n})},"build/plugins/text":function(){define(["dojo/json","../fs"],function(e,t){return{start:function(n,r,i){n=n.split("!")[0];var s=i.amdResources["dojo/text"],o=i.getSrcModuleInfo(n,r,!0),u=i.resources[o.url];if(!s)throw new Error("text! plugin missing");if(!u)throw new Error("text resource ("+o.url+") missing");var a=[s];return i.internStrings&&!i.internSkip(o.mid,r)&&a.push({module:u,pid:o.pid,mid:o.mid,deps:[],getText:function(){var n=this.module.getText?this.module.getText():this.module.text;return n===undefined&&(n=t.readFileSync(this.module.src,"utf8")),e.stringify(n+"")},internStrings:function(){return["url:"+this.mid,this.getText()]}}),a}}})},"build/plugins/loadInit":function(){define(function(){return{start:function(e,t,n){return[n.amdResources["dojo/require"],n.amdResources[n.getSrcModuleInfo(e,t).mid]]}}})},"build/plugins/require":function(){define([],function(){return{start:function(e,t,n){var r=[n.amdResources["dojo/require"]];return e.split(",").map(function(e){var i=n.amdResources[e];i?r.push(i):n.log("legacyMissingDependency",["reference module",t.mid,"dependency",e])}),r}}})},"build/plugins/i18n":function(){define(function(){var e=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;return{start:function(t,n,r){var i=r.amdResources["dojo/i18n"],s=e.exec(t),o=s[5]||s[4],u=r.getSrcModuleInfo(s[1]+o,n).mid.match(/(.+\/)[^\/]+/)[1],a=s[5]&&s[4],f=u+(a?a+"/":"")+o,l=r.amdResources[f];if(!i)throw new Error("i18n! plugin missing");if(!l)throw new Error("i18n resource ("+f+") missing");return[i,l]}}})},"build/transforms/depsDump":function(){define(["../buildControl","../fileUtils","../fs","dojo/_base/lang","dojo/_base/array","dojo/json"],function(e,t,n,r,i,s){return function(o,u){if(!e.depsDumpDotFilename&&!e.depsDumpFilename)return 0;var a=0,f={},l={};e.dotModules&&(a={},i.forEach(e.dotModules.split(","),function(e){a[r.trim(e)]=f}));var c=[],h={},p=0,d="digraph {\n",v,m,g;for(m in e.resources){v=e.resources[m];if(v.deps){if(!a||a[v.mid])a[v.mid]=l,v.deps.forEach(function(e){d+='"'+v.mid+'" -> "'+e.mid+'";\n',a[e.mid]!==l&&(a[e.mid]=f)});v.uid=p,h[e.resources[m].mid]=p,c.push(v),p++}}if(e.depsDumpDotFilename){var y=a;while(y){y=!1;for(m in e.resources)v=e.resources[m],a[v.mid]==f&&(y=!0,a[v.mid]=l,v.deps&&v.deps.forEach(function(e){d+='"'+v.mid+'" -> "'+e.mid+'";\n',a[e.mid]!==l&&(a[e.mid]=f)}))}d+="}\n";var b=t.computePath(e.depsDumpDotFilename,e.destBasePath);t.ensureDirectory(t.getFilepath(b)),n.writeFileSync(b,d,"ascii")}if(e.depsDumpFilename){var w=c.map(function(e){return e.deps.map(function(e){return e.uid})}),E={},S=function(e,t){var n=e.shift();return n in t||(t[n]={}),e.length?S(e,t[n]):t[n]};c.forEach(function(e,t){var n=e.mid.split("/");S(n,E)["*"]=t}),b=t.computePath(e.depsDumpFilename,e.destBasePath),t.ensureDirectory(t.getFilepath(b)),n.writeFileSync(b,s.stringify({depsTree:w,idTree:E}),"ascii")}return 0}})},"build/transforms/copy":function(){define(["../buildControl","../process","../fileUtils","dojo/has"],function(e,t,n,r){return function(i,s){n.ensureDirectoryByFilename(i.dest);var o=function(e,t){s(i,e)},u='failed to copy file from "'+i.src+'" to "'+i.dest+'"',a=r("is-windows")?["cmd","/c","copy",n.normalize(i.src),n.normalize(i.dest),u,e,o]:["cp",i.src,i.dest,u,e,o];return t.exec.apply(t,a),s}})},"build/transforms/trace":function(){define([],function(){return function(e){return 0}})},"build/transforms/read":function(){define(["../buildControl","../fileUtils","../fs","../replace"],function(e,t,n,r){var i=t.getFiletype,s=e.transformConfig.read&&e.transformConfig.read.encoding||{css:"utf8",html:"utf8",htm:"utf8",js:"utf8",json:"utf8",asc:"utf8",c:"utf8",cpp:"utf8",log:"utf8",conf:"utf8",text:"utf8",txt:"utf8",dtd:"utf8",xml:"utf8",png:undefined,jpg:undefined,jpeg:undefined,gif:undefined};return function(t,o){t.getText=function(){return this.replacementsApplied||(this.replacementsApplied=!0,e.replacements[this.src]&&(this.text=r(this.text,e.replacements[this.src]))),this.text},t.setText=function(e){return t.text=e,t.getText=function(){return this.text},e};var u=i(t.src,1);return t.encoding=t.encoding||!(u in s)&&"utf8"||s[u],n.readFile(t.src,t.encoding,function(e,n){e||(t.text=n),o(t,e)}),o}})},"build/transforms/writeAmd":function(){define(["../buildControl","../fileUtils","../fs","dojo/_base/lang","dojo/json"],function(e,t,n,r,i){var s=function(e,t){return e.setText||(e.setText=function(t){return e.text=t,e.getText=function(){return this.text},t}),e.setText(t),t},o={},u=function(t,n,r){if(o[t.mid])return e.log("amdCircularDependency",["module",t.mid]),{};o[t.mid]=1;var i={},s,a,f=function(e){var n=e.mid;if(s[n])return;s[n]=1,a?i[n]=e:delete i[n];if(e!==t&&e.layer){var r=e.moduleSet||u(e,e.layer.include,e.layer.exclude);for(var o in r)a?i[o]=r[o]:delete i[o]}else for(var l=e.deps,c=0;l&&c<l.length;f(l[c++]));};s={},a=!0,f(t),n.forEach(function(n){var r=e.amdResources[e.getSrcModuleInfo(n,t).mid];r?f(r):e.log("amdMissingLayerIncludeModule",["missing",n,"layer",t.mid])}),s={},a=!1,r.forEach(function(n){var r=e.amdResources[e.getSrcModuleInfo(n,t).mid];r?f(r):e.log("amdMissingLayerExcludeModule",["missing",n,"layer",t.mid])}),t.moduleSet=i,delete o[t.mid];var l={};for(var c in i)l[c]=i[c];return l},a=function(t,n){return!n.mid||n.tag.hasAbsMid||!e.insertAbsMids?t:t.replace(/(define\s*\(\s*)(.*)/,'$1"'+n.mid+'", $2')},f=function(e){return"'"+e[0]+"':"+e[1]},l=function(e){var t=e.match(/(.+)\/([^\/]+)$/);return t[1]+"/nls/"+t[2]},c=function(t){if(t.flattenedBundles)return;t.flattenedBundles={},e.localeList.forEach(function(n){var i=r.mixin({},t.bundleValue.root);e.localeList.discreteLocales[n].forEach(function(e){var n=t.localizedSet[e];n&&n.bundleValue&&r.mixin(i,n.bundleValue)}),t.flattenedBundles[n]=i})},h=function(t,n){n.forEach(c);var r=e.newline,s=l(t.dest.match(/(.+)(\.js)$/)[1]),o,u;e.localeList.forEach(function(a){u=[],n.forEach(function(e){u.push("'"+e.prefix+e.bundle+"':"+i.stringify(e.flattenedBundles[a])+r)}),o=l(t.mid)+"_"+a;var f={src:"*synthetic*",dest:s+"_"+a+".js",pid:t.pid,mid:o,pack:t.pack,deps:[],tag:{flattenedNlsBundle:1},encoding:"utf8",text:"define("+(e.insertAbsMids?"'"+o+"',{":"{")+r+u.join(","+r)+"});",getText:function(){return this.text}};e.insertAbsMids&&(f.tag.hasAbsMid=1),e.start(f)})},p=function(t,n){var r=e.newline,s=[],o=[],c=u(t,t.layer.include,t.layer.exclude);for(var p in c)if(p!=t.mid||n===!1){var d=c[p];d.localizedSet&&e.localeList?s.push(d):d.internStrings?o.push(f(d.internStrings())):d.getText?o.push("'"+p+"':function(){"+r+d.getText()+r+"}"):e.log("amdMissingLayerModuleText",["module",d.mid,"layer",t.mid])}return s.length&&(h(t,s),o.push("'*now':function(r){r(['dojo/i18n!*preload*"+l(t.mid)+"*"+i.stringify(e.localeList)+"']);}"+r)),o.length&&t.layer.noref&&o.push("'*noref':1"),(o.length?"require({cache:{"+r+o.join(","+r)+"}});"+r:"")+(n===undefined?a(t.getText(),t):n==0?"":n)+(t.layer.postscript?t.layer.postscript:"")},d=function(t){var n=[],r=e.newline;return t.deps&&t.deps.forEach(function(e){e.internStrings&&n.push(f(e.internStrings()))}),n.length?"require({cache:{"+r+n.join(","+r)+"}});"+r:""},v=function(t){return t.layer&&e.layerOptimize||!t.layer&&e.optimize?t.dest+".uncompressed.js":t.dest},m=function(t){var n=e.newline,r,s;if(t.localizedSet&&t.bundleValue){var o=[];for(s in t.bundleValue)s!="root"&&!t.localizedSet[s]&&o.push("'"+s+"'");o.length&&(o.sort(),e.log("missingL10n","Root: "+t.mid+"; missing bundles: "+o.join(",")+"."))}if(t.bundleType=="legacy"){if(t.bundleValue){if(t.localizedSet)for(s in t.localizedSet)t.bundleValue[s]=1;r=i.stringify(t.bundleValue)}else r="// ERROR: builder was unable to evaluate source bundle; therefore, this empty conversion was written"+n+"{}";return"define("+(e.insertAbsMids?"'"+t.mid+"',":"")+n+r+n+");"}return a(t.getText(),t)},g=function(r,o){if(r.layer&&(r.layer.boot||r.layer.discard))return 0;var u;r.pack?u=r.pack.copyrightNonlayers&&(r.pack.copyright||e.copyright):u=e.copyrightNonlayers&&e.copyright,u||(u="");var f;r.tag.nls?f=m(r):r.layer?(f=r.layerText=p(r),r.layer.compat=="1.6"&&(f=r.layerText=f+"require("+i.stringify(r.layer.include)+");"+e.newline),u=r.layer.copyright||""):(f=a(r.getText(),r),f=(e.internStrings?d(r):"")+f),s(r,f);var l=v(r);return t.ensureDirectoryByFilename(l),n.writeFile(l,e.newlineFilter(r.getText(),r,"writeAmd"),r.encoding,function(e){o(r,e)}),o};return g.getLayerText=p,g.getDestFilename=v,g.computeLayerContents=u,g})},"build/transforms/dojoPragmas":function(){define(["../buildControl"],function(bc){var evalPragma=function(code,kwArgs,fileName){return!!eval("("+code+")")};return function(e){if(!bc.applyDojoPragmas)return;if(typeof e.text!="string")return;var t=-1,n=0,r=e.text;while((t=r.indexOf("//>>",n))!=-1){var i=r.indexOf("\n",t);i==-1&&(i=r.length-1),n=i+1;var s=r.substring(t,i+1),o=s.match(/(exclude|include)Start\s*\(\s*["'](\w+)["']\s*,(.*)\)/);if(o){var u=o[1],a=o[2],f=o[3],l=!1;try{l=evalPragma(f,bc,e.src)}catch(c){bc.log("dojoPragmaEvalFail",["module",e.mid,"expression",s,"error",c]);return}var h=new RegExp("\\/\\/\\>\\>\\s*"+u+"End\\(\\s*['\"]"+a+"['\"]\\s*\\)","g"),p=h.exec(r.substring(n,r.length));if(!p){bc.log("dojoPragmaInvalid",["module",e.mid,"expression",s]);return}var d=n+h.lastIndex-p[0].length;i=r.indexOf("\n",d),i==-1&&(i=r.length-1);var v=u=="exclude"&&!l||u=="include"&&l,m=n-t;r=r.substring(0,t)+(v?r.substring(n,d):"")+r.substring(i+1,r.length),n=t}else/^\/\/>>\s*noBuildResolver\s*$/.test(s)&&(e.noBuildResolver=1)}e.text=r}})},"build/transforms/report":function(){define(["../buildControl","../fileUtils","../fs"],function(e,t,n){return function(r,i){return r.reports.forEach(function(r){var i=t.computePath(t.catPath(r.dir,r.filename),e.destBasePath),s=r.content;typeof s=="function"&&(s=s(e)),e.waiting++,t.ensureDirectory(t.getFilepath(i)),n.writeFile(i,s,"utf8",function(t){t,e.passGate()})}),0}})},"build/transforms/hasFindAll":function(){define(["../buildControl"],function(e){return function(t){if(t.hasTest)return 0;var n=e.hasFeatures=e.hasFeatures||{},r=t.text,i=/[^\w\.]has\s*\(\s*["']([^"']+)["']\s*\)/g,s;while((s=i.exec(r))!=null){var o=s[1],u=n[o]=n[o]||{};u[t.mid]=1}return 0}})},"build/transforms/hasFixup":function(){define(["../buildControl"],function(e){function t(e){return typeof e=="string"?'"'+e+'"':e}return function(n){return n.text=n.text.replace(/([^\w\.])has\s*\(\s*["']([^'"]+)["']\s*\)/g,function(t,n,r){return r in e.staticHasFeatures?n+" "+e.staticHasFeatures[r]+" ":t}).replace(/([^\w\.])((has.add\s*\(\s*)["']([^'"]+)["'])/g,function(n,r,i,s,o){return o in e.staticHasFeatures?r+" "+t(e.staticHasFeatures[o])+(e.staticHasFeatures[o]?" || ":" && ")+i:n}),0}})},"build/transforms/writeDojo":function(){define(["../buildControl","../fileUtils","../fs","../stringify","./writeAmd","../process","dojo/json","dojo/text!./dojoBoot.js"],function(e,t,n,r,i,s,o,u){return function(s,a){var f=function(){if(!e.userConfig)return"this.dojoConfig || this.djConfig || this.require || {}";if(typeof e.userConfig=="string")return e.userConfig;var t=r(e.userConfig);return t.unsolved&&e.log("configUnresolvedValues"),t},l=function(e,t){if(t.indexOf(e+"/")==0)return"."+t.substring(e.length);var n=e.split("/"),r="";for(var i=n.length-1;i>=0;i--){r+=r?"/..":"..";var s=n.slice(0,i).join("/")+"/";if(t.indexOf(s)==0)return r+t.substring(s.length-1)}return t},c=function(t){var n=e.destPackages[t],r={};r.name=n.name,n.main!="main"&&(r.main=n.main),t=="dojo"?r.location=".":r.location=l(e.destBasePath+"/dojo",n.location);var i=e.defaultConfig&&e.defaultConfig.packages&&e.defaultConfig.packages[t];for(var s in i)r[s]=i[s];return r},h=function(){var t,n={packages:[],hasCache:{}};e.baseUrl&&(n.baseUrl=e.baseUrl);for(t in e.packages)n.packages.push(c(t));for(t in e.defaultConfig)t!=="packages"&&(n[t]=e.defaultConfig[t]);return n=r(n),n.unsolved&&e.log("configUnresolvedValues"),n},p=function(t){version=e.version;if(version){var n=(version+"").match(/^(\d*)\.?(\d*)\.?(\d*)\.?(.*)$/),r=n[1]||0,i=n[2]||0,s=n[3]||0,o=n[4]||"";return t.replace(/major:\s*\d*,\s*minor:\s*\d*,\s*patch:\s*\d*,\s*flag:\s*".*?"\s*,/g,"major: "+r+", minor: "+i+", patch: "+s+', flag: "'+o+'",')}return t},d=1,v=[],m=function(e){e&&v.push(e),--d==0&&a(s,v.length&&v)},g=function(r,i){t.ensureDirectoryByFilename(r),d++,n.writeFile(r,e.newlineFilter(i,s,"writeDojo"),"utf8",m)};try{var y=s.getText(),b="("+f()+", "+h()+");",w=p(i.getLayerText(s,"")),E=s.layer.compat=="1.6"&&s.layer.include.length?"require("+o.stringify(s.layer.include)+");"+e.newline:"";s.layerText=y+b+w+(e.dojoBootText||u)+E,g(i.getDestFilename(s),s.layer.copyright+s.layerText),s.boots.forEach(function(t){if(t!==s){var n=t.layer.compat=="1.6"&&t.layer.include.length?"require("+o.stringify(t.layer.include)+");"+e.newline:"";t.layerText=y+b+w+i.getLayerText(t,!1)+(t.bootText||e.dojoBootText||u)+E+n,g(i.getDestFilename(t),s.layer.copyright+t.layerText)}}),m(0)}catch(S){return d?(v.push(S),0):S}return a}})},"url:build/transforms/dojoBoot.js":'(function(){\n // must use this.require to make this work in node.js\n var require = this.require;\n // consume the cached dojo layer\n require({cache:{}});\n !require.async && require(["dojo"]);\n require.boot && require.apply(null, require.boot);\n})();\n',"build/transforms/depsScan":function(){define(["require","../buildControl","../fileUtils","../removeComments","dojo/json","dojo/_base/lang","dojo/_base/loader","../fs"],function(e,t,n,r,i,s,o,u){return function(e){var a=t.newline,f=function(e,t){e=e||{};for(var n in t)e[n]=t[n];return e},l=0,c=[],h=0,p=function(e,t,n){h=1;var r=arguments.length,i=0,o=["require","exports","module"];i||(i=r==1?[0,o,e]:r==2?e instanceof Array?[0,e,t]:[e,o,t]:[e,t,n]);if(i[1].some(function(e){return!s.isString(e)}))throw new Error("define dependency vector contains elements that are not of type string.");l=i[0],c=c.concat(i[1])},d=function(e,t){var n=function(e){return e.some(function(e){return/^\./.test(e)})};s.isArray(e)&&!n(e)?c=c.concat(e):s.isArray(t)&&!n(t)&&(c=c.concat(t))},v=function(e){return e.replace(/\./g,"/")},m=0,g=[],y=[],b={require:function(e,t){y.push(v(e))},provide:function(e){g.push(v(e))},requireLocalization:function(e,t,n){c.push("dojo/i18n!"+v(e)+"/nls/"+(!n||/root/i.test(n)?"":n+"/")+v(t))},platformRequire:function(e){m=1,(e.common||[]).concat(t.platform&&e[t.platform]||[]).forEach(function(e){y.push(s.isArray(e)?v(e[0]):v(e))})},loadInit:function(e){m=1,e()},requireIf:function(e,t,n){m=1,e&&y.push(v(t))},requireAfterIf:function(e,t,n){m=1,e&&y.push(v(t))}},w=new Function("dojo","__text","eval(__text);"),E=function(n){var r;if(e.pack.runtime){var i=e.pack.runtime,s=[],o=[],u;i.dojo=f(i.dojo,b);for(u in i)s.push(i[u]),o.push(u);r=new Function("__bc","__args","__text","(function("+o.join(",")+"){ eval(__text); }).apply(__bc, __args);"),s=[t,s]}else s=[b],r=w;var a=n.map(function(e){try{return r.apply(t,s.concat(e)),0}catch(n){return m=1,[n,e]}});a.forEach(function(n){n&&t.log("legacyFailedEval",["module",e.mid,"text",n[0],"error",n[1]])})},S=function(n,r){var i=n.match(/^([^\!]+)\!(.*)$/);if(i){var s=t.getSrcModuleInfo(i[1],r),o=s&&t.amdResources[s.mid],u=o&&o.mid,a=t.plugins[u];return o?a?a.start(i[2],r,t):(o.noBuildResolver||t.log("missingPluginResolver",["module",e.mid,"plugin",u]),o):0}var f=t.getSrcModuleInfo(n,r),l=f&&t.amdResources[f.mid];return l},x=function(n){n&&n!=e.mid&&t.log("amdInconsistentMid",["module",e.mid,"specified",n]),n&&(e.tag.hasAbsMid=1)},T=function(){try{e.mid!="dojo/_base/loader"&&/dojo\.(require|provide)\s*\(/.test(r(e.text))&&t.log("amdPureContainedLegacyApi",["module",e.mid]),(new Function("define","require",e.text))(p,d),x(l)}catch(n){t.log("amdFailedEval",["module",e.mid,"error",n])}},N=function(e){var t=[],n="spaces",r="string",i="endOfString",s="done",o="error",u={spaces:function(e){return/\s/.test(e)?n:e=="'"||e=='"'?(f=e,l="",r):e==0?s:o},string:function(e){return e==f?(t.push(l),"endOfString"):(l+=e,"string")},endOfString:function(e){return/\s/.test(e)?i:e==0?s:e==","?n:o}},a=n,f,l;for(var c=0;c<e.length;c++){a=u[a](e.charAt(c));if(a==o)return 0}return u[a](0)!=o?t:0},C=function(n){var r=0,i=/(^|\s)define\s*\(\s*(["'][^'"]+['"])?\s*(,)?\s*(\[[^\]]*?\])?\s*(,)?/g,s;while((s=i.exec(n))!=null)try{s[2]?s[3]?s[5]?s=s[0]+"{})":s[4]?s=s[0]+")":s=s[0]+"{})":s=s[0]+")":s[4]?s[5]?s=s[0]+"{})":s=s[0]+")":s="define({})",r++,(new Function("define",s))(p),x(l)}catch(o){r--,t.log("amdFailedDefineEval",["module",e.mid,"text",s,"error",o])}var u=/(^|\s)require\s*\(\s*\[([^\]]*?)\]/g;while((s=u.exec(n))!=null){var a=N(s[2]);a&&(r++,c=c.concat(a.filter(function(e){return e.charAt(0)!="."})))}return r},k=function(e){var n=0;try{function r(e,t){s.isString(e)&&s.isObject(t)?(x(e),n=t):s.isObject(e)&&(n=e)}(new Function("define",e.text))(r);if(n){e.bundleValue=n,e.bundleType="amd";return}}catch(i){}try{n=(new Function("return "+e.text+";"))();if(s.isObject(n)){e.bundleValue=n,e.bundleType="legacy";return}}catch(i){}T(),h||t.log("i18nImproperBundle",["module",e.mid])},L=function(){var n=e.mid.match(/(^.*\/nls\/)(([^\/]+)\/)?([^\/]+)$/),r=e.prefix=n[1],i=e.locale=n[3],s=e.bundle=n[4],o=r+s,u=t.amdResources[o];if(!u){t.log("i18nNoRoot"["bundle",e.mid]);return}u.localizedSet||(u.localizedSet={}),k(e),(t.localeList||e.bundleType=="legacy")&&!e.bundleValue&&t.log("i18nUnevaluableBundle",["module",e.mid]),e.bundleType=="legacy"&&e===u&&e.bundleValue&&(e.bundleValue={root:e.bundleValue}),e!==u&&(u.localizedSet[i]=e)},A="(((templatePath|templateCssPath)\\s*(=|:)\\s*)dojo\\.(module)?Url\\(|dojo\\.cache\\s*\\(\\s*)\\s*?[\\\"\\']([\\w\\.\\/]+)[\\\"\\'](([\\,\\s]*)[\\\"\\']([\\w\\.\\/-]*)[\\\"\\'])?(\\s*,\\s*)?([^\\)]*)?\\s*\\)",O=new RegExp(A,"g"),M=new RegExp(A),_=function(){var r=function(e){return u.readFileSync(e,"utf8")},s=[],o=[],a=[];e.text=e.text.replace(O,function(s){var u=s.match(M),f=t.getSrcModuleInfo(n.catPath(u[6].replace(/\./g,"/"),u[9]),0,!0);if(t.internSkip(f.mid,e))return s;var l=t.resources[f.url];if(!l)return o.push(f.url),s;var c=l.getText&&l.getText()||r(l.src);if(!c)return a.push(l.src),s;c=i.stringify(c);if(s.indexOf("dojo.cache")!=-1){var h=u[11];if(!h)h=c;else{var p=h.indexOf("{");p!=-1&&(h=h.substring(0,p+1)+"value: "+c+","+h.substring(p+1,h.length))}return'dojo.cache("'+u[6]+'", "'+u[9]+'", '+h+")"}return u[3]=="templatePath"?"templateString"+u[4]+c:s});if(s.length||o.length||a.length){var f=["module",e.mid];s.length&&f.push("skipping",s),o.length&&f.push("not found",o),a.length&&f.push("nothing to intern",a),t.log("internStrings",f)}},D=function(){t.internStrings&&_();var n=e.getText(),s=t.scopeNames,u=o.extractLegacyApiApplications(n,r(n));if(!u.extractText&&C(r(n))){t.log("amdNotPureContainedNoLegacyApi",["module",e.mid]);return}t.log("legacyAssumed",["module",e.mid]);if(!u){e.getText=function(){return"define("+i.stringify(s)+", function("+s.join(",")+"){"+a+n+"});"+a};return}E(u[2]),g.length&&(g.length>1&&t.log("legacyMultipleProvides",["module",e.mid,"provides",g]),g.forEach(function(n){n.replace(/\./g,"/")!=e.mid&&t.log("legacyImproperProvide",["module",e.mid,"provide",n])}));if(m){t.log("legacyUsingLoadInitPlug",["module",e.mid]);var l,h,p,d;l="// generated by build app"+a+"define([], {"+a+" names:"+i.stringify(s)+","+a+" def:function("+s.join(",")+"){"+a+u[1]+"}"+a+"});"+a,h=e.mid+"-loadInit",p=f({},f(e,{src:e.src.substring(0,e.src.length-3)+"-loadInit.js",dest:t.getDestModuleInfo(h).url,mid:h,tag:{loadInitResource:1},deps:[],getText:function(){return l}})),t.start(p),d="dojo/loadInit!"+h,c.push(d)}else y.length&&c.push("dojo/require!"+y.join(","));c=s.concat(c),e.getText=function(){return"// wrapped by build app"+a+"define("+i.stringify(c)+", function("+s.join(",")+"){"+a+u[0]+a+"});"+a}};e.tag.nls?L():e.tag.amd||/\/\/>>\s*pure-amd/.test(e.text)?T():D();var P=e.deps;e.aggregateDeps=c,c.forEach(function(n){if(!/^(require|exports|module)$/.test(n))try{var r=S(n,e);s.isArray(r)?r.forEach(function(e){P.push(e)}):r?P.push(r):t.log("amdMissingDependency",["module",e.mid,"dependency",n])}catch(i){t.log("amdMissingDependency",["module",e.mid,"dependency",n,"error",i])}})}})},"build/transforms/write":function(){define(["../buildControl","../fileUtils","../fs","../replace"],function(e,t,n,r){return function(r,i){return r.tag.noWrite?0:(t.ensureDirectoryByFilename(r.dest),n.writeFile(r.dest,e.newlineFilter(r.getText(),r,"write"),r.encoding,function(e){i(r,e)}),i)}})},"build/transforms/dojoReport":function(){define(["../buildControl","../version","../fileUtils"],function(e,t,n){var r=e.buildReportDir||".",i=e.buildReportFilename||"build-report.txt";return function(s,o){return s.reports.push({dir:r,filename:i,content:function(){var o="";o+="Build started: "+e.startTimestamp+"\n",o+="Build application version: "+t+"\n",o+="Messages:\n"+e.getAllNonreportMessages(),o+="Layer Contents:\n";for(var u in e.resources){s=e.resources[u];if(s.moduleSet){o+=s.mid+":\n";var a=s.moduleSet;for(var f in a)o+=" "+a[f].mid+"\n";o+="\n"}}var l=e.getOptimizerOutput();return l.length&&(o+="Optimizer Messages:\n"+l),o+=e.getAllReportMessages(),e.log("pacify","Report written to "+n.computePath(n.catPath(r,i),e.destBasePath)),o+="\n\nProcess finished normally\n",o+=" errors: "+e.getErrorCount()+"\n warnings: "+e.getWarnCount()+"\n build time: "+((new Date).getTime()-e.startTimestamp.getTime())/1e3+" seconds",o}}),0}})},"build/transforms/writeOptimized":function(){define(["../buildControl","../process","../fs","../fileUtils","dojo/has","dojo/json"],function(e,t,n,r,i,s){var o="//>>built"+e.newline,u=function(){},a=0;if(e.stripConsole){var f="assert|count|debug|dir|dirxml|group|groupEnd|info|profile|profileEnd|time|timeEnd|trace|log";e.stripConsole=="warn"?f+="|warn":e.stripConsole=="all"&&(f+="|warn|error"),a=new RegExp("console\\.("+f+")\\s*\\(","g")}if(e.optimize||e.layerOptimize){function l(e,t,n,r){var i=n.split("."),s=0,u=0,a=null;while(i.length)switch(i.pop()){case"normal":a="normal";break;case"warn":a="warn";break;case"all":a="all";break;case"keeplines":u=1;break;case"comments":s=1}var f=Packages.org.mozilla.javascript.Context.enter();try{f.setOptimizationLevel(-1);if(s){var l=f.compileString(e,t,1,null);e=new String(f.decompileScript(l,0)),e=e.replace(/ /g," ")}else e=new String(Packages.org.dojotoolkit.shrinksafe.Compressor.compressScript(e,0,1,a)),u||(e=e.replace(/[\r\n]/g,""))}finally{Packages.org.mozilla.javascript.Context.exit()}return r+o+e}var c,h,p=0;function d(e,t,n,r){p||(c=java.lang.Class.forName("com.google.javascript.jscomp.JSSourceFile").getMethod("fromCode",[java.lang.String,java.lang.String]),h=function(e,t){return c.invoke(null,[e,t])},p=com.google.javascript.jscomp);var i=h("fakeextern.js"," "),s=h(String(t),String(e)),u=new p.CompilerOptions;u.prettyPrint=n.indexOf(".keeplines")!==-1;var a=p.CompilationLevel.SIMPLE_OPTIMIZATIONS;a.setOptionsForCompilationLevel(u);var f=p.WarningLevel.DEFAULT;f.setOptionsForWarningLevel(u);var l=new Packages.com.google.javascript.jscomp.Compiler(Packages.java.lang.System.err),d=l.compile(i,s,u);return r+o+l.toSource()}u=function(t,r,i,s,o){e.log("optimize",["module",t.mid]),i=i||"";var u=0;try{/closure/.test(s)?u=d(a?r.replace(a,"0 && $&"):r,t.dest,s,i):u=l(r,t.dest,s,i),n.writeFile(t.dest,u,t.encoding,function(n){n&&e.log("optimizeFailedWrite",["filename",u.dest]),o(t,n)})}catch(f){e.log("optimizeFailed",["module identifier",t.mid,"exception",f+""]),o(t,0)}return o}}return function(t,n){return e.optimize&&!t.layer?u(t,t.getText(),t.pack.copyright,e.optimize,n):e.layerOptimize&&t.layer&&!t.layer.discard?u(t,t.layerText,t.layer.copyright,e.layerOptimize,n):0}})},"build/transforms/insertSymbols":function(){define(["../buildControl","../fileUtils","../fs","../replace"],function(e,t,n,r){var i=1,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=s.length,u=function(t,n){var r=t;if(e.symbol==="short"){var u=[],a=i;while(a)u.unshift(s[a%o]),a=Math.floor(a/o);u="$D"+u.join(""),i++,n[u+"_"]=t,r=u+"_"}return r},a=function(t,n){var r=t.replace(/\./g,"_");return e.symbol!=="short"&&t===r?(r==="define"&&(r="DEFINE"),r+"__"+Math.floor(Math.random()*1e4)):u(r,n)},f=function(e,t){var n=e.getText(),r=[],i=function(e,n,i,s,o){return n+i+s+" "+u(r+i,t)+o};e.pid&&r.push(e.pid),e.mid&&r.push(e.mid.replace(/\//g,"_"));if(!r.length){var s=n.match(/dojo\.provide\("(.*)"\);/);s&&r.push(s[1].replace(/\./g,"_"))}return r.length&&(r=r.join("_").replace(/\.|\-/g,"_")+"_",n=n.replace(/^(\s*)(\w+)(\s*:\s*function)\s*(\(.*)$/mg,i).replace(/^(\s*this\.)(\w+)(\s*=\s*function)\s*(\(.*)$/mg,i)),n=n.replace(/^(\s*)([\w\.]+)(\s*=\s*function)\s*(\(.*)/mg,function(e,n,r,i,s){return n+r+i+" "+a(r,t)+s}),n},l=0;return function(n,r){return e.symbol&&(n.tag.report?e.symbol==="short"&&(e.symbolTable={},n.reports.push({dir:".",filename:"symboltable.txt",content:function(){var t=[],n,r=e.symbolTable;for(n in r)t.push(n+': "'+r[n]+'"'+e.newline);return t.join("")}})):(l||(l=1,e.log("symbolsLeak",[])),t.ensureDirectoryByFilename(n.dest),n.text=f(n,e.symbolTable))),0}})},"build/transforms/hasReport":function(){define(["../buildControl","../stringify"],function(e,t){return function(){if(e.hasReport){var t,n=e.hasFeatures,r=[];for(t in n)r.push([[t],n[t]]);r.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0});var i=function(e){var t=[];for(var n in e)t.push(n);return t.sort()},s=e.newline;e.log("hasReport",r.map(function(e){return" // "+i(e[1]).join(", ")+s+" '"+e[0]+"':1"}).join(","+s+s))}return 0}})},"build/transforms/writeCss":function(){define(["../buildControl","../fileUtils","../fs"],function(e,t,n){return function(r,i){var s=0,o=[],u=function(e){e&&o.push(e),--s==0&&i(r,o.length&&o)},a=function(i,o,a){t.ensureDirectoryByFilename(i),s++,n.writeFile(i,e.newlineFilter(o,r,"writeCss"),a||"utf8",u)},f=0;try{a(r.dest,r.text),r.compactDest!=r.dest&&a(r.compactDest,r.compactText);if(f)return i;f=1;var l=e.destDirToExternSet,c,h,p;for(c in l){h=l[c];for(p in h)a(c+"/"+h[p],e.resources[p].text,r.encoding)}}catch(d){return s?(o.push(d),0):d}return i}})},"build/transforms/depsDeclarative":function(){define(["../buildControl","../fs","../fileUtils","dojo/_base/lang","dojo/_base/json"],function(e,t,n,r,i){return function(t){var n=[],r=/\sdata-dojo-(?:type|mids)\s*=\s*["']([^"']+\/[^"']+)["']/gi,s=/<script\s+[^>]*type=["']dojo\/require["'][^>]*>([^<]*)<\/script>/gi,o=function(){var e=[],n=t.text,i;while(i=r.exec(n))i[1].split(/\s*,\s*/).forEach(function(t){e.push(t)});return e},u=function(){var n=[],r=t.text,o;while(o=s.exec(r)){try{var u=i.fromJson("{"+o[1]+"}")}catch(a){e.log("declarativeRequireFailed",["resource",t.src,"error",a])}for(var f in u){var l=u[f];typeof l=="string"?n.push(l):e.log("userWarn",["declarative require has invalid value","resource",t.src,"key",f,"value",l])}}return n};n=n.concat(o()),n=n.concat(u());for(var a in e.amdResources)if(e.amdResources[a].layer){var f=e.amdResources[a].layer.include,l=f.indexOf(t.mid);~l&&(f.splice(l,1),n.forEach(function(e){/^(require|exports|module)$/.test(e)||~f.indexOf(e)||f.push(e)}))}}})},"build/transforms/optimizeCss":function(){define(["../buildControl","../fileUtils","dojo/_base/lang"],function(e,t,n){var r=/\@import\s+(url\()?\s*([^);]+)\s*(\))?([\w, ]*)(;)?/g,i=/\url\(\s*([^\)]+)\s*\)?/g,s=function(e){return e.replace(/\\/g,"/")},o=e.cssImportIgnore?e.cssImportIgnore.split(",").map(function(e){return n.trim(e)}).join(",")+",":"",u=function(e){e=n.trim(e);if(e.charAt(0)=="'"||e.charAt(0)=='"')e=e.substring(1,e.length-1);return e},a=function(t,n){var r=t,i=-1,s;while((i=t.indexOf("/*"))!=-1){s=t.indexOf("*/",i+2);if(s==-1)return e.log("cssOptimizeImproperComment",["CSS file",n]),r;t=t.substring(0,i)+t.substring(s+2,t.length)}return t},f=function(e){var t=e.indexOf(":");return e.charAt(0)!="/"&&(t==-1||t>e.indexOf("/"))},l=function(e,t){var n=e.split("/"),r=t.dest.split("/");n.pop();while(n.length&&r.length&&n[0]==r[0])n.shift(),r.shift();for(var i=0;i<n.length;i++)r.unshift("..");return r.join("/")},c=function(t,n,r){var i=e.resources[n];return i?l(t,i):(e.log("cssOptimizeUnableToResolveURL",r),0)},h=function(p){if(p.optimizedText)return;var d=p.dest,v=p.src,m=t.getFilepath(s(v)),g=p.text;g=g.replace(/^\uFEFF/,""),g=a(g,v),g=g.replace(r,function(r,a,g,y,b){g=s(u(g));var w,E=f(g)?t.compactPath(t.catPath(m,g)):g,S=e.resources[E],x=!1;if(o&&o.indexOf(g+",")!=-1||S&&S.tag.importIgnore)x=!0,e.log("cssOptimizeIgnored",["CSS file",v,"import directive",r]);b&&n.trim(b)!="all"&&(x=!0,e.log("cssOptimizeIgnoredMultiMediaTypes",["CSS file",v,"import directive",r]));if(x)return f(g)&&(w=c(d,E,["CSS file",v,"import directive",r]))?'@import url("'+w+'")'+(b||"")+";":r;if(!S)return e.log("cssOptimizeIgnoredNoResource",["CSS file",v,"import directive",r]),r;h(S);var T=S.optimizedText,N=t.getFilepath(S.dest);return T.replace(i,function(n,r){var i=s(u(r));if(f(i)){var o=t.compactPath(t.catPath(N,i)),a=e.resourcesByDest[o];if(!!a)return'url("'+l(p.dest,a)+'")';e.log("cssOptimizeUnableToResolveURL",["CSS file",v,"import",S.src,"relative URL",n])}return n})}),/keepLines/i.test(e.cssOptimize)?g=g.replace(/(\r\n)+/g,"\r\n").replace(/\n+/g,"\n"):g=g.replace(/[\r\n]/g,"").replace(/\s+/g," ").replace(/\{\s/g,"{").replace(/\s\}/g,"}"),p.optimizedText=g,p.tag.noOptimize||(p.rawText=p.text,p.text=g)};return function(t,n){try{e.cssOptimize&&!t.tag.noOptimize&&(h(t),e.log("cssOptimize",["file",t.src]))}catch(r){e.log("cssOptimizeFailed",["file",t.src,"error",r])}}})},"build/node/fs":function(){define(["../fileHandleThrottle"],function(e){var t=require.nodeRequire("fs");return{statSync:t.statSync,mkdirSync:t.mkdirSync,readFileSync:t.readFileSync,writeFileSync:t.writeFileSync,readdirSync:t.readdirSync,readFile:function(n,r,i){e.enqueue(function(){t.readFile(n,r,function(t){e.release(),i.apply(null,arguments)})})},writeFile:function(n,r,i,s){e.enqueue(function(){t.writeFile(n,r,i,function(t){e.release(),s.apply(null,arguments)})})}}})},"build/node/process":function(){define(["../fileHandleThrottle","../messages"],function(e,t){var n=Number(process.version.match(/\d+\.\d+/)[0]),r=require.nodeRequire("child_process").spawn;return{cwd:process.cwd,exit:function(e){t.stop(),process.exit(e)},exec:function(){for(var t=arguments[0],i=[],s=1;s<arguments.length-3;s++)i.push(arguments[s]);var o=arguments[s++],u=arguments[s++],a=arguments[s];e.enqueue(function(){var s="",f=r(t,i),l=0,c=function(t){++l===2&&(e.release(),t&&u.log("execFailed",["message",o,"output",s]),a&&a(t,s))};f.on("exit",c),n>=.8?f.on("close",c):++l,f.stdout.on("data",function(e){s+=e}),f.stderr.on("data",function(e){s+=e})})}}})}}}),function(){var e=this.require;e({cache:{}}),!e.async&&e(["dojo"]),e.boot&&e.apply(null,e.boot)}()
\ No newline at end of file +(function(e,t){var n=function(){},r=function(e){for(var t in e)return 0;return 1},i={}.toString,s=function(e){return i.call(e)=="[object Function]"},o=function(e){return i.call(e)=="[object String]"},u=function(e){return i.call(e)=="[object Array]"},a=function(e,t){if(e)for(var n=0;n<e.length;)t(e[n++])},f=function(e,t){for(var n in t)e[n]=t[n];return e},l=function(e,t){return f(new Error(e),{src:"dojoLoader",info:t})},c=1,h=function(){return"_"+c++},p=function(e,t,n){return St(e,t,n,0,p)},d=this,v=d.document,m=v&&v.createElement("DiV"),g=p.has=function(e){return s(y[e])?y[e]=y[e](d,v,m):y[e]},y=g.cache=t.hasCache;g.add=function(e,t,n,r){return(y[e]===undefined||r)&&(y[e]=t),n&&g(e)},0,1;for(var b=e.baseUrl||".",w,E=this.arguments,S=0;S<E.length;){w=(E[S++]+"").split("=");if(w[0]=="baseUrl"){b=w[1];break}}load(b+"/_base/configRhino.js"),rhinoDojoConfig(t,b,E);for(var x in e.has)g.add(x,e.has[x],0,1);var T=1,N=2,C=3,k=4,L=5;T="requested",N="arrived",C="not-a-module",k="executing",L="executed";var A=0,O="sync",M="xd",_=[],D=0,P=n,H=n,B;p.isXdUrl=n,p.initSyncLoader=function(e,t,n){return D||(D=e,P=t,H=n),{sync:O,requested:T,arrived:N,nonmodule:C,executing:k,executed:L,syncExecStack:_,modules:Z,execQ:Tt,getModule:jt,injectModule:fn,setArrived:Lt,signal:X,finishExec:Qt,execModule:Yt,dojoRequirePlugin:D,getLegacyMode:function(){return A},guardCheckComplete:en}};var U=new Function("return eval(arguments[0]);");p.eval=function(e,t){return U(e+"\r\n////@ sourceURL="+t)};var z={},W="error",X=p.signal=function(e,t){var n=z[e];a(n&&n.slice(0),function(e){e.apply(null,u(t)?t:[t])})},V=p.on=function(e,t){var n=z[e]||(z[e]=[]);return n.push(t),{remove:function(){for(var e=0;e<n.length;e++)if(n[e]===t){n.splice(e,1);return}}}},$=[],J={},K=[],Q={},G=p.map={},Y=[],Z={},et="",tt={},nt="url:",rt={},it={},st=function(e){var t,n,r,i,s;for(t in rt)n=rt[t],r=t.match(/^url\:(.+)/),r?tt[nt+It(r[1],e)]=n:t=="*now"?i=n:t!="*noref"&&(s=Pt(t,e),tt[s.mid]=tt[nt+s.url]=n);i&&i(xt(e)),rt={}},ot=function(e){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(e){return"\\"+e})},ut=function(e,t){t.splice(0,t.length);for(var n in e)t.push([n,e[n],new RegExp("^"+ot(n)+"(/|$)"),n.length]);return t.sort(function(e,t){return t[3]-e[3]}),t},at=function(e){var t=e.name;t||(t=e,e={name:t}),e=f({main:"main"},e),e.location=e.location?e.location:t,e.packageMap&&(G[t]=e.packageMap),e.main.indexOf("./")||(e.main=e.main.substring(2)),Q[t]=e},ft=[],lt=function(e,t,n){for(var r in e){r=="waitSeconds"&&(p.waitms=(e[r]||0)*1e3),r=="cacheBust"&&(et=e[r]?o(e[r])?e[r]:(new Date).getTime()+"":"");if(r=="baseUrl"||r=="combo")p[r]=e[r];if(r=="async"){var i=e[r];p.legacyMode=A=o(i)&&/sync|legacyAsync/.test(i)?i:i?!1:O,p.async=!A}e[r]!==y&&(p.rawConfig[r]=e[r],r!="has"&&g.add("config-"+r,e[r],0,t))}p.baseUrl||(p.baseUrl="./"),/\/$/.test(p.baseUrl)||(p.baseUrl+="/");for(r in e.has)g.add(r,e.has[r],0,t);a(e.packages,at);for(b in e.packagePaths)a(e.packagePaths[b],function(e){var t=b+"/"+e;o(e)&&(e={name:e}),e.location=t,at(e)});ut(f(G,e.map),Y),a(Y,function(e){e[1]=ut(e[1],[]),e[0]=="*"&&(Y.star=e)}),ut(f(J,e.paths),K),a(e.aliases,function(e){o(e[0])&&(e[0]=new RegExp("^"+ot(e[0])+"$")),$.push(e)});if(t)ft.push({config:e.config});else for(r in e.config){var s=jt(r,n);s.config=f(s.config||{},e.config[r])}e.cache&&(st(),rt=e.cache,e.cache["*noref"]&&st()),X("config",[e,p.rawConfig])};if(g("dojo-cdn")||0){var ct=v.getElementsByTagName("script"),S=0,ht,pt,dt,vt;while(S<ct.length){ht=ct[S++];if((dt=ht.getAttribute("src"))&&(vt=dt.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))){pt=vt[3]||"",t.baseUrl=t.baseUrl||pt,dt=ht.getAttribute("data-dojo-config")||ht.getAttribute("djConfig"),dt&&(it=p.eval("({ "+dt+" })","data-dojo-config"));break}}}p.rawConfig={},lt(t,1),g("dojo-cdn")&&(Q.dojo.location=pt,pt&&(pt+="/"),Q.dijit.location=pt+"../dijit/",Q.dojox.location=pt+"../dojox/"),lt(e,1),lt(it,1);var Et=function(e){en(function(){a(e.deps,fn)})},St=function(e,t,r,i,s){var a,c;if(o(e)){a=jt(e,i,!0);if(a&&a.executed)return a.result;throw l("undefinedModule",e)}u(e)||(lt(e,0,i),e=t,t=r);if(u(e))if(!e.length)t&&t();else{c="require*"+h();for(var d,v=[],m=0;m<e.length;)d=e[m++],v.push(jt(d,i));a=f(_t("",c,0,""),{injected:N,deps:v,def:t||n,require:i?i.require:p,gc:1}),Z[a.mid]=a,Et(a);var g=Zt&&A!=O;en(function(){Yt(a,g)}),a.executed||Tt.push(a),tn()}return s},xt=function(e){if(!e)return p;var t=e.require;return t||(t=function(n,r,i){return St(n,r,i,e,t)},e.require=f(t,p),t.module=e,t.toUrl=function(t){return It(t,e)},t.toAbsMid=function(t){return Ft(t,e)},t.syncLoadNls=function(t){var n=Pt(t,e),r=Z[n.mid];if(!r||!r.executed)sn=tt[n.mid]||tt[nt+n.url],sn&&(an(sn),r=Z[n.mid]);return r&&r.executed&&r.result}),t},Tt=[],Nt=[],Ct={},kt=function(e){e.injected=T,Ct[e.mid]=1,e.url&&(Ct[e.url]=e.pack||1),dn()},Lt=function(e){e.injected=N,delete Ct[e.mid],e.url&&delete Ct[e.url],r(Ct)&&(pn(),A==M&&(A=O))},At=p.idle=function(){return!Nt.length&&r(Ct)&&!Tt.length&&!Zt},Ot=function(e,t){if(t)for(var n=0;n<t.length;n++)if(t[n][2].test(e))return t[n];return 0},Mt=function(e){var t=[],n,r;e=e.replace(/\\/g,"/").split("/");while(e.length)n=e.shift(),n==".."&&t.length&&r!=".."?(t.pop(),r=t[t.length-1]):n!="."&&t.push(r=n);return t.join("/")},_t=function(e,t,n,r){var i=p.isXdUrl(r);return{pid:e,mid:t,pack:n,url:r,executed:0,def:0,isXd:i,isAmd:!!(i||Q[e]&&Q[e].isAmd)}},Dt=function(e,t,n,r,i,o,u,f){var c,h,p,d,v,m,y,b,w;w=e,b=/^\./.test(e);if(/(^\/)|(\:)|(\.js$)/.test(e)||b&&!t)return _t(0,e,0,e);e=Mt(b?t.mid+"/../"+e:e);if(/^\./.test(e))throw l("irrationalPath",e);t&&(v=Ot(t.mid,o)),v=v||o.star,v=v&&Ot(e,v[1]),v&&(e=v[1]+e.substring(v[3])),vt=e.match(/^([^\/]+)(\/(.+))?$/),c=vt?vt[1]:"",(h=n[c])?e=c+"/"+(p=vt[3]||h.main):c="";var E=0,S=0;return a($,function(t){var n=e.match(t[0]);n&&n.length>E&&(S=s(t[1])?e.replace(t[0],t[1]):t[1])}),S?Dt(S,0,n,r,i,o,u,f):(y=r[e],y?f?_t(y.pid,y.mid,y.pack,y.url):r[e]:(v=Ot(e,u),v?m=v[1]+e.substring(v[3]):c?m=h.location+"/"+p:g("config-tlmSiblingOfDojo")?m="../"+e:m=e,/(^\/)|(\:)/.test(m)||(m=i+m),m+=".js",_t(c,e,h,Mt(m))))},Pt=function(e,t){return Dt(e,t,Q,Z,p.baseUrl,Y,K)},Ht=function(e,t,n){return e.normalize?e.normalize(t,function(e){return Ft(e,n)}):Ft(t,n)},Bt=0,jt=function(e,t,n){var r,i,s,o;return r=e.match(/^(.+?)\!(.*)$/),r?(i=jt(r[1],t,n),A==O&&!i.executed&&(fn(i),i.injected===N&&!i.executed&&en(function(){Yt(i)}),i.executed?Jt(i):Tt.unshift(i)),i.executed===L&&!i.load&&Jt(i),i.load?(s=Ht(i,r[2],t),e=i.mid+"!"+(i.dynamic?++Bt+"!":"")+s):(s=r[2],e=i.mid+"!"+ ++Bt+"!waitingForPlugin"),o={plugin:i,mid:e,req:xt(t),prid:s}):o=Pt(e,t),Z[o.mid]||!n&&(Z[o.mid]=o)},Ft=p.toAbsMid=function(e,t){return Pt(e,t).mid},It=p.toUrl=function(e,t){var n=Pt(e+"/x",t),r=n.url;return nn(n.pid===0?e:r.substring(0,r.length-5))},qt={injected:N,executed:L,def:C,result:C},Rt=function(e){return Z[e]=f({mid:e},qt)},Ut=Rt("require"),zt=Rt("exports"),Wt=Rt("module"),Xt=function(e,t){p.trace("loader-run-factory",[e.mid]);var n=e.def,r;_.unshift(e);if(g("config-dojo-loader-catches"))try{r=s(n)?n.apply(null,t):n}catch(i){X(W,e.result=l("factoryThrew",[e,i]))}else r=s(n)?n.apply(null,t):n;e.result=r===undefined&&e.cjs?e.cjs.exports:r,_.shift(e)},Vt={},$t=0,Jt=function(e){var t=e.result;return e.dynamic=t.dynamic,e.normalize=t.normalize,e.load=t.load,e},Kt=function(e){var t={};a(e.loadQ,function(n){var r=Ht(e,n.prid,n.req.module),i=e.dynamic?n.mid.replace(/waitingForPlugin$/,r):e.mid+"!"+r,s=f(f({},n),{mid:i,prid:r,injected:0});Z[i]||rn(Z[i]=s),t[n.mid]=Z[i],Lt(n),delete Z[n.mid]}),e.loadQ=0;var n=function(e){for(var n,r=e.deps||[],i=0;i<r.length;i++)n=t[r[i].mid],n&&(r[i]=n)};for(var r in Z)n(Z[r]);a(Tt,n)},Qt=function(e){p.trace("loader-finish-exec",[e.mid]),e.executed=L,e.defOrder=$t++,a(e.provides,function(e){e()}),e.loadQ&&(Jt(e),Kt(e));for(S=0;S<Tt.length;)Tt[S]===e?Tt.splice(S,1):S++;/^require\*/.test(e.mid)&&delete Z[e.mid]},Gt=[],Yt=function(e,t){if(e.executed===k)return p.trace("loader-circular-dependency",[Gt.concat(e.mid).join("->")]),!e.def||t?Vt:e.cjs&&e.cjs.exports;if(!e.executed){if(!e.def)return Vt;var n=e.mid,r=e.deps||[],i,s,o=[],u=0;Gt.push(n),p.trace("loader-exec-module",["exec",Gt.length,n]),e.executed=k;while(u<r.length){i=r[u++],s=i===Ut?xt(e):i===zt?e.cjs.exports:i===Wt?e.cjs:Yt(i,t);if(s===Vt)return e.executed=0,p.trace("loader-exec-module",["abort",n]),Gt.pop(),Vt;o.push(s)}Xt(e,o),Qt(e),Gt.pop()}return e.result},Zt=0,en=function(e){try{Zt++,e()}finally{Zt--}At()&&X("idle",[])},tn=function(){if(Zt)return;en(function(){P();for(var e,t,n=0;n<Tt.length;)e=$t,t=Tt[n],Yt(t),e!=$t?(P(),n=0):n++})};g("dojo-loader-eval-hint-url")===undefined&&g.add("dojo-loader-eval-hint-url",1);var nn=function(e){return e+="",e+(et?(/\?/.test(e)?"&":"?")+et:"")},rn=function(e){var t=e.plugin;t.executed===L&&!t.load&&Jt(t);var n=function(t){e.result=t,Lt(e),Qt(e),tn()};t.load?t.load(e.prid,e.req,n):t.loadQ?t.loadQ.push(e):(t.loadQ=[e],Tt.unshift(t),fn(t))},sn=0,on=0,un=0,an=function(e,t){g("config-stripStrict")&&(e=e.replace(/"use strict"/g,"")),un=1;if(g("config-dojo-loader-catches"))try{e===sn?sn.call(null):p.eval(e,g("dojo-loader-eval-hint-url")?t.url:t.mid)}catch(n){X(W,l("evalModuleThrew",t))}else e===sn?sn.call(null):p.eval(e,g("dojo-loader-eval-hint-url")?t.url:t.mid);un=0},fn=function(e){var t=e.mid,n=e.url;if(e.executed||e.injected||Ct[t]||e.url&&(e.pack&&Ct[e.url]===e.pack||Ct[e.url]==1))return;kt(e);if(e.plugin){rn(e);return}var i=function(){cn(e),e.injected!==N&&(Lt(e),f(e,qt),p.trace("loader-define-nonmodule",[e.url])),A?!_.length&&tn():tn()};sn=tt[t]||tt[nt+e.url];if(sn){p.trace("loader-inject",["cache",e.mid,n]),an(sn,e),i();return}if(A)if(e.isXd)A==O&&(A=M);else if(!e.isAmd||A==O){var s=function(r){if(A==O){_.unshift(e),an(r,e),_.shift(),cn(e),e.cjs||(Lt(e),Qt(e));if(e.finish){var s=t+"*finish",o=e.finish;delete e.finish,wn(s,["dojo",("dojo/require!"+o.join(",")).replace(/\./g,"/")],function(e){a(o,function(t){e.require(t)})}),Tt.unshift(jt(s))}i()}else r=H(e,r),r?(an(r,e),i()):(on=e,p.injectUrl(nn(n),i,e),on=0)};p.trace("loader-inject",["xhr",e.mid,n,A!=O]);if(g("config-dojo-loader-catches"))try{p.getText(n,A!=O,s)}catch(o){X(W,l("xhrInjectFailed",[e,o]))}else p.getText(n,A!=O,s);return}p.trace("loader-inject",["script",e.mid,n]),on=e,p.injectUrl(nn(n),i,e),on=0},ln=function(e,t,n){p.trace("loader-define-module",[e.mid,t]);var r=e.mid;if(e.injected===N)return X(W,l("multipleDefine",e)),e;f(e,{deps:t,def:n,cjs:{id:e.mid,uri:e.url,exports:e.result={},setExports:function(t){e.cjs.exports=t},config:function(){return e.config}}});for(var i=0;i<t.length;i++)t[i]=jt(t[i],e);return A&&!Ct[r]&&(Et(e),Tt.push(e),tn()),Lt(e),!s(n)&&!t.length&&(e.result=n,Qt(e)),e},cn=function(e,t){var n=[],r,i;while(Nt.length)i=Nt.shift(),t&&(i[0]=t.shift()),r=i[0]&&jt(i[0])||e,n.push([r,i[1],i[2]]);st(e),a(n,function(e){Et(ln.apply(null,e))})},hn=0,pn=n,dn=n;p.log=function(){try{for(var e=0;e<arguments.length;e++)console.log(arguments[e])}catch(t){}};var bn=p.trace=function(e,t){if(bn.on&&bn.group[e]){X("trace",[e,t]);for(var n,r=[],i="trace:"+e+(t.length?":"+t[0]:""),s=1;s<t.length;)n=t[s++],o(n)?i+=", "+n:r.push(n);p.log(i),r.length&&r.push("."),p.log.apply(p,r)}};f(bn,{on:1,group:{},set:function(e,t){o(e)?bn.group[e]=t:f(bn.group,e)}}),bn.set(f(f(f({},t.trace),e.trace),it.trace)),V("config",function(e){e.trace&&bn.set(e.trace)});var wn=function(e,t,n){var r=arguments.length,i=["require","exports","module"],a=[0,e,t];r==1?a=[0,s(e)?i:[],e]:r==2&&o(e)?a=[e,s(t)?i:[],t]:r==3&&(a=[e,t,n]),p.trace("loader-define",a.slice(0,2));var f=a[0]&&jt(a[0]),c;if(f&&!Ct[f.mid])Et(ln(f,a[1],a[2]));else if(!g("ie-event-behavior")||!0||un)Nt.push(a);else{f=f||on;if(!f)for(e in Ct){c=Z[e];if(c&&c.node&&c.node.readyState==="interactive"){f=c;break}}f?(st(f),Et(ln(f,a[1],a[2]))):X(W,l("ieDefineFailed",a[0])),tn()}};wn.amd={vendor:"dojotoolkit.org"},f(f(p,t.loaderPatch),e.loaderPatch),V(W,function(e){try{console.error(e);if(e instanceof Error){for(var t in e)console.log(t+":",e[t]);console.log(".")}}catch(n){}}),f(p,{uid:h,cache:tt,packs:Q}),f(p,{paths:J,aliases:$,modules:Z,legacyMode:A,execQ:Tt,defQ:Nt,waiting:Ct,packs:Q,mapProgs:Y,pathsMapProg:K,listenerQueues:z,computeMapProg:ut,runMapProg:Ot,compactPath:Mt,getModuleInfo:Dt});if(d.define){X(W,l("defineAlreadyDefined",0));return}d.define=wn,d.require=p,a(ft,function(e){lt(e)});var xn=it.deps||e.deps||t.deps,Tn=it.callback||e.callback||t.callback;p.boot=xn||Tn?[xn||[],Tn]:0})(this.dojoConfig||this.djConfig||this.require||{},{async:0,hasCache:{"config-selectorEngine":"lite","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:".",name:"dojo"},{location:"../build",name:"build"}]}),require({cache:{"dojo/main":function(){define("dojo/main",["./_base/kernel","./has","require","./sniff","./_base/lang","./_base/array","./_base/config","./ready","./_base/declare","./_base/connect","./_base/Deferred","./_base/json","./_base/Color","./has!dojo-firebug?./_firebug/firebug","require","./_base/loader"],function(e,t,n,r,i,s,o,u){o.isDebug&&n(["./_firebug/firebug"]),1;var a=o.require;return a&&(a=s.map(i.isArray(a)?a:[a],function(e){return e.replace(/\./g,"/")}),e.isAsync?n(a):u(1,function(){n(a)})),e})},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(e,t,n,r){var i,s,o={},u={},a={config:t,global:this,dijit:o,dojox:u},f={dojo:["dojo",a],dijit:["dijit",o],dojox:["dojox",u]},l=n.map&&n.map[r.id.match(/[^\/]+/)[0]],c;for(s in l)f[s]?f[s][0]=l[s]:f[s]=[l[s],{}];for(s in f)c=f[s],c[1]._scopeName=c[0],t.noGlobals||(this[c[0]]=c[1]);a.scopeMap=f,a.baseUrl=a.config.baseUrl=n.baseUrl,a.isAsync=n.async,a.locale=t.locale;var h="$Rev: 30226 $".match(/\d+/);a.version={major:1,minor:8,patch:3,flag:"",revision:h?+h[0]:NaN,toString:function(){var e=a.version;return e.major+"."+e.minor+"."+e.patch+e.flag+" ("+e.revision+")"}},1,Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(a),a.exit=function(e){quit(e)},1,typeof console!="undefined"||(console={});var p=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"],d;i=0;while(d=p[i++])console[d]||function(){var e=d+"";console[e]="log"in console?function(){var t=Array.apply({},arguments);t.unshift(e+":"),console.log(t.join(" "))}:function(){},console[e]._fake=!0}();e.add("dojo-debug-messages",!!t.isDebug),a.deprecated=a.experimental=function(){},e("dojo-debug-messages")&&(a.deprecated=function(e,t,n){var r="DEPRECATED: "+e;t&&(r+=" "+t),n&&(r+=" -- will be removed in version: "+n),console.warn(r)},a.experimental=function(e,t){var n="EXPERIMENTAL: "+e+" -- APIs subject to change without notice.";t&&(n+=" "+t),console.warn(n)}),1;if(t.modulePaths){a.deprecated("dojo.modulePaths","use paths configuration");var v={};for(s in t.modulePaths)v[s.replace(/\./g,"/")]=t.modulePaths[s];n({paths:v})}return 1,a.moduleUrl=function(e,t){a.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var r=null;return e&&(r=n.toUrl(e.replace(/\./g,"/")+(t?"/"+t:"")+"/*.*").replace(/\/\*\.\*/,"")+(t?"":"/")),r},a._hasResource={},a})},"dojo/has":function(){define("dojo/has",["require","module"],function(e,t){var n=e.has||function(){};return n.clearElement=function(e){return e.innerHTML="",e},n.normalize=function(e,t){var r=e.match(/[\?:]|[^:\?]*/g),i=0,s=function(e){var t=r[i++];return t==":"?0:r[i++]=="?"?!e&&n(t)?s():(s(!0),s(e)):t||0};return e=s(),e&&t(e)},n.load=function(e,t,n){e?t([e],n):n()},n})},"dojo/_base/config":function(){define(["../has","require"],function(e,t){var n={},r=t.rawConfig,i;for(i in r)n[i]=r[i];return n})},"dojo/sniff":function(){define("dojo/sniff",["./has"],function(e){return e})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(e,t){t.add("bug-for-in-skips-shadowed",function(){for(var e in{toString:1})return 0;return 1});var n=t("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],r=n.length,i=function(t,n,r){var i,s=0,o=e.global;if(!r){if(!t.length)return o;i=t[s++];try{r=e.scopeMap[i]&&e.scopeMap[i][1]}catch(u){}r=r||(i in o?o[i]:n?o[i]={}:undefined)}while(r&&(i=t[s++]))r=i in r?r[i]:n?r[i]={}:undefined;return r},s=Object.prototype.toString,o=function(e,t,n){return(n||[]).concat(Array.prototype.slice.call(e,t||0))},u=/\{([^\}]+)\}/g,a={_extraNames:n,_mixin:function(e,i,s){var o,u,a,f={};for(o in i){u=i[o];if(!(o in e)||e[o]!==u&&(!(o in f)||f[o]!==u))e[o]=s?s(u):u}if(t("bug-for-in-skips-shadowed")&&i)for(a=0;a<r;++a){o=n[a],u=i[o];if(!(o in e)||e[o]!==u&&(!(o in f)||f[o]!==u))e[o]=s?s(u):u}return e},mixin:function(e,t){e||(e={});for(var n=1,r=arguments.length;n<r;n++)a._mixin(e,arguments[n]);return e},setObject:function(e,t,n){var r=e.split("."),s=r.pop(),o=i(r,!0,n);return o&&s?o[s]=t:undefined},getObject:function(e,t,n){return i(e.split("."),t,n)},exists:function(e,t){return a.getObject(e,!1,t)!==undefined},isString:function(e){return typeof e=="string"||e instanceof String},isArray:function(e){return e&&(e instanceof Array||typeof e=="array")},isFunction:function(e){return s.call(e)==="[object Function]"},isObject:function(e){return e!==undefined&&(e===null||typeof e=="object"||a.isArray(e)||a.isFunction(e))},isArrayLike:function(e){return e&&e!==undefined&&!a.isString(e)&&!a.isFunction(e)&&(!e.tagName||e.tagName.toLowerCase()!="form")&&(a.isArray(e)||isFinite(e.length))},isAlien:function(e){return e&&!a.isFunction(e)&&/\{\s*\[native code\]\s*\}/.test(String(e))},extend:function(e,t){for(var n=1,r=arguments.length;n<r;n++)a._mixin(e.prototype,arguments[n]);return e},_hitchArgs:function(t,n){var r=a._toArray(arguments,2),i=a.isString(n);return function(){var s=a._toArray(arguments),o=i?(t||e.global)[n]:n;return o&&o.apply(t||this,r.concat(s))}},hitch:function(t,n){if(arguments.length>2)return a._hitchArgs.apply(e,arguments);n||(n=t,t=null);if(a.isString(n)){t=t||e.global;if(!t[n])throw['lang.hitch: scope["',n,'"] is null (scope="',t,'")'].join("");return function(){return t[n].apply(t,arguments||[])}}return t?function(){return n.apply(t,arguments||[])}:n},delegate:function(){function e(){}return function(t,n){e.prototype=t;var r=new e;return e.prototype=null,n&&a._mixin(r,n),r}}(),_toArray:t("ie")?function(){function e(e,t,n){var r=n||[];for(var i=t||0;i<e.length;i++)r.push(e[i]);return r}return function(t){return(t.item?e:o).apply(this,arguments)}}():o,partial:function(t){var n=[null];return a.hitch.apply(e,n.concat(a._toArray(arguments)))},clone:function(e){if(!e||typeof e!="object"||a.isFunction(e))return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);var t,n,r;if(a.isArray(e)){t=[];for(n=0,r=e.length;n<r;++n)n in e&&t.push(a.clone(e[n]))}else t=e.constructor?new e.constructor:{};return a._mixin(t,e,a.clone)},trim:String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(e,t,n){return e.replace(n||u,a.isFunction(t)?t:function(e,n){return a.getObject(n,!1,t)})}};return a.mixin(e,a),a})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(e,t,n){function s(e){return r[e]=new Function("item","index","array",e)}function o(e){var t=!e;return function(n,i,o){var u=0,a=n&&n.length||0,f;a&&typeof n=="string"&&(n=n.split("")),typeof i=="string"&&(i=r[i]||s(i));if(o)for(;u<a;++u){f=!i.call(o,n[u],u,n);if(e^f)return!f}else for(;u<a;++u){f=!i(n[u],u,n);if(e^f)return!f}return t}}function u(e){var t=1,n=0,r=0;return e||(t=n=r=-1),function(s,o,u,f){if(f&&t>0)return a.lastIndexOf(s,o,u);var l=s&&s.length||0,c=e?l+r:n,h;u===i?h=e?n:l+r:u<0?(h=l+u,h<0&&(h=n)):h=u>=l?l+r:u,l&&typeof s=="string"&&(s=s.split(""));for(;h!=c;h+=t)if(s[h]==o)return h;return-1}}var r={},i,a={every:o(!1),some:o(!0),indexOf:u(!0),lastIndexOf:u(!1),forEach:function(e,t,n){var i=0,o=e&&e.length||0;o&&typeof e=="string"&&(e=e.split("")),typeof t=="string"&&(t=r[t]||s(t));if(n)for(;i<o;++i)t.call(n,e[i],i,e);else for(;i<o;++i)t(e[i],i,e)},map:function(e,t,n,i){var o=0,u=e&&e.length||0,a=new(i||Array)(u);u&&typeof e=="string"&&(e=e.split("")),typeof t=="string"&&(t=r[t]||s(t));if(n)for(;o<u;++o)a[o]=t.call(n,e[o],o,e);else for(;o<u;++o)a[o]=t(e[o],o,e);return a},filter:function(e,t,n){var i=0,o=e&&e.length||0,u=[],a;o&&typeof e=="string"&&(e=e.split("")),typeof t=="string"&&(t=r[t]||s(t));if(n)for(;i<o;++i)a=e[i],t.call(n,a,i,e)&&u.push(a);else for(;i<o;++i)a=e[i],t(a,i,e)&&u.push(a);return u},clearCache:function(){r={}}};return n.mixin(e,a),a})},"dojo/ready":function(){define("dojo/ready",["./_base/kernel","./has","require","require","./_base/lang"],function(e,t,n,r,i){var s=0,o,u=[],a=0,f=function(){s=1,e._postLoad=e.config.afterOnLoad=!0,u.length&&o(l)},l=function(){if(s&&!a&&u.length){a=1;var e=u.shift();try{e()}finally{a=0}a=0,u.length&&o(l)}};n.on("idle",l),o=function(){n.idle()&&l()};var c=e.ready=e.addOnLoad=function(t,n,r){var s=i._toArray(arguments);typeof t!="number"?(r=n,n=t,t=1e3):s.shift(),r=r?i.hitch.apply(e,s):function(){n()},r.priority=t;for(var a=0;a<u.length&&t>=u[a].priority;a++);u.splice(a,0,r),o()};1;var h=e.config.addOnLoad;return h&&c[i.isArray(h)?"apply":"call"](e,h),e.config.parseOnLoad&&!e.isAsync&&c(99,function(){e.parser||(e.deprecated("Add explicit require(['dojo/parser']);","","2.0"),n(["dojo/parser"]))}),f(),c})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(e,t,n){function f(e,t){throw new Error("declare"+(t?" "+t:"")+": "+e)}function l(e,t){var n=[],r=[{cls:0,refs:[]}],i={},o=1,a=e.length,l=0,c,h,p,d,v,m,g,y;for(;l<a;++l){p=e[l],p?s.call(p)!="[object Function]"&&f("mixin #"+l+" is not a callable constructor.",t):f("mixin #"+l+" is unknown. Did you use dojo.require to pull it in?",t),h=p._meta?p._meta.bases:[p],d=0;for(c=h.length-1;c>=0;--c)v=h[c].prototype,v.hasOwnProperty("declaredClass")||(v.declaredClass="uniqName_"+u++),g=v.declaredClass,i.hasOwnProperty(g)||(i[g]={count:0,refs:[],cls:h[c]},++o),m=i[g],d&&d!==m&&(m.refs.push(d),++d.count),d=m;++d.count,r[0].refs.push(d)}while(r.length){d=r.pop(),n.push(d.cls),--o;while(y=d.refs,y.length==1){d=y[0];if(!d||--d.count){d=0;break}n.push(d.cls),--o}if(d)for(l=0,a=y.length;l<a;++l)d=y[l],--d.count||r.push(d)}return o&&f("can't build consistent linearization",t),p=e[0],n[0]=p?p._meta&&p===n[n.length-p._meta.bases.length]?p._meta.bases.length:1:0,n}function c(e,t,n){var r,s,o,u,l,c,h,p,d,v=this._inherited=this._inherited||{};typeof e=="string"&&(r=e,e=t,t=n),n=0,u=e.callee,r=r||u.nom,r||f("can't deduce a name to call inherited()",this.declaredClass),l=this.constructor._meta,o=l.bases,d=v.p;if(r!=a){if(v.c!==u){d=0,c=o[0],l=c._meta;if(l.hidden[r]!==u){s=l.chains,s&&typeof s[r]=="string"&&f("calling chained method with inherited: "+r,this.declaredClass);do{l=c._meta,h=c.prototype;if(l&&(h[r]===u&&h.hasOwnProperty(r)||l.hidden[r]===u))break}while(c=o[++d]);d=c?d:-1}}c=o[++d];if(c){h=c.prototype;if(c._meta&&h.hasOwnProperty(r))n=h[r];else{p=i[r];do{h=c.prototype,n=h[r];if(n&&(c._meta?h.hasOwnProperty(r):n!==p))break}while(c=o[++d])}}n=c&&n||i[r]}else{if(v.c!==u){d=0,l=o[0]._meta;if(l&&l.ctor!==u){s=l.chains,(!s||s.constructor!=="manual")&&f("calling chained constructor with inherited",this.declaredClass);while(c=o[++d]){l=c._meta;if(l&&l.ctor===u)break}d=c?d:-1}}while(c=o[++d]){l=c._meta,n=l?l.ctor:c;if(n)break}n=c&&n}v.c=n,v.p=d;if(n)return t===!0?n:n.apply(this,t||e)}function h(e,t){return typeof e=="string"?this.__inherited(e,t,!0):this.__inherited(e,!0)}function p(e,t,n){var r=this.getInherited(e,t);if(r)return r.apply(this,n||t||e)}function v(e){var t=this.constructor._meta.bases;for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return this instanceof e}function m(e,r){for(var i in r)i!=a&&r.hasOwnProperty(i)&&(e[i]=r[i]);if(t("bug-for-in-skips-shadowed"))for(var s=n._extraNames,o=s.length;o;)i=s[--o],i!=a&&r.hasOwnProperty(i)&&(e[i]=r[i])}function g(e,r){var o,u;for(o in r)u=r[o],(u!==i[o]||!(o in i))&&o!=a&&(s.call(u)=="[object Function]"&&(u.nom=o),e[o]=u);if(t("bug-for-in-skips-shadowed"))for(var f=n._extraNames,l=f.length;l;)o=f[--l],u=r[o],(u!==i[o]||!(o in i))&&o!=a&&(s.call(u)=="[object Function]"&&(u.nom=o),e[o]=u);return e}function y(e){return C.safeMixin(this.prototype,e),this}function b(e){return C([this].concat(e))}function w(e,t){return function(){var n=arguments,r=n,i=n[0],s,o,u,a=e.length,f;if(!(this instanceof n.callee))return N(n);if(t&&(i&&i.preamble||this.preamble)){f=new Array(e.length),f[0]=n;for(o=0;;){i=n[0],i&&(s=i.preamble,s&&(n=s.apply(this,n)||n)),s=e[o].prototype,s=s.hasOwnProperty("preamble")&&s.preamble,s&&(n=s.apply(this,n)||n);if(++o==a)break;f[o]=n}}for(o=a-1;o>=0;--o)s=e[o],u=s._meta,s=u?u.ctor:s,s&&s.apply(this,f?f[o]:n);s=this.postscript,s&&s.apply(this,r)}}function E(e,t){return function(){var n=arguments,r=n,i=n[0],s;if(!(this instanceof n.callee))return N(n);t&&(i&&(s=i.preamble,s&&(r=s.apply(this,r)||r)),s=this.preamble,s&&s.apply(this,r)),e&&e.apply(this,n),s=this.postscript,s&&s.apply(this,n)}}function S(e){return function(){var t=arguments,n=0,r,i;if(!(this instanceof t.callee))return N(t);for(;r=e[n];++n){i=r._meta,r=i?i.ctor:r;if(r){r.apply(this,t);break}}r=this.postscript,r&&r.apply(this,t)}}function x(e,t,n){return function(){var r,i,s,o=0,u=1;n&&(o=t.length-1,u=-1);for(;r=t[o];o+=u)i=r._meta,s=(i?i.hidden:r.prototype)[e],s&&s.apply(this,arguments)}}function T(e){o.prototype=e.prototype;var t=new o;return o.prototype=null,t}function N(e){var t=e.callee,n=T(t);return t.apply(n,e),n}function C(e,t,o){typeof e!="string"&&(o=t,t=e,e=""),o=o||{};var u,p,g,N,k,L,A,O=1,M=t;s.call(t)=="[object Array]"?(L=l(t,e),g=L[0],O=L.length-g,t=L[O]):(L=[0],t?s.call(t)=="[object Function]"?(g=t._meta,L=L.concat(g?g.bases:t)):f("base class is not a callable constructor.",e):t!==null&&f("unknown base class. Did you use dojo.require to pull it in?",e));if(t)for(p=O-1;;--p){u=T(t);if(!p)break;g=L[p],(g._meta?m:r)(u,g.prototype),N=new Function,N.superclass=t,N.prototype=u,t=u.constructor=N}else u={};C.safeMixin(u,o),g=o.constructor,g!==i.constructor&&(g.nom=a,u.constructor=g);for(p=O-1;p;--p)g=L[p]._meta,g&&g.chains&&(A=r(A||{},g.chains));u["-chains-"]&&(A=r(A||{},u["-chains-"])),g=!A||!A.hasOwnProperty(a),L[0]=N=A&&A.constructor==="manual"?S(L):L.length==1?E(o.constructor,g):w(L,g),N._meta={bases:L,hidden:o,chains:A,parents:M,ctor:o.constructor},N.superclass=t&&t.prototype,N.extend=y,N.createSubclass=b,N.prototype=u,u.constructor=N,u.getInherited=h,u.isInstanceOf=v,u.inherited=d,u.__inherited=c,e&&(u.declaredClass=e,n.setObject(e,N));if(A)for(k in A)u[k]&&typeof A[k]=="string"&&k!=a&&(g=u[k]=x(k,L,A[k]==="after"),g.nom=k);return N}var r=n.mixin,i=Object.prototype,s=i.toString,o=new Function,u=0,a="constructor",d=e.config.isDebug?p:c;return e.safeMixin=C.safeMixin=g,e.declare=C,C})},"dojo/_base/connect":function(){define(["./kernel","../on","../topic","../aspect","./event","../mouse","./sniff","./lang","../keys"],function(e,t,n,r,i,s,o,u){function a(n,i,o,a,f){a=u.hitch(o,a);if(!n||!n.addEventListener&&!n.attachEvent)return r.after(n||e.global,i,a,!0);typeof i=="string"&&i.substring(0,2)=="on"&&(i=i.substring(2)),n||(n=e.global);if(!f)switch(i){case"keypress":i=p;break;case"mouseenter":i=s.enter;break;case"mouseleave":i=s.leave}return t(n,i,a,f)}function h(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode}o.add("events-keypress-typed",function(){var e={charCode:0};try{e=document.createEvent("KeyboardEvent"),(e.initKeyboardEvent||e.initKeyEvent).call(e,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(t){}return e.charCode==0&&!o("opera")});var f={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,229:113},l=o("mac")?"metaKey":"ctrlKey",c=function(e,t){var n=u.mixin({},e,t);return h(n),n.preventDefault=function(){e.preventDefault()},n.stopPropagation=function(){e.stopPropagation()},n},p;if(o("events-keypress-typed")){var d=function(e,t){try{return e.keyCode=t}catch(e){return 0}};p=function(e,n){var r=t(e,"keydown",function(e){var t=e.keyCode,r=t!=13&&t!=32&&(t!=27||!o("ie"))&&(t<48||t>90)&&(t<96||t>111)&&(t<186||t>192)&&(t<219||t>222)&&t!=229;if(r||e.ctrlKey){var i=r?0:t;if(e.ctrlKey){if(t==3||t==13)return n.call(e.currentTarget,e);i>95&&i<106?i-=48:!e.shiftKey&&i>=65&&i<=90?i+=32:i=f[i]||i}var s=c(e,{type:"keypress",faux:!0,charCode:i});n.call(e.currentTarget,s),o("ie")&&d(e,s.keyCode)}}),i=t(e,"keypress",function(e){var t=e.charCode;return t=t>=32?t:0,e=c(e,{charCode:t,faux:!0}),n.call(this,e)});return{remove:function(){r.remove(),i.remove()}}}}else o("opera")?p=function(e,n){return t(e,"keypress",function(e){var t=e.which;return t==3&&(t=99),t=t<32&&!e.shiftKey?0:t,e.ctrlKey&&!e.shiftKey&&t>=65&&t<=90&&(t+=32),n.call(this,c(e,{charCode:t}))})}:p=function(e,n){return t(e,"keypress",function(e){return h(e),n.call(this,e)})};var v={_keypress:p,connect:function(e,t,n,r,i){var s=arguments,o=[],u=0;o.push(typeof s[0]=="string"?null:s[u++],s[u++]);var f=s[u+1];o.push(typeof f=="string"||typeof f=="function"?s[u++]:null,s[u++]);for(var l=s.length;u<l;u++)o.push(s[u]);return a.apply(this,o)},disconnect:function(e){e&&e.remove()},subscribe:function(e,t,r){return n.subscribe(e,u.hitch(t,r))},publish:function(e,t){return n.publish.apply(n,[e].concat(t))},connectPublisher:function(e,t,n){var r=function(){v.publish(e,arguments)};return n?v.connect(t,n,r):v.connect(t,r)},isCopyKey:function(e){return e[l]}};return v.unsubscribe=v.disconnect,u.mixin(e,v),v})},"dojo/on":function(){define("dojo/on",["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],function(e,t,n){"use strict";function o(e,t,r,o,u){var a=t.match(/(.*):(.*)/);if(a)return t=a[2],a=a[1],i.selector(a,t).call(u,e,r);n("touch")&&(s.test(t)&&(r=x(r)),!n("event-orientationchange")&&t=="orientationchange"&&(t="resize",e=window,r=x(r))),p&&(r=p(r));if(e.addEventListener){var f=t in c,l=f?c[t]:t;return e.addEventListener(l,r,f),{remove:function(){e.removeEventListener(l,r,f)}}}t="on"+t;if(g&&e.attachEvent)return g(e,t,r);throw new Error("Target must be an event emitter")}function u(){this.cancelable=!1}function a(){this.bubbles=!1}var i=function(e,t,n,r){return typeof e.on=="function"&&typeof t!="function"?e.on(t,n):i.parse(e,t,n,o,r,this)};i.pausable=function(e,t,n,r){var s,o=i(e,t,function(){if(!s)return n.apply(this,arguments)},r);return o.pause=function(){s=!0},o.resume=function(){s=!1},o},i.once=function(e,t,n,r){var s=i(e,t,function(){return s.remove(),n.apply(this,arguments)});return s},i.parse=function(e,t,n,r,i,s){if(t.call)return t.call(s,e,n);if(t.indexOf(",")>-1){var o=t.split(/\s*,\s*/),u=[],a=0,f;while(f=o[a++])u.push(r(e,f,n,i,s));return u.remove=function(){for(var e=0;e<u.length;e++)u[e].remove()},u}return r(e,t,n,i,s)};var s=/^touch/;i.selector=function(e,n,r){return function(s,o){function f(n){u=u&&u.matches?u:t.query;while(!u.matches(n,e,s))if(n==s||r===!1||!(n=n.parentNode)||n.nodeType!=1)return;return n}var u=typeof e=="function"?{matches:e}:this,a=n.bubble;return a?i(s,a(f),o):i(s,n,function(e){var t=f(e.target);return t&&o.call(t,e)})}};var f=[].slice,l=i.emit=function(e,t,n){var r=f.call(arguments,2),i="on"+t;if("parentNode"in e){var s=r[0]={};for(var o in n)s[o]=n[o];s.preventDefault=u,s.stopPropagation=a,s.target=e,s.type=t,n=s}do e[i]&&e[i].apply(e,r);while(n&&n.bubbles&&(e=e.parentNode));return n&&n.cancelable&&n},c={};if(!n("event-stopimmediatepropagation"))var h=function(){this.immediatelyStopped=!0,this.modified=!0},p=function(e){return function(t){if(!t.immediatelyStopped)return t.stopImmediatePropagation=h,e.apply(this,arguments)}};if(n("dom-addeventlistener"))c={focusin:"focus",focusout:"blur"},i.emit=function(e,t,n){if(e.dispatchEvent&&document.createEvent){var r=e.ownerDocument.createEvent("HTMLEvents");r.initEvent(t,!!n.bubbles,!!n.cancelable);for(var s in n){var o=n[s];s in r||(r[s]=n[s])}return e.dispatchEvent(r)&&r}return l.apply(i,arguments)};else{i._fixEvent=function(e,t){if(!e){var n=t&&(t.ownerDocument||t.document||t).parentWindow||window;e=n.event}if(!e)return e;d&&e.type==d.type&&(e=d);if(!e.target){e.target=e.srcElement,e.currentTarget=t||e.srcElement,e.type=="mouseover"&&(e.relatedTarget=e.fromElement),e.type=="mouseout"&&(e.relatedTarget=e.toElement),e.stopPropagation||(e.stopPropagation=b,e.preventDefault=w);switch(e.type){case"keypress":var r="charCode"in e?e.charCode:e.keyCode;r==10?(r=0,e.keyCode=13):r==13||r==27?r=0:r==3&&(r=99),e.charCode=r,y(e)}}return e};var d,v=function(e){this.handle=e};v.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var m=function(e){return function(t){t=i._fixEvent(t,this);var n=e.call(this,t);return t.modified&&(d||setTimeout(function(){d=null}),d=t),n}},g=function(t,r,i){i=m(i);if(((t.ownerDocument?t.ownerDocument.parentWindow:t.parentWindow||t.window||window)!=top||n("jscript")<5.8)&&!n("config-_allow_leaks")){typeof _dojoIEListeners_=="undefined"&&(_dojoIEListeners_=[]);var s=t[r];if(!s||!s.listeners){var o=s;s=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}"),s.listeners=[],t[r]=s,s.global=this,o&&s.listeners.push(_dojoIEListeners_.push(o)-1)}var u;return s.listeners.push(u=s.global._dojoIEListeners_.push(i)-1),new v(u)}return e.after(t,r,i,!0)},y=function(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode},b=function(){this.cancelBubble=!0},w=i._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(e){}this.defaultPrevented=!0,this.returnValue=!1}}if(n("touch"))var E=function(){},S=window.orientation,x=function(e){return function(t){var n=t.corrected;if(!n){var r=t.type;try{delete t.type}catch(i){}if(t.type){E.prototype=t;var n=new E;n.preventDefault=function(){t.preventDefault()},n.stopPropagation=function(){t.stopPropagation()}}else n=t,n.type=r;t.corrected=n;if(r=="resize")return S==window.orientation?null:(S=window.orientation,n.type="orientationchange",e.call(this,n));"rotation"in n||(n.rotation=0,n.scale=1);var s=n.changedTouches[0];for(var o in s)delete n[o],n[o]=s[o]}return e.call(this,n)}};return i})},"dojo/topic":function(){define("dojo/topic",["./Evented"],function(e){var t=new e;return{publish:function(e,n){return t.emit.apply(t,arguments)},subscribe:function(e,n){return t.on.apply(t,arguments)}}})},"dojo/Evented":function(){define("dojo/Evented",["./aspect","./on"],function(e,t){"use strict";function r(){}var n=e.after;return r.prototype={on:function(e,r){return t.parse(this,e,r,function(e,t){return n(e,"on"+t,r,!0)})},emit:function(e,n){var r=[this];return r.push.apply(r,arguments),t.emit.apply(t,r)}},r})},"dojo/aspect":function(){define("dojo/aspect",[],function(){"use strict";function n(e,n,r,i){var s=e[n],o=n=="around",u;if(o){var a=r(function(){return s.advice(this,arguments)});u={remove:function(){u.cancelled=!0},advice:function(e,t){return u.cancelled?s.advice(e,t):a.apply(e,t)}}}else u={remove:function(){var t=u.previous,r=u.next;!r&&!t?delete e[n]:(t?t.next=r:e[n]=r,r&&(r.previous=t))},id:t++,advice:r,receiveArguments:i};if(s&&!o)if(n=="after"){while(s.next&&(s=s.next));s.next=u,u.previous=s}else n=="before"&&(e[n]=u,u.next=s,s.previous=u);else e[n]=u;return u}function r(r){return function(i,s,o,u){var a=i[s],f;if(!a||a.target!=i)i[s]=f=function(){var n=t,r=arguments,i=f.before;while(i)r=i.advice.apply(this,r)||r,i=i.next;if(f.around)var s=f.around.advice(this,r);var o=f.after;while(o&&o.id<n){if(o.receiveArguments){var u=o.advice.apply(this,r);s=u===e?s:u}else s=o.advice.call(this,s,r);o=o.next}return s},a&&(f.around={advice:function(e,t){return a.apply(e,t)}}),f.target=i;var l=n(f||a,r,o,u);return o=null,l}}var e,t=0,i=r("after"),s=r("before"),o=r("around");return{before:s,around:o,after:i}})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(e,t,n,r){if(t._fixEvent){var i=t._fixEvent;t._fixEvent=function(e,t){return e=i(e,t),e&&r.normalizeEvent(e),e}}var s={fix:function(e,n){return t._fixEvent?t._fixEvent(e,n):e},stop:function(e){n("dom-addeventlistener")||e&&e.preventDefault?(e.preventDefault(),e.stopPropagation()):(e=e||window.event,e.cancelBubble=!0,t._preventDefault.call(e))}};return e.fixEvent=s.fix,e.stopEvent=s.stop,s})},"dojo/dom-geometry":function(){define("dojo/dom-geometry",["./sniff","./_base/window","./dom","./dom-style"],function(e,t,n,r){function o(e,t,n,r,i,s){s=s||"px";var o=e.style;isNaN(t)||(o.left=t+s),isNaN(n)||(o.top=n+s),r>=0&&(o.width=r+s),i>=0&&(o.height=i+s)}function u(e){return e.tagName.toLowerCase()=="button"||e.tagName.toLowerCase()=="input"&&(e.getAttribute("type")||"").toLowerCase()=="button"}function a(e){return i.boxModel=="border-box"||e.tagName.toLowerCase()=="table"||u(e)}var i={};i.boxModel="content-box",e("ie")&&(i.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box"),i.getPadExtents=function(t,i){t=n.byId(t);var s=i||r.getComputedStyle(t),o=r.toPixelValue,u=o(t,s.paddingLeft),a=o(t,s.paddingTop),f=o(t,s.paddingRight),l=o(t,s.paddingBottom);return{l:u,t:a,r:f,b:l,w:u+f,h:a+l}};var s="none";i.getBorderExtents=function(t,i){t=n.byId(t);var o=r.toPixelValue,u=i||r.getComputedStyle(t),a=u.borderLeftStyle!=s?o(t,u.borderLeftWidth):0,f=u.borderTopStyle!=s?o(t,u.borderTopWidth):0,l=u.borderRightStyle!=s?o(t,u.borderRightWidth):0,c=u.borderBottomStyle!=s?o(t,u.borderBottomWidth):0;return{l:a,t:f,r:l,b:c,w:a+l,h:f+c}},i.getPadBorderExtents=function(t,s){t=n.byId(t);var o=s||r.getComputedStyle(t),u=i.getPadExtents(t,o),a=i.getBorderExtents(t,o);return{l:u.l+a.l,t:u.t+a.t,r:u.r+a.r,b:u.b+a.b,w:u.w+a.w,h:u.h+a.h}},i.getMarginExtents=function(t,i){t=n.byId(t);var s=i||r.getComputedStyle(t),o=r.toPixelValue,u=o(t,s.marginLeft),a=o(t,s.marginTop),f=o(t,s.marginRight),l=o(t,s.marginBottom);return{l:u,t:a,r:f,b:l,w:u+f,h:a+l}},i.getMarginBox=function(o,u){o=n.byId(o);var a=u||r.getComputedStyle(o),f=i.getMarginExtents(o,a),l=o.offsetLeft-f.l,c=o.offsetTop-f.t,h=o.parentNode,p=r.toPixelValue,d;if(e("mozilla")){var v=parseFloat(a.left),m=parseFloat(a.top);!isNaN(v)&&!isNaN(m)?(l=v,c=m):h&&h.style&&(d=r.getComputedStyle(h),d.overflow!="visible"&&(l+=d.borderLeftStyle!=s?p(o,d.borderLeftWidth):0,c+=d.borderTopStyle!=s?p(o,d.borderTopWidth):0))}else(e("opera")||e("ie")==8&&!e("quirks"))&&h&&(d=r.getComputedStyle(h),l-=d.borderLeftStyle!=s?p(o,d.borderLeftWidth):0,c-=d.borderTopStyle!=s?p(o,d.borderTopWidth):0);return{l:l,t:c,w:o.offsetWidth+f.w,h:o.offsetHeight+f.h}},i.getContentBox=function(s,o){s=n.byId(s);var u=o||r.getComputedStyle(s),a=s.clientWidth,f,l=i.getPadExtents(s,u),c=i.getBorderExtents(s,u);return a?(f=s.clientHeight,c.w=c.h=0):(a=s.offsetWidth,f=s.offsetHeight),e("opera")&&(l.l+=c.l,l.t+=c.t),{l:l.l,t:l.t,w:a-l.w-c.w,h:f-l.h-c.h}},i.setContentSize=function(t,r,s){t=n.byId(t);var u=r.w,f=r.h;if(a(t)){var l=i.getPadBorderExtents(t,s);u>=0&&(u+=l.w),f>=0&&(f+=l.h)}o(t,NaN,NaN,u,f)};var f={l:0,t:0,w:0,h:0};return i.setMarginBox=function(s,l,c){s=n.byId(s);var h=c||r.getComputedStyle(s),p=l.w,d=l.h,v=a(s)?f:i.getPadBorderExtents(s,h),m=i.getMarginExtents(s,h);if(e("webkit")&&u(s)){var g=s.style;p>=0&&!g.width&&(g.width="4px"),d>=0&&!g.height&&(g.height="4px")}p>=0&&(p=Math.max(p-v.w-m.w,0)),d>=0&&(d=Math.max(d-v.h-m.h,0)),o(s,l.l,l.t,p,d)},i.isBodyLtr=function(n){return n=n||t.doc,(t.body(n).dir||n.documentElement.dir||"ltr").toLowerCase()=="ltr"},i.docScroll=function(r){r=r||t.doc;var s=t.doc.parentWindow||t.doc.defaultView;return"pageXOffset"in s?{x:s.pageXOffset,y:s.pageYOffset}:(s=e("quirks")?t.body(r):r.documentElement)&&{x:i.fixIeBiDiScrollLeft(s.scrollLeft||0,r),y:s.scrollTop||0}},e("ie")&&(i.getIeDocumentElementOffset=function(r){r=r||t.doc;var i=r.documentElement;if(e("ie")<8){var s=i.getBoundingClientRect(),o=s.left,u=s.top;return e("ie")<7&&(o+=i.clientLeft,u+=i.clientTop),{x:o<0?0:o,y:u<0?0:u}}return{x:0,y:0}}),i.fixIeBiDiScrollLeft=function(r,s){s=s||t.doc;var o=e("ie");if(o&&!i.isBodyLtr(s)){var u=e("quirks"),a=u?t.body(s):s.documentElement,f=t.global;return o==6&&!u&&f.frameElement&&a.scrollHeight>a.clientHeight&&(r+=a.clientLeft),o<8||u?r+a.clientWidth-a.scrollWidth:-r}return r},i.position=function(r,s){r=n.byId(r);var o=t.body(r.ownerDocument),u=r.getBoundingClientRect();u={x:u.left,y:u.top,w:u.right-u.left,h:u.bottom-u.top};if(e("ie")<9){var a=i.getIeDocumentElementOffset(r.ownerDocument);u.x-=a.x+(e("quirks")?o.clientLeft+o.offsetLeft:0),u.y-=a.y+(e("quirks")?o.clientTop+o.offsetTop:0)}if(s){var f=i.docScroll(r.ownerDocument);u.x+=f.x,u.y+=f.y}return u},i.getMarginSize=function(t,s){t=n.byId(t);var o=i.getMarginExtents(t,s||r.getComputedStyle(t)),u=t.getBoundingClientRect();return{w:u.right-u.left+o.w,h:u.bottom-u.top+o.h}},i.normalizeEvent=function(t){"layerX"in t||(t.layerX=t.offsetX,t.layerY=t.offsetY);if(!e("dom-addeventlistener")){var n=t.target,r=n&&n.ownerDocument||document,s=e("quirks")?r.body:r.documentElement,o=i.getIeDocumentElementOffset(r);t.pageX=t.clientX+i.fixIeBiDiScrollLeft(s.scrollLeft||0,r)-o.x,t.pageY=t.clientY+(s.scrollTop||0)-o.y}},i})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(e,t,n){var r={global:e.global,doc:this.document||null,body:function(t){return t=t||e.doc,t.body||t.getElementsByTagName("body")[0]},setContext:function(t,n){e.global=r.global=t,e.doc=r.doc=n},withGlobal:function(t,n,i,s){var o=e.global;try{return e.global=r.global=t,r.withDoc.call(null,t.document,n,i,s)}finally{e.global=r.global=o}},withDoc:function(t,i,s,o){var u=r.doc,a=n("quirks"),f=n("ie"),l,c,h;try{return e.doc=r.doc=t,e.isQuirks=n.add("quirks",e.doc.compatMode=="BackCompat",!0,!0),n("ie")&&(h=t.parentWindow)&&h.navigator&&(l=parseFloat(h.navigator.appVersion.split("MSIE ")[1])||undefined,c=t.documentMode,c&&c!=5&&Math.floor(l)!=c&&(l=c),e.isIE=n.add("ie",l,!0,!0)),s&&typeof i=="string"&&(i=s[i]),i.apply(s,o||[])}finally{e.doc=r.doc=u,e.isQuirks=n.add("quirks",a,!0,!0),e.isIE=n.add("ie",f,!0,!0)}}};return t.mixin(e,r),r})},"dojo/dom":function(){define("dojo/dom",["./sniff","./_base/window"],function(e,t){if(e("ie")<=7)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(n){}var r={};e("ie")?r.byId=function(e,n){if(typeof e!="string")return e;var r=n||t.doc,i=e&&r.getElementById(e);if(!(!i||i.attributes.id.value!=e&&i.id!=e))return i;var s=r.all[e];if(!s||s.nodeName)s=[s];var o=0;while(i=s[o++])if(i.attributes&&i.attributes.id&&i.attributes.id.value==e||i.id==e)return i}:r.byId=function(e,n){return(typeof e=="string"?(n||t.doc).getElementById(e):e)||null},r.isDescendant=function(e,t){try{e=r.byId(e),t=r.byId(t);while(e){if(e==t)return!0;e=e.parentNode}}catch(n){}return!1},e.add("css-user-select",function(e,t,n){if(!n)return!1;var r=n.style,i=["Khtml","O","ms","Moz","Webkit"],s=i.length,o="userSelect",u;do if(typeof r[o]!="undefined")return o;while(s--&&(o=i[s]+"UserSelect"));return!1});var i=e("css-user-select");return r.setSelectable=i?function(e,t){r.byId(e).style[i]=t?"":"none"}:function(e,t){e=r.byId(e);var n=e.getElementsByTagName("*"),i=n.length;if(t){e.removeAttribute("unselectable");while(i--)n[i].removeAttribute("unselectable")}else{e.setAttribute("unselectable","on");while(i--)n[i].setAttribute("unselectable","on")}},r})},"dojo/dom-style":function(){define("dojo/dom-style",["./sniff","./dom"],function(e,t){function c(t,n,r){n=n.toLowerCase();if(e("ie")){if(r=="auto"){if(n=="height")return t.offsetHeight;if(n=="width")return t.offsetWidth}if(n=="fontweight")switch(r){case 700:return"bold";case 400:default:return"normal"}}return n in f||(f[n]=l.test(n)),f[n]?i(t,r):r}var n,r={};e("webkit")?n=function(e){var t;if(e.nodeType==1){var n=e.ownerDocument.defaultView;t=n.getComputedStyle(e,null),!t&&e.style&&(e.style.display="",t=n.getComputedStyle(e,null))}return t||{}}:e("ie")&&(e("ie")<9||e("quirks"))?n=function(e){return e.nodeType==1&&e.currentStyle?e.currentStyle:{}}:n=function(e){return e.nodeType==1?e.ownerDocument.defaultView.getComputedStyle(e,null):{}},r.getComputedStyle=n;var i;e("ie")?i=function(e,t){if(!t)return 0;if(t=="medium")return 4;if(t.slice&&t.slice(-2)=="px")return parseFloat(t);var n=e.style,r=e.runtimeStyle,i=e.currentStyle,s=n.left,o=r.left;r.left=i.left;try{n.left=t,t=n.pixelLeft}catch(u){t=0}return n.left=s,r.left=o,t}:i=function(e,t){return parseFloat(t)||0},r.toPixelValue=i;var s="DXImageTransform.Microsoft.Alpha",o=function(e,t){try{return e.filters.item(s)}catch(n){return t?{}:null}},u=e("ie")<9||e("ie")<10&&e("quirks")?function(e){try{return o(e).Opacity/100}catch(t){return 1}}:function(e){return n(e).opacity},a=e("ie")<9||e("ie")<10&&e("quirks")?function(e,t){var n=t*100,r=t==1;e.style.zoom=r?"":1;if(!o(e)){if(r)return t;e.style.filter+=" progid:"+s+"(Opacity="+n+")"}else o(e,1).Opacity=n;o(e,1).Enabled=!r;if(e.tagName.toLowerCase()=="tr")for(var i=e.firstChild;i;i=i.nextSibling)i.tagName.toLowerCase()=="td"&&a(i,t);return t}:function(e,t){return e.style.opacity=t},f={left:!0,top:!0},l=/margin|padding|width|height|max|min|offset/,h=e("ie")?"styleFloat":"cssFloat",p={cssFloat:h,styleFloat:h,"float":h};return r.get=function(n,i){var s=t.byId(n),o=arguments.length,a=i=="opacity";if(o==2&&a)return u(s);i=p[i]||i;var f=r.getComputedStyle(s);return o==1?f:c(s,i,f[i]||s.style[i])},r.set=function(n,i,s){var o=t.byId(n),u=arguments.length,f=i=="opacity";i=p[i]||i;if(u==3)return f?a(o,s):o.style[i]=s;for(var l in i)r.set(n,l,i[l]);return r.getComputedStyle(o)},r})},"dojo/mouse":function(){define("dojo/mouse",["./_base/kernel","./on","./has","./dom","./_base/window"],function(e,t,n,r,i){function o(e,n){var i=function(i,s){return t(i,e,function(e){if(n)return n(e,s);if(!r.isDescendant(e.relatedTarget,i))return s.call(this,e)})};return i.bubble=function(t){return o(e,function(e,n){var r=t(e.target),i=e.relatedTarget;if(r&&r!=(i&&i.nodeType==1&&t(i)))return n.call(r,e)})},i}n.add("dom-quirks",i.doc&&i.doc.compatMode=="BackCompat"),n.add("events-mouseenter",i.doc&&"onmouseenter"in i.doc.createElement("div")),n.add("events-mousewheel",i.doc&&"onmousewheel"in i.doc);var s;n("dom-quirks")&&n("ie")||!n("dom-addeventlistener")?s={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,t){return e.button&t},isLeft:function(e){return e.button&1},isMiddle:function(e){return e.button&4},isRight:function(e){return e.button&2}}:s={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,t){return e.button==t},isLeft:function(e){return e.button==0},isMiddle:function(e){return e.button==1},isRight:function(e){return e.button==2}},e.mouseButtons=s;var u;return n("events-mousewheel")?u="mousewheel":u=function(e,n){return t(e,"DOMMouseScroll",function(e){e.wheelDelta=-e.detail,n.call(this,e)})},{_eventHandler:o,enter:o("mouseover"),leave:o("mouseout"),wheel:u,isLeft:s.isLeft,isMiddle:s.isMiddle,isRight:s.isRight}})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(e,t,n){return n})},"dojo/keys":function(){define("dojo/keys",["./_base/kernel","./sniff"],function(e,t){return e.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:t("webkit")?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,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:t("mac")&&!t("air")?t("safari")?91:224:17}})},"dojo/_base/Deferred":function(){define(["./kernel","../Deferred","../promise/Promise","../errors/CancelError","../has","./lang","../when"],function(e,t,n,r,i,s,o){var u=function(){},a=Object.freeze||function(){},f=e.Deferred=function(e){function v(e){if(l)throw new Error("This deferred has already been resolved");o=e,l=!0,m()}function m(){var e;while(!e&&p){var n=p;p=p.next;if(e=n.progress==u)l=!1;var r=c?n.error:n.resolved;i("config-useDeferredInstrumentation")&&c&&t.instrumentRejected&&t.instrumentRejected(o,!!r);if(r)try{var a=r(o);if(a&&typeof a.then=="function"){a.then(s.hitch(n.deferred,"resolve"),s.hitch(n.deferred,"reject"),s.hitch(n.deferred,"progress"));continue}var f=e&&a===undefined;e&&!f&&(c=a instanceof Error),n.deferred[f&&c?"reject":"resolve"](f?o:a)}catch(h){n.deferred.reject(h)}else c?n.deferred.reject(o):n.deferred.resolve(o)}}var o,l,c,h,p,d=this.promise=new n;this.resolve=this.callback=function(e){this.fired=0,this.results=[e,null],v(e)},this.reject=this.errback=function(e){c=!0,this.fired=1,i("config-useDeferredInstrumentation")&&t.instrumentRejected&&t.instrumentRejected(e,!!p),v(e),this.results=[null,e]},this.progress=function(e){var t=p;while(t){var n=t.progress;n&&n(e),t=t.next}},this.addCallbacks=function(e,t){return this.then(e,t,u),this},d.then=this.then=function(e,t,n){var r=n==u?this:new f(d.cancel),i={resolved:e,error:t,progress:n,deferred:r};return p?h=h.next=i:p=h=i,l&&m(),r.promise};var g=this;d.cancel=this.cancel=function(){if(!l){var t=e&&e(g);l||(t instanceof Error||(t=new r(t)),t.log=!1,g.reject(t))}},a(d)};return s.extend(f,{addCallback:function(t){return this.addCallbacks(s.hitch.apply(e,arguments))},addErrback:function(t){return this.addCallbacks(null,s.hitch.apply(e,arguments))},addBoth:function(t){var n=s.hitch.apply(e,arguments);return this.addCallbacks(n,n)},fired:-1}),f.when=e.when=o,f})},"dojo/Deferred":function(){define("dojo/Deferred",["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(e,t,n,r,i){"use strict";var s=0,o=1,u=2,a="This deferred has already been fulfilled.",f=Object.freeze||function(){},l=function(e,t,n,r,i){t===u&&d.instrumentRejected&&e.length===0&&d.instrumentRejected(n,!1,r,i);for(var s=0;s<e.length;s++)c(e[s],t,n,r)},c=function(e,t,n,r){var i=e[t],a=e.deferred;if(i)try{var f=i(n);if(t===s)typeof f!="undefined"&&p(a,t,f);else{if(f&&typeof f.then=="function"){e.cancel=f.cancel,f.then(h(a,o),h(a,u),h(a,s));return}p(a,o,f)}}catch(l){p(a,u,l)}else p(a,t,n);t===u&&d.instrumentRejected&&d.instrumentRejected(n,!!i,r,a.promise)},h=function(e,t){return function(n){p(e,t,n)}},p=function(e,t,n){if(!e.isCanceled())switch(t){case s:e.progress(n);break;case o:e.resolve(n);break;case u:e.reject(n)}},d=function(e){var t=this.promise=new r,i=this,h,p,v,m=!1,g=[];Error.captureStackTrace&&(Error.captureStackTrace(i,d),Error.captureStackTrace(t,d)),this.isResolved=t.isResolved=function(){return h===o},this.isRejected=t.isRejected=function(){return h===u},this.isFulfilled=t.isFulfilled=function(){return!!h},this.isCanceled=t.isCanceled=function(){return m},this.progress=function(e,n){if(!h)return l(g,s,e,null,i),t;if(n===!0)throw new Error(a);return t},this.resolve=function(e,n){if(!h)return l(g,h=o,p=e,null,i),g=null,t;if(n===!0)throw new Error(a);return t};var y=this.reject=function(e,n){if(!h)return Error.captureStackTrace&&Error.captureStackTrace(v={},y),l(g,h=u,p=e,v,i),g=null,t;if(n===!0)throw new Error(a);return t};this.then=t.then=function(e,n,r){var i=[r,e,n];return i.cancel=t.cancel,i.deferred=new d(function(e){return i.cancel&&i.cancel(e)}),h&&!g?c(i,h,p,v):g.push(i),i.deferred.promise},this.cancel=t.cancel=function(t,r){if(!h){if(e){var i=e(t);t=typeof i=="undefined"?t:i}m=!0;if(!h)return typeof t=="undefined"&&(t=new n),y(t),t;if(h===u&&p===t)return t}else if(r===!0)throw new Error(a)},f(t)};return d.prototype.toString=function(){return"[object Deferred]"},i&&i(d),d})},"dojo/errors/CancelError":function(){define(["./create"],function(e){return e("CancelError",null,null,{dojoType:"cancel"})})},"dojo/errors/create":function(){define(["../_base/lang"],function(e){return function(t,n,r,i){r=r||Error;var s=function(e){if(r===Error){Error.captureStackTrace&&Error.captureStackTrace(this,s);var t=Error.call(this,e),i;for(i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);this.message=e,this.stack=t.stack}else r.apply(this,arguments);n&&n.apply(this,arguments)};return s.prototype=e.delegate(r.prototype,i),s.prototype.name=t,s.prototype.constructor=s,s}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(e){"use strict";function t(){throw new TypeError("abstract")}return e.extend(function(){},{then:function(e,n,r){t()},cancel:function(e,n){t()},isResolved:function(){t()},isRejected:function(){t()},isFulfilled:function(){t()},isCanceled:function(){t()},always:function(e){return this.then(e,e)},otherwise:function(e){return this.then(null,e)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(e,t,n,r){function i(e,t,n){var r="";e&&e.stack&&(r+=e.stack),t&&t.stack&&(r+="\n ----------------------------------------\n rejected"+t.stack.split("\n").slice(1).join("\n").replace(/^\s+/," ")),n&&n.stack&&(r+="\n ----------------------------------------\n"+n.stack),console.error(e,r)}function s(e,t,n,r){t||i(e,n,r)}function f(e,t,n,i){t?r.some(o,function(t,n){if(t.error===e)return o.splice(n,1),!0}):r.some(o,function(t){return t.error===e})||o.push({error:e,rejection:n,deferred:i,timestamp:(new Date).getTime()}),u||(u=setTimeout(l,a))}function l(){var e=(new Date).getTime(),t=e-a;o=r.filter(o,function(e){return e.timestamp<t?(i(e.error,e.rejection,e.deferred),!1):!0}),o.length?u=setTimeout(l,o[0].timestamp+a-e):u=!1}var o=[],u=!1,a=1e3;return function(r){var i=t("config-useDeferredInstrumentation");if(i){e.on("resolved",n.hitch(console,"log","resolved")),e.on("rejected",n.hitch(console,"log","rejected")),e.on("progress",n.hitch(console,"log","progress"));var o=[];typeof i=="string"&&(o=i.split(","),i=o.shift());if(i==="report-rejections")r.instrumentRejected=s;else{if(i!=="report-unhandled-rejections"&&i!==!0&&i!==1)throw new Error("Unsupported instrumentation usage <"+i+">");r.instrumentRejected=f,a=parseInt(o[0],10)||a}}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(e,t,n){"use strict";function s(e){setTimeout(function(){i.apply(r,e)},0)}var r=new n,i=r.emit;return r.emit=null,t.prototype.trace=function(){var t=e._toArray(arguments);return this.then(function(e){s(["resolved",e].concat(t))},function(e){s(["rejected",e].concat(t))},function(e){s(["progress",e].concat(t))}),this},t.prototype.traceRejected=function(){var t=e._toArray(arguments);return this.otherwise(function(e){s(["rejected",e].concat(t))}),this},r})},"dojo/when":function(){define("dojo/when",["./Deferred","./promise/Promise"],function(e,t){"use strict";return function(r,i,s,o){var u=r&&typeof r.then=="function",a=u&&r instanceof t;if(!u)return i?i(r):(new e).resolve(r);if(!a){var f=new e(r.cancel);r.then(f.resolve,f.reject,f.progress),r=f.promise}return i||s||o?r.then(i,s,o):r}})},"dojo/_base/json":function(){define(["./kernel","../json"],function(dojo,json){return dojo.fromJson=function(js){return eval("("+js+")")},dojo._escapeString=json.stringify,dojo.toJsonIndentStr=" ",dojo.toJson=function(e,t){return json.stringify(e,function(e,t){if(t){var n=t.__json__||t.json;if(typeof n=="function")return n.call(t)}return t},t&&dojo.toJsonIndentStr)},dojo})},"dojo/json":function(){define("dojo/json",["./has"],function(has){"use strict";var hasJSON=typeof JSON!="undefined";has.add("json-parse",hasJSON),has.add("json-stringify",hasJSON&&JSON.stringify({a:0},function(e,t){return t||1})=='{"a":1}');if(has("json-stringify"))return JSON;var 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")};return{parse:has("json-parse")?JSON.parse:function(str,strict){if(strict&&!/^([\s\[\{]*(?:"(?:\\.|[^"])+"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str))throw new SyntaxError("Invalid characters in JSON");return eval("("+str+")")},stringify:function(e,t,n){function i(e,s,o){t&&(e=t(o,e));var u,a=typeof e;if(a=="number")return isFinite(e)?e+"":"null";if(a=="boolean")return e+"";if(e===null)return"null";if(typeof e=="string")return escapeString(e);if(a=="function"||a=="undefined")return r;if(typeof e.toJSON=="function")return i(e.toJSON(o),s,o);if(e instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(t,n,r){var i=e["getUTC"+n]()+(r?1:0);return i<10?"0"+i:i});if(e.valueOf()!==e)return i(e.valueOf(),s,o);var f=n?s+n:"",l=n?" ":"",c=n?"\n":"";if(e instanceof Array){var h=e.length,p=[];for(o=0;o<h;o++){var d=e[o];u=i(d,f,o),typeof u!="string"&&(u="null"),p.push(c+f+u)}return"["+p.join(",")+c+s+"]"}var v=[];for(o in e){var m;if(e.hasOwnProperty(o)){if(typeof o=="number")m='"'+o+'"';else{if(typeof o!="string")continue;m=escapeString(o)}u=i(e[o],f,o);if(typeof u!="string")continue;v.push(c+f+m+":"+l+u)}}return"{"+v.join(",")+c+s+"}"}var r;return typeof t=="string"&&(n=t,t=null),i(e,"","")}}})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(e,t,n,r){var i=e.Color=function(e){e&&this.setColor(e)};return i.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:r.transparentColor||[0,0,0,0]},t.extend(i,{r:255,g:255,b:255,a:1,_set:function(e,t,n,r){var i=this;i.r=e,i.g=t,i.b=n,i.a=r},setColor:function(e){return t.isString(e)?i.fromString(e,this):t.isArray(e)?i.fromArray(e,this):(this._set(e.r,e.g,e.b,e.a),e instanceof i||this.sanitize()),this},sanitize:function(){return this},toRgb:function(){var e=this;return[e.r,e.g,e.b]},toRgba:function(){var e=this;return[e.r,e.g,e.b,e.a]},toHex:function(){var e=n.map(["r","g","b"],function(e){var t=this[e].toString(16);return t.length<2?"0"+t:t},this);return"#"+e.join("")},toCss:function(e){var t=this,n=t.r+", "+t.g+", "+t.b;return(e?"rgba("+n+", "+t.a:"rgb("+n)+")"},toString:function(){return this.toCss(!0)}}),i.blendColors=e.blendColors=function(e,t,r,s){var o=s||new i;return n.forEach(["r","g","b","a"],function(n){o[n]=e[n]+(t[n]-e[n])*r,n!="a"&&(o[n]=Math.round(o[n]))}),o.sanitize()},i.fromRgb=e.colorFromRgb=function(e,t){var n=e.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return n&&i.fromArray(n[1].split(/\s*,\s*/),t)},i.fromHex=e.colorFromHex=function(e,t){var r=t||new i,s=e.length==4?4:8,o=(1<<s)-1;return e=Number("0x"+e.substr(1)),isNaN(e)?null:(n.forEach(["b","g","r"],function(t){var n=e&o;e>>=s,r[t]=s==4?17*n:n}),r.a=1,r)},i.fromArray=e.colorFromArray=function(e,t){var n=t||new i;return n._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(n.a)&&(n.a=1),n.sanitize()},i.fromString=e.colorFromString=function(e,t){var n=i.named[e];return n&&i.fromArray(n,t)||i.fromRgb(e,t)||i.fromHex(e,t)},i})},"dojo/_base/loader":function(){define(["./kernel","../has","require","module","./json","./lang","./array"],function(dojo,has,require,thisModule,json,lang,array){1;var makeErrorToken=function(e){return{src:thisModule.id,id:e}},slashName=function(e){return e.replace(/\./g,"/")},buildDetectRe=/\/\/>>built/,dojoRequireCallbacks=[],dojoRequireModuleStack=[],dojoRequirePlugin=function(e,t,n){dojoRequireCallbacks.push(n),array.forEach(e.split(","),function(e){var n=getModule(e,t.module);dojoRequireModuleStack.push(n),injectModule(n)}),checkDojoRequirePlugin()},checkDojoRequirePlugin=function(){var e,t;for(t in modules){e=modules[t],e.noReqPluginCheck===undefined&&(e.noReqPluginCheck=/loadInit\!/.test(t)||/require\!/.test(t)?1:0);if(!e.executed&&!e.noReqPluginCheck&&e.injected==requested)return}guardCheckComplete(function(){var e=dojoRequireCallbacks;dojoRequireCallbacks=[],array.forEach(e,function(e){e(1)})})},dojoLoadInitPlugin=function(mid,require,loaded){require([mid],function(bundle){require(bundle.names,function(){for(var scopeText="",args=[],i=0;i<arguments.length;i++)scopeText+="var "+bundle.names[i]+"= arguments["+i+"]; ",args.push(arguments[i]);eval(scopeText);var callingModule=require.module,requireList=[],i18nDeps,syncLoaderApi={provide:function(e){e=slashName(e);var t=getModule(e,callingModule);t!==callingModule&&setArrived(t)},require:function(e,t){e=slashName(e),t&&(getModule(e,callingModule).result=nonmodule),requireList.push(e)},requireLocalization:function(e,t,n){i18nDeps||(i18nDeps=["dojo/i18n"]),n=(n||dojo.locale).toLowerCase(),e=slashName(e)+"/nls/"+(/root/i.test(n)?"":n+"/")+slashName(t),getModule(e,callingModule).isXd&&i18nDeps.push("dojo/i18n!"+e)},loadInit:function(e){e()}},hold={},p;try{for(p in syncLoaderApi)hold[p]=dojo[p],dojo[p]=syncLoaderApi[p];bundle.def.apply(null,args)}catch(e){signal("error",[makeErrorToken("failedDojoLoadInit"),e])}finally{for(p in syncLoaderApi)dojo[p]=hold[p]}i18nDeps&&(requireList=requireList.concat(i18nDeps)),requireList.length?dojoRequirePlugin(requireList.join(","),require,loaded):loaded()})})},extractApplication=function(e,t,n){var r=/\(|\)/g,i=1,s;r.lastIndex=t;while(s=r.exec(e)){s[0]==")"?i-=1:i+=1;if(i==0)break}if(i!=0)throw"unmatched paren around character "+r.lastIndex+" in: "+e;return[dojo.trim(e.substring(n,r.lastIndex))+";\n",r.lastIndex]},removeCommentRe=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,syncLoaderApiRe=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,amdLoaderApiRe=/(^|\s)(require|define)\s*\(/m,extractLegacyApiApplications=function(e,t){var n,r,i,s,o=[],u=[],a=[];t=t||e.replace(removeCommentRe,function(e){return syncLoaderApiRe.lastIndex=amdLoaderApiRe.lastIndex=0,syncLoaderApiRe.test(e)||amdLoaderApiRe.test(e)?"":e});while(n=syncLoaderApiRe.exec(t))r=syncLoaderApiRe.lastIndex,i=r-n[0].length,s=extractApplication(t,r,i),n[2]=="loadInit"?o.push(s[0]):u.push(s[0]),syncLoaderApiRe.lastIndex=s[1];return a=o.concat(u),a.length||!amdLoaderApiRe.test(t)?[e.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),a.join(""),a]:0},transformToAmd=function(e,t){var n,r,i=[],s=[];if(buildDetectRe.test(t)||!(n=extractLegacyApiApplications(t)))return 0;r=e.mid+"-*loadInit";for(var o in getModule("dojo",e).result.scopeMap)i.push(o),s.push('"'+o+'"');return"// xdomain rewrite of "+e.mid+"\n"+"define('"+r+"',{\n"+" names:"+dojo.toJson(i)+",\n"+" def:function("+i.join(",")+"){"+n[1]+"}"+"});\n\n"+"define("+dojo.toJson(i.concat(["dojo/loadInit!"+r]))+", function("+i.join(",")+"){\n"+n[0]+"});"},loaderVars=require.initSyncLoader(dojoRequirePlugin,checkDojoRequirePlugin,transformToAmd),sync=loaderVars.sync,requested=loaderVars.requested,arrived=loaderVars.arrived,nonmodule=loaderVars.nonmodule,executing=loaderVars.executing,executed=loaderVars.executed,syncExecStack=loaderVars.syncExecStack,modules=loaderVars.modules,execQ=loaderVars.execQ,getModule=loaderVars.getModule,injectModule=loaderVars.injectModule,setArrived=loaderVars.setArrived,signal=loaderVars.signal,finishExec=loaderVars.finishExec,execModule=loaderVars.execModule,getLegacyMode=loaderVars.getLegacyMode,guardCheckComplete=loaderVars.guardCheckComplete;return dojoRequirePlugin=loaderVars.dojoRequirePlugin,dojo.provide=function(e){var t=syncExecStack[0],n=lang.mixin(getModule(slashName(e),require.module),{executed:executing,result:lang.getObject(e,!0)});return setArrived(n),t&&(t.provides||(t.provides=[])).push(function(){n.result=lang.getObject(e),delete n.provides,n.executed!==executed&&finishExec(n)}),n.result},has.add("config-publishRequireResult",1,0,0),dojo.require=function(e,t){function n(e,t){var n=getModule(slashName(e),require.module);if(syncExecStack.length&&syncExecStack[0].finish)return syncExecStack[0].finish.push(e),undefined;if(n.executed)return n.result;t&&(n.result=nonmodule);var r=getLegacyMode();return injectModule(n),r=getLegacyMode(),n.executed!==executed&&n.injected===arrived&&loaderVars.guardCheckComplete(function(){execModule(n)}),n.executed?n.result:(r==sync?n.cjs?execQ.unshift(n):syncExecStack.length&&(syncExecStack[0].finish=[e]):execQ.push(n),undefined)}var r=n(e,t);return has("config-publishRequireResult")&&!lang.exists(e)&&r!==undefined&&lang.setObject(e,r),r},dojo.loadInit=function(e){e()},dojo.registerModulePath=function(e,t){var n={};n[e.replace(/\./g,"/")]=t,require({paths:n})},dojo.platformRequire=function(e){var t=(e.common||[]).concat(e[dojo._name]||e["default"]||[]),n;while(t.length)lang.isArray(n=t.shift())?dojo.require.apply(dojo,n):dojo.require(n)},dojo.requireIf=dojo.requireAfterIf=function(e,t,n){e&&dojo.require(t,n)},dojo.requireLocalization=function(e,t,n){require(["../i18n"],function(r){r.getLocalization(e,t,n)})},{extractLegacyApiApplications:extractLegacyApiApplications,require:dojoRequirePlugin,loadInit:dojoLoadInitPlugin}})}}}),require({cache:{"build/build":function(){define([],1)},"build/buildControlBase":function(){define(["./messages","dojo/text!./copyright.txt","dojo/text!./buildNotice.txt"],function(e,t,n){var r={exitCode:0,newline:"\n",newlineFilter:function(e,t,n){return e},built:!0,startTimestamp:new Date,paths:{},destPathTransforms:[],packageMap:{},resources:{},resourcesByDest:{},amdResources:{},closureCompilerPath:"../closureCompiler/compiler.jar",maxOptimizationProcesses:5,buildReportDir:".",buildReportFilename:"build-report.txt",defaultCopyright:t,defaultBuildNotice:n};for(var i in e)r[i]=e[i];return r})},"build/messages":function(){define([],function(){var e={info:[[100,199]],warn:[[200,299]],error:[[300,399]],report:[[400,499]]},t=[[1,100,"legacyAssumed","Assumed module uses legacy loader API."],[1,101,"legacyUsingLoadInitPlug","Using dojo/loadInit plugin for module."],[1,102,"optimize","Optimizing module"],[1,103,"optimizeDone","Optimizing module complete."],[1,104,"optimizeMessages","Optimizer messages."],[1,105,"pacify",""],[1,106,"cssOptimize","Optimizing CSS."],[1,107,"packageVersion","Package Version:"],[1,108,"internStrings","Interning strings."],[1,109,"processHtmlFiles","Processing HTML files."],[1,110,"userTrace","User trace:"],[1,111,"userInfo","User info:"],[1,112,"cssOptimizeIgnored","While optimizing a CSS file, an import directive was not expanded as instructed by the profile."],[1,113,"cssOptimizeIgnoredMultiMediaTypes","While optimizing a CSS file, an import directive was not expanded because it indicated multiple media types."],[1,200,"configUnresolvedValues","Configuration contains unsolved values."],[1,201,"amdCircularDependency","Cycle detected in layer dependencies."],[1,202,"amdInconsistentMid","AMD module specified and absolute module identifier that is not consistent with the configuration and filename"],[1,203,"amdPureContainedLegacyApi","Module tagged as pure AMD yet it contains legacy loader API applications."],[1,205,"amdNotPureContainedNoLegacyApi","Module not tagged as pure AMD yet it contains AMD API applications."],[1,206,"legacyMultipleProvides","Module included multiple dojo.provide applications."],[1,207,"legacyImproperProvide","dojo.provide application identifier inconsistent with module identifier."],[1,208,"inputDeprecatedProfileFile",'The "profileFile" switch has been deprecated; use "profile" instead.'],[1,209,"missingPackageJson","Missing or empty package.json."],[1,210,"inputDeprecatedStripConsole","Given strip console value is deprecated."],[1,211,"inputDeprecated","Deprecated switch; ignored"],[1,212,"oddDojoPath","No profile.basePath provided, yet dojo path is relative and running build with the current working directory different than util/buildscripts"],[1,213,"buildUsingDifferentDojo","Dojo path specified in profile is different than the dojo being used for the build program"],[1,214,"ignoringReleaseDirName","DestBasePath given; ignoring releaseDir and releaseName."],[1,215,"inputLoggerRemoved","Logger has been removed; all calls ignored"],[1,216,"dojoHasUnresolvedMid","dojo/has plugin resource could not be resolved during build-time."],[1,217,"cleanRemoved","the clean action has been removed; use rm (*nix) or rmdir (Windows)"],[1,218,"inputProfileFileDeprecated","the command line switch profileFile is deprectated; use profile for both files and profiles"],[1,219,"userWarn","User warn:"],[1,220,"outputToProfileFileDeprecated","Writing htmlFiles- or htmlDirs-derived profile via the profileFile option is deprecated; use the writeProfile option instead"],[1,221,"assumeLayerIsDojoModule","Assumed layer is referencing a dojo module."],[1,222,"assumeLayerDependencyIsDojoModule","Assumed layer is referencing a dojo module."],[1,223,"possibleLegacyModuleId","Name in internStringsSkipList looks like a legacy module identifier."],[1,224,"missingPluginResolver","A plugin dependency was encountered but there was no build-time plugin resolver."],[1,225,"missingDirDuringDiscovery","A directory that was scheduled to be read during discovery did not exist."],[1,226,"missingProfile","A package without a profile could throw errors or warnings."],[1,227,"symbolsLeak","Inserting symbols (by setting the profile variable 'symbol') causes leaks in IE."],[1,300,"dojoHasMissingPlugin","Missing dojo/has module."],[1,302,"dojoHasMissingMid","Missing dojo/has plugin resource that was resolved at build-time."],[1,303,"amdMissingLayerIncludeModule","Missing include module for layer."],[1,304,"amdMissingLayerExcludeModule","Missing exclude module for layer."],[1,305,"amdMissingLayerModuleText","Missing module text for layer."],[1,306,"legacyFailedEval","Failed to evaluate legacy API application."],[1,307,"amdFailedEval","Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions)."],[1,308,"amdFailedDefineEval","Failed to evaluate AMD define function."],[1,309,"i18nNoRoot","Missing root bundle for locale-specific legacy i18n bundle"],[1,310,"i18nImproperBundle","Non-i18n module found in nls tree (copied only)."],[1,311,"amdMissingDependency","Missing dependency."],[1,312,"optimizeFailedWrite","Failed to write optimized file."],[1,313,"cssOptimizeFailed","Failed to optimize CSS file."],[1,314,"execFailed","(Rhino)External process threw."],[1,315,"inputInvalidPath","Unable to compute absolute path."],[1,316,"inputUnknownAction","Unknown action."],[1,317,"inputUnknownStripConsole","Unknown strip console value."],[1,318,"inputUnknownLayerOptimize","Unknown layer optimize value."],[1,319,"inputUnknownOptimize","Unknown optimize value."],[1,320,"inputUnknownTransform","Unknown transform."],[1,321,"inputUnknownGate","Unknown gate."],[1,322,"inputNoLoaderForBoot","Unable to find loader for boot layer."],[1,323,"failedReadAndEval","failed to read and eval file."],[1,324,"transformFailed","Error while transforming resource."],[1,325,"discoveryFailed","Failed to discover any resources to transform. Nothing to do; terminating application"],[1,326,"overwrite","Output intersects input"],[1,327,"outputCollide","Multiple resources are destined for same filename."],[1,328,"noTransform","No transform found for discovered resouce."],[1,329,"layerToMidFailed","Failed to resolve layer name into a module identifier."],[1,330,"layerMissingDependency","Failed to resolve layer dependency."],[1,331,"getDependencyListRemoved",'load("getDependencyList.js") is no supported.'],[1,332,"invalidMessageId","Invalid message identifier."],[1,333,"legacyMissingDependency","Missing dependency in legacy module."],[1,334,"amdCannotInstantiateLayer","Cannot instantiate all modules in layer."],[1,335,"dojoPragmaEvalFail","Failed to evaluate dojo pragma."],[1,336,"dojoPragmaInvalid","Failed to find end marker for dojo pragma."],[1,337,"inputMissingPackageJson","Missing or empty package.json file at location specified by package flag."],[1,337,"inputMalformedPackageJson","Malformed package.json file."],[1,338,"inputProfileDoesNotExist",'Profile given for "profile" switch does not exist.'],[1,339,"inputProfileFileDoesNotExist",'Profile file given for "profileFile" switch does not exist.'],[1,340,"inputHTMLFileDoesNotExist",'HTML file given for "htmlFiles" switch does not exist.'],[1,341,"inputHTMLDirDoesNotExist",'HTML directory given for "htmlDir" switch does not exist.'],[1,342,"inputHTMLDirNoFiles",'HTML directory given for "htmlDir" switch contains no HTML files.'],[1,343,"inputIllegalCommandlineArg","Illegal command line argument."],[1,344,"inputFileDoesNotExist","File does not exist."],[1,345,"inputProcessingHtmlFileNotImplemented","Pulling profiles from HTML files is not implemented."],[1,346,"inputFailedReadfile","Failed to read input file."],[1,347,"inputFailedToEvalProfile","Failed to evaluate profile file."],[1,348,"userError","User error:"],[1,349,"missingPrefix","Missing prefix for top-level module."],[1,350,"cannotDeduceModuleIdFrom16LayerName","Cannot deduce module identifier from layer name"],[1,351,"cannotDeduceModuleIdFrom16LayerDependency","Cannot deduce module identifier from layer dependency"],[1,352,"optimizerReportedErrors","Optimizer reported errors; consult build report for details."],[1,352,"failedToReadLayerCopyrightFile","Failed to read copyright file given with layer."],[1,353,"i18nUnevaluableBundle","I18n bundle was not evaluable in the build environment; therefore it will not be included in the flattening computations."],[1,354,"missingL10n","Root bundle indicates localized bundles that don't exist."],[1,355,"declarativeRequireFailed","Unable to convert declarative require."],[1,356,"optimizeFailed","The optimizer threw an exception; the module probably contains syntax errors."],[1,357,"cssOptimizeUnableToResolveURL","While optimizing a CSS file, it was impossible to compute the destination location of a relative URL."],[1,358,"cssOptimizeImproperComment","While optimizing a CSS file, an improper comment was encountered."],[1,359,"cssOptimizeIgnoredNoResource","While optimizing a CSS file, an import directive was not expanded because the source for the import was not available to the builder."],[1,400,"hasReport","Has Features Detected"],[3,499,"signoff","Process completed normally:"]],n=400,r=500,i=0,s=0,o={},u={},a=function(e){return e?++n:++r},f=function(e,n,r,i,s){for(var a=0;a<t.length;a++)if(t[a][0]>e)break;t.splice(a,0,[e,n,r,i,[]]),o[r]=t[a],s&&(u[r]=1)},l=function(t,n){e[t]?e[t].push(n):e[t]=[n]},c=function(t){var n;for(var r in e)if(e[r].some(function(e){return e[0]<=t&&t<e[1]?n=r+"("+t+")":0}))return n;return"message-id("+t+")"},h=function(e){var t="";if(typeof e!="undefined")if(typeof e=="string")t+=e;else if(e.length==1)t+=e[0];else for(var n=0;n<e.length;)t+=e[n++],n<e.length&&(t+=": "+e[n++]),n<e.length&&(t+="; ");return t},p=0,d=function(e,t){if(p)return;if(e=="pacify")console.log(t);else if(e in o){var n=o[e];n[4].push(t),200<=n[1]&&n[1]<=299?i++:300<=n[1]&&n[1]<=399&&s++,e in u&&console.log(c(n[1])+" "+n[3]+" "+h(t))}else o.invalidMessageId[4].push(["id",e].concat(t))},v=0,m=function(){v||(d("optimizerReportedErrors"),v=1)},g="",y=function(e){/\sERROR\s/.test(e)&&m(),g+=e},b=function(){return g},w=function(){var e="";return t.forEach(function(t){(t[1]<400||499<t[1])&&t[4].length&&(e+=c(t[1])+" "+t[3]+"\n",t[4].forEach(function(t){e+=" "+h(t)+"\n"}))}),e},E=function(){var e="";return t.forEach(function(t){400<=t[1]&&t[1]<=499&&t[4].length&&(e+="\n\n"+t[3]+"\n",t[4].forEach(function(t){e+=" "+h(t)+"\n"}))}),e},S=t;return t=[],S.forEach(function(e){f(e[0],e[1],e[2],e[3]),200<=e[1]&&e[1]<=399&&(u[e[2]]=1)}),u.packageVersion=1,u.signoff=1,{stop:function(){p=1},messages:t,messageMap:o,pacifySet:u,getNewMessageId:a,addMessage:f,addCategory:l,log:d,logOptimizerOutput:y,getOptimizerOutput:b,getAllNonreportMessages:w,getAllReportMessages:E,getWarnCount:function(){return i},getErrorCount:function(){return s},trace:function(e){d("userTrace",e)},info:function(e){d("userInfo",e)},warn:function(e){d("userWarn",e)},error:function(e){d("userError",e)}}})},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","require"],function(e,t,n,r){var i;t.getText?i=t.getText:console.error("dojo/text plugin failed to load because loader does not support getText");var s={},o=function(e){if(e){e=e.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var t=e.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);t&&(e=t[1])}else e="";return e},u={},a={};return e.cache=function(e,n,r){var u;typeof e=="string"?/\//.test(e)?(u=e,r=n):u=t.toUrl(e.replace(/\./g,"/")+(n?"/"+n:"")):(u=e+"",r=n);var a=r!=undefined&&typeof r!="string"?r.value:r,f=r&&r.sanitize;return typeof a=="string"?(s[u]=a,f?o(a):a):a===null?(delete s[u],null):(u in s||i(u,!0,function(e){s[u]=e}),f?o(s[u]):s[u])},{dynamic:!0,normalize:function(e,t){var n=e.split("!"),r=n[0];return(/^\./.test(r)?t(r):r)+(n[1]?"!"+n[1]:"")},load:function(e,t,n){var r=e.split("!"),f=r.length>1,l=r[0],c=t.toUrl(r[0]),h="url:"+c,p=u,d=function(e){n(f?o(e):e)};l in s?p=s[l]:h in t.cache?p=t.cache[h]:c in s&&(p=s[c]);if(p===u)if(a[c])a[c].push(d);else{var v=a[c]=[d];i(c,!t.async,function(e){s[l]=s[c]=e;for(var t=0;t<v.length;)v[t++](e);delete a[c]})}else d(p)}}})},"url:build/copyright.txt":"/*\n Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.\n Available via Academic Free License >= 2.1 OR the modified BSD license.\n see: http://dojotoolkit.org/license for details\n*/\n\n","url:build/buildNotice.txt":"/*\n This is an optimized version of Dojo, built for deployment and not for\n development. To get sources and documentation, please visit:\n\n http://dojotoolkit.org\n*/\n\n","build/argv":function(){define(["require","dojo/json","dojo/has","./fs","./fileUtils","./process","./commandLineArgs","./stringify","./version","./messages","./v1xProfiles","dojo/text!./help.txt"],function(require,json,has,fs,fileUtils,process,argv,stringify,version,messages,v1xProfiles,help){eval(require.scopeify("./fileUtils"));var result={profiles:[]},cwd=process.cwd(),dojoPath=computePath(require.toUrl("dojo/package.json").match(/(.+)\/package\.json$/)[1],cwd),utilBuildscriptsPath=compactPath(catPath(dojoPath,"/../util/buildscripts")),printVersion=0,printHelp=0,checkArgs=0,illegalArgumentValue=function(e,t){messages.log("inputIllegalCommandlineArg",["switch",e,"position",t])},evalScriptArg=function(e){return e=="true"?!0:e=="false"?!1:e=="null"?null:isNaN(e)?json.parse('{"result":"'+e+'"}').result:Number(e)},readProfile=function(e,t){var n=getFilepath(t);if(!fileExists(t))return messages.log("inputFileDoesNotExist",[e,t]),0;try{var r=fs.readFileSync(t,"utf8")}catch(i){return messages.log("inputFailedReadfile",[e,t,"error",i]),0}e=="profileFile"&&(messages.log("inputProfileFileDeprecated"),e="profile");var s=function(e){var t=function(e,t){return e?e=computePath(e,t):typeof e=="undefined"&&(e=t),e};e.basePath=t(e.basePath,n),e.build&&e.build.basePath&&(e.build.basePath=t(e.build.basePath,n))},o,u;try{return r=fs.readFileSync(t,"utf8"),e=="require"?(o=new Function("var __result, require= function(config){__result=config;};"+r+"; return __result || require;"),u=o(),s(u)):e=="dojoConfig"?(o=new Function(r+"; return dojoConfig;"),u=o(),s(u)):e=="profile"&&(o=new Function("selfPath","logger","profile","dependencies",r+"; return {profile:profile, dependencies:dependencies}"),u=o(n,messages,0,0,0),u.profile?(u=u.profile,s(u)):u=v1xProfiles.processProfile(u.dependencies,dojoPath,utilBuildscriptsPath,n)),u.selfFilename=t,messages.log("pacify","processing "+e+" resource "+t),u}catch(i){return messages.log("inputFailedToEvalProfile",[e,t,"error",i]),0}},processHtmlDir=function(e){if(!fileUtils.dirExists(e))return messages.log("inputHTMLDirDoesNotExist",["directory",e]),0;var t=[];return fs.readdirSync(e).forEach(function(n){/\.html$/.test(n)&&t.push(e+"/"+n)}),t.length?v1xProfiles.processHtmlFiles(t,dojoPath,utilBuildscriptsPath):(messages.log("inputHTMLDirNoFiles",["directory",e]),0)},processHtmlFiles=function(e){var t=e.split(",").filter(function(e){return fileUtils.fileExists(e)?1:(messages.log("inputHTMLFileDoesNotExist",["filename",e]),0)});return t.length?v1xProfiles.processHtmlFiles(t,dojoPath,utilBuildscriptsPath):0},readPackageJson=function(e,t){if(!fileUtils.fileExists(e))messages.log(t,["filename",e]);else try{var n=json.parse(fs.readFileSync(e,"utf8"));return n.selfFilename=e,n}catch(r){messages.log("inputMalformedPackageJson",["filename",e])}return 0},processPackageJson=function(e){var t=catPath(e,"package.json"),n=readPackageJson(t,"inputMissingPackageJson");n&&(n.selfFilename=t,result.profiles.push({packages:[{name:n.progName||n.name,packageJson:n}]}))},readCopyrightOrBuildNotice=function(e,t){fileExists(e)||messages.log("inputFileDoesNotExist",[t,e]);try{var n=t=="copyrightFile"?"copyright":"buildNotice";result[n]=fs.readFileSync(e,"utf8")}catch(r){messages.log("inputFailedReadfile",[t,e,"error",r])}},normalizeSwitch={"-p":"profile","--profile":"profile","--profileFile":"profileFile",p:"profile",profile:"profile",profileFile:"profileFile","--package":"package","package":"package","--require":"require",require:"require","--dojoConfig":"dojoConfig",dojoConfig:"dojoConfig","--htmlDir":"htmlDir",htmlDir:"htmlDir","--htmlFiles":"htmlFiles",htmlFiles:"htmlFiles","--copyrightFile":"copyrightFile",copyrightFile:"copyrightFile","--buildNoticeFile":"buildNoticeFile",buildNoticeFile:"buildNoticeFile"};for(var arg,processVector=[],i=1,end=argv.length;i<end;){arg=argv[i++];switch(arg){case"-p":case"--profile":i<end?processVector.push([normalizeSwitch[arg],argv[i++],cwd]):illegalArgumentValue(arg,i);break;case"--profileFile":case"--require":case"--dojoConfig":case"--htmlDir":case"--htmlFiles":case"--copyrightFile":case"--buildNoticeFile":i<end?processVector.push([normalizeSwitch[arg],getAbsolutePath(argv[i++],cwd)]):illegalArgumentValue(arg,i);break;case"--package":i<end?argv[i++].split(",").forEach(function(e){processVector.push(["package",getAbsolutePath(e,cwd)])}):illegalArgumentValue(arg,i);break;case"--writeProfile":i<end?result.writeProfile=getAbsolutePath(argv[i++],cwd):illegalArgumentValue(arg,i);break;case"--check":result.check=!0;break;case"--check-args":checkArgs=!0;break;case"--check-discovery":result.checkDiscovery=!0,result.release=!0;break;case"--debug-check":result.debugCheck=!0;break;case"--clean":result.clean=!0;break;case"-r":case"--release":result.release=!0;break;case"--help":printHelp=!0;break;case"-v":printVersion=function(){messages.log("pacify",version+"")};break;case"--unit-test":i<end?result.unitTest=argv[i++]:illegalArgumentValue("unit-test",i);break;case"--unit-test-param":i<end?(result.unitTestParam=result.unitTestParam||[],result.unitTestParam.push(evalScriptArg(argv[i++]))):illegalArgumentValue("unit-test",i);break;default:var match=arg.match(/^\-\-?(.+)/);if(match&&i<end)result[match[1]]=evalScriptArg(argv[i++]);else{var parts=arg.split("=");if(parts.length==2)switch(parts[0]){case"p":case"profile":processVector.push([normalizeSwitch[parts[0]],parts[1]]);break;case"package":parts[1].split(",").forEach(function(e){processVector.push(["package",getAbsolutePath(e,cwd)])});break;case"profileFile":case"require":case"dojoConfig":case"htmlDir":case"htmlFiles":case"copyrightFile":case"buildNoticeFile":processVector.push([normalizeSwitch[parts[0]],getAbsolutePath(parts[1],cwd)]);break;default:result[parts[0]]=evalScriptArg(parts[1])}else illegalArgumentValue(arg,i)}}}var processingHtmlFiles=processVector.some(function(e){return e[0]=="htmlFiles"||e[0]=="htmlDir"});if(processingHtmlFiles)for(i=0;i<processVector.length;i++)if(processVector[i][0]=="profileFile"&&!fileExists(processVector[i][1])){messages.log("outputToProfileFileDeprecated"),result.writeProfile=processVector[i][1],processVector.splice(i,1);break}processVector.forEach(function(e){var t;switch(e[0]){case"profile":var n=getFiletype(e[1],!0),r;if(n==""){r=getAbsolutePath(e[1]+".profile.js",cwd),!fileExists(r)&&!/\//.test(e[1])&&(r=catPath(utilBuildscriptsPath,"profiles/"+e[1]+".profile.js"));if(!fileExists(r)){messages.log("inputFileDoesNotExist",["filename",r]);break}}else{if(/^(html|htm)$/.test(n)){messages.log("inputProcessingHtmlFileNotImplemented",["profile",r]);return}r=getAbsolutePath(e[1],cwd)}t=readProfile(e[0],r);break;case"htmlDir":t=processHtmlDir(e[1]);break;case"htmlFiles":t=processHtmlFiles(e[1]);break;case"package":t=processPackageJson(e[1]);break;case"copyrightFile":case"buildNoticeFile":t=readCopyrightOrBuildNotice(e[1],e[0]);break;default:t=readProfile(e[0],e[1])}t&&result.profiles.push(t)});if((printHelp||printVersion)&&argv.length==2||printHelp&&printVersion&&argv.length==3)return printHelp&&(messages.log("pacify",help),messages.log("pacify",version+""),messages.log("pacify","running under rhino"),0),printVersion&&printVersion(),process.exit(0),0;printVersion&&printVersion();if(checkArgs)return messages.log("pacify",stringify(result)),process.exit(0),0;if(messages.getErrorCount())return messages.log("pacify","errors on command line; terminating application."),process.exit(-1),0;if(!result.profiles.length)return messages.log("pacify","no profile provided; use the option --help for help"),process.exit(-1),0;if(result.unitTest=="argv"){var testId=result.unitTestParam[0],writingExpected=testId<0;writingExpected&&(testId=-testId),result.unitTestParam=testId;var expectedFilename=compactPath(utilBuildscriptsPath+"/../build/tests/argvTestsExpected.js"),expected=json.parse(fs.readFileSync(expectedFilename,"utf8")),pathNormalize=utilBuildscriptsPath.match(/(.*)\/util\/buildscripts/)[1],testResult=stringify(result).replace(RegExp(pathNormalize,"g"),"~"),passed=1;writingExpected?(console.log("result:"),debug(testResult),expected[result.unitTestParam]=testResult,fs.writeFileSync(expectedFilename,json.stringify(expected),"utf8")):(passed=testResult==expected[result.unitTestParam],console.log(result.unitTestParam+":"+(passed?"PASSED":"FAILED")),passed||(console.log("Expected:"),console.log(expected[result.unitTestParam]),console.log("But Got:"),console.log(testResult))),process.exit(passed?0:-1)}return{args:result,readPackageJson:readPackageJson,readProfile:readProfile}})},"build/fs":function(){define(["./rhino/fs"],function(e){return e})},"build/rhino/fs":function(){define([],function(){var e=function(e,t){return t=="utf8"&&(t="utf-8"),readFile(e,t||"utf-8")},t=function(e,t,n){var r=new java.io.File(e),i;n=="utf8"&&(n="UTF-8"),n?i=new java.io.OutputStreamWriter(new java.io.FileOutputStream(r),n):i=new java.io.OutputStreamWriter(new java.io.FileOutputStream(r));var s=new java.io.BufferedWriter(i);try{s.write(t)}finally{s.close()}};return{statSync:function(e){return new java.io.File(e)},mkdirSync:function(e){var t=new java.io.File(e);t.exists()||t.mkdirs()},readFileSync:e,readdirSync:function(e){return(new java.io.File(e)).listFiles().map(function(e){return e.name+""})},readFile:function(t,n,r){var i=e(t,n);r&&r(0,i)},writeFileSync:t,writeFile:function(e,n,r,i){arguments.length==3&&typeof r!="string"&&(i=r,r=0),t(e,n,r),i&&i(0)}}})},"build/fileUtils":function(){define(["./fs","./buildControlBase","dojo/has"],function(fs,bc,has){var getFilename=function(e){return/\//.test(e)?e.match(/^.*\/([^\/]+)$/)[1]:e},getFilepath=function(e){if(/\//.test(e)){var t=e.match(/^(.*)\/[^\/]+$/)[1];return t.length?t:"/"}return""},getFiletype=function(e,t){var n=e.match(/(\.([^\/]*))$/);return n&&(t?n[2]:n[1])||""},cleanupPath=function(e){return e=e||"",e=e.replace(/\\/g,"/"),e.length>1&&e.charAt(e.length-1)=="/"&&(e=e.substring(0,e.length-1)),e},catPath=function(e,t){if(arguments.length>2){for(var n=[],r=1;r<arguments.length;n.push(arguments[r++]));return catPath(e,catPath.apply(this,n))}return!t||!t.length?e:!e||!e.length?t:(e+"/"+t).replace(/\/\/\/?/g,"/")},compactPath=function(e){var t=[],n,r;e=e.replace(/\\/g,"/").split("/");while(e.length)n=e.shift(),n==".."&&t.length&&r!=".."?(t.pop(),r=t[t.length-1]):n!="."&&t.push(r=n);return t.join("/")},isAbsolutePathRe=has("is-windows")?/^((\\\\)|([^\/\\]+\:))/:/^\//,isAbsolutePath=function(e){return e&&e.length&&isAbsolutePathRe.test(e)},normalize=function(e){return has("is-windows")?e.replace(/\//g,"\\"):e},getAbsolutePath=function(e,t){return e=cleanupPath(e),isAbsolutePath(e)||(e=catPath(t,e)),compactPath(e)},computePath=function(e,t){return e=cleanupPath(e),compactPath(isAbsolutePath(e)?e:catPath(t,e))},getTimestamp=function(e){var t=function(e){return"-"+(e<10?"0"+e:e)};return e.getFullYear()+t(e.getMonth()+1)+t(e.getDate())+t(e.getHours())+t(e.getMinutes())+t(e.getSeconds())},dirExists=function(e){try{return fs.statSync(e).isDirectory()}catch(t){return!1}},fileExists=function(e){try{return fs.statSync(e).isFile()}catch(t){return!1}},checkedDirectories={},clearCheckedDirectoriesCache=function(){checkedDirectories={}},ensureDirectory=function(e){if(!checkedDirectories[e]){if(!dirExists(e)){ensureDirectory(getFilepath(e));try{fs.mkdirSync(e,493)}catch(t){}}checkedDirectories[e]=1}},ensureDirectoryByFilename=function(e){ensureDirectory(getFilepath(e))},readAndEval=function(filename,type){try{if(fileExists(filename))return eval("("+fs.readFileSync(filename,"utf8")+")")}catch(e){bc.log("failedReadAndEval",["filename",filename,"type",type,"error",e])}return{}},maybeRead=function(e){try{if(fileExists(e))return fs.readFileSync(e,"utf8")}catch(t){}return 0};return{getFilename:getFilename,getFilepath:getFilepath,getFiletype:getFiletype,cleanupPath:cleanupPath,isAbsolutePath:isAbsolutePath,normalize:normalize,getAbsolutePath:getAbsolutePath,catPath:catPath,compactPath:compactPath,computePath:computePath,getTimestamp:getTimestamp,dirExists:dirExists,ensureDirectory:ensureDirectory,ensureDirectoryByFilename:ensureDirectoryByFilename,clearCheckedDirectoriesCache:clearCheckedDirectoriesCache,readAndEval:readAndEval,maybeRead:maybeRead,fileExists:fileExists}})},"build/process":function(){define(["./rhino/process"],function(e){return e})},"build/rhino/process":function(){define([],function(){return{cwd:function(){return environment["user.dir"]},exit:function(e){e&&java.lang.System.exit(e),quit()},exec:function(){for(var e=[],t=0;t<arguments.length-3;t++)e.push(arguments[t]);var n=arguments[t++],r=arguments[t++],i=arguments[t],s={output:""};e.push(s);try{runCommand.apply(this,e),i&&i(0,s.output)}catch(o){r.log("execFailed",["message",n,"output",s.output+"","error",o]),i&&i(-1,n+"\n"+s.output+"\n"+o)}}}})},"build/commandLineArgs":function(){define([],function(){var e=[];return e})},"build/stringify":function(){define(["dojo/json","./buildControlBase"],function(e,t){var n=" ",r=2,i=function(e){r=e},s=function(e,t){e*=t||r;while(n.length<e)n+=n;return n.substring(0,e)},o=function(e){return/^[\w\$]+$/.test(e)?e+":":"'"+e+"':"},u,a,f=function(e){return e.replace(/(\r\n)|(\n\r)/g,"\n").replace(/\r/,"\n").split("\n")},l=function(n,r){r?r++:(u="",a=!1,r=1);var i,c,h,p,d=t.newline;switch(typeof n){case"undefined":u+="undefined";break;case"boolean":u+=n?"true":"false";break;case"number":u+=n.toString();break;case"string":u+=e.stringify(n);break;case"object":if(n===null)u+="null";else if(n instanceof RegExp)u+=RegExp.toString();else if(n instanceof Array)if(n.length>1){u+="["+d;for(p=0;p<n.length-1;p++)u+=s(r),l(n[p],r),u+=","+d;u+=s(r),l(n[p],r),u+=d+s(r-1)+"]"}else n.length?(u+="[",l(n[0],r),u+="]"):u+="[]";else{i=[];for(h in n)i.push(h);i.sort();if(i.length>1){u+="{"+d;for(p=0;p<i.length-1;p++)u+=s(r)+o(i[p]),l(n[i[p]],r),u+=","+d;u+=s(r)+o(i[p]),l(n[i[p]],r),u+=d,u+=s(r-1)+"}"}else i.length?(u+="{"+o(i[0]),l(n[i[0]],r),u+="}"):u+="{}"}break;case"function":c=s(r);var v=f(n.toString()),m=v.shift(),g=Number.MAX_VALUE;v.forEach(function(e){var t=e.match(/(\s*)\S/);t&&(g=Math.min(g,t[1].length))}),g==Number.MAX_VALUE&&(g=0),v.unshift(s(g,1)+m),u+=d+v.map(function(e){return c+e.substring(g)}).join(d);break;default:u+="undefined /* unsolved */",a=!0}return u.unsolved=a,u};return l.setIndentFactor=i,l.split=f,l})},"build/version":function(){define([],function(){var e="$Rev: 23930 $".match(/\d+/),t={major:1,minor:7,patch:0,flag:"dev",revision:e?+e[0]:NaN,toString:function(){var e=t;return e.major+"."+e.minor+"."+e.patch+e.flag+" ("+e.revision+")"}};return t})},"build/v1xProfiles":function(){define(["require","./buildControlBase","./fs","./fileUtils"],function(require,bc,fs,fileUtils){eval(require.scopeify("./fs, ./fileUtils"));var mix=function(e,t){e=e||{},t=t||{};for(var n in t)e[n]=t[n];return e},defaultBuildProps={staticHasFeatures:{},defaultConfig:{hasCache:{}}},processProfile=function(e,t,n,r){var i,s={},o=e.layers||[],u=e.prefixes||[];for(i in defaultBuildProps)s[i]=defaultBuildProps[i];for(i in e)if(/^(loader|xdDojoPath|scopeDjConfig|xdScopeArgs|xdDojoScopeName|expandProvide|buildLayers|query|removeDefaultNameSpaces|addGuards)$/.test(i))bc.log("inputDeprecated",["switch",i]);else if(i=="staticHasFeatures")mix(s.staticHasFeatures,e.staticHasFeatures);else if(i=="defaultConfig")for(i in e.defaultConfig)i=="hasCache"?mix(s.defaultConfig.hasCache,e.defaultConfig.hasCache):s.defaultConfig[i]=e.defaultConfig[i];else s[i]=e[i]=="false"?!1:e[i];var a={},f={},l={};u.forEach(function(e){var t=e[0];a[t]=e[1],f[t]=e[2]&&(maybeRead(computePath(e[2],n))||maybeRead(computePath(e[2],r))||e[2])||"",l[t]=e[3]});var c=s.basePath=n;a.dojo||(a.dojo=t),a.dojo=computePath(a.dojo,c),a.dojo!=t&&bc.log("buildUsingDifferentDojo"),t=a.dojo;for(var h in a)h!="dojo"&&(a[h]=computePath(a[h],t));s.releaseDir=computePath((e.releaseDir||"../../release").replace(/\\/g,"/"),c),typeof e.releaseName=="undefined"&&(e.releaseName="dojo"),e.releaseName||(e.releaseName=""),s.releaseName=e.releaseName.replace(/\\/g,"/");var p=s.packages=[];for(h in a)p.push({name:h,location:a[h],copyright:f[h]!==undefined?f[h]:bc.defaultCopyright,runtime:l[h]});var d=function(e,t){if(e!==undefined)return e;var n=f[t.split("/",1)[0]];return n?n:bc.defaultCopyright+bc.defaultBuildNotice},v=function(e){return e?e.map(function(e){return b[e=e.replace(/\./g,"/")]=1,e}):[]},m=function(e,t){return e?e.map(function(e){if(!/\//.test(e)&&!/\.js$/.test(e))return b[e.split(".")[0]]=1,e;var n;return/^\.\//.test(e)&&(e=e.substring(2)),e=="dojo/dojo"?e:e=="dojo.js"?"dojo/dojo":(n=e.match(g))?(b[n[1]]=1,n[1]):(n=e.match(y))?(bc.log("assumeLayerDependencyIsDojoModule",["layer dependency",e]),n[1]):(bc.log("cannotDeduceModuleIdFrom16LayerDependency",["layer name",t,"layer dependency name",e]),"error")}):[]},g=/^\.\.\/([^\.].*)\.js$/,y=/^([^\.].*)\.js$/,b={},w={};o.forEach(function(e){var t,n;e.resourceName?n=e.resourceName.replace(/\./g,"/"):(n=e.name,/^\.\//.test(n)&&(n=n.substring(2)),e.name=="dojo.js"?(n="dojo/dojo",e.customBase||e.dependencies.push("dojo/main"),e.boot=!0):(t=n.match(g))?n=t[1]:(t=n.match(y))?(n="dojo/"+t[1],bc.log("assumeLayerIsDojoModule",["layer name",e.name])):bc.log("cannotDeduceModuleIdFrom16LayerName",["layer name",e.name])),e.include=v(e.dependencies),e.exclude=m(e.layerDependencies,e.name),n!="dojo/dojo"&&!e.customBase&&e.exclude.push("dojo/dojo"),e.name=n,b[n.split("/")[0]]=1,e.copyright=d(e.copyright,n),w[n]=e});for(i in b){var E=i.split("/")[0];a[E]||bc.log("missingPrefix",["top-level module",E])}return s.layers=w,s},processHtmlFiles=function(e,t,n){bc.log("processHtmlFiles",["files",e.join(", ")]);var r="",i={},s="",o={dijit:!0,dojox:!0};e.forEach(function(e){var t=[],n=function(e){i[e]?i[e]=i[e].filter(function(e){return t.indexOf(e)>-1}):i[e]=t.concat(),e.indexOf(".")>-1&&(o[e.substring(e,e.indexOf("."))]=!0),t.push(e)},u=fs.readFileSync(e,"utf8");u.replace(/<script [^>]*src=["']([^'"]+)["']/gi,function(t,i){i.indexOf("dojo/dojo.js")>-1?(s=i.substring(0,i.indexOf("dojo/dojo.js")),r||(r=fileUtils.getFilepath(e))):n(i=i.substring(s.length,i.length-3).replace(/\//g,"."))}),u.replace(/dojo\.require\(["']([^'"]+)["']\)/g,function(e,t){n(t)})});var u=[];for(s in o)u.push([s,"../"+s]);var a=[];for(var f in i)a.push({name:"../"+f.replace(/\./g,"/")+".js",dependencies:[f.replace(/\//g,".")],layerDependencies:i[f].map(function(e){return"../"+e.replace(/\./g,"/")+".js"})});var l={layers:a,prefixes:u,basePath:r};return processProfile(l,t,n)};return{processProfile:processProfile,processHtmlFiles:processHtmlFiles}})},"url:build/help.txt":"NAME\n The Dojo Builder - Read, process, and write a set of resources as instructed by a profile.\n\nDESCRIPTION\n Discover and process a set of resources with an ordered synchronized set of transforms.\n\n See http://dojotoolkit.org/reference-guide/build/index.html for reference documentation.\n \n See http://dojotoolkit.org/reference-guide/build/qref.html for a quick reference manual.\n\n Typically this program is executed with the convience wrapper /util/buildscripts/build.bat (Window) or\n /util/buildscripts/build.sh (all other environments); it may also be executed explicitly.\n\n Usage with the build script on non-windows:\n path/to/util/buildscripts/build.sh [options]\n \n Usage with the build script on windows:\n IMPORTANT: the util/buildscripts directory must be the current working directory\n build.bat [options]\n\n Explicit usage with node.js:\n node path/to/dojo/dojo.js load=build [options] \n \n Explicit usage with java:\n java -Xms256m -Xmx256m -jar path/to/util/shrinksafe/js.jar path/to/dojo/dojo.js baseUrl=path/to/dojo load=build [options]\n \n IMPORTANT:\n This program assumes the default directory structure provided with the standard dojo source release.\n \n IMPORTANT:\n When using v1.6- profiles, this program assumes the current working directory is utils/buildscripts.\n\nOPTIONS\n -p <filename>\n --profile <filename> read profile for file\n \n -p <profile>\n --profile <profile> read profile from profile in util/buildscripts/profiles\n \n --package <path> read profile from package.json located in the directory path\n \n --require <filename>\n --dojoConfig read profile from loader configuration \n \n --htmlFiles <file-list> deduce profile from HTML file(s); file-list is a comma-separated list of filenames\n \n --htmlDir <path> deduce profile from all HTML files in directory at path\n \n --check-args print computed raw command line input, including raw profiles, then terminate\n \n --check print computed profile, then terminate\n \n --check-discovery print all discovered resources, then terminate\n \n --debug-check print computed profile, including internal structures\n \n -r\n --release process the build control script(s) and/or profile(s) and transform sources into a release\n \n --releaseDir <path> base directory for build output\n \n --releaseName <string> path segment to append to releaseDir that gives base directory for build output\n \n --writeProfile <filename> write the processed profile to filename\n \n --copyTests Copy test files and the DOH package.\n \n --mini Ignore resources tagged as not mini (e.g. tests, demos dijit/bench, etc.)\n \n -v print the program's version number\n \n --help this help message\n \n Scalar profile property values may also be specified as options with the syntax\n \n --<profile-property-name> <value>\n \n","build/build.profile":function(){var e=function(){var e=/^build\/examples\//,t={"build/transforms/dojoBoot":1,"build/optimizeRunner":1};return{resourceTags:{amd:function(n,r){var i=!e.test(r)&&!(r in t)&&/\.js$/.test(n);return i},miniExclude:function(n,r){return e.test(r)||!/\.js$/.test(n)||r in t}}}}()},"build/discover":function(){define(["./buildControl","./fileUtils","./fs"],function(e,t,n){var r={},i=["trees","dirs","files"],s={},o={},u=t.getFilepath,a=t.catPath,f=t.compactPath,l=function(t,n){t.tag||(t.tag={}),n&&n(t),e.start(t),s[u(t.src)]=1,o[u(t.dest)]=1},c=function(e){var t=function(e){return typeof e=="function"?e:function(t){return e.test(t)}},n={},r=!1;for(var i in e)n[i]=t(e[i]),r=!0;return r?function(e){for(var t in n)n[t](e.src,e.mid,e)&&(e.tag[t]=1)}:0},h=function(){return 0},p=function(e){return e?typeof e=="function"?e:function(t){return e.test(t)}:h},d=function(e,t,i,s,o,u){var a=e+(i?"/"+i:""),f=a+"/",l=i?i+"/":"",c=[];if(r[a])return;r[a]=1,n.readdirSync(a).forEach(function(e){var r=l+e;if(!s||!s(r)){var i=f+e,u=n.statSync(i);u.isDirectory()?c.push(r):o(i,t+"/"+r)}}),u&&c.length&&c.forEach(function(n){d(e,t,n,s,o,1)})},v=function(e,t){t(e[0],e[1])},m=function(n){return t.dirExists(n)?1:(e.log("missingDirDuringDiscovery",["directory",n]),0)},g=function(e,t){m(e[0])&&d(e[0],e[1],0,p(e[2]),t,0,0)},y=function(e,t){m(e[0])&&d(e[0],e[1],0,p(e[2]),t,1)},b={files:v,dirs:g,trees:y},w=function(t,n){var r;for(var s=t.trees||[],o=0;o<s.length;o++)if(s[o][0]==t.location){r=s[o];break}r||(r=[t.location,n.location,/(\/\.)|(^\.)|(~$)/]);var u=[];y(r,function(e){u.push(e)});var f={},h={},p=t.location.length+1,d=t.name,v=d?d+"/":"",m=d&&e.getSrcModuleInfo(d),g=d&&m.url;u.forEach(function(t){var n=/\.js$/.test(t),r=v+t.substring(p,n?t.length-3:t.length),i=n&&e.getSrcModuleInfo(r);n?t==g?f[d]=m:f[r]=i:h[r]=[t,r]});for(var w in t.modules){var E=v+w,S=e.getSrcModuleInfo(E);typeof t.modules[w]=="string"&&(S.url=t.modules[w]),f[E]=S,delete h[E]}var x=c(t.resourceTags);for(var T in f){S=f[T];var N={src:S.url,dest:e.getDestModuleInfo(S.mid).url,pid:S.pid,mid:S.mid,pack:t,deps:[]};l(N,x)}var C=v.length;for(T in h)N={src:h[T][0],mid:h[T][1],dest:a(n.location,T.substring(C))},l(N,x);for(o=0;o<i.length;o++){var k=i[o];t[k]&&t[k].forEach(function(e){b[k](e,function(e,t){l({src:e,dest:t},x)})})}},E=function(){for(var t in e.packages)w(e.packages[t],e.destPackages[t])};return function(){e.waiting++,l({tag:{report:1},src:"*report",dest:"*report",reports:[]}),E();var t=c(e.resourceTags);for(var n=0;n<i.length;n++){var r=i[n];e[r].forEach(function(e){b[r](e,function(e,n){l({src:e,dest:n},t)})})}for(var s in e.layers){var o=e.layers[s],u=e.getSrcModuleInfo(s),a=e.resources[u.url];a||(a={tag:{synthetic:1,amd:1},src:u.url,dest:e.getDestModuleInfo(u.mid).url,pid:u.pid,mid:u.mid,pack:u.pack,deps:[],text:"define([], 1);"+e.newline,getText:function(){return this.text},encoding:"utf8"},l(a)),a.layer=o,o.boot&&(e.loader?e.loader.boots.push(a):e.log("inputNoLoaderForBoot",["boot layer",s]))}e.passGate()}})},"build/buildControl":function(){define(["require","dojo/_base/array","dojo/_base/lang","./argv","./fs","./fileUtils","./buildControlDefault","./v1xProfiles","./stringify","./process","./messages","dojo/text!./help.txt"],function(require,array,lang,argv,fs,fileUtils,bc,v1xProfiles,stringify,process,messages,helpText){function getDiscreteLocales(e){for(var t=e.split("-"),n=[],r="",i=0;i<t.length;i++)n.push(r+=(i?"-":"")+t[i]);return n}function fixupOptimize(e){return e&&(e+="",e=e.toLowerCase(),/^((comments|shrinksafe)(\.keeplines)?)|(closure(\.keeplines)?)$/.test(e)?/shrinksafe/.test(e)&&stripConsole&&(e+="."+stripConsole):(bc.log("inputUnknownOptimize",["value",e]),e=0)),e}if(!isNaN(argv))return bc.exitCode=argv,bc;eval(require.scopeify("./fs, ./fileUtils, ./v1xProfiles"));var isString=function(e){return typeof e=="string"},isNonemptyString=function(e){return isString(e)&&e.length},isDefined=function(e){return typeof e!="undefined"},cleanupFilenamePair=function(e,t,n,r){var i;return isString(e)?i=[computePath(e,t),computePath(e,n)]:i=[computePath(e[0],t),computePath(e[1],n)].concat(e.slice(2)),(!isAbsolutePath(i[0])||!isAbsolutePath(i[1]))&&bc.log("inputInvalidPath",["path",e,"hint",r]),i},slashTerminate=function(e){return e+/\/$/.test(e)?"":"/"},isEmpty=function(e){for(var t in e)return!1;return!0},cleanDeprecated=function(e,t){var n=[];for(p in e)/^(log|loader|xdDojoPath|scopeDjConfig|xdScopeArgs|xdDojoScopeName|expandProvide|buildLayers|query|removeDefaultNameSpaces|addGuards)$/.test(p)&&(n.push(p),bc.log("inputDeprecated",["switch",p,t]));n.forEach(function(t){delete e[t]})},mix=function(e,t){e=e||{},t=t||{};for(var n in t)e[n]=t[n];return e},mixPackage=function(e){var t=e.name;bc.packageMap[t]=mix(bc.packageMap[t],e)},mixProfileObject=function(e){cleanDeprecated(e,e.selfFilename);for(var t in e)/paths|plugins|messages|transforms|staticHasFeatures|packages|packagePaths|defaultConfig/.test(t)||(bc[t]=e[t]);["paths","plugins","transforms","staticHasFeatures"].forEach(function(t){bc[t]=mix(bc[t],e[t])});if(e.messageCategories)for(t in e.messageCategories)bc.addCategory(t,e.messageCategories[t]);(e.messages||[]).forEach(function(e){bc.addMessage.apply(bc,e)});for(var n in e.packagePaths)e.packagePaths[n].forEach(function(e){isString(e)&&(e={name:e}),e.location=catPath(n,e.name),mixPackage(e)});(e.packages||[]).forEach(function(e){isString(e)&&(e={name:e}),mixPackage(e)});for(t in e.defaultConfig)t=="hasCache"?mix(bc.defaultConfig.hasCache,e.defaultConfig.hasCache):bc.defaultConfig[t]=e.defaultConfig[t]};argv.args.profiles.forEach(function(e){var t=mix({},e),n=e.build;delete t.build,mixProfileObject(t),n&&mixProfileObject(n)}),cleanDeprecated(argv.args,"command line");for(var argName in argv.args)argName!="profiles"&&(bc[argName]=argv.args[argName]);bc.basePath=computePath(bc.basePath,process.cwd());var releaseDir=catPath(bc.releaseDir||"../release",bc.releaseName||"");bc.destBasePath=computePath(releaseDir,bc.basePath),bc.copyright=isNonemptyString(bc.copyright)?maybeRead(computePath(bc.copyright,bc.basePath))||bc.copyright:"",bc.copyrightLayers=!!bc.copyrightLayers,bc.copyrightNonlayers=!!bc.copyrightNonlayers,function(){for(var e in{files:1,dirs:1,trees:1})bc[e]instanceof Array&&(bc[e]=bc[e].map(function(t){return cleanupFilenamePair(t,bc.basePath,bc.destBasePath,e)}))}(),function(){var e={},t,n;for(t in bc.replacements)e[computePath(t,bc.basePath)]=bc.replacements[t];bc.replacements=e}(),"mini"in bc||(bc.mini=!0),"copyTests"in bc||(bc.copyTests=!bc.mini),isString(bc.copyTests)&&(bc.copyTests=bc.copyTests.toLowerCase()),bc.copyTests!="build"&&(bc.copyTests=!!bc.copyTests),isString(bc.localeList)&&(bc.localeList=bc.localeList.split(","));if(bc.localeList&&bc.localeList.length){bc.localeList.indexOf("ROOT")==-1&&bc.localeList.push("ROOT");var localeList={};bc.localeList.forEach(function(e){e=lang.trim(e),localeList[e]=getDiscreteLocales(e)}),bc.localeList.discreteLocales=localeList}else bc.localeList=!1;(function(){function e(e){var t=e.name,n=e.basePath||bc.basePath;e.packageJson||(e.packageJson=argv.readPackageJson(catPath(computePath(e.location||"./"+t,n),"package.json"),"missingPackageJson"));var r=e.packageJson;if(r){r.version&&(bc.log("packageVersion",["package",t,"version",r.version]),typeof bc.version=="undefined"&&t=="dojo"&&(bc.version=r.version)),r.main&&!e.main&&(e.main=r.main),r.directories&&r.directories.lib&&!e.location&&(e.location=catPath(getFilepath(r.selfFilename),r.directories.lib));if("dojoBuild"in r){var i=argv.readProfile("profile",catPath(getFilepath(r.selfFilename),r.dojoBuild));for(var s in i)s in e?s in{resourceTags:1}&&mix(e[s],i[s]):e[s]=i[s]}else bc.log("missingProfile",["package",r.name])}e.main=isString(e.main)?e.main:"main",e.main.indexOf("./")==0&&(e.main=e.main.substring(2)),e.destMain&&e.destMain.indexOf("./")==0&&(e.destMain=e.destMain.substring(2)),e.location=computePath(e.location||"./"+t,n),e.copyright=isNonemptyString(e.copyright)?maybeRead(computePath(e.copyright,e.location))||maybeRead(computePath(e.copyright,bc.basePath))||e.copyright:e.copyright?bc.copyright:"",e.copyrightLayers=isDefined(e.copyrightLayers)?!!e.copyrightLayers:bc.copyrightLayers,e.copyrightNonlayers=isDefined(e.copyrightNonlayers)?!!e.copyrightNonlayers:bc.copyrightNonlayers;var o=bc.destPackages[t]={name:e.destName||t,main:e.destMain||e.main,location:computePath(e.destLocation||"./"+(e.destName||t),bc.destBasePath)},u=e.providedMids||[];e.providedMids=[],array.forEach(u,function(t){e.providedMids[t]=!0}),delete e.destName,delete e.destMain,delete e.destLocation,e.trees||(e.trees=[[e.location,o.location,/(\/\.)|(^\.)|(~$)/]]);for(var a in{files:1,dirs:1,trees:1})e[a]=(e[a]||[]).map(function(n){return cleanupFilenamePair(n,e.location,o.location,a+" in package "+t)})}bc.packages=bc.packageMap,delete bc.packageMap,bc.destPackages={};for(var t in bc.packages){var n=bc.packages[t];n.name=n.name||t,e(n)}bc.copyTests&&!bc.packages.doh&&(bc.packages.doh={name:"doh",location:compactPath(bc.packages.dojo.location+"/../util/doh"),destLocation:"util/doh"},e(bc.packages.doh)),require.computeMapProg(bc.paths,bc.pathsMapProg=[]),require.computeMapProg(bc.destPaths||bc.paths,bc.destPathsMapProg=[]),bc.srcModules={},bc.destModules={};var r=function(e,t){return e.substring(0,e.length-t)};bc.getSrcModuleInfo=function(e,t,n){if(n){var i=require.getModuleInfo(e+"/x",t,bc.packages,bc.srcModules,bc.basePath+"/",{},[],!0);return i.mid=r(i.mid,2),i.pid!==0&&(i.url=r(i.url,5)),i}return require.getModuleInfo(e,t,bc.packages,bc.srcModules,bc.basePath+"/",{},[],!0)},bc.getDestModuleInfo=function(e,t,n){if(n){var i=require.getModuleInfo(e+"/x",t,bc.destPackages,bc.destModules,bc.destBasePath+"/",{},[],!0);return i.mid=r(i.mid,2),i.pid!==0&&(i.url=r(i.url,5)),i}return require.getModuleInfo(e,t,bc.destPackages,bc.destModules,bc.destBasePath+"/",{},[],!0)}})(),bc.selectorEngine&&bc.defaultConfig&&bc.defaultConfig.hasCache&&(bc.defaultConfig.hasCache["config-selectorEngine"]=bc.selectorEngine),function(){var e,t={};for(var n in bc.layers){e=bc.layers[n],e.exclude=e.exclude||[],e.include=e.include||[],e.boot=!!e.boot,e.discard=!!e.discard,e.noref=e.noref!==undefined?!!e.noref:!!bc.noref,e.compat=e.compat!==undefined?e.compat:bc.layerCompat||"";var r=n.split("/")[0],i=bc.packages[r],s=i&&i.location,o=i&&i.copyright,u=i&&i.copyrightLayers;isNonemptyString(e.copyright)?e.copyright=s&&maybeRead(computePath(e.copyright,s))||maybeRead(computePath(e.copyright,bc.basePath))||e.copyright:isDefined(e.copyright)?e.copyright=e.copyright?o||bc.copyright:"":e.copyright=i?u&&(o||bc.copyright):bc.copyrightLayers&&bc.copyright,e.copyright||(e.copyright=""),t[n]=e}bc.layers=t;if(bc.packages.dojo){bc.layers["dojo/dojo"]||(bc.layers["dojo/dojo"]={name:"dojo/dojo",copyright:bc.defaultCopyright+bc.defaultBuildNotice,include:["dojo/main"],exclude:[]});for(var a in bc.layers)e=bc.layers[a],a=="dojo/dojo"?e.customBase||e.include.indexOf("dojo/main")==-1&&e.include.push("dojo/main"):((e.boot||!e.customBase)&&e.exclude.indexOf("dojo/dojo")==-1&&e.exclude.push("dojo/dojo"),e.customBase=e.boot)}}();var deleteStaticHasFlagSet=[];for(var p in bc.staticHasFeatures)bc.staticHasFeatures[p]==-1&&deleteStaticHasFlagSet.push(p);deleteStaticHasFlagSet.forEach(function(e){delete bc.staticHasFeatures[e]}),bc.action&&bc.action.split(/\W|\s/).forEach(function(e){e=e.match(/\s*(\S+)\s*/)[1];switch(e){case"check":bc.check=!0;break;case"clean":bc.clean=!0;break;case"release":bc.release=!0;break;default:bc.log("inputUnknownAction",["action",e])}}),bc.clean&&bc.log("cleanRemoved");var stripConsole=bc.stripConsole;return!stripConsole||stripConsole=="none"?stripConsole=!1:stripConsole=="normal,warn"?(bc.log("inputDeprecatedStripConsole",["deprecated","normal,warn","use","warn"]),stripConsole="warn"):stripConsole=="normal,error"?(bc.log("inputDeprecatedStripConsole",["deprecated","normal,error","use","all"]),stripConsole="all"):/normal|warn|all|none/.test(stripConsole)||bc.log("inputUnknownStripConsole",["value",stripConsole]),bc.stripConsole=stripConsole,bc.optimize=fixupOptimize(bc.optimize),bc.layerOptimize=fixupOptimize(bc.layerOptimize),function(){var e={dojo:"dojo",dijit:"dijit",dojox:"dojox"};(bc.scopeMap||[]).forEach(function(t){t[1]?e[t[0]]=t[1]:delete e[t[0]]}),bc.scopeMap=e,bc.scopeNames=[];for(var t in e)bc.scopeNames.push(t)}(),bc.internSkip=function(){return!1},bc.internSkipList&&(bc.internSkip=function(e,t){return bc.internSkipList.some(function(n){var r=!1;return n instanceof RegExp?r=n.test(e):n instanceof Function?r=n(e,t):r=n==e,r&&bc.log("internStrings",["module",t.mid,"skipping",e]),r})}),bc.check&&(function(){var e={basePath:1,buildReportDir:1,buildReportFilename:1,closureCompilerPath:1,copyright:1,copyrightLayers:1,copyrightNonlayers:1,copyTests:1,destBasePath:1,destModules:1,destPackages:1,destPathTransforms:1,destPathsMapProg:1,dirs:1,discoveryProcs:1,files:1,internStringsSkipList:1,layers:1,localeList:1,maxOptimizationProcesses:1,mini:1,optimize:1,layerOptimize:1,"package":1,packages:1,paths:1,pathsMapProg:1,plugins:1,replacements:1,startTimestamp:1,staticHasFeatures:1,stripConsole:1,trees:1};for(var t in e)e[t]=bc[t];bc.log("pacify",stringify(e))}(),bc.release=0),bc.writeProfile,bc.debugCheck&&(function(){var e={};for(var t in bc)bc[t]!==messages[t]&&typeof bc[t]!="function"&&(e[t]=bc[t]);console.log("profile:"),console.log(stringify(e)),e={};for(t in require)t!="modules"&&t!="module"&&t!="rawConfig"&&typeof require[t]!="function"&&(e[t]=require[t]);console.log("require config:"),console.log(stringify(e))}(),bc.release=0),function(){for(var e={},t=0;t<bc.gates.length;t++)e[bc.gates[t][1]]=t;var n=bc.transforms,r;for(var i in n)r=e[n[i][1]],typeof r=="undefined"?bc.log("inputUnknownGate",["transform",i,"gate",n[i][1]]):n[i][1]=r}(),function(){var e=bc.transforms;bc.transformJobs.forEach(function(t){var n=!1,r=t[1].map(function(t){return e[t]?[t,e[t][1]]:(n=!0,bc.log("inputUnknownTransform",["transform",t]),0)});if(!n){for(var i=0,s=r.length-1;i<s;)if(r[i][1]>r[i+1][1]){var o=r[i];r[i]=r[i+1],r[i+1]=o,i&&i--}else i++;t[1]=r}})}(),argv.args.unitTest=="dumpbc"&&console.log(stringify(bc)+"\n"),bc.quiet&&function(){var e={};for(var t in bc.pacifySet)bc.messageMap[t][1]>199&&(e[t]=1);for(t in e)delete bc.pacifySet[t]}(),bc.unitTestComputedProfile&&(bc.unitTestComputedProfile(),bc.release=0),!bc.unitTestComputedProfile&&!bc.check&&!bc.debugCheck&&!bc.clean&&!bc.release&&bc.log("pacify","Nothing to do; you must explicitly instruct the application to do something; use the option --help for help."),bc})},"build/buildControlDefault":function(){define(["./buildControlBase"],function(e){var t={internStrings:!0,internSkipList:[],optimize:"",layerOptimize:"shrinksafe",cssOptimize:"",cssImportIgnore:"",stripConsole:"normal",scopeMap:[],insertAbsMids:1,applyDojoPragmas:1,localeList:"ar,ca,cs,da,de,el,en-gb,en-us,es-es,fi-fi,fr-fr,he-il,hu,it-it,ja-jp,ko-kr,nl-nl,nb,pl,pt-br,pt-pt,ru,sk,sl,sv,th,tr,zh-tw,zh-cn".split(","),replaceLoaderConfig:1,defaultConfig:{hasCache:{"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1,"config-tlmSiblingOfDojo":1,"config-selectorEngine":"acme"},async:0},files:[],dirs:[],trees:[],replacements:{},staticHasFeatures:{"extend-dojo":1,"dojo-amd-factory-scan":0,"dojo-built":1,"dojo-combo-api":0,"dojo-log-api":1,"dojo-test-sniff":0,"dojo-config-addOnLoad":1,"dojo-config-api":1,"dojo-config-require":1,"dojo-dom-ready-api":1,"dojo-guarantee-console":1,"dojo-has-api":1,"dojo-inject-api":1,"dojo-loader":1,"dojo-modulePaths":1,"dojo-moduleUrl":1,"dojo-publish-privates":0,"dojo-requirejs-api":0,"dojo-sniff":1,"dojo-sync-loader":1,"dojo-timeout-api":1,"dojo-trace-api":0,"dojo-undef-api":0,"dojo-v1x-i18n-Api":1,"dojo-xhr-factory":1,"dojo-fast-sync-require":1,"config-deferredInstrumentation":1,dom:1,"host-browser":1,"host-node":0,"host-rhino":0},discoveryProcs:["build/discover"],plugins:{"dojo/text":"build/plugins/text","dojo/i18n":"build/plugins/i18n","dojo/has":"build/plugins/has","dojo/domReady":"build/plugins/domReady","dojo/loadInit":"build/plugins/loadInit","dojo/require":"build/plugins/require","dojo/selector/_loader":"build/plugins/querySelector"},gates:[[0,"read","reading resources"],[0,"text","processing raw resource content"],[0,"tokenize","tokenizing resource"],[0,"tokens","processing resource tokens"],[0,"parse","parsing resource"],[1,"ast","processing resource AST"],[1,"optimize","executing global optimizations"],[1,"write","writing resources"],[1,"cleanup","cleaning up"],[1,"report","reporting"]],transformConfig:{},transforms:{trace:["build/transforms/trace","read"],read:["build/transforms/read","read"],dojoPragmas:["build/transforms/dojoPragmas","read"],insertSymbols:["build/transforms/insertSymbols","read"],depsDeclarative:["build/transforms/depsDeclarative","read"],depsScan:["build/transforms/depsScan","ast"],hasFixup:["build/transforms/hasFixup","ast"],write:["build/transforms/write","write"],writeAmd:["build/transforms/writeAmd","write"],writeOptimized:["build/transforms/writeOptimized","write"],copy:["build/transforms/copy","write"],writeDojo:["build/transforms/writeDojo","write"],optimizeCss:["build/transforms/optimizeCss","optimize"],writeCss:["build/transforms/writeCss","write"],hasFindAll:["build/transforms/hasFindAll","read"],hasReport:["build/transforms/hasReport","cleanup"],depsDump:["build/transforms/depsDump","cleanup"],dojoReport:["build/transforms/dojoReport","report"],report:["build/transforms/report","report"]},transformJobs:[[function(e,t){return t.mini&&e.tag.miniExclude||!t.copyTests&&e.tag.test||e.tag.ignore},[]],[function(e,t){return e.tag.copyOnly},["copy"]],[function(e,t){return e.tag.report},["dojoReport","insertSymbols","report"]],[function(e,t){return e.mid=="dojo/dojo"?(t.loader=e,e.boots=[],e.deps=[],t.amdResources[e.mid]=e,!0):!1},["read","dojoPragmas","hasFindAll","hasFixup","writeDojo","writeOptimized"]],[function(e,t){return/^\w+\/has$/.test(e.mid)?(t.amdResources[e.mid]=e,!0):!1},["read","dojoPragmas","hasFindAll","hasFixup","depsScan","writeAmd","writeOptimized","hasReport","depsDump"]],[function(e,t){return!!e.tag.flattenedNlsBundle},["writeAmd","writeOptimized"]],[function(e,t){return/\/nls\//.test(e.mid)||/\/nls\/.+\.js$/.test(e.src)?(e.tag.nls=1,t.amdResources[e.mid]=e,!0):!1},["read","dojoPragmas","hasFindAll","hasFixup","depsScan","writeAmd","writeOptimized"]],[function(e,t){return e.tag.synthetic&&e.tag.amd?(t.amdResources[e.mid]=e,!0):!1},["depsScan","writeAmd","writeOptimized"]],[function(e,t){return e.tag.loadInitResource?(t.amdResources[e.mid]=e,!0):!1},["writeAmd","writeOptimized"]],[function(e,t){return e.tag.amd||/\.js$/.test(e.src)&&(!e.tag.test||t.copyTests=="build")&&!/\.(bcs|profile)\.js$/.test(e.src)?(t.amdResources[e.mid]=e,!0):!1},["read","dojoPragmas","hasFindAll","insertSymbols","hasFixup","depsScan","writeAmd","writeOptimized"]],[function(e,t){return e.tag.declarative},["read","dojoPragmas","depsDeclarative","write"]],[function(e,t){return e.tag.test},["read","dojoPragmas","write"]],[function(e,t){return/\.(html|htm)$/.test(e.src)},["read","dojoPragmas","write"]],[function(e,t){return/\.css$/.test(e.src)},["read","optimizeCss","write"]],[function(e,t){return!e.tag.test},["copy"]]]};for(var n in t)e[n]=t[n];return e})},"build/removeComments":function(){define(["dojo/has"],function(e){return function(e){return e.replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,"")}})},"build/main":function(){define(["require","dojo/has","./commandLineArgs"],function(e,t,n){e.rawConfig.commandLineArgs.forEach(function(e){var t=e.split("=");t[0]!="baseUrl"&&n.push(e)}),t.add("is-windows",/indows/.test(environment["os.name"])),this.require.scopeify=function(e){for(var t,n,r,i="",s=this,o=e.split(","),u=0;u<o.length;){n=o[u++].match(/\S+/)[0],r=s(n),n=n.match(/[^\/]+$/)[0];for(t in r)i+="var "+t+"="+n+"."+t+";\n"}return i},e(["./buildControl","./process"],function(t,n){function p(){var n=[],r=[],i=[];t.discoveryProcs.forEach(function(e){i.push(e)});for(var o in t.transforms)n.push(o),i.push(t.transforms[o][0]);for(o in t.plugins)r.push(o),i.push(t.plugins[o]);t.plugins={},e(i,function(){for(var e=[],i=0;i<t.discoveryProcs.length;e.push(arguments[i++]));for(var o,u,a=0;a<n.length;)o=n[a++],u=arguments[i++],s.forEach(function(e){for(var t=e[1],n=0;n<t.length;n++)if(t[n][0]==o){t[n][0]=u;break}});for(a=0;a<r.length;)t.plugins[t.getSrcModuleInfo(r[a++]).mid]=arguments[i++];t.waiting=1,t.log("pacify","discovering resources..."),c(-1),e.forEach(function(e){e()}),h()})}var r=t.gateListeners=[],i=t.transforms,s=t.transformJobs,o=s.length,u=[],a=function(e,n){t.log("transformFailed",["resource",e.src,"transform",e.jobPos,"error",n]),e.error=!0},f=function(e,n){t.waiting--,n&&a(e,n),l(e,!0)},l=function(e,n){if(e.error)return;n||t.waiting++;var r,i,s;for(;;){i=e.jobPos+1,s=i<e.job.length&&e.job[i];if(!(s&&s[1]<=t.currentGate))break;e.jobPos++,t.waiting++,r=s[0](e,f);if(r===f)return;t.waiting--;if(r){a(e,r);break}}h()},c=function(e){for(;;){t.currentGate=++e,t.log("pacify","starting "+t.gates[t.currentGate][2]+"..."),r.forEach(function(e){e(t.gates[t.currentGate][1])});if(e==t.gates.length-1||t.gates[e+1][0])return}},h=t.passGate=function(){if(--t.waiting)return;t.checkDiscovery&&n.exit(0),t.currentGate<t.gates.length-1?(c(t.currentGate),t.waiting++,u.forEach(function(e){l(e,0)}),h()):(u.length||t.log("discoveryFailed"),t.log("pacify","Process finished normally.\n errors: "+t.getErrorCount()+"\n warnings: "+t.getWarnCount()+"\n build time: "+((new Date).getTime()-t.startTimestamp.getTime())/1e3+" seconds"),!t.exitCode&&t.getErrorCount()&&(t.exitCode=1),n.exit(t.exitCode))};t.start=function(e){var n=e.src,r=e.dest;if(t.resourcesByDest[n]){t.log("overwrite",["input",n,"resource destined for same location: ",t.resourcesByDest[n].src]);return}if(t.resourcesByDest[r]){t.log("outputCollide",["source-1",n,"source-2",t.resourcesByDest[r].src]);return}t.resources[e.src]=e,t.resourcesByDest[e.dest]=e;if(t.checkDiscovery){t.log("pacify",n+"-->"+r);return}for(var i=0;i<o;i++)if(s[i][0](e,t)){u.push(e),e.job=s[i][1],e.jobPos=-1,l(e);return}t.log("noTransform",["resoures",e.src])},!t.errorCount&&t.release&&p()})})},"build/replace":function(){define(["./fs"],function(e){var t={};return function(n,r){var i="utf8";return r instanceof Array?typeof r[0]=="string"&&(i=r[0],r=r.slice(1)):r=[r],r.forEach(function(r){var s=r[0],o=r[1],u=r[2];u=="file"&&(o=t[filename]=t[filename]||e.readFileSynch(o,i));if(s instanceof RegExp)n=n.replace(s,o);else if(typeof s=="function")n=s(n);else{var a=s.length,f=o.length,l=n.indexOf(s);while(l!=-1)n=n.substring(0,l)+o+n.substring(l+a),l=n.indexOf(s,l+f)}}),n}})},"build/fileHandleThrottle":function(){define([],function(){var e=0,t=10,n=[];return{release:function(){n.length?n.shift()():e--},enqueue:function(r){e<t?(e++,r()):n.push(r)}}})},"build/plugins/querySelector":function(){define(function(){return{start:function(e,t,n){var r=[n.amdResources["dojo/selector/_loader"]];return n.selectorEngine&&(r=r.concat(n.amdResources["dojo/selector/"+n.selectorEngine])),r}}})},"build/plugins/domReady":function(){define(function(){return{start:function(e,t,n){return n.amdResources[n.getSrcModuleInfo("dojo/domReady",t).mid]}}})},"build/plugins/has":function(){define(["dojo/regexp"],function(e){return{start:function(t,n,r){var i=function(){var e=r.amdResources["dojo/has"];return e?[e]:(r.log("dojoHasMissingPlugin"),[])},s=function(e){var t=r.staticHasFeatures[e];return t===undefined||t==-1?undefined:t},o=t.match(/[\?:]|[^:\?]*/g),u=0,a=function(e){var t,n=o[u++];if(n==":")return"";if(o[u++]=="?"){var r=s(n);return r===undefined?undefined:!e&&r?a():(a(!0),a(e))}return n===undefined?"":n},f=a();if(f===undefined)return r.log("dojoHasUnresolvedMid",["plugin resource id",t,"reference module id",n&&n.mid]),i();var l=new RegExp("((dojo\\/)|([./]+))has\\!"+e.escapeString(t));if(!f)return n.text=n.text.replace(l,"require"),[];var c=r.getSrcModuleInfo(f,n),h=r.amdResources[c.mid];return h?(n.text=n.text.replace(l,f),[h]):(r.log("dojoHasMissingMid",["plugin resource id",t,"resolved plugin resource id",c.mid,"reference module id",n&&n.mid]),i())}}})},"dojo/regexp":function(){define(["./_base/kernel","./_base/lang"],function(e,t){var n={};return t.setObject("dojo.regexp",n),n.escapeString=function(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(e){return t&&t.indexOf(e)!=-1?e:"\\"+e})},n.buildGroupRE=function(e,t,r){if(e instanceof Array){var i=[];for(var s=0;s<e.length;s++)i.push(t(e[s]));return n.group(i.join("|"),r)}return t(e)},n.group=function(e,t){return"("+(t?"?:":"")+e+")"},n})},"build/plugins/text":function(){define(["dojo/json","../fs"],function(e,t){return{start:function(n,r,i){n=n.split("!")[0];var s=i.amdResources["dojo/text"],o=i.getSrcModuleInfo(n,r,!0),u=i.resources[o.url];if(!s)throw new Error("text! plugin missing");if(!u)throw new Error("text resource ("+o.url+") missing");var a=[s];return i.internStrings&&!i.internSkip(o.mid,r)&&a.push({module:u,pid:o.pid,mid:o.mid,deps:[],getText:function(){var n=this.module.getText?this.module.getText():this.module.text;return n===undefined&&(n=t.readFileSync(this.module.src,"utf8")),e.stringify(n+"")},internStrings:function(){return["url:"+this.mid,this.getText()]}}),a}}})},"build/plugins/loadInit":function(){define(function(){return{start:function(e,t,n){return[n.amdResources["dojo/require"],n.amdResources[n.getSrcModuleInfo(e,t).mid]]}}})},"build/plugins/require":function(){define([],function(){return{start:function(e,t,n){var r=[n.amdResources["dojo/require"]];return e.split(",").map(function(e){var i=n.amdResources[e];i?r.push(i):n.log("legacyMissingDependency",["reference module",t.mid,"dependency",e])}),r}}})},"build/plugins/i18n":function(){define(function(){var e=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;return{start:function(t,n,r){var i=r.amdResources["dojo/i18n"],s=e.exec(t),o=s[5]||s[4],u=r.getSrcModuleInfo(s[1]+o,n).mid.match(/(.+\/)[^\/]+/)[1],a=s[5]&&s[4],f=u+(a?a+"/":"")+o,l=r.amdResources[f];if(!i)throw new Error("i18n! plugin missing");if(!l)throw new Error("i18n resource ("+f+") missing");return[i,l]}}})},"build/transforms/depsDump":function(){define(["../buildControl","../fileUtils","../fs","dojo/_base/lang","dojo/_base/array","dojo/json"],function(e,t,n,r,i,s){return function(o,u){if(!e.depsDumpDotFilename&&!e.depsDumpFilename)return 0;var a=0,f={},l={};e.dotModules&&(a={},i.forEach(e.dotModules.split(","),function(e){a[r.trim(e)]=f}));var c=[],h={},p=0,d="digraph {\n",v,m,g;for(m in e.resources){v=e.resources[m];if(v.deps){if(!a||a[v.mid])a[v.mid]=l,v.deps.forEach(function(e){d+='"'+v.mid+'" -> "'+e.mid+'";\n',a[e.mid]!==l&&(a[e.mid]=f)});v.uid=p,h[e.resources[m].mid]=p,c.push(v),p++}}if(e.depsDumpDotFilename){var y=a;while(y){y=!1;for(m in e.resources)v=e.resources[m],a[v.mid]==f&&(y=!0,a[v.mid]=l,v.deps&&v.deps.forEach(function(e){d+='"'+v.mid+'" -> "'+e.mid+'";\n',a[e.mid]!==l&&(a[e.mid]=f)}))}d+="}\n";var b=t.computePath(e.depsDumpDotFilename,e.destBasePath);t.ensureDirectory(t.getFilepath(b)),n.writeFileSync(b,d,"ascii")}if(e.depsDumpFilename){var w=c.map(function(e){return e.deps.map(function(e){return e.uid})}),E={},S=function(e,t){var n=e.shift();return n in t||(t[n]={}),e.length?S(e,t[n]):t[n]};c.forEach(function(e,t){var n=e.mid.split("/");S(n,E)["*"]=t}),b=t.computePath(e.depsDumpFilename,e.destBasePath),t.ensureDirectory(t.getFilepath(b)),n.writeFileSync(b,s.stringify({depsTree:w,idTree:E}),"ascii")}return 0}})},"build/transforms/copy":function(){define(["../buildControl","../process","../fileUtils","dojo/has"],function(e,t,n,r){return function(i,s){n.ensureDirectoryByFilename(i.dest);var o=function(e,t){s(i,e)},u='failed to copy file from "'+i.src+'" to "'+i.dest+'"',a=r("is-windows")?["cmd","/c","copy",n.normalize(i.src),n.normalize(i.dest),u,e,o]:["cp",i.src,i.dest,u,e,o];return t.exec.apply(t,a),s}})},"build/transforms/trace":function(){define([],function(){return function(e){return 0}})},"build/transforms/read":function(){define(["../buildControl","../fileUtils","../fs","../replace"],function(e,t,n,r){var i=t.getFiletype,s=e.transformConfig.read&&e.transformConfig.read.encoding||{css:"utf8",html:"utf8",htm:"utf8",js:"utf8",json:"utf8",asc:"utf8",c:"utf8",cpp:"utf8",log:"utf8",conf:"utf8",text:"utf8",txt:"utf8",dtd:"utf8",xml:"utf8",png:undefined,jpg:undefined,jpeg:undefined,gif:undefined};return function(t,o){t.getText=function(){return this.replacementsApplied||(this.replacementsApplied=!0,e.replacements[this.src]&&(this.text=r(this.text,e.replacements[this.src]))),this.text},t.setText=function(e){return t.text=e,t.getText=function(){return this.text},e};var u=i(t.src,1);return t.encoding=t.encoding||!(u in s)&&"utf8"||s[u],n.readFile(t.src,t.encoding,function(e,n){e||(t.text=n),o(t,e)}),o}})},"build/transforms/writeAmd":function(){define(["../buildControl","../fileUtils","../fs","dojo/_base/lang","dojo/json"],function(e,t,n,r,i){var s=function(e,t){return e.setText||(e.setText=function(t){return e.text=t,e.getText=function(){return this.text},t}),e.setText(t),t},o={},u=function(t,n,r){if(o[t.mid])return e.log("amdCircularDependency",["module",t.mid]),{};o[t.mid]=1;var i={},s,a,f=function(e){var n=e.mid;if(s[n])return;s[n]=1,a?i[n]=e:delete i[n];if(e!==t&&e.layer){var r=e.moduleSet||u(e,e.layer.include,e.layer.exclude);for(var o in r)a?i[o]=r[o]:delete i[o]}else for(var l=e.deps,c=0;l&&c<l.length;f(l[c++]));};s={},a=!0,f(t),n.forEach(function(n){var r=e.amdResources[e.getSrcModuleInfo(n,t).mid];r?f(r):e.log("amdMissingLayerIncludeModule",["missing",n,"layer",t.mid])}),s={},a=!1,r.forEach(function(n){var r=e.amdResources[e.getSrcModuleInfo(n,t).mid];r?f(r):e.log("amdMissingLayerExcludeModule",["missing",n,"layer",t.mid])}),t.moduleSet=i,delete o[t.mid];var l={};for(var c in i)l[c]=i[c];return l},a=function(t,n){return!n.mid||n.tag.hasAbsMid||!e.insertAbsMids?t:t.replace(/(define\s*\(\s*)(.*)/,'$1"'+n.mid+'", $2')},f=function(e){return"'"+e[0]+"':"+e[1]},l=function(e){var t=e.match(/(.+)\/([^\/]+)$/);return t[1]+"/nls/"+t[2]},c=function(t){if(t.flattenedBundles)return;t.flattenedBundles={},e.localeList.forEach(function(n){var i=r.mixin({},t.bundleValue.root);e.localeList.discreteLocales[n].forEach(function(e){var n=t.localizedSet[e];n&&n.bundleValue&&r.mixin(i,n.bundleValue)}),t.flattenedBundles[n]=i})},h=function(t,n){n.forEach(c);var r=e.newline,s=l(t.dest.match(/(.+)(\.js)$/)[1]),o,u;e.localeList.forEach(function(a){u=[],n.forEach(function(e){u.push("'"+e.prefix+e.bundle+"':"+i.stringify(e.flattenedBundles[a])+r)}),o=l(t.mid)+"_"+a;var f={src:"*synthetic*",dest:s+"_"+a+".js",pid:t.pid,mid:o,pack:t.pack,deps:[],tag:{flattenedNlsBundle:1},encoding:"utf8",text:"define("+(e.insertAbsMids?"'"+o+"',{":"{")+r+u.join(","+r)+"});",getText:function(){return this.text}};e.insertAbsMids&&(f.tag.hasAbsMid=1),e.start(f)})},p=function(t,n){var r=e.newline,s=[],o=[],c=u(t,t.layer.include,t.layer.exclude);for(var p in c)if(p!=t.mid||n===!1){var d=c[p];d.localizedSet&&e.localeList?s.push(d):d.internStrings?o.push(f(d.internStrings())):d.getText?o.push("'"+p+"':function(){"+r+d.getText()+r+"}"):e.log("amdMissingLayerModuleText",["module",d.mid,"layer",t.mid])}return s.length&&(h(t,s),o.push("'*now':function(r){r(['dojo/i18n!*preload*"+l(t.mid)+"*"+i.stringify(e.localeList)+"']);}"+r)),o.length&&t.layer.noref&&o.push("'*noref':1"),(o.length?"require({cache:{"+r+o.join(","+r)+"}});"+r:"")+(n===undefined?a(t.getText(),t):n==0?"":n)+(t.layer.postscript?t.layer.postscript:"")},d=function(t){var n=[],r=e.newline;return t.deps&&t.deps.forEach(function(e){e.internStrings&&n.push(f(e.internStrings()))}),n.length?"require({cache:{"+r+n.join(","+r)+"}});"+r:""},v=function(t){return t.layer&&e.layerOptimize||!t.layer&&e.optimize?t.dest+".uncompressed.js":t.dest},m=function(t){var n=e.newline,r,s;if(t.localizedSet&&t.bundleValue){var o=[];for(s in t.bundleValue)s!="root"&&!t.localizedSet[s]&&o.push("'"+s+"'");o.length&&(o.sort(),e.log("missingL10n","Root: "+t.mid+"; missing bundles: "+o.join(",")+"."))}if(t.bundleType=="legacy"){if(t.bundleValue){if(t.localizedSet)for(s in t.localizedSet)t.bundleValue[s]=1;r=i.stringify(t.bundleValue)}else r="// ERROR: builder was unable to evaluate source bundle; therefore, this empty conversion was written"+n+"{}";return"define("+(e.insertAbsMids?"'"+t.mid+"',":"")+n+r+n+");"}return a(t.getText(),t)},g=function(r,o){if(r.layer&&(r.layer.boot||r.layer.discard))return 0;var u;r.pack?u=r.pack.copyrightNonlayers&&(r.pack.copyright||e.copyright):u=e.copyrightNonlayers&&e.copyright,u||(u="");var f;r.tag.nls?f=m(r):r.layer?(f=r.layerText=p(r),r.layer.compat=="1.6"&&(f=r.layerText=f+"require("+i.stringify(r.layer.include)+");"+e.newline),u=r.layer.copyright||""):(f=a(r.getText(),r),f=(e.internStrings?d(r):"")+f),s(r,f);var l=v(r);return t.ensureDirectoryByFilename(l),n.writeFile(l,e.newlineFilter(r.getText(),r,"writeAmd"),r.encoding,function(e){o(r,e)}),o};return g.getLayerText=p,g.getDestFilename=v,g.computeLayerContents=u,g})},"build/transforms/dojoPragmas":function(){define(["../buildControl"],function(bc){var evalPragma=function(code,kwArgs,fileName){return!!eval("("+code+")")};return function(e){if(!bc.applyDojoPragmas)return;if(typeof e.text!="string")return;var t=-1,n=0,r=e.text;while((t=r.indexOf("//>>",n))!=-1){var i=r.indexOf("\n",t);i==-1&&(i=r.length-1),n=i+1;var s=r.substring(t,i+1),o=s.match(/(exclude|include)Start\s*\(\s*["'](\w+)["']\s*,(.*)\)/);if(o){var u=o[1],a=o[2],f=o[3],l=!1;try{l=evalPragma(f,bc,e.src)}catch(c){bc.log("dojoPragmaEvalFail",["module",e.mid,"expression",s,"error",c]);return}var h=new RegExp("\\/\\/\\>\\>\\s*"+u+"End\\(\\s*['\"]"+a+"['\"]\\s*\\)","g"),p=h.exec(r.substring(n,r.length));if(!p){bc.log("dojoPragmaInvalid",["module",e.mid,"expression",s]);return}var d=n+h.lastIndex-p[0].length;i=r.indexOf("\n",d),i==-1&&(i=r.length-1);var v=u=="exclude"&&!l||u=="include"&&l,m=n-t;r=r.substring(0,t)+(v?r.substring(n,d):"")+r.substring(i+1,r.length),n=t}else/^\/\/>>\s*noBuildResolver\s*$/.test(s)&&(e.noBuildResolver=1)}e.text=r}})},"build/transforms/report":function(){define(["../buildControl","../fileUtils","../fs"],function(e,t,n){return function(r,i){return r.reports.forEach(function(r){var i=t.computePath(t.catPath(r.dir,r.filename),e.destBasePath),s=r.content;typeof s=="function"&&(s=s(e)),e.waiting++,t.ensureDirectory(t.getFilepath(i)),n.writeFile(i,s,"utf8",function(t){t,e.passGate()})}),0}})},"build/transforms/hasFindAll":function(){define(["../buildControl"],function(e){return function(t){if(t.hasTest)return 0;var n=e.hasFeatures=e.hasFeatures||{},r=t.text,i=/[^\w\.]has\s*\(\s*["']([^"']+)["']\s*\)/g,s;while((s=i.exec(r))!=null){var o=s[1],u=n[o]=n[o]||{};u[t.mid]=1}return 0}})},"build/transforms/hasFixup":function(){define(["../buildControl"],function(e){function t(e){return typeof e=="string"?'"'+e+'"':e}return function(n){return n.text=n.text.replace(/([^\w\.])has\s*\(\s*["']([^'"]+)["']\s*\)/g,function(t,n,r){return r in e.staticHasFeatures?n+" "+e.staticHasFeatures[r]+" ":t}).replace(/([^\w\.])((has.add\s*\(\s*)["']([^'"]+)["'])/g,function(n,r,i,s,o){return o in e.staticHasFeatures?r+" "+t(e.staticHasFeatures[o])+(e.staticHasFeatures[o]?" || ":" && ")+i:n}),0}})},"build/transforms/writeDojo":function(){define(["../buildControl","../fileUtils","../fs","../stringify","./writeAmd","../process","dojo/json","dojo/text!./dojoBoot.js"],function(e,t,n,r,i,s,o,u){return function(s,a){var f=function(){if(!e.userConfig)return"this.dojoConfig || this.djConfig || this.require || {}";if(typeof e.userConfig=="string")return e.userConfig;var t=r(e.userConfig);return t.unsolved&&e.log("configUnresolvedValues"),t},l=function(e,t){if(t.indexOf(e+"/")==0)return"."+t.substring(e.length);var n=e.split("/"),r="";for(var i=n.length-1;i>=0;i--){r+=r?"/..":"..";var s=n.slice(0,i).join("/")+"/";if(t.indexOf(s)==0)return r+t.substring(s.length-1)}return t},c=function(t){var n=e.destPackages[t],r={};r.name=n.name,n.main!="main"&&(r.main=n.main),t=="dojo"?r.location=".":r.location=l(e.destBasePath+"/dojo",n.location);var i=e.defaultConfig&&e.defaultConfig.packages&&e.defaultConfig.packages[t];for(var s in i)r[s]=i[s];return r},h=function(){var t,n={packages:[],hasCache:{}};e.baseUrl&&(n.baseUrl=e.baseUrl);for(t in e.packages)n.packages.push(c(t));for(t in e.defaultConfig)t!=="packages"&&(n[t]=e.defaultConfig[t]);return n=r(n),n.unsolved&&e.log("configUnresolvedValues"),n},p=function(t){version=e.version;if(version){var n=(version+"").match(/^(\d*)\.?(\d*)\.?(\d*)\.?(.*)$/),r=n[1]||0,i=n[2]||0,s=n[3]||0,o=n[4]||"";return t.replace(/major:\s*\d*,\s*minor:\s*\d*,\s*patch:\s*\d*,\s*flag:\s*".*?"\s*,/g,"major: "+r+", minor: "+i+", patch: "+s+', flag: "'+o+'",')}return t},d=1,v=[],m=function(e){e&&v.push(e),--d==0&&a(s,v.length&&v)},g=function(r,i){t.ensureDirectoryByFilename(r),d++,n.writeFile(r,e.newlineFilter(i,s,"writeDojo"),"utf8",m)};try{var y=s.getText(),b="("+f()+", "+h()+");",w=p(i.getLayerText(s,"")),E=s.layer.compat=="1.6"&&s.layer.include.length?"require("+o.stringify(s.layer.include)+");"+e.newline:"";s.layerText=y+b+w+(e.dojoBootText||u)+E,g(i.getDestFilename(s),s.layer.copyright+s.layerText),s.boots.forEach(function(t){if(t!==s){var n=t.layer.compat=="1.6"&&t.layer.include.length?"require("+o.stringify(t.layer.include)+");"+e.newline:"";t.layerText=y+b+w+i.getLayerText(t,!1)+(t.bootText||e.dojoBootText||u)+E+n,g(i.getDestFilename(t),s.layer.copyright+t.layerText)}}),m(0)}catch(S){return d?(v.push(S),0):S}return a}})},"url:build/transforms/dojoBoot.js":'(function(){\n // must use this.require to make this work in node.js\n var require = this.require;\n // consume the cached dojo layer\n require({cache:{}});\n !require.async && require(["dojo"]);\n require.boot && require.apply(null, require.boot);\n})();\n',"build/transforms/depsScan":function(){define(["require","../buildControl","../fileUtils","../removeComments","dojo/json","dojo/_base/lang","dojo/_base/loader","../fs"],function(e,t,n,r,i,s,o,u){return function(e){var a=t.newline,f=function(e,t){e=e||{};for(var n in t)e[n]=t[n];return e},l=0,c=[],h=0,p=function(e,t,n){h=1;var r=arguments.length,i=0,o=["require","exports","module"];i||(i=r==1?[0,o,e]:r==2?e instanceof Array?[0,e,t]:[e,o,t]:[e,t,n]);if(i[1].some(function(e){return!s.isString(e)}))throw new Error("define dependency vector contains elements that are not of type string.");l=i[0],c=c.concat(i[1])},d=function(e,t){var n=function(e){return e.some(function(e){return/^\./.test(e)})};s.isArray(e)&&!n(e)?c=c.concat(e):s.isArray(t)&&!n(t)&&(c=c.concat(t))},v=function(e){return e.replace(/\./g,"/")},m=0,g=[],y=[],b={require:function(e,t){y.push(v(e))},provide:function(e){g.push(v(e))},requireLocalization:function(e,t,n){c.push("dojo/i18n!"+v(e)+"/nls/"+(!n||/root/i.test(n)?"":n+"/")+v(t))},platformRequire:function(e){m=1,(e.common||[]).concat(t.platform&&e[t.platform]||[]).forEach(function(e){y.push(s.isArray(e)?v(e[0]):v(e))})},loadInit:function(e){m=1,e()},requireIf:function(e,t,n){m=1,e&&y.push(v(t))},requireAfterIf:function(e,t,n){m=1,e&&y.push(v(t))}},w=new Function("dojo","__text","eval(__text);"),E=function(n){var r;if(e.pack.runtime){var i=e.pack.runtime,s=[],o=[],u;i.dojo=f(i.dojo,b);for(u in i)s.push(i[u]),o.push(u);r=new Function("__bc","__args","__text","(function("+o.join(",")+"){ eval(__text); }).apply(__bc, __args);"),s=[t,s]}else s=[b],r=w;var a=n.map(function(e){try{return r.apply(t,s.concat(e)),0}catch(n){return m=1,[n,e]}});a.forEach(function(n){n&&t.log("legacyFailedEval",["module",e.mid,"text",n[0],"error",n[1]])})},S=function(n,r){var i=n.match(/^([^\!]+)\!(.*)$/);if(i){var s=t.getSrcModuleInfo(i[1],r),o=s&&t.amdResources[s.mid],u=o&&o.mid,a=t.plugins[u];return o?a?a.start(i[2],r,t):(o.noBuildResolver||t.log("missingPluginResolver",["module",e.mid,"plugin",u]),o):0}var f=t.getSrcModuleInfo(n,r),l=f&&t.amdResources[f.mid];return l},x=function(n){n&&n!=e.mid&&t.log("amdInconsistentMid",["module",e.mid,"specified",n]),n&&(e.tag.hasAbsMid=1)},T=function(){try{e.mid!="dojo/_base/loader"&&/dojo\.(require|provide)\s*\(/.test(r(e.text))&&t.log("amdPureContainedLegacyApi",["module",e.mid]),(new Function("define","require",e.text))(p,d),x(l)}catch(n){t.log("amdFailedEval",["module",e.mid,"error",n])}},N=function(e){var t=[],n="spaces",r="string",i="endOfString",s="done",o="error",u={spaces:function(e){return/\s/.test(e)?n:e=="'"||e=='"'?(f=e,l="",r):e==0?s:o},string:function(e){return e==f?(t.push(l),"endOfString"):(l+=e,"string")},endOfString:function(e){return/\s/.test(e)?i:e==0?s:e==","?n:o}},a=n,f,l;for(var c=0;c<e.length;c++){a=u[a](e.charAt(c));if(a==o)return 0}return u[a](0)!=o?t:0},C=function(n){var r=0,i=/(^|\s)define\s*\(\s*(["'][^'"]+['"])?\s*(,)?\s*(\[[^\]]*?\])?\s*(,)?/g,s;while((s=i.exec(n))!=null)try{s[2]?s[3]?s[5]?s=s[0]+"{})":s[4]?s=s[0]+")":s=s[0]+"{})":s=s[0]+")":s[4]?s[5]?s=s[0]+"{})":s=s[0]+")":s="define({})",r++,(new Function("define",s))(p),x(l)}catch(o){r--,t.log("amdFailedDefineEval",["module",e.mid,"text",s,"error",o])}var u=/(^|\s)require\s*\(\s*\[([^\]]*?)\]/g;while((s=u.exec(n))!=null){var a=N(s[2]);a&&(r++,c=c.concat(a.filter(function(e){return e.charAt(0)!="."})))}return r},k=function(e){var n=0;try{function r(e,t){s.isString(e)&&s.isObject(t)?(x(e),n=t):s.isObject(e)&&(n=e)}(new Function("define",e.text))(r);if(n){e.bundleValue=n,e.bundleType="amd";return}}catch(i){}try{n=(new Function("return "+e.text+";"))();if(s.isObject(n)){e.bundleValue=n,e.bundleType="legacy";return}}catch(i){}T(),h||t.log("i18nImproperBundle",["module",e.mid])},L=function(){var n=e.mid.match(/(^.*\/nls\/)(([^\/]+)\/)?([^\/]+)$/),r=e.prefix=n[1],i=e.locale=n[3],s=e.bundle=n[4],o=r+s,u=t.amdResources[o];if(!u){t.log("i18nNoRoot"["bundle",e.mid]);return}u.localizedSet||(u.localizedSet={}),k(e),(t.localeList||e.bundleType=="legacy")&&!e.bundleValue&&t.log("i18nUnevaluableBundle",["module",e.mid]),e.bundleType=="legacy"&&e===u&&e.bundleValue&&(e.bundleValue={root:e.bundleValue}),e!==u&&(u.localizedSet[i]=e)},A="(((templatePath|templateCssPath)\\s*(=|:)\\s*)dojo\\.(module)?Url\\(|dojo\\.cache\\s*\\(\\s*)\\s*?[\\\"\\']([\\w\\.\\/]+)[\\\"\\'](([\\,\\s]*)[\\\"\\']([\\w\\.\\/-]*)[\\\"\\'])?(\\s*,\\s*)?([^\\)]*)?\\s*\\)",O=new RegExp(A,"g"),M=new RegExp(A),_=function(){var r=function(e){return u.readFileSync(e,"utf8")},s=[],o=[],a=[];e.text=e.text.replace(O,function(s){var u=s.match(M),f=t.getSrcModuleInfo(n.catPath(u[6].replace(/\./g,"/"),u[9]),0,!0);if(t.internSkip(f.mid,e))return s;var l=t.resources[f.url];if(!l)return o.push(f.url),s;var c=l.getText&&l.getText()||r(l.src);if(!c)return a.push(l.src),s;c=i.stringify(c);if(s.indexOf("dojo.cache")!=-1){var h=u[11];if(!h)h=c;else{var p=h.indexOf("{");p!=-1&&(h=h.substring(0,p+1)+"value: "+c+","+h.substring(p+1,h.length))}return'dojo.cache("'+u[6]+'", "'+u[9]+'", '+h+")"}return u[3]=="templatePath"?"templateString"+u[4]+c:s});if(s.length||o.length||a.length){var f=["module",e.mid];s.length&&f.push("skipping",s),o.length&&f.push("not found",o),a.length&&f.push("nothing to intern",a),t.log("internStrings",f)}},D=function(){t.internStrings&&_();var n=e.getText(),s=t.scopeNames,u=o.extractLegacyApiApplications(n,r(n));if(!u.extractText&&C(r(n))){t.log("amdNotPureContainedNoLegacyApi",["module",e.mid]);return}t.log("legacyAssumed",["module",e.mid]);if(!u){e.getText=function(){return"define("+i.stringify(s)+", function("+s.join(",")+"){"+a+n+"});"+a};return}E(u[2]),g.length&&(g.length>1&&t.log("legacyMultipleProvides",["module",e.mid,"provides",g]),g.forEach(function(n){n.replace(/\./g,"/")!=e.mid&&t.log("legacyImproperProvide",["module",e.mid,"provide",n])}));if(m){t.log("legacyUsingLoadInitPlug",["module",e.mid]);var l,h,p,d;l="// generated by build app"+a+"define([], {"+a+" names:"+i.stringify(s)+","+a+" def:function("+s.join(",")+"){"+a+u[1]+"}"+a+"});"+a,h=e.mid+"-loadInit",p=f({},f(e,{src:e.src.substring(0,e.src.length-3)+"-loadInit.js",dest:t.getDestModuleInfo(h).url,mid:h,tag:{loadInitResource:1},deps:[],getText:function(){return l}})),t.start(p),d="dojo/loadInit!"+h,c.push(d)}else y.length&&c.push("dojo/require!"+y.join(","));c=s.concat(c),e.getText=function(){return"// wrapped by build app"+a+"define("+i.stringify(c)+", function("+s.join(",")+"){"+a+u[0]+a+"});"+a}},P=function(e,n){var r=e.split("/")[0];return t.packages[r].providedMids[n]===!0};e.tag.nls?L():e.tag.amd||/\/\/>>\s*pure-amd/.test(e.text)?T():D();var H=e.deps;e.aggregateDeps=c,c.forEach(function(n){if(!/^(require|exports|module)$/.test(n))try{var r=S(n,e);s.isArray(r)?r.forEach(function(e){H.push(e)}):r?H.push(r):P(e.mid,n)||t.log("amdMissingDependency",["module",e.mid,"dependency",n])}catch(i){P(e.mid,n)||t.log("amdMissingDependency",["module",e.mid,"dependency",n,"error",i])}})}})},"build/transforms/write":function(){define(["../buildControl","../fileUtils","../fs","../replace"],function(e,t,n,r){return function(r,i){return r.tag.noWrite?0:(t.ensureDirectoryByFilename(r.dest),n.writeFile(r.dest,e.newlineFilter(r.getText(),r,"write"),r.encoding,function(e){i(r,e)}),i)}})},"build/transforms/dojoReport":function(){define(["../buildControl","../version","../fileUtils"],function(e,t,n){var r=e.buildReportDir||".",i=e.buildReportFilename||"build-report.txt";return function(s,o){return s.reports.push({dir:r,filename:i,content:function(){var o="";o+="Build started: "+e.startTimestamp+"\n",o+="Build application version: "+t+"\n",o+="Messages:\n"+e.getAllNonreportMessages(),o+="Layer Contents:\n";for(var u in e.resources){s=e.resources[u];if(s.moduleSet){o+=s.mid+":\n";var a=s.moduleSet;for(var f in a)o+=" "+a[f].mid+"\n";o+="\n"}}var l=e.getOptimizerOutput();return l.length&&(o+="Optimizer Messages:\n"+l),o+=e.getAllReportMessages(),e.log("pacify","Report written to "+n.computePath(n.catPath(r,i),e.destBasePath)),o+="\n\nProcess finished normally\n",o+=" errors: "+e.getErrorCount()+"\n warnings: "+e.getWarnCount()+"\n build time: "+((new Date).getTime()-e.startTimestamp.getTime())/1e3+" seconds",o}}),0}})},"build/transforms/writeOptimized":function(){define(["../buildControl","../process","../fs","../fileUtils","dojo/has","dojo/json"],function(e,t,n,r,i,s){var o="//>>built"+e.newline,u=function(){},a=0;if(e.stripConsole){var f="assert|count|debug|dir|dirxml|group|groupEnd|info|profile|profileEnd|time|timeEnd|trace|log";e.stripConsole=="warn"?f+="|warn":e.stripConsole=="all"&&(f+="|warn|error"),a=new RegExp("console\\.("+f+")\\s*\\(","g")}if(e.optimize||e.layerOptimize){function l(e,t,n,r){var i=n.split("."),s=0,u=0,a=null;while(i.length)switch(i.pop()){case"normal":a="normal";break;case"warn":a="warn";break;case"all":a="all";break;case"keeplines":u=1;break;case"comments":s=1}var f=Packages.org.mozilla.javascript.Context.enter();try{f.setOptimizationLevel(-1);if(s){var l=f.compileString(e,t,1,null);e=new String(f.decompileScript(l,0)),e=e.replace(/ /g," ")}else e=new String(Packages.org.dojotoolkit.shrinksafe.Compressor.compressScript(e,0,1,a)),u||(e=e.replace(/[\r\n]/g,""))}finally{Packages.org.mozilla.javascript.Context.exit()}return r+o+e}var c,h,p=0;function d(e,t,n,r){p||(c=java.lang.Class.forName("com.google.javascript.jscomp.JSSourceFile").getMethod("fromCode",[java.lang.String,java.lang.String]),h=function(e,t){return c.invoke(null,[e,t])},p=com.google.javascript.jscomp);var i=h("fakeextern.js"," "),s=h(String(t),String(e)),u=new p.CompilerOptions;u.prettyPrint=n.indexOf(".keeplines")!==-1;var a=p.CompilationLevel.SIMPLE_OPTIMIZATIONS;a.setOptionsForCompilationLevel(u);var f=p.WarningLevel.DEFAULT;f.setOptionsForWarningLevel(u);var l=new Packages.com.google.javascript.jscomp.Compiler(Packages.java.lang.System.err),d=l.compile(i,s,u);return r+o+l.toSource()}u=function(t,r,i,s,o){e.log("optimize",["module",t.mid]),i=i||"";var u=0;try{/closure/.test(s)?u=d(a?r.replace(a,"0 && $&"):r,t.dest,s,i):u=l(r,t.dest,s,i),n.writeFile(t.dest,u,t.encoding,function(n){n&&e.log("optimizeFailedWrite",["filename",u.dest]),o(t,n)})}catch(f){e.log("optimizeFailed",["module identifier",t.mid,"exception",f+""]),o(t,0)}return o}}return function(t,n){return e.optimize&&!t.layer?u(t,t.getText(),t.pack.copyright,e.optimize,n):e.layerOptimize&&t.layer&&!t.layer.discard?u(t,t.layerText,t.layer.copyright,e.layerOptimize,n):0}})},"build/transforms/insertSymbols":function(){define(["../buildControl","../fileUtils","../fs","../replace"],function(e,t,n,r){var i=1,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=s.length,u=function(t,n){var r=t;if(e.symbol==="short"){var u=[],a=i;while(a)u.unshift(s[a%o]),a=Math.floor(a/o);u="$D"+u.join(""),i++,n[u+"_"]=t,r=u+"_"}return r},a=function(t,n){var r=t.replace(/\./g,"_");return e.symbol!=="short"&&t===r?(r==="define"&&(r="DEFINE"),r+"__"+Math.floor(Math.random()*1e4)):u(r,n)},f=function(e,t){var n=e.getText(),r=[],i=function(e,n,i,s,o){return n+i+s+" "+u(r+i,t)+o};e.pid&&r.push(e.pid),e.mid&&r.push(e.mid.replace(/\//g,"_"));if(!r.length){var s=n.match(/dojo\.provide\("(.*)"\);/);s&&r.push(s[1].replace(/\./g,"_"))}return r.length&&(r=r.join("_").replace(/\.|\-/g,"_")+"_",n=n.replace(/^(\s*)(\w+)(\s*:\s*function)\s*(\(.*)$/mg,i).replace(/^(\s*this\.)(\w+)(\s*=\s*function)\s*(\(.*)$/mg,i)),n=n.replace(/^(\s*)([\w\.]+)(\s*=\s*function)\s*(\(.*)/mg,function(e,n,r,i,s){return n+r+i+" "+a(r,t)+s}),n},l=0;return function(n,r){return e.symbol&&(n.tag.report?e.symbol==="short"&&(e.symbolTable={},n.reports.push({dir:".",filename:"symboltable.txt",content:function(){var t=[],n,r=e.symbolTable;for(n in r)t.push(n+': "'+r[n]+'"'+e.newline);return t.join("")}})):(l||(l=1,e.log("symbolsLeak",[])),t.ensureDirectoryByFilename(n.dest),n.text=f(n,e.symbolTable))),0}})},"build/transforms/hasReport":function(){define(["../buildControl","../stringify"],function(e,t){return function(){if(e.hasReport){var t,n=e.hasFeatures,r=[];for(t in n)r.push([[t],n[t]]);r.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0});var i=function(e){var t=[];for(var n in e)t.push(n);return t.sort()},s=e.newline;e.log("hasReport",r.map(function(e){return" // "+i(e[1]).join(", ")+s+" '"+e[0]+"':1"}).join(","+s+s))}return 0}})},"build/transforms/writeCss":function(){define(["../buildControl","../fileUtils","../fs"],function(e,t,n){return function(r,i){var s=0,o=[],u=function(e){e&&o.push(e),--s==0&&i(r,o.length&&o)},a=function(i,o,a){t.ensureDirectoryByFilename(i),s++,n.writeFile(i,e.newlineFilter(o,r,"writeCss"),a||"utf8",u)},f=0;try{a(r.dest,r.text),r.compactDest!=r.dest&&a(r.compactDest,r.compactText);if(f)return i;f=1;var l=e.destDirToExternSet,c,h,p;for(c in l){h=l[c];for(p in h)a(c+"/"+h[p],e.resources[p].text,r.encoding)}}catch(d){return s?(o.push(d),0):d}return i}})},"build/transforms/depsDeclarative":function(){define(["../buildControl","../fs","../fileUtils","dojo/_base/lang","dojo/_base/json"],function(e,t,n,r,i){return function(t){var n=[],r=/\sdata-dojo-(?:type|mids)\s*=\s*["']([^"']+\/[^"']+)["']/gi,s=/<script\s+[^>]*type=["']dojo\/require["'][^>]*>([^<]*)<\/script>/gi,o=function(){var e=[],n=t.text,i;while(i=r.exec(n))i[1].split(/\s*,\s*/).forEach(function(t){e.push(t)});return e},u=function(){var n=[],r=t.text,o;while(o=s.exec(r)){try{var u=i.fromJson("{"+o[1]+"}")}catch(a){e.log("declarativeRequireFailed",["resource",t.src,"error",a])}for(var f in u){var l=u[f];typeof l=="string"?n.push(l):e.log("userWarn",["declarative require has invalid value","resource",t.src,"key",f,"value",l])}}return n};n=n.concat(o()),n=n.concat(u());for(var a in e.amdResources)if(e.amdResources[a].layer){var f=e.amdResources[a].layer.include,l=f.indexOf(t.mid);~l&&(f.splice(l,1),n.forEach(function(e){/^(require|exports|module)$/.test(e)||~f.indexOf(e)||f.push(e)}))}}})},"build/transforms/optimizeCss":function(){define(["../buildControl","../fileUtils","dojo/_base/lang"],function(e,t,n){var r=/\@import\s+(url\()?\s*([^);]+)\s*(\))?([\w, ]*)(;)?/g,i=/\url\(\s*([^\)]+)\s*\)?/g,s=function(e){return e.replace(/\\/g,"/")},o=e.cssImportIgnore?e.cssImportIgnore.split(",").map(function(e){return n.trim(e)}).join(",")+",":"",u=function(e){e=n.trim(e);if(e.charAt(0)=="'"||e.charAt(0)=='"')e=e.substring(1,e.length-1);return e},a=function(t,n){var r=t,i=-1,s;while((i=t.indexOf("/*"))!=-1){s=t.indexOf("*/",i+2);if(s==-1)return e.log("cssOptimizeImproperComment",["CSS file",n]),r;t=t.substring(0,i)+t.substring(s+2,t.length)}return t},f=function(e){var t=e.indexOf(":");return e.charAt(0)!="/"&&(t==-1||t>e.indexOf("/"))},l=function(e,t){var n=e.split("/"),r=t.dest.split("/");n.pop();while(n.length&&r.length&&n[0]==r[0])n.shift(),r.shift();for(var i=0;i<n.length;i++)r.unshift("..");return r.join("/")},c=function(t,n,r){var i=e.resources[n];return i?l(t,i):(e.log("cssOptimizeUnableToResolveURL",r),0)},h=function(p){if(p.optimizedText)return;var d=p.dest,v=p.src,m=t.getFilepath(s(v)),g=p.text;g=g.replace(/^\uFEFF/,""),g=a(g,v),g=g.replace(r,function(r,a,g,y,b){g=s(u(g));var w,E=f(g)?t.compactPath(t.catPath(m,g)):g,S=e.resources[E],x=!1;if(o&&o.indexOf(g+",")!=-1||S&&S.tag.importIgnore)x=!0,e.log("cssOptimizeIgnored",["CSS file",v,"import directive",r]);b&&n.trim(b)!="all"&&(x=!0,e.log("cssOptimizeIgnoredMultiMediaTypes",["CSS file",v,"import directive",r]));if(x)return f(g)&&(w=c(d,E,["CSS file",v,"import directive",r]))?'@import url("'+w+'")'+(b||"")+";":r;if(!S)return e.log("cssOptimizeIgnoredNoResource",["CSS file",v,"import directive",r]),r;h(S);var T=S.optimizedText,N=t.getFilepath(S.dest);return T.replace(i,function(n,r){var i=s(u(r));if(f(i)){var o=t.compactPath(t.catPath(N,i)),a=e.resourcesByDest[o];if(!!a)return'url("'+l(p.dest,a)+'")';e.log("cssOptimizeUnableToResolveURL",["CSS file",v,"import",S.src,"relative URL",n])}return n})}),/keepLines/i.test(e.cssOptimize)?g=g.replace(/(\r\n)+/g,"\r\n").replace(/\n+/g,"\n"):g=g.replace(/[\r\n]/g,"").replace(/\s+/g," ").replace(/\{\s/g,"{").replace(/\s\}/g,"}"),p.optimizedText=g,p.tag.noOptimize||(p.rawText=p.text,p.text=g)};return function(t,n){try{e.cssOptimize&&!t.tag.noOptimize&&(h(t),e.log("cssOptimize",["file",t.src]))}catch(r){e.log("cssOptimizeFailed",["file",t.src,"error",r])}}})},"build/node/fs":function(){define(["../fileHandleThrottle"],function(e){var t=require.nodeRequire("fs");return{statSync:t.statSync,mkdirSync:t.mkdirSync,readFileSync:t.readFileSync,writeFileSync:t.writeFileSync,readdirSync:t.readdirSync,readFile:function(n,r,i){e.enqueue(function(){t.readFile(n,r,function(t){e.release(),i.apply(null,arguments)})})},writeFile:function(n,r,i,s){e.enqueue(function(){t.writeFile(n,r,i,function(t){e.release(),s.apply(null,arguments)})})}}})},"build/node/process":function(){define(["../fileHandleThrottle","../messages"],function(e,t){var n=Number(process.version.match(/\d+\.\d+/)[0]),r=require.nodeRequire("child_process").spawn;return{cwd:process.cwd,exit:function(e){t.stop(),process.exit(e)},exec:function(){for(var t=arguments[0],i=[],s=1;s<arguments.length-3;s++)i.push(arguments[s]);var o=arguments[s++],u=arguments[s++],a=arguments[s];e.enqueue(function(){var s="",f=r(t,i),l=0,c=function(t){++l===2&&(e.release(),t&&u.log("execFailed",["message",o,"output",s]),a&&a(t,s))};f.on("exit",c),n>=.8?f.on("close",c):++l,f.stdout.on("data",function(e){s+=e}),f.stderr.on("data",function(e){s+=e})})}}})}}}),function(){var e=this.require;e({cache:{}}),!e.async&&e(["dojo"]),e.boot&&e.apply(null,e.boot)}()
\ No newline at end of file diff --git a/install/ui/util/build/patches/002-dojo-build-pvoborni-02-Allow-to-specify-modules-for-which-builder-doesn-t-r.patch b/install/ui/util/build/patches/002-dojo-build-pvoborni-02-Allow-to-specify-modules-for-which-builder-doesn-t-r.patch new file mode 100644 index 000000000..dfd57a82e --- /dev/null +++ b/install/ui/util/build/patches/002-dojo-build-pvoborni-02-Allow-to-specify-modules-for-which-builder-doesn-t-r.patch @@ -0,0 +1,98 @@ +From 711bfa2bda294cbaf36df28391c8e25361a82d63 Mon Sep 17 00:00:00 2001 +From: Petr Vobornik <pvoborni@redhat.com> +Date: Tue, 22 Jan 2013 15:25:00 +0100 +Subject: [PATCH] Allow to specify modules for which builder doesn't raise + dependency error + +One can specify module ids provided by other means (already built layer file) to build profile file in package section providedMids array. Builder than ignores dependency errors for specified modules. This allows to build layers without source codes of their dependencies, with no expected errors raised. + +Example: + +packages:[ + { + name: "packageName", + location: "packageName", + providedMids: [ + 'dojo/_base/declare', + 'dojo/_base/lang', + 'dojo/_base/array', + 'dojo/Stateful' + //etc + ] + } +], +--- + build/buildControl.js | 10 +++++++++- + build/transforms/depsScan.js | 13 +++++++++++-- + 2 files changed, 20 insertions(+), 3 deletions(-) + +diff --git a/build/buildControl.js b/build/buildControl.js +index 08fa793a8e21068b9847ab82a45e442e00759323..1198b59e4f754f87409912dfe409cc4205f9b4e5 100644 +--- a/build/buildControl.js ++++ b/build/buildControl.js +@@ -1,5 +1,6 @@ + define([ + "require", ++ "dojo/_base/array", + "dojo/_base/lang", + "./argv", + "./fs", +@@ -10,7 +11,7 @@ define([ + "./process", + "./messages", + "dojo/text!./help.txt" +-], function(require, lang, argv, fs, fileUtils, bc, v1xProfiles, stringify, process, messages, helpText){ ++], function(require, array, lang, argv, fs, fileUtils, bc, v1xProfiles, stringify, process, messages, helpText){ + // + // Process the arguments given on the command line to build up a profile object that is used to instruct and control + // the build process. +@@ -291,6 +292,13 @@ define([ + main:pack.destMain || pack.main, + location:computePath(pack.destLocation || ("./" + (pack.destName || packName)), bc.destBasePath) + }; ++ ++ var providedMids = pack.providedMids || []; ++ pack.providedMids = []; ++ array.forEach(providedMids, function(mid) { ++ pack.providedMids[mid] = true; ++ }); ++ + delete pack.destName; + delete pack.destMain; + delete pack.destLocation; +diff --git a/build/transforms/depsScan.js b/build/transforms/depsScan.js +index cd9c098ea5da30a148a82b2ff6cc1eaa593871d2..75186abc3fdce4135c426a6c64863fcd40a6342a 100644 +--- a/build/transforms/depsScan.js ++++ b/build/transforms/depsScan.js +@@ -604,6 +604,11 @@ define([ + aggregateDeps = names.concat(aggregateDeps); + // need to use extractResult[0] since it may delete the dojo.loadInit applications + resource.getText = function(){ return "// wrapped by build app" + newline + "define(" + json.stringify(aggregateDeps) + ", function(" + names.join(",") + "){" + newline + extractResult[0] + newline + "});" + newline; }; ++ }, ++ ++ isProvidedDependency = function(mid, dep) { ++ var packName = mid.split('/')[0]; ++ return bc.packages[packName].providedMids[dep] === true; + }; + + // scan the resource for dependencies +@@ -627,10 +632,14 @@ define([ + }else if(module){ + deps.push(module); + }else{ +- bc.log("amdMissingDependency", ["module", resource.mid, "dependency", dep]); ++ if (!isProvidedDependency(resource.mid, dep)) { ++ bc.log("amdMissingDependency", ["module", resource.mid, "dependency", dep]); ++ } + } + }catch(e){ +- bc.log("amdMissingDependency", ["module", resource.mid, "dependency", dep, "error", e]); ++ if (!isProvidedDependency(resource.mid, dep)) { ++ bc.log("amdMissingDependency", ["module", resource.mid, "dependency", dep, "error", e]); ++ } + } + } + }); +-- +1.7.11.7 + |