Files

1142 lines
585 KiB
JavaScript

//>>built
/*
Copyright 2015 The MathWorks, Inc.
@exports MW/utils/deprecation
*/
(function(e,k){var h,l=function(){},b=function(a){for(var f in a)return 0;return 1},m={}.toString,d=function(a){return"[object Function]"==m.call(a)},g=function(a){return"[object String]"==m.call(a)},c=function(a){return"[object Array]"==m.call(a)},a=function(a,f){if(a)for(var c=0;c<a.length;)f(a[c++])},f=function(a,f){for(var c in f)a[c]=f[c];return a},u=function(a,c){return f(Error(a),{src:"dojoLoader",info:c})},p=1,n=function(){return"_"+p++},q=function(a,f,c){return Qb(a,f,c,0,q)},r=this,s=r.document,
x=s&&s.createElement("DiV"),w=q.has=function(a){return d(y[a])?y[a]=y[a](r,s,x):y[a]},y=w.cache=k.hasCache;w.add=function(a,f,c,b){(void 0===y[a]||b)&&(y[a]=f);return c&&w(a)};w.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);w("host-webworker")&&(f(k.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1,"dojo-guarantee-console":0}),k.loaderPatch={injectUrl:function(a,f){try{importScripts(a),f()}catch(c){console.error(c)}}});
for(var A in e.has)w.add(A,e.has[A],0,1);var B=0,C=[],F=0,K=l,G=l,I;q.isXdUrl=l;q.initSyncLoader=function(a,f,c){F||(F=a,K=f,G=c);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:C,modules:S,execQ:oa,getModule:xa,injectModule:Ea,setArrived:Ma,signal:H,finishExec:ya,execModule:za,dojoRequirePlugin:F,getLegacyMode:function(){return B},guardCheckComplete:Da}};var O=location.protocol,N=location.host;q.isXdUrl=function(a){return/^\./.test(a)?!1:/^\/\//.test(a)?
!0:(a=a.match(/^([^\/\:]+\:)\/+([^\/]+)/))&&(a[1]!=O||N&&a[2]!=N)};w.add("dojo-force-activex-xhr",!s.addEventListener&&"file:"==window.location.protocol);w.add("native-xhr","undefined"!=typeof XMLHttpRequest);if(w("native-xhr")&&!w("dojo-force-activex-xhr"))I=function(){return new XMLHttpRequest};else{var T=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],P;for(h=0;3>h;)try{if(P=T[h++],new ActiveXObject(P))break}catch(Q){}I=function(){return new ActiveXObject(P)}}q.getXhr=I;w.add("dojo-gettext-api",
1);q.getText=function(a,f,c){var b=I();b.open("GET",Ua(a),!1);b.send(null);if(200==b.status||!location.host&&!b.status)c&&c(b.responseText,f);else throw u("xhrFailed",b.status);return b.responseText};var L=w("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");q.eval=function(a,f){return L(a+"\r\n//# sourceURL\x3d"+f)};var J={},H=q.signal=function(f,b){var p=J[f];a(p&&p.slice(0),function(a){a.apply(null,c(b)?b:[b])})},V=q.on=function(a,f){var c=J[a]||(J[a]=[]);c.push(f);return{remove:function(){for(var a=
0;a<c.length;a++)if(c[a]===f){c.splice(a,1);break}}}},W=[],R={},Z=[],ba={},U=q.map={},ka=[],S={},aa="",ha={},Aa={},ia={},qa=0,ra=function(a,f){f=!1!==f;var c,b,p,d;for(c in Aa)b=Aa[c],(p=c.match(/^url\:(.+)/))?ha["url:"+Rb(p[1],a)]=b:"*now"==c?d=b:"*noref"!=c&&(p=Wa(c,a,!0),ha[p.mid]=ha["url:"+p.url]=b);d&&d(Db(a));f&&(Aa={})},Eb=function(a){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(a){return"\\"+a})},lb=function(a,f){f.splice(0,f.length);for(var c in a)f.push([c,a[c],RegExp("^"+Eb(c)+
"(/|$)"),c.length]);f.sort(function(a,f){return f[3]-a[3]});return f},Fb=function(f,c){a(f,function(a){c.push([g(a[0])?RegExp("^"+Eb(a[0])+"$"):a[0],a[1]])})},mb=function(a){var c=a.name;c||(c=a,a={name:c});a=f({main:"main"},a);a.location=a.location?a.location:c;a.packageMap&&(U[c]=a.packageMap);a.main.indexOf("./")||(a.main=a.main.substring(2));ba[c]=a},Xa=[],Ya=function(c,b,p){for(var d in c){"waitSeconds"==d&&(q.waitms=1E3*(c[d]||0));"cacheBust"==d&&(aa=c[d]?g(c[d])?c[d]:(new Date).getTime()+"":
"");if("baseUrl"==d||"combo"==d)q[d]=c[d];if("async"==d){var n=c[d];q.legacyMode=B=g(n)&&/sync|legacyAsync/.test(n)?n:!n?"sync":!1;q.async=!B}c[d]!==y&&(q.rawConfig[d]=c[d],"has"!=d&&w.add("config-"+d,c[d],0,b))}q.baseUrl||(q.baseUrl="./");/\/$/.test(q.baseUrl)||(q.baseUrl+="/");for(d in c.has)w.add(d,c.has[d],0,b);a(c.packages,mb);for(var u in c.packagePaths)a(c.packagePaths[u],function(a){var f=u+"/"+a;g(a)&&(a={name:a});a.location=f;mb(a)});lb(f(U,c.map),ka);a(ka,function(a){a[1]=lb(a[1],[]);"*"==
a[0]&&(ka.star=a)});lb(f(R,c.paths),Z);Fb(c.aliases,W);if(b)Xa.push({config:c.config});else for(d in c.config)b=xa(d,p),b.config=f(b.config||{},c.config[d]);c.cache&&(ra(),Aa=c.cache,ra(0,!!c.cache["*noref"]));H("config",[c,q.rawConfig])};w("dojo-cdn");var nb=s.getElementsByTagName("script");h=0;for(var Ba,Fa,Za,Na;h<nb.length;){Ba=nb[h++];if((Za=Ba.getAttribute("src"))&&(Na=Za.match(/(((.*)\/)|^)dojo\.js(\W|$)/i)))Fa=Na[3]||"",k.baseUrl=k.baseUrl||Fa,qa=Ba;if(Za=Ba.getAttribute("data-dojo-config")||
Ba.getAttribute("djConfig"))ia=q.eval("({ "+Za+" })","data-dojo-config"),qa=Ba}q.rawConfig={};Ya(k,1);w("dojo-cdn")&&((ba.dojo.location=Fa)&&(Fa+="/"),ba.dijit.location=Fa+"../dijit/",ba.dojox.location=Fa+"../dojox/");Ya(e,1);Ya(ia,1);var Oa=function(f){Da(function(){a(f.deps,Ea)})},Qb=function(a,b,d,p,r){var s;if(g(a)){if((s=xa(a,p,!0))&&s.executed)return s.result;if("dojo/i18n"===p.mid)return;throw u("undefinedModule",a);}c(a)||(Ya(a,0,p),a=b,b=d);if(c(a))if(a.length){d="require*"+n();for(var m,
e=[],x=0;x<a.length;)m=a[x++],e.push(xa(m,p));s=f(ob("",d,0,""),{injected:2,deps:e,def:b||l,require:p?p.require:q,gc:1});S[s.mid]=s;Oa(s);var w=Ga&&"sync"!=B;Da(function(){za(s,w)});s.executed||oa.push(s);Ha()}else b&&b();return r},Db=function(a){if(!a)return q;var c=a.require;c||(c=function(f,b,d){return Qb(f,b,d,a,c)},a.require=f(c,q),c.module=a,c.toUrl=function(f){return Rb(f,a)},c.toAbsMid=function(f){return Gb(f,a)},c.syncLoadNls=function(f){f=Wa(f,a);var c=S[f.mid];if(!c||!c.executed)if(Ia=
ha[f.mid]||ha["url:"+f.url])sa(Ia),c=S[f.mid];return c&&c.executed&&c.result});return c},oa=[],pb=[],pa={},fc=function(a){a.injected=1;pa[a.mid]=1;a.url&&(pa[a.url]=a.pack||1);$a()},Ma=function(a){a.injected=2;delete pa[a.mid];a.url&&delete pa[a.url];b(pa)&&(ab(),"xd"==B&&(B="sync"))},Sb=q.idle=function(){return!pb.length&&b(pa)&&!oa.length&&!Ga},qb=function(a,f){if(f)for(var c=0;c<f.length;c++)if(f[c][2].test(a))return f[c];return 0},Tb=function(a){var f=[],c,b;for(a=a.replace(/\\/g,"/").split("/");a.length;)c=
a.shift(),".."==c&&f.length&&".."!=b?(f.pop(),b=f[f.length-1]):"."!=c&&f.push(b=c);return f.join("/")},ob=function(a,f,c,b){var d=q.isXdUrl(b);return{pid:a,mid:f,pack:c,url:b,executed:0,def:0,isXd:d,isAmd:!!(d||ba[a]&&ba[a].isAmd)}},Ub=function(f,c,b,p,n,q,g,r,s,m){var e,x,l,h;h=/^\./.test(f);if(/(^\/)|(\:)|(\.js$)/.test(f)||h&&!c)return ob(0,f,0,f);f=Tb(h?c.mid+"/../"+f:f);if(/^\./.test(f))throw u("irrationalPath",f);!m&&(!h&&q.star)&&(l=qb(f,q.star[1]));!l&&c&&(l=(l=qb(c.mid,q))&&qb(f,l[1]));l&&
(f=l[1]+f.substring(l[3]));c=(Na=f.match(/^([^\/]+)(\/(.+))?$/))?Na[1]:"";(e=b[c])?f=c+"/"+(x=Na[3]||e.main):c="";var y=0;a(r,function(a){var c=f.match(a[0]);c&&0<c.length&&(y=d(a[1])?f.replace(a[0],a[1]):a[1])});if(y)return Ub(y,0,b,p,n,q,g,r,s);if(b=p[f])return s?ob(b.pid,b.mid,b.pack,b.url):p[f];p=(l=qb(f,g))?l[1]+f.substring(l[3]):c?e.location+"/"+x:w("config-tlmSiblingOfDojo")?"../"+f:f;/(^\/)|(\:)/.test(p)||(p=n+p);return ob(c,f,e,Tb(p+".js"))},Wa=function(a,f,c){return Ub(a,f,ba,S,q.baseUrl,
ka,Z,W,void 0,c)},Vb=function(a,f,c){return a.normalize?a.normalize(f,function(a){return Gb(a,c)}):Gb(f,c)},Wb=0,xa=function(a,f,c){var b,d;(b=a.match(/^(.+?)\!(.*)$/))?(d=xa(b[1],f,c),"sync"==B&&!d.executed&&(Ea(d),2===d.injected&&!d.executed&&Da(function(){za(d)}),d.executed?Pa(d):oa.unshift(d)),5===d.executed&&!d.load&&Pa(d),d.load?(b=Vb(d,b[2],f),a=d.mid+"!"+(d.dynamic?++Wb+"!":"")+b):(b=b[2],a=d.mid+"!"+ ++Wb+"!waitingForPlugin"),a={plugin:d,mid:a,req:Db(f),prid:b}):a=Wa(a,f);return S[a.mid]||
!c&&(S[a.mid]=a)},Gb=q.toAbsMid=function(a,f){return Wa(a,f).mid},Rb=q.toUrl=function(a,f){var c=Wa(a+"/x",f),b=c.url;return Ua(0===c.pid?a:b.substring(0,b.length-5))},Xb={injected:2,executed:5,def:3,result:3},Hb=function(a){return S[a]=f({mid:a},Xb)},hc=Hb("require"),ic=Hb("exports"),jc=Hb("module"),sb={},Ja=0,Pa=function(a){var f=a.result;a.dynamic=f.dynamic;a.normalize=f.normalize;a.load=f.load;return a},tb=function(c){var b={};a(c.loadQ,function(a){var d=Vb(c,a.prid,a.req.module),p=c.dynamic?
a.mid.replace(/waitingForPlugin$/,d):c.mid+"!"+d,d=f(f({},a),{mid:p,prid:d,injected:0});if(!S[p]||!S[p].injected)bb(S[p]=d);b[a.mid]=S[p];Ma(a);delete S[a.mid]});c.loadQ=0;var d=function(a){for(var f=a.deps||[],c=0;c<f.length;c++)(a=b[f[c].mid])&&(f[c]=a)},p;for(p in S)d(S[p]);a(oa,d)},ya=function(f){q.trace("loader-finish-exec",[f.mid]);f.executed=5;f.defOrder=Ja++;a(f.provides,function(a){a()});f.loadQ&&(Pa(f),tb(f));for(h=0;h<oa.length;)oa[h]===f?oa.splice(h,1):h++;/^require\*/.test(f.mid)&&delete S[f.mid]},
cb=[],za=function(a,f){if(4===a.executed)return q.trace("loader-circular-dependency",[cb.concat(a.mid).join("-\x3e")]),!a.def||f?sb:a.cjs&&a.cjs.exports;if(!a.executed){if(!a.def)return sb;var c=a.mid,b=a.deps||[],p,n=[],g=0;for(a.executed=4;p=b[g++];){p=p===hc?Db(a):p===ic?a.cjs.exports:p===jc?a.cjs:za(p,f);if(p===sb)return a.executed=0,q.trace("loader-exec-module",["abort",c]),sb;n.push(p)}q.trace("loader-run-factory",[a.mid]);var c=a.def,r;C.unshift(a);if(w("config-dojo-loader-catches"))try{r=
d(c)?c.apply(null,n):c}catch(s){H("error",a.result=u("factoryThrew",[a,s]))}else r=d(c)?c.apply(null,n):c;a.result=void 0===r&&a.cjs?a.cjs.exports:r;C.shift(a);ya(a)}return a.result},Ga=0,Da=function(a){try{Ga++,a()}catch(f){throw f;}finally{Ga--}Sb()&&H("idle",[])},Ha=function(){Ga||Da(function(){K();for(var a,f,c=0;c<oa.length;)a=Ja,f=oa[c],za(f),a!=Ja?(K(),c=0):c++})};void 0===w("dojo-loader-eval-hint-url")&&w.add("dojo-loader-eval-hint-url",1);var Ua="function"==typeof e.fixupUrl?e.fixupUrl:function(a){a+=
"";return a+(aa?(/\?/.test(a)?"\x26":"?")+aa:"")},bb=function(a){var f=a.plugin;5===f.executed&&!f.load&&Pa(f);var c=function(f){a.result=f;Ma(a);ya(a);Ha()};f.load?f.load(a.prid,a.req,c):f.loadQ?f.loadQ.push(a):(f.loadQ=[a],oa.unshift(f),Ea(f))},Ia=0,db=0,Ib=0,sa=function(a,f){"function"===typeof e.moduleTextTransform&&(a=e.moduleTextTransform(a,f));w("config-stripStrict")&&(a=a.replace(/(["'])use strict\1/g,""));Ib=1;if(w("config-dojo-loader-catches"))try{a===Ia?Ia.call(null):q.eval(a,w("dojo-loader-eval-hint-url")?
f.url:f.mid)}catch(c){H("error",u("evalModuleThrew",f))}else a===Ia?Ia.call(null):q.eval(a,w("dojo-loader-eval-hint-url")?f.url:f.mid);Ib=0},Ea=function(c){var b=c.mid,d=c.url;if(!c.executed&&!c.injected&&!(pa[b]||c.url&&(c.pack&&pa[c.url]===c.pack||1==pa[c.url])))if(fc(c),c.plugin)bb(c);else{var p=function(){Jb(c);if(2!==c.injected){if(w("dojo-enforceDefine")){H("error",u("noDefine",c));return}Ma(c);f(c,Xb);q.trace("loader-define-nonmodule",[c.url])}B?!C.length&&Ha():Ha()};if(Ia=ha[b]||ha["url:"+
c.url])q.trace("loader-inject",["cache",c.mid,d]),sa(Ia,c),p();else{if(B)if(c.isXd)"sync"==B&&(B="xd");else if(!(c.isAmd&&"sync"!=B)){var n=function(f){if("sync"==B){C.unshift(c);sa(f,c);C.shift();Jb(c);c.cjs||(Ma(c),ya(c));if(c.finish){f=b+"*finish";var n=c.finish;delete c.finish;ub(f,["dojo",("dojo/require!"+n.join(",")).replace(/\./g,"/")],function(f){a(n,function(a){f.require(a)})});oa.unshift(xa(f))}p()}else(f=G(c,f))?(sa(f,c),p()):(db=c,q.injectUrl(Ua(d),p,c),db=0)};q.trace("loader-inject",
["xhr",c.mid,d,"sync"!=B]);if(w("config-dojo-loader-catches"))try{q.getText(d,"sync"!=B,n)}catch(g){H("error",u("xhrInjectFailed",[c,g]))}else q.getText(d,"sync"!=B,n);return}q.trace("loader-inject",["script",c.mid,d]);db=c;q.injectUrl(Ua(d),p,c);db=0}}},vb=function(a,c,b){q.trace("loader-define-module",[a.mid,c]);var p=a.mid;if(2===a.injected)return H("error",u("multipleDefine",a)),a;f(a,{deps:c,def:b,cjs:{id:a.mid,uri:a.url,exports:a.result={},setExports:function(f){a.cjs.exports=f},config:function(){return a.config}}});
for(var n=0;c[n];n++)c[n]=xa(c[n],a);B&&!pa[p]&&(Oa(a),oa.push(a),Ha());Ma(a);!d(b)&&!c.length&&(a.result=b,ya(a));return a},Jb=function(f,c){for(var b=[],d,p;pb.length;)p=pb.shift(),c&&(p[0]=c.shift()),d=p[0]&&xa(p[0])||f,b.push([d,p[1],p[2]]);ra(f);a(b,function(a){Oa(vb.apply(null,a))})},Qa=0,ab=l,$a=l,ab=function(){Qa&&clearTimeout(Qa);Qa=0},$a=function(){ab();q.waitms&&(Qa=r.setTimeout(function(){ab();H("error",u("timeout",pa))},q.waitms))};w.add("ie-event-behavior",s.attachEvent&&"undefined"===
typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var Ra=function(a,f,c,b){if(w("ie-event-behavior"))return a.attachEvent(c,b),function(){a.detachEvent(c,b)};a.addEventListener(f,b,!1);return function(){a.removeEventListener(f,b,!1)}},Yb=Ra(window,"load","onload",function(){q.pageLoaded=1;try{"complete"!=s.readyState&&(s.readyState="complete")}catch(a){}Yb()}),nb=s.getElementsByTagName("script");for(h=0;!qa;)if(!/^dojo/.test((Ba=nb[h++])&&Ba.type))qa=Ba;q.injectUrl=
function(a,f,c){c=c.node=s.createElement("script");var b=Ra(c,"load","onreadystatechange",function(a){a=a||window.event;var c=a.target||a.srcElement;if("load"===a.type||/complete|loaded/.test(c.readyState))b(),d(),f&&f()}),d=Ra(c,"error","onerror",function(f){b();d();H("error",u("scriptError",[a,f]))});c.type="text/javascript";c.charset="utf-8";c.src=a;qa.parentNode.insertBefore(c,qa);return c};q.log=function(){try{for(var a=0;a<arguments.length;a++);}catch(f){}};q.trace=l;var ub=function(a,f,c){var b=
arguments.length,p=["require","exports","module"],n=[0,a,f];1==b?n=[0,d(a)?p:[],a]:2==b&&g(a)?n=[a,d(f)?p:[],f]:3==b&&(n=[a,f,c]);q.trace("loader-define",n.slice(0,2));if((b=n[0]&&xa(n[0]))&&!pa[b.mid])Oa(vb(b,n[1],n[2]));else if(!w("ie-event-behavior")||Ib)pb.push(n);else{b=b||db;if(!b)for(a in pa)if((p=S[a])&&p.node&&"interactive"===p.node.readyState){b=p;break}b?(ra(b),Oa(vb(b,n[1],n[2]))):H("error",u("ieDefineFailed",n[0]));Ha()}};ub.amd={vendor:"dojotoolkit.org"};f(f(q,k.loaderPatch),e.loaderPatch);
V("error",function(a){try{if(console.error(a),a instanceof Error)for(var f in a);}catch(c){}});f(q,{uid:n,cache:ha,packs:ba});if(r.define)H("error",u("defineAlreadyDefined",0));else{r.define=ub;r.require=q;a(Xa,function(a){Ya(a)});var eb=ia.deps||e.deps||k.deps,ja=ia.callback||e.callback||k.callback;q.boot=eb||ja?[eb||[],ja]:0}})(this.dojoConfig||this.djConfig||this.require||{},{async:0,hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},
packages:[{location:"../dojoConfigs",name:"dojoConfigs"},{location:"../l10n",name:"l10n"},{location:"../images",name:"images"},{location:"../css",name:"css"},{location:"../fonts",name:"fonts"},{location:"../mc",name:"mc"},{location:"../BuildStatus",main:"BuildStatusMain",name:"BuildStatus"},{location:"../uicomponents_appdesigner_plugin",name:"uicomponents_appdesigner_plugin"},{location:"../gbtshared",name:"gbtshared"},{location:"../uicomponents_plugin_uifigure",name:"uicomponents_plugin_uifigure"},
{location:"../variableeditor_client",name:"variableeditor_client"},{location:"../spinner",name:"spinner"},{location:"../gbtclient",name:"gbtclient"},{location:"../variableeditor_peer",name:"variableeditor_peer"},{location:"../mw-colorpicker",name:"mw-colorpicker"},{location:"../InstallServiceHandler",main:"InstallServiceHandler.js",name:"InstallServiceHandler"},{location:"../mw-dom-utils",main:"domUtils",name:"mw-dom-utils"},{location:"../mw-string-utils",main:"Utils",name:"mw-string-utils"},{location:"../installjscommon",
name:"installjscommon"},{location:"../componentframework",name:"componentframework"},{location:"../mw-table",main:"MAIN_ENTRY_POINT_FILE",name:"mw-table"},{location:"../observer_dialog",name:"observer_dialog"},{location:"../mw-html-utils",main:"HTMLUtils",name:"mw-html-utils"},{location:"../put-selector",main:"put",name:"put-selector"},{location:"../regenerator-runtime",main:"runtime-module.js",name:"regenerator-runtime"},{location:"../dojoxLocalLib",name:"dojoxLocalLib"},{location:"../arrayplot",
name:"arrayplot"},{location:"../dig",name:"dig"},{location:"../TaskController",name:"TaskController"},{location:"../inspector",main:"app/Main",name:"inspector"},{location:"../css-inspector",name:"css-inspector"},{location:"../images-inspector",name:"images-inspector"},{location:"../visualcomponents",name:"visualcomponents"},{location:"../uifigure_interface",name:"uifigure_interface"},{location:"../mw-tree",name:"mw-tree"},{location:"../mw-facade",main:"MatlabFacade.js",name:"mw-facade"},{location:"../wigl",
name:"wigl"},{location:"../workspacebrowser",main:"app/Main",name:"workspacebrowser"},{location:"../css-workspacebrowser",name:"css-workspacebrowser"},{location:"../images-workspacebrowser",name:"images-workspacebrowser"},{location:"../variableeditor",main:"app/Main",name:"variableeditor"},{location:"../css-variableeditor",name:"css-variableeditor"},{location:"../images-variableeditor",name:"images-variableeditor"},{location:"../xstyle",name:"xstyle"},{location:"../addons-ui",name:"addons-ui"},{location:"../gbtcomponents_plugin_uifigure",
name:"gbtcomponents_plugin_uifigure"},{location:"../mw-tabular-data-model",name:"mw-tabular-data-model"},{location:"../mw-style-utils",main:"Utils",name:"mw-style-utils"},{location:"../dpvu",name:"dpvu"},{location:"../equationrenderer",name:"equationrenderer"},{location:"../css-equationrenderer",name:"css-equationrenderer"},{location:"../mw-statemachine",main:"StateMachine",name:"mw-statemachine"},{location:"../liveeditor",main:"LiveEditorMain",name:"liveeditor"},{location:"../mw-dnd",main:"DndUtils",
name:"mw-dnd"},{location:"../ExportDialog",main:"app/Main",name:"ExportDialog"},{location:"../hmishared",name:"hmishared"},{location:"../spectrumanalyzer",name:"spectrumanalyzer"},{location:"../logicanalyzer",main:"app/Main",name:"logicanalyzer"},{location:"../dojox",name:"dojox"},{location:"../gbtcomponents",name:"gbtcomponents"},{location:"../mw-peermodel",main:"PeerSynchronizer",name:"mw-peermodel"},{location:"../bussignalselector",main:"app/Main",name:"bussignalselector"},{location:"../mw-tree-data-model",
name:"mw-tree-data-model"},{location:"../mw-actiondataservice",main:"ActionDataService",name:"mw-actiondataservice"},{location:"../mw-browser-utils",name:"mw-browser-utils"},{location:"../analyzer",main:"Main",name:"analyzer"},{location:"../mw-gesture",name:"mw-gesture"},{location:"../supportsoftwareclient",main:"js/Main",name:"supportsoftwareclient"},{location:"../matlab_preferences",main:"Main",name:"matlab_preferences"},{location:"../remoteproxy",name:"remoteproxy"},{location:"../datatoolsservices",
name:"datatoolsservices"},{location:"../mw-utils",main:"Utils",name:"mw-utils"},{location:"../appdesigner_build",name:"appdesigner_build"},{location:"../mw-event-utils",main:"platformize",name:"mw-event-utils"},{location:"../mlfcneditor",name:"mlfcneditor"},{location:"../cslistview",name:"cslistview"},{location:"../mw-log",main:"Log",name:"mw-log"},{location:"../viewer",main:"ViewerMain",name:"viewer"},{location:".",name:"dojo"},{location:"../DeviceList",name:"DeviceList"},{location:"../StateTransitionMatrix",
name:"StateTransitionMatrix"},{location:"../css-stm",name:"css-stm"},{location:"../mf0",name:"mf0"},{location:"../ExportToTemplate",main:"app/Main",name:"ExportToTemplate"},{location:"../dijit",name:"dijit"},{location:"../truthtable",name:"truthtable"},{location:"../SDI2",main:"View",name:"SDI2"},{location:"../mw-store-utils",name:"mw-store-utils"},{location:"../dgrid",main:"OnDemandGrid",name:"dgrid"},{location:"../mw-filename-utils",main:"FileNameUtil",name:"mw-filename-utils"},{location:"../vor",
name:"vor"},{location:"../graphics",name:"graphics"},{location:"../mw-dialog-utils",main:"DialogUtils.js",name:"mw-dialog-utils"},{location:"../sourcecontrol-ui",name:"sourcecontrol-ui"},{location:"../AxesView",name:"AxesView"},{location:"../mw-remote",main:"Remote",name:"mw-remote"},{location:"../react",name:"react"},{location:"../STT",name:"STT"},{location:"../css-stt",name:"css-stt"},{location:"../TableView",name:"TableView"},{location:"../JobViewer",name:"JobViewer"},{location:"../mw-deprecation-utils",
name:"mw-deprecation-utils"},{location:"../mw-notifications",name:"mw-notifications"},{location:"../findfiles-ui",name:"findfiles-ui"},{location:"../mw-dialogs",name:"mw-dialogs"},{location:"../uisetcolor",name:"uisetcolor"},{location:"../glee",main:"js/Main",name:"glee"},{location:"../mw-overlay-utils",main:"Utils",name:"mw-overlay-utils"},{location:"../appdesigner_interface",name:"appdesigner_interface"},{location:"../maven_component_ui",name:"maven_component_ui"},{location:"../axesgallery",name:"axesgallery"},
{location:"../tntspec",main:"Main",name:"tntspec"},{location:"../mw-messageservice",main:"MessageService",name:"mw-messageservice"},{location:"../webmanager",name:"webmanager"},{location:"../css-webmanager",name:"css-webmanager"},{location:"../images-webmanager",name:"images-webmanager"},{location:"../toolstrip",name:"toolstrip"},{location:"../matlabeditor",main:"app/Main",name:"matlabeditor"},{location:"../css-matlabeditor",name:"css-matlabeditor"},{location:"../jit_activation",main:"js/Main",name:"jit_activation"},
{location:"../MW",name:"MW"},{location:"../matlab_login",main:"matlab_login/matlab_login",name:"matlab_login"},{location:"../mw-keybindings",name:"mw-keybindings"},{location:"../uitest",name:"uitest"},{location:"../reactive",name:"reactive"},{location:"../mf0_sync",name:"mf0_sync"},{location:"../SLMsgViewer",name:"SLMsgViewer"},{location:"../css-slmsgviewer",name:"css-slmsgviewer"},{location:"../images-slmsgviewer",name:"images-slmsgviewer"},{location:"../examplemanager",main:"ExamplesMain",name:"examplemanager"},
{location:"../appdesigner",name:"appdesigner"},{location:"../ccr",name:"ccr"},{location:"../SFDebugger",main:"app/Main",name:"SFDebugger"},{location:"../css-SFDebugger",name:"css-SFDebugger"},{location:"../images-SFDebugger",name:"images-SFDebugger"},{location:"../webscopes",name:"webscopes"},{location:"../online_license_management",main:"js/Main",name:"online_license_management"},{location:"../examplegallery",main:"ExampleMain",name:"examplegallery"},{location:"../sltemplate",name:"sltemplate"},
{location:"../symbols",main:"Main",name:"symbols"},{location:"../sfwebwidgets",name:"sfwebwidgets"},{location:"../GalleryView",main:"app/Main",name:"GalleryView"},{location:"../webview",name:"webview"}],supportedLocales:["en-us"]});
require({cache:{"dojo/main":function(){define("./_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 ./_base/browser ./_base/loader".split(" "),function(e,k,h,l,b,m,d,g){d.isDebug&&h(["./_firebug/firebug"]);var c=d.require;c&&(c=m.map(b.isArray(c)?c:[c],function(a){return a.replace(/\./g,"/")}),e.isAsync?h(c):g(1,function(){h(c)}));return e})},"dojo/_base/kernel":function(){define(["../has",
"./config","require","module"],function(e,k,h,l){var b,m;b=function(){return this}();var d={},g={},c={config:k,global:b,dijit:d,dojox:g},d={dojo:["dojo",c],dijit:["dijit",d],dojox:["dojox",g]};l=h.map&&h.map[l.id.match(/[^\/]+/)[0]];for(m in l)d[m]?d[m][0]=l[m]:d[m]=[l[m],{}];for(m in d)l=d[m],l[1]._scopeName=l[0],k.noGlobals||(b[l[0]]=l[1]);c.scopeMap=d;c.baseUrl=c.config.baseUrl=h.baseUrl;c.isAsync=h.async;c.locale=k.locale;b="$Rev: 91fa0cb $".match(/[0-9a-f]{7,}/);c.version={major:1,minor:11,patch:2,
flag:"",revision:b?b[0]:NaN,toString:function(){var a=c.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};e("csp-restrictions")||Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(c);c.exit=function(){};e("host-webworker");e.add("console-as-object",function(){return Function.prototype.bind&&console&&"object"===typeof console.log});"undefined"!=typeof console||(console={});l="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" ");
var a;for(b=0;a=l[b++];)console[a]?e("console-as-object")&&(console[a]=Function.prototype.bind.call(console[a],console)):function(){var f=a+"";console[f]="log"in console?function(){var a=Array.prototype.slice.call(arguments);a.unshift(f+":");console.log(a.join(" "))}:function(){};console[f]._fake=!0}();e.add("dojo-debug-messages",!!k.isDebug);c.deprecated=c.experimental=function(){};e("dojo-debug-messages")&&(c.deprecated=function(a,c,b){a="DEPRECATED: "+a;c&&(a+=" "+c);b&&(a+=" -- will be removed in version: "+
b);console.warn(a)},c.experimental=function(a,c){var b="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";c&&(b+=" "+c);console.warn(b)});if(k.modulePaths){c.deprecated("dojo.modulePaths","use paths configuration");e={};for(m in k.modulePaths)e[m.replace(/\./g,"/")]=k.modulePaths[m];h({paths:e})}c.moduleUrl=function(a,b){c.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var d=null;a&&(d=h.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/"));return d};
c._hasResource={};return c})},"dojo/has":function(){define(["require","module"],function(e,k){var h=e.has||function(){};h.add("dom-addeventlistener",!!document.addEventListener);h.add("touch","ontouchstart"in document||"onpointerdown"in document&&0<navigator.maxTouchPoints||window.navigator.msMaxTouchPoints);h.add("touch-events","ontouchstart"in document);h.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window);h.add("MSPointer",window.navigator.msPointerEnabled);
h.add("device-width",screen.availWidth||innerWidth);var l=document.createElement("form");h.add("dom-attributes-explicit",0==l.attributes.length);h.add("dom-attributes-specified-flag",0<l.attributes.length&&40>l.attributes.length);h.clearElement=function(b){b.innerHTML="";return b};h.normalize=function(b,m){var d=b.match(/[\?:]|[^:\?]*/g),g=0,c=function(a){var f=d[g++];if(":"==f)return 0;if("?"==d[g++]){if(!a&&h(f))return c();c(!0);return c(a)}return f||0};return(b=c())&&m(b)};h.load=function(b,m,
d){b?m([b],d):d()};return h})},"dojo/_base/config":function(){define(["../has","require"],function(e,k){var h={},l=k.rawConfig,b;for(b in l)h[b]=l[b];h.updateLocale=function(b,d){var g,c;if(0<=b.indexOf(d)&&"zh"!==d)h.locale=d;else if(g=d.split("-")[0],"zh"===g)h.locale="en-us".toLocaleLowerCase();else{for(var a=0;a<b.length;a+=1)if(c=b[a].split("-")[0],g===c){h.locale=b[a];break}h.locale||(h.locale="en-us")}};if(!h.locale&&"undefined"!=typeof navigator&&(l=h._testLanguageOverride||navigator.language||
navigator.userLanguage))l=l.toLowerCase(),h.supportedLocales&&h.updateLocale(h.supportedLocales,l);h.locale||(h.locale="en-us");return h})},"dojo/sniff":function(){define(["./has"],function(e){var k=navigator,h=k.userAgent,k=k.appVersion,l=parseFloat(k);e.add("air",0<=h.indexOf("AdobeAIR"));e.add("wp",parseFloat(h.split("Windows Phone")[1])||void 0);e.add("msapp",parseFloat(h.split("MSAppHost/")[1])||void 0);e.add("khtml",0<=k.indexOf("Konqueror")?l:void 0);e.add("edge",parseFloat(h.split("Edge/")[1])||
void 0);e.add("opr",parseFloat(h.split("OPR/")[1])||void 0);e.add("webkit",!e("wp")&&!e("edge")&&parseFloat(h.split("WebKit/")[1])||void 0);e.add("chrome",!e("edge")&&!e("opr")&&parseFloat(h.split("Chrome/")[1])||void 0);e.add("android",!e("wp")&&parseFloat(h.split("Android ")[1])||void 0);e.add("safari",0<=k.indexOf("Safari")&&!e("wp")&&!e("chrome")&&!e("android")&&!e("edge")&&!e("opr")?parseFloat(k.split("Version/")[1]):void 0);e.add("mac",0<=k.indexOf("Macintosh"));e.add("quirks","BackCompat"==
document.compatMode);if(!e("wp")&&h.match(/(iPhone|iPod|iPad)/)){var b=RegExp.$1.replace(/P/,"p"),m=h.match(/OS ([\d_]+)/)?RegExp.$1:"1",m=parseFloat(m.replace(/_/,".").replace(/_/g,""));e.add(b,m);e.add("ios",m)}e.add("bb",(0<=h.indexOf("BlackBerry")||0<=h.indexOf("BB10"))&&parseFloat(h.split("Version/")[1])||void 0);e.add("trident",parseFloat(k.split("Trident/")[1])||void 0);e.add("svg","undefined"!==typeof SVGAngle);e("webkit")||(0<=h.indexOf("Opera")&&e.add("opera",9.8<=l?parseFloat(h.split("Version/")[1])||
l:l),0<=h.indexOf("Gecko")&&(!e("wp")&&!e("khtml")&&!e("trident")&&!e("edge"))&&e.add("mozilla",l),e("mozilla")&&e.add("ff",parseFloat(h.split("Firefox/")[1]||h.split("Minefield/")[1])||void 0),document.all&&!e("opera")&&(h=parseFloat(k.split("MSIE ")[1])||void 0,(k=document.documentMode)&&(5!=k&&Math.floor(h)!=k)&&(h=k),e.add("ie",h)),e.add("wii","undefined"!=typeof opera&&opera.wiiremote));return e})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(e,k){k.add("bug-for-in-skips-shadowed",
function(){for(var a in{toString:1})return 0;return 1});var h=k("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],l=h.length,b=function(a,f,c){c||(c=a[0]&&e.scopeMap[a[0]]?e.scopeMap[a.shift()][1]:e.global);try{for(var b=0;b<a.length;b++){var d=a[b];if(!(d in c))if(f)c[d]={};else return;c=c[d]}return c}catch(q){}},m=Object.prototype.toString,d=function(a,f,c){return(c||[]).concat(Array.prototype.slice.call(a,
f||0))},g=/\{([^\}]+)\}/g,c={_extraNames:h,_mixin:function(a,f,c){var b,d,q,g={};for(b in f)if(d=f[b],!(b in a)||a[b]!==d&&(!(b in g)||g[b]!==d))a[b]=c?c(d):d;if(k("bug-for-in-skips-shadowed")&&f)for(q=0;q<l;++q)if(b=h[q],d=f[b],!(b in a)||a[b]!==d&&(!(b in g)||g[b]!==d))a[b]=c?c(d):d;return a},mixin:function(a,f){a||(a={});for(var b=1,d=arguments.length;b<d;b++)c._mixin(a,arguments[b]);return a},setObject:function(a,c,d){var p=a.split(".");a=p.pop();return(d=b(p,!0,d))&&a?d[a]=c:void 0},getObject:function(a,
c,d){return!a?d:b(a.split("."),c,d)},exists:function(a,f){return void 0!==c.getObject(a,!1,f)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:Array.isArray||function(a){return"[object Array]"==m.call(a)},isFunction:function(a){return"[object Function]"===m.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==typeof a||c.isArray(a)||c.isFunction(a))},isArrayLike:function(a){return!!a&&!c.isString(a)&&!c.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&
(c.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!c.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))},extend:function(a,f){for(var b=1,d=arguments.length;b<d;b++)c._mixin(a.prototype,arguments[b]);return a},_hitchArgs:function(a,f){var b=c._toArray(arguments,2),d=c.isString(f);return function(){var n=c._toArray(arguments),g=d?(a||e.global)[f]:f;return g&&g.apply(a||this,b.concat(n))}},hitch:function(a,f){if(2<arguments.length)return c._hitchArgs.apply(e,arguments);f||(f=
a,a=null);if(c.isString(f)){a=a||e.global;if(!a[f])throw['lang.hitch: scope["',f,'"] is null (scope\x3d"',a,'")'].join("");return function(){return a[f].apply(a,arguments||[])}}return!a?f:function(){return f.apply(a,arguments||[])}},delegate:function(){function a(){}return function(f,b){a.prototype=f;var d=new a;a.prototype=null;b&&c._mixin(d,b);return d}}(),_toArray:k("ie")?function(){function a(a,c,b){b=b||[];for(c=c||0;c<a.length;c++)b.push(a[c]);return b}return function(c){return(c.item?a:d).apply(this,
arguments)}}():d,partial:function(a){return c.hitch.apply(e,[null].concat(c._toArray(arguments)))},clone:function(a){if(!a||"object"!=typeof a||c.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var f,b,d;if(c.isArray(a)){f=[];b=0;for(d=a.length;b<d;++b)b in a&&(f[b]=c.clone(a[b]))}else f=a.constructor?new a.constructor:{};return c._mixin(f,a,c.clone)},trim:String.prototype.trim?function(a){return a.trim()}:
function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,f,b){return a.replace(b||g,c.isFunction(f)?f:function(a,b){return c.getObject(b,!1,f)})}};c.mixin(e,c);return c})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(e,k,h){function l(a){return d[a]=new Function("item","index","array",a)}function b(a){var c=!a;return function(b,p,n){var g=0,r=b&&b.length||0,s;r&&"string"==typeof b&&(b=b.split(""));"string"==typeof p&&(p=d[p]||l(p));if(n)for(;g<
r;++g){if(s=!p.call(n,b[g],g,b),a^s)return!s}else for(;g<r;++g)if(s=!p(b[g],g,b),a^s)return!s;return c}}function m(a){var f=1,b=0,d=0;a||(f=b=d=-1);return function(n,q,r,s){if(s&&0<f)return c.lastIndexOf(n,q,r);s=n&&n.length||0;var m=a?s+d:b;r===g?r=a?b:s+d:0>r?(r=s+r,0>r&&(r=b)):r=r>=s?s+d:r;for(s&&"string"==typeof n&&(n=n.split(""));r!=m;r+=f)if(n[r]==q)return r;return-1}}var d={},g,c={every:b(!1),some:b(!0),indexOf:m(!0),lastIndexOf:m(!1),forEach:function(a,c,b){var p=0,n=a&&a.length||0;n&&"string"==
typeof a&&(a=a.split(""));"string"==typeof c&&(c=d[c]||l(c));if(b)for(;p<n;++p)c.call(b,a[p],p,a);else for(;p<n;++p)c(a[p],p,a)},map:function(a,c,b,p){var n=0,g=a&&a.length||0;p=new (p||Array)(g);g&&"string"==typeof a&&(a=a.split(""));"string"==typeof c&&(c=d[c]||l(c));if(b)for(;n<g;++n)p[n]=c.call(b,a[n],n,a);else for(;n<g;++n)p[n]=c(a[n],n,a);return p},filter:function(a,c,b){var p=0,n=a&&a.length||0,g=[],r;n&&"string"==typeof a&&(a=a.split(""));"string"==typeof c&&(c=d[c]||l(c));if(b)for(;p<n;++p)r=
a[p],c.call(b,r,p,a)&&g.push(r);else for(;p<n;++p)r=a[p],c(r,p,a)&&g.push(r);return g},clearCache:function(){d={}}};h.mixin(e,c);return c})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(e,k,h,l,b){var m=0,d=[],g=0;k=function(){m=1;e._postLoad=e.config.afterOnLoad=!0;c()};var c=function(){if(!g){for(g=1;m&&(!l||0==l._Q.length)&&(h.idle?h.idle():1)&&d.length;){var a=d.shift();try{a()}catch(c){if(c.info=c.message,h.signal)h.signal("error",c);
else throw c;}}g=0}};h.on&&h.on("idle",c);l&&(l._onQEmpty=c);var a=e.ready=e.addOnLoad=function(a,f,n){var g=b._toArray(arguments);"number"!=typeof a?(n=f,f=a,a=1E3):g.shift();n=n?b.hitch.apply(e,g):function(){f()};n.priority=a;for(g=0;g<d.length&&a>=d[g].priority;g++);d.splice(g,0,n);c()},f=e.config.addOnLoad;if(f)a[b.isArray(f)?"apply":"call"](e,f);e.config.parseOnLoad&&!e.isAsync&&a(99,function(){e.parser||(e.deprecated("Add explicit require(['dojo/parser']);","","2.0"),h(["dojo/parser"]))});l?
l(k):k();return a})},"dojo/domReady":function(){define(["./has"],function(e){function k(a){c.push(a);g&&h()}function h(){if(!a){for(a=!0;c.length;)try{c.shift()(b)}catch(f){console.error(f,"in domReady callback",f.stack)}a=!1;k._onQEmpty()}}var l=function(){return this}(),b=document,m={loaded:1,complete:1},d="string"!=typeof b.readyState,g=!!m[b.readyState],c=[],a;k.load=function(a,c,f){k(f)};k._Q=c;k._onQEmpty=function(){};d&&(b.readyState="loading");if(!g){var f=[],u=function(a){a=a||l.event;g||
"readystatechange"==a.type&&!m[b.readyState]||(d&&(b.readyState="complete"),g=1,h())},p=function(a,f){a.addEventListener(f,u,!1);c.push(function(){a.removeEventListener(f,u,!1)})};if(!e("dom-addeventlistener")){var p=function(a,f){f="on"+f;a.attachEvent(f,u);c.push(function(){a.detachEvent(f,u)})},n=b.createElement("div");try{n.doScroll&&null===l.frameElement&&f.push(function(){try{return n.doScroll("left"),1}catch(a){}})}catch(q){}}p(b,"DOMContentLoaded");p(l,"load");"onreadystatechange"in b?p(b,
"readystatechange"):d||f.push(function(){return m[b.readyState]});if(f.length){var r=function(){if(!g){for(var a=f.length;a--;)if(f[a]()){u("poller");return}setTimeout(r,30)}};r()}}return k})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(e,k,h){function l(a,c){throw Error("declare"+(c?" "+c:"")+": "+a);}function b(a,c,f){var b,d,n,p,g,q,r,s=this._inherited=this._inherited||{};"string"==typeof a&&(b=a,a=c,c=f);f=0;p=a.callee;(b=b||p.nom)||l("can't deduce a name to call inherited()",
this.declaredClass);g=this.constructor._meta;n=g.bases;r=s.p;if(b!=F){if(s.c!==p&&(r=0,q=n[0],g=q._meta,g.hidden[b]!==p)){(d=g.chains)&&"string"==typeof d[b]&&l("calling chained method with inherited: "+b,this.declaredClass);do if(g=q._meta,d=q.prototype,g&&(d[b]===p&&d.hasOwnProperty(b)||g.hidden[b]===p))break;while(q=n[++r]);r=q?r:-1}if(q=n[++r])if(d=q.prototype,q._meta&&d.hasOwnProperty(b))f=d[b];else{p=y[b];do if(d=q.prototype,(f=d[b])&&(q._meta?d.hasOwnProperty(b):f!==p))break;while(q=n[++r])}f=
q&&f||y[b]}else{if(s.c!==p&&(r=0,(g=n[0]._meta)&&g.ctor!==p)){d=g.chains;for((!d||"manual"!==d.constructor)&&l("calling chained constructor with inherited",this.declaredClass);(q=n[++r])&&!((g=q._meta)&&g.ctor===p););r=q?r:-1}for(;(q=n[++r])&&!(f=(g=q._meta)?g.ctor:q););f=q&&f}s.c=f;s.p=r;if(f)return!0===c?f:f.apply(this,c||a)}function m(a,c){return"string"==typeof a?this.__inherited(a,c,!0):this.__inherited(a,!0)}function d(a,c,f){var b=this.getInherited(a,c);if(b)return b.apply(this,f||c||a)}function g(a){for(var c=
this.constructor._meta.bases,f=0,b=c.length;f<b;++f)if(c[f]===a)return!0;return this instanceof a}function c(a,c){for(var f in c)f!=F&&c.hasOwnProperty(f)&&(a[f]=c[f]);if(k("bug-for-in-skips-shadowed"))for(var b=h._extraNames,d=b.length;d;)f=b[--d],f!=F&&c.hasOwnProperty(f)&&(a[f]=c[f])}function a(a){x.safeMixin(this.prototype,a);return this}function f(a,c){a instanceof Array||"function"==typeof a||(c=a,a=void 0);c=c||{};a=a||[];return x([this].concat(a),c)}function u(a,c){return function(){var f=
arguments,b=f,d=f[0],g,n;n=a.length;var p;if(!(this instanceof f.callee))return s(f);if(c&&(d&&d.preamble||this.preamble)){p=Array(a.length);p[0]=f;for(g=0;;){if(d=f[0])(d=d.preamble)&&(f=d.apply(this,f)||f);d=a[g].prototype;(d=d.hasOwnProperty("preamble")&&d.preamble)&&(f=d.apply(this,f)||f);if(++g==n)break;p[g]=f}}for(g=n-1;0<=g;--g)d=a[g],(d=(n=d._meta)?n.ctor:d)&&d.apply(this,p?p[g]:f);(d=this.postscript)&&d.apply(this,b)}}function p(a,c){return function(){var f=arguments,b=f,d=f[0];if(!(this instanceof
f.callee))return s(f);c&&(d&&(d=d.preamble)&&(b=d.apply(this,b)||b),(d=this.preamble)&&d.apply(this,b));a&&a.apply(this,f);(d=this.postscript)&&d.apply(this,f)}}function n(a){return function(){var c=arguments,f=0,b,d;if(!(this instanceof c.callee))return s(c);for(;b=a[f];++f)if(b=(d=b._meta)?d.ctor:b){b.apply(this,c);break}(b=this.postscript)&&b.apply(this,c)}}function q(a,c,f){return function(){var b,d,g=0,n=1;f&&(g=c.length-1,n=-1);for(;b=c[g];g+=n)d=b._meta,(b=(d?d.hidden:b.prototype)[a])&&b.apply(this,
arguments)}}function r(a){B.prototype=a.prototype;a=new B;B.prototype=null;return a}function s(a){var c=a.callee,f=r(c);c.apply(f,a);return f}function x(d,s,e){"string"!=typeof d&&(e=s,s=d,d="");e=e||{};var B,k,P,Q,L,J,H,V=1,W=s;if("[object Array]"==A.call(s)){V=d;P=[];Q=[{cls:0,refs:[]}];J={};for(var R=1,Z=s.length,ba=0,U,ka,S,aa;ba<Z;++ba){(U=s[ba])?"[object Function]"!=A.call(U)&&l("mixin #"+ba+" is not a callable constructor.",V):l("mixin #"+ba+" is unknown. Did you use dojo.require to pull it in?",
V);ka=U._meta?U._meta.bases:[U];S=0;for(U=ka.length-1;0<=U;--U)aa=ka[U].prototype,aa.hasOwnProperty("declaredClass")||(aa.declaredClass="uniqName_"+C++),aa=aa.declaredClass,J.hasOwnProperty(aa)||(J[aa]={count:0,refs:[],cls:ka[U]},++R),aa=J[aa],S&&S!==aa&&(aa.refs.push(S),++S.count),S=aa;++S.count;Q[0].refs.push(S)}for(;Q.length;){S=Q.pop();P.push(S.cls);for(--R;k=S.refs,1==k.length;){S=k[0];if(!S||--S.count){S=0;break}P.push(S.cls);--R}if(S){ba=0;for(Z=k.length;ba<Z;++ba)S=k[ba],--S.count||Q.push(S)}}R&&
l("can't build consistent linearization",V);U=s[0];P[0]=U?U._meta&&U===P[P.length-U._meta.bases.length]?U._meta.bases.length:1:0;J=P;P=J[0];V=J.length-P;s=J[V]}else J=[0],s?"[object Function]"==A.call(s)?(P=s._meta,J=J.concat(P?P.bases:s)):l("base class is not a callable constructor.",d):null!==s&&l("unknown base class. Did you use dojo.require to pull it in?",d);if(s)for(k=V-1;;--k){B=r(s);if(!k)break;P=J[k];(P._meta?c:w)(B,P.prototype);Q=new Function;Q.superclass=s;Q.prototype=B;s=B.constructor=
Q}else B={};x.safeMixin(B,e);P=e.constructor;P!==y.constructor&&(P.nom=F,B.constructor=P);for(k=V-1;k;--k)(P=J[k]._meta)&&P.chains&&(H=w(H||{},P.chains));B["-chains-"]&&(H=w(H||{},B["-chains-"]));P=!H||!H.hasOwnProperty(F);J[0]=Q=H&&"manual"===H.constructor?n(J):1==J.length?p(e.constructor,P):u(J,P);Q._meta={bases:J,hidden:e,chains:H,parents:W,ctor:e.constructor};Q.superclass=s&&s.prototype;Q.extend=a;Q.createSubclass=f;Q.prototype=B;B.constructor=Q;B.getInherited=m;B.isInstanceOf=g;B.inherited=K;
B.__inherited=b;d&&(B.declaredClass=d,h.setObject(d,Q));if(H)for(L in H)B[L]&&("string"==typeof H[L]&&L!=F)&&(P=B[L]=q(L,J,"after"===H[L]),P.nom=L);return Q}var w=h.mixin,y=Object.prototype,A=y.toString,B,C=0,F="constructor";B=k("csp-restrictions")?function(){}:new Function;var K=e.config.isDebug?d:b;e.safeMixin=x.safeMixin=function(a,c){var f,b;for(f in c)if(b=c[f],(b!==y[f]||!(f in y))&&f!=F)"[object Function]"==A.call(b)&&(b.nom=f),a[f]=b;if(k("bug-for-in-skips-shadowed")&&c)for(var d=h._extraNames,
g=d.length;g;)if(f=d[--g],b=c[f],(b!==y[f]||!(f in y))&&f!=F)"[object Function]"==A.call(b)&&(b.nom=f),a[f]=b;return a};return e.declare=x})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),function(e,k,h,l,b,m,d,g){function c(a,c,f,b,d){b=g.hitch(f,b);if(!a||!a.addEventListener&&!a.attachEvent)return l.after(a||e.global,c,b,!0);"string"==typeof c&&"on"==c.substring(0,2)&&(c=c.substring(2));a||(a=e.global);if(!d)switch(c){case "keypress":c=
n;break;case "mouseenter":c=m.enter;break;case "mouseleave":c=m.leave}return k(a,c,b,d)}function a(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}d.add("events-keypress-typed",function(){var a={charCode:0};try{a=document.createEvent("KeyboardEvent"),(a.initKeyboardEvent||a.initKeyEvent).call(a,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(c){}return 0==a.charCode&&!d("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},u=d("mac")?"metaKey":"ctrlKey",p=function(c,f){var b=g.mixin({},c,f);a(b);b.preventDefault=function(){c.preventDefault()};b.stopPropagation=function(){c.stopPropagation()};return b},n;n=d("events-keypress-typed")?function(a,c){var b=k(a,"keydown",function(a){var b=a.keyCode,g=13!=b&&32!=b&&(27!=b||!d("ie"))&&(48>b||90<b)&&(96>b||111<b)&&(186>b||192<b)&&(219>b||222<b)&&229!=b;if(g||a.ctrlKey){g=g?0:b;if(a.ctrlKey){if(3==b||13==b)return c.call(a.currentTarget,a);g=95<g&&
106>g?g-48:!a.shiftKey&&65<=g&&90>=g?g+32:f[g]||g}b=p(a,{type:"keypress",faux:!0,charCode:g});c.call(a.currentTarget,b);if(d("ie"))try{a.keyCode=b.keyCode}catch(n){}}}),g=k(a,"keypress",function(a){var f=a.charCode;a=p(a,{charCode:32<=f?f:0,faux:!0});return c.call(this,a)});return{remove:function(){b.remove();g.remove()}}}:d("opera")?function(a,c){return k(a,"keypress",function(a){var f=a.which;3==f&&(f=99);f=32>f&&!a.shiftKey?0:f;a.ctrlKey&&(!a.shiftKey&&65<=f&&90>=f)&&(f+=32);return c.call(this,
p(a,{charCode:f}))})}:function(c,f){return k(c,"keypress",function(c){a(c);return f.call(this,c)})};var q={_keypress:n,connect:function(a,f,b,d,g){var n=arguments,p=[],q=0;p.push("string"==typeof n[0]?null:n[q++],n[q++]);var u=n[q+1];p.push("string"==typeof u||"function"==typeof u?n[q++]:null,n[q++]);for(u=n.length;q<u;q++)p.push(n[q]);return c.apply(this,p)},disconnect:function(a){a&&a.remove()},subscribe:function(a,c,f){return h.subscribe(a,g.hitch(c,f))},publish:function(a,c){return h.publish.apply(h,
[a].concat(c))},connectPublisher:function(a,c,f){var b=function(){q.publish(a,arguments)};return f?q.connect(c,f,b):q.connect(c,b)},isCopyKey:function(a){return a[u]}};q.unsubscribe=q.disconnect;g.mixin(e,q);return q})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(e,k,h){function l(a,f,b,d,p){if(d=f.match(/(.*):(.*)/))return f=d[2],d=d[1],g.selector(d,f).call(p,a,b);h("touch")&&(c.test(f)&&(b=C(b)),!h("event-orientationchange")&&"orientationchange"==
f&&(f="resize",a=window,b=C(b)));n&&(b=n(b));if(a.addEventListener){var q=f in u,r=q?u[f]:f;a.addEventListener(r,b,q);return{remove:function(){a.removeEventListener(r,b,q)}}}if(x&&a.attachEvent)return x(a,"on"+f,b);throw Error("Target must be an event emitter");}function b(){this.cancelable=!1;this.defaultPrevented=!0}function m(){this.bubbles=!1}var d=window.ScriptEngineMajorVersion;h.add("jscript",d&&d()+ScriptEngineMinorVersion()/10);h.add("event-orientationchange",h("touch")&&!h("android"));h.add("event-stopimmediatepropagation",
window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);h.add("event-focusin",function(a,c,f){return"onfocusin"in f});h("touch")&&h.add("touch-can-modify-event-delegate",function(){var a=function(){};a.prototype=document.createEvent("MouseEvents");try{var c=new a;c.target=null;return null===c.target}catch(f){return!1}});var g=function(a,c,f,b){return"function"==typeof a.on&&"function"!=typeof c&&!a.nodeType?a.on(c,f):g.parse(a,c,f,l,b,this)};g.pausable=function(a,
c,f,b){var d;a=g(a,c,function(){if(!d)return f.apply(this,arguments)},b);a.pause=function(){d=!0};a.resume=function(){d=!1};return a};g.once=function(a,c,f,b){var d=g(a,c,function(){d.remove();return f.apply(this,arguments)});return d};g.parse=function(a,c,f,b,d,n){var p;if(c.call)return c.call(n,a,f);c instanceof Array?p=c:-1<c.indexOf(",")&&(p=c.split(/\s*,\s*/));if(p){var q=[];c=0;for(var r;r=p[c++];)q.push(g.parse(a,r,f,b,d,n));q.remove=function(){for(var a=0;a<q.length;a++)q[a].remove()};return q}return b(a,
c,f,d,n)};var c=/^touch/;g.matches=function(a,c,f,b,d){d=d&&"function"==typeof d.matches?d:k.query;b=!1!==b;1!=a.nodeType&&(a=a.parentNode);for(;!d.matches(a,c,f);)if(a==f||!1===b||!(a=a.parentNode)||1!=a.nodeType)return!1;return a};g.selector=function(a,c,f){return function(b,d){function n(c){return g.matches(c,a,b,f,p)}var p="function"==typeof a?{matches:a}:this,q=c.bubble;return q?g(b,q(n),d):g(b,c,function(a){var c=n(a.target);if(c)return a.selectorTarget=c,d.call(c,a)})}};var a=[].slice,f=g.emit=
function(c,f,d){var g=a.call(arguments,2),n="on"+f;if("parentNode"in c){var p=g[0]={},q;for(q in d)p[q]=d[q];p.preventDefault=b;p.stopPropagation=m;p.target=c;p.type=f;d=p}do c[n]&&c[n].apply(c,g);while(d&&d.bubbles&&(c=c.parentNode));return d&&d.cancelable&&d},u=h("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!h("event-stopimmediatepropagation"))var p=function(){this.modified=this.immediatelyStopped=!0},n=function(a){return function(c){if(!c.immediatelyStopped)return c.stopImmediatePropagation=
p,a.apply(this,arguments)}};if(h("dom-addeventlistener"))g.emit=function(a,c,b){if(a.dispatchEvent&&document.createEvent){var d=(a.ownerDocument||document).createEvent("HTMLEvents");d.initEvent(c,!!b.bubbles,!!b.cancelable);for(var n in b)n in d||(d[n]=b[n]);return a.dispatchEvent(d)&&d}return f.apply(g,arguments)};else{g._fixEvent=function(a,c){a||(a=(c&&(c.ownerDocument||c.document||c).parentWindow||window).event);if(!a)return a;try{q&&(a.type==q.type&&a.srcElement==q.target)&&(a=q)}catch(f){}if(!a.target)switch(a.target=
a.srcElement,a.currentTarget=c||a.srcElement,"mouseover"==a.type&&(a.relatedTarget=a.fromElement),"mouseout"==a.type&&(a.relatedTarget=a.toElement),a.stopPropagation||(a.stopPropagation=w,a.preventDefault=y),a.type){case "keypress":var b="charCode"in a?a.charCode:a.keyCode;10==b?(b=0,a.keyCode=13):13==b||27==b?b=0:3==b&&(b=99);a.charCode=b;b=a;b.keyChar=b.charCode?String.fromCharCode(b.charCode):"";b.charOrCode=b.keyChar||b.keyCode}return a};var q,r=function(a){this.handle=a};r.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};
var s=function(a){return function(c){c=g._fixEvent(c,this);var f=a.call(this,c);c.modified&&(q||setTimeout(function(){q=null}),q=c);return f}},x=function(a,c,f){f=s(f);if(((a.ownerDocument?a.ownerDocument.parentWindow:a.parentWindow||a.window||window)!=top||5.8>h("jscript"))&&!h("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var b=a[c];if(!b||!b.listeners){var d=b,b=Function("event","var callee \x3d arguments.callee; for(var i \x3d 0; i\x3ccallee.listeners.length; i++){var listener \x3d _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");
b.listeners=[];a[c]=b;b.global=this;d&&b.listeners.push(_dojoIEListeners_.push(d)-1)}b.listeners.push(a=b.global._dojoIEListeners_.push(f)-1);return new r(a)}return e.after(a,c,f,!0)},w=function(){this.cancelBubble=!0},y=g._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(a){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(h("touch"))var A=function(){},B=window.orientation,C=function(a){return function(c){var f=c.corrected;if(!f){var b=
c.type;try{delete c.type}catch(d){}if(c.type){if(h("touch-can-modify-event-delegate"))A.prototype=c,f=new A;else{var f={},g;for(g in c)f[g]=c[g]}f.preventDefault=function(){c.preventDefault()};f.stopPropagation=function(){c.stopPropagation()}}else f=c,f.type=b;c.corrected=f;if("resize"==b){if(B==window.orientation)return null;B=window.orientation;f.type="orientationchange";return a.call(this,f)}"rotation"in f||(f.rotation=0,f.scale=1);var b=f.changedTouches[0],n;for(n in b)delete f[n],f[n]=b[n]}return a.call(this,
f)}};return g})},"dojo/topic":function(){define(["./Evented"],function(e){var k=new e;return{publish:function(e,l){return k.emit.apply(k,arguments)},subscribe:function(e,l){return k.on.apply(k,arguments)}}})},"dojo/Evented":function(){define(["./aspect","./on"],function(e,k){function h(){}var l=e.after;h.prototype={on:function(b,m){return k.parse(this,b,m,function(b,g){return l(b,"on"+g,m,!0)})},emit:function(b,m){var d=[this];d.push.apply(d,arguments);return k.emit.apply(k,d)}};return h})},"dojo/aspect":function(){define([],
function(){function e(b,g,c,a){var f=b[g],u="around"==g,p;if(u){var n=c(function(){return f.advice(this,arguments)});p={remove:function(){n&&(n=b=c=null)},advice:function(a,c){return n?n.apply(a,c):f.advice(a,c)}}}else p={remove:function(){if(p.advice){var a=p.previous,f=p.next;!f&&!a?delete b[g]:(a?a.next=f:b[g]=f,f&&(f.previous=a));b=c=p.advice=null}},id:b.nextId++,advice:c,receiveArguments:a};if(f&&!u)if("after"==g){for(;f.next&&(f=f.next););f.next=p;p.previous=f}else"before"==g&&(b[g]=p,p.next=
f,f.previous=p);else b[g]=p;return p}function k(b){return function(g,c,a,f){var u=g[c],p;if(!u||u.target!=g)g[c]=p=function(){for(var a=p.nextId,c=arguments,f=p.before;f;)f.advice&&(c=f.advice.apply(this,c)||c),f=f.next;if(p.around)var b=p.around.advice(this,c);for(f=p.after;f&&f.id<a;){if(f.advice)if(f.receiveArguments)var d=f.advice.apply(this,c),b=d===h?b:d;else b=f.advice.call(this,b,c);f=f.next}return b},u&&(p.around={advice:function(a,c){return u.apply(a,c)}}),p.target=g,p.nextId=p.nextId||
0;g=e(p||u,b,a,f);a=null;return g}}var h,l=k("after"),b=k("before"),m=k("around");return{before:b,around:m,after:l}})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(e,k,h,l){if(k._fixEvent){var b=k._fixEvent;k._fixEvent=function(d,g){(d=b(d,g))&&l.normalizeEvent(d);return d}}var m={fix:function(b,g){return k._fixEvent?k._fixEvent(b,g):b},stop:function(b){h("dom-addeventlistener")||b&&b.preventDefault?(b.preventDefault(),b.stopPropagation()):(b=b||window.event,
b.cancelBubble=!0,k._preventDefault.call(b))}};e.fixEvent=m.fix;e.stopEvent=m.stop;return m})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(e,k,h,l){function b(a,c,b,d,g,q){q=q||"px";a=a.style;isNaN(c)||(a.left=c+q);isNaN(b)||(a.top=b+q);0<=d&&(a.width=d+q);0<=g&&(a.height=g+q)}function m(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function d(a){return"border-box"==
g.boxModel||"table"==a.tagName.toLowerCase()||m(a)}var g={boxModel:"content-box"};e("ie")&&(g.boxModel="BackCompat"==document.compatMode?"border-box":"content-box");g.getPadExtents=function(a,c){a=h.byId(a);var b=c||l.getComputedStyle(a),d=l.toPixelValue,g=d(a,b.paddingLeft),q=d(a,b.paddingTop),r=d(a,b.paddingRight),b=d(a,b.paddingBottom);return{l:g,t:q,r:r,b:b,w:g+r,h:q+b}};g.getBorderExtents=function(a,c){a=h.byId(a);var b=l.toPixelValue,d=c||l.getComputedStyle(a),g="none"!=d.borderLeftStyle?b(a,
d.borderLeftWidth):0,q="none"!=d.borderTopStyle?b(a,d.borderTopWidth):0,r="none"!=d.borderRightStyle?b(a,d.borderRightWidth):0,b="none"!=d.borderBottomStyle?b(a,d.borderBottomWidth):0;return{l:g,t:q,r:r,b:b,w:g+r,h:q+b}};g.getPadBorderExtents=function(a,c){a=h.byId(a);var b=c||l.getComputedStyle(a),d=g.getPadExtents(a,b),b=g.getBorderExtents(a,b);return{l:d.l+b.l,t:d.t+b.t,r:d.r+b.r,b:d.b+b.b,w:d.w+b.w,h:d.h+b.h}};g.getMarginExtents=function(a,c){a=h.byId(a);var b=c||l.getComputedStyle(a),d=l.toPixelValue,
g=d(a,b.marginLeft),q=d(a,b.marginTop),r=d(a,b.marginRight),b=d(a,b.marginBottom);return{l:g,t:q,r:r,b:b,w:g+r,h:q+b}};g.getMarginBox=function(a,c){a=h.byId(a);var b=c||l.getComputedStyle(a),d=g.getMarginExtents(a,b),n=a.offsetLeft-d.l,q=a.offsetTop-d.t,r=a.parentNode,s=l.toPixelValue;if(e("mozilla")){var m=parseFloat(b.left),b=parseFloat(b.top);!isNaN(m)&&!isNaN(b)?(n=m,q=b):r&&r.style&&(r=l.getComputedStyle(r),"visible"!=r.overflow&&(n+="none"!=r.borderLeftStyle?s(a,r.borderLeftWidth):0,q+="none"!=
r.borderTopStyle?s(a,r.borderTopWidth):0))}else if((e("opera")||8==e("ie")&&!e("quirks"))&&r)r=l.getComputedStyle(r),n-="none"!=r.borderLeftStyle?s(a,r.borderLeftWidth):0,q-="none"!=r.borderTopStyle?s(a,r.borderTopWidth):0;return{l:n,t:q,w:a.offsetWidth+d.w,h:a.offsetHeight+d.h}};g.getContentBox=function(a,c){a=h.byId(a);var b=c||l.getComputedStyle(a),d=a.clientWidth,n=g.getPadExtents(a,b),q=g.getBorderExtents(a,b);d?(b=a.clientHeight,q.w=q.h=0):(d=a.offsetWidth,b=a.offsetHeight);e("opera")&&(n.l+=
q.l,n.t+=q.t);return{l:n.l,t:n.t,w:d-n.w-q.w,h:b-n.h-q.h}};g.setContentSize=function(a,c,m){a=h.byId(a);var p=c.w;c=c.h;d(a)&&(m=g.getPadBorderExtents(a,m),0<=p&&(p+=m.w),0<=c&&(c+=m.h));b(a,NaN,NaN,p,c)};var c={l:0,t:0,w:0,h:0};g.setMarginBox=function(a,f,u){a=h.byId(a);var p=u||l.getComputedStyle(a);u=f.w;var n=f.h,q=d(a)?c:g.getPadBorderExtents(a,p),p=g.getMarginExtents(a,p);if(e("webkit")&&m(a)){var r=a.style;0<=u&&!r.width&&(r.width="4px");0<=n&&!r.height&&(r.height="4px")}0<=u&&(u=Math.max(u-
q.w-p.w,0));0<=n&&(n=Math.max(n-q.h-p.h,0));b(a,f.l,f.t,u,n)};g.isBodyLtr=function(a){a=a||k.doc;return"ltr"==(k.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};g.docScroll=function(a){a=a||k.doc;var c=k.doc.parentWindow||k.doc.defaultView;return"pageXOffset"in c?{x:c.pageXOffset,y:c.pageYOffset}:(c=e("quirks")?k.body(a):a.documentElement)&&{x:g.fixIeBiDiScrollLeft(c.scrollLeft||0,a),y:c.scrollTop||0}};g.getIeDocumentElementOffset=function(a){return{x:0,y:0}};g.fixIeBiDiScrollLeft=function(a,
c){c=c||k.doc;var b=e("ie");if(b&&!g.isBodyLtr(c)){var d=e("quirks"),n=d?k.body(c):c.documentElement,q=k.global;6==b&&(!d&&q.frameElement&&n.scrollHeight>n.clientHeight)&&(a+=n.clientLeft);return 8>b||d?a+n.clientWidth-n.scrollWidth:-a}return a};g.position=function(a,c){a=h.byId(a);var b=k.body(a.ownerDocument),d=a.getBoundingClientRect(),d={x:d.left,y:d.top,w:d.right-d.left,h:d.bottom-d.top};9>e("ie")&&(d.x-=e("quirks")?b.clientLeft+b.offsetLeft:0,d.y-=e("quirks")?b.clientTop+b.offsetTop:0);c&&(b=
g.docScroll(a.ownerDocument),d.x+=b.x,d.y+=b.y);return d};g.getMarginSize=function(a,c){a=h.byId(a);var b=g.getMarginExtents(a,c||l.getComputedStyle(a)),d=a.getBoundingClientRect();return{w:d.right-d.left+b.w,h:d.bottom-d.top+b.h}};g.normalizeEvent=function(a){"layerX"in a||(a.layerX=a.offsetX,a.layerY=a.offsetY);if(!("pageX"in a)){var c=a.target,c=c&&c.ownerDocument||document,b=e("quirks")?c.body:c.documentElement;a.pageX=a.clientX+g.fixIeBiDiScrollLeft(b.scrollLeft||0,c);a.pageY=a.clientY+(b.scrollTop||
0)}};return g})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(e,k,h){var l={global:e.global,doc:e.global.document||null,body:function(b){b=b||e.doc;return b.body||b.getElementsByTagName("body")[0]},setContext:function(b,m){e.global=l.global=b;e.doc=l.doc=m},withGlobal:function(b,m,d,g){var c=e.global;try{return e.global=l.global=b,l.withDoc.call(null,b.document,m,d,g)}finally{e.global=l.global=c}},withDoc:function(b,m,d,g){var c=l.doc,a=h("quirks"),f=h("ie"),u,p,
n;try{e.doc=l.doc=b;e.isQuirks=h.add("quirks","BackCompat"==e.doc.compatMode,!0,!0);if(h("ie")&&(n=b.parentWindow)&&n.navigator)u=parseFloat(n.navigator.appVersion.split("MSIE ")[1])||void 0,(p=b.documentMode)&&(5!=p&&Math.floor(u)!=p)&&(u=p),e.isIE=h.add("ie",u,!0,!0);d&&"string"==typeof m&&(m=d[m]);return m.apply(d,g||[])}finally{e.doc=l.doc=c,e.isQuirks=h.add("quirks",a,!0,!0),e.isIE=h.add("ie",f,!0,!0)}}};k.mixin(e,l);return l})},"dojo/dom":function(){define(["./sniff","./_base/window"],function(e,
k){if(7>=e("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(h){}var l={};e("ie")?l.byId=function(b,d){if("string"!=typeof b)return b;var g=d||k.doc,c=b&&g.getElementById(b);if(c&&(c.attributes.id.value==b||c.id==b))return c;g=g.all[b];if(!g||g.nodeName)g=[g];for(var a=0;c=g[a++];)if(c.attributes&&c.attributes.id&&c.attributes.id.value==b||c.id==b)return c}:l.byId=function(b,d){return("string"==typeof b?(d||k.doc).getElementById(b):b)||null};l.isDescendant=function(b,d){try{b=l.byId(b);
for(d=l.byId(d);b;){if(b==d)return!0;b=b.parentNode}}catch(g){}return!1};e.add("css-user-select",function(b,d,g){if(!g)return!1;b=g.style;d=["Khtml","O","Moz","Webkit"];g=d.length;var c="userSelect";do if("undefined"!==typeof b[c])return c;while(g--&&(c=d[g]+"UserSelect"));return!1});var b=e("css-user-select");l.setSelectable=b?function(m,d){l.byId(m).style[b]=d?"":"none"}:function(b,d){b=l.byId(b);var g=b.getElementsByTagName("*"),c=g.length;if(d)for(b.removeAttribute("unselectable");c--;)g[c].removeAttribute("unselectable");
else for(b.setAttribute("unselectable","on");c--;)g[c].setAttribute("unselectable","on")};return l})},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(e,k,h){function l(a,c,b){c=c.toLowerCase();if("auto"==b){if("height"==c)return a.offsetHeight;if("width"==c)return a.offsetWidth}if("fontweight"==c)switch(b){case 700:return"bold";default:return"normal"}c in f||(f[c]=u.test(c));return f[c]?d(a,b):b}var b,m={};b=e("webkit")?function(a){var c;if(1==a.nodeType){var b=a.ownerDocument.defaultView;
c=b.getComputedStyle(a,null);!c&&a.style&&(a.style.display="",c=b.getComputedStyle(a,null))}return c||{}}:e("ie")&&(9>e("ie")||e("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){if(1===a.nodeType){var c=a.ownerDocument.defaultView;return(c.opener?c:h.global.window).getComputedStyle(a,null)||{}}return{}};m.getComputedStyle=b;var d;d=e("ie")?function(a,c){if(!c)return 0;if("medium"==c)return 4;if(c.slice&&"px"==c.slice(-2))return parseFloat(c);var b=a.style,
f=a.runtimeStyle,d=b.left,g=f.left;f.left=a.currentStyle.left;try{b.left=c,c=b.pixelLeft}catch(p){c=0}b.left=d;f.left=g;return c}:function(a,c){return parseFloat(c)||0};m.toPixelValue=d;var g=function(a,c){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(b){return c?{}:null}},c=9>e("ie")||10>e("ie")&&e("quirks")?function(a){try{return g(a).Opacity/100}catch(c){return 1}}:function(a){return b(a).opacity},a=9>e("ie")||10>e("ie")&&e("quirks")?function(c,b){""===b&&(b=1);var f=100*
b;1===b?(c.style.zoom="",g(c)&&(c.style.filter=c.style.filter.replace(/\s*progid:DXImageTransform.Microsoft.Alpha\([^\)]+?\)/i,""))):(c.style.zoom=1,g(c)?g(c,1).Opacity=f:c.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+f+")",g(c,1).Enabled=!0);if("tr"==c.tagName.toLowerCase())for(f=c.firstChild;f;f=f.nextSibling)"td"==f.tagName.toLowerCase()&&a(f,b);return b}:function(a,c){return a.style.opacity=c},f={left:!0,top:!0},u=/margin|padding|width|height|max|min|offset/,p={cssFloat:1,
styleFloat:1,"float":1};m.get=function(a,b){var f=k.byId(a),d=arguments.length;if(2==d&&"opacity"==b)return c(f);b=p[b]?"cssFloat"in f.style?"cssFloat":"styleFloat":b;var g=m.getComputedStyle(f);return 1==d?g:l(f,b,g[b]||f.style[b])};m.set=function(c,b,f){var d=k.byId(c),g=arguments.length,u="opacity"==b;b=p[b]?"cssFloat"in d.style?"cssFloat":"styleFloat":b;if(3==g)return u?a(d,f):d.style[b]=f;for(var e in b)m.set(c,e,b[e]);return m.getComputedStyle(d)};return m})},"dojo/mouse":function(){define(["./_base/kernel",
"./on","./has","./dom","./_base/window"],function(e,k,h,l,b){function m(b,g){var c=function(a,c){return k(a,b,function(b){if(g)return g(b,c);if(!l.isDescendant(b.relatedTarget,a))return c.call(this,b)})};c.bubble=function(a){return m(b,function(c,b){var d=a(c.target),g=c.relatedTarget;if(d&&d!=(g&&1==g.nodeType&&a(g)))return b.call(d,c)})};return c}h.add("dom-quirks",b.doc&&"BackCompat"==b.doc.compatMode);h.add("events-mouseenter",b.doc&&"onmouseenter"in b.doc.createElement("div"));h.add("events-mousewheel",
b.doc&&"onmousewheel"in b.doc);b=h("dom-quirks")&&h("ie")||!h("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(b,g){return b.button&g},isLeft:function(b){return b.button&1},isMiddle:function(b){return b.button&4},isRight:function(b){return b.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(b,g){return b.button==g},isLeft:function(b){return 0==b.button},isMiddle:function(b){return 1==b.button},isRight:function(b){return 2==b.button}};e.mouseButtons=b;e=h("events-mousewheel")?
"mousewheel":function(b,g){return k(b,"DOMMouseScroll",function(c){c.wheelDelta=-c.detail;g.call(this,c)})};return{_eventHandler:m,enter:m("mouseover"),leave:m("mouseout"),wheel:e,isLeft:b.isLeft,isMiddle:b.isMiddle,isRight:b.isRight}})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(e,k,h){e._name="browser";k.mixin(e,{isBrowser:!0,isFF:h("ff"),isIE:h("ie"),isKhtml:h("khtml"),isWebKit:h("webkit"),isMozilla:h("mozilla"),isMoz:h("mozilla"),isOpera:h("opera"),isSafari:h("safari"),
isChrome:h("chrome"),isMac:h("mac"),isIos:h("ios"),isAndroid:h("android"),isWii:h("wii"),isQuirks:h("quirks"),isAir:h("air")});return h})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(e,k){return e.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:k("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:k("mac")&&!k("air")?k("safari")?91:224:17}})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "),
function(e,k,h,l,b,m,d){var g=function(){},c=Object.freeze||function(){},a=e.Deferred=function(f){function d(a){if(q)throw Error("This deferred has already been resolved");n=a;q=!0;p()}function p(){for(var a;!a&&y;){var c=y;y=y.next;if(a=c.progress==g)q=!1;var f=e?c.error:c.resolved;b("config-useDeferredInstrumentation")&&e&&k.instrumentRejected&&k.instrumentRejected(n,!!f);if(f)try{var d=f(n);d&&"function"===typeof d.then?d.then(m.hitch(c.deferred,"resolve"),m.hitch(c.deferred,"reject"),m.hitch(c.deferred,
"progress")):(f=a&&void 0===d,a&&!f&&(e=d instanceof Error),c.deferred[f&&e?"reject":"resolve"](f?n:d))}catch(p){c.deferred.reject(p)}else e?c.deferred.reject(n):c.deferred.resolve(n)}}var n,q,r,s,e,w,y,A=this.promise=new h;this.isResolved=A.isResolved=function(){return 0==s};this.isRejected=A.isRejected=function(){return 1==s};this.isFulfilled=A.isFulfilled=function(){return 0<=s};this.isCanceled=A.isCanceled=function(){return r};this.resolve=this.callback=function(a){this.fired=s=0;this.results=
[a,null];d(a)};this.reject=this.errback=function(a){e=!0;this.fired=s=1;b("config-useDeferredInstrumentation")&&k.instrumentRejected&&k.instrumentRejected(a,!!y);d(a);this.results=[null,a]};this.progress=function(a){for(var c=y;c;){var b=c.progress;b&&b(a);c=c.next}};this.addCallbacks=function(a,c){this.then(a,c,g);return this};A.then=this.then=function(c,b,f){var d=f==g?this:new a(A.cancel);c={resolved:c,error:b,progress:f,deferred:d};y?w=w.next=c:y=w=c;q&&p();return d.promise};var B=this;A.cancel=
this.cancel=function(){if(!q){var a=f&&f(B);q||(a instanceof Error||(a=new l(a)),a.log=!1,B.reject(a))}r=!0};c(A)};m.extend(a,{addCallback:function(a){return this.addCallbacks(m.hitch.apply(e,arguments))},addErrback:function(a){return this.addCallbacks(null,m.hitch.apply(e,arguments))},addBoth:function(a){var c=m.hitch.apply(e,arguments);return this.addCallbacks(c,c)},fired:-1});a.when=e.when=d;return a})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise",
"./promise/instrumentation"],function(e,k,h,l,b){var m=Object.freeze||function(){},d=function(a,c,b,d,r){2===c&&(f.instrumentRejected&&0===a.length)&&f.instrumentRejected(b,!1,d,r);for(r=0;r<a.length;r++)g(a[r],c,b,d)},g=function(b,d,g,q){var r=b[d],s=b.deferred;if(r)try{var m=r(g);if(0===d)"undefined"!==typeof m&&a(s,d,m);else{if(m&&"function"===typeof m.then){b.cancel=m.cancel;m.then(c(s,1),c(s,2),c(s,0));return}a(s,1,m)}}catch(e){a(s,2,e)}else a(s,d,g);2===d&&f.instrumentRejected&&f.instrumentRejected(g,
!!r,q,s.promise)},c=function(c,b){return function(f){a(c,b,f)}},a=function(a,c,b){if(!a.isCanceled())switch(c){case 0:a.progress(b);break;case 1:a.resolve(b);break;case 2:a.reject(b)}},f=function(a){var c=this.promise=new l,b=this,q,r,s,e=!1,w=[];Error.captureStackTrace&&(Error.captureStackTrace(b,f),Error.captureStackTrace(c,f));this.isResolved=c.isResolved=function(){return 1===q};this.isRejected=c.isRejected=function(){return 2===q};this.isFulfilled=c.isFulfilled=function(){return!!q};this.isCanceled=
c.isCanceled=function(){return e};this.progress=function(a,f){if(q){if(!0===f)throw Error("This deferred has already been fulfilled.");return c}d(w,0,a,null,b);return c};this.resolve=function(a,f){if(q){if(!0===f)throw Error("This deferred has already been fulfilled.");return c}d(w,q=1,r=a,null,b);w=null;return c};var y=this.reject=function(a,f){if(q){if(!0===f)throw Error("This deferred has already been fulfilled.");return c}Error.captureStackTrace&&Error.captureStackTrace(s={},y);d(w,q=2,r=a,s,
b);w=null;return c};this.then=c.then=function(a,b,d){var n=[d,a,b];n.cancel=c.cancel;n.deferred=new f(function(a){return n.cancel&&n.cancel(a)});q&&!w?g(n,q,r,s):w.push(n);return n.deferred.promise};this.cancel=c.cancel=function(c,b){if(q){if(!0===b)throw Error("This deferred has already been fulfilled.");}else{if(a){var f=a(c);c="undefined"===typeof f?c:f}e=!0;if(q){if(2===q&&r===c)return c}else return"undefined"===typeof c&&(c=new h),y(c),c}};m(c)};f.prototype.toString=function(){return"[object Deferred]"};
b&&b(f);return f})},"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(k,h,l,b){l=l||Error;var m=function(b){if(l===Error){Error.captureStackTrace&&Error.captureStackTrace(this,m);var g=Error.call(this,b),c;for(c in g)g.hasOwnProperty(c)&&(this[c]=g[c]);this.message=b;this.stack=g.stack}else l.apply(this,arguments);h&&h.apply(this,arguments)};
m.prototype=e.delegate(l.prototype,b);m.prototype.name=k;return m.prototype.constructor=m}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(e){function k(){throw new TypeError("abstract");}return e.extend(function(){},{then:function(e,l,b){k()},cancel:function(e,l){k()},isResolved:function(){k()},isRejected:function(){k()},isFulfilled:function(){k()},isCanceled:function(){k()},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,k,h,l){function b(a,c,b){var f="";a&&a.stack&&(f+=a.stack);c&&c.stack&&(f+="\n ----------------------------------------\n rejected"+c.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));b&&b.stack&&(f+="\n ----------------------------------------\n"+b.stack);console.error(a,f)}function m(a,
c,f,d){c||b(a,f,d)}function d(b,d,n,q){l.some(c,function(a){if(a.error===b)return d&&(a.handled=!0),!0})||c.push({error:b,rejection:n,handled:d,deferred:q,timestamp:(new Date).getTime()});a||(a=setTimeout(g,f))}function g(){var d=(new Date).getTime(),p=d-f;c=l.filter(c,function(a){return a.timestamp<p?(a.handled||b(a.error,a.rejection,a.deferred),!1):!0});a=c.length?setTimeout(g,c[0].timestamp+f-d):!1}k.add("config-useDeferredInstrumentation","report-unhandled-rejections");var c=[],a=!1,f=1E3;return function(a){var c=
k("config-useDeferredInstrumentation");if(c){e.on("resolved",h.hitch(console,"log","resolved"));e.on("rejected",h.hitch(console,"log","rejected"));e.on("progress",h.hitch(console,"log","progress"));var b=[];"string"===typeof c&&(b=c.split(","),c=b.shift());if("report-rejections"===c)a.instrumentRejected=m;else if("report-unhandled-rejections"===c||!0===c||1===c)a.instrumentRejected=d,f=parseInt(b[0],10)||f;else throw Error("Unsupported instrumentation usage \x3c"+c+"\x3e");}}})},"dojo/promise/tracer":function(){define(["../_base/lang",
"./Promise","../Evented"],function(e,k,h){function l(d){setTimeout(function(){m.apply(b,d)},0)}var b=new h,m=b.emit;b.emit=null;k.prototype.trace=function(){var b=e._toArray(arguments);this.then(function(g){l(["resolved",g].concat(b))},function(g){l(["rejected",g].concat(b))},function(g){l(["progress",g].concat(b))});return this};k.prototype.traceRejected=function(){var b=e._toArray(arguments);this.otherwise(function(g){l(["rejected",g].concat(b))});return this};return b})},"dojo/when":function(){define(["./Deferred",
"./promise/Promise"],function(e,k){return function(h,l,b,m){var d=h&&"function"===typeof h.then,g=d&&h instanceof k;if(d)g||(d=new e(h.cancel),h.then(d.resolve,d.reject,d.progress),h=d.promise);else return 1<arguments.length?l?l(h):h:(new e).resolve(h);return l||b||m?h.then(l,b,m):h}})},"dojo/_base/json":function(){define(["./kernel","../json"],function(e,k){e.fromJson=function(e){return eval("("+e+")")};e._escapeString=k.stringify;e.toJsonIndentStr="\t";e.toJson=function(h,l){return k.stringify(h,
function(b,m){if(m){var d=m.__json__||m.json;if("function"==typeof d)return d.call(m)}return m},l&&e.toJsonIndentStr)};return e})},"dojo/json":function(){define(["./has"],function(e){var k="undefined"!=typeof JSON;e.add("json-parse",k);e.add("json-stringify",k&&'{"a":1}'==JSON.stringify({a:0},function(e,b){return b||1}));if(e("json-stringify"))return JSON;var h=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:e("json-parse")?JSON.parse:function(e,b){if(b&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(e))throw new SyntaxError("Invalid characters in JSON");return eval("("+e+")")},stringify:function(e,b,m){function d(c,a,f){b&&(c=b(f,c));var e;e=typeof c;if("number"==e)return isFinite(c)?c+"":"null";if("boolean"==e)return c+"";if(null===c)return"null";if("string"==typeof c)return h(c);if("function"==e||
"undefined"==e)return g;if("function"==typeof c.toJSON)return d(c.toJSON(f),a,f);if(c instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(a,b,f){a=c["getUTC"+b]()+(f?1:0);return 10>a?"0"+a:a});if(c.valueOf()!==c)return d(c.valueOf(),a,f);var p=m?a+m:"",n=m?" ":"",q=m?"\n":"";if(c instanceof Array){var n=c.length,r=[];for(f=0;f<n;f++)e=d(c[f],p,f),"string"!=typeof e&&(e="null"),r.push(q+p+e);return"["+r.join(",")+q+a+"]"}r=[];for(f in c){var s;
if(c.hasOwnProperty(f)){if("number"==typeof f)s='"'+f+'"';else if("string"==typeof f)s=h(f);else continue;e=d(c[f],p,f);"string"==typeof e&&r.push(q+p+s+":"+n+e)}}return"{"+r.join(",")+q+a+"}"}var g;"string"==typeof b&&(m=b,b=null);return d(e,"","")}}})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(e,k,h,l){var b=e.Color=function(b){b&&this.setColor(b)};b.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:l.transparentColor||[0,0,0,0]};k.extend(b,{r:255,g:255,b:255,a:1,_set:function(b,d,g,c){this.r=b;this.g=d;this.b=g;this.a=c},setColor:function(m){k.isString(m)?b.fromString(m,this):k.isArray(m)?b.fromArray(m,this):(this._set(m.r,m.g,m.b,m.a),m instanceof b||this.sanitize());return this},sanitize:function(){return this},
toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+h.map(["r","g","b"],function(b){b=this[b].toString(16);return 2>b.length?"0"+b:b},this).join("")},toCss:function(b){var d=this.r+", "+this.g+", "+this.b;return(b?"rgba("+d+", "+this.a:"rgb("+d)+")"},toString:function(){return this.toCss(!0)}});b.blendColors=e.blendColors=function(m,d,g,c){var a=c||new b;h.forEach(["r","g","b","a"],function(c){a[c]=m[c]+(d[c]-m[c])*g;"a"!=
c&&(a[c]=Math.round(a[c]))});return a.sanitize()};b.fromRgb=e.colorFromRgb=function(m,d){var g=m.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return g&&b.fromArray(g[1].split(/\s*,\s*/),d)};b.fromHex=e.colorFromHex=function(m,d){var g=d||new b,c=4==m.length?4:8,a=(1<<c)-1;m=Number("0x"+m.substr(1));if(isNaN(m))return null;h.forEach(["b","g","r"],function(b){var d=m&a;m>>=c;g[b]=4==c?17*d:d});g.a=1;return g};b.fromArray=e.colorFromArray=function(m,d){var g=d||new b;g._set(Number(m[0]),Number(m[1]),
Number(m[2]),Number(m[3]));isNaN(g.a)&&(g.a=1);return g.sanitize()};b.fromString=e.colorFromString=function(m,d){var g=b.named[m];return g&&b.fromArray(g,d)||b.fromRgb(m,d)||b.fromHex(m,d)};return b})},"dojo/_base/browser":function(){require.has&&require.has.add("config-selectorEngine","acme");define("../ready ./kernel ./connect ./unload ./window ./event ./html ./NodeList ../query ./xhr ./fx".split(" "),function(e){return e})},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(e,
k,h){var l=window,b={addOnWindowUnload:function(b,d){e.windowUnloaded||h(l,"unload",e.windowUnloaded=function(){});h(l,"unload",k.hitch(b,d))},addOnUnload:function(b,d){h(l,"beforeunload",k.hitch(b,d))}};e.addOnWindowUnload=b.addOnWindowUnload;e.addOnUnload=b.addOnUnload;return b})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(e,k,h,l,b,m,d,g){e.byId=k.byId;e.isDescendant=k.isDescendant;
e.setSelectable=k.setSelectable;e.getAttr=l.get;e.setAttr=l.set;e.hasAttr=l.has;e.removeAttr=l.remove;e.getNodeProp=l.getNodeProp;e.attr=function(c,a,b){return 2==arguments.length?l["string"==typeof a?"get":"set"](c,a):l.set(c,a,b)};e.hasClass=m.contains;e.addClass=m.add;e.removeClass=m.remove;e.toggleClass=m.toggle;e.replaceClass=m.replace;e._toDom=e.toDom=d.toDom;e.place=d.place;e.create=d.create;e.empty=function(c){d.empty(c)};e._destroyElement=e.destroy=function(c){d.destroy(c)};e._getPadExtents=
e.getPadExtents=g.getPadExtents;e._getBorderExtents=e.getBorderExtents=g.getBorderExtents;e._getPadBorderExtents=e.getPadBorderExtents=g.getPadBorderExtents;e._getMarginExtents=e.getMarginExtents=g.getMarginExtents;e._getMarginSize=e.getMarginSize=g.getMarginSize;e._getMarginBox=e.getMarginBox=g.getMarginBox;e.setMarginBox=g.setMarginBox;e._getContentBox=e.getContentBox=g.getContentBox;e.setContentSize=g.setContentSize;e._isBodyLtr=e.isBodyLtr=g.isBodyLtr;e._docScroll=e.docScroll=g.docScroll;e._getIeDocumentElementOffset=
e.getIeDocumentElementOffset=g.getIeDocumentElementOffset;e._fixIeBiDiScrollLeft=e.fixIeBiDiScrollLeft=g.fixIeBiDiScrollLeft;e.position=g.position;e.marginBox=function(c,a){return a?g.setMarginBox(c,a):g.getMarginBox(c)};e.contentBox=function(c,a){return a?g.setContentSize(c,a):g.getContentBox(c)};e.coords=function(c,a){e.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");c=k.byId(c);var b=h.getComputedStyle(c),b=g.getMarginBox(c,b),d=g.position(c,a);b.x=d.x;b.y=d.y;return b};
e.getProp=b.get;e.setProp=b.set;e.prop=function(c,a,f){return 2==arguments.length?b["string"==typeof a?"get":"set"](c,a):b.set(c,a,f)};e.getStyle=h.get;e.setStyle=h.set;e.getComputedStyle=h.getComputedStyle;e.__toPixelValue=e.toPixelValue=h.toPixelValue;e.style=function(c,a,b){switch(arguments.length){case 1:return h.get(c);case 2:return h["string"==typeof a?"get":"set"](c,a)}return h.set(c,a,b)};return e})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),
function(e,k,h,l,b,m){function d(a,c){var b=a.getAttributeNode&&a.getAttributeNode(c);return!!b&&b.specified}var g={innerHTML:1,textContent:1,className:1,htmlFor:k("ie"),value:1},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};e.has=function(a,b){var e=b.toLowerCase();return g[m.names[e]||b]||d(l.byId(a),c[e]||b)};e.get=function(a,b){a=l.byId(a);var e=b.toLowerCase(),p=m.names[e]||b,n=a[p];if(g[p]&&"undefined"!=typeof n)return n;if("textContent"==p)return m.get(a,p);if("href"!=
p&&("boolean"==typeof n||h.isFunction(n)))return n;e=c[e]||b;return d(a,e)?a.getAttribute(e):null};e.set=function(a,f,d){a=l.byId(a);if(2==arguments.length){for(var p in f)e.set(a,p,f[p]);return a}p=f.toLowerCase();var n=m.names[p]||f,q=g[n];if("style"==n&&"string"!=typeof d)return b.set(a,d),a;if(q||"boolean"==typeof d||h.isFunction(d))return m.set(a,f,d);a.setAttribute(c[p]||f,d);return a};e.remove=function(a,b){l.byId(a).removeAttribute(c[b.toLowerCase()]||b)};e.getNodeProp=function(a,b){a=l.byId(a);
var g=b.toLowerCase(),p=m.names[g]||b;if(p in a&&"href"!=p)return a[p];g=c[g]||b;return d(a,g)?a.getAttribute(g):null}})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(e,k,h,l,b,m,d,g){function c(a){var b="";a=a.childNodes;for(var f=0,d;d=a[f];f++)8!=d.nodeType&&(b=1==d.nodeType?b+c(d):b+d.nodeValue);return b}var a={},f=1,u=k._scopeName+"attrid";h.add("dom-textContent",function(a,c,b){return"textContent"in
b});e.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};e.get=function(a,f){a=b.byId(a);var d=f.toLowerCase(),d=e.names[d]||f;return"textContent"==d&&!h("dom-textContent")?c(a):a[d]};e.set=function(c,n,q){c=b.byId(c);if(2==arguments.length&&"string"!=typeof n){for(var r in n)e.set(c,r,n[r]);return c}r=n.toLowerCase();r=e.names[r]||n;if("style"==r&&"string"!=
typeof q)return m.set(c,q),c;if("innerHTML"==r)return h("ie")&&c.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(d.empty(c),c.appendChild(d.toDom(q,c.ownerDocument))):c[r]=q,c;if("textContent"==r&&!h("dom-textContent"))return d.empty(c),c.appendChild(c.ownerDocument.createTextNode(q)),c;if(l.isFunction(q)){var s=c[u];s||(s=f++,c[u]=s);a[s]||(a[s]={});var x=a[s][r];if(x)g.disconnect(x);else try{delete c[r]}catch(w){}q?a[s][r]=g.connect(c,r,q):c[r]=null;return c}c[r]=
q;return c}})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(e,k,h,l,b,m){function d(a,c){var b=c.parentNode;b&&b.insertBefore(a,c)}function g(a){if("innerHTML"in a)try{a.innerHTML="";return}catch(c){}for(var b;b=a.lastChild;)a.removeChild(b)}var c={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],
colgroup:["table"],col:["table","colgroup"],li:["ul"]},a=/<\s*([\w\:]+)/,f={},u=0,p="__"+k._scopeName+"ToDomId",n;for(n in c)c.hasOwnProperty(n)&&(k=c[n],k.pre="option"==n?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+k.join("\x3e\x3c")+"\x3e",k.post="\x3c/"+k.reverse().join("\x3e\x3c/")+"\x3e");var q;8>=h("ie")&&(q=function(a){a.__dojo_html5_tested="yes";var c=r("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},a.body);1!==c.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,
function(c){a.createElement(c)});s(c)});e.toDom=function(b,d){d=d||l.doc;var g=d[p];g||(d[p]=g=++u+"",f[g]=d.createElement("div"));8>=h("ie")&&!d.__dojo_html5_tested&&d.body&&q(d);b+="";var n=b.match(a),s=n?n[1].toLowerCase():"",g=f[g];if(n&&c[s]){n=c[s];g.innerHTML=n.pre+b+n.post;for(n=n.length;n;--n)g=g.firstChild}else g.innerHTML=b;if(1==g.childNodes.length)return g.removeChild(g.firstChild);for(s=d.createDocumentFragment();n=g.firstChild;)s.appendChild(n);return s};e.place=function(a,c,f){c=b.byId(c);
"string"==typeof a&&(a=/^\s*</.test(a)?e.toDom(a,c.ownerDocument):b.byId(a));if("number"==typeof f){var g=c.childNodes;!g.length||g.length<=f?c.appendChild(a):d(a,g[0>f?0:f])}else switch(f){case "before":d(a,c);break;case "after":f=a;(g=c.parentNode)&&(g.lastChild==c?g.appendChild(f):g.insertBefore(f,c.nextSibling));break;case "replace":c.parentNode.replaceChild(a,c);break;case "only":e.empty(c);c.appendChild(a);break;case "first":if(c.firstChild){d(a,c.firstChild);break}default:c.appendChild(a)}return a};
var r=e.create=function(a,c,f,d){var g=l.doc;f&&(f=b.byId(f),g=f.ownerDocument);"string"==typeof a&&(a=g.createElement(a));c&&m.set(a,c);f&&e.place(a,f,d);return a};e.empty=function(a){g(b.byId(a))};var s=e.destroy=function(a){if(a=b.byId(a)){var c=a;a=a.parentNode;c.firstChild&&g(c);a&&(h("ie")&&a.canHaveChildren&&"removeNode"in c?c.removeNode(!1):a.removeChild(c))}}})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(e,k,h){function l(c){if("string"==typeof c||
c instanceof String){if(c&&!m.test(c))return d[0]=c,d;c=c.split(m);c.length&&!c[0]&&c.shift();c.length&&!c[c.length-1]&&c.pop();return c}return!c?[]:k.filter(c,function(a){return a})}var b,m=/\s+/,d=[""],g={};return b={contains:function(c,a){return 0<=(" "+h.byId(c).className+" ").indexOf(" "+a+" ")},add:function(c,a){c=h.byId(c);a=l(a);var b=c.className,d,b=b?" "+b+" ":" ";d=b.length;for(var g=0,n=a.length,q;g<n;++g)(q=a[g])&&0>b.indexOf(" "+q+" ")&&(b+=q+" ");d<b.length&&(c.className=b.substr(1,
b.length-2))},remove:function(c,a){c=h.byId(c);var b;if(void 0!==a){a=l(a);b=" "+c.className+" ";for(var d=0,g=a.length;d<g;++d)b=b.replace(" "+a[d]+" "," ");b=e.trim(b)}else b="";c.className!=b&&(c.className=b)},replace:function(c,a,f){c=h.byId(c);g.className=c.className;b.remove(g,f);b.add(g,a);c.className!==g.className&&(c.className=g.className)},toggle:function(c,a,f){c=h.byId(c);if(void 0===f){a=l(a);for(var d=0,g=a.length,n;d<g;++d)n=a[d],b[b.contains(c,n)?"remove":"add"](c,n)}else b[f?"add":
"remove"](c,a);return f}}})},"dojo/_base/NodeList":function(){define(["./kernel","../query","./array","./html","../NodeList-dom"],function(e,k,h){k=k.NodeList;var l=k.prototype;l.connect=k._adaptAsForEach(function(){return e.connect.apply(this,arguments)});l.coords=k._adaptAsMap(e.coords);k.events="blur focus change click error keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup submit".split(" ");h.forEach(k.events,function(b){var m="on"+b;l[m]=function(b,
g){return this.connect(m,b,g)}});return e.NodeList=k})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),function(e,k,h,l,b,m,d,g){function c(a,c){var f=function(b,f){if("string"==typeof f&&(f=h.byId(f),!f))return new c([]);var d="string"==typeof b?a(b,f):b?b.end&&b.on?b:[b]:[];return d.end&&d.on?d:new c(d)};f.matches=a.match||function(a,c,b){return 0<f.filter([a],c,b).length};f.filter=a.filter||function(a,
c,d){return f(c,d).filter(function(c){return-1<b.indexOf(a,c)})};if("function"!=typeof a){var d=a.search;a=function(a,c){return d(c||document,a)}}return f}k.add("array-extensible",function(){return 1==m.delegate([],{length:1}).length&&!k("bug-for-in-skips-shadowed")});var a=Array.prototype,f=a.slice,u=a.concat,p=b.forEach,n=function(a,c,b){c=[0].concat(f.call(c,0));b=b||e.global;return function(f){c[0]=f;return a.apply(b,c)}},q=function(a){var c=this instanceof r&&k("array-extensible");"number"==
typeof a&&(a=Array(a));var b=a&&"length"in a?a:arguments;if(c||!b.sort){for(var f=c?this:[],d=f.length=b.length,g=0;g<d;g++)f[g]=b[g];if(c)return f;b=f}m._mixin(b,s);b._NodeListCtor=function(a){return r(a)};return b},r=q,s=r.prototype=k("array-extensible")?[]:{};r._wrap=s._wrap=function(a,c,b){a=new (b||this._NodeListCtor||r)(a);return c?a._stash(c):a};r._adaptAsMap=function(a,c){return function(){return this.map(n(a,arguments,c))}};r._adaptAsForEach=function(a,c){return function(){this.forEach(n(a,
arguments,c));return this}};r._adaptAsFilter=function(a,c){return function(){return this.filter(n(a,arguments,c))}};r._adaptWithCondition=function(a,c,b){return function(){var f=arguments,d=n(a,f,b);if(c.call(b||e.global,f))return this.map(d);this.forEach(d);return this}};p(["slice","splice"],function(c){var b=a[c];s[c]=function(){return this._wrap(b.apply(this,arguments),"slice"==c?this:null)}});p(["indexOf","lastIndexOf","every","some"],function(a){var c=b[a];s[a]=function(){return c.apply(e,[this].concat(f.call(arguments,
0)))}});m.extend(q,{constructor:r,_NodeListCtor:r,toString:function(){return this.join(",")},_stash:function(a){this._parent=a;return this},on:function(a,c){var b=this.map(function(b){return l(b,a,c)});b.remove=function(){for(var a=0;a<b.length;a++)b[a].remove()};return b},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(a){var c=f.call(this,0),d=b.map(arguments,function(a){return f.call(a,0)});return this._wrap(u.apply(c,d),this)},map:function(a,c){return this._wrap(b.map(this,
a,c),this)},forEach:function(a,c){p(this,a,c);return this},filter:function(a){var c=arguments,f=this,d=0;if("string"==typeof a){f=x._filterResult(this,c[0]);if(1==c.length)return f._stash(this);d=1}return this._wrap(b.filter(f,c[d],c[d+1]),this)},instantiate:function(a,c){var b=m.isFunction(a)?a:m.getObject(a);c=c||{};return this.forEach(function(a){new b(c,a)})},at:function(){var a=new this._NodeListCtor(0);p(arguments,function(c){0>c&&(c=this.length+c);this[c]&&a.push(this[c])},this);return a._stash(this)}});
var x=c(g,q);e.query=c(g,function(a){return q(a)});x.load=function(a,b,f){d.load(a,b,function(a){f(c(a,q))})};e._filterQueryResult=x._filterResult=function(a,c,b){return new q(x.filter(a,c,b))};e.NodeList=x.NodeList=q;return x})},"dojo/selector/_loader":function(){define(["../has","require"],function(e,k){if("undefined"!==typeof document){var h=document.createElement("div");e.add("dom-qsa2.1",!!h.querySelectorAll);e.add("dom-qsa3",function(){try{return h.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",
1==h.querySelectorAll(".TEST:empty").length}catch(b){}})}var l;return{load:function(b,m,d,g){if(g&&g.isBuild)d();else{g=k;b="default"==b?e("config-selectorEngine")||"css3":b;b="css2"==b||"lite"==b?"./lite":"css2.1"==b?e("dom-qsa2.1")?"./lite":"./acme":"css3"==b?e("dom-qsa3")?"./lite":"./acme":"acme"==b?"./acme":(g=m)&&b;if("?"==b.charAt(b.length-1)){b=b.substring(0,b.length-1);var c=!0}if(c&&(e("dom-compliant-qsa")||l))return d(l);g([b],function(a){"./lite"!=b&&(l=a);d(a)})}}}})},"dojo/selector/acme":function(){define(["../dom",
"../sniff","../_base/array","../_base/lang","../_base/window"],function(e,k,h,l,b){var m=l.trim,d=h.forEach,g="BackCompat"==b.doc.compatMode,c=!1,a=function(){return!0},f=function(a){a=0<="\x3e~+".indexOf(a.slice(-1))?a+" * ":a+" ";for(var b=function(c,b){return m(a.slice(c,b))},f=[],d=-1,g=-1,n=-1,q=-1,p=-1,s=-1,r=-1,e,l="",h="",u,x=0,y=a.length,w=null,B=null,k=function(){0<=s&&(w.id=b(s,x).replace(/\\/g,""),s=-1);if(0<=r){var a=r==x?null:b(r,x);w[0>"\x3e~+".indexOf(a)?"tag":"oper"]=a;r=-1}0<=p&&
(w.classes.push(b(p+1,x).replace(/\\/g,"")),p=-1)};l=h,h=a.charAt(x),x<y;x++)if("\\"!=l)if(w||(u=x,w={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return c?this.otag:this.tag}},r=x),e)h==e&&(e=null);else if("'"==h||'"'==h)e=h;else if(0<=d)if("]"==h){B.attr?B.matchFor=b(n||d+1,x):B.attr=b(d+1,x);if((d=B.matchFor)&&('"'==d.charAt(0)||"'"==d.charAt(0)))B.matchFor=d.slice(1,-1);B.matchFor&&(B.matchFor=B.matchFor.replace(/\\/g,""));w.attrs.push(B);B=null;d=n=-1}else"\x3d"==
h&&(n=0<="|~^$*".indexOf(l)?l:"",B.type=n+h,B.attr=b(d+1,x-n.length),n=x+1);else 0<=g?")"==h&&(0<=q&&(B.value=b(g+1,x)),q=g=-1):"#"==h?(k(),s=x+1):"."==h?(k(),p=x):":"==h?(k(),q=x):"["==h?(k(),d=x,B={}):"("==h?(0<=q&&(B={name:b(q+1,x),value:null},w.pseudos.push(B)),g=x):" "==h&&l!=h&&(k(),0<=q&&w.pseudos.push({name:b(q+1,x)}),w.loops=w.pseudos.length||w.attrs.length||w.classes.length,w.oquery=w.query=b(u,x),w.otag=w.tag=w.oper?null:w.tag||"*",w.tag&&(w.tag=w.tag.toUpperCase()),f.length&&f[f.length-
1].oper&&(w.infixOper=f.pop(),w.query=w.infixOper.query+" "+w.query),f.push(w),w=null);return f},u=function(a,c){return!a?c:!c?a:function(){return a.apply(window,arguments)&&c.apply(window,arguments)}},p=function(a,c){var b=c||[];a&&b.push(a);return b},n=function(a){return 1==a.nodeType},q=function(a,b){return!a?"":"class"==b?a.className||"":"for"==b?a.htmlFor||"":"style"==b?a.style.cssText||"":(c?a.getAttribute(b):a.getAttribute(b,2))||""},r={"*\x3d":function(a,c){return function(b){return 0<=q(b,
a).indexOf(c)}},"^\x3d":function(a,c){return function(b){return 0==q(b,a).indexOf(c)}},"$\x3d":function(a,c){return function(b){b=" "+q(b,a);var f=b.lastIndexOf(c);return-1<f&&f==b.length-c.length}},"~\x3d":function(a,c){var b=" "+c+" ";return function(c){return 0<=(" "+q(c,a)+" ").indexOf(b)}},"|\x3d":function(a,c){var b=c+"-";return function(f){f=q(f,a);return f==c||0==f.indexOf(b)}},"\x3d":function(a,c){return function(b){return q(b,a)==c}}};l=b.doc.documentElement;var s=!(l.nextElementSibling||
"nextElementSibling"in l),x=!s?"nextElementSibling":"nextSibling",w=!s?"previousElementSibling":"previousSibling",y=s?n:a,A=function(a){for(;a=a[w];)if(y(a))return!1;return!0},B=function(a){for(;a=a[x];)if(y(a))return!1;return!0},C=function(a){var c=a.parentNode,c=7!=c.nodeType?c:c.nextSibling,b=0,f=c.children||c.childNodes,d=a._i||a.getAttribute("_i")||-1,g=c._l||("undefined"!==typeof c.getAttribute?c.getAttribute("_l"):-1);if(!f)return-1;f=f.length;if(g==f&&0<=d&&0<=g)return d;k("ie")&&"undefined"!==
typeof c.setAttribute?c.setAttribute("_l",f):c._l=f;d=-1;for(c=c.firstElementChild||c.firstChild;c;c=c[x])y(c)&&(k("ie")?c.setAttribute("_i",++b):c._i=++b,a===c&&(d=b));return d},F=function(a){return!(C(a)%2)},K=function(a){return C(a)%2},G={checked:function(a,c){return function(a){return!!("checked"in a?a.checked:a.selected)}},disabled:function(a,c){return function(a){return a.disabled}},enabled:function(a,c){return function(a){return!a.disabled}},"first-child":function(){return A},"last-child":function(){return B},
"only-child":function(a,c){return function(a){return A(a)&&B(a)}},empty:function(a,c){return function(a){var c=a.childNodes;for(a=a.childNodes.length-1;0<=a;a--){var b=c[a].nodeType;if(1===b||3==b)return!1}return!0}},contains:function(a,c){var b=c.charAt(0);if('"'==b||"'"==b)c=c.slice(1,-1);return function(a){return 0<=a.innerHTML.indexOf(c)}},not:function(a,c){var b=f(c)[0],d={el:1};"*"!=b.tag&&(d.tag=1);b.classes.length||(d.classes=1);var g=O(b,d);return function(a){return!g(a)}},"nth-child":function(a,
c){var b=parseInt;if("odd"==c)return K;if("even"==c)return F;if(-1!=c.indexOf("n")){var f=c.split("n",2),d=f[0]?"-"==f[0]?-1:b(f[0]):1,g=f[1]?b(f[1]):0,n=0,q=-1;0<d?0>g?g=g%d&&d+g%d:0<g&&(g>=d&&(n=g-g%d),g%=d):0>d&&(d*=-1,0<g&&(q=g,g%=d));if(0<d)return function(a){a=C(a);return a>=n&&(0>q||a<=q)&&a%d==g};c=g}var p=b(c);return function(a){return C(a)==p}}},I=9>k("ie")||9==k("ie")&&k("quirks")?function(a){var b=a.toLowerCase();"class"==b&&(a="className");return function(f){return c?f.getAttribute(a):
f[a]||f[b]}}:function(a){return function(c){return c&&c.getAttribute&&c.hasAttribute(a)}},O=function(b,f){if(!b)return a;f=f||{};var g=null;"el"in f||(g=u(g,n));"tag"in f||"*"!=b.tag&&(g=u(g,function(a){return a&&(c?a.tagName:a.tagName.toUpperCase())==b.getTag()}));"classes"in f||d(b.classes,function(a,c,b){var f=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");g=u(g,function(a){return f.test(a.className)});g.count=c});"pseudos"in f||d(b.pseudos,function(a){var c=a.name;G[c]&&(g=u(g,G[c](c,a.value)))});"attrs"in
f||d(b.attrs,function(a){var c,b=a.attr;a.type&&r[a.type]?c=r[a.type](b,a.matchFor):b.length&&(c=I(b));c&&(g=u(g,c))});"id"in f||b.id&&(g=u(g,function(a){return!!a&&a.id==b.id}));g||"default"in f||(g=a);return g},N=function(a){return function(c,b,f){for(;c=c[x];)if(!s||n(c)){(!f||ia(c,f))&&a(c)&&b.push(c);break}return b}},T=function(a){return function(c,b,f){for(c=c[x];c;){if(y(c)){if(f&&!ia(c,f))break;a(c)&&b.push(c)}c=c[x]}return b}},P=function(c,b){var f=function(a){var c=[];try{c=Array.prototype.slice.call(a)}catch(b){for(var f=
0,d=a.length;f<d;f++)c.push(a[f])}return c};c=c||a;return function(a,d,g){var n=0,q=[],q=f(a.children||a.childNodes);for(b&&h.forEach(q,function(a){1===a.nodeType&&(q=q.concat(f(a.getElementsByTagName("*"))))});a=q[n++];)y(a)&&((!g||ia(a,g))&&c(a,n))&&d.push(a);return d}},Q=function(a,c){for(var b=a.parentNode;b&&b!=c;)b=b.parentNode;return!!b},L={},J=function(c){var f=L[c.query];if(f)return f;var d=c.infixOper,d=d?d.oper:"",n=O(c,{el:1}),q="*"==c.tag,s=b.doc.getElementsByClassName;if(d)s={el:1},
q&&(s.tag=1),n=O(c,s),"+"==d?f=N(n):"~"==d?f=T(n):"\x3e"==d&&(f=P(n));else if(c.id)n=!c.loops&&q?a:O(c,{el:1,id:1}),f=function(a,b){var f=e.byId(c.id,a.ownerDocument||a);a.ownerDocument&&!Q(a,a.ownerDocument)&&h.some(11===a.nodeType?a.childNodes:[a],function(a){a=P(function(a){return a.id===c.id},!0)(a,[]);if(a.length)return f=a[0],!1});if(f&&n(f)&&(9==a.nodeType||Q(f,a)))return p(f,b)};else if(s&&/\{\s*\[native code\]\s*\}/.test(String(s))&&c.classes.length&&!g)var n=O(c,{el:1,classes:1,id:1}),r=
c.classes.join(" "),f=function(a,c,b){c=p(0,c);for(var f,d=0,g=a.getElementsByClassName(r);f=g[d++];)n(f,a)&&ia(f,b)&&c.push(f);return c};else!q&&!c.loops?f=function(a,b,f){b=p(0,b);for(var d=0,g=c.getTag(),g=g?a.getElementsByTagName(g):[];a=g[d++];)ia(a,f)&&b.push(a);return b}:(n=O(c,{el:1,tag:1,id:1}),f=function(a,b,f){b=p(0,b);for(var d,g=0,q=(d=c.getTag())?a.getElementsByTagName(d):[];d=q[g++];)n(d,a)&&ia(d,f)&&b.push(d);return b});return L[c.query]=f},H={},V={},W=function(a){var c=f(m(a));if(1==
c.length){var b=J(c[0]);return function(a){if(a=b(a,[]))a.nozip=!0;return a}}return function(a){a=p(a);for(var b,f,d=c.length,g,n,q=0;q<d;q++){n=[];b=c[q];f=a.length-1;0<f&&(g={},n.nozip=!0);f=J(b);for(var s=0;b=a[s];s++)f(b,n,g);if(!n.length)break;a=n}return n}},R=k("ie")?"commentStrip":"nozip",Z=!!b.doc.querySelectorAll,ba=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,U=function(a,c,b,f){return b?(c?c+" ":"")+b+(f?" "+f:""):a},ka=/([^[]*)([^\]]*])?/g,S=function(a,c,b){return c.replace(ba,U)+(b||"")},
aa=function(a,c){a=a.replace(ka,S);if(Z){var b=V[a];if(b&&!c)return b}if(b=H[a])return b;var b=a.charAt(0),f=-1==a.indexOf(" ");0<=a.indexOf("#")&&f&&(c=!0);if(Z&&!c&&-1=="\x3e~+".indexOf(b)&&(!k("ie")||-1==a.indexOf(":"))&&!(g&&0<=a.indexOf("."))&&-1==a.indexOf(":contains")&&-1==a.indexOf(":checked")&&-1==a.indexOf("|\x3d")){var d=0<="\x3e~+".indexOf(a.charAt(a.length-1))?a+" *":a;return V[a]=function(c){if(9==c.nodeType||f)try{var b=c.querySelectorAll(d);b[R]=!0;return b}catch(g){}return aa(a,!0)(c)}}var n=
a.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return H[a]=2>n.length?W(a):function(a){for(var c=0,b=[],f;f=n[c++];)b=b.concat(W(f)(a));return b}},ha=0,Aa=k("ie")?function(a){return c?a.getAttribute("_uid")||a.setAttribute("_uid",++ha)||ha:a.uniqueID}:function(a){return a._uid||(a._uid=++ha)},ia=function(a,c){if(!c)return 1;var b=Aa(a);return!c[b]?c[b]=1:0},qa=function(a){if(a&&a.nozip)return a;if(!a||!a.length)return[];if(2>a.length)return[a[0]];var b=[];ha++;var f,d;if(k("ie")&&c){var g=
ha+"";for(f=0;f<a.length;f++)if((d=a[f])&&d.getAttribute("_zipIdx")!=g)b.push(d),d.setAttribute("_zipIdx",g)}else if(k("ie")&&a.commentStrip)try{for(f=0;f<a.length;f++)(d=a[f])&&n(d)&&b.push(d)}catch(q){}else for(f=0;f<a.length;f++)if((d=a[f])&&d._zipIdx!=ha)b.push(d),d._zipIdx=ha;return b},ra=function(a,f){f=f||b.doc;c="div"===(f.ownerDocument||f).createElement("div").tagName;var d=aa(a)(f);return d&&d.nozip?d:qa(d)};ra.filter=function(a,c,b){for(var d=[],g=f(c),g=1==g.length&&!/[^\w#\.]/.test(c)?
O(g[0]):function(a){return-1!=h.indexOf(ra(c,e.byId(b)),a)},n=0,q;q=a[n];n++)g(q)&&d.push(q);return d};return ra})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),function(e,k,h,l,b,m,d,g,c){function a(a){return function(c,b,f){return 2==arguments.length?a["string"==typeof b?"get":"set"](c,b):a.set(c,b,f)}}var f=function(a){return 1==a.length&&"string"==typeof a[0]},u=function(a){var c=
a.parentNode;c&&c.removeChild(a)},p=k.NodeList,n=p._adaptWithCondition,q=p._adaptAsForEach,r=p._adaptAsMap;l.extend(p,{_normalize:function(a,c){var b=!0===a.parse;if("string"==typeof a.template){var f=a.templateFunc||e.string&&e.string.substitute;a=f?f(a.template,a):a}f=typeof a;"string"==f||"number"==f?(a=m.toDom(a,c&&c.ownerDocument),a=11==a.nodeType?l._toArray(a.childNodes):[a]):l.isArrayLike(a)?l.isArray(a)||(a=l._toArray(a)):a=[a];b&&(a._runParse=!0);return a},_cloneNode:function(a){return a.cloneNode(!0)},
_place:function(a,c,b,f){if(!(1!=c.nodeType&&"only"==b))for(var d,g=a.length,n=g-1;0<=n;n--){var q=f?this._cloneNode(a[n]):a[n];if(a._runParse&&e.parser&&e.parser.parse){d||(d=c.ownerDocument.createElement("div"));d.appendChild(q);e.parser.parse(d);for(q=d.firstChild;d.firstChild;)d.removeChild(d.firstChild)}n==g-1?m.place(q,c,b):c.parentNode.insertBefore(q,c);c=q}},position:r(d.position),attr:n(a(g),f),style:n(a(c),f),addClass:q(b.add),removeClass:q(b.remove),toggleClass:q(b.toggle),replaceClass:q(b.replace),
empty:q(m.empty),removeAttr:q(g.remove),marginBox:r(d.getMarginBox),place:function(a,c){var b=k(a)[0];return this.forEach(function(a){m.place(a,b,c)})},orphan:function(a){return(a?k._filterResult(this,a):this).forEach(u)},adopt:function(a,c){return k(a).place(this[0],c)._stash(this)},query:function(a){if(!a)return this;var c=new p;this.map(function(b){k(a,b).forEach(function(a){void 0!==a&&c.push(a)})});return c._stash(this)},filter:function(a){var c=arguments,b=this,f=0;if("string"==typeof a){b=
k._filterResult(this,c[0]);if(1==c.length)return b._stash(this);f=1}return this._wrap(h.filter(b,c[f],c[f+1]),this)},addContent:function(a,c){a=this._normalize(a,this[0]);for(var b=0,f;f=this[b];b++)a.length?this._place(a,f,c,0<b):m.empty(f);return this}});return p})},"dojo/_base/xhr":function(){define("./kernel ./sniff require ../io-query ../dom ../dom-form ./Deferred ./config ./json ./lang ./array ../on ../aspect ../request/watch ../request/xhr ../request/util".split(" "),function(e,k,h,l,b,m,d,
g,c,a,f,u,p,n,q,r){e._xhrObj=q._create;var s=e.config;e.objectToQuery=l.objectToQuery;e.queryToObject=l.queryToObject;e.fieldToObject=m.fieldToObject;e.formToObject=m.toObject;e.formToQuery=m.toQuery;e.formToJson=m.toJson;e._blockAsync=!1;var x=e._contentHandlers=e.contentHandlers={text:function(a){return a.responseText},json:function(a){return c.fromJson(a.responseText||null)},"json-comment-filtered":function(a){g.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}\x26\x26\nUse djConfig.useCommentedJson\x3dtrue to turn off this message.");
a=a.responseText;var b=a.indexOf("/*"),f=a.lastIndexOf("*/");if(-1==b||-1==f)throw Error("JSON was not comment filtered");return c.fromJson(a.substring(b+2,f))},javascript:function(a){return e.eval(a.responseText)},xml:function(a){var c=a.responseXML;c&&(k("dom-qsa2.1")&&!c.querySelectorAll&&k("dom-parser"))&&(c=(new DOMParser).parseFromString(a.responseText,"application/xml"));if(k("ie")&&(!c||!c.documentElement)){var b=function(a){return"MSXML"+a+".DOMDocument"},b=["Microsoft.XMLDOM",b(6),b(4),
b(3),b(2)];f.some(b,function(b){try{var f=new ActiveXObject(b);f.async=!1;f.loadXML(a.responseText);c=f}catch(d){return!1}return!0})}return c},"json-comment-optional":function(a){return a.responseText&&/^[^{\[]*\/\*/.test(a.responseText)?x["json-comment-filtered"](a):x.json(a)}};e._ioSetArgs=function(c,f,g,n){var q={args:c,url:c.url},p=null;if(c.form){var p=b.byId(c.form),r=p.getAttributeNode("action");q.url=q.url||(r?r.value:e.doc?e.doc.URL:null);p=m.toObject(p)}r=[{}];p&&r.push(p);c.content&&r.push(c.content);
c.preventCache&&r.push({"dojo.preventCache":(new Date).valueOf()});q.query=l.objectToQuery(a.mixin.apply(null,r));q.handleAs=c.handleAs||"text";var h=new d(function(a){a.canceled=!0;f&&f(a);var c=a.ioArgs.error;c||(c=Error("request cancelled"),c.dojoType="cancel",a.ioArgs.error=c);return c});h.addCallback(g);var u=c.load;u&&a.isFunction(u)&&h.addCallback(function(a){return u.call(c,a,q)});var x=c.error;x&&a.isFunction(x)&&h.addErrback(function(a){return x.call(c,a,q)});var w=c.handle;w&&a.isFunction(w)&&
h.addBoth(function(a){return w.call(c,a,q)});h.addErrback(function(a){return n(a,h)});s.ioPublish&&(e.publish&&!1!==q.args.ioPublish)&&(h.addCallbacks(function(a){e.publish("/dojo/io/load",[h,a]);return a},function(a){e.publish("/dojo/io/error",[h,a]);return a}),h.addBoth(function(a){e.publish("/dojo/io/done",[h,a]);return a}));h.ioArgs=q;return h};var w=function(a){a=x[a.ioArgs.handleAs](a.ioArgs.xhr);return void 0===a?null:a},y=function(a,c){c.ioArgs.args.failOk||console.error(a);return a},A=function(a){0>=
B&&(B=0,s.ioPublish&&(e.publish&&(!a||a&&!1!==a.ioArgs.args.ioPublish))&&e.publish("/dojo/io/stop"))},B=0;p.after(n,"_onAction",function(){B-=1});p.after(n,"_onInFlight",A);e._ioCancelAll=n.cancelAll;e._ioNotifyStart=function(a){s.ioPublish&&(e.publish&&!1!==a.ioArgs.args.ioPublish)&&(B||e.publish("/dojo/io/start"),B+=1,e.publish("/dojo/io/send",[a]))};e._ioWatch=function(c,b,f,d){c.ioArgs.options=c.ioArgs.args;a.mixin(c,{response:c.ioArgs,isValid:function(a){return b(c)},isReady:function(a){return f(c)},
handleResponse:function(a){return d(c)}});n(c);A(c)};e._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(-1==a.url.indexOf("?")?"?":"\x26")+a.query,a.query=null)};e.xhr=function(a,c,b){var f,d=e._ioSetArgs(c,function(a){f&&f.cancel()},w,y),g=d.ioArgs;"postData"in c?g.query=c.postData:"putData"in c?g.query=c.putData:"rawBody"in c?g.query=c.rawBody:(2<arguments.length&&!b||-1==="POST|PUT".indexOf(a.toUpperCase()))&&e._ioAddQueryToUrl(g);var n={method:a,handleAs:"text",timeout:c.timeout,withCredentials:c.withCredentials,
ioArgs:g};"undefined"!==typeof c.headers&&(n.headers=c.headers);"undefined"!==typeof c.contentType&&(n.headers||(n.headers={}),n.headers["Content-Type"]=c.contentType);"undefined"!==typeof g.query&&(n.data=g.query);"undefined"!==typeof c.sync&&(n.sync=c.sync);e._ioNotifyStart(d);try{f=q(g.url,n,!0)}catch(p){return d.cancel(),d}d.ioArgs.xhr=f.response.xhr;f.then(function(){d.resolve(d)}).otherwise(function(a){g.error=a;a.response&&(a.status=a.response.status,a.responseText=a.response.text,a.xhr=a.response.xhr);
d.reject(a)});return d};e.xhrGet=function(a){return e.xhr("GET",a)};e.rawXhrPost=e.xhrPost=function(a){return e.xhr("POST",a,!0)};e.rawXhrPut=e.xhrPut=function(a){return e.xhr("PUT",a,!0)};e.xhrDelete=function(a){return e.xhr("DELETE",a)};e._isDocumentOk=function(a){return r.checkStatus(a.status)};e._getText=function(a){var c;e.xhrGet({url:a,sync:!0,load:function(a){c=a}});return c};a.mixin(e.xhr,{_xhrObj:e._xhrObj,fieldToObject:m.fieldToObject,formToObject:m.toObject,objectToQuery:l.objectToQuery,
formToQuery:m.toQuery,formToJson:m.toJson,queryToObject:l.queryToObject,contentHandlers:x,_ioSetArgs:e._ioSetArgs,_ioCancelAll:e._ioCancelAll,_ioNotifyStart:e._ioNotifyStart,_ioWatch:e._ioWatch,_ioAddQueryToUrl:e._ioAddQueryToUrl,_isDocumentOk:e._isDocumentOk,_getText:e._getText,get:e.xhrGet,post:e.xhrPost,put:e.xhrPut,del:e.xhrDelete});return e.xhr})},"dojo/io-query":function(){define(["./_base/lang"],function(e){var k={};return{objectToQuery:function(h){var l=encodeURIComponent,b=[],m;for(m in h){var d=
h[m];if(d!=k[m]){var g=l(m)+"\x3d";if(e.isArray(d))for(var c=0,a=d.length;c<a;++c)b.push(g+l(d[c]));else b.push(g+l(d))}}return b.join("\x26")},queryToObject:function(h){var l=decodeURIComponent;h=h.split("\x26");for(var b={},m,d,g=0,c=h.length;g<c;++g)if(d=h[g],d.length){var a=d.indexOf("\x3d");0>a?(m=l(d),d=""):(m=l(d.slice(0,a)),d=l(d.slice(a+1)));"string"==typeof b[m]&&(b[m]=[b[m]]);e.isArray(b[m])?b[m].push(d):b[m]=d}return b}}})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query",
"./json"],function(e,k,h,l){var b={fieldToObject:function(b){var d=null;if(b=k.byId(b)){var g=b.name,c=(b.type||"").toLowerCase();if(g&&c&&!b.disabled)if("radio"==c||"checkbox"==c)b.checked&&(d=b.value);else if(b.multiple){d=[];for(b=[b.firstChild];b.length;)for(g=b.pop();g;g=g.nextSibling)if(1==g.nodeType&&"option"==g.tagName.toLowerCase())g.selected&&d.push(g.value);else{g.nextSibling&&b.push(g.nextSibling);g.firstChild&&b.push(g.firstChild);break}}else d=b.value}return d},toObject:function(m){var d=
{};m=k.byId(m).elements;for(var g=0,c=m.length;g<c;++g){var a=m[g],f=a.name,h=(a.type||"").toLowerCase();if(f&&h&&0>"file|submit|image|reset|button".indexOf(h)&&!a.disabled){var p=d,n=f,a=b.fieldToObject(a);if(null!==a){var q=p[n];"string"==typeof q?p[n]=[q,a]:e.isArray(q)?q.push(a):p[n]=a}"image"==h&&(d[f+".x"]=d[f+".y"]=d[f].x=d[f].y=0)}}return d},toQuery:function(e){return h.objectToQuery(b.toObject(e))},toJson:function(e,d){return l.stringify(b.toObject(e),null,d?4:0)}};return b})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "),
function(e,k,h,l,b,m){function d(){for(var b=+new Date,d=0,p;d<a.length&&(p=a[d]);d++){var n=p.response,q=n.options;if(p.isCanceled&&p.isCanceled()||p.isValid&&!p.isValid(n))a.splice(d--,1),g._onAction&&g._onAction();else if(p.isReady&&p.isReady(n))a.splice(d--,1),p.handleResponse(n),g._onAction&&g._onAction();else if(p.startTime&&p.startTime+(q.timeout||0)<b)a.splice(d--,1),p.cancel(new k("Timeout exceeded",n)),g._onAction&&g._onAction()}g._onInFlight&&g._onInFlight(p);a.length||(clearInterval(c),
c=null)}function g(b){b.response.options.timeout&&(b.startTime=+new Date);b.isFulfilled()||(a.push(b),c||(c=setInterval(d,50)),b.response.options.sync&&d())}var c=null,a=[];g.cancelAll=function(){try{l.forEach(a,function(a){try{a.cancel(new h("All requests canceled."))}catch(c){}})}catch(c){}};b&&(m&&b.doc.attachEvent)&&m(b.global,"unload",function(){g.cancelAll()});return g})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise".split(" "),
function(e,k,h,l,b,m,d,g){function c(a){return f(a)}function a(a){return void 0!==a.data?a.data:a.text}e.deepCopy=function(a,c){for(var b in c){var f=a[b],d=c[b];f!==d&&(f&&"object"===typeof f&&d&&"object"===typeof d?e.deepCopy(f,d):a[b]=d)}return a};e.deepCreate=function(a,c){c=c||{};var b=d.delegate(a),f,g;for(f in a)(g=a[f])&&"object"===typeof g&&(b[f]=e.deepCreate(g,c[f]));return e.deepCopy(b,c)};var f=Object.freeze||function(a){return a};e.deferred=function(b,p,n,q,r,s){var m=new l(function(a){p&&
p(m,b);return!a||!(a instanceof k)&&!(a instanceof h)?new h("Request canceled",b):a});m.response=b;m.isValid=n;m.isReady=q;m.handleResponse=r;n=m.then(c).otherwise(function(a){a.response=b;throw a;});e.notify&&n.then(d.hitch(e.notify,"emit","load"),d.hitch(e.notify,"emit","error"));q=n.then(a);r=new g;for(var w in q)q.hasOwnProperty(w)&&(r[w]=q[w]);r.response=n;f(r);s&&m.then(function(a){s.call(m,a)},function(a){s.call(m,b,a)});m.promise=r;m.then=r.then;return m};e.addCommonMethods=function(a,c){m.forEach(c||
["GET","POST","PUT","DELETE"],function(c){a[("DELETE"===c?"DEL":c).toLowerCase()]=function(b,f){f=d.delegate(f||{});f.method=c;return a(b,f)}})};e.parseArgs=function(a,c,f){var d=c.data,g=c.query;if(d&&!f&&"object"===typeof d&&!(d instanceof ArrayBuffer||d instanceof Blob))c.data=b.objectToQuery(d);g?("object"===typeof g&&(g=b.objectToQuery(g)),c.preventCache&&(g+=(g?"\x26":"")+"request.preventCache\x3d"+ +new Date)):c.preventCache&&(g="request.preventCache\x3d"+ +new Date);a&&g&&(a+=(~a.indexOf("?")?
"\x26":"?")+g);return{url:a,options:c,getHeader:function(a){return null}}};e.checkStatus=function(a){a=a||0;return 200<=a&&300>a||304===a||1223===a||!a}})},"dojo/errors/RequestError":function(){define(["./create"],function(e){return e("RequestError",function(e,h){this.response=h})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(e,k){return e("RequestTimeoutError",null,k,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError",
"./watch","./handlers","./util","../has"],function(e,k,h,l,b){function m(a,c){var b=a.xhr;a.status=a.xhr.status;try{a.text=b.responseText}catch(f){}"xml"===a.options.handleAs&&(a.data=b.responseXML);if(!c)try{h(a)}catch(d){c=d}var g;if(c)this.reject(c);else{try{h(a)}catch(n){g=n}l.checkStatus(b.status)?g?this.reject(g):this.resolve(a):(c=g?new e("Unable to load "+a.url+" status: "+b.status+" and an error in handleAs: transformation of response",a):new e("Unable to load "+a.url+" status: "+b.status,
a),this.reject(c))}}function d(a){return this.xhr.getResponseHeader(a)}function g(r,s,h){var A=b("native-formdata")&&s&&s.data&&s.data instanceof FormData,B=l.parseArgs(r,l.deepCreate(q,s),A);r=B.url;s=B.options;var C,F=l.deferred(B,p,a,f,m,function(){C&&C()}),K=B.xhr=g._create();if(!K)return F.cancel(new e("XHR was not created")),h?F:F.promise;B.getHeader=d;u&&(C=u(K,F,B));var G=s.data,I=!s.sync,O=s.method;try{K.open(O,r,I,s.user||n,s.password||n);s.withCredentials&&(K.withCredentials=s.withCredentials);
b("native-response-type")&&s.handleAs in c&&(K.responseType=c[s.handleAs]);var N=s.headers;r=A?!1:"application/x-www-form-urlencoded";if(N)for(var T in N)"content-type"===T.toLowerCase()?r=N[T]:N[T]&&K.setRequestHeader(T,N[T]);r&&!1!==r&&K.setRequestHeader("Content-Type",r);(!N||!("X-Requested-With"in N))&&K.setRequestHeader("X-Requested-With","XMLHttpRequest");l.notify&&l.notify.emit("send",B,F.promise.cancel);K.send(G)}catch(P){F.reject(P)}k(F);K=null;return h?F:F.promise}b.add("native-xhr",function(){return"undefined"!==
typeof XMLHttpRequest});b.add("dojo-force-activex-xhr",function(){return b("activex")&&"file:"===window.location.protocol});b.add("native-xhr2",function(){if(b("native-xhr")&&!b("dojo-force-activex-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});b.add("native-formdata",function(){return"undefined"!==typeof FormData});b.add("native-response-type",function(){return b("native-xhr")&&"undefined"!==typeof(new XMLHttpRequest).responseType});
b.add("native-xhr2-blob",function(){if(b("native-response-type")){var a=new XMLHttpRequest;a.open("GET","/",!0);a.responseType="blob";var c=a.responseType;a.abort();return"blob"===c}});var c={blob:b("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"},a,f,u,p;b("native-xhr2")?(a=function(a){return!this.isFulfilled()},p=function(a,c){c.xhr.abort()},u=function(a,c,b){function f(a){c.handleResponse(b)}function d(a){a=new e("Unable to load "+b.url+" status: "+a.target.status,
b);c.handleResponse(b,a)}function g(a){a.lengthComputable?(b.loaded=a.loaded,b.total=a.total,c.progress(b)):3===b.xhr.readyState&&(b.loaded="loaded"in a?a.loaded:a.position,c.progress(b))}a.addEventListener("load",f,!1);a.addEventListener("error",d,!1);a.addEventListener("progress",g,!1);return function(){a.removeEventListener("load",f,!1);a.removeEventListener("error",d,!1);a.removeEventListener("progress",g,!1);a=null}}):(a=function(a){return a.xhr.readyState},f=function(a){return 4===a.xhr.readyState},
p=function(a,c){var b=c.xhr,f=typeof b.abort;("function"===f||"object"===f||"unknown"===f)&&b.abort()});var n,q={data:null,query:null,sync:!1,method:"GET"};g._create=function(){throw Error("XMLHTTP not available");};if(b("native-xhr")&&!b("dojo-force-activex-xhr"))g._create=function(){return new XMLHttpRequest};else if(b("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),g._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(r){try{new ActiveXObject("Microsoft.XMLHTTP"),g._create=
function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(s){}}l.addCommonMethods(g);return g})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(e,k,h,l){function b(c){var b=a[c.options.handleAs];c.data=b?b(c):c.data||c.text;return c}l.add("activex","undefined"!==typeof ActiveXObject);l.add("dom-parser",function(a){return"DOMParser"in a});var m;if(l("activex")){var d=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0",
"MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],g;m=function(a){function c(a){try{var f=new ActiveXObject(a);f.async=!1;f.loadXML(n);b=f;g=a}catch(d){return!1}return!0}var b=a.data,n=a.text;b&&(l("dom-qsa2.1")&&!b.querySelectorAll&&l("dom-parser"))&&(b=(new DOMParser).parseFromString(n,"application/xml"));if(!b||!b.documentElement)(!g||!c(g))&&h.some(d,c);return b}}var c=function(a){return!l("native-xhr2-blob")&&"blob"===a.options.handleAs&&"undefined"!==typeof Blob?new Blob([a.xhr.response],{type:a.xhr.getResponseHeader("Content-Type")}):
a.xhr.response},a={javascript:function(a){return k.eval(a.text||"")},json:function(a){return e.parse(a.text||null)},xml:m,blob:c,arraybuffer:c,document:c};b.register=function(c,b){a[c]=b};return b})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),function(e,k,h,l,b,m,d,g,c){var a=h.mixin,f={},u=f._Line=function(a,c){this.start=a;this.end=c};u.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};
var p=f.Animation=function(c){a(this,c);h.isArray(this.curve)&&(this.curve=new u(this.curve[0],this.curve[1]))};p.prototype=new l;h.extend(p,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var a=this._percent,c=this.easing;return c?c(a):a},_fire:function(a,c){var b=c||[];if(this[a])if(k.debugAtAllCosts)this[a].apply(this,b);else try{this[a].apply(this,b)}catch(f){console.error("exception in animation handler for:",a),console.error(f)}return this},play:function(a,
c){this._delayTimer&&this._clearTimer();if(c)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var b=a||this.delay,f=h.hitch(this,"_play",c);if(0<b)return this._delayTimer=setTimeout(f,b),this;f();return this},_play:function(a){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;a=this.curve.getValue(this._getStep());
this._percent||(this._startRepeatCount||(this._startRepeatCount=this.repeat),this._fire("onBegin",[a]));this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,c){this._stopTimer();this._active=this._paused=!0;this._percent=a;c&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();
if(!this._timer)return this;this._stopTimer();a&&(this._percent=1);this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},destroy:function(){this.stop()},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=(new Date).valueOf(),a=0===this.duration?1:(a-this._startTime)/this.duration;1<=a&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);
1>this._percent?this._startTimer():(this._active=!1,0<this.repeat?(this.repeat--,this.play(null,!0)):-1==this.repeat?this.play(null,!0):this._startRepeatCount&&(this.repeat=this._startRepeatCount,this._startRepeatCount=0),this._percent=0,this._fire("onEnd",[this.node]),!this.repeat&&this._stopTimer())}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var n=0,q=null,r={run:function(){}};h.extend(p,{_startTimer:function(){this._timer||(this._timer=m.after(r,
"run",h.hitch(this,"_cycle"),!0),n++);q||(q=setInterval(h.hitch(r,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,n--);0>=n&&(clearInterval(q),q=null,n=0)}});var s=d("ie")?function(a){var b=a.style;!b.width.length&&"auto"==c.get(a,"width")&&(b.width="auto")}:function(){};f._fade=function(b){b.node=g.byId(b.node);var d=a({properties:{}},b);b=d.properties.opacity={};b.start=!("start"in d)?function(){return+c.get(d.node,"opacity")||0}:d.start;b.end=d.end;
b=f.animateProperty(d);m.after(b,"beforeBegin",h.partial(s,d.node),!0);return b};f.fadeIn=function(c){return f._fade(a({end:1},c))};f.fadeOut=function(c){return f._fade(a({end:0},c))};f._defaultEasing=function(a){return 0.5+Math.sin((a+1.5)*Math.PI)/2};var x=function(a){this._properties=a;for(var c in a){var f=a[c];f.start instanceof b&&(f.tempColor=new b)}};x.prototype.getValue=function(a){var c={},f;for(f in this._properties){var d=this._properties[f],g=d.start;g instanceof b?c[f]=b.blendColors(g,
d.end,a,d.tempColor).toCss():h.isArray(g)||(c[f]=(d.end-g)*a+g+("opacity"!=f?d.units||"px":0))}return c};f.animateProperty=function(f){var d=f.node=g.byId(f.node);f.easing||(f.easing=e._defaultEasing);f=new p(f);m.after(f,"beforeBegin",h.hitch(f,function(){var f={},g;for(g in this.properties){if("width"==g||"height"==g)this.node.display="block";var n=this.properties[g];h.isFunction(n)&&(n=n(d));n=f[g]=a({},h.isObject(n)?n:{end:n});h.isFunction(n.start)&&(n.start=n.start(d));h.isFunction(n.end)&&(n.end=
n.end(d));var q=0<=g.toLowerCase().indexOf("color"),p=function(a,b){var f={height:a.offsetHeight,width:a.offsetWidth}[b];if(void 0!==f)return f;f=c.get(a,b);return"opacity"==b?+f:q?f:parseFloat(f)};"end"in n?"start"in n||(n.start=p(d,g)):n.end=p(d,g);q?(n.start=new b(n.start),n.end=new b(n.end)):n.start="opacity"==g?+n.start:parseFloat(n.start)}this.curve=new x(f)}),!0);m.after(f,"onAnimate",h.hitch(c,"set",f.node),!0);return f};f.anim=function(a,c,b,d,g,n){return f.animateProperty({node:a,duration:b||
p.prototype.duration,properties:c,easing:d,onEnd:g}).play(n||0)};a(e,f);e._Animation=p;return f})},"dojo/_base/loader":function(){define("./kernel ../has require module ../json ./lang ./array".split(" "),function(e,k,h,l,b,m,d){var g=function(a){return a.replace(/\./g,"/")},c=/\/\/>>built/,a=[],f=[],u=function(c,b,g){a.push(g);d.forEach(c.split(","),function(a){a=N(a,b.module);f.push(a);T(a)});p()},p=function(){var c,b;for(b in I)if(c=I[b],void 0===c.noReqPluginCheck&&(c.noReqPluginCheck=/loadInit\!/.test(b)||
/require\!/.test(b)?1:0),!c.executed&&!c.noReqPluginCheck&&c.injected==A)return;V(function(){var c=a;a=[];d.forEach(c,function(a){a(1)})})},n=function(a,c,b){var f=/\(|\)/g,d=1;for(f.lastIndex=c;(c=f.exec(a))&&!(d=")"==c[0]?d-1:d+1,0==d););if(0!=d)throw"unmatched paren around character "+f.lastIndex+" in: "+a;return[e.trim(a.substring(b,f.lastIndex))+";\n",f.lastIndex]},q=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,r=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,
s=/(^|\s)(require|define)\s*\(/m,x=function(a,c){var b,f,d,g=[],p=[];b=[];for(c=c||a.replace(q,function(a){r.lastIndex=s.lastIndex=0;return r.test(a)||s.test(a)?"":a});b=r.exec(c);)f=r.lastIndex,d=f-b[0].length,f=n(c,f,d),"loadInit"==b[2]?g.push(f[0]):p.push(f[0]),r.lastIndex=f[1];b=g.concat(p);return b.length||!s.test(c)?[a.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 \x26\x26 dojo.loadInit("),b.join(""),b]:0},w=h.initSyncLoader(u,p,function(a,f){var d,g,n=[],q=[];if(c.test(f)||!(d=x(f)))return 0;g=
a.mid+"-*loadInit";for(var p in N("dojo",a).result.scopeMap)n.push(p),q.push('"'+p+'"');return"// xdomain rewrite of "+a.mid+"\ndefine('"+g+"',{\n\tnames:"+b.stringify(n)+",\n\tdef:function("+n.join(",")+"){"+d[1]+"}});\n\ndefine("+b.stringify(n.concat(["dojo/loadInit!"+g]))+", function("+n.join(",")+"){\n"+d[0]+"});"}),y=w.sync,A=w.requested,B=w.arrived,C=w.nonmodule,F=w.executing,K=w.executed,G=w.syncExecStack,I=w.modules,O=w.execQ,N=w.getModule,T=w.injectModule,P=w.setArrived,Q=w.signal,L=w.finishExec,
J=w.execModule,H=w.getLegacyMode,V=w.guardCheckComplete,u=w.dojoRequirePlugin;e.provide=function(a){var c=G[0],b=m.mixin(N(g(a),h.module),{executed:F,result:m.getObject(a,!0)});P(b);c&&(c.provides||(c.provides=[])).push(function(){b.result=m.getObject(a);delete b.provides;b.executed!==K&&L(b)});return b.result};k.add("config-publishRequireResult",1,0,0);e.require=function(a,c){var b=function(a,c){var b=N(g(a),h.module);if(G.length&&G[0].finish)G[0].finish.push(a);else{if(b.executed)return b.result;
c&&(b.result=C);var f=H();T(b);f=H();b.executed!==K&&b.injected===B&&w.guardCheckComplete(function(){J(b)});if(b.executed)return b.result;f==y?b.cjs?O.unshift(b):G.length&&(G[0].finish=[a]):O.push(b)}}(a,c);k("config-publishRequireResult")&&(!m.exists(a)&&void 0!==b)&&m.setObject(a,b);return b};e.loadInit=function(a){a()};e.registerModulePath=function(a,c){var b={};b[a.replace(/\./g,"/")]=c;h({paths:b})};e.platformRequire=function(a){a=(a.common||[]).concat(a[e._name]||a["default"]||[]);for(var c;a.length;)m.isArray(c=
a.shift())?e.require.apply(e,c):e.require(c)};e.requireIf=e.requireAfterIf=function(a,c,b){a&&e.require(c,b)};e.requireLocalization=function(a,c,b){h(["../i18n"],function(f){f.getLocalization(a,c,b)})};return{extractLegacyApiApplications:x,require:u,loadInit:function(a,c,b){c([a],function(a){c(a.names,function(){for(var f="",d=[],n=0;n<arguments.length;n++)f+="var "+a.names[n]+"\x3d arguments["+n+"]; ",d.push(arguments[n]);eval(f);var q=c.module,p=[],s,f={provide:function(a){a=g(a);a=N(a,q);a!==q&&
P(a)},require:function(a,c){a=g(a);c&&(N(a,q).result=C);p.push(a)},requireLocalization:function(a,c,b){s||(s=["dojo/i18n"]);b=(b||e.locale).toLowerCase();a=g(a)+"/nls/"+(/root/i.test(b)?"":b+"/")+g(c);N(a,q).isXd&&s.push("dojo/i18n!"+a)},loadInit:function(a){a()}},n={},r;try{for(r in f)n[r]=e[r],e[r]=f[r];a.def.apply(null,d)}catch(m){Q("error",[{src:l.id,id:"failedDojoLoadInit"},m])}finally{for(r in f)e[r]=n[r]}s&&(p=p.concat(s));p.length?u(p.join(","),c,b):b()})})}}})}}});
require({cache:{"webview/webview":function(){define([],1)},"webview/widgets/App":function(){define("dojo/_base/declare dojo/Deferred dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/topic dojo/on dojo/keys dojo/has dijit/layout/BorderContainer ../data/AppData ../search/Finder ../utils/hash ../utils/request ./ModelBrowser ./ModelViewer ./ModelInspector ./Informer ./ModelGraphicsHighlighter ./ViewManager ../utils/check-browser ../interface".split(" "),function(e,k,h,l,b,m,d,g,
c,a,f,u,p,n,q,r,s,x,w,y,A){return e([f],{postMixInProperties:function(){var a=this;this._splitterClass=e(this._splitterClass,{_stopDrag:function(){this.inherited(arguments);a.resize()}});this.gutters=!1;this.inherited(arguments);q.get(this.src,{handleAs:"json",sync:!0}).then(function(c){a.data=new u(c)});this.homeHid=this.data.homeHid;this.showInformer=this.data.display.informer;this.viewManager=new A({app:this});this.own(this.finder=new p({app:this}),this.userHighlighter=new y({app:this,stylingLayerOptions:{id:"user-highlights",
show:!0,zOrder:99,displayMode:y.prototype.COMBINE_DISPLAY}}))},postCreate:function(){var a=new r({app:this,region:"left",splitter:!0}),c=new s({app:this,region:"center",minSize:250}),b=new x({app:this,region:"right",splitter:!0}),f=new w({app:this,region:"bottom",splitter:!0});this.modelBrowser=a;this.modelViewer=c;this.modelInspector=b;this.informer=f;l.create("link",{href:this.data.iconsUrl,type:"text/css",media:"screen",rel:"stylesheet"},this.domNode);this.get("showModelBrowser")&&this.addChild(a);
this.addChild(c);this.addChild(b);this.get("showInformer")&&this.addChild(f);this.own(a,c,b,f);h.add(this.domNode,"wvApp");a=document.createAttribute("tabindex");a.value="0";this.domNode.setAttributeNode(a)},startup:function(){function a(c){var b=c.indexOf(":"),d=c.substring(0,b);c=c.substring(b+1);var g,n;f.id===d&&(g=f.getDiagram(Number(c)),g||(n=f.getElement(c),g=n.diagram));return{diagram:g,element:n}}var f=this,q=f.id,p=m.getComputedStyle(f.domNode),s=b.getMarginBox(f.domNode,p);f._computedStyle=
p;f.modelInspector.set("style","width:"+0.25*s.w+"px");f.modelBrowser.set("style","width:"+0.25*s.w+"px");f.informer.set("style","height:"+0.25*s.h+"px");f.own(d.subscribe(q+"/select",function(a){f.emit("select",a)}),g(f.domNode,"keyup",function(a){a.keyCode===c.ESCAPE&&(window.history.back(),a.stopPropagation())}));f.inherited(arguments);f.viewManager.startup();f.finder.startup();f.userHighlighter.startup();f._ignoreHashChange=!1;f.own(d.subscribe("/dojo/hashchange",function(c){var b,d;""===c?b=
f.getDiagram(f.homeHid):(c=a(c),b=c.diagram,d=c.element);if(b||d)f._ignoreHashChange||f.open(b,{tab:"reuse",nohash:!0}).then(function(){d?(f.select(d),f.open(d,{nohash:!0}).then(function(){f.getElementViewer().focus()})):f.modelViewer.focus()}),f._ignoreHashChange=!1}));var q=a(n()),p=q.diagram||f.getDiagram(f.homeHid),r=q.element||f.getElement(f.data.initialElement);return f.open(p,{tab:"new",nohash:!0}).then(function(){r?(f.select(r),f.open(r).then(function(){f.getElementViewer().focus()})):f.modelViewer.focus();
d.publish("/webview/ready",f)})},resize:function(){var a=b.getMarginBox(this.domNode,this._computedStyle),c=this.modelViewer,f=this.modelInspector,d=this.modelBrowser,g=f.getMarginBox(),n=d.getMarginBox(),q=5*this.showModelBrowser+5,p=a.w-q-n.w-c.minSize;g.w>p&&(g.l+=g.w-p,g.w=p,f.resize(g));a=a.w-q-g.w-c.minSize;n.w>a&&(n.w=p,d.resize(n));f.set("maxSize",p);d.set("maxSize",a);this.inherited(arguments)},showModelBrowser:!1,_setShowModelBrowserAttr:function(a){var c=this.modelBrowser;this._started&&
this.showModelBrowser!==a&&(a?this.addChild(c):this.removeChild(c),this._set("showModelBrowser",a),this.resize())},showInformer:!1,_setShowInformerAttr:function(a){var c=this.informer;this._started&&(this.showInformer!==a&&(a?this.addChild(c):this.removeChild(c),this.resize()),this._set("showInformer",a))},getElementViewer:function(){return this.modelViewer.selectedDiagramTab.lightBox},getDiagram:function(a){return this.data.getDiagram(a)},getElement:function(a){return this.data.getElement(a)},isElement:function(a){return this.data.isElement(a)},
isDiagram:function(a){return this.data.isDiagram(a)},getSelectedDiagram:function(){return this.modelViewer.selectedDiagram},getSelectedElement:function(){return this.modelViewer.selectedDiagramTab.modelGraphicsPane.selectedElement},isDiagramInView:function(a){return a===this.getSelectedDiagram()&&"ViewAllTab"!==this.modelViewer.selectedTab.role},open:function(a,c){var b=this,f=b.id,g=b._deferred,q,p;p=c&&c.nohash;if(g)g.then(function(){b.open(a,c)});else{g=new k;g.id=Math.round(1E3*Math.random());
b._deferred=g;q=d.subscribe(f+"/postOpen",function(c){c===a&&(b._deferred=void 0,q.remove(),g.resolve())});setTimeout(function(){g.isFulfilled()||(b._deferred=void 0,g.reject("timed out"))},5E3);if(!p&&(p=b.isDiagram(a)?f+":"+a.hid.toString():b.getElementViewer().hasContentToShow(a)?f+":"+a.eid:null)&&p!==n())b._ignoreHashChange=!0,n(p);b.emit("open",a);d.publish(f+"/open",a,c)}return g},close:function(a){var c=this.id,b=new k,f,g;if(this.isDiagram(a)){f=this.isDiagramInView(a)?c+"/postOpen":c+"/postClose";
g=d.subscribe(f,function(){g.remove();b.resolve()});try{d.publish(c+"/close",a)}catch(n){g.remove(),b.reject(n)}}else d.publish(c+"/close",a),b.resolve();return b},highlightAndFade:function(c){var b=this.userHighlighter,f,d;if(this.isElement(c))if(b.unhighlightAll(),b.highlight(c,"foo: foo"),f=b.getStylingLayer(c.diagram),d=f.styleElements.get(c.backing.sid).node,a("trident"))var g=new Date,n=setInterval(function(){var a=(new Date-g)/1E3;1<a&&(a=1);d.style.fill="yellow";d.style["fill-opacity"]=0.8*
(1-a);1===a&&(clearInterval(n),b.unhighlight(c))},10);else d.classList.add("slwebview-anchor-highlight")},select:function(a){(this.isElement(a)||this.isDiagram(a))&&d.publish(this.id+"/select",a)},unselect:function(){d.publish(this.id+"/select",this.getSelectedDiagram())},highlight:function(a,c){this.isElement(a)&&this.userHighlighter.highlight(a,c)},unhighlight:function(a){this.isElement(a)&&this.userHighlighter.unhighlight(a)},unhighlightAll:function(){this.userHighlighter.unhighlightAll()},centerToView:function(a){this.isElement(a)&&
this.isDiagramInView(a.diagram)&&this.modelViewer.selectedDiagramTab.modelGraphicsPane.centerToView(a)},moveToView:function(a){this.isElement(a)&&this.isDiagramInView(a.diagram)&&this.modelViewer.selectedDiagramTab.modelGraphicsPane.moveToView(a)}})})},"dijit/layout/BorderContainer":function(){define("dojo/_base/array dojo/cookie dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/on dojo/touch ../_WidgetBase ../_Widget ../_TemplatedMixin ./LayoutContainer ./utils".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){var s=h("dijit.layout._Splitter",[p,n],{live:!0,templateString:'\x3cdiv class\x3d"dijitSplitter" data-dojo-attach-event\x3d"onkeydown:_onKeyDown,press:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex\x3d"0" role\x3d"separator"\x3e\x3cdiv class\x3d"dijitSplitterThumb"\x3e\x3c/div\x3e\x3c/div\x3e',constructor:function(){this._handlers=[]},postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);
this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);l.add(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=k(this._cookieName);a&&(this.child.domNode.style[this.horizontal?"height":"width"]=a)}},_computeMaxSize:function(){var a=this.horizontal?"h":"w",c=m.getMarginBox(this.child.domNode)[a],b=e.filter(this.container.getChildren(),function(a){return"center"==a.region})[0],
a=m.getContentBox(b.domNode)[a]-10;return Math.min(this.child.maxSize,c+a)},_startDrag:function(g){this.cover||(this.cover=b.place("\x3cdiv class\x3ddijitSplitterCover\x3e\x3c/div\x3e",this.child.domNode,"after"));l.add(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);if(!(this._resize=this.live))(this.fake=this.domNode.cloneNode(!0)).removeAttribute("id"),l.add(this.domNode,"dijitSplitterShadow"),b.place(this.fake,this.domNode,"after");l.add(this.domNode,"dijitSplitterActive dijitSplitter"+
(this.horizontal?"H":"V")+"Active");this.fake&&l.remove(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var n=this._factor,q=this.horizontal,p=q?"pageY":"pageX",s=g[p],r=this.domNode.style,q=q?"h":"w",e=d.getComputedStyle(this.child.domNode),h=m.getMarginBox(this.child.domNode,e)[q],u=this._computeMaxSize(),k=Math.max(this.child.minSize,m.getPadBorderExtents(this.child.domNode,e)[q]+10),q=this.region,x="top"==q||"bottom"==q?"top":"left",T=parseInt(r[x],10),P=this._resize,
Q=c.hitch(this.container,"_layoutChildren",this.child.id),q=this.ownerDocument;this._handlers=this._handlers.concat([a(q,f.move,this._drag=function(a,c){var b=a[p]-s,f=n*b+h,d=Math.max(Math.min(f,u),k);(P||c)&&Q(d);r[x]=b+T+n*(d-f)+"px"}),a(q,"dragstart",function(a){a.stopPropagation();a.preventDefault()}),a(this.ownerDocumentBody,"selectstart",function(a){a.stopPropagation();a.preventDefault()}),a(q,f.release,c.hitch(this,"_stopDrag"))]);g.stopPropagation();g.preventDefault()},_onMouse:function(a){a=
"mouseover"==a.type||"mouseenter"==a.type;l.toggle(this.domNode,"dijitSplitterHover",a);l.toggle(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&l.remove(this.cover,"dijitSplitterCoverActive"),this.fake&&b.destroy(this.fake),l.remove(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow"),this._drag(a),this._drag(a,!0)}finally{this._cleanupHandlers(),delete this._drag}this.container.persist&&
k(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){for(var a;a=this._handlers.pop();)a.remove()},_onKeyDown:function(a){this._resize=!0;var c=this.horizontal,b=1;switch(a.keyCode){case c?g.UP_ARROW:g.LEFT_ARROW:b*=-1;case c?g.DOWN_ARROW:g.RIGHT_ARROW:break;default:return}c=m.getMarginSize(this.child.domNode)[c?"h":"w"]+this._factor*b;this.container._layoutChildren(this.child.id,Math.max(Math.min(c,this._computeMaxSize()),this.child.minSize));
a.stopPropagation();a.preventDefault()},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}}),x=h("dijit.layout._Gutter",[p,n],{templateString:'\x3cdiv class\x3d"dijitGutter" role\x3d"presentation"\x3e\x3c/div\x3e',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);l.add(this.domNode,"dijitGutter"+(this.horizontal?
"H":"V"))}});h=h("dijit.layout.BorderContainer",q,{gutters:!0,liveSplitters:!0,persist:!1,baseClass:"dijitBorderContainer",_splitterClass:s,postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},_setupChild:function(a){this.inherited(arguments);var f=a.region,d=a.isLeftToRight();"leading"==f&&(f=d?"left":"right");"trailing"==f&&(f=d?"right":"left");if(f&&"center"!=f&&(a.splitter||this.gutters)&&!a._splitterWidget)d=a.splitter?this._splitterClass:x,c.isString(d)&&
(d=c.getObject(d)),d=new d({id:a.id+"_splitter",container:this,child:a,region:f,live:this.liveSplitters}),d.isSplitter=!0,a._splitterWidget=d,f="bottom"==f||f==(this.isLeftToRight()?"right":"left"),b.place(d.domNode,a.domNode,f?"before":"after"),d.startup()},layout:function(){this._layoutChildren()},removeChild:function(a){var c=a._splitterWidget;c&&(c.destroy(),delete a._splitterWidget);this.inherited(arguments)},getChildren:function(){return e.filter(this.inherited(arguments),function(a){return!a.isSplitter})},
getSplitter:function(a){return e.filter(this.getChildren(),function(c){return c.region==a})[0]._splitterWidget},resize:function(a,c){if(!this.cs||!this.pe){var b=this.domNode;this.cs=d.getComputedStyle(b);this.pe=m.getPadExtents(b,this.cs);this.pe.r=d.toPixelValue(b,this.cs.paddingRight);this.pe.b=d.toPixelValue(b,this.cs.paddingBottom);d.set(b,"padding","0px")}this.inherited(arguments)},_layoutChildren:function(a,c){if(this._borderBox&&this._borderBox.h){var b=[];e.forEach(this._getOrderedChildren(),
function(a){b.push(a);a._splitterWidget&&b.push(a._splitterWidget)});r.layoutChildren(this.domNode,{l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h},b,a,c)}},destroyRecursive:function(){e.forEach(this.getChildren(),function(a){var c=a._splitterWidget;c&&c.destroy();delete a._splitterWidget});this.inherited(arguments)}});h.ChildWidgetProperties={splitter:!1,minSize:0,maxSize:Infinity};c.mixin(h.ChildWidgetProperties,q.ChildWidgetProperties);c.extend(u,h.ChildWidgetProperties);
h._Splitter=s;h._Gutter=x;return h})},"dojo/cookie":function(){define(["./_base/kernel","./regexp"],function(e,k){e.cookie=function(e,l,b){var m=document.cookie,d;if(1==arguments.length)d=(d=m.match(RegExp("(?:^|; )"+k.escapeString(e)+"\x3d([^;]*)")))?decodeURIComponent(d[1]):void 0;else{b=b||{};m=b.expires;if("number"==typeof m){var g=new Date;g.setTime(g.getTime()+864E5*m);m=b.expires=g}m&&m.toUTCString&&(b.expires=m.toUTCString());l=encodeURIComponent(l);var m=e+"\x3d"+l,c;for(c in b)m+="; "+c,
g=b[c],!0!==g&&(m+="\x3d"+g);document.cookie=m}return d};e.cookie.isSupported=function(){"cookieEnabled"in navigator||(this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled="CookiesAllowed"==this("__djCookieTest__"),navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1}));return navigator.cookieEnabled};return e.cookie})},"dojo/regexp":function(){define(["./_base/kernel","./_base/lang"],function(e,k){var h={};k.setObject("dojo.regexp",h);h.escapeString=function(e,b){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,
function(e){return b&&-1!=b.indexOf(e)?e:"\\"+e})};h.buildGroupRE=function(e,b,m){if(!(e instanceof Array))return b(e);for(var d=[],g=0;g<e.length;g++)d.push(b(e[g]));return h.group(d.join("|"),m)};h.group=function(e,b){return"("+(b?"?:":"")+e+")"};return h})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(e,k,h,l,b,m,d,g,c,a){function f(a,c,b){return q&&b?function(a,c){return m(a,b,c)}:s?function(b,
f){var d=m(b,c,function(a){f.call(this,a);I=(new Date).getTime()}),g=m(b,a,function(a){(!I||(new Date).getTime()>I+1E3)&&f.call(this,a)});return{remove:function(){d.remove();g.remove()}}}:function(c,b){return m(c,a,b)}}function u(a){do if(void 0!==a.dojoClick)return a;while(a=a.parentNode)}function p(c,b,f){if(!g.isRight(c)){var d=u(c.target);if(w=!c.target.disabled&&d&&d.dojoClick)if(A=(y="useTarget"==w)?d:c.target,y&&c.preventDefault(),B=c.changedTouches?c.changedTouches[0].pageX-a.global.pageXOffset:
c.clientX,C=c.changedTouches?c.changedTouches[0].pageY-a.global.pageYOffset:c.clientY,F=("object"==typeof w?w.x:"number"==typeof w?w:0)||4,K=("object"==typeof w?w.y:"number"==typeof w?w:0)||4,!x){x=!0;var n=function(c){w=y?h.isDescendant(a.doc.elementFromPoint(c.changedTouches?c.changedTouches[0].pageX-a.global.pageXOffset:c.clientX,c.changedTouches?c.changedTouches[0].pageY-a.global.pageYOffset:c.clientY),A):w&&(c.changedTouches?c.changedTouches[0].target:c.target)==A&&Math.abs((c.changedTouches?
c.changedTouches[0].pageX-a.global.pageXOffset:c.clientX)-B)<=F&&Math.abs((c.changedTouches?c.changedTouches[0].pageY-a.global.pageYOffset:c.clientY)-C)<=K};a.doc.addEventListener(b,function(a){g.isRight(a)||(n(a),y&&a.preventDefault())},!0);a.doc.addEventListener(f,function(a){if(!g.isRight(a)&&(n(a),w)){G=(new Date).getTime();var c=y?A:a.target;"LABEL"===c.tagName&&(c=h.byId(c.getAttribute("for"))||c);var b=a.changedTouches?a.changedTouches[0]:a,f=function(c){var f=document.createEvent("MouseEvents");
f._dojo_click=!0;f.initMouseEvent(c,!0,!0,a.view,a.detail,b.screenX,b.screenY,b.clientX,b.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null);return f},d=f("mousedown"),q=f("mouseup"),p=f("click");setTimeout(function(){m.emit(c,"mousedown",d);m.emit(c,"mouseup",q);m.emit(c,"click",p);G=(new Date).getTime()},0)}},!0);c=function(c){a.doc.addEventListener(c,function(a){var b=a.target;w&&(!a._dojo_click&&(new Date).getTime()<=G+1E3&&!("INPUT"==b.tagName&&l.contains(b,"dijitOffScreen")))&&(a.stopPropagation(),
a.stopImmediatePropagation&&a.stopImmediatePropagation(),"click"==c&&(("INPUT"!=b.tagName||"radio"==b.type&&(l.contains(b,"dijitCheckBoxInput")||l.contains(b,"mblRadioButton"))||"checkbox"==b.type&&(l.contains(b,"dijitCheckBoxInput")||l.contains(b,"mblCheckBox")))&&"TEXTAREA"!=b.tagName&&"AUDIO"!=b.tagName&&"VIDEO"!=b.tagName)&&a.preventDefault())},!0)};c("click");c("mousedown");c("mouseup")}}}var n=5>d("ios"),q=d("pointer-events")||d("MSPointer"),r=function(){var a={},c;for(c in{down:1,move:1,up:1,
cancel:1,over:1,out:1})a[c]=d("MSPointer")?"MSPointer"+c.charAt(0).toUpperCase()+c.slice(1):"pointer"+c;return a}(),s=d("touch-events"),x,w,y=!1,A,B,C,F,K,G,I,O;d("touch")&&(q?c(function(){a.doc.addEventListener(r.down,function(a){p(a,r.move,r.up)},!0)}):c(function(){function c(a){var f=b.delegate(a,{bubbles:!0});6<=d("ios")&&(f.touches=a.touches,f.altKey=a.altKey,f.changedTouches=a.changedTouches,f.ctrlKey=a.ctrlKey,f.metaKey=a.metaKey,f.shiftKey=a.shiftKey,f.targetTouches=a.targetTouches);return f}
O=a.body();a.doc.addEventListener("touchstart",function(a){I=(new Date).getTime();var c=O;O=a.target;m.emit(c,"dojotouchout",{relatedTarget:O,bubbles:!0});m.emit(O,"dojotouchover",{relatedTarget:c,bubbles:!0});p(a,"touchmove","touchend")},!0);m(a.doc,"touchmove",function(b){I=(new Date).getTime();var f=a.doc.elementFromPoint(b.pageX-(n?0:a.global.pageXOffset),b.pageY-(n?0:a.global.pageYOffset));f&&(O!==f&&(m.emit(O,"dojotouchout",{relatedTarget:f,bubbles:!0}),m.emit(f,"dojotouchover",{relatedTarget:O,
bubbles:!0}),O=f),m.emit(f,"dojotouchmove",c(b))||b.preventDefault())});m(a.doc,"touchend",function(b){I=(new Date).getTime();var f=a.doc.elementFromPoint(b.pageX-(n?0:a.global.pageXOffset),b.pageY-(n?0:a.global.pageYOffset))||a.body();m.emit(f,"dojotouchend",c(b))})}));k={press:f("mousedown","touchstart",r.down),move:f("mousemove","dojotouchmove",r.move),release:f("mouseup","dojotouchend",r.up),cancel:f(g.leave,"touchcancel",q?r.cancel:null),over:f("mouseover","dojotouchover",r.over),out:f("mouseout",
"dojotouchout",r.out),enter:g._eventHandler(f("mouseover","dojotouchover",r.over)),leave:g._eventHandler(f("mouseout","dojotouchout",r.out))};return e.touch=k})},"dijit/_WidgetBase":function(){define("require dojo/_base/array dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/_base/kernel dojo/_base/lang dojo/on dojo/ready dojo/Stateful dojo/topic dojo/_base/window ./Destroyable require ./registry".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w,y,A,B,C){function F(a){return function(c){g[c?"set":"remove"](this.domNode,a,c);this._set(a,c)}}p.add("dijit-legacy-requires",!n.isAsync);p("dijit-legacy-requires")&&s(0,function(){e(["dijit/_base/manager"])});var K={};return m("dijit._WidgetBase",[x,A],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:F("lang"),dir:"",_setDirAttr:F("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",
srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(a){this._set("ownerDocument",a)},attributeMap:{},_blankGif:l.blankGif||e.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var a=this.constructor;if(!a._setterAttrs){var c=a.prototype,b=a._setterAttrs=[],a=a._onMap={},f;for(f in c.attributeMap)b.push(f);for(f in c)/^on/.test(f)&&(a[f.substring(2).toLowerCase()]=f),/^_set[A-Z](.*)Attr$/.test(f)&&(f=f.charAt(4).toLowerCase()+f.substr(5,
f.length-9),(!c.attributeMap||!(f in c.attributeMap))&&b.push(f))}},postscript:function(a,c){this.create(a,c)},create:function(a,c){this._introspect();this.srcNodeRef=d.byId(c);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&(this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id)&&(this.id=this.srcNodeRef.id);a&&(this.params=a,q.mixin(this,a));this.postMixInProperties();this.id||(this.id=C.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=
this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=y.body(this.ownerDocument);C.add(this);this.buildRendering();var b;if(this.domNode){this._applyAttributes();var f=this.srcNodeRef;f&&(f.parentNode&&this.domNode!==f)&&(f.parentNode.replaceChild(this.domNode,f),b=!0);this.domNode.setAttribute("widgetId",this.id)}this.postCreate();b&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a={},c;for(c in this.params||{})a[c]=this._get(c);
k.forEach(this.constructor._setterAttrs,function(c){if(!(c in a)){var b=this._get(c);b&&this.set(c,b)}},this);for(c in a)this.set(c,a[c])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(k.map(a,function(a){return a+"Rtl"})));c.add(this.domNode,a)}},postCreate:function(){},startup:function(){this._started||(this._started=
!0,k.forEach(this.getChildren(),function(a){!a._started&&(!a._destroyed&&q.isFunction(a.startup))&&(a.startup(),a._started=!0)}))},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){function c(b){b.destroyRecursive?b.destroyRecursive(a):b.destroy&&b.destroy(a)}this._beingDestroyed=!0;this.uninitialize();k.forEach(this._connects,q.hitch(this,"disconnect"));k.forEach(this._supportingWidgets,c);this.domNode&&k.forEach(C.findWidgets(this.domNode,
this.containerNode),c);this.destroyRendering(a);C.remove(this.id);this._destroyed=!0},destroyRendering:function(c){this.bgIframe&&(this.bgIframe.destroy(c),delete this.bgIframe);this.domNode&&(c?g.remove(this.domNode,"widgetId"):a.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(c||a.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){k.forEach(this.getChildren(),function(c){c.destroyRecursive&&c.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var c=
this.domNode;q.isObject(a)?u.set(c,a):c.style.cssText=c.style.cssText?c.style.cssText+("; "+a):a;this._set("style",a)},_attrToDom:function(a,b,f){f=3<=arguments.length?f:this.attributeMap[a];k.forEach(q.isArray(f)?f:[f],function(f){var d=this[f.node||f||"domNode"];switch(f.type||"attribute"){case "attribute":q.isFunction(b)&&(b=q.hitch(this,b));f=f.attribute?f.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;d.tagName?g.set(d,f,b):d.set(f,b);break;case "innerText":d.innerHTML="";d.appendChild(this.ownerDocument.createTextNode(b));
break;case "textContent":d.textContent=b;break;case "innerHTML":d.innerHTML=b;break;case "class":c.replace(d,b,this[a]);break;case "toggleClass":c.toggle(d,f.className||a,b)}},this)},get:function(a){var c=this._getAttrNames(a);return this[c.g]?this[c.g]():this._get(a)},set:function(a,c){if("object"===typeof a){for(var b in a)this.set(b,a[b]);return this}b=this._getAttrNames(a);var f=this[b.s];if(q.isFunction(f))var d=f.apply(this,Array.prototype.slice.call(arguments,1));else{var f=this.focusNode&&
!q.isFunction(this.focusNode)?"focusNode":"domNode",g=this[f]&&this[f].tagName,n;if(n=g)if(!(n=K[g])){n=this[f];var p={},s;for(s in n)p[s.toLowerCase()]=!0;n=K[g]=p}s=n;b=a in this.attributeMap?this.attributeMap[a]:b.s in this?this[b.s]:s&&b.l in s&&"function"!=typeof c||/^aria-|^data-|^role$/.test(a)?f:null;null!=b&&this._attrToDom(a,c,b);this._set(a,c)}return d||this},_attrPairNames:{},_getAttrNames:function(a){var c=this._attrPairNames;if(c[a])return c[a];var b=a.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length-
1).toUpperCase()});return c[a]={n:a+"Node",s:"_set"+b+"Attr",g:"_get"+b+"Attr",l:b.toLowerCase()}},_set:function(a,c){var b=this[a];this[a]=c;if(this._created&&!(b===c||b!==b&&c!==c))this._watchCallbacks&&this._watchCallbacks(a,b,c),this.emit("attrmodified-"+a,{detail:{prevValue:b,newValue:c}})},_get:function(a){return this[a]},emit:function(a,c,b){c=c||{};void 0===c.bubbles&&(c.bubbles=!0);void 0===c.cancelable&&(c.cancelable=!0);c.detail||(c.detail={});c.detail.widget=this;var f,d=this["on"+a];
d&&(f=d.apply(this,b?b:[c]));this._started&&!this._beingDestroyed&&r.emit(this.domNode,a.toLowerCase(),c);return f},on:function(a,c){var b=this._onMap(a);return b?h.after(this,b,c,!0):this.own(r(this.domNode,a,c))[0]},_onMap:function(a){var c=this.constructor,b=c._onMap;if(!b){var b=c._onMap={},f;for(f in c.prototype)/^on/.test(f)&&(b[f.replace(/^on/,"").toLowerCase()]=f)}return b["string"==typeof a&&a.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+
"]"},getChildren:function(){return this.containerNode?C.findWidgets(this.containerNode):[]},getParent:function(){return C.getEnclosingWidget(this.domNode.parentNode)},connect:function(a,c,f){return this.own(b.connect(a,c,this,f))[0]},disconnect:function(a){a.remove()},subscribe:function(a,c){return this.own(w.subscribe(a,q.hitch(this,c)))[0]},unsubscribe:function(a){a.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():f.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&
"none"!=u.get(this.domNode,"display")},placeAt:function(c,b){var f=!c.tagName&&C.byId(c);f&&f.addChild&&(!b||"number"===typeof b)?f.addChild(this,b):(f=f&&"domNode"in f?f.containerNode&&!/after|before|replace/.test(b||"")?f.containerNode:f.domNode:d.byId(c,this.ownerDocument),a.place(this.domNode,f,b),!this._started&&(this.getParent()||{})._started&&this.startup());return this},defer:function(a,c){var b=setTimeout(q.hitch(this,function(){b&&(b=null,this._destroyed||q.hitch(this,a)())}),c||0);return{remove:function(){b&&
(clearTimeout(b),b=null);return null}}}})})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(e,k,h,l){return e("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(b){var e=this._attrPairNames;return e[b]?e[b]:e[b]={s:"_"+b+"Setter",g:"_"+b+"Getter"}},postscript:function(b){b&&this.set(b)},_get:function(b,e){return"function"===typeof this[e.g]?this[e.g]():this[b]},get:function(b){return this._get(b,this._getAttrNames(b))},set:function(b,
e){if("object"===typeof b){for(var d in b)b.hasOwnProperty(d)&&"_watchCallbacks"!=d&&this.set(d,b[d]);return this}d=this._getAttrNames(b);var g=this._get(b,d);d=this[d.s];var c;"function"===typeof d?c=d.apply(this,Array.prototype.slice.call(arguments,1)):this[b]=e;if(this._watchCallbacks){var a=this;l(c,function(){a._watchCallbacks(b,g,e)})}return this},_changeAttrValue:function(b,e){var d=this.get(b);this[b]=e;this._watchCallbacks&&this._watchCallbacks(b,d,e);return this},watch:function(b,e){var d=
this._watchCallbacks;if(!d)var g=this,d=this._watchCallbacks=function(a,c,b,n){var q=function(d){if(d){d=d.slice();for(var n=0,q=d.length;n<q;n++)d[n].call(g,a,c,b)}};q(d["_"+a]);n||q(d["*"])};!e&&"function"===typeof b?(e=b,b="*"):b="_"+b;var c=d[b];"object"!==typeof c&&(c=d[b]=[]);c.push(e);var a={};a.unwatch=a.remove=function(){var a=h.indexOf(c,e);-1<a&&c.splice(a,1)};return a}})})},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(e,k,h){return h("dijit.Destroyable",
null,{destroy:function(e){this._destroyed=!0},own:function(){var h=["destroyRecursive","destroy","remove"];e.forEach(arguments,function(b){function m(){g.remove();e.forEach(c,function(a){a.remove()})}var d,g=k.before(this,"destroy",function(a){b[d](a)}),c=[];b.then?(d="cancel",b.then(m,m)):e.forEach(h,function(a){"function"===typeof b[a]&&(d||(d=a),c.push(k.after(b,a,m,!0)))})},this);return arguments}})})},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(e,
k,h){var l={},b={},m={length:0,add:function(d){if(b[d.id])throw Error("Tried to register widget with id\x3d\x3d"+d.id+" but that id is already registered");b[d.id]=d;this.length++},remove:function(d){b[d]&&(delete b[d],this.length--)},byId:function(d){return"string"==typeof d?b[d]:d},byNode:function(d){return b[d.getAttribute("widgetId")]},toArray:function(){var d=[],g;for(g in b)d.push(b[g]);return d},getUniqueId:function(d){var g;do g=d+"_"+(d in l?++l[d]:l[d]=0);while(b[g]);return"dijit"==h._scopeName?
g:h._scopeName+"_"+g},findWidgets:function(d,g){function c(f){for(f=f.firstChild;f;f=f.nextSibling)if(1==f.nodeType){var d=f.getAttribute("widgetId");d?(d=b[d])&&a.push(d):f!==g&&c(f)}}var a=[];c(d);return a},_destroyAll:function(){h._curFocus=null;h._prevFocus=null;h._activeStack=[];e.forEach(m.findWidgets(k.body()),function(b){b._destroyed||(b.destroyRecursive?b.destroyRecursive():b.destroy&&b.destroy())})},getEnclosingWidget:function(d){for(;d;){var g=1==d.nodeType&&d.getAttribute("widgetId");
if(g)return b[g];d=d.parentNode}return null},_hash:b};return h.registry=m})},"dijit/main":function(){define(["dojo/_base/kernel"],function(e){return e.dijit})},"dijit/_Widget":function(){define("dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/has dojo/_base/kernel dojo/_base/lang dojo/query dojo/ready ./registry ./_WidgetBase ./_OnDijitClickMixin ./_FocusMixin dojo/uacss ./hccss".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p){function n(){}function q(a){return function(c,
b,f,g){return c&&"string"==typeof b&&c[b]==n?c.on(b.substring(2).toLowerCase(),d.hitch(f,g)):a.apply(h,arguments)}}e.around(h,"connect",q);m.connect&&e.around(m,"connect",q);e=l("dijit._Widget",[f,u,p],{onClick:n,onDblClick:n,onKeyDown:n,onKeyPress:n,onKeyUp:n,onMouseDown:n,onMouseMove:n,onMouseOut:n,onMouseOver:n,onMouseLeave:n,onMouseEnter:n,onMouseUp:n,constructor:function(a){this._toConnect={};for(var c in a)this[c]===n&&(this._toConnect[c.replace(/^on/,"").toLowerCase()]=a[c],delete a[c])},postCreate:function(){this.inherited(arguments);
for(var a in this._toConnect)this.on(a,this._toConnect[a]);delete this._toConnect},on:function(a,c){return this[this._onMap(a)]===n?h.connect(this.domNode,a.toLowerCase(),this,c):this.inherited(arguments)},_setFocusedAttr:function(a){this._focused=a;this._set("focused",a)},setAttribute:function(a,c){m.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,c)},attr:function(a,c){return 2<=arguments.length||"object"===typeof a?this.set.apply(this,
arguments):this.get(a)},getDescendants:function(){m.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?g("[widgetId]",this.containerNode).map(a.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});b("dijit-legacy-requires")&&c(0,function(){require(["dijit/_base"])});return e})},"dijit/_OnDijitClickMixin":function(){define("dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/has ./a11yclick".split(" "),
function(e,k,h,l,b,m){e=l("dijit._OnDijitClickMixin",null,{connect:function(b,g,c){return this.inherited(arguments,[b,"ondijitclick"==g?m:g,c])}});e.a11yclick=m;return e})},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(e,k,h,l){function b(b){if((b.keyCode===e.ENTER||b.keyCode===e.SPACE)&&!/input|button|textarea/i.test(b.target.nodeName))for(b=b.target;b;b=b.parentNode)if(b.dojoClick)return!0}var m;h(document,"keydown",function(d){b(d)?(m=d.target,d.preventDefault()):
m=null});h(document,"keyup",function(d){b(d)&&d.target==m&&(m=null,h.emit(d.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:d.ctrlKey,shiftKey:d.shiftKey,metaKey:d.metaKey,altKey:d.altKey,_origType:d.type}))});var d=function(b,c){b.dojoClick=!0;return h(b,"click",c)};d.click=d;d.press=function(b,c){var a=h(b,l.press,function(a){("mousedown"!=a.type||k.isLeft(a))&&c(a)}),f=h(b,"keydown",function(a){(a.keyCode===e.ENTER||a.keyCode===e.SPACE)&&c(a)});return{remove:function(){a.remove();f.remove()}}};
d.release=function(b,c){var a=h(b,l.release,function(a){("mouseup"!=a.type||k.isLeft(a))&&c(a)}),f=h(b,"keyup",function(a){(a.keyCode===e.ENTER||a.keyCode===e.SPACE)&&c(a)});return{remove:function(){a.remove();f.remove()}}};d.move=l.move;return d})},"dijit/_FocusMixin":function(){define(["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(e,k,h,l){l.extend(k,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});
return h("dijit._FocusMixin",null,{_focusManager:e})})},"dijit/focus":function(){define("dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/Evented dojo/_base/lang dojo/on dojo/domReady dojo/sniff dojo/Stateful dojo/_base/window dojo/window ./a11y ./registry ./main".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s){var x,w,y=new (k([u,d],{curNode:null,activeStack:[],constructor:function(){var a=g.hitch(this,function(a){h.isDescendant(this.curNode,a)&&
this.set("curNode",null);h.isDescendant(this.prevNode,a)&&this.set("prevNode",null)});e.before(m,"empty",a);e.before(m,"destroy",a)},registerIframe:function(a){return this.registerWin(a.contentWindow,a)},registerWin:function(a,b){var d=this,g=a.document&&a.document.body;if(g){var n=f("pointer-events")?"pointerdown":f("MSPointer")?"MSPointerDown":f("touch-events")?"mousedown, touchstart":"mousedown",p=c(a.document,n,function(a){if(!a||!(a.target&&null==a.target.parentNode))d._onTouchNode(b||a.target,
"mouse")}),e=c(g,"focusin",function(a){if(a.target.tagName){var c=a.target.tagName.toLowerCase();"#document"==c||"body"==c||(q.isFocusable(a.target)?d._onFocusNode(b||a.target):d._onTouchNode(b||a.target))}}),s=c(g,"focusout",function(a){d._onBlurNode(b||a.target)});return{remove:function(){p.remove();e.remove();s.remove();g=p=e=s=null}}}},_onBlurNode:function(a){a=(new Date).getTime();a<x+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(g.hitch(this,
function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),a<w+100||(this._clearActiveWidgetsTimer=setTimeout(g.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(a,c){w=(new Date).getTime();this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);b.contains(a,"dijitPopup")&&(a=a.firstChild);var f=
[];try{for(;a;){var d=l.get(a,"dijitPopupParent");if(d)a=r.byId(d).domNode;else if(a.tagName&&"body"==a.tagName.toLowerCase()){if(a===p.body())break;a=n.get(a.ownerDocument).frameElement}else{var g=a.getAttribute&&a.getAttribute("widgetId"),q=g&&r.byId(g);q&&!("mouse"==c&&q.get("disabled"))&&f.unshift(g);a=a.parentNode}}}catch(e){}this._setStack(f,c)},_onFocusNode:function(a){a&&9!=a.nodeType&&(x=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),
this._onTouchNode(a),a!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",a)))},_setStack:function(a,c){var b=this.activeStack,f=b.length-1,d=a.length-1;if(a[d]!=b[f]){this.set("activeStack",a);var g;for(g=f;0<=g&&b[g]!=a[g];g--)if(f=r.byId(b[g]))f._hasBeenBlurred=!0,f.set("focused",!1),f._focusManager==this&&f._onBlur(c),this.emit("widget-blur",f,c);for(g++;g<=d;g++)if(f=r.byId(a[g]))f.set("focused",!0),f._focusManager==this&&f._onFocus(c),this.emit("widget-focus",f,c)}},focus:function(a){if(a)try{a.focus()}catch(c){}}}));
a(function(){var a=y.registerWin(n.get(document));f("ie")&&c(window,"unload",function(){a&&(a.remove(),a=null)})});s.focus=function(a){y.focus(a)};for(var A in y)/^_/.test(A)||(s.focus[A]="function"==typeof y[A]?g.hitch(y,A):y[A]);y.watch(function(a,c,b){s.focus[a]=b});return y})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),function(e,k,h,l,b,m,d){k.add("rtl-adjust-position-for-verticalScrollBar",function(c,a){var f=
h.body(a),g=d.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},f,"last"),p=d.create("div",{style:{overflow:"hidden",direction:"ltr"}},g,"last"),n=0!=b.position(p).x;g.removeChild(p);f.removeChild(g);return n});k.add("position-fixed-support",function(c,a){var f=h.body(a),g=d.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},f,"last"),p=d.create("span",{style:{position:"fixed",
left:"0",top:"0"}},g,"last"),n=b.position(p).x!=b.position(g).x;g.removeChild(p);f.removeChild(g);return n});var g={getBox:function(c){c=c||h.doc;var a="BackCompat"==c.compatMode?h.body(c):c.documentElement,f=b.docScroll(c);if(k("touch")){var d=g.get(c);c=d.innerWidth||a.clientWidth;a=d.innerHeight||a.clientHeight}else c=a.clientWidth,a=a.clientHeight;return{l:f.x,t:f.y,w:c,h:a}},get:function(c){if(k("ie")&&g!==document.parentWindow){c.parentWindow.execScript("document._parentWindow \x3d window;",
"Javascript");var a=c._parentWindow;c._parentWindow=null;return a}return c.parentWindow||c.defaultView},scrollIntoView:function(c,a){try{c=l.byId(c);var f=c.ownerDocument||h.doc,d=h.body(f),g=f.documentElement||d.parentNode,n=k("ie")||k("trident"),q=k("webkit");if(!(c==d||c==g))if(!k("mozilla")&&(!n&&!q&&!k("opera")&&!k("trident")&&!k("edge"))&&"scrollIntoView"in c)c.scrollIntoView(!1);else{var e="BackCompat"==f.compatMode,s=Math.min(d.clientWidth||g.clientWidth,g.clientWidth||d.clientWidth),x=Math.min(d.clientHeight||
g.clientHeight,g.clientHeight||d.clientHeight),f=q||e?d:g,w=a||b.position(c),y=c.parentNode,q=function(a){return 6>=n||7==n&&e?!1:k("position-fixed-support")&&"fixed"==m.get(a,"position").toLowerCase()},A=this,B=function(a,c,b){"BODY"==a.tagName||"HTML"==a.tagName?A.get(a.ownerDocument).scrollBy(c,b):(c&&(a.scrollLeft+=c),b&&(a.scrollTop+=b))};if(!q(c))for(;y;){y==d&&(y=f);var C=b.position(y),F=q(y),K="rtl"==m.getComputedStyle(y).direction.toLowerCase();if(y==f){C.w=s;C.h=x;if(f==g&&(n||k("trident"))&&
K)C.x+=f.offsetWidth-C.w;C.x=0;C.y=0}else{var G=b.getPadBorderExtents(y);C.w-=G.w;C.h-=G.h;C.x+=G.l;C.y+=G.t;var I=y.clientWidth,O=C.w-I;0<I&&0<O&&(K&&k("rtl-adjust-position-for-verticalScrollBar")&&(C.x+=O),C.w=I);I=y.clientHeight;O=C.h-I;0<I&&0<O&&(C.h=I)}F&&(0>C.y&&(C.h+=C.y,C.y=0),0>C.x&&(C.w+=C.x,C.x=0),C.y+C.h>x&&(C.h=x-C.y),C.x+C.w>s&&(C.w=s-C.x));var N=w.x-C.x,T=w.y-C.y,P=N+w.w-C.w,Q=T+w.h-C.h,L,J;if(0<P*N&&(y.scrollLeft||y==f||y.scrollWidth>y.offsetHeight)){L=Math[0>N?"max":"min"](N,P);if(K&&
(8==n&&!e||5<=k("trident")))L=-L;J=y.scrollLeft;B(y,L,0);L=y.scrollLeft-J;w.x-=L}if(0<Q*T&&(y.scrollTop||y==f||y.scrollHeight>y.offsetHeight))L=Math.ceil(Math[0>T?"max":"min"](T,Q)),J=y.scrollTop,B(y,0,L),L=y.scrollTop-J,w.y-=L;y=y!=f&&!F&&y.parentNode}}}catch(H){console.error("scrollIntoView: "+H),c.scrollIntoView(!1)}}};e.setObject("dojo.window",g);return g})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),function(e,
k,h,l,b,m,d){var g={_isElementShown:function(c){var a=l.get(c);return"hidden"!=a.visibility&&"collapsed"!=a.visibility&&"none"!=a.display&&"hidden"!=h.get(c,"type")},hasDefaultTabStop:function(c){switch(c.nodeName.toLowerCase()){case "a":return h.has(c,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var a;try{var b=c.contentDocument;if("designMode"in b&&"on"==b.designMode)return!0;a=b.body}catch(d){try{a=c.contentWindow.document.body}catch(g){return!1}}return a&&
("true"==a.contentEditable||a.firstChild&&"true"==a.firstChild.contentEditable);default:return"true"==c.contentEditable}},effectiveTabIndex:function(c){return h.get(c,"disabled")?void 0:h.has(c,"tabIndex")?+h.get(c,"tabIndex"):g.hasDefaultTabStop(c)?0:void 0},isTabNavigable:function(c){return 0<=g.effectiveTabIndex(c)},isFocusable:function(c){return-1<=g.effectiveTabIndex(c)},_getTabNavigable:function(c){function a(a){return a&&"input"==a.tagName.toLowerCase()&&a.type&&"radio"==a.type.toLowerCase()&&
a.name&&a.name.toLowerCase()}var b,d,p,n,q,e,s={},l=g._isElementShown,k=g.effectiveTabIndex,y=function(c){for(c=c.firstChild;c;c=c.nextSibling)if(!(1!=c.nodeType||9>=m("ie")&&"HTML"!==c.scopeName||!l(c))){var g=k(c);if(0<=g){if(0==g)b||(b=c),d=c;else if(0<g){if(!p||g<n)n=g,p=c;if(!q||g>=e)e=g,q=c}g=a(c);h.get(c,"checked")&&g&&(s[g]=c)}"SELECT"!=c.nodeName.toUpperCase()&&y(c)}};l(c)&&y(c);return{first:s[a(b)]||b,last:s[a(d)]||d,lowest:s[a(p)]||p,highest:s[a(q)]||q}},getFirstInTabbingOrder:function(c,
a){var b=g._getTabNavigable(k.byId(c,a));return b.lowest?b.lowest:b.first},getLastInTabbingOrder:function(c,a){var b=g._getTabNavigable(k.byId(c,a));return b.last?b.last:b.highest}};b.mixin(d,g);return g})},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(e,k,h,l,b){var m=b.doc.documentElement;b=l("ie");var d=l("trident"),g=l("opera"),c=Math.floor,a=l("ff"),f=e.boxModel.replace(/-/,""),g={dj_quirks:l("quirks"),dj_opera:g,dj_khtml:l("khtml"),
dj_webkit:l("webkit"),dj_safari:l("safari"),dj_chrome:l("chrome"),dj_edge:l("edge"),dj_gecko:l("mozilla"),dj_ios:l("ios"),dj_android:l("android")};b&&(g.dj_ie=!0,g["dj_ie"+c(b)]=!0,g.dj_iequirks=l("quirks"));d&&(g.dj_trident=!0,g["dj_trident"+c(d)]=!0);a&&(g["dj_ff"+c(a)]=!0);g["dj_"+f]=!0;var u="",p;for(p in g)g[p]&&(u+=p+" ");m.className=k.trim(m.className+" "+u);h(function(){if(!e.isBodyLtr()){var a="dj_rtl dijitRtl "+u.replace(/ /g,"-rtl ");m.className=k.trim(m.className+" "+a+"dj_rtl dijitRtl "+
u.replace(/ /g,"-rtl "))}});return l})},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(e,k,h,l){h(function(){k("highcontrast")&&e.add(l.body(),"dijit_a11y")});return k})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),function(e,k,h,l,b,m,d){b.add("highcontrast",function(){var g=d.doc.createElement("div");try{g.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+
(k.blankGif||e.toUrl("./resources/blank.gif"))+'");';d.body().appendChild(g);var c=l.getComputedStyle(g),a=c.backgroundImage;return c.borderTopColor==c.borderRightColor||a&&("none"==a||"url(invalid-url:)"==a)}catch(f){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+f.toString()),!1}finally{8>=b("ie")?g.outerHTML="":d.body().removeChild(g)}});m(function(){b("highcontrast")&&h.add(d.body(),"dj_a11y")});return b})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "),
function(e,k,h,l,b,m,d,g){var c=k("dijit._TemplatedMixin",g,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(a){var c=this.declaredClass,b=this;return d.substitute(a,this,function(a,d){"!"==d.charAt(0)&&(a=l.getObject(d.substr(1),!1,b));if("undefined"==typeof a)throw Error(c+" template:"+d);return null==a?"":"!"==d.charAt(0)?a:this._escapeValue(""+a)},this)},_escapeValue:function(a){return a.replace(/["'<>&]/g,function(a){return{"\x26":"\x26amp;",
"\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;"}[a]})},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=e(this.templatePath,{sanitize:!0}));var a=c.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument),b;if(l.isString(a)){if(b=h.toDom(this._stringRepl(a),this.ownerDocument),1!=b.nodeType)throw Error("Invalid template: "+a);}else b=a.cloneNode(!0);this.domNode=b}this.inherited(arguments);this._rendered||this._fillContent(this.srcNodeRef);
this._rendered=!0},_fillContent:function(a){var c=this.containerNode;if(a&&c)for(;a.hasChildNodes();)c.appendChild(a.firstChild)}});c._templateCache={};c.getCachedTemplate=function(a,b,g){var p=c._templateCache,n=a,q=p[n];if(q){try{if(!q.ownerDocument||q.ownerDocument==(g||document))return q}catch(e){}h.destroy(q)}a=d.trim(a);if(b||a.match(/\$\{([^\}]+)\}/g))return p[n]=a;b=h.toDom(a,g);if(1!=b.nodeType)throw Error("Invalid template: "+a);return p[n]=b};m("ie")&&b(window,"unload",function(){var a=
c._templateCache,b;for(b in a){var d=a[b];"object"==typeof d&&h.destroy(d);delete a[b]}});return c})},"dojo/cache":function(){define(["./_base/kernel","./text"],function(e){return e.cache})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(e,k,h,l){var b;b=function(a,c,b){l(a,{sync:!!c,headers:{"X-Requested-With":null}}).then(b)};var m={},d=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
c&&(a=c[1])}else a="";return a},g={},c={};e.cache=function(a,c,g){var p;"string"==typeof a?/\//.test(a)?(p=a,g=c):p=k.toUrl(a.replace(/\./g,"/")+(c?"/"+c:"")):(p=a+"",g=c);a=void 0!=g&&"string"!=typeof g?g.value:g;g=g&&g.sanitize;if("string"==typeof a)return m[p]=a,g?d(a):a;if(null===a)return delete m[p],null;p in m||b(p,!0,function(a){m[p]=a});return g?d(m[p]):m[p]};return{dynamic:!0,normalize:function(a,c){var b=a.split("!"),d=b[0];return(/^\./.test(d)?c(d):d)+(b[1]?"!"+b[1]:"")},load:function(a,
f,e){a=a.split("!");var p=1<a.length,n=a[0],q=f.toUrl(a[0]);a="url:"+q;var r=g,s=function(a){e(p?d(a):a)};n in m?r=m[n]:f.cache&&a in f.cache?r=f.cache[a]:q in m&&(r=m[q]);if(r===g)if(c[q])c[q].push(s);else{var h=c[q]=[s];b(q,!f.async,function(a){m[n]=m[q]=a;for(var b=0;b<h.length;)h[b++](a);delete c[q]})}else s(r)}}})},"dojo/request":function(){define(["./request/default!"],function(e){return e})},"dojo/request/default":function(){define(["exports","require","../has"],function(e,k,h){var l=h("config-requestProvider");
l||(l="./xhr");e.getPlatformDefaultId=function(){return"./xhr"};e.load=function(b,e,d,g){k(["platform"==b?"./xhr":l],function(c){d(c)})}})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(e,k){var h=/[&<>'"\/]/g,l={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},b={};k.setObject("dojo.string",b);b.escape=function(b){return!b?"":b.replace(h,function(b){return l[b]})};b.rep=function(b,d){if(0>=d||!b)return"";for(var g=[];;){d&
1&&g.push(b);if(!(d>>=1))break;b+=b}return g.join("")};b.pad=function(e,d,g,c){g||(g="0");e=String(e);d=b.rep(g,Math.ceil((d-e.length)/g.length));return c?e+d:d+e};b.substitute=function(b,d,g,c){c=c||e.global;g=g?k.hitch(c,g):function(a){return a};return b.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,function(a,b,e){if(""==b)return"$";a=k.getObject(b,!1,d);e&&(a=k.getObject(e,!1,c).call(c,a,b));return g(a,b).toString()})};b.trim=String.prototype.trim?k.trim:function(b){b=b.replace(/^\s+/,"");
for(var d=b.length-1;0<=d;d--)if(/\S/.test(b.charAt(d))){b=b.substring(0,d+1);break}return b};return b})},"dijit/_AttachMixin":function(){define("require dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/mouse dojo/on dojo/touch ./_WidgetBase".split(" "),function(e,k,h,l,b,m,d,g,c){var a=b.delegate(g,{mouseenter:m.enter,mouseleave:m.leave,keypress:h._keypress}),f;h=l("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[];this._attachEvents=[]},buildRendering:function(){this.inherited(arguments);
this._attachTemplateNodes(this.domNode);this._beforeFillContent()},_beforeFillContent:function(){},_attachTemplateNodes:function(a){for(var c=a;;)if(1==c.nodeType&&(this._processTemplateNode(c,function(a,c){return a.getAttribute(c)},this._attach)||this.searchContainerNode)&&c.firstChild)c=c.firstChild;else{if(c==a)break;for(;!c.nextSibling;)if(c=c.parentNode,c==a)return;c=c.nextSibling}},_processTemplateNode:function(a,c,f){var d=!0,g=this.attachScope||this,e=c(a,"dojoAttachPoint")||c(a,"data-dojo-attach-point");
if(e)for(var m=e.split(/\s*,\s*/);e=m.shift();)b.isArray(g[e])?g[e].push(a):g[e]=a,d="containerNode"!=e,this._attachPoints.push(e);if(c=c(a,"dojoAttachEvent")||c(a,"data-dojo-attach-event")){e=c.split(/\s*,\s*/);for(m=b.trim;c=e.shift();)if(c){var h=null;-1!=c.indexOf(":")?(h=c.split(":"),c=m(h[0]),h=m(h[1])):c=m(c);h||(h=c);this._attachEvents.push(f(a,c,b.hitch(g,h)))}}return d},_attach:function(c,b,g){b=b.replace(/^on/,"").toLowerCase();b="dijitclick"==b?f||(f=e("./a11yclick")):a[b]||b;return d(c,
b,g)},_detachTemplateNodes:function(){var a=this.attachScope||this;k.forEach(this._attachPoints,function(c){delete a[c]});this._attachPoints=[];k.forEach(this._attachEvents,function(a){a.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});b.extend(c,{dojoAttachEvent:"",dojoAttachPoint:""});return h})},"dijit/layout/LayoutContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-style dojo/_base/lang ../_WidgetBase ./_LayoutWidget ./utils".split(" "),
function(e,k,h,l,b,m,d,g){k=k("dijit.layout.LayoutContainer",d,{design:"headline",baseClass:"dijitLayoutContainer",startup:function(){this._started||(e.forEach(this.getChildren(),this._setupChild,this),this.inherited(arguments))},_setupChild:function(c){this.inherited(arguments);c.region&&h.add(c.domNode,this.baseClass+"Pane")},_getOrderedChildren:function(){var c=e.map(this.getChildren(),function(a,c){return{pane:a,weight:["center"==a.region?Infinity:0,a.layoutPriority,("sidebar"==this.design?1:
-1)*(/top|bottom/.test(a.region)?1:-1),c]}},this);c.sort(function(a,c){for(var b=a.weight,d=c.weight,g=0;g<b.length;g++)if(b[g]!=d[g])return b[g]-d[g];return 0});return e.map(c,function(a){return a.pane})},layout:function(){g.layoutChildren(this.domNode,this._contentBox,this._getOrderedChildren())},addChild:function(c,a){this.inherited(arguments);this._started&&this.layout()},removeChild:function(c){this.inherited(arguments);this._started&&this.layout();h.remove(c.domNode,this.baseClass+"Pane");l.set(c.domNode,
{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});l.set(c.domNode,/top|bottom/.test(c.region)?"width":"height","auto")}});k.ChildWidgetProperties={region:"",layoutAlign:"",layoutPriority:0};b.extend(m,k.ChildWidgetProperties);return k})},"dijit/layout/_LayoutWidget":function(){define("dojo/_base/lang ../_Widget ../_Container ../_Contained ../Viewport dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style".split(" "),function(e,k,h,l,b,m,d,g,c){return m("dijit.layout._LayoutWidget",
[k,h,l],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,_setTitleAttr:null,buildRendering:function(){this.inherited(arguments);d.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();if(!a||!a.isLayoutContainer)this.resize(),this.own(b.on("resize",e.hitch(this,"resize")))}},resize:function(a,b){var d=this.domNode;a&&g.setMarginBox(d,a);var p=b||{};e.mixin(p,a||{});if(!("h"in p)||!("w"in p))p=e.mixin(g.getMarginBox(d),
p);var n=c.getComputedStyle(d),q=g.getMarginExtents(d,n),r=g.getBorderExtents(d,n),p=this._borderBox={w:p.w-(q.w+r.w),h:p.h-(q.h+r.h)},q=g.getPadExtents(d,n);this._contentBox={l:c.toPixelValue(d,n.paddingLeft),t:c.toPixelValue(d,n.paddingTop),w:p.w-q.w,h:p.h-q.h};this.layout()},layout:function(){},_setupChild:function(a){d.add(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,c){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){d.remove(a.domNode,
this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}})})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(e,k,h,l){return k("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(b,e){var d=this.containerNode;if(0<e){for(d=d.firstChild;0<e;)1==d.nodeType&&e--,d=d.nextSibling;
d?e="before":(d=this.containerNode,e="last")}h.place(b.domNode,d,e);this._started&&!b._started&&b.startup()},removeChild:function(b){"number"==typeof b&&(b=this.getChildren()[b]);b&&(b=b.domNode)&&b.parentNode&&b.parentNode.removeChild(b)},hasChildren:function(){return 0<this.getChildren().length},_getSiblingOfChild:function(b,m){var d=this.getChildren(),g=e.indexOf(d,b);return d[g+m]},getIndexOfChild:function(b){return e.indexOf(this.getChildren(),b)}})})},"dijit/_Contained":function(){define(["dojo/_base/declare",
"./registry"],function(e,k){return e("dijit._Contained",null,{_getSibling:function(e){var l=this.getParent();return l&&l._getSiblingOfChild&&l._getSiblingOfChild(this,"previous"==e?-1:1)||null},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var e=this.getParent();return!e||!e.getIndexOfChild?-1:e.getIndexOfChild(this)}})})},"dijit/Viewport":function(){define(["dojo/Evented","dojo/on","dojo/domReady",
"dojo/sniff","dojo/window"],function(e,k,h,l,b){var m=new e,d;h(function(){var g=b.getBox();m._rlh=k(window,"resize",function(){var a=b.getBox();g.h==a.h&&g.w==a.w||(g=a,m.emit("resize"))});if(8==l("ie")){var c=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=c&&(c=screen.deviceXDPI,m.emit("resize"))},500)}l("ios")&&(k(document,"focusin",function(a){d=a.target}),k(document,"focusout",function(a){d=null}))});m.getEffectiveBox=function(g){g=b.getBox(g);var c=d&&d.tagName&&d.tagName.toLowerCase();
if(l("ios")&&d&&!d.readOnly&&("textarea"==c||"input"==c&&/^(color|email|number|password|search|tel|text|url)$/.test(d.type)))g.h*=0==orientation||180==orientation?0.66:0.4,c=d.getBoundingClientRect(),g.h=Math.max(g.h,c.top+c.height);return g};return m})},"dijit/layout/utils":function(){define(["dojo/_base/array","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang"],function(e,k,h,l,b){function m(d,c){var a=d.resize?d.resize(c):h.setMarginBox(d.domNode,c);a?b.mixin(d,a):(b.mixin(d,
h.getMarginBox(d.domNode)),b.mixin(d,c))}var d={marginBox2contentBox:function(b,c){var a=l.getComputedStyle(b),f=h.getMarginExtents(b,a),d=h.getPadBorderExtents(b,a);return{l:l.toPixelValue(b,a.paddingLeft),t:l.toPixelValue(b,a.paddingTop),w:c.w-(f.w+d.w),h:c.h-(f.h+d.h)}},layoutChildren:function(d,c,a,f,h){c=b.mixin({},c);k.add(d,"dijitLayoutContainer");a=e.filter(a,function(a){return"center"!=a.region&&"client"!=a.layoutAlign}).concat(e.filter(a,function(a){return"center"==a.region||"client"==a.layoutAlign}));
e.forEach(a,function(a){var b=a.domNode,d=a.region||a.layoutAlign;if(!d)throw Error("No region setting for "+a.id);var g=b.style;g.left=c.l+"px";g.top=c.t+"px";g.position="absolute";k.add(b,"dijitAlign"+(d.substring(0,1).toUpperCase()+d.substring(1)));b={};f&&f==a.id&&(b["top"==a.region||"bottom"==a.region?"h":"w"]=h);"leading"==d&&(d=a.isLeftToRight()?"left":"right");"trailing"==d&&(d=a.isLeftToRight()?"right":"left");"top"==d||"bottom"==d?(b.w=c.w,m(a,b),c.h-=a.h,"top"==d?c.t+=a.h:g.top=c.t+c.h+
"px"):"left"==d||"right"==d?(b.h=c.h,m(a,b),c.w-=a.w,"left"==d?c.l+=a.w:g.left=c.l+c.w+"px"):("client"==d||"center"==d)&&m(a,c)})}};b.setObject("dijit.layout.utils",d);return d})},"webview/data/AppData":function(){define(["dojo/_base/declare","dojo/store/Memory","../utils/pathParts","./DiagramStore","./ElementStore"],function(e,k,h,l,b){return e(null,{constructor:function(e){var d;this.homeHid=e.homeHid;this.initialElement=e.initialElement;this.display=e.display;this.iconsUrl=e.iconsUrl;this.optViewsStore=
new k({data:e.optViews});this.diagramStore=d=new l({appData:this,sectionStore:new k({idProperty:"hid",data:e.sections})});this.elementStore=new b({diagramStore:d});d.sectionStore.query({parent:0}).forEach(function(b){d.load(b)});e=d.getSection(this.homeHid);d.load(e)},getDiagram:function(b){var d,g=this.diagramStore;this.isDiagram(b)?d=b:"number"===typeof b?d=g.get(b):"string"===typeof b&&0<b.length&&(d=0<b.indexOf("/")?g.query({fullname:b.replace(/[\n\r]/g," ")},{count:1})[0]:g.query({sid:b},{count:1})[0]);
return d},getElement:function(b){var d,g;d=this.elementStore;var c=b&&h(b);this.isElement(b)?g=b:"string"===typeof b&&0<b.length&&((d=d.getParentDiagram(b))?(d.loadElements(),0<b.indexOf("/")?(b=c.name.replace(/[\n\r]/g," ").replace(/\/\//g,"/"),(g=d.elementStore.query({name:b},{count:1})[0])||(g=d.elementStore.query({label:b},{count:1})[0])):g=d.getElement(b)):(d=this.getDiagram(parseInt(c.parent)))&&(g=d.getElement(c.name)));return g},isDiagram:function(b){return"undefined"!==typeof b&&null!==b&&
"number"===typeof b.hid},isElement:function(b){return"undefined"!==typeof b&&null!==b&&void 0===b.hid&&b.backing}})})},"dojo/store/Memory":function(){define(["../_base/declare","./util/QueryResults","./util/SimpleQueryEngine"],function(e,k,h){return e("dojo.store.Memory",null,{constructor:function(e){for(var b in e)this[b]=e[b];this.setData(this.data||[])},data:null,idProperty:"id",index:null,queryEngine:h,get:function(e){return this.data[this.index[e]]},getIdentity:function(e){return e[this.idProperty]},
put:function(e,b){var h=this.data,d=this.index,g=this.idProperty,g=e[g]=b&&"id"in b?b.id:g in e?e[g]:Math.random();if(g in d){if(b&&!1===b.overwrite)throw Error("Object already exists");h[d[g]]=e}else d[g]=h.push(e)-1;return g},add:function(e,b){(b=b||{}).overwrite=!1;return this.put(e,b)},remove:function(e){var b=this.index,h=this.data;if(e in b)return h.splice(b[e],1),this.setData(h),!0},query:function(e,b){return k(this.queryEngine(e,b)(this.data))},setData:function(e){e.items?(this.idProperty=
e.identifier||this.idProperty,e=this.data=e.items):this.data=e;this.index={};for(var b=0,h=e.length;b<h;b++)this.index[e[b][this.idProperty]]=b}})})},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../when"],function(e,k,h){var l=function(b){function m(g){b[g]=function(){var c=arguments,a=h(b,function(a){Array.prototype.unshift.call(c,a);return l(e[g].apply(e,c))});if("forEach"!==g||d)return a}}if(!b)return b;var d=!!b.then;d&&(b=k.delegate(b));m("forEach");
m("filter");m("map");null==b.total&&(b.total=h(b,function(b){return b.length}));return b};k.setObject("dojo.store.util.QueryResults",l);return l})},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(e){return function(k,h){function l(b){b=e.filter(b,k);var d=h&&h.sort;d&&b.sort("function"==typeof d?d:function(c,a){for(var b,g=0;b=d[g];g++){var e=c[b.attribute],n=a[b.attribute],e=null!=e?e.valueOf():e,n=null!=n?n.valueOf():n;if(e!=n)return!!b.descending==(null==e||
e>n)?-1:1}return 0});if(h&&(h.start||h.count)){var g=b.length;b=b.slice(h.start||0,(h.start||0)+(h.count||Infinity));b.total=g}return b}switch(typeof k){default:throw Error("Can not query with a "+typeof k);case "object":case "undefined":var b=k;k=function(e){for(var d in b){var g=b[d];if(g&&g.test){if(!g.test(e[d],e))return!1}else if(g!=e[d])return!1}return!0};break;case "string":if(!this[k])throw Error("No filter function "+k+" was found in store");k=this[k];case "function":}l.matches=k;return l}})},
"webview/utils/pathParts":function(){define([],function(){return function(e){var k,h,l;for(l=e.length-1;0<l&&!k;)"/"===e.charAt(l)?"/"===e.charAt(l-1)?l-=2:(k=e.substring(0,l),h=e.substring(l+1)):l-=1;return{parent:k,name:h||e}}})},"webview/data/DiagramStore":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/store/Memory ../utils/request ../utils/pathParts".split(" "),function(e,k,h,l,b,m){var d=e(null,{constructor:function(b,c){k.mixin(this,c);this.appData=b;this.backing=
b.diagramStore.backingStore.get(this.sid);this.elementStore=new l({idProperty:"sid"});this.elementsLoaded=!1},getParent:function(){var b,c=this.parent;"root"!==c&&(b=this.appData.diagramStore.get(c));return b},getChildren:function(){var b=this.appData.diagramStore,c=this.children,a=[],f,d=c.length;for(f=0;f<d;f+=1)a.push(b.get(c[f]));return a},mayHaveChildren:function(){return 0<this.children.length},getElement:function(b){this.loadElements();return this.elementStore.get(b)},getElements:function(){this.loadElements();
return this.elementStore.query({})},getElementSids:function(){var b=this.sid.split(":")[0],c=[],a=this.elements||[],f=a.length,d;for(d=0;d<f;d+=1)c.push(b+a[d]);return c},loadElements:function(b){this.elementsLoaded||this.appData.elementStore.load(this,b)}});return e(l,{idProperty:"hid",constructor:function(){this.backingStore=new l({idProperty:"sid"});this._loadedBackings=[];this._loadedSections=[];this._loadedSections.allLoaded=!1},get:function(b){var c=l.prototype.get.call(this,b),a;if(!c&&(a=
this.getSection(b)))this.load(a),c=l.prototype.get.call(this,b);return c},getParent:function(b){return b.getParent()},mayHaveChildren:function(b){return b.mayHaveChildren()},getChildren:function(b){return b.getChildren()},query:function(b,c){var a=l.prototype.query.call(this,b,c),f;0===a.length&&(b.sid?f=this.getSection(b.sid):b.hid?f=this.getSection(b.hid):b.fullname&&(f=this.getSection(b.fullname)),f&&this.load(f),a=l.prototype.query.call(this,b,c));return a},load:function(g){var c=this,a=this._loadedSections,
f=this._loadedBackings,e=this.sectionStore,p=this.backingStore;!a.allLoaded&&-1===a.indexOf(g.hid)&&(a.push(g.hid),a.allLoaded=a.length===e.data.length,-1===f.indexOf(g.sid)&&b.get(g.backingUrl,{handleAs:"json",sync:!0}).then(function(a){var c,b=a.length;for(c=0;c<b;c+=1)p.put(a[c]);f.push(g.sid)}),b.get(g.hierarchyUrl,{handleAs:"json",sync:!0}).then(function(a){var b,f=a.length;for(b=0;b<f;b+=1)c.put(new d(c.appData,a[b]));(a=e.get(g.parent))&&c.load(a)}))},isLoaded:function(b){return 0<=this._loadedSections.indexOf(b.hid)},
getTargetDiagram:function(b){return this.query({parent:b.diagram.hid,esid:b.sid})[0]},getSection:function(b){var c,a=this.sectionStore,f;if("number"===typeof b)(c=a.query({hid:b},{count:1})[0])||h.some(a.query(),function(a){return 0<=h.indexOf(a.descendants,b)?(c=a,!0):!1});else if(0<=b.indexOf("/"))for(f=b.replace(/[\n\r]/g," ");!c&&f;)c=a.query({fullname:f},{count:1})[0],c||(f=m(f).parent);else f=b.split(":")[0],c=a.query({sid:f},{count:1})[0];return c}})})},"webview/utils/request":function(){define(["dojo/request",
"dojo/has"],function(e,k){k("mozilla")&&"file:"===window.location.protocol&&(e._mimeType="",e.__create=e._create,e._create=function(){var h=e.__create();if(e._mimeType)try{h.overrideMimeType(e._mimeType)}catch(l){}return h},e._get=e.get,e.get=function(h,l,b){e._mimeType="json"===l.handleAs?"application/json":"javascript"===l.handleAs?"application/javascript":"";return e._get(h,l,b)});return e})},"webview/data/ElementStore":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/store/Memory",
"../utils/request","../utils/pathParts"],function(e,k,h,l,b){var m=e(null,{constructor:function(b){k.mixin(this,b);this.diagram.elementStore.put(this)}});return e(h,{idProperty:"eid",constructor:function(){this.backingStore=new h({idProperty:"sid"});this._loadedBackings=[]},load:function(b,g){function c(c){var g,n,e=c.length;for(n=0;n<e;n+=1)g=c[n],a.put(g);f.push(b.sid)}var a=this.backingStore,f=this._loadedBackings,e,p,n,q,r;if(!b.elementsLoaded){-1===f.indexOf(b.sid)&&(g?c(g):b.backingUrl&&l.get(b.backingUrl,
{handleAs:"json",sync:!0}).then(c));n=b.getElementSids();r=n.length;for(q=0;q<r;q+=1)p=n[q],e=a.get(p),this.put(new m({eid:b.hid+"/"+p,sid:p,name:e.name,label:e.label,diagram:b,backing:e}));b.elementsLoaded=!0}},getParentDiagram:function(b){return 0<b.indexOf("/")?this._getParentDiagramFromFullName(b):this._getParentDiagramFromSid(b)},_getParentDiagramFromFullName:function(d){return this.diagramStore.query({fullname:b(d.replace(/[\n\r]/g," ")).parent},{count:1})[0]},_getParentDiagramFromSid:function(b){var g,
c,a=this.diagramStore,f,e,p;f=b.indexOf(":");c=b.substring(0,f);f=b.substring(f);b=a.sectionStore.query({sid:c},{count:1})[0];if((c=a.query({sid:c},{count:1})[0])&&c.elements&&0<=c.elements.indexOf(f))g=c;else{p=b.descendants.length;for(e=0;e<p;e+=1)if(c=a.query({hid:b.descendants[e]},{count:1})[0],0<=c.elements.indexOf(f)){g=c;break}}return g}})})},"webview/search/Finder":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/promise/all dojo/store/Observable dojo/store/Memory dojo/Deferred dojo/Stateful dojo/on dijit/Destroyable ../utils/request ../widgets/ModelGraphicsHighlighter dojo/i18n!../resources/slreportgen_webview/nls/modelviewer".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p){return e([a],{constructor:function(a){e.safeMixin(this,a);this.postMixInProperties()},postMixInProperties:function(){this.stringOptions=new g({matchCases:!1,matchWholeWords:!1,regularExpression:!1});this.searchFields=new g({name:!0,blockType:!0,maskType:!0,propertyName:!1,propertyValue:!1});this.results=new b(new m);this.own(this.modelGraphicsHighlighter=new u({app:this.app,stylingLayerOptions:{id:"finder",zOrder:95,show:!0,displayMode:u.COMBINE_DISPLAY}}))},startup:function(){this.modelGraphicsHighlighter.startup();
this.own(c(this.app.modelInspector,"updated",k.hitch(this,"_highlightModelInspector")))},search:function(a){function c(a){var b=a.inspector;a=[];var f;if(b){a=b.params||[];f=a.length;for(b=0;b<f;b+=1)if(C(a[b]))return a[b]}return!1}function b(a){a=a.inspector;var c=[],f,d;if(a){c=a.values||[];d=c.length;for(f=0;f<d;f+=1)if(C(String(c[f])))return a.params[f]}return!1}function g(a,f){var d,n=f.length,e;for(d=0;d<n;d+=1)if(e=f[d],F.name&&C(e.name)||F.blockType&&C(e.finder.blocktype)||F.maskType&&C(e.finder.masktype)||
F.propertyName&&c(e)||F.propertyValue&&b(e))a.elementsLoaded||a.loadElements(f),e=a.getElement(e.sid),K._postElementResult(e)}function e(a){var f=a.backing;(F.name&&C(f.name)||F.blockType&&C(f.finder.blocktype)||F.maskType&&C(f.finder.masktype)||F.propertyName&&c(f)||F.propertyValue&&b(f))&&K._postDiagramResult(a)}function h(a){var c,b,n,q;if(a&&a.backingUrl){a.sameAsElement||e(a);if(m.selectedDiagram===a&&(b=a.getParent()))(n=b.getElement(a.sid))&&g(b,[n.backing]);c=a.backingUrl;b=a.getChildren();
n=b.length;if(c){q=new d;K._inflight.promises.push(q);f.get(c,{handleAs:"json"}).then(function(c){g(a,c);q.resolve()});for(c=0;c<n;c+=1)h(b[c])}}}var m=this.app.modelViewer,u=m.searchResultsPane,B=new d,C;a=k.trim(a);var F=this.searchFields,K=this;this._inflight&&this._inflight.all&&this._inflight.all.isFulfilled();this._inflight={all:null,promises:[]};0<a.length&&(this.clear(),C=this._buildTestKeywordFcn(a),m.set("showSearchResultsPane",!0),u.set("title",p.searchResults+" "+m.selectedDiagram.fullname),
this._saveSearchSettings(a,C),h(m.selectedDiagram));this._inflight.all=l(this._inflight.promises).then(function(){u.grid.refresh();B.resolve()});return B},clear:function(){var a=this.app.modelInspector,c=this.results;this.hasResults=!1;h.forEach(c.query(),function(a){c.remove(a.id)});this.modelGraphicsHighlighter.unhighlightAll();a.refresh()},close:function(){var a=this.app.modelViewer;a.set("showSearchResultsPane",!1);a.explorerBar.inlineSearch.textBox.set("value","");this.clear()},_highlightModelInspector:function(a){function c(a){a&&
(a.innerHTML=a.innerHTML.replace(e,"\x3cspan style\x3d'background-color:#faeb33'\x3e$1\x3c/span\x3e"))}var b=this.app.modelInspector,f=a.backing.inspector,d=this._savedSearchSettings,g,e,p,h,m,l,k,u;g=this.results;if(this.hasResults&&(d&&g.get(a.eid))&&(e=d.regExp,g=d.searchFields,a=d.filterParamValues,g.propertyName||g.propertyValue||0<a.length)){d=d.testFcn;l=f.params?f.params.length:0;u=a.length;for(m=0;m<l;m+=1){p=f.params[m];h=String(f.values[m]);g.propertyName&&d(p)&&c(b.getParamNameNode(p));
g.propertyValue&&d(h)&&c(b.getParamValueNode(p));for(k=0;k<u;k+=1)a[k].param===p&&a[k].value===h&&(b.getParamNameNode(p).innerHTML="\x3cspan style\x3d'background-color:#faeb33'\x3e"+p+"\x3c/span\x3e",b.getParamValueNode(p).innerHTML="\x3cspan style\x3d'background-color:#faeb33'\x3e"+h+"\x3c/span\x3e")}}},_highlightStyle:"outer-stroke: #faeb33; outer-stroke-width: 4; outer-stroke-linejoin: miter; outer-stroke-dasharray: none; outer-stroke-opacity: 0.80;",_postDiagramResult:function(a){var c=this.results,
b=a.getParent();this.hasResults=!0;c.add({id:a.hid,obj:a,name:a.label,parent:b&&b.fullname||""})},_postElementResult:function(a){var c=this.app,b=this.results;this.hasResults=!0;b.add({id:a.eid,obj:a,name:a.backing.name,parent:a.diagram.fullname});this.modelGraphicsHighlighter.highlight(a,this._highlightStyle);c.getSelectedElement()===a&&(this._highlightModelInspector(a),c.modelViewer.searchResultsPane.grid.select(a.eid))},_saveSearchSettings:function(a,c){this._savedSearchSettings={testFcn:c,keyword:a,
regExp:this._buildRegExp(a),searchFields:k.clone(this.searchFields),stringOptions:k.clone(this.stringOptions),filterParamValues:[]}},_buildTestKeywordFcn:function(a){function c(a){var b=d._buildRegExp(a);return function(a){return a&&b.test(a.replace(/[\n\r]/g," "))}}var b=this.stringOptions,f=b.matchCases,d=this;return b.regularExpression||b.matchWholeWords?c(a):f?function(c){return c&&0<=c.replace(/[\n\r]/g," ").indexOf(a)}:function(c){return c&&0<=c.replace(/[\n\r]/g," ").toLowerCase().indexOf(a.toLowerCase())}},
_escapeRegExp:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,_buildRegExp:function(a){var c=this.stringOptions;a=a||"";a=c.regularExpression?"("+a+")":c.matchWholeWords?"\\b("+a.replace(this._escapeRegExp,"\\$\x26")+")\\b":"("+a.replace(this._escapeRegExp,"\\$\x26")+")";return RegExp(a,c.matchCases?"":"i")}})})},"dojo/promise/all":function(){define(["../_base/array","../Deferred","../when"],function(e,k,h){var l=e.some;return function(b){var e,d;b instanceof Array?d=b:b&&"object"===typeof b&&(e=b);var g,c=
[];if(e){d=[];for(var a in e)Object.hasOwnProperty.call(e,a)&&(c.push(a),d.push(e[a]));g={}}else d&&(g=[]);if(!d||!d.length)return(new k).resolve(g);var f=new k;f.promise.always(function(){g=c=null});var u=d.length;l(d,function(a,b){e||c.push(b);h(a,function(a){f.isFulfilled()||(g[c[b]]=a,0===--u&&f.resolve(g))},f.reject);return f.isFulfilled()});return f.promise}})},"dojo/store/Observable":function(){define(["../_base/kernel","../_base/lang","../when","../_base/array"],function(e,k,h,l){e=function(b){function e(c,
d){var g=b[c];g&&(b[c]=function(e){var q;"put"===c&&(q=b.getIdentity(e));if(a)return g.apply(this,arguments);a=!0;try{var r=g.apply(this,arguments);h(r,function(a){d("object"==typeof a&&a||e,q)});return r}finally{a=!1}})}var d=[],g=0;b=k.delegate(b);b.notify=function(a,c){g++;for(var b=d.slice(),e=0,q=b.length;e<q;e++)b[e](a,c)};var c=b.query;b.query=function(a,e){e=e||{};var p=c.apply(this,arguments);if(p&&p.forEach){var n=k.mixin({},e);delete n.start;delete n.count;var q=b.queryEngine&&b.queryEngine(a,
n),r=g,s=[],m;p.observe=function(a,c){1==s.push(a)&&d.push(m=function(a,f){h(p,function(d){var n=d.length!=e.count,p,h;if(++r!=g)throw Error("Query is out of date, you must observe() the query prior to any data modifications");var m,k=-1,x=-1;if(void 0!==f){var A=[].concat(d);q&&!a&&(A=q(d));p=0;for(h=d.length;p<h;p++){var w=d[p];if(b.getIdentity(w)==f&&!(0>A.indexOf(w))){m=w;k=p;(q||!a)&&d.splice(p,1);break}}}if(q){if(a&&(q.matches?q.matches(a):q([a]).length))p=-1<k?k:d.length,d.splice(p,0,a),x=
l.indexOf(q(d),a),d.splice(p,1),e.start&&0==x||!n&&x==d.length?x=-1:d.splice(x,0,a)}else a&&(void 0!==f?x=k:e.start||(x=b.defaultIndex||0,d.splice(x,0,a)));if((-1<k||-1<x)&&(c||!q||k!=x)){n=s.slice();for(p=0;d=n[p];p++)d(a||m,k,x)}})});var f={};f.remove=f.cancel=function(){var c=l.indexOf(s,a);-1<c&&(s.splice(c,1),s.length||d.splice(l.indexOf(d,m),1))};return f}}return p};var a;e("put",function(a,c){b.notify(a,c)});e("add",function(a){b.notify(a)});e("remove",function(a){b.notify(void 0,a)});return b};
k.setObject("dojo.store.Observable",e);return e})},"webview/widgets/ModelGraphicsHighlighter":function(){define("dojo/_base/declare dojo/_base/lang dojo/store/Memory dojo/topic dijit/Destroyable ../mg/Styler".split(" "),function(e,k,h,l,b,m){return e([b],{COMBINE_DISPLAY:m.prototype.COMBINE_DISPLAY,REPLACE_DISPLAY:m.prototype.REPLACE_DISPLAY,constructor:function(b){this.stylingLayerOptions={id:"custom",show:!0,zOrder:2,displayMode:m.prototype.REPLACE_DISPLAY};e.safeMixin(this,b);this.postMixInProperties()},
postMixInProperties:function(){this.highlightStore=new h},startup:function(){this.own(l.subscribe(this.app.id+"/postOpen",k.hitch(this,"update")))},highlight:function(b,g){var c=b.diagram,a=g||this.style;this.highlightStore.put({id:b.eid,element:b,style:a});(c=this.getStylingLayer(c))&&c.addStyle(b.backing.sid,a)},unhighlight:function(b){var g=this.getStylingLayer(b.diagram);g&&g.removeStyle(b.backing.sid);this.highlightStore.remove(b.eid)},unhighlightAll:function(){var b=this.highlightStore.query(),
g,c=b.length;for(g=0;g<c;g+=1)this.unhighlight(b[g].element)},update:function(b){b=b||this.app.modelViewer.selectedDiagram;var g=this.highlightStore.query(),c,a=this.getStylingLayer(b),f,e=g.length;if(a)for(f=0;f<e;f+=1)c=g[f],c.element.diagram===b&&a.addStyle(c.element.backing.sid,c.style)},getStylingLayer:function(b){b=this.getStyler(b);var g,c=this.stylingLayerOptions;b&&((g=b.getStylingLayer(c.id))||(g=b.createStylingLayer(c)));return g},getStyler:function(b){var g=this.app.modelViewer,c;if(g.selectedDiagram===
b&&(b=g.selectedDiagramTab))if(b=b.modelGraphicsPane)c=b.canvas.styler;return c}})})},"webview/mg/Styler":function(){define(["dojo/_base/declare","dojo/_base/array","../utils/svg","./StylingLayer"],function(e,k,h,l){return e(null,{COMBINE_DISPLAY:l.prototype.COMBINE_DISPLAY,REPLACE_DISPLAY:l.prototype.REPLACE_DISPLAY,constructor:function(b){var e=b.sceneServer,d=e.svgDocument,e=h.createSvgElement(d,"g",{id:"styler"},e.baseScene.rootElement),g=h.createSvgElement(d,"defs",{},e),g=h.createSvgElement(d,
"rect",{id:"maskBackground",fill:"white"},g);this.canvas=b;this.svgDocument=d;this.node=e;this.maskBackgroundNode=g;this.stylingLayers=[]},destroy:function(){var b=this.stylingLayers.slice(0);k.forEach(b,function(b){b.destroy()})},updateMaskBackground:function(){var b=this.canvas.sceneServer.baseScene.viewBox(),e=this.maskBackgroundNode;e.setAttribute("x",b.x);e.setAttribute("y",b.y);e.setAttribute("width",b.width);e.setAttribute("height",b.height)},createStylingLayer:function(b){return new l(b,this)},
getStylingLayer:function(b){var e;k.some(this.stylingLayers,function(d){return d.id===b?(e=d,!0):!1});return e},_addStylingLayer:function(b){var e=this.node,d=this.stylingLayers,g,c,a=d.length;for(c=0;c<a;c+=1)if(g=d[c],g.zOrder>=b.zOrder){e.insertBefore(b.node,g.node);d.splice(c,0,b);return}e.appendChild(b.node);d.push(b)},_removeStylingLayer:function(b){var e=this.stylingLayers,d=k.indexOf(e,b);-1<d&&e.splice(d,1);this.node.removeChild(b.node)}})})},"webview/utils/svg":function(){define([],function(){function e(){var a=
document.createElement('\x3ciframe name\x3d"webview-svg"\x3e'),b=!1;document.appendChild(a);b=a.contentWindow.document;b.open();b.write("\x3cSCRIPT id\x3d'ASVDetectionScript' LANGUAGE\x3d'VBScript'\x3e\non error resume next \nhasAdobePluginSvgSupport \x3d IsObject(CreateObject(\"Adobe.SVGCtl\"))\x3c/SCRIPT\x3e\n");b.close();b=window.frames["webview-svg"].hasAdobePluginSvgSupport;document.removeChild(a);return b}function k(a){var b=!a;return function(c,f,d){var g,e=c.length,p;if(d)for(p=0;p<e;p+=1){if(g=
c.item(p),g.nodeType===u&&(g=!f.call(d,g,p,c),a^g))return!g}else for(p=0;p<e;p+=1)if(g=c.item(p),g.nodeType===u&&(g=!f(g,p,c),a^g))return!g;return b}}function h(a,b,c){var f,d=a.length,g;if(c)for(g=0;g<d;g+=1)f=a.item(g),b.call(c,f,g,a);else for(g=0;g<d;g+=1)f=a.item(g),b(f,g,a)}function l(a,b,c){var f;b&&(b.callback||b.filter)?(f=a.cloneNode(!1),b.callback&&b.callback(f),h(a.childNodes,function(a){(!b.filter||b.filter(a))&&l(a,b,f)})):f=a.cloneNode(!0);c&&c.appendChild(f);return f}function b(a,c,
f){var d=a.childNodes,g=d.length,e;for(e=0;e<g;e+=1)if(a=d.item(e),!c.filter||c.filter(a))f.push(a),b(a,c,f);return f}var m=navigator.userAgent.toLowerCase(),d=!1,g=!1,c=!1,a=/matlab/.test(m),f=/linux/.test(m),u=1;try{document.createElementNS("http://www.w3.org/2000/svg","svg").width&&(g=d=!0)}catch(p){}d||(g=c=e());return{XMLNS:"http://www.w3.org/2000/svg",hasNativeSvgSupport:d,hasSvgSupport:g,hasAdobePluginSvgSupport:c,hasMatlabWebKitSupport:a,createHtmlElement:function(b,g,e){var p;d?a&&f?(p=document.createElement("iframe"),
p.setAttribute("src",b),p.setAttribute("tabindex","-1"),p.setAttribute("width",g),p.setAttribute("height",e),p.setAttribute("onmousewheel",""),p.setAttribute("style","border:0")):(p=document.createElement("object"),p.setAttribute("data",b),p.setAttribute("tabindex","-1"),p.setAttribute("width",g),p.setAttribute("height",e),p.setAttribute("onmousewheel",""),p.setAttribute("type","image/svg+xml")):c&&(p=document.createElement("embed"),p.setAttribute("src",b),p.setAttribute("pluginspage","http://www.adobe.com/svg/viewer/install/"),
p.setAttribute("width",g),p.setAttribute("height",e),p.setAttribute("type","image/svg+xml"),p.setAttribute("wmode","opaque"),p.setAttribute("style","z-index: 0;"));return p},createSvgElement:function(a,b,c,f){var d;a=a.createElementNS("http://www.w3.org/2000/svg",b);for(d in c)c.hasOwnProperty(d)&&("xlink:"===d.substring(0,6)?a.setAttributeNS("http://www.w3.org/1999/xlink",d.substring(6),c[d]):a.setAttribute(d,c[d]));f&&f.appendChild(a);return a},getSvgDocument:function(a){var b;try{b=a.contentDocument?
a.contentDocument:a.getSVGDocument()}catch(c){}return b},isSvgLoaded:function(a){a=this.getSvgDocument(a);var b=!1;return b=void 0===a?!1:null!==(a&&a.documentElement)},getParent:function(a){return a.parentNode?a.parentNode:a.parentElement},cloneNode:l,forEachElement:function(a,b,c){var f,d=a.length,g;if(c)for(g=0;g<d;g+=1)f=a.item(g),f.nodeType===u&&b.call(c,f,g,a);else for(g=0;g<d;g+=1)f=a.item(g),f.nodeType===u&&b(f,g,a)},everyElement:k(!1),someElement:k(!0),getDescendentNodes:function(a,c){return b(a,
c||{},[])},getAttribute:function(a,b){var c=null;try{a.nodeType===u&&(c=a.getAttribute(b))}catch(f){c=null}return c},removeAttribute:function(a,b){try{a.nodeType===u&&a.removeAttribute(b)}catch(c){}},setAttribute:function(a,b,c){a.setAttribute(b,c)},hasAttribute:function(a,b){var c;try{c=a.hasAttribute(b)}catch(f){c=!1}return c},ELEMENT_NODE:u}})},"webview/mg/StylingLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/store/Memory dojo/Stateful ../utils/svg ./StyleElement".split(" "),
function(e,k,h,l,b,m,d){return e([b],{REPLACE_DISPLAY:0,COMBINE_DISPLAY:1,zOrder:0,constructor:function(b,c){this.displayMode=this.REPLACE_DISPLAY;b&&k.mixin(this,b);this.styler=c;this.svgDocument=c.svgDocument;this.styleElements=new l({idProperty:"elementId"});this.node=m.createSvgElement(this.svgDocument,"g",{id:this.id||"",style:"fill:none; stroke:none"});c._addStylingLayer(this);b.show?this.set("show",b.show):this.set("show",!1)},destroy:function(){this.removeAllStyles();this.styler._removeStylingLayer(this)},
show:!1,_showSetter:function(b){var c=this.node,a=this.styleElements,f=this;this.show=b;m.setAttribute(c,"display",b?"inline":"none");h.forEach(a.query(),function(a){a.set("show",b)});b&&this.displayMode===this.REPLACE_DISPLAY&&h.forEach(this.styler.stylingLayers,function(a){f!==a&&a.displayMode===a.REPLACE_DISPLAY&&a.set("show",!1)})},addStyle:function(b,c){var a,f,e;"string"===typeof b?e=b:(e=b.id,f=b);(a=this.styleElements.get(e))?a.set("styleText",c):a=new d({element:f||this.svgDocument.getElementById(e),
id:this.id+"-"+e,styleText:c},this);a.set("show",!0);return a},hideStyle:function(b){(b=this.getStyle(b))&&b.set("show",!1)},hideAllStyles:function(){h.forEach(this.styleElements.query(),function(b){b.set("show",!1)})},removeStyle:function(b){(b=this.getStyle(b))&&b.destroy()},removeAllStyles:function(){h.forEach(this.styleElements.query(),function(b){b.destroy()})},getStyle:function(b){return this.styleElements.get(b)},_registerStyle:function(b){this.styleElements.add(b)},_unregisterStyle:function(b){this.styleElements.remove(b.elementId)},
getState:function(){var b=new l;h.forEach(this.styleElements.query(),function(c){c.show&&b.put({id:c.elementId,styleText:c.styleText})});return b},restoreState:function(b){var c=this;b&&h.forEach(b.query(),function(a){c.addStyle(a.id,a.styleText)})}})})},"webview/mg/StyleElement":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/Stateful","../utils/svg"],function(e,k,h,l,b){var m=e(null,{constructor:function(c,a,f){this.node=b.cloneNode(c,{callback:function(a){h.forEach("id data-tags style opacity stroke stroke-width stroke-linejoin stroke-linecap stroke-miterlimit stroke-dasharray stroke-opacity fill fill-opacity".split(" "),
function(c){b.removeAttribute(a,c)})},filter:function(a){return!("g"===a.tagName&&""!==a.id||/defs|image|text/.test(a.tagName))}},f);this.parentNode=f;this.elementStrokeWidth=a;this.appliedStyleMap={}},destroy:function(){this.parentNode.removeChild(this.node)},setStyle:function(c){var a=this.node,f;c=k.mixin({},c);this.removeStyle();c["stroke-width"]&&(c["stroke-width"]=Math.max(this.elementStrokeWidth,c["stroke-width"]).toString());for(f in c)c.hasOwnProperty(f)&&b.setAttribute(a,f,c[f]);this.appliedStyleMap=
c},removeStyle:function(){var c=this.node,a,f=this.appliedStyleMap;if(f)for(a in f)f.hasOwnProperty(a)&&b.setAttribute(c,a,f[a]);this.appliedStyleMap={}},showStyle:function(){b.setAttribute(this.node,"display","inline")},hideStyle:function(){b.setAttribute(this.node,"display","none")}}),d=e(null,{constructor:function(c,a,f){var d=[];this.node=b.cloneNode(c,{callback:function(a){var c=b.getAttribute(a,"fill"),f=b.getAttribute(a,"stroke"),c=c&&"none"!==c,g=f&&"none"!==f,f=f&&"none"===f;b.removeAttribute(a,
"id");b.removeAttribute(a,"data-tags");c&&(b.removeAttribute(a,"fill"),b.removeAttribute(a,"fill-opacity"),f&&(d.push(a),b.removeAttribute(a,"stroke")));g&&h.forEach("stroke stroke-width stroke-linejoin stroke-linecap stroke-miterlimit stroke-dasharray stroke-opacity".split(" "),function(c){b.removeAttribute(a,c)})},filter:function(a){return!("g"===a.tagName&&""!==a.id||/defs|image|text/.test(a.tagName)||"none"===b.getAttribute(a,"stroke")&&"none"===b.getAttribute(a,"fill"))}},f);this.parentNode=
f;this.noStrokeFillNodes=d;this.elementStrokeWidth=a;this.appliedStyleMap={}},destroy:function(){this.parentNode.removeChild(this.node)},setStyle:function(c){var a=this.node,f,d,g,e=k.mixin({},c);this.removeStyle();e["stroke-width"]&&(e["stroke-width"]=Math.max(this.elementStrokeWidth,e["stroke-width"]).toString());e.fill&&(e.stroke?e.fill=e.stroke:delete e.fill);e["fill-opacity"]&&(e["stroke-opacity"]?e["fill-opacity"]=e["stroke-opacity"]:delete e["fill-opacity"]);for(f in e)e.hasOwnProperty(f)&&
b.setAttribute(a,f,c[f]);this.appliedStyleMap=e;g=parseFloat(e["stroke-width"]);g>this.elementStrokeWidth?(d=e.stroke,h.forEach(this.noStrokeFillNodes,function(a){b.setAttribute(a,"stroke",d);b.setAttribute(a,"stroke-width",g-1);b.setAttribute(a,"stroke-opacity",e["stroke-opacity"]);b.setAttribute(a,"fill",d);b.setAttribute(a,"fill-opacity",e["stroke-opacity"])})):h.forEach(this.noStrokeFillNodes,function(a){b.setAttribute(a,"stroke","none")})},removeStyle:function(){var c=this.node,a,f=this.appliedStyleMap;
if(f){for(a in f)f.hasOwnProperty(a)&&b.setAttribute(c,a,f[a]);h.forEach(this.noStrokeFillNodes,function(a){b.setAttribute(a,"stroke","none");b.removeAttribute(a,"fill");b.removeAttribute(a,"fill-opacity")})}this.appliedStyleMap={}},showStyle:function(){b.setAttribute(this.node,"display","inline")},hideStyle:function(){b.setAttribute(this.node,"display","none")}}),g=e(null,{constructor:function(c){var a=c.svgDocument,f=c.node,d=c.id+"-mask",g=b.createSvgElement(a,"mask",{id:d,x:"-100%",y:"-100%",
width:"300%",height:"300%"},f);c._isLine()&&(b.setAttribute(g,"x","-300%"),b.setAttribute(g,"y","-300%"),b.setAttribute(g,"width","700%"),b.setAttribute(g,"height","700%"));this.styleElement=c;this.maskNode=g;b.createSvgElement(a,"use",{"xlink:href":"#"+c.styler.maskBackgroundNode.id},g);this.maskObj=c._createUnstyledObj(g);this.styleObj=c._createUnstyledObj(f);b.setAttribute(this.styleObj.node,"mask","url(#"+d+")")},destroy:function(){this.maskObj.destroy();this.styleObj.destroy();this.styleElement.node.removeChild(this.maskNode)},
update:function(){this.setStyle(this.styleMap)},setStyle:function(b){var a=this.styleElement,f=a.stylingLayer,d=a.elementId,g=k.mixin({},b),e=a.styleObj.appliedStyleMap["stroke-width"]||a._getElementStrokeWidth(),e=parseFloat(e);this.styleMap=b;h.forEach(a.styler.stylingLayers,function(a){var b;if(a!==f&&a.show&&a.zOrder<f.zOrder&&(a=a.getStyle(d))&&a.show)(b=a.styleObj.appliedStyleMap["stroke-width"])&&(e=Math.max(e,parseFloat(b))),(a=a.outerStroke&&a.outerStroke.computedStrokeWidth)&&(e=Math.max(e,
a))});this.maskObj.setStyle({stroke:"black","stroke-width":e.toString(),fill:"black"});this.computedStrokeWidth=2*(parseFloat(b["stroke-width"])+e/2);g["stroke-width"]=this.computedStrokeWidth;this.styleObj.setStyle(g)},removeStyle:function(){this.maskObj.removeStyle();this.styleObj.removeStyle();this.computedStrokeWidth=null},showStyle:function(){var b=this.styleObj,a=this.maskObj;b&&b.showStyle();a&&a.showStyle();this.update()},hideStyle:function(){var b=this.styleObj,a=this.maskObj;b&&b.hideStyle();
a&&a.hideStyle()}});return e([l],{constructor:function(c,a){var f=c.element,d=c.id||"",g=f.ownerDocument;this.elementNode=f;this.elementId=f.id;this.svgDocument=f.ownerDocument;this.id=d;this.node=b.createSvgElement(g,"g",{id:this.id,"pointer-events":"none"});this.stylingLayer=a;this.styler=a.styler;a._registerStyle(this);c.styleText&&this.set("styleText",c.styleText);a.node.appendChild(this.node);c.show&&this.set("show",c.show)},destroy:function(){var b=this.outerStroke,a=this.stylingLayer;b&&b.destroy();
this.styleObj.destroy();a.node.removeChild(this.node);a._unregisterStyle(this);this._restoreBackgroundColor();this._updateOtherOuterStrokes()},styleText:"",_styleTextSetter:function(c){var a=this.node,f={},d=this.styleObj,e=this.outerStroke,n;""===c?(d&&d.removeStyle(),e&&e.removeStyle(),b.setAttribute(a,"display","none"),this._restoreBackgroundColor(),this._updateOtherOuterStrokes()):(a=c.split(";"),h.forEach(a,function(a){var b=a.split(":");2===b.length&&(a=b[0].trim(),b=b[1].trim(),0===a.indexOf("outer-stroke")?
(n||(n={}),n[a.substring(6)]=b):f[a]=b)}),this._isLine()||((a=f.fill)&&"none"!==a?this._removeBackgroundColor():this._restoreBackgroundColor()),d||(d=this.styleObj=this._createUnstyledObj(this.node)),d.setStyle(f),n?(e||(e=this.outerStroke=new g(this)),e.setStyle(n)):e&&e.removeStyle());this.styleText=c;this._updateOtherOuterStrokes()},show:!0,_showSetter:function(c){var a=this.node,f=this.styleObj,d=this.outerStroke;(this.show=c)?(b.setAttribute(a,"display","inline"),f&&f.showStyle(),d&&d.showStyle()):
(b.setAttribute(a,"display","none"),f&&f.hideStyle(),d&&d.hideStyle(),this._restoreBackgroundColor());this._updateOtherOuterStrokes()},_createUnstyledObj:function(b){var a=this._getElementStrokeWidth();return this._isLine()?new d(this.elementNode,a,b):new m(this._getFrameNode()||this.elementNode,a,b)},_getFrameNode:function(){var c=null;void 0===this._frameNode&&(b.someElement(this.elementNode.childNodes,function(a){var f=b.getAttribute(a,"data-tags");return f&&0<=h.indexOf(f.split(" "),"frame")?
(c=a,!0):!1}),this._frameNode=c);return this._frameNode},_getElementStrokeWidth:function(){var c=0,a;void 0===this._elementStrokeWidth&&(a=b.cloneNode(this.elementNode,{filter:function(a){return("g"!==a.tagName||""===a.id)&&a.nodeType===a.ELEMENT_NODE&&!/text|defs|image/.test(a.tagName)}}),h.forEach(b.getDescendentNodes(a),function(a){var d;if("g"===a.tagName&&a.hasChildNodes()||"g"!==a.tagName)if((d=b.getAttribute(a,"stroke"))&&"none"!==d)(a=b.getAttribute(a,"stroke-width"))&&(c=Math.max(c,parseFloat(a)))}),
this._elementStrokeWidth=c);return this._elementStrokeWidth},_updateOtherOuterStrokes:function(){var b=this.elementId,a=this.stylingLayer;h.some(this.styler.stylingLayers,function(f){return f!==a&&f.show&&f.zOrder>a.zOrder&&(f=f.getStyle(b))&&f.show&&f.outerStroke?(f.outerStroke.update(),!0):!1})},_isLine:function(){var c=b.getParent(this.elementNode),c=b.getAttribute(c,"data-tags");return!this._getFrameNode()&&(!c||-1!==c.indexOf("line"))},_getBackgroundColor:function(){var c=this._backgroundColor,
a,f;c||(b.someElement(this.elementNode.childNodes,function(d){return"text"!==d.nodeName&&(f=(a=b.getAttribute(d,"data-tags"))?a.split(" "):[],-1===f.indexOf("line")&&-1===f.indexOf("frame")&&(c=b.getAttribute(d,"fill")||"none","none"!==c))?!0:!1}),this._backgroundColor=c||"none");return this._backgroundColor},_removeBackgroundColor:function(){var c=this._getBackgroundColor(),a=this.backgroundNodes;"none"!==c&&(a||(a=b.getDescendentNodes(this.elementNode,{filter:function(a){return a.nodeType===b.ELEMENT_NODE&&
!/defs|image|text/.test(a.tagName)}}),this.backgroundNodes=a=h.filter(a,function(a){return b.getAttribute(a,"fill")===c})),h.forEach(this.backgroundNodes,function(a){var c=b.getAttribute(a,"fill");if(c&&(b.hasAttribute(a,"data-orig-fill")||b.setAttribute(a,"data-orig-fill",c),b.setAttribute(a,"fill","#ffffff"),c=b.getAttribute(a,"fill-opacity")))b.hasAttribute(a,"data-orig-fill-opacity")||b.setAttribute(a,"data-orig-fill-opacity",c),b.setAttribute(a,"fill-opacity","1")}))},_restoreBackgroundColor:function(){this.backgroundNodes&&
h.forEach(this.backgroundNodes,function(c){var a=b.getAttribute(c,"data-orig-fill"),f=b.getAttribute(c,"data-orig-fill-opacity");a&&b.setAttribute(c,"fill",a);f&&b.setAttribute(c,"fill-opacity",f)})}})})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json module".split(" "),function(e,k,h,l,b,m,d,g,c){h.add("dojo-preload-i18n-Api",1);var a=e.i18n={},f=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,u=function(a,b,c,f){var d=[c+f];b=b.split("-");
for(var g="",e=0;e<b.length;e++)if(g+=(g?"-":"")+b[e],!a||a[g])d.push(c+g+"/"+f),d.specificity=g;return d},p={},n=function(a,b,c){c=c?c.toLowerCase():e.locale;a=a.replace(/\./g,"/");b=b.replace(/\./g,"/");return/root/i.test(c)?a+"/nls/"+b:a+"/nls/"+c+"/"+b},q=e.getL10nName=function(a,b,f){return c.id+"!"+n(a,b,f)},r=function(a,b,c,f,d,g){a([b],function(e){var n=m.clone(e.root||e.ROOT),q=u(!e._v1x&&e,d,c,f);a(q,function(){for(var a=1;a<q.length;a++)n=m.mixin(m.clone(n),arguments[a]);p[b+"/"+d]=n;n.$locale=
q.specificity;g()})})},s=function(a){var c=b.extraLocale||[],c=m.isArray(c)?c:[c];c.push(a);return c},x=function(a,b,c){if(h("dojo-preload-i18n-Api")){var d=a.split("*"),n="preload"==d[1];n&&(p[a]||(p[a]=1,B(d[2],g.parse(d[3]),1,b)),c(1));if(!(d=n))y&&A.push([a,b,c]),d=y;if(d)return}a=f.exec(a);var q=a[1]+"/",k=a[5]||a[4],x=q+k,d=(a=a[5]&&a[4])||e.locale||"",u=x+"/"+d;a=a?[d]:s(d);var w=a.length,F=function(){--w||c(m.delegate(p[u]))};l.forEach(a,function(a){var c=x+"/"+a;h("dojo-preload-i18n-Api")&&
C(c);p[c]?F():r(b,x,q,k,a,F)})};h("dojo-preload-i18n-Api");var w=a.normalizeLocale=function(a){a=a?a.toLowerCase():e.locale;return"root"==a?"ROOT":a},y=0,A=[],B=a._preloadLocalizations=function(a,b,c,f){function d(a,b){f.isXdUrl(k.toUrl(a+".js"))||c?f([a],b):G([a],b,f)}function g(a,b){for(var c=a.split("-");c.length;){if(b(c.join("-")))return;c.pop()}b("ROOT")}function n(){for(--y;!y&&A.length;)x.apply(null,A.shift())}function q(c){c=w(c);g(c,function(e){if(0<=l.indexOf(b,e)){var q=a.replace(/\./g,
"/")+"_"+e;y++;d(q,function(a){for(var b in a){var d=a[b],q=b.match(/(.+)\/([^\/]+)$/),h;if(q&&(h=q[2],q=q[1]+"/",d._localized)){var s;if("ROOT"===e){var r=s=d._localized;delete d._localized;r.root=d;p[k.toAbsMid(b)]=r}else s=d._localized,p[k.toAbsMid(q+h+"/"+e)]=d;e!==c&&function(a,b,d,e){var q=[],h=[];g(c,function(c){e[c]&&(q.push(k.toAbsMid(a+c+"/"+b)),h.push(k.toAbsMid(a+b+"/"+c)))});q.length?(y++,f(q,function(){for(var f=q.length-1;0<=f;f--)d=m.mixin(m.clone(d),arguments[f]),p[h[f]]=d;p[k.toAbsMid(a+
b+"/"+c)]=m.clone(d);n()})):p[k.toAbsMid(a+b+"/"+c)]=d}(q,h,d,s)}}n()});return!0}return!1})}f=f||k;q();l.forEach(e.config.extraLocale,q)},C=function(){},F={},K=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define \x3d function(mid, factory){define.called \x3d 1; __amdValue.result \x3d factory || mid;},\t require \x3d function(){define.called \x3d 1;};try{define.called \x3d 0;eval(__bundle);if(define.called\x3d\x3d1)return __amdValue;if((__checkForLegacyModules \x3d __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),
G=function(a,b,c){var f=[];l.forEach(a,function(a){function b(c){c=K(c,C,a,F);c===F?f.push(p[g]=F.result):(c instanceof Error&&(console.error("failed to evaluate i18n bundle; url\x3d"+g,c),c={}),f.push(p[g]=/nls\/[^\/]+\/[^\/]+$/.test(g)?c:{root:c,_v1x:1}))}var g=c.toUrl(a+".js");if(p[g])f.push(p[g]);else{var e=c.syncLoadNls(a);e||(e=C(a.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1")));if(e)f.push(e);else if(d)d.get({url:g,sync:!0,load:b,error:function(){f.push(p[g]={})}});else try{c.getText(g,!0,
b)}catch(n){f.push(p[g]={})}}});b&&b.apply(null,f)},C=function(a){for(var b,c=a.split("/"),f=e.global[c[0]],d=1;f&&d<c.length-1;f=f[c[d++]]);f&&((b=f[c[d]])||(b=f[c[d].replace(/-/g,"_")]),b&&(p[a]=b));return b};a.getLocalization=function(a,b,c){var f;a=n(a,b,c);x(a,!k.isXdUrl(k.toUrl(a+".js"))?function(a,b){G(a,b,k)}:k,function(a){f=a});return f};return m.mixin(a,{dynamic:!0,normalize:function(a,b){return/^\./.test(a)?b(a):a},load:x,cache:p,getL10nName:q})})},"webview/utils/hash":function(){define("dojo/_base/kernel require dojo/_base/config dojo/aspect dojo/_base/lang dojo/topic dojo/domReady dojo/sniff".split(" "),
function(e,k,h,l,b,m,d,g){function c(a,b){var c=a.indexOf(b);return 0<=c?a.substring(c+1):""}function a(){return c(location.href,"#")}function f(){m.publish("/dojo/hashchange",a())}function u(){a()!==q&&(q=a(),f())}function p(a){if(r)if(r.isTransitioning())setTimeout(b.hitch(null,p,a),x);else{var c=r.iframe.location.href,f=c.indexOf("?");r.iframe.location.replace(c.substring(0,f)+"?"+a)}else c=location.href,f=c.indexOf("#"),0<=f&&(c=c.substr(0,f)),location.replace(c+"#"+a),!s&&u()}function n(){function d(){q=
a();p=m?q:c(u.href,"?");s=!1;r=null}var g=document.createElement("iframe"),n=h.dojoBlankHtmlUrl||k.toUrl("./resources/blank.html");h.useXDomain&&!h.dojoBlankHtmlUrl&&console.warn("dojo.hash: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html");g.id="dojo-hash-iframe";g.src=n+"?"+a();g.style.display="none";document.body.appendChild(g);this.iframe=e.global["dojo-hash-iframe"];var p,s,r,
l,m,u=this.iframe.location;this.isTransitioning=function(){return s};this.pollLocation=function(){if(!m)try{var e=c(u.href,"?");document.title!=l&&(l=this.iframe.document.title=document.title)}catch(h){m=!0,console.error("dojo.hash: Error adding history entry. Server unreachable.")}var k=a();if(s&&q===k)if(m||e===r)d(),f();else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(q===k&&(m||p===e))){if(q!==k){q=k;s=!0;r=k;g.src=n+"?"+r;m=!1;setTimeout(b.hitch(this,this.pollLocation),0);
return}m||(location.href="#"+u.search.substring(1),d(),f())}setTimeout(b.hitch(this,this.pollLocation),x)};d();setTimeout(b.hitch(this,this.pollLocation),x)}hash=function(b,c){if(!arguments.length)return a();"#"==b.charAt(0)&&(b=b.substring(1));c?p(b):location.hash="#"+b;return b};var q,r,s,x=h.hashPollFrequency||100;d(function(){"onhashchange"in e.global&&(!g("ie")||8<=g("ie")&&"BackCompat"!=document.compatMode)?s=l.after(e.global,"onhashchange",f,!0):document.addEventListener?(q=a(),setInterval(u,
x)):document.attachEvent&&(r=new n)});return hash})},"webview/widgets/ModelBrowser":function(){define("dojo/_base/declare dojo/_base/lang dojo/topic dojo/Deferred dojo/DeferredList dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/aspect dijit/tree/ObjectStoreModel dijit/_WidgetBase dijit/_TemplatedMixin dijit/registry dijit/Tree dijit/Menu dijit/MenuItem dojo/text!./templates/ModelBrowser.html dojo/i18n!../resources/slreportgen_webview/nls/modelbrowser".split(" "),function(e,k,h,l,b,m,d,g,c,a,
f,u,p,n,q,r,s,x){var w=e([n],{_onNodeMouseEnter:function(a){var b=a.tree,c=b.appId,f=a.item;this.inherited(arguments);b.toExpand=!1;h.publish(c+"/hover",f,{isCenter:!0})},_onNodeMouseLeave:function(a){var b=a.tree,c=b.appId,f=a.item;this.inherited(arguments);b.toExpand=!1;h.publish(c+"/unhover",f)}});return e([f,u],{templateString:s,title:"",_setTitleAttr:{node:"titleNode",type:"innerHTML"},postCreate:function(){function b(){var a=n.lastFocused;a&&a.isTreeNode&&f.open(a.item,{tab:"reuse"})}var f=
this.app,d=f.id,g=f.data.diagramStore,e=new a({root:{hid:"root",label:"Simulink.Root"},store:{getChildren:function(a){return"root"==a.hid?g.query({parent:0}):g.getChildren(a)},getIdentity:function(a){return a.hid}},mayHaveChildren:function(a){return"root"===a.hid?!0:a.mayHaveChildren()},getLabel:function(a){return a.label}}),n=new w({appId:d,model:e,getIconClass:function(a){return a.icon},showRoot:!1,onClick:function(a,b,c){f.open(a,{tab:c.ctrlKey?"new":"reuse"})}},this.treeNode),h=new q({targetNodeIds:[n.domNode],
"class":"model-browser-widget",selector:".dijitTreeNode"}),d=["_onUpArrow","_onDownArrow","_onHomeKey","_onEndKey"],e=d.length,s;h.addChild(new r({label:x.Open,onClick:function(){var a=p.byId(h.currentTarget.id);a&&a.isTreeNode&&f.open(a.item,{tab:"reuse"})}}));h.addChild(new r({label:x.OpenInNewTab,onClick:function(){var a=p.byId(h.currentTarget.id);a&&a.isTreeNode&&f.open(a.item,{tab:"new"})}}));this.set("title",x.Title);n.dndController.singular=!0;this.tree=n;this.own(n,h);for(s=0;s<e;s+=1)this.own(c.after(n,
d[s],b))},startup:function(){var a=this,b=this.app,c=b.id,f=this.tree,e=b.modelViewer.selectedDiagram;f.startup();this.own(h.subscribe(c+"/open",function(c){b.isDiagram(c)&&a._open(c)}),h.subscribe(c+"/hover",k.hitch(this,"_hover")),h.subscribe(c+"/unhover",k.hitch(this,"_unhover")));this._computedStyle=g.getComputedStyle(this.domNode);this._treeComputedStyle=g.getComputedStyle(f.domNode);this._titleBarMarginBox=d.getMarginBox(this.titleBar);e&&this._open(e)},destroy:function(){this._hoveredNode=
null;this.inherited(arguments)},resize:function(a){var b=this.domNode,c=this._computedStyle,f=this.tree;a&&d.setMarginBox(b,a,c);a=d.getMarginBox(b,c);a={l:0,t:0,w:a.w,h:a.h-this._titleBarMarginBox.h};d.setMarginBox(f.domNode,a,this._treeComputedStyle);f.resize(a)},getMarginBox:function(){return d.getMarginBox(this.domNode,this._computedStyle)},expand:function(a){var c=this.tree,f=c.getNodesByItem(a)[0],d=new l,g=[],e,n;if(f)f=f.getTreePath();else for(f=[];a;)f.unshift(a),a=a.getParent();n=f.length;
for(e=0;e<n;e+=1)(a=c.getNodesByItem(f[e])[0])&&0<=a.getChildren().length&&g.push(c._expandNode(a));(new b(g)).then(function(){d.resolve(!0)});return d},collapse:function(a){if(a=this.tree.getNodesByItem(a)[0])return a.collapse()},_open:function(a){var b=this.tree;this._unhover();this.expand(a).then(function(){var c=b.getNodesByItem(a)[0];c&&b.set("path",c.getTreePath())})},_hoveredNode:null,_hover:function(a){function b(a){a.rowNode&&(m.add(a.rowNode,"wvModelBrowserTreeRowHover"),c._hoveredNode=
a.rowNode)}var c=this,f=this.tree,g=f.getNodesByItem(a)[0],e=new l;0<d.position(this.domNode).w?(this._unhover(),g&&(f.toExpand?e=this.expand(a).then(function(){b(g)}):(e.resolve(!0),b(g),f.toExpand=!0))):e.resolve(!0);return e},_unhover:function(){var a=this._hoveredNode;a&&(m.remove(a,"wvModelBrowserTreeRowHover"),this._hoveredNode=null)}})})},"dojo/DeferredList":function(){define(["./_base/kernel","./_base/Deferred","./_base/array"],function(e,k,h){e.DeferredList=function(e,b,m,d,g){var c=[];k.call(this);
var a=this;0===e.length&&!b&&this.resolve([0,[]]);var f=0;h.forEach(e,function(g,p){function n(b,d){c[p]=[b,d];f++;f===e.length&&a.resolve(c)}g.then(function(c){b?a.resolve([p,c]):n(!0,c)},function(b){m?a.reject(b):n(!1,b);if(d)return null;throw b;})})};e.DeferredList.prototype=new k;e.DeferredList.prototype.gatherResults=function(l){l=new e.DeferredList(l,!1,!0,!1);l.addCallback(function(b){var e=[];h.forEach(b,function(b){e.push(b[1])});return e});return l};return e.DeferredList})},"dijit/tree/ObjectStoreModel":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/_base/lang dojo/when ../Destroyable".split(" "),
function(e,k,h,l,b,m,d){return h("dijit.tree.ObjectStoreModel",d,{store:null,labelAttr:"name",labelType:"text",root:null,query:null,constructor:function(d){b.mixin(this,d);this.childrenCache={}},getRoot:function(d,c){if(this.root)d(this.root);else{var a=this.store.query(this.query);a.then&&this.own(a);m(a,b.hitch(this,function(c){if(1!=c.length)throw Error("dijit.tree.ObjectStoreModel: root query returned "+c.length+" items, but must return exactly one");this.root=c[0];d(this.root);a.observe&&a.observe(b.hitch(this,
function(a){this.onChange(a)}),!0)}),c)}},mayHaveChildren:function(){return!0},getChildren:function(d,c,a){var f=this.store.getIdentity(d);if(this.childrenCache[f])m(this.childrenCache[f],c,a);else{var e=this.childrenCache[f]=this.store.getChildren(d);e.then&&this.own(e);e.observe&&this.own(e.observe(b.hitch(this,function(a,c,f){this.onChange(a);c!=f&&m(e,b.hitch(this,"onChildrenChange",d))}),!0));m(e,c,a)}},isItem:function(){return!0},getIdentity:function(b){return this.store.getIdentity(b)},getLabel:function(b){return b[this.labelAttr]},
newItem:function(b,c,a,f){return this.store.put(b,{parent:c,before:f})},pasteItem:function(d,c,a,f,h,p){var n=new l;if(c===a&&!f&&!p)return n.resolve(!0),n;c&&!f?this.getChildren(c,b.hitch(this,function(b){b=[].concat(b);var f=e.indexOf(b,d);b.splice(f,1);this.onChildrenChange(c,b);n.resolve(this.store.put(d,{overwrite:!0,parent:a,oldParent:c,before:p}))})):n.resolve(this.store.put(d,{overwrite:!0,parent:a,oldParent:c,before:p}));return n},onChange:function(){},onChildrenChange:function(){},onDelete:function(){}})})},
"dijit/Tree":function(){define("dojo/_base/array dojo/aspect dojo/cookie dojo/_base/declare dojo/Deferred dojo/promise/all dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/errors/create dojo/fx dojo/has dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/topic dojo/touch dojo/when ./a11yclick ./focus ./registry ./_base/manager ./_Widget ./_TemplatedMixin ./_Container ./_Contained ./_CssStateMixin ./_KeyNavMixin dojo/text!./templates/TreeNode.html dojo/text!./templates/Tree.html ./tree/TreeStoreModel ./tree/ForestStoreModel ./tree/_dndSelector dojo/query!css2".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w,y,A,B,C,F,K,G,I,O,N,T,P,Q,L,J,H){function V(a){return r.delegate(a.promise||a,{addCallback:function(a){this.then(a)},addErrback:function(a){this.otherwise(a)}})}var W=l("dijit._TreeNode",[K,G,I,O,N],{item:null,isTreeNode:!0,label:"",_setLabelAttr:function(a){this.labelNode["html"==this.labelType?"innerHTML":"innerText"in this.labelNode?"innerText":"textContent"]=a;this._set("label",a)},labelType:"text",isExpandable:null,isExpanded:!1,state:"NotLoaded",
templateString:P,baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow"},_setTooltipAttr:{node:"rowNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);this.isExpandable&&this.labelNode.setAttribute("aria-expanded",this.isExpanded);this.setSelected(!1)},_setIndentAttr:function(b){var c=Math.max(b,0)*this.tree._nodePixelIndent+"px";a.set(this.domNode,"backgroundPosition",c+" 0px");a.set(this.rowNode,
this.isLeftToRight()?"paddingLeft":"paddingRight",c);e.forEach(this.getChildren(),function(a){a.set("indent",b+1)});this._set("indent",b)},markProcessing:function(){this.state="Loading";this._setExpando(!0)},unmarkProcessing:function(){this._setExpando(!1)},_updateItemClasses:function(a){var b=this.tree,c=b.model;b._v10Compat&&a===c.root&&(a=null);this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row");this.tree._startPaint(!0)},
_applyClassAndStyle:function(b,c,f){var d="_"+c+"Class";c+="Node";var e=this[d];this[d]=this.tree["get"+f+"Class"](b,this.isExpanded);g.replace(this[c],this[d]||"",e||"");a.set(this[c],this.tree["get"+f+"Style"](b,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent(),a=!a||!a.rowNode||"none"==a.rowNode.style.display;g.toggle(this.domNode,"dijitTreeIsRoot",a);g.toggle(this.domNode,"dijitTreeIsLast",!a&&!this.getNextSibling())},_setExpando:function(a){var b=["dijitTreeExpandoLoading",
"dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];a=a?0:this.isExpandable?this.isExpanded?1:2:3;g.replace(this.expandoNode,b[a],b);this.expandoNodeText.innerHTML=["*","-","+","*"][a]},expand:function(){if(this._expandDeferred)return V(this._expandDeferred);this._collapseDeferred&&(this._collapseDeferred.cancel(),delete this._collapseDeferred);this.isExpanded=!0;this.labelNode.setAttribute("aria-expanded","true");(this.tree.showRoot||this!==this.tree.rootNode)&&this.containerNode.setAttribute("role",
"group");g.add(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&this.tree.showRoot&&this.tree.domNode.setAttribute("aria-expanded","true");var a=u.wipeIn({node:this.containerNode,duration:F.defaultDuration}),c=this._expandDeferred=new b(function(){a.stop()});k.after(a,"onEnd",function(){c.resolve(!0)},!0);a.play();return V(c)},collapse:function(){if(this._collapseDeferred)return V(this._collapseDeferred);this._expandDeferred&&
(this._expandDeferred.cancel(),delete this._expandDeferred);this.isExpanded=!1;this.labelNode.setAttribute("aria-expanded","false");this==this.tree.rootNode&&this.tree.showRoot&&this.tree.domNode.setAttribute("aria-expanded","false");g.remove(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);var a=u.wipeOut({node:this.containerNode,duration:F.defaultDuration}),c=this._collapseDeferred=new b(function(){a.stop()});k.after(a,"onEnd",function(){c.resolve(!0)},
!0);a.play();return V(c)},indent:0,setChildItems:function(a){var b=this.tree,c=b.model,f=[],g=b.focusedChild,n=this.getChildren();e.forEach(n,function(a){I.prototype.removeChild.call(this,a)},this);this.defer(function(){e.forEach(n,function(a){if(!a._destroyed&&!a.getParent()){b.dndController.removeTreeNode(a);var f=function(a){var d=c.getIdentity(a.item),g=b._itemNodesMap[d];1==g.length?delete b._itemNodesMap[d]:(d=e.indexOf(g,a),-1!=d&&g.splice(d,1));e.forEach(a.getChildren(),f)};f(a);if(b.persist){var n=
e.map(a.getTreePath(),function(a){return b.model.getIdentity(a)}).join("/"),q;for(q in b._openedNodes)q.substr(0,n.length)==n&&delete b._openedNodes[q];b._saveExpandedNodes()}b.lastFocusedChild&&!d.isDescendant(b.lastFocusedChild,b.domNode)&&delete b.lastFocusedChild;g&&!d.isDescendant(g,b.domNode)&&b.focus();a.destroyRecursive()}})});this.state="Loaded";a&&0<a.length?(this.isExpandable=!0,e.forEach(a,function(a){var d=c.getIdentity(a),g=b._itemNodesMap[d],e;if(g)for(var n=0;n<g.length;n++)if(g[n]&&
!g[n].getParent()){e=g[n];e.set("indent",this.indent+1);break}e||(e=this.tree._createTreeNode({item:a,tree:b,isExpandable:c.mayHaveChildren(a),label:b.getLabel(a),labelType:b.model&&b.model.labelType||"text",tooltip:b.getTooltip(a),ownerDocument:b.ownerDocument,dir:b.dir,lang:b.lang,textDir:b.textDir,indent:this.indent+1}),g?g.push(e):b._itemNodesMap[d]=[e]);this.addChild(e);(this.tree.autoExpand||this.tree._state(e))&&f.push(b._expandNode(e))},this),e.forEach(this.getChildren(),function(a){a._updateLayout()})):
this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);a=m(f);this.tree._startPaint(a);return V(a)},getTreePath:function(){for(var a=this,b=[];a&&a!==this.tree.rootNode;)b.unshift(a.item),a=a.getParent();b.unshift(this.tree.rootNode.item);return b},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(a){this.inherited(arguments);var b=this.getChildren();0==b.length&&(this.isExpandable=!1,this.collapse());e.forEach(b,function(a){a._updateLayout()})},
makeExpandable:function(){this.isExpandable=!0;this._setExpando(!1)},setSelected:function(a){this.labelNode.setAttribute("aria-selected",a?"true":"false");g.toggle(this.rowNode,"dijitTreeRowSelected",a)},focus:function(){B.focus(this.focusNode)}}),R=l("dijit.Tree",[K,T,G,N],{baseClass:"dijitTree",store:null,model:null,query:null,label:"",showRoot:!0,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:!1,openOnDblClick:!1,templateString:Q,persist:!1,autoExpand:!1,
dndController:H,dndParams:"onDndDrop itemCreator onDndCancel checkAcceptance checkItemAcceptance dragThreshold betweenThreshold".split(" "),onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(a,b){x.publish(this.id,r.mixin({tree:this,event:a},b||{}))},postMixInProperties:function(){this.tree=this;this.autoExpand&&(this.persist=!1);this._itemNodesMap={};!this.cookieName&&this.id&&(this.cookieName=
this.id+"SaveStateCookie");this.expandChildrenDeferred=new b;this.pendingCommandsPromise=this.expandChildrenDeferred.promise;this.inherited(arguments)},postCreate:function(){this._initState();var a=this;this.own(s(this.containerNode,s.selector(".dijitTreeNode",w.enter),function(b){a._onNodeMouseEnter(C.byNode(this),b)}),s(this.containerNode,s.selector(".dijitTreeNode",w.leave),function(b){a._onNodeMouseLeave(C.byNode(this),b)}),s(this.containerNode,s.selector(".dijitTreeRow",A.press),function(b){a._onNodePress(C.getEnclosingWidget(this),
b)}),s(this.containerNode,s.selector(".dijitTreeRow",A),function(b){a._onClick(C.getEnclosingWidget(this),b)}),s(this.containerNode,s.selector(".dijitTreeRow","dblclick"),function(b){a._onDblClick(C.getEnclosingWidget(this),b)}));this.model||this._store2model();this.own(k.after(this.model,"onChange",r.hitch(this,"_onItemChange"),!0),k.after(this.model,"onChildrenChange",r.hitch(this,"_onItemChildrenChange"),!0),k.after(this.model,"onDelete",r.hitch(this,"_onItemDelete"),!0));this.inherited(arguments);
if(this.dndController){r.isString(this.dndController)&&(this.dndController=r.getObject(this.dndController));for(var b={},c=0;c<this.dndParams.length;c++)this[this.dndParams[c]]&&(b[this.dndParams[c]]=this[this.dndParams[c]]);this.dndController=new this.dndController(this,b)}this._load();this.onLoadDeferred=V(this.pendingCommandsPromise);this.onLoadDeferred.then(r.hitch(this,"onLoad"))},_store2model:function(){this._v10Compat=!0;n.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");
var a={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};this.params.mayHaveChildren&&(a.mayHaveChildren=r.hitch(this,"mayHaveChildren"));this.params.getItemChildren&&(a.getChildren=r.hitch(this,function(a,b,c){this.getItemChildren(this._v10Compat&&a===this.model.root?null:a,b,c)}));this.model=new J(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(r.hitch(this,function(a){var b=this.rootNode=this.tree._createTreeNode({item:a,
tree:this,isExpandable:!0,label:this.label||this.getLabel(a),labelType:this.model.labelType||"text",textDir:this.textDir,indent:this.showRoot?0:-1});this.showRoot?(this.domNode.setAttribute("aria-multiselectable",!this.dndController.singular),this.rootLoadingIndicator.style.display="none"):(b.rowNode.style.display="none",this.domNode.setAttribute("role","presentation"),this.domNode.removeAttribute("aria-expanded"),this.domNode.removeAttribute("aria-multiselectable"),this["aria-label"]?(b.containerNode.setAttribute("aria-label",
this["aria-label"]),this.domNode.removeAttribute("aria-label")):this["aria-labelledby"]&&(b.containerNode.setAttribute("aria-labelledby",this["aria-labelledby"]),this.domNode.removeAttribute("aria-labelledby")),b.labelNode.setAttribute("role","presentation"),b.labelNode.removeAttribute("aria-selected"),b.containerNode.setAttribute("role","tree"),b.containerNode.setAttribute("aria-expanded","true"),b.containerNode.setAttribute("aria-multiselectable",!this.dndController.singular));this.containerNode.appendChild(b.domNode);
a=this.model.getIdentity(a);this._itemNodesMap[a]?this._itemNodesMap[a].push(b):this._itemNodesMap[a]=[b];b._updateLayout();this._expandNode(b).then(r.hitch(this,function(){this._destroyed||(this.rootLoadingIndicator.style.display="none",this.expandChildrenDeferred.resolve(!0))}))}),r.hitch(this,function(a){console.error(this,": error loading root: ",a)}))},getNodesByItem:function(a){if(!a)return[];a=r.isString(a)?a:this.model.getIdentity(a);return[].concat(this._itemNodesMap[a])},_setSelectedItemAttr:function(a){this.set("selectedItems",
[a])},_setSelectedItemsAttr:function(a){var b=this;return this.pendingCommandsPromise=this.pendingCommandsPromise.always(r.hitch(this,function(){var c=e.map(a,function(a){return!a||r.isString(a)?a:b.model.getIdentity(a)}),f=[];e.forEach(c,function(a){f=f.concat(b._itemNodesMap[a]||[])});this.set("selectedNodes",f)}))},_setPathAttr:function(a){return a.length?V(this.set("paths",[a]).then(function(a){return a[0]})):V(this.set("paths",[]).then(function(a){return a[0]}))},_setPathsAttr:function(a){function b(a,
f){var d=a.shift(),g=e.filter(f,function(a){return a.getIdentity()==d})[0];if(g)return a.length?c._expandNode(g).then(function(){return b(a,g.getChildren())}):g;throw new R.PathError("Could not expand path at "+d);}var c=this;return V(this.pendingCommandsPromise=this.pendingCommandsPromise.always(function(){return m(e.map(a,function(a){a=e.map(a,function(a){return a&&r.isObject(a)?c.model.getIdentity(a):a});if(a.length)return b(a,[c.rootNode]);throw new R.PathError("Empty path");}))}).then(function(a){c.set("selectedNodes",
a);return c.paths}))},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this.dndController.setSelection(a)},expandAll:function(){function a(c){return b._expandNode(c).then(function(){var b=e.filter(c.getChildren()||[],function(a){return a.isExpandable});return m(e.map(b,a))})}var b=this;return V(a(this.rootNode))},collapseAll:function(){function a(c){var f=e.filter(c.getChildren()||[],function(a){return a.isExpandable}),f=m(e.map(f,a));return!c.isExpanded||
c==b.rootNode&&!b.showRoot?f:f.then(function(){return b._collapseNode(c)})}var b=this;return V(a(this.rootNode))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(a){return this.model.getLabel(a)},getIconClass:function(a,b){return!a||this.model.mayHaveChildren(a)?b?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},
_onDownArrow:function(a,b){var c=this._getNext(b);c&&c.isTreeNode&&this.focusNode(c)},_onUpArrow:function(a,b){var c=b.getPreviousSibling();if(c)for(b=c;b.isExpandable&&b.isExpanded&&b.hasChildren();)c=b.getChildren(),b=c[c.length-1];else if(c=b.getParent(),this.showRoot||c!==this.rootNode)b=c;b&&b.isTreeNode&&this.focusNode(b)},_onRightArrow:function(a,b){b.isExpandable&&!b.isExpanded?this._expandNode(b):b.hasChildren()&&(b=b.getChildren()[0])&&b.isTreeNode&&this.focusNode(b)},_onLeftArrow:function(a,
b){if(b.isExpandable&&b.isExpanded)this._collapseNode(b);else{var c=b.getParent();c&&(c.isTreeNode&&(this.showRoot||c!==this.rootNode))&&this.focusNode(c)}},focusLastChild:function(){var a=this._getLast();a&&a.isTreeNode&&this.focusNode(a)},_getFirst:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},_getLast:function(){for(var a=this.rootNode;a.isExpanded;){var b=a.getChildren();if(!b.length)break;a=b[b.length-1]}return a},_getNext:function(a){if(a.isExpandable&&a.isExpanded&&
a.hasChildren())return a.getChildren()[0];for(;a&&a.isTreeNode;){var b=a.getNextSibling();if(b)return b;a=a.getParent()}return null},childSelector:".dijitTreeRow",isExpandoNode:function(a,b){return d.isDescendant(a,b.expandoNode)||d.isDescendant(a,b.expandoNodeText)},_onNodePress:function(a,b){this.focusNode(a)},__click:function(a,b,c,f){var d=this.isExpandoNode(b.target,a);a.isExpandable&&(c||d)?this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:b}),this[f](a.item,a,
b),this.focusNode(a));b.stopPropagation();b.preventDefault()},_onClick:function(a,b){this.__click(a,b,this.openOnClick,"onClick")},_onDblClick:function(a,b){this.__click(a,b,this.openOnDblClick,"onDblClick")},_onExpandoClick:function(a){a=a.node;this.focusNode(a);a.isExpanded?this._collapseNode(a):this._expandNode(a)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(a){n.deprecated(this.declaredClass+"::_getNextNode(node) is deprecated. Use _getNext(node) instead.",
"","2.0");return this._getNext(a)},_getRootOrFirstNode:function(){n.deprecated(this.declaredClass+"::_getRootOrFirstNode() is deprecated. Use _getFirst() instead.","","2.0");return this._getFirst()},_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;if("Loading"!=a.state&&a.isExpanded){var b=a.collapse();this.onClose(a.item,a);this._state(a,!1);this._startPaint(b);return b}},_expandNode:function(a){if(a._expandNodeDeferred)return a._expandNodeDeferred;var c=this.model,f=
a.item,d=this;a._loadDeferred||(a.markProcessing(),a._loadDeferred=new b,c.getChildren(f,function(b){a.unmarkProcessing();a.setChildItems(b).then(function(){a._loadDeferred.resolve(b)})},function(b){console.error(d,": error loading "+a.label+" children: ",b);a._loadDeferred.reject(b)}));c=a._loadDeferred.then(r.hitch(this,function(){var b=a.expand();this.onOpen(a.item,a);this._state(a,!0);return b}));this._startPaint(c);return c},focusNode:function(a){var b=this.domNode.scrollLeft;this.focusChild(a);
this.domNode.scrollLeft=b},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(a){var b=this.model.getIdentity(a);if(b=this._itemNodesMap[b]){var c=this.getLabel(a),f=this.getTooltip(a);e.forEach(b,function(b){b.set({item:a,label:c,tooltip:f});b._updateItemClasses(a)})}},_onItemChildrenChange:function(a,b){var c=this.model.getIdentity(a);(c=this._itemNodesMap[c])&&e.forEach(c,function(a){a.setChildItems(b)})},_onItemDelete:function(a){a=this.model.getIdentity(a);var b=
this._itemNodesMap[a];b&&(e.forEach(b,function(a){this.dndController.removeTreeNode(a);var b=a.getParent();b&&b.removeChild(a);this.lastFocusedChild&&!d.isDescendant(this.lastFocusedChild,this.domNode)&&delete this.lastFocusedChild;this.focusedChild&&!d.isDescendant(this.focusedChild,this.domNode)&&this.focus();a.destroyRecursive()},this),delete this._itemNodesMap[a])},_initState:function(){this._openedNodes={};if(this.persist&&this.cookieName){var a=h(this.cookieName);a&&e.forEach(a.split(","),function(a){this._openedNodes[a]=
!0},this)}},_state:function(a,b){if(!this.persist)return!1;var c=e.map(a.getTreePath(),function(a){return this.model.getIdentity(a)},this).join("/");if(1===arguments.length)return this._openedNodes[c];b?this._openedNodes[c]=!0:delete this._openedNodes[c];this._saveExpandedNodes()},_saveExpandedNodes:function(){if(this.persist&&this.cookieName){var a=[],b;for(b in this._openedNodes)a.push(b);h(this.cookieName,a.join(","),{expires:365})}},destroy:function(){this._curSearch&&(this._curSearch.timer.remove(),
delete this._curSearch);this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!r.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},destroyRecursive:function(){this.destroy()},resize:function(a){a&&c.setMarginBox(this.domNode,a);this._nodePixelIndent=c.position(this.tree.indentDetector).w||this._nodePixelIndent;this.expandChildrenDeferred.then(r.hitch(this,function(){this.rootNode.set("indent",this.showRoot?0:-1);this._adjustWidths()}))},
_outstandingPaintOperations:0,_startPaint:function(a){this._outstandingPaintOperations++;this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),delete this._adjustWidthsTimer);var b=r.hitch(this,function(){this._outstandingPaintOperations--;0>=this._outstandingPaintOperations&&(!this._adjustWidthsTimer&&this._started)&&(this._adjustWidthsTimer=this.defer("_adjustWidths"))});y(a,b,b)},_adjustWidths:function(){this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),delete this._adjustWidthsTimer);
this.containerNode.style.width="auto";this.containerNode.style.width=this.domNode.scrollWidth>this.domNode.offsetWidth?"auto":"100%"},_createTreeNode:function(a){return new W(a)},focus:function(){this.lastFocusedChild?this.focusNode(this.lastFocusedChild):this.focusFirstChild()}});R.PathError=f("TreePathError");R._TreeNode=W;return R})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f){h.isAsync||a(0,function(){f(["./fx/Toggler"])});h=h.fx={};a={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}};var u=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;l.forEach(this._animations,function(a){a&&("undefined"!=typeof a.duration&&(this.duration+=a.duration),a.delay&&(this.duration+=a.delay))},this)};u.prototype=new k;e.extend(u,{_onAnimate:function(){this._fire("onAnimate",
arguments)},_onEnd:function(){this._onAnimateCtx.remove();this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=b.after(this._current,"onAnimate",e.hitch(this,"_onAnimate"),!0),this._onEndCtx=b.after(this._current,"onEnd",e.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(a,c){this._current||(this._current=this._animations[this._index=0]);if(!c&&"playing"==
this._current.status())return this;var f=b.after(this._current,"beforeBegin",e.hitch(this,function(){this._fire("beforeBegin")}),!0),d=b.after(this._current,"onBegin",e.hitch(this,function(a){this._fire("onBegin",arguments)}),!0),g=b.after(this._current,"onPlay",e.hitch(this,function(a){this._fire("onPlay",arguments);f.remove();d.remove();g.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=b.after(this._current,"onAnimate",e.hitch(this,"_onAnimate"),!0);this._onEndCtx&&
this._onEndCtx.remove();this._onEndCtx=b.after(this._current,"onEnd",e.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var a=b.after(this._current,"onPause",e.hitch(this,function(b){this._fire("onPause",arguments);a.remove()}),!0);this._current.pause()}return this},gotoPercent:function(a,b){this.pause();var c=this.duration*a;this._current=null;l.some(this._animations,function(a,b){if(c<=a.duration)return this._current=a,this._index=
b,!0;c-=a.duration;return!1},this);this._current&&this._current.gotoPercent(c/this._current.duration);b&&this.play();return this},stop:function(a){if(this._current){if(a){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var c=b.after(this._current,"onStop",e.hitch(this,function(a){this._fire("onStop",arguments);c.remove()}),!0);this._current.stop()}return this},status:function(){return this._current?this._current.status():
"stopped"},destroy:function(){this.stop();this._onAnimateCtx&&this._onAnimateCtx.remove();this._onEndCtx&&this._onEndCtx.remove()}});e.extend(u,a);h.chain=function(a){return new u(e.isArray(a)?a:Array.prototype.slice.call(a,0))};var p=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;l.forEach(a,function(a){var c=a.duration;a.delay&&(c+=a.delay);this.duration<c&&(this.duration=c);this._connects.push(b.after(a,"onEnd",e.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=
new m.Animation({curve:[0,1],duration:this.duration});var c=this;l.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(a){c._connects.push(b.after(c._pseudoAnimation,a,function(){c._fire(a,arguments)},!0))})};e.extend(p,{_doAction:function(a,b){l.forEach(this._animations,function(c){c[a].apply(c,b)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=this._pseudoAnimation;c[a].apply(c,b)},play:function(a,
b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,b){var c=this.duration*a;l.forEach(this._animations,function(a){a.gotoPercent(a.duration<c?1:c/a.duration,b)});this._call("gotoPercent",arguments);return this},stop:function(a){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},
destroy:function(){this.stop();l.forEach(this._connects,function(a){a.remove()})}});e.extend(p,a);h.combine=function(a){return new p(e.isArray(a)?a:Array.prototype.slice.call(a,0))};h.wipeIn=function(a){var c=a.node=d.byId(a.node),f=c.style,p;a=m.animateProperty(e.mixin({properties:{height:{start:function(){p=f.overflow;f.overflow="hidden";if("hidden"==f.visibility||"none"==f.display)return f.height="1px",f.display="",f.visibility="",1;var a=g.get(c,"height");return Math.max(a,1)},end:function(){return c.scrollHeight}}}},
a));var h=function(){f.height="auto";f.overflow=p};b.after(a,"onStop",h,!0);b.after(a,"onEnd",h,!0);return a};h.wipeOut=function(a){var c=(a.node=d.byId(a.node)).style,f;a=m.animateProperty(e.mixin({properties:{height:{end:1}}},a));b.after(a,"beforeBegin",function(){f=c.overflow;c.overflow="hidden";c.display=""},!0);var g=function(){c.overflow=f;c.height="auto";c.display="none"};b.after(a,"onStop",g,!0);b.after(a,"onEnd",g,!0);return a};h.slideTo=function(a){var f=null,p=null,h=function(a){return function(){var b=
g.getComputedStyle(a),d=b.position;f="absolute"==d?a.offsetTop:parseInt(b.top)||0;p="absolute"==d?a.offsetLeft:parseInt(b.left)||0;"absolute"!=d&&"relative"!=d&&(b=c.position(a,!0),f=b.y,p=b.x,a.style.position="absolute",a.style.top=f+"px",a.style.left=p+"px")}}(a.node=d.byId(a.node));h();a=m.animateProperty(e.mixin({properties:{top:a.top||0,left:a.left||0}},a));b.after(a,"beforeBegin",h,!0);return a};return h})},"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang",
"../registry","../main"],function(e,k,h,l,b){var m={};e.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),function(b){m[b]=l[b]});h.mixin(m,{defaultDuration:k.defaultDuration||200});h.mixin(b,m);return b})},"dijit/_CssStateMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-class dojo/has dojo/_base/lang dojo/on dojo/domReady dojo/touch dojo/_base/window ./a11yclick ./registry".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u){k=k("dijit._CssStateMixin",
[],{hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);e.forEach("disabled readOnly checked selected focused state hovering active _opened".split(" "),function(a){this.watch(a,m.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes||{})this._trackMouseState(this[a],this.cssStateNodes[a]);this._trackMouseState(this.domNode,this.baseClass);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseover":case "MSPointerOver":case "pointerover":this._set("hovering",
!0);this._set("active",this._mouseDown);break;case "mouseout":case "MSPointerOut":case "pointerout":this._set("hovering",!1);this._set("active",!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":this._set("active",!0);break;case "mouseup":case "dojotouchend":case "MSPointerUp":case "pointerup":case "keyup":this._set("active",!1)}},_setStateClass:function(){function a(c){b=b.concat(e.map(b,function(a){return a+c}),"dijit"+c)}var b=this.baseClass.split(" ");
this.isLeftToRight()||a("Rtl");var c="mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&a(c);this.state&&a(this.state);this.selected&&a("Selected");this._opened&&a("Opened");this.disabled?a("Disabled"):this.readOnly?a("ReadOnly"):this.active?a("Active"):this.hovering&&a("Hover");this.focused&&a("Focused");var c=this.stateNode||this.domNode,f={};e.forEach(c.className.split(" "),function(a){f[a]=!0});"_stateClasses"in this&&e.forEach(this._stateClasses,function(a){delete f[a]});e.forEach(b,
function(a){f[a]=!0});var d=[],g;for(g in f)d.push(g);c.className=d.join(" ");this._stateClasses=b},_subnodeCssMouseEvent:function(a,b,c){function f(c){l.toggle(a,b+"Active",c)}if(!this.disabled&&!this.readOnly)switch(c.type){case "mouseover":case "MSPointerOver":case "pointerover":l.toggle(a,b+"Hover",!0);break;case "mouseout":case "MSPointerOut":case "pointerout":l.toggle(a,b+"Hover",!1);f(!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":f(!0);
break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":f(!1);break;case "focus":case "focusin":l.toggle(a,b+"Focused",!0);break;case "blur":case "focusout":l.toggle(a,b+"Focused",!1)}},_trackMouseState:function(a,b){a._cssState=b}});g(function(){function b(a,c,f){if(!f||!h.isDescendant(f,c))for(;c&&c!=f;c=c.parentNode)if(c._cssState){var d=u.getEnclosingWidget(c);d&&(c==d.domNode?d._cssMouseEvent(a):d._subnodeCssMouseEvent(c,c._cssState,a))}}var g=a.body(),e;d(g,
c.over,function(a){b(a,a.target,a.relatedTarget)});d(g,c.out,function(a){b(a,a.target,a.relatedTarget)});d(g,f.press,function(a){e=a.target;b(a,e)});d(g,f.release,function(a){b(a,e);e=null});d(g,"focusin, focusout",function(a){var b=a.target;if(b._cssState&&!b.getAttribute("widgetId")){var c=u.getEnclosingWidget(b);c&&c._subnodeCssMouseEvent(b,b._cssState,a)}})});return k})},"dijit/_KeyNavMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dijit/registry dijit/_FocusMixin".split(" "),
function(e,k,h,l,b,m,d,g){return k("dijit._KeyNavMixin",g,{tabIndex:"0",childSelector:null,postCreate:function(){this.inherited(arguments);h.set(this.domNode,"tabIndex",this.tabIndex);if(!this._keyNavCodes){var c=this._keyNavCodes={};c[l.HOME]=b.hitch(this,"focusFirstChild");c[l.END]=b.hitch(this,"focusLastChild");c[this.isLeftToRight()?l.LEFT_ARROW:l.RIGHT_ARROW]=b.hitch(this,"_onLeftArrow");c[this.isLeftToRight()?l.RIGHT_ARROW:l.LEFT_ARROW]=b.hitch(this,"_onRightArrow");c[l.UP_ARROW]=b.hitch(this,
"_onUpArrow");c[l.DOWN_ARROW]=b.hitch(this,"_onDownArrow")}var a=this,c="string"==typeof this.childSelector?this.childSelector:b.hitch(this,"childSelector");this.own(m(this.domNode,"keypress",b.hitch(this,"_onContainerKeypress")),m(this.domNode,"keydown",b.hitch(this,"_onContainerKeydown")),m(this.domNode,"focus",b.hitch(this,"_onContainerFocus")),m(this.containerNode,m.selector(c,"focusin"),function(b){a._onChildFocus(d.getEnclosingWidget(this),b)}))},_onLeftArrow:function(){},_onRightArrow:function(){},
_onUpArrow:function(){},_onDownArrow:function(){},focus:function(){this.focusFirstChild()},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild())},focusLastChild:function(){this.focusChild(this._getLastFocusableChild())},focusChild:function(b,a){b&&(this.focusedChild&&b!==this.focusedChild&&this._onChildBlur(this.focusedChild),
b.set("tabIndex",this.tabIndex),b.focus(a?"end":"start"))},_onContainerFocus:function(b){b.target!==this.domNode||this.focusedChild||this.focus()},_onFocus:function(){h.set(this.domNode,"tabIndex","-1");this.inherited(arguments)},_onBlur:function(b){h.set(this.domNode,"tabIndex",this.tabIndex);this.focusedChild&&(this.focusedChild.set("tabIndex","-1"),this.lastFocusedChild=this.focusedChild,this._set("focusedChild",null));this.inherited(arguments)},_onChildFocus:function(b){b&&b!=this.focusedChild&&
(this.focusedChild&&!this.focusedChild._destroyed&&this.focusedChild.set("tabIndex","-1"),b.set("tabIndex",this.tabIndex),this.lastFocused=b,this._set("focusedChild",b))},_searchString:"",multiCharSearchDuration:1E3,onKeyboardSearch:function(b,a,f,d){b&&this.focusChild(b)},_keyboardSearchCompare:function(b,a){var f=b.domNode,f=(b.label||(f.focusNode?f.focusNode.label:"")||f.innerText||f.textContent||"").replace(/^\s+/,"").substr(0,a.length).toLowerCase();return a.length&&f==a?-1:0},_onContainerKeydown:function(b){var a=
this._keyNavCodes[b.keyCode];a?(a(b,this.focusedChild),b.stopPropagation(),b.preventDefault(),this._searchString=""):b.keyCode==l.SPACE&&(this._searchTimer&&!b.ctrlKey&&!b.altKey&&!b.metaKey)&&(b.stopImmediatePropagation(),b.preventDefault(),this._keyboardSearch(b," "))},_onContainerKeypress:function(b){b.charCode<=l.SPACE||(b.ctrlKey||b.altKey||b.metaKey)||(b.preventDefault(),b.stopPropagation(),this._keyboardSearch(b,String.fromCharCode(b.charCode).toLowerCase()))},_keyboardSearch:function(c,a){var f=
null,d,g=0;b.hitch(this,function(){this._searchTimer&&this._searchTimer.remove();this._searchString+=a;var b=/^(.)\1*$/.test(this._searchString)?1:this._searchString.length;d=this._searchString.substr(0,b);this._searchTimer=this.defer(function(){this._searchTimer=null;this._searchString=""},this.multiCharSearchDuration);var c=this.focusedChild||null;if(1==b||!c)if(c=this._getNextFocusableChild(c,1),!c)return;b=c;do{var e=this._keyboardSearchCompare(c,d);e&&0==g++&&(f=c);if(-1==e){g=-1;break}c=this._getNextFocusableChild(c,
1)}while(c&&c!=b)})();this.onKeyboardSearch(f,c,d,g)},_onChildBlur:function(){},_getNextFocusableChild:function(b,a){var f=b;do{if(b)b=this._getNext(b,a);else if(b=this[0<a?"_getFirst":"_getLast"](),!b)break;if(null!=b&&b!=f&&b.isFocusable())return b}while(b!=f);return null},_getFirst:function(){return null},_getLast:function(){return null},_getNext:function(b,a){if(b)for(b=b.domNode;b;)if((b=b[0>a?"previousSibling":"nextSibling"])&&"getAttribute"in b){var f=d.byNode(b);if(f)return f}return null}})})},
"dijit/tree/TreeStoreModel":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang"],function(e,k,h,l){return h("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(b){l.mixin(this,b);this.connects=[];b=this.store;if(!b.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.tree.TreeStoreModel: store must support dojo.data.Identity");b.getFeatures()["dojo.data.api.Notification"]&&
(this.connects=this.connects.concat([k.after(b,"onNew",l.hitch(this,"onNewItem"),!0),k.after(b,"onDelete",l.hitch(this,"onDeleteItem"),!0),k.after(b,"onSet",l.hitch(this,"onSetItem"),!0)]))},destroy:function(){for(var b;b=this.connects.pop();)b.remove()},getRoot:function(b,e){this.root?b(this.root):this.store.fetch({query:this.query,onComplete:l.hitch(this,function(d){if(1!=d.length)throw Error("dijit.tree.TreeStoreModel: root query returned "+d.length+" items, but must return exactly one");this.root=
d[0];b(this.root)}),onError:e})},mayHaveChildren:function(b){return e.some(this.childrenAttrs,function(e){return this.store.hasAttribute(b,e)},this)},getChildren:function(b,h,d){var g=this.store;if(g.isItemLoaded(b)){for(var c=[],a=0;a<this.childrenAttrs.length;a++)var f=g.getValues(b,this.childrenAttrs[a]),c=c.concat(f);var k=0;this.deferItemLoadingUntilExpand||e.forEach(c,function(a){g.isItemLoaded(a)||k++});0==k?h(c):e.forEach(c,function(a,b){g.isItemLoaded(a)||g.loadItem({item:a,onItem:function(a){c[b]=
a;0==--k&&h(c)},onError:d})})}else{var p=l.hitch(this,arguments.callee);g.loadItem({item:b,onItem:function(a){p(a,h,d)},onError:d})}},isItem:function(b){return this.store.isItem(b)},fetchItemByIdentity:function(b){this.store.fetchItemByIdentity(b)},getIdentity:function(b){return this.store.getIdentity(b)},getLabel:function(b){return this.labelAttr?this.store.getValue(b,this.labelAttr):this.store.getLabel(b)},newItem:function(b,e,d){var g={parent:e,attribute:this.childrenAttrs[0]},c;this.newItemIdAttr&&
b[this.newItemIdAttr]?this.fetchItemByIdentity({identity:b[this.newItemIdAttr],scope:this,onItem:function(a){a?this.pasteItem(a,null,e,!0,d):(c=this.store.newItem(b,g))&&void 0!=d&&this.pasteItem(c,e,e,!1,d)}}):(c=this.store.newItem(b,g))&&void 0!=d&&this.pasteItem(c,e,e,!1,d)},pasteItem:function(b,h,d,g,c){var a=this.store,f=this.childrenAttrs[0];h&&e.forEach(this.childrenAttrs,function(c){if(a.containsValue(h,c,b)){if(!g){var d=e.filter(a.getValues(h,c),function(a){return a!=b});a.setValues(h,c,
d)}f=c}});if(d)if("number"==typeof c){var l=a.getValues(d,f).slice();l.splice(c,0,b);a.setValues(d,f,l)}else a.setValues(d,f,a.getValues(d,f).concat(b))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(b,e){e&&this.getChildren(e.item,l.hitch(this,function(b){this.onChildrenChange(e.item,b)}))},onDeleteItem:function(b){this.onDelete(b)},onSetItem:function(b,h){if(-1!=e.indexOf(this.childrenAttrs,h))this.getChildren(b,l.hitch(this,function(d){this.onChildrenChange(b,
d)}));else this.onChange(b)}})})},"dijit/tree/ForestStoreModel":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","./TreeStoreModel"],function(e,k,h,l,b){return k("dijit.tree.ForestStoreModel",b,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(b){this.root={store:this,root:!0,id:b.rootId,label:b.rootLabel,children:b.rootChildren}},mayHaveChildren:function(b){return b===this.root||this.inherited(arguments)},getChildren:function(b,d,g){b===
this.root?this.root.children?d(this.root.children):this.store.fetch({query:this.query,onComplete:l.hitch(this,function(b){this.root.children=b;d(b)}),onError:g}):this.inherited(arguments)},isItem:function(b){return b===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(b){if(b.identity==this.root.id){var d=b.scope||h.global;b.onItem&&b.onItem.call(d,this.root)}else this.inherited(arguments)},getIdentity:function(b){return b===this.root?this.root.id:this.inherited(arguments)},getLabel:function(b){return b===
this.root?this.root.label:this.inherited(arguments)},newItem:function(b,d,g){return d===this.root?(this.onNewRootItem(b),this.store.newItem(b)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(b,d,g,c,a){if(d===this.root&&!c)this.onLeaveRoot(b);this.inherited(arguments,[b,d===this.root?null:d,g===this.root?null:g,c,a]);if(g===this.root)this.onAddToRoot(b)},onAddToRoot:function(b){},onLeaveRoot:function(b){},_requeryTop:function(){var b=this.root.children||[];this.store.fetch({query:this.query,
onComplete:l.hitch(this,function(d){this.root.children=d;if(b.length!=d.length||e.some(b,function(b,c){return d[c]!=b}))this.onChildrenChange(this.root,d)})})},onNewItem:function(b,d){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(b){-1!=e.indexOf(this.root.children,b)&&this._requeryTop();this.inherited(arguments)},onSetItem:function(b,d,g,c){this._requeryTop();this.inherited(arguments)}})})},"dijit/tree/_dndSelector":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/dnd/common dojo/dom dojo/mouse dojo/on dojo/touch ../a11yclick ./_dndContainer".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f){return k("dijit.tree._dndSelector",f,{constructor:function(){this.selection={};this.anchor=null;this.events.push(g(this.tree.domNode,c.press,l.hitch(this,"onMouseDown")),g(this.tree.domNode,c.release,l.hitch(this,"onMouseUp")),g(this.tree.domNode,c.move,l.hitch(this,"onMouseMove")),g(this.tree.domNode,a.press,l.hitch(this,"onClickPress")),g(this.tree.domNode,a.release,l.hitch(this,"onClickRelease")))},singular:!1,getSelectedTreeNodes:function(){var a=[],b=this.selection,
c;for(c in b)a.push(b[c]);return a},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,b){this.setSelection(this.getSelectedTreeNodes().concat([a]));b&&(this.anchor=a);return a},removeTreeNode:function(a){var b=e.filter(this.getSelectedTreeNodes(),function(b){return!m.isDescendant(b.domNode,a.domNode)});this.setSelection(b);return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},
setSelection:function(a){var b=this.getSelectedTreeNodes();e.forEach(this._setDifference(b,a),l.hitch(this,function(a){a.setSelected(!1);this.anchor==a&&delete this.anchor;delete this.selection[a.id]}));e.forEach(this._setDifference(a,b),l.hitch(this,function(a){a.setSelected(!0);this.selection[a.id]=a}));this._updateSelectionProperties()},_setDifference:function(a,b){e.forEach(b,function(a){a.__exclude__=!0});var c=e.filter(a,function(a){return!a.__exclude__});e.forEach(b,function(a){delete a.__exclude__});
return c},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),b=[],c=[];e.forEach(a,function(a){var f=a.getTreePath();c.push(a);b.push(f)},this);a=e.map(c,function(a){return a.item});this.tree._set("paths",b);this.tree._set("path",b[0]||[]);this.tree._set("selectedNodes",c);this.tree._set("selectedNode",c[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onClickPress:function(a){if(!this.current||!this.current.isExpandable||!this.tree.isExpandoNode(a.target,
this.current)){"mousedown"==a.type&&d.isLeft(a)&&a.preventDefault();var c="keydown"==a.type?this.tree.focusedChild:this.current;if(c){var f=b.getCopyKeyState(a),g=c.id;!this.singular&&!a.shiftKey&&this.selection[g]?this._doDeselect=!0:(this._doDeselect=!1,this.userSelect(c,f,a.shiftKey))}}},onClickRelease:function(a){this._doDeselect&&(this._doDeselect=!1,this.userSelect("keyup"==a.type?this.tree.focusedChild:this.current,b.getCopyKeyState(a),a.shiftKey))},onMouseMove:function(){this._doDeselect=
!1},onMouseDown:function(){},onMouseUp:function(){},_compareNodes:function(a,b){if(a===b)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-b.sourceIndex;if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(b)&2?1:-1;if(document.createRange){var c=doc.createRange();c.setStartBefore(a);var f=doc.createRange();f.setStartBefore(b);return c.compareBoundaryPoints(c.END_TO_END,f)}throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");
},userSelect:function(a,b,c){if(this.singular)this.anchor==a&&b?this.selectNone():(this.setSelection([a]),this.anchor=a);else if(c&&this.anchor){b=this._compareNodes(this.anchor.rowNode,a.rowNode);c=this.anchor;0>b?b=c:(b=a,a=c);for(c=[];b!=a;)c.push(b),b=this.tree._getNext(b);c.push(a);this.setSelection(c)}else this.selection[a.id]&&b?this.removeTreeNode(a):b?this.addTreeNode(a,!0):(this.setSelection([a]),this.anchor=a)},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},forInSelectedItems:function(a,
b){b=b||h.global;for(var c in this.selection)a.call(b,this.getItem(c),c,this)}})})},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(e,k,h,l){var b=h.getObject("dojo.dnd",!0);b.getCopyKeyState=function(b){return b[e("mac")?"metaKey":"ctrlKey"]};b._uniqueId=0;b.getUniqueId=function(){var e;do e=k._scopeName+"Unique"+ ++b._uniqueId;while(l.byId(e));return e};b._empty={};b.isFormElement=function(b){b=b.target;3==b.nodeType&&(b=b.parentNode);return 0<=
" a button textarea input select option ".indexOf(" "+b.tagName.toLowerCase()+" ")};return b})},"dijit/tree/_dndContainer":function(){define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/on dojo/touch".split(" "),function(e,k,h,l,b,m){return k("dijit.tree._dndContainer",null,{constructor:function(d,g){this.tree=d;this.node=d.domNode;l.mixin(this,g);this.containerState="";h.add(this.node,"dojoDndContainer");this.events=[b(this.node,m.enter,l.hitch(this,"onOverEvent")),b(this.node,
m.leave,l.hitch(this,"onOutEvent")),e.after(this.tree,"_onNodeMouseEnter",l.hitch(this,"onMouseOver"),!0),e.after(this.tree,"_onNodeMouseLeave",l.hitch(this,"onMouseOut"),!0),b(this.node,"dragstart, selectstart",function(b){b.preventDefault()})]},destroy:function(){for(var b;b=this.events.pop();)b.remove();this.node=this.parent=null},onMouseOver:function(b){this.current=b},onMouseOut:function(){this.current=null},_changeState:function(b,g){var c="dojoDnd"+b,a=b.toLowerCase()+"State";h.replace(this.node,
c+g,c+this[a]);this[a]=g},_addItemClass:function(b,g){h.add(b,"dojoDndItem"+g)},_removeItemClass:function(b,g){h.remove(b,"dojoDndItem"+g)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}})})},"dijit/Menu":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ./popup ./DropDownMenu dojo/ready".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){f("dijit-legacy-requires")&&r(0,function(){e(["dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"])});return h("dijit.Menu",q,{constructor:function(){this._bindings=[]},targetNodeIds:[],selector:"",contextMenuForWindow:!1,leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(this.ownerDocumentBody):k.forEach(this.targetNodeIds,this.bindDomNode,this);this.inherited(arguments)},_iframeContentWindow:function(a){return p.get(this._iframeContentDocument(a))||
this._iframeContentDocument(a).__parent__||a.name&&document.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&document.frames[a.name]&&document.frames[a.name].document||null},bindDomNode:function(f){f=l.byId(f,this.ownerDocument);var d;if("iframe"==f.tagName.toLowerCase()){var e=f;d=this._iframeContentWindow(e);d=u.body(d.document)}else d=f==u.body(this.ownerDocument)?this.ownerDocument.documentElement:f;var h={node:f,
iframe:e};b.set(f,"_dijitMenu"+this.id,this._bindings.push(h));var n=c.hitch(this,function(b){var c=this.selector,f=c?function(b){return a.selector(c,b)}:function(a){return a},d=this;return[a(b,f(this.leftClickToOpen?"click":"contextmenu"),function(a){a.stopPropagation();a.preventDefault();(new Date).getTime()<d._lastKeyDown+500||d._scheduleOpen(this,e,{x:a.pageX,y:a.pageY},a.target)}),a(b,f("keydown"),function(a){if(93==a.keyCode||a.shiftKey&&a.keyCode==g.F10||d.leftClickToOpen&&a.keyCode==g.SPACE)a.stopPropagation(),
a.preventDefault(),d._scheduleOpen(this,e,null,a.target),d._lastKeyDown=(new Date).getTime()})]});h.connects=d?n(d):[];e&&(h.onloadHandler=c.hitch(this,function(){var a=this._iframeContentWindow(e),a=u.body(a.document);h.connects=n(a)}),e.addEventListener?e.addEventListener("load",h.onloadHandler,!1):e.attachEvent("onload",h.onloadHandler))},unBindDomNode:function(a){var c;try{c=l.byId(a,this.ownerDocument)}catch(f){return}a="_dijitMenu"+this.id;if(c&&b.has(c,a)){for(var d=b.get(c,a)-1,g=this._bindings[d],
e;e=g.connects.pop();)e.remove();(e=g.iframe)&&(e.removeEventListener?e.removeEventListener("load",g.onloadHandler,!1):e.detachEvent("onload",g.onloadHandler));b.remove(c,a);delete this._bindings[d]}},_scheduleOpen:function(a,b,c,f){this._openTimer||(this._openTimer=this.defer(function(){delete this._openTimer;this._openMyself({target:f,delegatedTarget:a,iframe:b,coords:c})},1))},_openMyself:function(a){function b(){k.refocus&&u&&u.focus();n.close(k)}var c=a.target,g=a.iframe,e=a.coords,h=!e;this.currentTarget=
a.delegatedTarget;if(e){if(g){a=m.position(g,!0);var c=this._iframeContentWindow(g),c=m.docScroll(c.document),p=d.getComputedStyle(g),q=d.toPixelValue,r=(f("ie")&&f("quirks")?0:q(g,p.paddingLeft))+(f("ie")&&f("quirks")?q(g,p.borderLeftWidth):0),g=(f("ie")&&f("quirks")?0:q(g,p.paddingTop))+(f("ie")&&f("quirks")?q(g,p.borderTopWidth):0);e.x+=a.x+r-c.x;e.y+=a.y+g-c.y}}else e=m.position(c,!0),e.x+=10,e.y+=10;var k=this,g=this._focusManager.get("prevNode");a=this._focusManager.get("curNode");var u=!a||
l.isDescendant(a,this.domNode)?g:a;n.open({popup:this,x:e.x,y:e.y,onExecute:b,onCancel:b,orient:this.isLeftToRight()?"L":"R"});this.focus();h||this.defer(function(){this._cleanUp(!0)});this._onBlur=function(){this.inherited("_onBlur",arguments);n.close(this)}},destroy:function(){k.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}})})},"dijit/popup":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on ./place ./BackgroundIframe ./Viewport ./main dojo/touch".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){function s(){this._popupWrapper&&(m.destroy(this._popupWrapper),delete this._popupWrapper)}h=h(null,{_stack:[],_beginZIndex:1E3,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var a=this._firstAroundPosition,b=d.position(this._firstAroundNode,!0),c=b.x-a.x,a=b.y-a.y;if(c||a){this._firstAroundPosition=b;for(b=0;b<this._stack.length;b++){var g=this._stack[b].wrapper.style;g.top=parseFloat(g.top)+a+"px";"auto"==g.right?g.left=parseFloat(g.left)+
c+"px":g.right=parseFloat(g.right)-c+"px"}}this._aroundMoveListener=setTimeout(f.hitch(this,"_repositionAll"),c||a?10:50)}},_createWrapper:function(a){var b=a._popupWrapper,c=a.domNode;b||(b=m.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":a["aria-label"]||a.label||a.name||a.id},a.ownerDocumentBody),b.appendChild(c),c=c.style,c.display="",c.visibility="",c.position="",c.top="0px",a._popupWrapper=b,k.after(a,"destroy",s,!0),"ontouchend"in document&&u(b,"touchend",
function(a){/^(input|button|textarea)$/i.test(a.target.tagName)||a.preventDefault()}),b.dojoClick=!0);return b},moveOffScreen:function(a){var b=this._createWrapper(a);a=d.isBodyLtr(a.ownerDocument);var c={visibility:"hidden",top:"-9999px",display:""};c[a?"left":"right"]="-9999px";c[a?"right":"left"]="auto";g.set(b,c);return b},hide:function(a){var b=this._createWrapper(a);g.set(b,{display:"none",height:"auto",overflowY:"visible",border:""});a=a.domNode;"_originalStyle"in a&&(a.style.cssText=a._originalStyle)},
getTopPopup:function(){for(var a=this._stack,b=a.length-1;0<b&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(e){var h=this._stack,s=e.popup,r=s.domNode,m=e.orient||["below","below-alt","above","above-alt"],k=e.parent?e.parent.isLeftToRight():d.isBodyLtr(s.ownerDocument),F=e.around,K=e.around&&e.around.id?e.around.id+"_dropdown":"popup_"+this._idGen++;if(!e.doNotClose)for(;h.length&&(!e.parent||!l.isDescendant(e.parent.domNode,h[h.length-1].widget.domNode));)this.close(h[h.length-1].widget);
var G=this.moveOffScreen(s);s.startup&&!s._started&&s.startup();var I,O=d.position(r);if("maxHeight"in e&&-1!=e.maxHeight)I=e.maxHeight||Infinity;else{I=q.getEffectiveBox(this.ownerDocument);var N=F?d.position(F,!1):{y:e.y-(e.padding||0),h:2*(e.padding||0)};I=Math.floor(Math.max(N.y,I.h-(N.y+N.h)))}O.h>I&&(O=g.getComputedStyle(r),g.set(G,{overflowY:"scroll",height:I+"px",border:O.borderLeftWidth+" "+O.borderLeftStyle+" "+O.borderLeftColor}),r._originalStyle=r.style.cssText,r.style.border="none");
b.set(G,{id:K,style:{zIndex:this._beginZIndex+h.length},"class":"dijitPopup "+(s.baseClass||s["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:e.parent?e.parent.id:""});0==h.length&&F&&(this._firstAroundNode=F,this._firstAroundPosition=d.position(F,!0),this._aroundMoveListener=setTimeout(f.hitch(this,"_repositionAll"),50));c("config-bgIframe")&&!s.bgIframe&&(s.bgIframe=new n(G));K=s.orient?f.hitch(s,"orient"):null;m=F?p.around(G,F,m,k,K):p.at(G,e,"R"==m?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],
e.padding,K);G.style.visibility="visible";r.style.visibility="visible";r=[];r.push(u(G,"keydown",f.hitch(this,function(b){if(b.keyCode==a.ESCAPE&&e.onCancel)b.stopPropagation(),b.preventDefault(),e.onCancel();else if(b.keyCode==a.TAB&&(b.stopPropagation(),b.preventDefault(),(b=this.getTopPopup())&&b.onCancel))b.onCancel()})));s.onCancel&&e.onCancel&&r.push(s.on("cancel",e.onCancel));r.push(s.on(s.onExecute?"execute":"change",f.hitch(this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()})));
h.push({widget:s,wrapper:G,parent:e.parent,onExecute:e.onExecute,onCancel:e.onCancel,onClose:e.onClose,handlers:r});if(s.onOpen)s.onOpen(m);return m},close:function(a){for(var b=this._stack;a&&e.some(b,function(b){return b.widget==a})||!a&&b.length;){var c=b.pop(),f=c.widget,d=c.onClose;f.bgIframe&&(f.bgIframe.destroy(),delete f.bgIframe);if(f.onClose)f.onClose();for(var g;g=c.handlers.pop();)g.remove();f&&f.domNode&&this.hide(f);d&&d()}0==b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),
this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return r.popup=new h})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(e,k,h,l,b,m,d){function g(a,c,d,g){var n=m.getEffectiveBox(a.ownerDocument);(!a.parentNode||"body"!=String(a.parentNode.tagName).toLowerCase())&&b.body(a.ownerDocument).appendChild(a);var q=null;e.some(c,function(b){var c=b.corner,f=b.pos,
e=0,h={w:{L:n.l+n.w-f.x,R:f.x-n.l,M:n.w}[c.charAt(1)],h:{T:n.t+n.h-f.y,B:f.y-n.t,M:n.h}[c.charAt(0)]},l=a.style;l.left=l.right="auto";d&&(e=d(a,b.aroundCorner,c,h,g),e="undefined"==typeof e?0:e);var s=a.style,r=s.display,m=s.visibility;"none"==s.display&&(s.visibility="hidden",s.display="");l=k.position(a);s.display=r;s.visibility=m;r={L:f.x,R:f.x-l.w,M:Math.max(n.l,Math.min(n.l+n.w,f.x+(l.w>>1))-l.w)}[c.charAt(1)];m={T:f.y,B:f.y-l.h,M:Math.max(n.t,Math.min(n.t+n.h,f.y+(l.h>>1))-l.h)}[c.charAt(0)];
f=Math.max(n.l,r);s=Math.max(n.t,m);r=Math.min(n.l+n.w,r+l.w);m=Math.min(n.t+n.h,m+l.h);r-=f;m-=s;e+=l.w-r+(l.h-m);if(null==q||e<q.overflow)q={corner:c,aroundCorner:b.aroundCorner,x:f,y:s,w:r,h:m,overflow:e,spaceAvailable:h};return!e});q.overflow&&d&&d(a,q.aroundCorner,q.corner,q.spaceAvailable,g);c=q.y;var l=q.x,s=b.body(a.ownerDocument);/relative|absolute/.test(h.get(s,"position"))&&(c-=h.get(s,"marginTop"),l-=h.get(s,"marginLeft"));s=a.style;s.top=c+"px";s.left=l+"px";s.right="auto";return q}var c=
{TL:"BR",TR:"BL",BL:"TR",BR:"TL"};return d.place={at:function(a,b,d,h,n){d=e.map(d,function(a){var d={corner:a,aroundCorner:c[a],pos:{x:b.x,y:b.y}};h&&(d.pos.x+="L"==a.charAt(1)?h.x:-h.x,d.pos.y+="T"==a.charAt(0)?h.y:-h.y);return d});return g(a,d,n)},around:function(a,b,c,d,n){function q(a,b){G.push({aroundCorner:a,corner:b,pos:{x:{L:B,R:B+F,M:B+(F>>1)}[a.charAt(1)],y:{T:C,B:C+K,M:C+(K>>1)}[a.charAt(0)]}})}var r;if("string"==typeof b||"offsetWidth"in b||"ownerSVGElement"in b){if(r=k.position(b,!0),
/^(above|below)/.test(c[0])){var s=k.getBorderExtents(b),m=b.firstChild?k.getBorderExtents(b.firstChild):{t:0,l:0,b:0,r:0},w=k.getBorderExtents(a),y=a.firstChild?k.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0};r.y+=Math.min(s.t+m.t,w.t+y.t);r.h-=Math.min(s.t+m.t,w.t+y.t)+Math.min(s.b+m.b,w.b+y.b)}}else r=b;if(b.parentNode){s="absolute"==h.getComputedStyle(b).position;for(b=b.parentNode;b&&1==b.nodeType&&"BODY"!=b.nodeName;){m=k.position(b,!0);w=h.getComputedStyle(b);/relative|absolute/.test(w.position)&&
(s=!1);if(!s&&/hidden|auto|scroll/.test(w.overflow)){var y=Math.min(r.y+r.h,m.y+m.h),A=Math.min(r.x+r.w,m.x+m.w);r.x=Math.max(r.x,m.x);r.y=Math.max(r.y,m.y);r.h=y-r.y;r.w=A-r.x}"absolute"==w.position&&(s=!0);b=b.parentNode}}var B=r.x,C=r.y,F="w"in r?r.w:r.w=r.width,K="h"in r?r.h:(l.deprecated("place.around: dijit/place.__Rectangle: { x:"+B+", y:"+C+", height:"+r.height+", width:"+F+" } has been deprecated. Please use { x:"+B+", y:"+C+", h:"+r.height+", w:"+F+" }","","2.0"),r.h=r.height),G=[];e.forEach(c,
function(a){var b=d;switch(a){case "above-centered":q("TM","BM");break;case "below-centered":q("BM","TM");break;case "after-centered":b=!b;case "before-centered":q(b?"ML":"MR",b?"MR":"ML");break;case "after":b=!b;case "before":q(b?"TL":"TR",b?"TR":"TL");q(b?"BL":"BR",b?"BR":"BL");break;case "below-alt":b=!b;case "below":q(b?"BL":"BR",b?"TL":"TR");q(b?"BR":"BL",b?"TR":"TL");break;case "above-alt":b=!b;case "above":q(b?"TL":"TR",b?"BL":"BR");q(b?"TR":"TL",b?"BR":"BL");break;default:q(a.aroundCorner,
a.corner)}});a=g(a,G,n,{w:F,h:K});a.aroundNodePos=r;return a}}})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),function(e,k,h,l,b,m,d,g){g.add("config-bgIframe",g("ie")&&!/IEMobile\/10\.0/.test(navigator.userAgent)||g("trident")&&/Windows NT 6.[01]/.test(navigator.userAgent));var c=new function(){var a=[];this.pop=function(){var c;a.length?(c=a.pop(),c.style.display=""):(9>g("ie")?(c="\x3ciframe src\x3d'"+
(h.dojoBlankHtmlUrl||e.toUrl("dojo/resources/blank.html")||'javascript:""')+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e",c=document.createElement(c)):(c=l.create("iframe"),c.src='javascript:""',c.className="dijitBackgroundIframe",c.setAttribute("role","presentation"),b.set(c,"opacity",0.1)),c.tabIndex=-1);return c};this.push=function(b){b.style.display="none";a.push(b)}};k.BackgroundIframe=function(a){if(!a.id)throw Error("no id");
if(g("config-bgIframe")){var f=this.iframe=c.pop();a.appendChild(f);7>g("ie")||g("quirks")?(this.resize(a),this._conn=d(a,"resize",m.hitch(this,"resize",a))):b.set(f,{width:"100%",height:"100%"})}};m.extend(k.BackgroundIframe,{resize:function(a){this.iframe&&b.set(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),c.push(this.iframe),delete this.iframe)}});
return k.BackgroundIframe})},"dijit/DropDownMenu":function(){define(["dojo/_base/declare","dojo/keys","dojo/text!./templates/Menu.html","./_MenuBase"],function(e,k,h,l){return e("dijit.DropDownMenu",l,{templateString:h,baseClass:"dijitMenu",_onUpArrow:function(){this.focusPrev()},_onDownArrow:function(){this.focusNext()},_onRightArrow:function(b){this._moveToPopup(b);b.stopPropagation();b.preventDefault()},_onLeftArrow:function(b){if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();
else this.onCancel(!1);else b.stopPropagation(),b.preventDefault()}})})},"dijit/_MenuBase":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/lang dojo/mouse dojo/on dojo/window ./a11yclick ./registry ./_Widget ./_CssStateMixin ./_KeyNavContainer ./_TemplatedMixin".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q){return k("dijit._MenuBase",[u,q,n,p],{selected:null,_setSelectedAttr:function(a){this.selected!=a&&(this.selected&&(this.selected._setSelected(!1),
this._onChildDeselect(this.selected)),a&&a._setSelected(!0),this._set("selected",a))},activated:!1,_setActivatedAttr:function(a){b.toggle(this.domNode,"dijitMenuActive",a);b.toggle(this.domNode,"dijitMenuPassive",!a);this._set("activated",a)},parentMenu:null,popupDelay:500,passivePopupDelay:Infinity,autoFocus:!1,childSelector:function(a){var b=f.byNode(a);return a.parentNode==this.containerNode&&b&&b.focus},postCreate:function(){var b=this,c="string"==typeof this.childSelector?this.childSelector:
m.hitch(this,"childSelector");this.own(g(this.containerNode,g.selector(c,d.enter),function(){b.onItemHover(f.byNode(this))}),g(this.containerNode,g.selector(c,d.leave),function(){b.onItemUnhover(f.byNode(this))}),g(this.containerNode,g.selector(c,a),function(a){b.onItemClick(f.byNode(this),a);a.stopPropagation()}),g(this.containerNode,g.selector(c,"focusin"),function(){b._onItemFocus(f.byNode(this))}));this.inherited(arguments)},onKeyboardSearch:function(a,b,c,f){this.inherited(arguments);if(a&&(-1==
f||a.popup&&1==f))this.onItemClick(a,b)},_keyboardSearchCompare:function(a,b){return a.shortcutKey?b==a.shortcutKey.toLowerCase()?-1:0:this.inherited(arguments)?1:0},onExecute:function(){},onCancel:function(){},_moveToPopup:function(a){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.onItemClick(this.focusedChild,a);else(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){this.set("selected",this.currentPopupItem);this._stopPendingCloseTimer()},
onItemHover:function(a){this.activated?(this.set("selected",a),a.popup&&(!a.disabled&&!this.hover_timer)&&(this.hover_timer=this.defer(function(){this._openItemPopup(a)},this.popupDelay))):Infinity>this.passivePopupDelay&&(this.passive_hover_timer&&this.passive_hover_timer.remove(),this.passive_hover_timer=this.defer(function(){this.onItemClick(a,{type:"click"})},this.passivePopupDelay));this._hoveredChild=a;a._set("hovering",!0)},_onChildDeselect:function(a){this._stopPopupTimer();this.currentPopupItem==
a&&(this._stopPendingCloseTimer(),this._pendingClose_timer=this.defer(function(){this.currentPopupItem=this._pendingClose_timer=null;a._closePopup()},this.popupDelay))},onItemUnhover:function(a){this._hoveredChild==a&&(this._hoveredChild=null);this.passive_hover_timer&&(this.passive_hover_timer.remove(),this.passive_hover_timer=null);a._set("hovering",!1)},_stopPopupTimer:function(){this.hover_timer&&(this.hover_timer=this.hover_timer.remove())},_stopPendingCloseTimer:function(){this._pendingClose_timer&&
(this._pendingClose_timer=this._pendingClose_timer.remove())},_getTopMenu:function(){for(var a=this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,b){this.passive_hover_timer&&this.passive_hover_timer.remove();this.focusChild(a);if(a.disabled)return!1;if(a.popup){this.set("selected",a);this.set("activated",!0);var c=/^key/.test(b._origType||b.type)||0==b.clientX&&0==b.clientY;this._openItemPopup(a,c)}else this.onExecute(),a._onClick?a._onClick(b):a.onClick(b)},_openItemPopup:function(a,
b){if(a!=this.currentPopupItem){this.currentPopupItem&&(this._stopPendingCloseTimer(),this.currentPopupItem._closePopup());this._stopPopupTimer();var c=a.popup;c.parentMenu=this;this.own(this._mouseoverHandle=g.once(c.domNode,"mouseover",m.hitch(this,"_onPopupHover")));var f=this;a._openPopup({parent:this,orient:this._orient||["after","before"],onCancel:function(){b&&f.focusChild(a);f._cleanUp()},onExecute:m.hitch(this,"_cleanUp",!0),onClose:function(){f._mouseoverHandle&&(f._mouseoverHandle.remove(),
delete f._mouseoverHandle)}},b);this.currentPopupItem=a}},onOpen:function(){this.isShowingNow=!0;this.set("activated",!0)},onClose:function(){this.set("activated",!1);this.set("selected",null);this.isShowingNow=!1;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();this.currentPopupItem&&(this.focused&&(l.set(this.selected.focusNode,"tabIndex",this.tabIndex),this.selected.focusNode.focus()),this.currentPopupItem._closePopup(),this.currentPopupItem=null)},_onItemFocus:function(a){if(this._hoveredChild&&
this._hoveredChild!=a)this.onItemUnhover(this._hoveredChild);this.set("selected",a)},_onBlur:function(){this._cleanUp(!0);this.inherited(arguments)},_cleanUp:function(a){this._closeChild();"undefined"==typeof this.isShowingNow&&this.set("activated",!1);a&&this.set("selected",null)}})})},"dijit/_KeyNavContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/keys dojo/_base/lang ./registry ./_Container ./_FocusMixin ./_KeyNavMixin".split(" "),function(e,
k,h,l,b,m,d,g,c,a){return k("dijit._KeyNavContainer",[c,a,g],{connectKeyNavHandlers:function(a,c){var d=this._keyNavCodes={},g=m.hitch(this,"focusPrev"),h=m.hitch(this,"focusNext");e.forEach(a,function(a){d[a]=g});e.forEach(c,function(a){d[a]=h});d[b.HOME]=m.hitch(this,"focusFirstChild");d[b.END]=m.hitch(this,"focusLastChild")},startupKeyNavChildren:function(){l.deprecated("startupKeyNavChildren() call no longer needed","","2.0")},startup:function(){this.inherited(arguments);e.forEach(this.getChildren(),
m.hitch(this,"_startupChild"))},addChild:function(a,b){this.inherited(arguments);this._startupChild(a)},_startupChild:function(a){a.set("tabIndex","-1")},_getFirst:function(){var a=this.getChildren();return a.length?a[0]:null},_getLast:function(){var a=this.getChildren();return a.length?a[a.length-1]:null},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},childSelector:function(a){return(a=
d.byNode(a))&&a.getParent()==this}})})},"dijit/MenuItem":function(){define("dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/kernel dojo/sniff dojo/_base/lang ./_Widget ./_TemplatedMixin ./_Contained ./_CssStateMixin dojo/text!./templates/MenuItem.html".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u){return e("dijit.MenuItem",[g,c,a,f],{templateString:u,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(a){this._set("label",a);var b="",c,f=a;"object"===typeof f&&(f=f.label||
f.value);"string"===typeof f&&(c=f.search(/{\S}/),0<=c?(b=f.charAt(c+1),a=f.substr(0,c),f=f.substr(c+3),c=a+b+f,a=a+'\x3cspan class\x3d"dijitMenuItemShortcutKey"\x3e'+b+"\x3c/span\x3e"+f):c=f,this.domNode.setAttribute("aria-label",c+" "+this.accelKey));this.containerNode.innerHTML=a;this._set("shortcutKey",b)},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:!1,_fillContent:function(a){a&&!("label"in this.params)&&this._set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);
h.set(this.containerNode,"id",this.id+"_text");this.accelKeyNode&&h.set(this.accelKeyNode,"id",this.id+"_accel");k.setSelectable(this.domNode,!1)},onClick:function(){},focus:function(){try{8==m("ie")&&this.containerNode.focus(),this.focusNode.focus()}catch(a){}},_setSelected:function(a){l.toggle(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){b.deprecated("dijit.MenuItem.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",a)},setDisabled:function(a){b.deprecated("dijit.Menu.setDisabled() is deprecated. Use set('disabled', bool) instead.",
"","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){this.focusNode.setAttribute("aria-disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode&&(this.accelKeyNode.style.display=a?"":"none",this.accelKeyNode.innerHTML=a,h.set(this.containerNode,"colSpan",a?"1":"2"));this._set("accelKey",a)}})})},"webview/widgets/ModelViewer":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/dom-style dojo/topic dijit/layout/BorderContainer dijit/layout/TabContainer ./ViewAllTab ./DiagramTab ../palette/Palette ../palette/ModelBrowserButton ../palette/ExplorerBarButton ../palette/PaletteSeparator ../palette/PaletteSpacer ../palette/FitToViewButton ../palette/MarqueeZoomButton ../palette/OptionalViewButton ../search/SearchResultsPane ./ExplorerBar".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w){var y=e([d],{selectChild:function(a,b){var c=this.modelViewer,f=c.explorerBar,d=this.selectedChildWidget;if(d&&d!==a&&d.onPreHide)d.onPreHide();this.inherited(arguments);this._started&&(c.get("showExplorerBar")?(a.addChild(f),f.update(a.diagram)):a.removeChild(f),c.set("showPaletteNavButtons",a.showPaletteNavButtons),"SystemTab"===a.role&&(c.selectedDiagramTab=a,c.selectedDiagram=a.diagram),c.selectedTab=a,c.resize(),(!b||!1!==b.doFocus)&&c.focus())},
addChild:function(){this.inherited(arguments);this._started&&this._updateTabCloseButtons()},removeChild:function(a){this.inherited(arguments);this._started&&(this.selectedChildWidget===a&&a.removeChild(this.modelViewer.explorerBar),this._updateTabCloseButtons())},_hideChild:function(a){this.inherited(arguments);this._started&&a.removeChild(this.modelViewer.explorerBar)},_updateTabCloseButtons:function(){var a,b,c,f,d;d=0;a=this.getChildren();f=a.length;for(c=0;c<f;c+=1)b=a[c],d+=b.isClosable;d=1<
d;for(c=0;c<f;c+=1)b=a[c],b.set("closable",b.isClosable&&d)}});return e([m],{postMixInProperties:function(){this.gutters=!1;this.design="sidebar";this.inherited(arguments)},postCreate:function(){var b=this.app,c=new w({app:b,region:"top"}),f=new y({modelViewer:this,region:"center"}),d=new a({region:"left"}),e=new g({app:b,role:"ViewAllTab",isClosable:!1,showPaletteNavButtons:!1}),b=new x({app:b,region:"bottom",splitter:!0,style:"height: 40%"});this._initPalette(d);this.palette=d;this.explorerBar=
c;this.tabContainer=f;this.viewAllTab=e;this.searchResultsPane=b;f.addChild(e);this.addChild(f);this.addChild(d);h.add(this.domNode,"wvModelViewer");this.own(c,f,d,e,b)},startup:function(){var a=this.app.id;this.own(b.subscribe(a+"/open",k.hitch(this,"_open")),b.subscribe(a+"/close",k.hitch(this,"_close")));this.inherited(arguments)},focus:function(){var a=this.selectedTab;(a=a&&(a.modelGraphicsPane||a.domNode))&&a.focus()},_initPalette:function(a){var b=this.app,c=b.data.optViewsStore,c=c?c.query():
[],d=c.length,g=new q({app:b}),e=new r({app:b}),h;a.addChild(new n({height:24}));a.addChild(new u({app:b}));a.addChild(new p);a.addChild(g);a.addChild(e);a.addChild(new n);for(h=0;h<d;h+=1)a.addChild(new s({app:b,optView:c[h]}));a.addChild(new f({app:b}));a.fitToViewButton=g;a.marqueeZoomButton=e},showPaletteNavButtons:!0,_setShowPaletteNavButtonsAttr:function(a){var b,c;this._started&&(b=this.palette,c=b.fitToViewButton,b=b.marqueeZoomButton,a?(l.set(c.domNode,"display","block"),l.set(b.domNode,
"display","block")):(l.set(c.domNode,"display","none"),l.set(b.domNode,"display","none")),this._set("showPaletteNavButtons",a))},showExplorerBar:!0,_setShowExplorerBarAttr:function(a){var b=this.explorerBar,c;this._started&&this.showExplorerBar!==a&&(c=this.tabContainer.selectedChildWidget,a?(this.emit("show-explorerbar",{}),c.addChild(b)):(this.emit("hide-explorerbar",{}),c.removeChild(b)),this._set("showExplorerBar",a))},showSearchResultsPane:!1,_setShowSearchResultsPaneAttr:function(a){var b=this.searchResultsPane;
this._started&&this.showSearchResultsPane!==a&&(a?this.addChild(b):this.removeChild(b),this._set("showSearchResultsPane",a))},_open:function(a,b){var f=this.app,d=this.tabContainer,g,e,h=b&&b.tab&&"new"===b.tab;f.isDiagram(a)&&(a.visited=!0,g=this.getDiagramTab(a),g||(e=this.getDiagramTabs().length,h||0===e?(g=new c({app:f,diagram:a,role:"SystemTab",isClosable:!0,showPaletteNavButtons:!0}),d.addChild(g,e)):g=this.selectedDiagramTab),g.update(a,b),d.selectChild(g,{doFocus:!1}))},_close:function(a){var c,
f;if(this.app.isDiagram(a))if(c=this.getDiagramTab(a),f=this.getDiagramTabs().length,c&&1<f)this.tabContainer.removeChild(c),c.destroy(),b.publish(this.app.id+"/postClose",a);else throw"There is no diagram "+a.fullname+" or there is only one tab!";},getDiagramTabs:function(){var a=this.tabContainer.getChildren();a.pop();return a},getDiagramTab:function(a){var b,c=this.getDiagramTabs(),f=c.length,d,g;for(g=0;g<f;g+=1)if(d=c[g],d.diagram===a){b=d;break}return b}})})},"dijit/layout/TabContainer":function(){define(["dojo/_base/lang",
"dojo/_base/declare","./_TabContainerBase","./TabController","./ScrollingTabController"],function(e,k,h,l,b){return k("dijit.layout.TabContainer",h,{useMenu:!0,useSlider:!0,controllerWidget:"",_makeController:function(b){var d=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout");return new ("string"==typeof this.controllerWidget?e.getObject(this.controllerWidget):this.controllerWidget)({id:this.id+"_tablist",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,
tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":d,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},b)},postMixInProperties:function(){this.inherited(arguments);this.controllerWidget||(this.controllerWidget=("top"==this.tabPosition||"bottom"==this.tabPosition)&&!this.nested?b:l)}})})},"dijit/layout/_TabContainerBase":function(){define("dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style ./StackContainer ./utils ../_TemplatedMixin dojo/text!./templates/TabContainer.html".split(" "),
function(e,k,h,l,b,m,d,g){return e("dijit.layout._TabContainerBase",[b,d],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:!1,nested:!1,templateString:g,postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&l.set(this.srcNodeRef,"visibility","hidden");this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);this.doLayout||
k.add(this.domNode,"dijitTabContainerNoLayout");this.nested?(k.add(this.domNode,"dijitTabContainerNested"),k.add(this.tablist.containerNode,"dijitTabContainerTabListNested"),k.add(this.tablistSpacer,"dijitTabContainerSpacerNested"),k.add(this.containerNode,"dijitTabPaneWrapperNested")):k.add(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"))},_setupChild:function(b){k.add(b.domNode,"dijitTabPane");this.inherited(arguments)},startup:function(){this._started||(this.tablist.startup(),this.inherited(arguments))},
layout:function(){if(this._contentBox&&"undefined"!=typeof this._contentBox.l){var b=this.selectedChildWidget;if(this.doLayout){var a=this.tabPosition.replace(/-h/,"");this.tablist.region=a;a=[this.tablist,{domNode:this.tablistSpacer,region:a},{domNode:this.containerNode,region:"center"}];m.layoutChildren(this.domNode,this._contentBox,a);this._containerContentBox=m.marginBox2contentBox(this.containerNode,a[2]);b&&b.resize&&b.resize(this._containerContentBox)}else{if(this.tablist.resize){a=this.tablist.domNode.style;
a.width="0";var f=h.getContentBox(this.domNode).w;a.width="";this.tablist.resize({w:f})}b&&b.resize&&b.resize()}}},destroy:function(b){this.tablist&&this.tablist.destroy(b);this.inherited(arguments)}})})},"dijit/layout/StackContainer":function(){define("dojo/_base/array dojo/cookie dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/has dojo/_base/lang dojo/on dojo/ready dojo/topic dojo/when ../registry ../_WidgetBase ./_LayoutWidget".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n){m("dijit-legacy-requires")&&
c(0,function(){require(["dijit/layout/StackController"])});h=h("dijit.layout.StackContainer",n,{doLayout:!0,persist:!1,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);l.add(this.domNode,"dijitLayoutContainer")},postCreate:function(){this.inherited(arguments);this.own(g(this.domNode,"keydown",d.hitch(this,"_onKeyDown")))},startup:function(){if(!this._started){var b=this.getChildren();e.forEach(b,this._setupChild,this);this.persist?this.selectedChildWidget=u.byId(k(this.id+
"_selectedChild")):e.some(b,function(a){a.selected&&(this.selectedChildWidget=a);return a.selected},this);var c=this.selectedChildWidget;!c&&b[0]&&(c=this.selectedChildWidget=b[0],c.selected=!0);a.publish(this.id+"-startup",{children:b,selected:c,textDir:this.textDir});this.inherited(arguments)}},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=!0;var a=this.selectedChildWidget;a&&this._showChild(a)}this.inherited(arguments)},_setupChild:function(a){var c=a.domNode,f=b.place("\x3cdiv role\x3d'tabpanel' class\x3d'"+
this.baseClass+"ChildWrapper dijitHidden'\x3e",a.domNode,"replace"),d=a["aria-label"]||a.title||a.label;d&&f.setAttribute("aria-label",d);b.place(c,f);a._wrapper=f;this.inherited(arguments);"none"==c.style.display&&(c.style.display="block");a.domNode.removeAttribute("title")},addChild:function(b,c){this.inherited(arguments);this._started&&(a.publish(this.id+"-addChild",b,c),this.layout(),this.selectedChildWidget||this.selectChild(b))},removeChild:function(c){var f=e.indexOf(this.getChildren(),c);
this.inherited(arguments);b.destroy(c._wrapper);delete c._wrapper;this._started&&a.publish(this.id+"-removeChild",c);if(!this._descendantsBeingDestroyed){if(this.selectedChildWidget===c&&(this.selectedChildWidget=void 0,this._started)){var d=this.getChildren();d.length&&this.selectChild(d[Math.max(f-1,0)])}this._started&&this.layout()}},selectChild:function(b,c){var d;b=u.byId(b);this.selectedChildWidget!=b&&(d=this._transition(b,this.selectedChildWidget,c),this._set("selectedChildWidget",b),a.publish(this.id+
"-selectChild",b,this._focused),this.persist&&k(this.id+"_selectedChild",this.selectedChildWidget.id));return f(d||!0)},_transition:function(a,b){b&&this._hideChild(b);var c=this._showChild(a);a.resize&&(this.doLayout?a.resize(this._containerContentBox||this._contentBox):a.resize());return c},_adjacent:function(a){var b=this.getChildren(),c=e.indexOf(b,this.selectedChildWidget),c=c+(a?1:b.length-1);return b[c%b.length]},forward:function(){return this.selectChild(this._adjacent(!0),!0)},back:function(){return this.selectChild(this._adjacent(!1),
!0)},_onKeyDown:function(b){a.publish(this.id+"-containerKeyDown",{e:b,page:this})},layout:function(){var a=this.selectedChildWidget;a&&a.resize&&(this.doLayout?a.resize(this._containerContentBox||this._contentBox):a.resize())},_showChild:function(a){var b=this.getChildren();a.isFirstChild=a==b[0];a.isLastChild=a==b[b.length-1];a._set("selected",!0);a._wrapper&&l.replace(a._wrapper,"dijitVisible","dijitHidden");return a._onShow&&a._onShow()||!0},_hideChild:function(a){a._set("selected",!1);a._wrapper&&
l.replace(a._wrapper,"dijitHidden","dijitVisible");a.onHide&&a.onHide()},closeChild:function(a){if(!a.onClose||a.onClose(this,a))this.removeChild(a),a.destroyRecursive()},destroyDescendants:function(a){this._descendantsBeingDestroyed=!0;this.selectedChildWidget=void 0;e.forEach(this.getChildren(),function(b){a||this.removeChild(b);b.destroyRecursive(a)},this);this._descendantsBeingDestroyed=!1}});h.ChildWidgetProperties={selected:!1,disabled:!1,closable:!1,iconClass:"dijitNoIcon",showTitle:!0};d.extend(p,
h.ChildWidgetProperties);return h})},"dijit/layout/TabController":function(){define("dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/has dojo/i18n dojo/_base/lang ./StackController ../registry ../Menu ../MenuItem dojo/text!./templates/_TabButton.html dojo/i18n!../nls/common".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u){b=e("dijit.layout._TabButton",g.StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:u,_setNameAttr:"focusNode",scrollOnFocus:!1,
buildRendering:function(){this.inherited(arguments);k.setSelectable(this.containerNode,!1)},startup:function(){this.inherited(arguments);var a=this.domNode;this.defer(function(){a.className=a.className},1)},_setCloseButtonAttr:function(a){this._set("closeButton",a);l.toggle(this.domNode,"dijitClosable",a);this.closeNode.style.display=a?"":"none";a&&(a=m.getLocalization("dijit","common"),this.closeNode&&h.set(this.closeNode,"title",a.itemClose))},_setDisabledAttr:function(a){this.inherited(arguments);
if(this.closeNode)if(a)h.remove(this.closeNode,"title");else{var b=m.getLocalization("dijit","common");h.set(this.closeNode,"title",b.itemClose)}},_setLabelAttr:function(a){this.inherited(arguments);!this.showLabel&&!this.params.title&&(this.iconNode.alt=d.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});e=e("dijit.layout.TabController",g,{baseClass:"dijitTabController",templateString:"\x3cdiv role\x3d'tablist' data-dojo-attach-event\x3d'onkeydown:onkeydown'\x3e\x3c/div\x3e",
tabPosition:"top",buttonWidget:b,buttonWidgetCloseClass:"dijitTabCloseButton",postCreate:function(){this.inherited(arguments);var b=new a({id:this.id+"_Menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,targetNodeIds:[this.domNode],selector:function(a){return l.contains(a,"dijitClosable")&&!l.contains(a,"dijitTabDisabled")}});this.own(b);var d=m.getLocalization("dijit","common"),g=this;b.addChild(new f({label:d.itemClose,ownerDocument:this.ownerDocument,dir:this.dir,
lang:this.lang,textDir:this.textDir,onClick:function(a){a=c.byNode(this.getParent().currentTarget);g.onCloseButtonClick(a.page)}}))}});e.TabButton=b;return e})},"dijit/layout/StackController":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/topic ../focus ../registry ../_Widget ../_TemplatedMixin ../_Container ../form/ToggleButton dojo/touch".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n){l=k("dijit.layout._StackButton",
n,{tabIndex:"-1",closeButton:!1,_aria_attr:"aria-selected",buildRendering:function(a){this.inherited(arguments);(this.focusNode||this.domNode).setAttribute("role","tab")}});k=k("dijit.layout.StackController",[f,u,p],{baseClass:"dijitStackController",templateString:"\x3cspan role\x3d'tablist' data-dojo-attach-event\x3d'onkeydown'\x3e\x3c/span\x3e",containerId:"",buttonWidget:l,buttonWidgetCloseClass:"dijitStackCloseButton",pane2button:function(b){return a.byId(this.id+"_"+b)},postCreate:function(){this.inherited(arguments);
this.own(g.subscribe(this.containerId+"-startup",m.hitch(this,"onStartup")),g.subscribe(this.containerId+"-addChild",m.hitch(this,"onAddChild")),g.subscribe(this.containerId+"-removeChild",m.hitch(this,"onRemoveChild")),g.subscribe(this.containerId+"-selectChild",m.hitch(this,"onSelectChild")),g.subscribe(this.containerId+"-containerKeyDown",m.hitch(this,"onContainerKeyDown")));this.containerNode.dojoClick=!0;this.own(d(this.containerNode,"click",m.hitch(this,function(b){var c=a.getEnclosingWidget(b.target);
if(c!=this.containerNode&&!c.disabled&&c.page)for(b=b.target;b!==this.containerNode;b=b.parentNode)if(h.contains(b,this.buttonWidgetCloseClass)){this.onCloseButtonClick(c.page);break}else if(b==c.domNode){this.onButtonClick(c.page);break}})))},onStartup:function(b){this.textDir=b.textDir;e.forEach(b.children,this.onAddChild,this);if(b.selected)this.onSelectChild(b.selected);var c=a.byId(this.containerId).containerNode,f=m.hitch(this,"pane2button");b={title:"label",showtitle:"showLabel",iconclass:"iconClass",
closable:"closeButton",tooltip:"title",disabled:"disabled",textdir:"textdir"};var g=function(a,b){return d(c,"attrmodified-"+a,function(a){var c=f(a.detail&&a.detail.widget&&a.detail.widget.id);c&&c.set(b,a.detail.newValue)})},h;for(h in b)this.own(g(h,b[h]))},destroy:function(a){this.destroyDescendants(a);this.inherited(arguments)},onAddChild:function(a,b){var c=new (m.isString(this.buttonWidget)?m.getObject(this.buttonWidget):this.buttonWidget)({id:this.id+"_"+a.id,name:this.id+"_"+a.id,label:a.title,
disabled:a.disabled,ownerDocument:this.ownerDocument,dir:a.dir,lang:a.lang,textDir:a.textDir||this.textDir,showLabel:a.showTitle,iconClass:a.iconClass,closeButton:a.closable,title:a.tooltip,page:a});this.addChild(c,b);a.controlButton=c;if(!this._currentChild)this.onSelectChild(a);c=a._wrapper.getAttribute("aria-labelledby")?a._wrapper.getAttribute("aria-labelledby")+" "+c.id:c.id;a._wrapper.removeAttribute("aria-label");a._wrapper.setAttribute("aria-labelledby",c)},onRemoveChild:function(a){this._currentChild===
a&&(this._currentChild=null);var b=this.pane2button(a.id);b&&(this.removeChild(b),b.destroy());delete a.controlButton},onSelectChild:function(b){if(b){if(this._currentChild){var c=this.pane2button(this._currentChild.id);c.set("checked",!1);c.focusNode.setAttribute("tabIndex","-1")}c=this.pane2button(b.id);c.set("checked",!0);this._currentChild=b;c.focusNode.setAttribute("tabIndex","0");a.byId(this.containerId)}},onButtonClick:function(b){var f=this.pane2button(b.id);c.focus(f.focusNode);this._currentChild&&
this._currentChild.id===b.id&&f.set("checked",!0);a.byId(this.containerId).selectChild(b)},onCloseButtonClick:function(b){a.byId(this.containerId).closeChild(b);this._currentChild&&(b=this.pane2button(this._currentChild.id))&&c.focus(b.focusNode||b.domNode)},adjacent:function(a){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition)))a=!a;var b=this.getChildren(),c=e.indexOf(b,this.pane2button(this._currentChild.id)),f=b[c],d;do c=(c+(a?1:b.length-1))%b.length,d=b[c];while(d.disabled&&
d!=f);return d},onkeydown:function(a,c){if(!this.disabled&&!a.altKey){var f=null;if(a.ctrlKey||!a._djpage){switch(a.keyCode){case b.LEFT_ARROW:case b.UP_ARROW:a._djpage||(f=!1);break;case b.PAGE_UP:a.ctrlKey&&(f=!1);break;case b.RIGHT_ARROW:case b.DOWN_ARROW:a._djpage||(f=!0);break;case b.PAGE_DOWN:a.ctrlKey&&(f=!0);break;case b.HOME:for(var d=this.getChildren(),g=0;g<d.length;g++){var e=d[g];if(!e.disabled){this.onButtonClick(e.page);break}}a.stopPropagation();a.preventDefault();break;case b.END:d=
this.getChildren();for(g=d.length-1;0<=g;g--)if(e=d[g],!e.disabled){this.onButtonClick(e.page);break}a.stopPropagation();a.preventDefault();break;case b.DELETE:case 87:if(this._currentChild.closable&&(a.keyCode==b.DELETE||a.ctrlKey))this.onCloseButtonClick(this._currentChild),a.stopPropagation(),a.preventDefault();break;case b.TAB:a.ctrlKey&&(this.onButtonClick(this.adjacent(!a.shiftKey).page),a.stopPropagation(),a.preventDefault())}null!==f&&(this.onButtonClick(this.adjacent(f).page),a.stopPropagation(),
a.preventDefault())}}},onContainerKeyDown:function(a){a.e._djpage=a.page;this.onkeydown(a.e)}});k.StackButton=l;return k})},"dijit/form/ToggleButton":function(){define(["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin","../_mw/utils/deprecation"],function(e,k,h,l,b){b.deprecated({deprecated:{module:"dijit/form/ToggleButton"},replacement:{module:"MW/form/ToggleButton"},geckNumber:1352405});return e("dijit.form.ToggleButton",[h,l],{baseClass:"dijitToggleButton",setChecked:function(b){k.deprecated("setChecked("+
b+") is deprecated. Use set('checked',"+b+") instead.","","2.0");this.set("checked",b)}})})},"dijit/form/Button":function(){define("require dojo/_base/declare dojo/dom-class dojo/has dojo/_base/kernel dojo/_base/lang dojo/ready ./_FormWidget ./_ButtonMixin dojo/text!./templates/Button.html ../_mw/utils/deprecation ../a11yclick".split(" "),function(e,k,h,l,b,m,d,g,c,a,f){f.deprecated({deprecated:{module:"dijit/form/Button"},replacement:{module:"MW/form/PushButton"},geckNumber:1352405});l("dijit-legacy-requires")&&
d(0,function(){e(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});return k("dijit.form.Button",[g,c],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:a,_setValueAttr:"valueNode",_setNameAttr:function(a){this.valueNode&&this.valueNode.setAttribute("name",a)},postCreate:function(){this.inherited(arguments);this._setLabelFromContainer()},_setLabelFromContainer:function(){this.containerNode&&
!this.label&&(this.label=m.trim(this.containerNode.innerHTML),this.onLabelSet())},_setShowLabelAttr:function(a){this.containerNode&&h.toggle(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},setLabel:function(a){b.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",a)},onLabelSet:function(){this.inherited(arguments);!this.showLabel&&!("title"in this.params)&&(this.titleNode.title=m.trim(this.containerNode.innerText||
this.containerNode.textContent||""))}})})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),function(e,k,h,l,b,m,d,g){k("dijit-legacy-requires")&&l(0,function(){require(["dijit/form/_FormValueWidget"])});return e("dijit.form._FormWidget",[b,d,m,g],{setDisabled:function(b){h.deprecated("setDisabled("+b+") is deprecated. Use set('disabled',"+b+") instead.","","2.0");this.set("disabled",
b)},setValue:function(b){h.deprecated("dijit.form._FormWidget:setValue("+b+") is deprecated. Use set('value',"+b+") instead.","","2.0");this.set("value",b)},getValue:function(){h.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name&&!k("msapp")?'name\x3d"'+this.name.replace(/"/g,"\x26quot;")+'"':"";this.inherited(arguments)}})})},"dijit/form/_FormWidgetMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff dojo/window ../a11y".split(" "),
function(e,k,h,l,b,m,d,g,c,a){return k("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,_setIdAttr:"focusNode",_setDisabledAttr:function(c){this._set("disabled",c);/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)?h.set(this.focusNode,"disabled",c):this.focusNode.setAttribute("aria-disabled",c?"true":"false");this.valueNode&&
h.set(this.valueNode,"disabled",c);c?(this._set("hovering",!1),this._set("active",!1),c="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode",e.forEach(b.isArray(c)?c:[c],function(b){b=this[b];g("webkit")||a.hasDefaultTabStop(b)?b.setAttribute("tabIndex","-1"):b.removeAttribute("tabIndex")},this)):""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(a){if("mouse"==a&&this.isFocusable())var e=this.own(d(this.focusNode,
"focus",function(){n.remove();e.remove()}))[0],h=g("pointer-events")?"pointerup":g("MSPointer")?"MSPointerUp":g("touch-events")?"touchend, mouseup":"mouseup",n=this.own(d(this.ownerDocumentBody,h,b.hitch(this,function(a){n.remove();e.remove();this.focused&&("touchend"==a.type?this.defer("focus"):this.focus())})))[0];this.scrollOnFocus&&this.defer(function(){c.scrollIntoView(this.domNode)});this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&"none"!=l.get(this.domNode,
"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,b){if(void 0==this._lastValueReported&&(null===b||!this._onChangeActive))this._resetValue=this._lastValueReported=a;this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||0!=this.compare(a,
this._lastValueReported);if((this.intermediateChanges||b||void 0===b)&&this._pendingOnChange)this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive&&(this._onChangeHandle&&this._onChangeHandle.remove(),this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(a)}))},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(this._onChangeHandle.remove(),this.onChange(this._lastValueReported));this.inherited(arguments)}})})},
"dijit/form/_ButtonMixin":function(){define(["dojo/_base/declare","dojo/dom","dojo/has","../registry"],function(e,k,h,l){return e("dijit.form._ButtonMixin",null,{label:"",type:"button",__onClick:function(b){b.stopPropagation();b.preventDefault();this.disabled||this.valueNode.click(b);return!1},_onClick:function(b){if(this.disabled)return b.stopPropagation(),b.preventDefault(),!1;!1===this.onClick(b)&&b.preventDefault();var e=b.defaultPrevented;if(!e&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var d=
this.domNode;d.parentNode;d=d.parentNode){var g=l.byNode(d);if(g&&"function"==typeof g._onSubmit){g._onSubmit(b);b.preventDefault();e=!0;break}}return!e},postCreate:function(){this.inherited(arguments);k.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(b){this._set("label",b);(this.containerNode||this.focusNode).innerHTML=b;this.onLabelSet()},onLabelSet:function(){}})})},"dijit/_mw/utils/deprecation":function(){define(["dojo/_base/config"],function(e){var k={warn:function(e){console&&
console.warn&&console.warn(e)},error:function(e){console&&console.error&&console.error(e)}},h={deprecated:function(h){var b,m;if((e.isDebug||window.showDeprecationsAsErrors)&&this._isConfigValid(h))m=window.showDeprecationsAsErrors||h.deprecationLevel===this.ERROR?this.ERROR:this.WARN,b="DEPRECATED: ",h.deprecated&&(b+=h.deprecated.module,h.deprecated.method&&(b+="."+h.deprecated.method+"()"),b+="."),h.replacement&&(b+=" Use "+h.replacement.module,h.replacement.method&&(b+="."+h.replacement.method+
"()"),b+=" instead."),h.removalVersion&&(b+=" Will be removed in version: "+h.removalVersion+"."),h.geckNumber&&(b+=" Please use g"+h.geckNumber+" to track latest information regarding this deprecation"),h.additionalInformation&&(b+=" "+h.additionalInformation),k[m](b)},_isConfigValid:function(e){var b=!!e.deprecated&&"object"===typeof e.deprecated&&e.deprecated.hasOwnProperty("module");e.replacement&&(b=b&&"object"===typeof e.replacement&&e.replacement.hasOwnProperty("module"));e.geckNumber&&(b=
b&&"number"===typeof e.geckNumber);b||k.error("Supplied deprecationConfig properties are not valid. Please refer to http://inside.mathworks.com/wiki/Web_Widgets_Deprecation_API for right API");return b}};Object.defineProperties(h,{WARN:{value:"warn",enumerable:!0},ERROR:{value:"error",enumerable:!0}});return h})},"dijit/form/_ToggleButtonMixin":function(){define(["dojo/_base/declare","dojo/dom-attr"],function(e,k){return e("dijit.form._ToggleButtonMixin",null,{checked:!1,_aria_attr:"aria-pressed",
_onClick:function(e){var l=this.checked;this._set("checked",!l);var b=this.inherited(arguments);this.set("checked",b?this.checked:l);return b},_setCheckedAttr:function(e,l){this._set("checked",e);var b=this.focusNode||this.domNode;this._created&&k.get(b,"checked")!=!!e&&k.set(b,"checked",!!e);b.setAttribute(this._aria_attr,String(e));this._handleOnChange(e,l)},postCreate:function(){this.inherited(arguments);var e=this.focusNode||this.domNode;this.checked&&e.setAttribute("checked","checked");void 0===
this._resetValue&&(this._lastValueReported=this._resetValue=this.checked)},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1)}})})},"dijit/layout/ScrollingTabController":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/fx dojo/_base/lang dojo/on dojo/query dojo/sniff ../registry dojo/text!./templates/ScrollingTabController.html dojo/text!./templates/_ScrollingTabControllerButton.html ./TabController ./utils ../_WidgetsInTemplateMixin ../Menu ../MenuItem ../form/Button ../_HasDropDown dojo/NodeList-dom ../a11yclick".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w,y){u=k("dijit.layout.ScrollingTabController",[n,r],{baseClass:"dijitTabController dijitScrollingTabController",templateString:u,useMenu:!0,useSlider:!0,tabStripClass:"",_minScroll:5,_setClassAttr:{node:"containerNode",type:"class"},buildRendering:function(){this.inherited(arguments);var a=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();this.tabStripClass||(this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+
this.tabPosition.substr(1).replace(/-.*/,"")+"None",h.add(a,"tabStrip-disabled"));h.add(this.tablistWrapper,this.tabStripClass)},onStartup:function(){this.inherited(arguments);b.set(this.domNode,"visibility","");this._postStartup=!0;this.own(g(this.containerNode,"attrmodified-label, attrmodified-iconclass",d.hitch(this,function(a){this._dim&&this.resize(this._dim)})))},onAddChild:function(a,c){this.inherited(arguments);b.set(this.containerNode,"width",b.get(this.containerNode,"width")+200+"px")},
onRemoveChild:function(a,b){var c=this.pane2button(a.id);this._selectedTab===c.domNode&&(this._selectedTab=null);this.inherited(arguments)},_initButtons:function(){this._btnWidth=0;this._buttons=c("\x3e .tabStripButton",this.domNode).filter(function(a){if(this.useMenu&&a==this._menuBtn.domNode||this.useSlider&&(a==this._rightBtn.domNode||a==this._leftBtn.domNode))return this._btnWidth+=l.getMarginSize(a).w,!0;b.set(a,"display","none");return!1},this)},_getTabsWidth:function(){var a=this.getChildren();
if(a.length){var b=a[this.isLeftToRight()?0:a.length-1].domNode,a=a[this.isLeftToRight()?a.length-1:0].domNode;return a.offsetLeft+a.offsetWidth-b.offsetLeft}return 0},_enableBtn:function(a){var c=this._getTabsWidth();a=a||b.get(this.scrollNode,"width");return 0<c&&a<c},resize:function(a){this._dim=a;this.scrollNode.style.height="auto";var b=this._contentBox=q.marginBox2contentBox(this.domNode,{h:0,w:a.w});b.h=this.scrollNode.offsetHeight;l.setContentSize(this.domNode,b);b=this._enableBtn(this._contentBox.w);
this._buttons.style("display",b?"":"none");this._leftBtn.region="left";this._rightBtn.region="right";this._menuBtn.region=this.isLeftToRight()?"right":"left";q.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,region:"center"}]);this._selectedTab&&(this._anim&&"playing"==this._anim.status()&&this._anim.stop(),this.scrollNode.scrollLeft=this._convertToScrollLeft(this._getScrollForSelectedTab()));this._setButtonClass(this._getScroll());
this._postResize=!0;return{h:this._contentBox.h,w:a.w}},_getScroll:function(){return this.isLeftToRight()||8>a("ie")||a("trident")&&a("quirks")||a("webkit")?this.scrollNode.scrollLeft:b.get(this.containerNode,"width")-b.get(this.scrollNode,"width")+(a("trident")||a("edge")?-1:1)*this.scrollNode.scrollLeft},_convertToScrollLeft:function(c){if(this.isLeftToRight()||8>a("ie")||a("trident")&&a("quirks")||a("webkit"))return c;var f=b.get(this.containerNode,"width")-b.get(this.scrollNode,"width");return(a("trident")||
a("edge")?-1:1)*(c-f)},onSelectChild:function(a,c){var f=this.pane2button(a.id);if(f){var d=f.domNode;if(d!=this._selectedTab&&(this._selectedTab=d,this._postResize)){var g=this._getScroll();g>d.offsetLeft||g+b.get(this.scrollNode,"width")<d.offsetLeft+b.get(d,"width")?(d=this.createSmoothScroll(),c&&(d.onEnd=function(){f.focus()}),d.play()):c&&f.focus()}this.inherited(arguments)}},_getScrollBounds:function(){var a=this.getChildren(),c=b.get(this.scrollNode,"width"),f=b.get(this.containerNode,"width")-
c,d=this._getTabsWidth();if(a.length&&d>c)return{min:this.isLeftToRight()?0:a[a.length-1].domNode.offsetLeft,max:this.isLeftToRight()?a[a.length-1].domNode.offsetLeft+a[a.length-1].domNode.offsetWidth-c:f};a=this.isLeftToRight()?0:f;return{min:a,max:a}},_getScrollForSelectedTab:function(){var a=this._selectedTab,c=b.get(this.scrollNode,"width"),f=this._getScrollBounds(),a=a.offsetLeft+b.get(a,"width")/2-c/2;return a=Math.min(Math.max(a,f.min),f.max)},createSmoothScroll:function(a){if(0<arguments.length){var b=
this._getScrollBounds();a=Math.min(Math.max(a,b.min),b.max)}else a=this._getScrollForSelectedTab();this._anim&&"playing"==this._anim.status()&&this._anim.stop();var c=this,f=this.scrollNode,d=new m.Animation({beforeBegin:function(){this.curve&&delete this.curve;var b=f.scrollLeft,g=c._convertToScrollLeft(a);d.curve=new m._Line(b,g)},onAnimate:function(a){f.scrollLeft=a}});this._anim=d;this._setButtonClass(a);return d},_getBtnNode:function(a){for(a=a.target;a&&!h.contains(a,"tabStripButton");)a=a.parentNode;
return a},doSlideRight:function(a){this.doSlide(1,this._getBtnNode(a))},doSlideLeft:function(a){this.doSlide(-1,this._getBtnNode(a))},doSlide:function(a,c){if(!c||!h.contains(c,"dijitTabDisabled")){var f=0.75*b.get(this.scrollNode,"width")*a,f=this._getScroll()+f;this._setButtonClass(f);this.createSmoothScroll(f).play()}},_setButtonClass:function(a){var b=this._getScrollBounds();this._leftBtn.set("disabled",a<=b.min);this._rightBtn.set("disabled",a>=b.max)}});p=k("dijit.layout._ScrollingTabControllerButtonMixin",
null,{baseClass:"dijitTab tabStripButton",templateString:p,tabIndex:"",isFocusable:function(){return!1}});k("dijit.layout._ScrollingTabControllerButton",[w,p]);k("dijit.layout._ScrollingTabControllerMenuButton",[w,y,p],{containerId:"",tabIndex:"-1",isLoaded:function(){return!1},loadDropDown:function(a){this.dropDown=new s({id:this.containerId+"_menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir});var b=f.byId(this.containerId);e.forEach(b.getChildren(),function(a){var c=
new x({id:a.id+"_stcMi",label:a.title,iconClass:a.iconClass,disabled:a.disabled,ownerDocument:this.ownerDocument,dir:a.dir,lang:a.lang,textDir:a.textDir||b.textDir,onClick:function(){b.selectChild(a)}});this.dropDown.addChild(c)},this);a()},closeDropDown:function(a){this.inherited(arguments);this.dropDown&&(this._popupStateNode.removeAttribute("aria-owns"),this.dropDown.destroyRecursive(),delete this.dropDown)}});return u})},"dijit/_WidgetsInTemplateMixin":function(){define(["dojo/_base/array","dojo/aspect",
"dojo/_base/declare","dojo/_base/lang","dojo/parser"],function(e,k,h,l,b){return h("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,contextRequire:null,_beforeFillContent:function(){if(/dojoType|data-dojo-type/i.test(this.domNode.innerHTML)){var e=this.domNode;this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0);b.parse(e,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,contextRequire:this.contextRequire,
scope:"dojo"}).then(l.hitch(this,function(b){this._startupWidgets=b;for(var g=0;g<b.length;g++)this._processTemplateNode(b[g],function(b,a){return b[a]},function(b,a,f){return a in b?b.connect(b,a,f):b.on(a,f,!0)});this.containerNode&&this.containerNode.stopParser&&delete this.containerNode.stopParser}));if(!this._startupWidgets)throw Error(this.declaredClass+": parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. Must pre-load all supporting widgets before instantiation.");
}},_processTemplateNode:function(b,d,g){return d(b,"dojoType")||d(b,"data-dojo-type")?!0:this.inherited(arguments)},startup:function(){e.forEach(this._startupWidgets,function(b){b&&(!b._started&&b.startup)&&b.startup()});this._startupWidgets=null;this.inherited(arguments)}})})},"dojo/parser":function(){define("require ./_base/kernel ./_base/lang ./_base/array ./_base/config ./dom ./_base/window ./_base/url ./aspect ./promise/all ./date/stamp ./Deferred ./has ./query ./on ./ready".split(" "),function(e,
k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){function s(a){return eval("("+a+")")}function x(a){var b=a._nameCaseMap,c=a.prototype;if(!b||b._extendCnt<y){var b=a._nameCaseMap={},f;for(f in c)"_"!==f.charAt(0)&&(b[f.toLowerCase()]=f);b._extendCnt=y}return b}function w(a,b){b||(b=e);var c=b._dojoParserCtorMap||(b._dojoParserCtorMap={}),f=a.join();if(!c[f]){for(var d=[],g=0,n=a.length;g<n;g++){var l=a[g];d[d.length]=c[l]=c[l]||h.getObject(l)||~l.indexOf("/")&&b(l)}g=d.shift();c[f]=d.length?g.createSubclass?g.createSubclass(d):
g.extend.apply(g,d):g}return c[f]}new Date("X");var y=0;c.after(h,"extend",function(){y++},!0);var A={_clearCache:function(){y++;_ctorMap={}},_functionFromScript:function(a,b){var c="",f="",d=a.getAttribute(b+"args")||a.getAttribute("args"),g=a.getAttribute("with"),d=(d||"").split(/\s*,\s*/);g&&g.length&&l.forEach(g.split(/\s*,\s*/),function(a){c+="with("+a+"){";f+="}"});return new Function(d,c+a.innerHTML+f)},instantiate:function(a,b,c){b=b||{};c=c||{};var f=(c.scope||k._scopeName)+"Type",d="data-"+
(c.scope||k._scopeName)+"-",g=d+"type",e=d+"mixins",h=[];l.forEach(a,function(a){var c=f in b?b[f]:a.getAttribute(g)||a.getAttribute(f);if(c){var d=a.getAttribute(e),c=d?[c].concat(d.split(/\s*,\s*/)):[c];h.push({node:a,types:c})}});return this._instantiate(h,b,c)},_instantiate:function(b,c,f,d){function g(a){!c._started&&!f.noStart&&l.forEach(a,function(a){"function"===typeof a.startup&&!a._started&&a.startup()});return a}b=l.map(b,function(a){var b=a.ctor||w(a.types,f.contextRequire);if(!b)throw Error("Unable to resolve constructor for: '"+
a.types.join()+"'");return this.construct(b,a.node,c,f,a.scripts,a.inherited)},this);return d?a(b).then(g):g(b)},construct:function(a,b,d,e,m,r){function u(a){V&&h.setObject(V,a);for(J=0;J<U.length;J++)c[U[J].advice||"after"](a,U[J].method,h.hitch(a,U[J].func),!0);for(J=0;J<ka.length;J++)ka[J].call(a);for(J=0;J<S.length;J++)a.watch(S[J].prop,S[J].func);for(J=0;J<aa.length;J++)q(a,aa[J].event,aa[J].func);return a}var y=a&&a.prototype;e=e||{};var w={};e.defaults&&h.mixin(w,e.defaults);r&&h.mixin(w,
r);var A;p("dom-attributes-explicit")?A=b.attributes:p("dom-attributes-specified-flag")?A=l.filter(b.attributes,function(a){return a.specified}):(r=(/^input$|^img$/i.test(b.nodeName)?b:b.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),A=l.map(r.split(/\s+/),function(a){var c=a.toLowerCase();return{name:a,value:"LI"==b.nodeName&&"value"==a||"enctype"==c?b.getAttribute(c):b.getAttributeNode(c).value}}));var Q=e.scope||k._scopeName;
r="data-"+Q+"-";var L={};"dojo"!==Q&&(L[r+"props"]="data-dojo-props",L[r+"type"]="data-dojo-type",L[r+"mixins"]="data-dojo-mixins",L[Q+"type"]="dojotype",L[r+"id"]="data-dojo-id");for(var J=0,H,Q=[],V,W;H=A[J++];){var R=H.name,Z=R.toLowerCase();H=H.value;switch(L[Z]||Z){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":W=H;break;case "data-dojo-id":case "jsid":V=H;break;case "data-dojo-attach-point":case "dojoattachpoint":w.dojoAttachPoint=H;break;case "data-dojo-attach-event":case "dojoattachevent":w.dojoAttachEvent=
H;break;case "class":w["class"]=b.className;break;case "style":w.style=b.style&&b.style.cssText;break;default:if(R in y||(R=x(a)[Z]||R),R in y)switch(typeof y[R]){case "string":w[R]=H;break;case "number":w[R]=H.length?Number(H):NaN;break;case "boolean":w[R]="false"!=H.toLowerCase();break;case "function":""===H||-1!=H.search(/[^\w\.]+/i)?w[R]=new Function(H):w[R]=h.getObject(H,!1)||new Function(H);Q.push(R);break;default:Z=y[R],w[R]=Z&&"length"in Z?H?H.split(/\s*,\s*/):[]:Z instanceof Date?""==H?new Date(""):
"now"==H?new Date:f.fromISOString(H):Z instanceof g?k.baseUrl+H:s(H)}else w[R]=H}}for(A=0;A<Q.length;A++)L=Q[A].toLowerCase(),b.removeAttribute(L),b[L]=null;if(W)try{W=s.call(e.propsThis,"{"+W+"}"),h.mixin(w,W)}catch(ba){throw Error(ba.toString()+" in data-dojo-props\x3d'"+W+"'");}h.mixin(w,d);m||(m=a&&(a._noScript||y._noScript)?[]:n("\x3e script[type^\x3d'dojo/']",b));var U=[],ka=[],S=[],aa=[];if(m)for(J=0;J<m.length;J++)L=m[J],b.removeChild(L),d=L.getAttribute(r+"event")||L.getAttribute("event"),
e=L.getAttribute(r+"prop"),W=L.getAttribute(r+"method"),Q=L.getAttribute(r+"advice"),A=L.getAttribute("type"),L=this._functionFromScript(L,r),d?"dojo/connect"==A?U.push({method:d,func:L}):"dojo/on"==A?aa.push({event:d,func:L}):w[d]=L:"dojo/aspect"==A?U.push({method:W,advice:Q,func:L}):"dojo/watch"==A?S.push({prop:e,func:L}):ka.push(L);a=(m=a.markupFactory||y.markupFactory)?m(w,b,a):new a(w,b);return a.then?a.then(u):u(a)},scan:function(a,b){function c(a){if(!a.inherited){a.inherited={};var b=a.node,
f=c(a.parent),b={dir:b.getAttribute("dir")||f.dir,lang:b.getAttribute("lang")||f.lang,textDir:b.getAttribute(m)||f.textDir},d;for(d in b)b[d]&&(a.inherited[d]=b[d])}return a.inherited}var f=[],d=[],g={},h=(b.scope||k._scopeName)+"Type",n="data-"+(b.scope||k._scopeName)+"-",s=n+"type",m=n+"textdir",n=n+"mixins",q=a.firstChild,r=b.inherited;if(!r){var x=function(a,b){return a.getAttribute&&a.getAttribute(b)||a.parentNode&&x(a.parentNode,b)},r={dir:x(a,"dir"),lang:x(a,"lang"),textDir:x(a,m)},y;for(y in r)r[y]||
delete r[y]}for(var r={inherited:r},A,W;;)if(q)if(1!=q.nodeType)q=q.nextSibling;else if(A&&"script"==q.nodeName.toLowerCase())(R=q.getAttribute("type"))&&/^dojo\/\w/i.test(R)&&A.push(q),q=q.nextSibling;else if(W)q=q.nextSibling;else{var R=q.getAttribute(s)||q.getAttribute(h);y=q.firstChild;if(!R&&(!y||3==y.nodeType&&!y.nextSibling))q=q.nextSibling;else{W=null;if(R){var Z=q.getAttribute(n);A=Z?[R].concat(Z.split(/\s*,\s*/)):[R];try{W=w(A,b.contextRequire)}catch(ba){}W||l.forEach(A,function(a){~a.indexOf("/")&&
!g[a]&&(g[a]=!0,d[d.length]=a)});Z=W&&!W.prototype._noScript?[]:null;r={types:A,ctor:W,parent:r,node:q,scripts:Z};r.inherited=c(r);f.push(r)}else r={node:q,scripts:A,parent:r};A=Z;W=q.stopParser||W&&W.prototype.stopParser&&!b.template;q=y}}else{if(!r||!r.node)break;q=r.node.nextSibling;W=!1;r=r.parent;A=r.scripts}var U=new u;d.length?(p("dojo-debug-messages")&&console.warn("WARNING: Modules being Auto-Required: "+d.join(", ")),(b.contextRequire||e)(d,function(){U.resolve(l.filter(f,function(a){if(!a.ctor)try{a.ctor=
w(a.types,b.contextRequire)}catch(c){}for(var f=a.parent;f&&!f.types;)f=f.parent;var d=a.ctor&&a.ctor.prototype;a.instantiateChildren=!(d&&d.stopParser&&!b.template);a.instantiate=!f||f.instantiate&&f.instantiateChildren;return a.instantiate}))})):U.resolve(f);return U.promise},_require:function(a,b){var c=s("{"+a.innerHTML+"}"),f=[],d=[],g=new u,n=b&&b.contextRequire||e,l;for(l in c)f.push(l),d.push(c[l]);n(d,function(){for(var a=0;a<f.length;a++)h.setObject(f[a],arguments[a]);g.resolve(arguments)});
return g.promise},_scanAmd:function(a,b){var c=new u,f=c.promise;c.resolve(!0);var d=this;n("script[type\x3d'dojo/require']",a).forEach(function(a){f=f.then(function(){return d._require(a,b)});a.parentNode.removeChild(a)});return f},parse:function(a,b){a&&("string"!=typeof a&&!("nodeType"in a))&&(b=a,a=b.rootNode);var c=a?m.byId(a):d.body();b=b||{};var f=b.template?{template:!0}:{},g=[],e=this,n=this._scanAmd(c,b).then(function(){return e.scan(c,b)}).then(function(a){return e._instantiate(a,f,b,!0)}).then(function(a){return g=
g.concat(a)}).otherwise(function(a){console.error("dojo/parser::parse() error",a);throw a;});h.mixin(g,n);return g}};k.parser=A;b.parseOnLoad&&r(100,A,"parse");return A})},"dojo/_base/url":function(){define(["./kernel"],function(e){var k=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,h=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,l=function(){for(var b=arguments,e=[b[0]],d=1;d<b.length;d++)if(b[d]){var g=new l(b[d]+""),e=new l(e[0]+"");if(""==g.path&&!g.scheme&&
!g.authority&&!g.query)null!=g.fragment&&(e.fragment=g.fragment),g=e;else if(!g.scheme&&(g.scheme=e.scheme,!g.authority&&(g.authority=e.authority,"/"!=g.path.charAt(0)))){for(var e=(e.path.substring(0,e.path.lastIndexOf("/")+1)+g.path).split("/"),c=0;c<e.length;c++)"."==e[c]?c==e.length-1?e[c]="":(e.splice(c,1),c--):0<c&&(!(1==c&&""==e[0])&&".."==e[c]&&".."!=e[c-1])&&(c==e.length-1?(e.splice(c,1),e[c-1]=""):(e.splice(c-1,2),c-=2));g.path=e.join("/")}e=[];g.scheme&&e.push(g.scheme,":");g.authority&&
e.push("//",g.authority);e.push(g.path);g.query&&e.push("?",g.query);g.fragment&&e.push("#",g.fragment)}this.uri=e.join("");b=this.uri.match(k);this.scheme=b[2]||(b[1]?"":null);this.authority=b[4]||(b[3]?"":null);this.path=b[5];this.query=b[7]||(b[6]?"":null);this.fragment=b[9]||(b[8]?"":null);null!=this.authority&&(b=this.authority.match(h),this.user=b[3]||null,this.password=b[4]||null,this.host=b[6]||b[7],this.port=b[9]||null)};l.prototype.toString=function(){return this.uri};return e._Url=l})},
"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],function(e,k){var h={};e.setObject("dojo.date.stamp",h);h.fromISOString=function(e,b){h._isoRegExp||(h._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var m=h._isoRegExp.exec(e),d=null;if(m){m.shift();m[1]&&m[1]--;m[6]&&(m[6]*=1E3);b&&(b=new Date(b),k.forEach(k.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(a){return b["get"+
a]()}),function(a,b){m[b]=m[b]||a}));d=new Date(m[0]||1970,m[1]||0,m[2]||1,m[3]||0,m[4]||0,m[5]||0,m[6]||0);100>m[0]&&d.setFullYear(m[0]||1970);var g=0,c=m[7]&&m[7].charAt(0);"Z"!=c&&(g=60*(m[8]||0)+(Number(m[9])||0),"-"!=c&&(g*=-1));c&&(g-=d.getTimezoneOffset());g&&d.setTime(d.getTime()+6E4*g)}return d};h.toISOString=function(e,b){var h=function(a){return 10>a?"0"+a:a};b=b||{};var d=[],g=b.zulu?"getUTC":"get",c="";"time"!=b.selector&&(c=e[g+"FullYear"](),c=["0000".substr((c+"").length)+c,h(e[g+"Month"]()+
1),h(e[g+"Date"]())].join("-"));d.push(c);if("date"!=b.selector){c=[h(e[g+"Hours"]()),h(e[g+"Minutes"]()),h(e[g+"Seconds"]())].join(":");g=e[g+"Milliseconds"]();b.milliseconds&&(c+="."+(100>g?"0":"")+h(g));if(b.zulu)c+="Z";else if("time"!=b.selector)var g=e.getTimezoneOffset(),a=Math.abs(g),c=c+((0<g?"-":"+")+h(Math.floor(a/60))+":"+h(a%60));d.push(c)}return d.join("T")};return h})},"dijit/_HasDropDown":function(){define("dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on dojo/touch ./registry ./focus ./popup ./_FocusMixin".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){return e("dijit._HasDropDown",r,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(b){!this.disabled&&!this.readOnly&&("MSPointerDown"!=b.type&&"pointerdown"!=b.type&&b.preventDefault(),this.own(f.once(this.ownerDocument,u.release,a.hitch(this,"_onDropDownMouseUp"))),this.toggleDropDown())},
_onDropDownMouseUp:function(a){var c=this.dropDown,f=!1;if(a&&this._opened){var d=m.position(this._buttonNode,!0);if(!(a.pageX>=d.x&&a.pageX<=d.x+d.w)||!(a.pageY>=d.y&&a.pageY<=d.y+d.h)){for(d=a.target;d&&!f;)b.contains(d,"dijitPopup")?f=!0:d=d.parentNode;if(f){d=a.target;if(c.onItemClick){for(var g;d&&!(g=p.byNode(d));)d=d.parentNode;if(g&&g.onClick&&g.getParent)g.getParent().onItemClick(g,a)}return}}}if(this._opened){if(c.focus&&(!1!==c.autoFocus||"mouseup"==a.type&&!this.hovering))this._focusDropDownTimer=
this.defer(function(){c.focus();delete this._focusDropDownTimer})}else this.focus&&this.defer("focus")},_onDropDownClick:function(a){this._stopClickEvents&&(a.stopPropagation(),a.preventDefault())},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",
left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";b.add(this._arrowWrapperNode||this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);var b=this.focusNode||this.domNode;this.own(f(this._buttonNode,u.press,a.hitch(this,"_onDropDownMouseDown")),f(this._buttonNode,"click",a.hitch(this,"_onDropDownClick")),f(b,"keydown",a.hitch(this,"_onKey")),f(b,"keyup",a.hitch(this,"_onKeyUp")))},destroy:function(){this._opened&&this.closeDropDown(!0);
this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown);this.inherited(arguments)},_onKey:function(a){if(!this.disabled&&!this.readOnly){var b=this.dropDown,f=a.target;if(b&&(this._opened&&b.handleKey)&&!1===b.handleKey(a))a.stopPropagation(),a.preventDefault();else if(b&&this._opened&&a.keyCode==c.ESCAPE)this.closeDropDown(),a.stopPropagation(),a.preventDefault();else if(!this._opened&&(a.keyCode==c.DOWN_ARROW||(a.keyCode==c.ENTER||a.keyCode==c.SPACE&&(!this._searchTimer||
a.ctrlKey||a.altKey||a.metaKey))&&("input"!==(f.tagName||"").toLowerCase()||f.type&&"text"!==f.type.toLowerCase())))this._toggleOnKeyUp=!0,a.stopPropagation(),a.preventDefault()}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var b=this.dropDown;b&&b.focus&&this.defer(a.hitch(b,"focus"),1)}},_onBlur:function(){this.closeDropDown(!1);this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(a){a()},loadAndOpenDropDown:function(){var b=
new k,c=a.hitch(this,function(){this.openDropDown();b.resolve(this.dropDown)});this.isLoaded()?c():this.loadDropDown(c);return b},toggleDropDown:function(){!this.disabled&&!this.readOnly&&(this._opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var c=this.dropDown,f=c.domNode,d=this._aroundNode||this.domNode,g=this,e=q.open({parent:this,popup:c,around:d,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){g.closeDropDown(!0)},onCancel:function(){g.closeDropDown(!0)},
onClose:function(){l.set(g._popupStateNode,"popupActive",!1);b.remove(g._popupStateNode,"dijitHasDropDownOpen");g._set("_opened",!1)}});if(this.forceWidth||this.autoWidth&&d.offsetWidth>c._popupWrapper.offsetWidth){var d=d.offsetWidth-c._popupWrapper.offsetWidth,h={w:c.domNode.offsetWidth+d};this._origStyle=f.style.cssText;a.isFunction(c.resize)?c.resize(h):m.setMarginBox(f,h);"R"==e.corner[1]&&(c._popupWrapper.style.left=c._popupWrapper.style.left.replace("px","")-d+"px")}l.set(this._popupStateNode,
"popupActive","true");b.add(this._popupStateNode,"dijitHasDropDownOpen");this._set("_opened",!0);this._popupStateNode.setAttribute("aria-expanded","true");this._popupStateNode.setAttribute("aria-owns",c.id);"presentation"!==f.getAttribute("role")&&!f.getAttribute("aria-labelledby")&&f.setAttribute("aria-labelledby",this.id);return e},closeDropDown:function(a){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer);this._opened&&(this._popupStateNode.setAttribute("aria-expanded",
"false"),a&&this.focus&&this.focus(),q.close(this.dropDown),this._opened=!1);this._origStyle&&(this.dropDown.domNode.style.cssText=this._origStyle,delete this._origStyle)}})})},"webview/widgets/ViewAllTab":function(){define("dojo/_base/declare dojo/_base/lang dojo/promise/all dojo/store/Memory dojo/window dojo/dom-construct dojo/dom-class dojo/on dojo/mouse dojo/topic dojo/Deferred dijit/layout/BorderContainer dijit/layout/ContentPane dijit/Menu dijit/MenuItem dijit/popup dojo/i18n!../resources/slreportgen_webview/nls/modelviewer".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s){return e([u],{title:s.ViewAll,postMixInProperties:function(){this.gutters=!1;this.inherited(arguments)},postCreate:function(){var b=this.app,c=b.id,f=new p({region:"center",style:"overflow: auto;"}),g=new n({targetNodeIds:[f.containerNode],"class":"wvViewAllTab",selector:".wvViewAllTabImg",onMouseEnter:function(){var f=parseFloat(g.currentTarget.getAttribute("data-hid"));f&&a.publish(c+"/hover",b.getDiagram(f))},onMouseLeave:function(){a.publish(c+"/unhover")}});
d.add(this.domNode,"wvViewAllTab");g.addChild(new q({label:s.Open,onClick:function(){var a=parseFloat(g.currentTarget.getAttribute("data-hid"));a&&b.open(b.getDiagram(a),{tab:"reuse"}).then(function(){b.modelViewer.focus()})}}));g.addChild(new q({label:s.OpenInNewTab,onClick:function(){var a=parseFloat(g.currentTarget.getAttribute("data-hid"));a&&b.open(b.getDiagram(a),{tab:"new"}).then(function(){b.modelViewer.focus()})}}));this.own(f,g);this.addChild(f);this.thumbnailsPane=f;this.contextMenu=g;
this.imgStore=new l;this._unloadedSectionStore=new l({idProperty:"hid",data:this.app.data.diagramStore.sectionStore.query().reverse()});this.inherited(arguments)},startup:function(){var a=this.thumbnailsPane.domNode,b=this;this.own(g(this.thumbnailsPane.domNode,"scroll",function(c){c=(a.scrollTop+a.clientHeight)/a.scrollHeight;0.75<c&&0>b._lastScroll-c&&b._addNextSection();b._lastScroll=c}))},destroy:function(){this._hoverHandle&&this._hoverHandle.remove();this._unhoverHandle&&this._unhoverHandle.remove();
this.inherited(arguments)},onShow:function(){var b=this.app,c=b.id;this.update(b.modelViewer.selectedDiagram);this._hoverHandle=a.subscribe(c+"/hover",k.hitch(this,"_hover"));this._unhoverHandle=a.subscribe(c+"/unhover",k.hitch(this,"_unhover"));this._fillThumbnailsPane()},onHide:function(){this._hoverHandle&&this._hoverHandle.remove();this._unhoverHandle&&this._unhoverHandle.remove()},update:function(a){if(a&&(this.diagram=a,this._unhover(),this._selectedImgNode&&(d.remove(this._selectedImgNode,
"wvViewAllTabImgSelected"),this._selectedImgNode=null),a=this._getImgNode(a)))this._selectedImgNode=a,d.add(a,"wvViewAllTabImgSelected"),b.scrollIntoView(a)},_fillThumbnailsPane:function(){var a=this,b=this.thumbnailsPane.domNode,c,f,d,g;if(0<this._unloadedSectionStore.data.length){c=this.imgStore.query();d=c.length;g=[];for(f=0;f<d;f+=1)g.push(c[f].deferred);0<g.length&&h(g).then(function(){200>b.scrollHeight-b.clientHeight&&(a._addNextSection(),a._fillThumbnailsPane())})}},_addNextSection:function(){var a=
this._unloadedSectionStore.data;(a=a[a.length-1])&&this._addSection(a)},_addSection:function(a){var b=this.app,c=a.descendants,f,d,g;if(this._unloadedSectionStore.get(a.hid)){(g=b.getDiagram(a.hid))&&g.thumbnail&&this._createImgNode(g);d=a.descendants.length;for(f=0;f<d;f+=1)(g=b.getDiagram(c[f]))&&g.thumbnail&&this._createImgNode(g);this._unloadedSectionStore.remove(a.hid)}},_hover:function(a,c){var f=this._getImgNode(a),g=this.app.modelViewer;this._hoveredImgNode&&(d.remove(this._hoveredImgNode,
"wvViewAllTabImgHover"),this._hoveredImgNode=null);f&&(this._hoveredImgNode=f,d.add(f,"wvViewAllTabImgHover"),c&&c.isCenter&&b.scrollIntoView(f));g.get("showExplorerBar")&&g.explorerBar.update(a)},_unhover:function(){this._hoveredImgNode&&(d.remove(this._hoveredImgNode,"wvViewAllTabImgHover"),this._hoveredImgNode=null)},_getImgNode:function(a){a=a.hid;var b=this.imgStore,c=b.get(a),c=c&&c.node,f,d;if(!c){f=this.app.data.diagramStore;c=[f.getSection(a)];for(d=f.getSection(c[0].parent);d;)c.push(d),
d=f.getSection(d.parent);c.reverse();d=c.length;for(f=0;f<d;f+=1)this._addSection(c[f]);c=(c=b.get(a))&&c.node}return c},_createImgNode:function(a){var b=a.hid,d=this.imgStore.get(b),d=d&&d.node,e=new f;d||(d=m.create("img",{src:a.thumbnail,"data-hid":b.toString(),"class":"wvViewAllTabImg",onload:function(){e.resolve()}}),this.imgStore.add({id:b,node:d,deferred:e}),this.thumbnailsPane.containerNode.appendChild(d),this.own(g(d,c.enter,k.hitch(this,this._onImgNodeMouseEnter)),g(d,c.leave,k.hitch(this,
this._onImgNodeMouseLeave)),g(d,"click",k.hitch(this,this._onImgNodeClick))))},_onImgNodeMouseEnter:function(b){var c=this.app,f=c.id;b=parseFloat(b.target.getAttribute("data-hid"));c=c.getDiagram(b);r.close(this.contextMenu);a.publish(f+"/hover",c);a.publish(f+"/select",c)},_onImgNodeMouseLeave:function(b){var c=this.app,f=c.id;b=parseFloat(b.target.getAttribute("data-hid"));b=c.getDiagram(b);var d=c.getSelectedDiagram();a.publish(f+"/unhover",b);c.modelViewer.selectedTab===this&&(a.publish(f+"/hover",
d),a.publish(f+"/select",d))},_onImgNodeClick:function(a){var b=this.app;a=parseFloat(a.target.getAttribute("data-hid"));a=b.getDiagram(a);r.close(this.contextMenu);b.open(a,{tab:"reuse"}).then(function(){b.modelViewer.focus()})}})})},"dijit/layout/ContentPane":function(){define("dojo/_base/kernel dojo/_base/lang ../_Widget ../_Container ./_ContentPaneResizeMixin dojo/string dojo/html dojo/_base/array dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-construct dojo/_base/xhr dojo/i18n dojo/when dojo/i18n!../nls/loading".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){return c("dijit.layout.ContentPane",[h,l,b],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:e._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"\x3cspan class\x3d'dijitContentPaneLoading'\x3e\x3cspan class\x3d'dijitInline dijitIconLoading'\x3e\x3c/span\x3e${loadingState}\x3c/span\x3e",errorMessage:"\x3cspan class\x3d'dijitContentPaneError'\x3e\x3cspan class\x3d'dijitInline dijitIconError'\x3e\x3c/span\x3e${errorState}\x3c/span\x3e",
isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,_setTitleAttr:null,stopParser:!0,template:!1,markupFactory:function(a,b,c){var f=new c(a,b);return!f.href&&f._contentSetter&&f._contentSetter.parseDeferred&&!f._contentSetter.parseDeferred.isFulfilled()?f._contentSetter.parseDeferred.then(function(){return f}):f},create:function(a,b){if((!a||!a.template)&&b&&!("href"in a)&&!("content"in a)){b=f.byId(b);for(var c=b.ownerDocument.createDocumentFragment();b.firstChild;)c.appendChild(b.firstChild);
a=k.delegate(a,{content:c})}this.inherited(arguments,[a,b])},postMixInProperties:function(){this.inherited(arguments);var a=q.getLocalization("dijit","loading",this.lang);this.loadingMessage=m.substitute(this.loadingMessage,a);this.errorMessage=m.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode);this.domNode.removeAttribute("title")},startup:function(){this.inherited(arguments);this._contentSetter&&g.forEach(this._contentSetter.parseResults,
function(a){!a._started&&(!a._destroyed&&k.isFunction(a.startup))&&(a.startup(),a._started=!0)},this)},_startChildren:function(){g.forEach(this.getChildren(),function(a){!a._started&&(!a._destroyed&&k.isFunction(a.startup))&&(a.startup(),a._started=!0)});this._contentSetter&&g.forEach(this._contentSetter.parseResults,function(a){!a._started&&(!a._destroyed&&k.isFunction(a.startup))&&(a.startup(),a._started=!0)},this)},setHref:function(a){e.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.",
"","2.0");return this.set("href",a)},_setHrefAttr:function(b){this.cancel();this.onLoadDeferred=new a(k.hitch(this,"cancel"));this.onLoadDeferred.then(k.hitch(this,"onLoad"));this._set("href",b);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(a){e.deprecated("dijit.layout.ContentPane.setContent() is deprecated. Use set('content', ...) instead.","","2.0");this.set("content",a)},_setContentAttr:function(b){this._set("href",
"");this.cancel();this.onLoadDeferred=new a(k.hitch(this,"cancel"));this._created&&this.onLoadDeferred.then(k.hitch(this,"onLoad"));this._setContent(b||"");this._isDownloaded=!1;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&-1==this._xhrDfd.fired&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},destroy:function(){this.cancel();this.inherited(arguments)},destroyRecursive:function(a){this._beingDestroyed||
this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new a(k.hitch(this,"cancel"));this.onLoadDeferred.then(k.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var a=this,b={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};
k.isObject(this.ioArgs)&&k.mixin(b,this.ioArgs);var c=this._xhrDfd=(this.ioMethod||n.get)(b),f;c.then(function(b){f=b;try{return a._isDownloaded=!0,a._setContent(b,!1)}catch(c){a._onError("Content",c)}},function(b){c.canceled||a._onError("Download",b);delete a._xhrDfd;return b}).then(function(){a.onDownloadEnd();delete a._xhrDfd;return f});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(a)}catch(b){console.error("Error "+this.widgetId+
" running custom onLoad code: "+b.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(a){this.isLoaded&&this._onUnloadHandler();var b=this._contentSetter;g.forEach(this.getChildren(),function(b){b.destroyRecursive?b.destroyRecursive(a):b.destroy&&b.destroy(a);b._destroyed=!0});b&&(g.forEach(b.parseResults,function(b){b._destroyed||(b.destroyRecursive?
b.destroyRecursive(a):b.destroy&&b.destroy(a),b._destroyed=!0)}),delete b.parseResults);a||p.empty(this.containerNode);delete this._singleChild},_setContent:function(a,b){a=this.preprocessContent(a);this.destroyDescendants();var c=this._contentSetter;c&&c instanceof d._ContentSetter||(c=this._contentSetter=new d._ContentSetter({node:this.containerNode,_onError:k.hitch(this,this._onError),onContentError:k.hitch(this,function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=a}catch(b){console.error("Fatal "+
this.id+" could not change content due to "+b.message,b)}})}));var f=k.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!a.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{}),f=c.set(k.isObject(a)&&a.domNode?a.domNode:a,f),g=this;return r(f&&f.then?f:c.parseDeferred,function(){delete g._contentSetterParams;b||(g._started&&(g._startChildren(),g._scheduleLayout()),g._onLoadHandler(a))})},
preprocessContent:function(a){return a},_onError:function(a,b,c){this.onLoadDeferred.reject(b);a=this["on"+a+"Error"].call(this,b);c?console.error(c,b):a&&this._setContent(a,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})})},"dijit/layout/_ContentPaneResizeMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/query ../registry ../Viewport ./utils".split(" "),
function(e,k,h,l,b,m,d,g,c,a){return k("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isLayoutContainer:!0,startup:function(){if(!this._started){var a=this.getParent();this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._isShown()&&this._onShow();this._childOfLayoutWidget||this.own(c.on("resize",m.hitch(this,"resize")))}},_checkIfSingleChild:function(){if(this.doLayout){var a=[],b=!1;d("\x3e *",this.containerNode).some(function(c){var d=
g.byNode(c);d&&d.resize?a.push(d):!/script|link|style/i.test(c.nodeName)&&c.offsetHeight&&(b=!0)});this._singleChild=1==a.length&&!b?a[0]:null;h.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)}},resize:function(a,b){this._resizeCalled=!0;this._scheduleLayout(a,b)},_scheduleLayout:function(a,b){this._isShown()?this._layout(a,b):(this._needLayout=!0,this._changeSize=a,this._resultSize=b)},_layout:function(b,c){delete this._needLayout;!this._wasShown&&!1!==this.open&&this._onShow();
b&&l.setMarginBox(this.domNode,b);var d=this.containerNode;if(d===this.domNode){var g=c||{};m.mixin(g,b||{});if(!("h"in g)||!("w"in g))g=m.mixin(l.getMarginBox(d),g);this._contentBox=a.marginBox2contentBox(d,g)}else this._contentBox=l.getContentBox(d);this._layoutChildren()},_layoutChildren:function(){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||l.getContentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else for(var a=this.getChildren(),
b,c=0;b=a[c++];)b.resize&&b.resize()},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;if("open"in this)return this.open;var a=this.domNode,b=this.domNode.parentNode;return"none"!=a.style.display&&"hidden"!=a.style.visibility&&!h.contains(a,"dijitHidden")&&b&&b.style&&"none"!=b.style.display},_onShow:function(){this._wasShown=!0;this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments)}})})},"dojo/html":function(){define("./_base/kernel ./_base/lang ./_base/array ./_base/declare ./dom ./dom-construct ./parser".split(" "),
function(e,k,h,l,b,m,d){var g=0,c={_secureForInnerHtml:function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")},_emptyNode:m.empty,_setNodeContent:function(a,b){m.empty(a);if(b)if("number"==typeof b&&(b=b.toString()),"string"==typeof b&&(b=m.toDom(b,a.ownerDocument)),!b.nodeType&&k.isArrayLike(b))for(var c=b.length,d=0;d<b.length;d=c==b.length?d+1:0)m.place(b[d],a,"last");else m.place(b,a,"last");return a},_ContentSetter:l("dojo.html._ContentSetter",null,{node:"",
content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:e._scopeName,startup:!0,constructor:function(a,c){k.mixin(this,a||{});c=this.node=b.byId(this.node||c);this.id||(this.id=["Setter",c?c.id||c.tagName:"",g++].join("_"))},set:function(a,b){void 0!==a&&(this.content=a);b&&this._mixin(b);this.onBegin();this.setContent();var c=this.onEnd();return c&&c.then?c:this.node},setContent:function(){var a=this.node;if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=
c._setNodeContent(a,this.content)}catch(b){var d=this.onContentError(b);try{a.innerHTML=d}catch(g){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+g.message,g)}}this.node=a},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred);this.parseResults&&this.parseResults.length&&(h.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);m.empty(this.node)},onBegin:function(){var a=
this.content;if(k.isString(a)&&(this.cleanContent&&(a=c._secureForInnerHtml(a)),this.extractContent)){var b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.parseDeferred;delete this.node;delete this.content},onContentError:function(a){return"Error occurred setting content: "+a},onExecError:function(a){return"Error occurred executing scripts: "+
a},_mixin:function(a){var b={},c;for(c in a)c in b||(this[c]=a[c])},_parse:function(){var a=this.node;try{var b={};h.forEach(["dir","lang","textDir"],function(a){this[a]&&(b[a]=this[a])},this);var c=this;this.parseDeferred=d.parse({rootNode:a,noStart:!this.startup,inherited:b,scope:this.parserScope}).then(function(a){return c.parseResults=a},function(a){c._onError("Content",a,"Error parsing in _ContentSetter#"+this.id)})}catch(g){this._onError("Content",g,"Error parsing in _ContentSetter#"+this.id)}},
_onError:function(a,b,d){a=this["on"+a+"Error"].call(this,b);d?console.error(d,b):a&&c._setNodeContent(this.node,a,!0)}}),set:function(a,b,d){void 0==b&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),b="");"number"==typeof b&&(b=b.toString());return d?(new c._ContentSetter(k.mixin(d,{content:b,node:a}))).set():c._setNodeContent(a,b,!0)}};k.setObject("dojo.html",c);return c})},"webview/widgets/DiagramTab":function(){define("dojo/_base/declare dojo/dom-class dojo/topic dijit/layout/BorderContainer dijit/layout/ContentPane ./ModelGraphicsPane ./EmptyModelGraphicsPane ./LightBox".split(" "),
function(e,k,h,l,b,m,d,g){return e([l],{postMixInProperties:function(){this.gutters=!1;this.inherited(arguments)},postCreate:function(){var c=this,a=this.app,d=new g({id:this.id+"_lightbox",app:a}),e=new b({region:"center","class":"wvDiagramTabViewPane"});e.addChild(d);this.addChild(e);this.viewPane=e;this.lightBox=d;k.add(this.domNode,"wvDiagramTab");this.own(e,d,h.subscribe(a.id+"/postOpen",function(a){c.diagram===a&&(c._opening=!1)}));this.inherited(arguments)},onShow:function(){this.update(this.diagram)},
onPreHide:function(){var b=this.modelGraphicsPane;b&&(this.diagram.state=b.getState(),this.viewPane.removeChild(b),b.destroy(),this.modelGraphicsPane=null,this.lightBox.close())},update:function(b,a){var f=this.app,g=this.viewPane,e=this.emptyPane,n=b||f.modelViewer.selectedDiagram,l=this.modelGraphicsPane;n&&!this._opening&&(this.lightBox.close(a),!l||this.diagram!==n?(this._opening=!0,this.diagram&&l&&(this.diagram.state=l.getState()),this.diagram=n,this.set("title",n.name),e&&(g.removeChild(e),
e.destroy(),this.emptyPane=null),l&&(g.removeChild(l),l.destroy(),this.modelGraphicsPane=null),n.svg?(l=new m({app:f,diagram:n}),g.addChild(l),this.modelGraphicsPane=l):(e=new d({app:f,diagram:n}),g.addChild(e),this.emptyPane=e),this.resize()):h.publish(f.id+"/postOpen",n))}})})},"webview/widgets/ModelGraphicsPane":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin ../base/Rect ../mg/Canvas ../tools/PanTool ../tools/ScrollWheelTool ../tools/FitToViewTool ../tools/KeyboardZoomTool ../tools/KeyboardESCBackTool ../tools/TextSelectionTool ../tools/DelegateToHandlerTool dojo/text!./templates/ModelGraphicsPane.html".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){function s(a){return 0<a?1:0>a?-1:0}return e([b,m],{templateString:r,_selectionStyle:"fill: none; outer-stroke: #c6defe; outer-stroke-linecap: butt; outer-stroke-opacity: 0.80; outer-stroke-width: 4; outer-stroke-linejoin: miter; outer-stroke-dasharray: none; outer-stroke-miterlimit: 4",startup:function(){var b=this.app,d=b.id,e=this.diagram,m=new g(e.svg,this.id),r=this;m.focusNode=this.domNode;this.canvas=m;this.own(m,l.subscribe(d+"/cancel",k.hitch(this,
"cancel")),l.subscribe(d+"/select",k.hitch(this,"_select")));m=m.load(this.CanvasNode,"100%","100%").then(function(d){var g=d.sceneServer.svgDocument,l=d.toolStack,k=d.styler,m=k.createStylingLayer({id:"selection",zOrder:90,displayMode:k.COMBINE_DISPLAY}),s=k.createStylingLayer({id:"default-view"});l.addTool(new q({app:b,diagram:e}));l.addTool(new p({app:b}));l.addTool(new u);l.addTool(new f);l.addTool(new c);l.addTool(new a);l.addTool(new n);r.defaultViewStylingLayer=s;r.selectionStylingLayer=m;
h.forEach(b.data.optViewsStore.query(),function(a){k.createStylingLayer({id:a.id,zOrder:3})});k.updateMaskBackground();m.set("show",!0);g=g.createElementNS("http://www.w3.org/1999/xhtml","link");g.setAttribute("type","text/css");g.setAttribute("rel","stylesheet");l=document.styleSheets;m=l.length;for(s=0;s<m;s+=1)if(l[s].href&&0<=l[s].href.search("webview.css")){g.setAttribute("href",l[s].href);break}d.sceneServer.svgDocument.documentElement.appendChild(g)});m.then(function(){e.state?r.restoreState(e.state):
(r.fitToView(),l.publish(d+"/select",e));r.update();l.publish(d+"/postOpen",e)});return m},resize:function(){var a=this.canvas;a.sceneServer&&a.sceneServer.resize()},getState:function(){var a=this.canvas,b=a.sceneRectInView();return{scale:a.scale(),topLeft:b.topLeft(),selected:this.selectedElement||this.diagram}},restoreState:function(a){var b=this.app.id,c=this.canvas,d=c.sceneRectInView(),f=c.scale()/a.scale;c.showSceneRect([a.topLeft.x,a.topLeft.y,d.width*f,d.height*f]);l.publish(b+"/select",a.selected)},
focus:function(){this.canvas.focusNode.focus()},update:function(){var a=this.diagram,b,c,d=this.app.viewManager.currentViewId,f,g=this.canvas.styler.getStylingLayer(d)||this.defaultViewStylingLayer,e,h;if(g){g.set("show",!0);a=a.getElements();h=a.length;for(e=0;e<h;e+=1)if(b=a[e],c=b.backing,c=(c=c.views?c.views[d]:c)&&c.viewer)f=null,c.color?f="stroke: none; fill: "+c.color+"; fill-opacity: 0.4;":c.style&&(f=c.style),f&&g.addStyle(b.sid,f)}},fitToView:function(){var a=this.canvas;a.toolStack.cancelAllTools();
a.zoomToSceneRect()},cancel:function(){this.canvas.toolStack.cancelAllTools()},_select:function(a,b){var c=this.app,d=this.selectionStylingLayer,f=b&&b.svgNode?b.svgNode:null;this.selectedElement=null;d&&d.hideAllStyles();c.isElement(a)&&(c=d.addStyle(f||a.backing.sid,this._selectionStyle),this.moveToView(c.elementNode),this.selectedElement=a)},moveToView:function(a){a=this._getSvgElementNode(a);a=new d(a.getBBox());var b=a.topLeft(),c=a.bottomRight();a=this.canvas;var f=a.sceneRectInView(),g=f.topLeft(),
e=f.bottomRight(),f=b.x-g.x,b=b.y-g.y,g=c.x-e.x,c=c.y-e.y,h=e=0;s(f)===s(g)&&(e=-s(f)*Math.min(Math.abs(f),Math.abs(g)));s(b)===s(c)&&(h=-s(b)*Math.min(Math.abs(b),Math.abs(c)));a.translate(e,h)},centerToView:function(a){var b=this.canvas;a=this._getSvgElementNode(a).getBBox();a=[a.x+a.width/2,a.y+a.height/2];var c=b.position();b.showScenePointAtViewPointAtScale(a,[c.width/2,c.height/2],b.scale())},_getSvgElementNode:function(a){var b=this.canvas.sceneServer.svgDocument;return"string"===typeof a?
b.getElementById(a):void 0===a.nodeType?b.getElementById(a.backing.sid):a}})})},"webview/base/Rect":function(){define(["./Point"],function(e){var k=function(e,l,b,k){this.height=this.width=this.y=this.x=0;"number"===typeof e&&"number"===typeof l&&"number"===typeof b&&"number"===typeof k?(this.x=e,this.y=l,this.width=b,this.height=k):e instanceof Array&&"number"===typeof e[0]&&"number"===typeof e[1]&&"number"===typeof e[2]&&"number"===typeof e[3]?(this.x=e[0],this.y=e[1],this.width=e[2],this.height=
e[3]):"string"===typeof e?(l=e.split(" "),4!==l.length&&(l=e.split(",")),4===l.length&&(this.x=parseFloat(l[0]),this.y=parseFloat(l[1]),this.width=parseFloat(l[2]),this.height=parseFloat(l[3]))):e&&("number"===typeof e.x&&"number"===typeof e.y&&"number"===typeof e.width&&"number"===typeof e.height)&&(this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height)};k.prototype={topLeft:function(){return new e(this.x,this.y)},setTopLeft:function(h,l){var b=new e(h,l);this.x=b.x;this.y=b.y;return this},
top:function(){return this.y},setTop:function(e){this.y=e;return this},left:function(){return this.x},setLeft:function(e){this.x=e;return this},bottomRight:function(){return new e(this.right(),this.bottom())},right:function(){return this.width+this.left()},setRight:function(e){this.width=e-this.x;return this},bottom:function(){return this.height+this.y},setBottom:function(e){this.height=e-this.y;return this},center:function(){return new e(this.x+this.width/2,this.y+this.height/2)},setCenter:function(h,
l){var b=new e(h,l);this.x=b.x-this.width/2;this.y=b.y-this.height/2;return this},toString:function(e){e=e||" ";return this.x.toString()+e+this.y.toString()+e+this.width.toString()+e+this.height.toString()},intersects:function(e){return this.right()>=e.left()&&e.right()>=this.left()&&this.bottom()>=e.top()&&e.bottom()>=this.top()},extend:function(h,l){var b=new e(h,l),k=Math.max(this.right(),b.x),d=Math.max(this.bottom(),b.y);this.x=Math.min(this.x,b.x);this.y=Math.min(this.y,b.y);this.width=k-this.x;
this.height=d-this.y;return this},expand:function(e){this.x-=e;this.y-=e;this.width+=2*e;this.height+=2*e;return this}};return k})},"webview/base/Point":function(){define([],function(){var e=function(k,h){var l;this.y=this.x=0;"number"===typeof k&&"number"===typeof h?(this.x=k,this.y=h):"string"===typeof k?(l=k.split(" "),2!==l.length&&(l=k.split(",")),2===l.length&&(this.x=parseFloat(l[0]),this.y=parseFloat(l[1]))):k instanceof Array&&"number"===typeof k[0]&&"number"===typeof k[1]?(this.x=k[0],this.y=
k[1]):k instanceof e&&(this.x=k.x,this.y=k.y)};return e})},"webview/mg/Canvas":function(){define("dojo/_base/declare dojo/_base/array dojo/on dojo/topic dojo/Deferred ../utils/svg ../utils/dom ../base/Point ../base/Rect ./registry ./SceneServer ./Styler ./TextSelection ./Cursor ../tools/ToolStack".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q){e=function(b,c){c||alert('You must specify an id for Canvas construction for svg file "'+b+'"');this.id=c;this.toolStack=this.htmlElement=this.sceneServer=
null;m.hasSvgSupport?(this.htmlElement=m.createHtmlElement(b,"0px","0px"),this.htmlElement.setAttribute("id",c),a.addCanvas(this)):l.publish("webview:mg:Canvas:noSvgSupport")};e.prototype={load:function(a,c,d){var g=this,e,l=g.htmlElement,k=new b;m.hasNativeSvgSupport&&!m.hasMatlabWebKitSupport?(e=function(){g.sceneServer=new f(g.htmlElement,c,d);g.toolStack=new q(g);g.styler=new u(g);g._doTextLOD();g.selection=new p(g);g.cursor=new n(g);k.resolve(g)},h.once(l,"load",e)):(e=function(){g.isLoaded()?
(g.sceneServer=new f(g.htmlElement,c,d),g.toolStack=new q(g),g.styler=new u(g),g._doTextLOD(),g.selection=new p(g),g.cursor=new n(g),k.resolve(g)):setTimeout(e,250)},setTimeout(e,250));a.appendChild(l);return k.promise},destroy:function(){a.removeCanvas(this.id);this.focusNode=this._textNodes=this.htmlElement=this.id=null;this.sceneServer&&this.sceneServer.destroy();this.toolStack&&this.toolStack.destroy();this.cursor&&this.cursor.destroy();this.styler&&this.styler.destroy()},width:function(){return this.htmlElement.getAttribute("width")},
setWidth:function(a){this.htmlElement.setAttribute("width",a)},height:function(){return this.htmlElement.getAttribute("height")},setHeight:function(a){this.htmlElement.setAttribute("height",a)},isLoaded:function(){return m.isSvgLoaded(this.htmlElement)},position:function(){return d.position(this.htmlElement)},viewOffset:function(){return this.position().topLeft()},viewExtents:function(){var a=this.position();return[a.width(),a.height()]},sceneRectInView:function(){return this.sceneServer.sceneRectInView()},
sceneRect:function(){return this.sceneServer.sceneRect()},scale:function(){var a=this.sceneRectInView();return this.position().width/a.width},nextZoomScale:function(a){var b=this.scale();return 0<a?10*b/9:9*b/10},viewPointToScenePoint:function(a){a=new g(a);var b=this.sceneRectInView(),c=this.scale();return new g(a.x/c+b.x,a.y/c+b.y)},scenePointToViewPoint:function(a){a=new g(a);var b=this.sceneRectInView(),c=this.scale();return new g(c*(a.x-b.x),c*(a.y-b.y))},viewRectToSceneRect:function(a){a=new c(a);
var b=this.viewPointToScenePoint(a.topLeft()),d=this.scale();return new c(b.x,b.y,a.width/d,a.height/d)},sceneRectToViewRect:function(a){a=new c(a);var b=this.scenePointToViewPoint(a.topLeft()),d=this.scale();return new c(b.x,b.y,d*a.width,d*a.height)},validateScale:function(a){return"number"===typeof a&&0<a?a:1},setScale:function(a){this.setScaleAroundScenePoint(this.validateScale(a),this.sceneRectInView().center())},setScaleAroundScenePoint:function(a,b){var c=new g(b);this.showScenePointAtViewPointAtScale(c,
this.scenePointToViewPoint(c),a)},showSceneRect:function(a,b,c,d){this.sceneServer.showSceneRect(a,b,c,d);this._doTextLOD();this.styler.updateMaskBackground()},showSceneRectAtViewRect:function(a,b){var c=Math.min(b.width/a.width,b.height/a.height),d=b.width/c-a.width,f=b.height/c-a.height,g=a.topLeft();g.x=g.x-d/2-b.x/c;g.y=g.y-f/2-b.y/c;this.showSceneRect(g.x,g.y,a.width*c,a.height*c)},showScenePointAtViewPointAtScale:function(a,b,c){a=new g(a);b=new g(b);var d=this.validateScale(c);c=this.position();
var f=c.width/d,d=c.height/d;this.showSceneRect(a.x-b.x/c.width*f,a.y-b.y/c.height*d,f,d)},translate:function(a,b){var c=new g(a,b),d=this.sceneRectInView();d.setTopLeft(d.x-c.x,d.y-c.y);this.showSceneRect(d)},translateScenePointToViewPoint:function(a,b){this.showScenePointAtViewPointAtScale(a,b,this.scale())},zoomToSceneRect:function(){var a=this.sceneRect();a.expand(5);this.showSceneRect(a)},zoomToActualSize:function(){this.zoomToSceneRect();this.setScale(1)},_getTextNodes:function(){this._textNodes||
(this._textNodes=this.sceneServer.svgDocument.getElementsByTagName("text"));return this._textNodes},_doTextLOD:function(){var a=this.scale(),b=this.sceneServer,c=this._lastScale,d,f,g,e,h,n,l;if(c!==a){this._textNodes||(this._textNodes=b.svgDocument.getElementsByTagName("text"),this._nTextNodes=this._textNodes.length);d=this._textNodes;g=this._nTextNodes;"number"!==typeof this._nHiddenText&&(this._nHiddenText=0);l=this._nHiddenText;if(void 0===c||a>c&&0<l||a<c&&l!==g){c=parseFloat(this.width())/b.baseScene.viewBox().width;
h=parseFloat(this.height())/b.baseScene.viewBox().height;for(f=0;f<g;f+=1)b=d.item(f),n=m.getAttribute(b,"font-size"),b.tMatrix_a||(b.tMatrix_a=b.getCTM().a/c),0===Math.round(100*b.tMatrix_a)/100?(b.tMatrix_b||(b.tMatrix_b=b.getCTM().b/h),e=h*b.tMatrix_b):e=c*b.tMatrix_a,n&&(6>Math.abs(e*n)?"none"!==m.getAttribute(b,"display")&&(m.setAttribute(b,"display","none"),l+=1):m.hasAttribute(b,"display")&&(b.removeAttribute("display"),l-=1))}this._nHiddenText=l}this._lastScale=a}};return e})},"webview/utils/dom":function(){define(["../base/Rect"],
function(e){return{position:function(k){var h=new e;h.width=k.offsetWidth;for(h.height=k.offsetHeight;k&&!isNaN(k.offsetLeft)&&!isNaN(k.offsetTop);)h.x+=k.offsetLeft-k.scrollLeft,h.y+=k.offsetTop-k.scrollTop,k=k.offsetParent;return h}}})},"webview/mg/registry":function(){define(["dojo/_base/unload","dojo/store/Memory"],function(e,k){var h=new k,l={getCanvas:function(b){return h.get(b)},addCanvas:function(b){h.get(b.id)&&console.error("Canvas's id must be unique! Id, "+b.id+", is already in use!");
h.put(b)},removeCanvas:function(b){h.remove(b)},destroyAllCanvases:function(){h.query().forEach(function(b){h.remove(b.id);b.destroy()})}};e.addOnWindowUnload(l.destroyAllCanvases);return l})},"webview/mg/SceneServer":function(){define("dojo/_base/declare ../utils/svg ../utils/units ../utils/dom ../base/Rect ./Scene".split(" "),function(e,k,h,l,b,m){return e(null,{constructor:function(b,g,c){this.htmlElement=b;this.heightAttrib=c||"100%";this.widthAttrib=g||"100%";this._initSvgSceneHierarchy();this._initHtmlViewportSize();
this._initBaseSceneViewbox()},svgDocument:null,documentElement:null,backgroundScene:null,baseScene:null,foregroundScene:null,htmlElement:null,heightAttrib:null,widthAttrib:null,widthPixels:null,heightPixels:null,destroy:function(){this.documentElement=this.svgDocument=void 0;this.backgroundScene.destroy();this.baseScene.destroy();this.foregroundScene.destroy()},_cacheSceneRect:null,MIN_SCALE:0.25,MAX_SCALE:10,showSceneRect:function(d,g,c,a){d=new b(d,g,c,a);this.sceneRect();g=d.width/d.height;c=d.center();
a=this.sceneRectInView();a=a.width/a.height;g>a?d.height=d.height*g/a:d.width=d.width*a/g;d.setCenter(c);this.baseScene.setViewBox(d)},sceneRectInView:function(){return this.baseScene.viewBox()},sceneRect:function(){var d,g,c,a;d=this._cacheSceneRect;if(!d||1>d.width)k.hasAdobePluginSvgSupport?(d=this.documentElement.getBBox(),d=new b(d.x,d.y,d.width,d.height),g=this.sceneRectInView(),c=g.width/this.widthPixels,a=g.height/this.heightPixels,d.x=g.x+d.x*c,d.y=g.y+d.y*a,d.width*=c,d.height*=a):(d=this.baseScene.getBoundingBox(),
d=new b(d.x,d.y,d.width,d.height)),this._cacheSceneRect=d;return new b(this._cacheSceneRect)},_handlePercentageResize:function(){var b=this.htmlElement,g=this.documentElement,c=l.position(b.parentElement),a=this.baseScene,f=a.viewBox(),e,h;0<=this.heightAttrib.indexOf("%")&&(e=c.height,b.setAttribute("height",e+"px"),f.height*=e/this.heightPixels,this.heightPixels=e);0<=this.widthAttrib.indexOf("%")&&(h=c.width,b.setAttribute("width",h+"px"),f.width*=h/this.widthPixels,this.widthPixels=h);g.setAttribute("height",
e+"px");g.setAttribute("width",h+"px");a.setViewBox(f)},_initBaseSceneViewbox:function(){var b=this.baseScene,g=b.rootElement,c=b.viewBox(),a=c.width/c.height,f=c.center(),e=this.widthPixels/this.heightPixels;a>e?c.height=c.height*a/e:c.width=c.width*e/a;c.setCenter(f);b.setViewBox(c);g.setAttribute("height","100%");g.setAttribute("width","100%")},_initSvgSceneHierarchy:function(){var b=k.XMLNS,g=k.getSvgDocument(this.htmlElement),c=g.createElementNS(b,"svg"),a=g.createElementNS(b,"svg"),f=g.documentElement,
b=g.createElementNS(b,"svg"),e=g.createDocumentFragment();this.svgDocument=g;this.documentElement=c;this.backgroundScene=new m(a);this.baseScene=new m(f);this.foregroundScene=new m(b);g.removeChild(g.documentElement);e.appendChild(c);c.appendChild(a);c.appendChild(f);c.appendChild(b);c.setAttribute("zoomAndPan","disable");g.appendChild(e);this._initBackgroundHierarchy()},_initBackgroundHierarchy:function(){var d=this.documentElement.getElementById("background"),g=this.backgroundScene,c=g.rootElement,
a;c.setAttribute("width","100%");c.setAttribute("height","100%");c.setAttribute("preserveAspectRatio","none");d&&(a=new b(d.getBBox()),k.getParent(d).removeChild(d),c.appendChild(d),g.setViewBox(a.toString()))},_initHtmlViewportSize:function(){var b=this.baseScene.rootElement,g=l.position(this.htmlElement.parentElement),c=!1,a=!1;this.heightAttrib||(this.heightAttrib=b.getAttribute("height"));c=0<=this.heightAttrib.indexOf("%");this.widthAttrib||(this.widthAttrib=b.getAttribute("width"));a=0<=this.widthAttrib.indexOf("%");
this.heightPixels=c?g.height:h.getPixelValue(this.heightAttrib);this.widthPixels=a?g.width:h.getPixelValue(this.widthAttrib);this.resize=c||a?this._handlePercentageResize:function(){};(0===this.widthPixels||0===this.heightPixels)&&console.error("SceneServer: Invalid width or height");this.htmlElement.setAttribute("width",this.widthPixels+"px");this.htmlElement.setAttribute("height",this.heightPixels+"px");this.documentElement.setAttribute("height",this.heightPixels+"px");this.documentElement.setAttribute("width",
this.widthPixels+"px")}})})},"webview/utils/units":function(){define([],function(){var e=function(){var e=document.createElement("div"),b;e.setAttribute("style","height: 1in; left: -100%; position: absolute; top: -100%; width: 1in;");document.documentElement.appendChild(e);b=e.offsetWidth;document.documentElement.removeChild(e);return b}(),k=function(){var e=document.createElement("div"),b;e.setAttribute("style","font-size:1em; position:absolute; line-height:1; padding:0; visibility:hidden");e.appendChild(document.createTextNode("M"));
document.documentElement.appendChild(e);b=e.offsetHeight;document.documentElement.removeChild(e);return b}(),h=/(\d+\.*\d*)\s*(\w*)/;return{getPixelValue:function(l){var b;if(l)if(b=h.exec(l),3===b.length)switch(l=parseFloat(b[1]),b=b[2].toLowerCase(),b){case "in":b=e*l;break;case "mm":b=e/25.4*l;break;case "cm":b=e/2.54*l;break;case "em":b=k*l;break;case "ex":b=2*k*l;break;case "pt":b=e/72*l;break;case "pc":b=e/6*l;break;default:b=l}else b=parseFloat(l);return b}}})},"webview/mg/Scene":function(){define(["dojo/_base/declare",
"../base/Rect","../utils/svg"],function(e,k,h){return e(null,{constructor:function(e){var b=e.ownerDocument,k;h.hasAdobePluginSvgSupport||(k=[b.createElementNS(h.XMLNS,"rect"),b.createElementNS(h.XMLNS,"rect")],k[0].setAttribute("width",100),k[0].setAttribute("height",100),k[1].setAttribute("width",1),k[1].setAttribute("height",1),k[0].setAttribute("stroke","none"),k[0].setAttribute("fill","none"),k[1].setAttribute("stroke","none"),k[1].setAttribute("fill","none"),e.appendChild(k[0]),e.appendChild(k[1]));
this.rootElement=e;this._cornerElements=k},destroy:function(){this.rootElement=void 0},viewBox:function(){var e,b;this._viewBox||(e=this.rootElement,this._viewBox=e=(b=e.getAttribute("viewBox"))?new k(e.getAttribute("viewBox")):new k(0,0,0,0));return this._viewBox},setViewBox:function(e){e=new k(e);var b=this._cornerElements;this.rootElement.setAttribute("viewBox",e.toString());b&&(b[0].setAttribute("x",e.x-5),b[0].setAttribute("y",e.y-5),b[1].setAttribute("x",e.right()+5),b[1].setAttribute("y",e.bottom()+
5));this._viewBox=e},getBoundingBox:function(){var e=this._cornerElements,b=this.rootElement,m;h.hasAdobePluginSvgSupport&&alert("Adobe SVG plugin does not return correct bounding box!");e&&(b.removeChild(e[0]),b.removeChild(e[1]));m=b.getBBox();m=new k(m.x,m.y,m.width,m.height);e&&(b.appendChild(e[0]),b.appendChild(e[1]));return m}})})},"webview/mg/TextSelection":function(){define(["dojo/_base/declare","../utils/svg"],function(e,k){return e(null,{constructor:function(e){var l=e.sceneServer,b=l.svgDocument;
this.documentElement=l.documentElement;if(b.getSelection)this._selection=b.getSelection();else if(e=e.htmlElement.contentWindow)this._selection=e.getSelection()},enable:function(){var e=this.documentElement,l,b;l=k.getAttribute(e,"style")||"";-1===l.indexOf("-webkit-touch-callout: text; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;")&&(b=l.replace("-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;",
"-webkit-touch-callout: text; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;"),b===l?k.setAttribute(e,"style",l+"-webkit-touch-callout: text; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;"):k.setAttribute(e,"style",b))},disable:function(){var e=this.documentElement,l,b;l=k.getAttribute(e,"style")||"";-1===l.indexOf("-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;")&&
(b=l.replace("-webkit-touch-callout: text; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;","-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;"),b===l?k.setAttribute(e,"style",l+"-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;"):k.setAttribute(e,
"style",b))},toString:function(){var e=this._selection;return e?e.toString():""},clear:function(){try{this._selection.removeAllRanges()}catch(e){}},_getSvgSelection:function(e){var l,b=e.sceneServer.svgDocument;b.getSelection?l=b.getSelection():(e=e.htmlElement.contentWindow)&&(l=e.getSelection());return l}})})},"webview/mg/Cursor":function(){define("require dojo/_base/declare dojo/_base/window dojo/Stateful dijit/Destroyable ../utils/svg".split(" "),function(e,k,h,l,b,m){h=document.URL;h=h.substring(0,
Math.max(h.lastIndexOf("/"),h.lastIndexOf("\\"))+1);var d={Default:{name:"Default",curName:"default"},Wait:{name:"Wait",curName:"wait"},ClosedHand:{name:"ClosedHand",curFile:h+e.toUrl("./images/closed_hand.cur"),imgFile:h+e.toUrl("./images/closed_hand.png"),imgWidth:16,imgHeight:16},OpenHand:{name:"OpenHand",curFile:h+e.toUrl("./images/open_hand.cur"),imgFile:h+e.toUrl("./images/open_hand.png"),imgWidth:16,imgHeight:16},ZoomIn:{name:"ZoomIn",curFile:h+e.toUrl("./images/zoom_in.cur"),imgFile:h+e.toUrl("./images/zoom_in.png"),
imgWidth:16,imgHeight:16}},g=k(b,{constructor:function(b){function a(a){k.setAttribute("x",a.clientX-d.imgWidth/2);k.setAttribute("y",a.clientY-d.imgHeight/2)}var d=b.cursor,g=b.x,e=b.y;b=b.canvas.sceneServer;var h=b.documentElement,l=b.foregroundScene.rootElement,k=b.svgDocument.createElementNS(m.XMLNS,"image");k.setAttributeNS("http://www.w3.org/1999/xlink","href",d.imgFile);k.setAttribute("width",d.imgWidth);k.setAttribute("height",d.imgHeight);g&&k.setAttribute("x",g-d.imgWidth/2);e&&k.setAttribute("y",
e-d.imgHeight/2);k.setAttribute("visiblity","visible");h.addEventListener("mousemove",a,!1);this.own({remove:function(){h.removeEventListener("mousemove",a,!1);l.removeChild(k)}});l.appendChild(k)}});return k(null,{constructor:function(b){this.canvas=b;this._name="Default"},destroy:function(){this._asvCursor&&this._asvCursor.destroy()},toString:function(){return this._name},set:function(b){var a=b.name?d[b.name]:d[b],f=this.canvas.sceneServer.documentElement;a.curName?f.style.cursor=a.curName:a&&
(f.style.cursor="url("+a.curFile+"),default");this._asvCursor&&this._asvCursor.destroy();m.hasAdobePluginSvgSupport&&a.imgFile&&(this._asvCursor=new g({canvas:this.canvas,cursor:a,x:b.x,y:b.y}));this._name=a.name}})})},"webview/tools/ToolStack":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/window dojo/store/Memory dojo/on dojo/keys dijit/Destroyable ../utils/svg ../base/Event".split(" "),function(e,k,h,l,b,m,d,g,c,a){var f,u;return e(g,{constructor:function(a){a.isLoaded()||
console.error("Canvas must be loaded.");this.canvas=a;this._stack=new b({idProperty:"role"});this._registerEvents()},destroy:function(){this.clearToolStack();this.inherited(arguments)},addTool:function(a){var b=this._stack;this.removeTool(a.role);b.put(a);a.onAddToStack(this)},removeTool:function(a){var b=this._stack,c=b.get(a);c&&(c.onRemoveFromStack(),b.remove(a))},getTool:function(a){return this._stack.get(a)},clearToolStack:function(){var a=this._stack,b=a.query();h.forEach(b,function(b){b.onRemoveFromStack();
a.remove(b.id)})},cancelAllTools:function(){var a=this._stack.query();h.forEach(a,function(a){a.cancel()})},moveToolAbove:function(a,b){var c=this._stack,d,f=this.getTool(a);d=this.getTool(b);var g=[];f&&d&&(c.remove(a),d=c.query(),h.forEach(d,function(a){g.push(a);a.role===b&&g.push(f)}),c.setData(g))},moveToolBelow:function(a,b){var c=this._stack,d,f=this.getTool(a);d=this.getTool(b);var g=[];f&&d&&(c.remove(a),d=c.query(),h.forEach(d,function(a){a.role===b&&g.push(f);g.push(a)}),c.setData(g))},
addToolAbove:function(a,b){this.addTool(a);this.moveToolAbove(a.role,b)},addToolBelow:function(a,b){this.addTool(a);this.moveToolBelow(a.role,b)},cancelAllToolsExcept:function(a){var b=this._stack.query();h.forEach(b,function(b){b.role!==a&&b.cancel()})},_registerEvents:function(){var a=this,b=this.canvas,d=b.focusNode,f=b.sceneServer.svgDocument.documentElement,g=[{evtName:"mouseup",handler:"handleMouseUpEvent"},{evtName:"mousedown",handler:"handleMouseDownEvent"},{evtName:"mouseover",handler:"handleMouseOverEvent"},
{evtName:"mousemove",handler:"handleMouseMoveEvent"},{evtName:"mouseout",handler:"handleMouseOutEvent"},{evtName:"keyup",handler:"handleKeyUpEvent"},{evtName:"keydown",handler:"handleKeyDownEvent"}];c.hasAdobePluginSvgSupport?(h.forEach(g,function(b){var c=function(c){a.handleGenericEvent(b.handler,c)};f.addEventListener(b.evtName,c,!1);this.own({remove:function(){f.removeEventListener(b.evtName,c,!1)}})}),f.addEventListener("click",a.handleClick,!1),this.own({remove:function(){f.removeEventListener("click",
a.handleClick,!1)}},m(b.htmlElement,"mousewheel",function(c){var d=b.position();c=k.mixin({},c);var f=l.doc;c.clientX=c.clientX-d.x+f.documentElement.scrollLeft;c.clientY=c.clientY-d.y+f.documentElement.scrollTop;a.handleGenericEvent("handleMouseWheelEvent",c)}))):(g.push({evtName:"DOMMouseScroll",handler:"handleMouseWheelEvent"}),g.push({evtName:"mousewheel",handler:"handleMouseWheelEvent"}),h.forEach(g,function(b){a.own(m(f,b.evtName,function(c){a.handleGenericEvent(b.handler,c)}))}),this.own(m(f,
"click",function(b){a.handleClick(b)})));this.own(m(d,"keydown",function(b){a.handleGenericEvent("handleKeyDownEvent",b)}),m(d,"keyup",function(b){a.handleGenericEvent("handleKeyUpEvent",b)}))},handleGenericEvent:function(b,c){var f=this.activeTool,g,e,l,k=c instanceof a?c:new a(c);"handleKeyUpEvent"===b&&k.getKeyCharOrCode()===d.ESCAPE&&(e=this._stack.query(),h.forEach(e,function(a){if(a.isActive()||a.isAlert())k.consume(),a.cancel()}));f&&f.handleGenericEvent(b,k);e=this._stack.query().reverse();
l=0;for(g=e[l];!k.isConsumed()&&g;)g!==f&&g.handleGenericEvent(b,k),g=e[l+=1]},handleClick:function(b){b=new a(b);this.handleGenericEvent("handleClickEvent",b);b.isConsumed()?u=null:(u===b.domEvent.target&&this.handleGenericEvent("handleDoubleClickEvent",b),u=b.domEvent.target,f&&clearTimeout(f),f=setTimeout(function(){f=u=null},500))}})})},"webview/base/Event":function(){define(["dojo/_base/declare","./Point"],function(e,k){return e(null,{constructor:function(e){var l=!1;this.domEvent=e;this.isConsumed=
function(){return l};this.consume=function(){var b=this.domEvent;if("mousedown"!==b.type||!this.isLeftMouse(b))b.preventDefault&&b.preventDefault(),b.preventDefault&&b.stopPropagation(),b.returnValue=!1;if(b=window.event)b.returnValue=!1;l=!0}},getKeyCharOrCode:function(){var e=this.domEvent;return e.charCode||e.keyCode},shiftKey:function(){return this.domEvent.shiftKey},ctrlKey:function(){return this.domEvent.ctrlKey},altKey:function(){return this.domEvent.altKey},getMousePosition:function(){var e=
this.domEvent;return new k(e.clientX,e.clientY)},isLeftMouse:function(){var e=this.domEvent;return"number"===typeof e.button&&0===e.button},isMiddleMouse:function(){var e=this.domEvent;return"number"===typeof e.button&&1===e.button},isRightMouse:function(){var e=this.domEvent;return"number"===typeof e.button&&2===e.button},mouseWheelDir:function(){var e=this.domEvent;return e.wheelDelta?0<e.wheelDelta?1:-1:0>e.detail?1:-1}})})},"webview/tools/PanTool":function(){define(["dojo/_base/declare","dojo/keys",
"../base/Point","./Tool"],function(e,k,h,l){return e(l,{postMixInProperties:function(){this.role="PanTool";this.panState={mousePosition:null,isPanning:!1,spaceKeyInitiated:!1}},becomeIdle:function(){var b=this.canvas,e=this.panState;this.inherited(arguments);e.spaceKeyInitiated=!1;e.isPanning=!1;e.mousePosition=null;b&&b.cursor.set("Default")},becomeAlert:function(b){this.inherited(arguments);this.canvas.cursor.set({name:"OpenHand",x:b.domEvent.clientX,y:b.domEvent.clientY})},becomeActive:function(b){this.inherited(arguments);
this.canvas.cursor.set({name:"ClosedHand",x:b.domEvent.clientX,y:b.domEvent.clientY});this.panState.mousePosition=null},handleMouseDownEvent:function(b){this.isIdle()&&b.isMiddleMouse()?this.becomeAlert(b):this.isAlert()&&b.isLeftMouse()&&this.becomeActive(b)},handleMouseMoveEvent:function(b){var e=this.canvas,d=e.scale(),g=this.panState,c;this.isAlert()&&!g.spaceKeyInitiated&&this.becomeActive(b);this.isActive()&&(b=b.getMousePosition(),g.mousePosition?(c=new h(g.mousePosition.x-b.x,g.mousePosition.y-
b.y),e.translate(-c.x/d,-c.y/d),g.mousePosition=b,g.isPanning=!0):g.mousePosition=b)},handleClickEvent:function(b){this.isActive()&&(this.panState.spaceKeyInitiated?this.becomeAlert(b):this.becomeIdle(),b.consume())},keyPanPercent:0.05,handleKeyDownEvent:function(b){function e(b,a,d,h){var l=a.sceneRectInView();a.translate(g*d*l.width,g*h*l.height);b.consume()}var d=this.canvas,g=this.keyPanPercent;if(this.isIdle())if(b.getKeyCharOrCode()===k.SPACE)this.panState.spaceKeyInitiated=!0,this.becomeAlert(b);
else if(!b.altKey()&&!b.ctrlKey())switch(b.getKeyCharOrCode()){case k.UP_ARROW:case k.NUMPAD_8:e(b,d,0,1);break;case k.DOWN_ARROW:case k.NUMPAD_2:e(b,d,0,-1);break;case k.LEFT_ARROW:case k.NUMPAD_4:e(b,d,1,0);break;case k.RIGHT_ARROW:case k.NUMPAD_6:e(b,d,-1,0)}},handleKeyUpEvent:function(b){if(b.getKeyCharOrCode()===k.SPACE&&(this.isAlert()||this.isActive()))this.panState.isPanning&&b.consume(),this.becomeIdle()}})})},"webview/tools/Tool":function(){define(["dojo/_base/declare","dojo/Evented","../base/EventHandler"],
function(e,k,h){return e([k,h],{constructor:function(h){this.role="";this.state=this.IDLE;this.consumeEventWhenActive=!0;e.safeMixin(this,h);this.postMixInProperties()},postMixInProperties:function(){},destroy:function(){},IDLE:0,ACTIVE:1,ALERT:2,DONE:3,isIdle:function(){return this.state===this.IDLE},isAlert:function(){return this.state===this.ALERT},isActive:function(){return this.state===this.ACTIVE},isDone:function(){return this.state===this.DONE},becomeIdle:function(){this._becomeNewState(this.IDLE);
this.emit("idle")},becomeAlert:function(){this._becomeNewState(this.ALERT);this.emit("alert")},becomeActive:function(){var e=this.toolStack;this._becomeNewState(this.ACTIVE);e.cancelAllToolsExcept(this.role);e.activeTool=this;this.emit("active")},becomeDone:function(){this._becomeNewState(this.DONE);this.toolStack.removeTool(this.role);this.emit("done")},cancel:function(){this.isIdle()||this.becomeIdle()},onAddToStack:function(e){this.toolStack=e;this.canvas=e.canvas},onRemoveFromStack:function(){this.canvas=
this.toolStack=null},handleGenericEvent:function(e,b){this[e](b);this.isActive()&&this.consumeEventWhenActive&&b.consume()},_becomeNewState:function(e){var b=this.toolStack,h,d;this.state===e&&console.error("Tool state did not change");this.isActive()&&(h=b.activeTool.role,d=this.role,h!==d&&console.error("Unexpected active tool: "+h+"expected: "+d),b.activeTool=void 0);this.state=e}})})},"webview/base/EventHandler":function(){define(["dojo/_base/declare"],function(e){return e(null,{constructor:function(){},
handleMouseWheelEvent:function(e){},handleMouseMoveEvent:function(e){},handleMouseDownEvent:function(e){},handleMouseUpEvent:function(e){},handleMouseOverEvent:function(e){},handleMouseOutEvent:function(e){},handleClickEvent:function(e){},handleDoubleClickEvent:function(e){},handleKeyDownEvent:function(e){},handleKeyUpEvent:function(e){}})})},"webview/tools/ScrollWheelTool":function(){define(["dojo/_base/declare","./Tool"],function(e,k){return e(k,{postMixInProperties:function(){this.role="ScrollWheelTool"},
handleMouseWheelEvent:function(e){var l=this.canvas,b=e.mouseWheelDir();e.shiftKey()?l.translate(-0.05*l.sceneRectInView().width*b,0):e.ctrlKey()?l.translate(0,-0.05*l.sceneRectInView().height*b):l.setScaleAroundScenePoint(l.nextZoomScale(b),l.viewPointToScenePoint(e.getMousePosition()));e.consume()}})})},"webview/tools/FitToViewTool":function(){define(["dojo/_base/declare","dojo/keys","./Tool"],function(e,k,h){return e(h,{postMixInProperties:function(){this.role="FitToViewTool"},handleKeyUpEvent:function(e){e.getKeyCharOrCode()===
k.SPACE&&(this.becomeActive(),this.canvas.zoomToSceneRect(),this.becomeIdle(),e.consume())}})})},"webview/tools/KeyboardZoomTool":function(){define(["dojo/_base/declare","dojo/keys","./Tool"],function(e,k,h){var l="+".charCodeAt(),b="-".charCodeAt(),m="1".charCodeAt();return e(h,{postMixInProperties:function(){this.role="KeyboardZoomTool"},handleKeyUpEvent:function(d){var g=this.canvas,c=g.scale();switch(d.getKeyCharOrCode()){case k.NUMPAD_PLUS:case l:case 187:this.becomeActive();g.setScale(1.1*c);
this.becomeIdle();d.consume();break;case k.NUMPAD_MINUS:case b:case 189:this.becomeActive();g.setScale(0.9*c);this.becomeIdle();d.consume();break;case m:d.altKey()&&(this.becomeActive(),g.zoomToActualSize(),this.becomeIdle(),d.consume())}}})})},"webview/tools/KeyboardESCBackTool":function(){define(["dojo/_base/declare","dojo/keys","./Tool"],function(e,k,h){return e(h,{postMixInProperties:function(){this.role="KeyboardESCBackTool"},handleKeyUpEvent:function(e){switch(e.getKeyCharOrCode()){case k.ESCAPE:window.history.back(),
e.consume()}}})})},"webview/tools/TextSelectionTool":function(){define(["dojo/_base/declare","./Tool"],function(e,k){return e(k,{postMixInProperties:function(){this.role="TextSelection";this.consumeEventWhenActive=!1;this._disableInDBClick=/chrome/.test(navigator.userAgent.toLowerCase())},cancel:function(){this.inherited(arguments);this.canvas.selection.clear()},handleMouseDownEvent:function(e){var l=this.canvas;!this.isAlert()&&e.isLeftMouse()&&(this.becomeAlert(),l.selection.clear(),this._startMousePos=
e.getMousePosition(),this._disableInDBClick&&l.selection.disable())},handleMouseMoveEvent:function(e){this.isAlert()&&this._didMouseMove(e)&&(this.becomeActive(),this._disableInDBClick&&this.canvas.selection.enable())},handleClickEvent:function(e){var l=this.canvas,b;this.isActive()?(b=l.selection.toString(),""!==b&&e.consume(),this._disableInDBClick&&""===b&&l.selection.disable(),this.becomeIdle()):this.isAlert()&&this.becomeIdle()},_didMouseMove:function(e){e=e.getMousePosition();var l=this._startMousePos;
return l&&(l.x!==e.x||l.y!==e.y)}})})},"webview/tools/DelegateToHandlerTool":function(){define("dojo/_base/declare require dojo/store/Memory ../utils/svg ./Tool ../handlers/ElementHandler ../handlers/ContainerHandler".split(" "),function(e,k,h,l,b,m){return e(b,{postMixInProperties:function(){this.role="DelegateToHandlerTool";this._cache=new h;this.defaultHandler=new m},getHandler:function(b){b=b.domEvent.target;var g=this.app,c=this.diagram,a,f,e,h;for(h=this.defaultHandler;b;){if(e=l.getAttribute(b,
"id")){if(e===this._lastTargetId)return this._lastJsHandler;if(a=c.getElement(e))if(f=a.backing.viewer)if(f=f.jshandler,"string"===typeof f)return h=this._getJsHandlerFromCache(f),h||(h=new (k(f)),this._addJsHandlerToCache(f,h)),h.init({app:g,diagram:c,element:a,svgNode:b,canvas:this.canvas}),this._lastTargetId=e,this._lastJsHandler=h}b=l.getParent(b)}h.init({app:g,diagram:c,element:null,svgNode:null,canvas:this.canvas});return h},handleGenericEvent:function(b,e){var c=this.getHandler(e);c&&(c[b](e),
this.toolStack&&e.isConsumed()&&(this.becomeActive(),this.becomeIdle()))},_getJsHandlerFromCache:function(b){b=this._cache.get(b);var e;b&&b.jshandler&&(e=b.jshandler);return e},_addJsHandlerToCache:function(b,e){this._cache.put({id:b,jshandler:e})}})})},"webview/handlers/ElementHandler":function(){define(["dojo/_base/declare","dojo/_base/lang","../base/EventHandler"],function(e,k,h){return e(h,{init:function(e){this.reset();k.mixin(this,e)},reset:function(){this.canvas=this.svgNode=this.element=
this.diagram=this.app=null},handleClickEvent:function(e){e=this.app;var b=this.element||this.diagram;b&&e.select(b,{svgNode:this.svgNode})},handleDoubleClickEvent:function(e){var b=this.element||this.diagram;b&&(this.app.open(b),e.consume())}})})},"webview/handlers/ContainerHandler":function(){define(["dojo/_base/declare","./ElementHandler"],function(e,k){return e(k,{handleDoubleClickEvent:function(e){var l=this.app,b=l.data.diagramStore.getTargetDiagram(this.element);b&&l.open(b,{tab:e.ctrlKey()?
"new":"reuse"}).then(function(){l.modelViewer.focus()});e.consume()}})})},"webview/widgets/EmptyModelGraphicsPane":function(){define(["dojo/_base/declare","dojo/topic","dijit/layout/ContentPane","dojo/i18n!../resources/slreportgen_webview/nls/modelviewer"],function(e,k,h,l){return e([h],{postCreate:function(){this.inherited(arguments);this.set("class","no-export");this.set("innerHTML",l.NoExport)},startup:function(){k.publish(this.app.id+"/select",this.diagram);k.publish(this.app.id+"/postOpen",this.diagram)}})})},
"webview/widgets/LightBox":function(){define("dojo/_base/declare dojo/_base/lang dojo/topic dojo/query dojo/Deferred dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/keys dojo/on dijit/_WidgetBase dijit/_TemplatedMixin dijit/_CssStateMixin dijit/layout/ContentPane dijit/focus ../base/Rect MW/rtc/plugins/language/matlab/tokenizer/TokenState MW/rtc/plugins/language/matlab/tokenizer/TokenConstants MW/syntaxhighlighting/ColorMapDefaults dojo/text!./templates/LightBox.html dojo/i18n!dijit/nls/common".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w,y,A){return e([f,u,p],{templateString:y,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},title:"",_setTitleAttr:{node:"titleNode",type:"innerHTML"},content:null,_setContentAttr:function(a){this.contentPane.set("content",a);this.resize()},_hasContentToShow:!1,href:null,_setHrefAttr:function(a){this.contentPane.set("href",a);this.resize()},contentPane:null,isOpen:!1,_lastObjId:"",_lastViewId:"",_contentSize:null,_titleBarSize:null,
spacing:20,postMixInProperties:function(){k.mixin(this,A);this.inherited(arguments)},startup:function(){var b=this.app.id,c=this.app,d=this;this.own(a(this.dialogNode,"keyup",k.hitch(this,"_onKeyUp")),a(this.underlayNode,"click",k.hitch(this,"close")),h.subscribe(b+"/open",function(a,b){c.isElement(a)&&d.open(a,b)}),h.subscribe(b+"/close",k.hitch(this,"close")),h.subscribe(b+"/select",k.hitch(this,"_select")),h.subscribe(b+"/postClose",k.hitch(this,"close")));this.contentPane=new n({content:this.content,
style:"padding: 0"},this.contentNode);this.reset()},destroy:function(){this._tableSignal&&this._tableSignal.remove()},resize:function(){this.isOpen&&(this._sizeWidget(),this._sizeDialog(),this._positionDialog())},open:function(a,b){var c=this,d=this.app,f=a.backing.sid,e=a.backing,g=e.obj_viewer,n=0<e.name.length?e.name:e.sid,l=this.app.viewManager,k=l.currentViewId,p,m=!0;if(d.isElement(a)&&d.getSelectedDiagram()===a.diagram){this.element=a;if(k&&(e=e.views[k].obj_viewer))g=e,n=l.optViewsStore.get(k).name+
": "+n;g&&(f!==this._lastObjId||this._lastViewId!==k?(this.reset(),this._lastObjId=f,this._lastViewId=k,g.title&&(n=g.title),this.set("title",n),"string"===typeof g?p=g:"string"===typeof g.code?p=this._createHighlightedText(g.code):"string"===typeof g.html&&(p=g.html),this._hasContentToShow=!1,p?(this._hasContentToShow=!0,this.set("content",p),this._onContentLoaded(b),m=!1):g.href&&(/\.html$/.test(g.href)?(this._hasContentToShow=!0,this.contentPane.set("onDownloadEnd",function(){c._onContentLoaded(b,
n)}),this.contentPane.set("href",g.href)):(f=g.href,!f.startsWith("http:")&&!f.startsWith("file:")&&(f=document.location.href,f=f.substring(0,f.lastIndexOf("/")),f=f+"/"+g.href),window.open(f),this._lastViewId=this._lastObjId=""),m=!1)):this._hasContentToShow&&(this._show(b),m=!1));m&&h.publish(d.id+"/postOpen",a)}},hasContentToShow:function(a){var b=this.app.viewManager.currentViewId;return(a=a&&a.backing)?(objViewerData=b?a.views[b].obj_viewer:a.obj_viewer,"string"===typeof objViewerData||"string"===
typeof objViewerData.code||"string"===typeof objViewerData.html):!1},_onContentLoaded:function(b){function c(){h+=1;h===n&&k._show()}var d=l("img",this.contentPane.domNode),f,e=d.length,g,h=0,n=0,k=this;if(0<e)for(g=0;g<e;g+=1)f=d[g],"undefined"!==f.naturalWidth&&0===f.naturalWidth&&(a.once(d[g],"load",c),n+=1);0===n&&this._show(b)},reset:function(){this.isOpen=!1;this._lastObjId="";this._titleBarSize=this._contentSize=null;this.set("content","");this.set("title","");g.set(this.contentNode,{width:"auto",
height:"auto","white-space":"pre"});g.set(this.domNode,{display:"none"})},_show:function(a){this.isOpen=!0;g.set(this.domNode,{display:"block"});this.resize();this.focus();h.publish(this.app.id+"/postOpen",this.element)},close:function(a){var b=this.app;g.set(this.domNode,{display:"none"});this.isOpen&&(this.isOpen=!1,b.open(b.getSelectedDiagram(),a),b.modelViewer.focus())},focus:function(){q.focus(this.dialogNode)},_select:function(a){a!==this.element&&this.close()},_sizeWidget:function(){var a=
d.position(this.getParent().domNode);g.set(this.domNode,{top:"0px",left:"0px",width:a.w+"px",height:a.h+"px",display:"block",position:"absolute"})},_getTitleBarSize:function(){var a=this.titleBar;this._titleBarSize||(this._computedTableStyle||(this._computedTableStyle=g.getComputedStyle(this.domNode)),a=d.position(a,this._computedTableStyle),this._titleBarSize=new r(0,0,a.w,a.h));return this._titleBarSize},_getContentSize:function(){var a=this.contentNode;this._contentSize||(g.set(a,{width:"auto",
height:"auto",overflow:"auto",position:"relative"}),this._contentSize=new r(0,0,a.scrollWidth,a.scrollHeight));return this._contentSize},_sizeDialog:function(){var a=d.position(this.getParent().domNode),b=this.contentNode,c=this._getContentSize(),f=this._getTitleBarSize(),e=c.width+4,c=c.height+4,h=this.spacing,n=a.w-h,a=a.h-h-f.height,f=n<e;a<c&&(e+=16);f&&(c+=16);e=Math.min(n,e);c=Math.min(a,c);g.set(b,{width:e+"px",height:c+"px",overflow:"auto",position:"relative"})},_positionDialog:function(){var a=
this.dialogNode,b=d.position(this.underlayNode),c=d.position(a);g.set(a,{left:Math.floor((b.w-c.w)/2)+"px",top:Math.floor((b.h-c.h)/2)+"px"})},_onKeyUp:function(a){a.keyCode===c.ESCAPE&&(this.close(),a.stopPropagation(),a.preventDefault())},_createHighlightedText:function(b){var c=this,d=new s,f,e=m.create("table",{"class":"lightbox-code-table"}),g=m.create("tbody",{"class":"lightbox-code-tablebody"},e),n=m.create("tr",{"class":"lightbox-line-tablerow"},g),g=m.create("td",{"class":"lightbox-line-number-col"},
n),n=m.create("td",{"class":"lightbox-code-col"},n),l;this._tableSignal&&this._tableSignal.remove();this._tableSignal=a(e,"click",function(a){(a=a.target.getAttribute("data-linenum")||a.target.parentElement.getAttribute("data-linenum"))&&h.publish(c.app.id+"/select",c.element,{line:parseInt(a,10)})});f=(b.match(/\n/g)||[]).length;d.retokenize(b,0,f);for(b=0;void 0!==d._tokenMap[b];){f=b+1;m.create("div",{"class":"lightbox-widget-line","data-linenum":f,innerHTML:f.toString()},g);l=m.create("div",{"class":"lightbox-widget-line",
id:this.id+"_line_"+f.toString(),"data-linenum":f},n);if(f=d.getFirstToken(b))for(;f;)m.create("code",{style:"color:"+this._getTokenColor(f),innerHTML:f.getValue()},l),f=d.getNextToken(f);else m.create("code",{innerHTML:"\x26nbsp;"},l);b+=1}return e},_getTokenColor:function(a){a=w.colorMapDefaults[x.getCategoryOfToken(a._type)]||w.colorMapDefaults[339];return a.r||a.g||a.b?"rgb("+a.r+", "+a.g+", "+a.b+")":"black"},getLineNode:function(a){return this.domNode.ownerDocument.getElementById(this.id+"_line_"+
a.toString())}})})},"MW/rtc/plugins/language/matlab/tokenizer/TokenState":function(){define("dojo/_base/declare dojo/_base/lang ./TokenConstants ./Token ./Tokenizer ./TokenUtilities".split(" "),function(e,k,h,l,b,m){return e(null,{SHIFT_FOR_LENGTH:8,AND_FOR_TYPE:255,constructor:function(){this._tokenizer=b;this._tokenizer.initialize();this._resetTokenStates()},_resetTokenStates:function(){this._tokenMap={};this._lexState=this._tokenizer.make_lex_state();this._savedLexStates=[this._lexState];this._isLineExecutable=
[];this._tokensOnLine=[]},initializeLines:function(b){b=b.split("\n");var e=b.length,c;this._resetTokenStates();b=this._addNewLineCharacter(b);for(var a=0;a<e;a++)c=this.tokenizeCode(b[a],a,this.getLexStateForLine(a)),this.replaceLineHandle(a,c)},retokenize:function(b,e,c){var a=Object.keys(this._tokenMap).length;if(0<=e){b=b.split("\n");b=this._addNewLineCharacter(b);var f=b.length;e>a&&(e=a);var h=c;a>f?(this._deleteTokenPlaceHolders(c,a,a-f,f),this._deleteLineHandles(e,c)):a<f&&(this._insertTokenPlaceHolders(e,
c,f-a),this._insertLineHandles(b,e,c));1<this.getNumberOfSavedStates()&&(h=this._rippleThroughLines(b,e,c));return h}},_addNewLineCharacter:function(b){for(var e=b.length,c=0;c<e-1;c++)b[c]+="\n";return b},_deleteTokenPlaceHolders:function(b,e,c,a){for(var f,h=b;h<e;h++)if(this._tokenMap[h]){b=this._tokenMap[h];for(var l=0;l<b.length;l++)f=b[l],f.setLine(Math.max(0,f.getPositionInfo().line-c));this._tokenMap[Math.max(0,h-c)]=this._tokenMap[h]}Object.keys(this._tokenMap).reverse().forEach(k.hitch(this,
function(b){b=parseInt(b,10);b>=a&&(delete this._tokenMap[b],delete this._tokensOnLine[b])}))},_deleteLineHandles:function(b,e){for(var c=e-1;c>=b;c--)this._removeLineHandle(c)},_removeLineHandle:function(b){b+1<this.getNumberOfSavedStates()&&this._savedLexStates.splice(b+1,1)},_insertTokenPlaceHolders:function(b,e,c){for(var a=[],f=Object.keys(this._tokenMap).reverse(),h,l=parseInt(f[0],10);l>=b;l--){for(var f=this._tokenMap[l],n=0;n<f.length;n++)h=f[n],h.setLine(h.getPositionInfo().line+c);this._tokenMap[l+
c]=this._tokenMap[l]}for(l=b;l<=e;l++)this._tokenMap[l]=a},_insertLineHandles:function(b,e,c){var a=[],f=this.createStateHandle(b,e);c=Math.min(c,b.length-1);for(var h=e;h<c;h++)a[h-e]={},this._tokenizer.copy_lex_state(a[h-e],f),f=this._createStateHandle(b,h+1,f);for(h=e;h<c;h++)this.insertLineHandle(h,a[h-e])},insertLineHandle:function(b,e){b+1<this.getNumberOfSavedStates()?this._savedLexStates.splice(b+1,0,e):this.replaceLineHandle(b,e)},replaceLineHandle:function(b,e){this._savedLexStates[b+1]=
{};this._tokenizer.copy_lex_state(this._savedLexStates[b+1],e)},_rippleThroughLines:function(b,e,c){if(0<=e){for(var a=!1,f=-1,h=b.length,l,n=!1;!a;)l=this.createStateHandle(b,e),n=this._isLineUnchanged(e,l),n||(f=e,this.replaceLineHandle(e,l)),e>c&&n&&(a=!0),e++,e===h&&(a=!0);-1===f&&(f=c);return f}},createStateHandle:function(b,e){var c=this.getLexStateForLine(e);return this._createStateHandle(b,e,c)},_createStateHandle:function(b,e,c){return this.tokenizeCode(b[e],e,c)},tokenizeCode:function(b,
e,c){var a=b.length+3,f=[],h=this._tokenizer.lex_line(f,a,c,b,b.length);this._notEnoughRoom(h)&&(h=this._tokenizer.lex_line(f,2*a,c,b,b.length));this._isLineExecutable[e]=h.isExecutable;this._parseTokens(f,b,e);this._tokensChanged=this._tokensOnLine[e]!==JSON.stringify(this._tokenMap[e]);this._tokensOnLine[e]=JSON.stringify(this._tokenMap[e]);return h.newState},_isLineUnchanged:function(b,e){return this.areStatesEqual(e,this.getLexStateForLine(b+1))&&!this._tokensChanged},_notEnoughRoom:function(b){return-1===
b.numTokens},getLexStateForLine:function(b){return this._savedLexStates[b]},getExecutableLineData:function(){return this._isLineExecutable},isLineContinuation:function(b){return this._tokenizer.is_contin(b)},areStatesEqual:function(b,e){if(b&&e)return this._tokenizer.are_states_equal(b,e)},getNumberOfSavedStates:function(){return this._savedLexStates.length},getTokenMap:function(){return this._tokenMap},getLastToken:function(b){var e=null;if((b=this._tokenMap[b])&&0<b.length){var c=b.length-1,a;for(a=
0;a<=c;a++){var f=b[a];m.isEndOfLineToken(f)||(e=f)}}return e},getFirstToken:function(b){var e=null;if((b=this._tokenMap[b])&&0<b.length)e=b[0],m.isEndOfLineToken(e)&&(e=null);return e},getTokenOnLineColumn:function(b,e){for(var c=this.getFirstToken(b);c&&!this.isTokenAtColumn(c,e);)c=this.getNextToken(c);return c},isTokenAtColumn:function(b,e){var c=this.getTokenColumn(b),a=this.getTokenLength(b);return c<=e&&e<=c+a-1},getTokenColumn:function(b){return b._column},getTokenLength:function(b){return b._length},
getNextToken:function(b){var e=null,c=b.getPositionInfo(),c=this._tokenMap[c.line];b=b.getIndex();c&&(c[b+1]&&!m.isEndOfLineToken(c[b+1]))&&(e=c[b+1]);return e},getPreviousToken:function(b,e){var c;if(null===b)return this._searchBackForToken(e-1);c=null;c=b.getPositionInfo();var a=this._tokenMap[c.line],f=b.getIndex();if(a&&a[f-1])return c=a[f-1];c=c.line-1;return this._searchBackForToken(c)},getNumberOfTokensOnLine:function(b){return!this._tokenMap[b]?null:this._tokenMap[b].length},_searchBackForToken:function(b){for(var e=
this.getLastToken(b);!e&&0<=b;)e=this.getLastToken(b-=1);return e},_parseTokens:function(b,e,c){var a,f=[],h,k,n=b.length,m=0;for(a=0;a<n;a+=1)h=this._extractTokenInfo(b[a]),k=e.substr(m,h.length),k=new l(a,h.type,c,m,h.length,k),f.push(k),m+=h.length;this._tokenMap[c]=f},_extractTokenInfo:function(b){var e={};e.type=b&this.AND_FOR_TYPE;e.length=b>>this.SHIFT_FOR_LENGTH;return e},destroy:function(){this._tokenMap={};this._tokenizer={};this._lexState={};this._savedLexStates=[];this._isLineExecutable=
[]}})})},"MW/rtc/plugins/language/matlab/tokenizer/TokenConstants":function(){define([],function(){var e={FUNCTION:1,NESTED:2,IF:3,SWITCH:4,TRY:5,WHILE:6,FOR:7,END:8,ELSE:9,ELSEIF:10,BREAK:11,RETURN:12,PARFOR:13,GLOBAL:15,PERSISTENT:16,CATCH:20,CONTINUE:21,CASE:22,OTHERWISE:23,CLASSDEF:25,PROPERTIES:28,METHODS:30,EVENTS:31,ENUMERATION:32,SPMD:33,PARSECTION:34,SECTION:35,ID:40,EEND:41,INT:42,FLOAT:43,STRING:44,DUAL:45,BANG:46,QUEST:47,SEMI:50,COMMA:51,LP:52,RP:53,LB:54,RB:55,LC:56,RC:57,FEEND:58,TRANS:60,
DOTTRANS:61,NOT:62,AT:63,DOLLAR:64,BACKQUOTE:65,DOUBLEQUOTE:66,SHARP:67,PLUS:70,MINUS:71,MUL:72,DIV:73,LDIV:74,EXP:75,COLON:76,DOT:80,DOTMUL:81,DOTDIV:82,DOTLDIV:83,DOTEXP:84,AND:85,OR:86,ANDAND:87,OROR:88,LT:89,GT:90,LE:91,GE:92,EQ:93,NE:94,EQUALS:95,CNE:96,EOL:100,SEOL:101,CEOL:102,IEOL:103,COMMENT:105,BLKSTART:106,BLKCOM:107,BLKEND:108,SECTION_TITLE:109,PRAGMA:110,DOTDOTDOT:111,DOTDOT:112,DEEP_NEST:113,DEEP_STMT:114,WHITE:116,NEGERR:118,SEMERR:119,EOLERR:120,UNTERM:121,BADCHAR:122,DEEP_PAREN:123,
FP_ERR:124,RES_ERR:125,DEEP_COM:126,BEGIN_TYPE:127,END_TYPE:128,STRING_LITERAL:129,UNTERM_STRING_LITERAL:130},k={"0":"NA",1:"function",2:"nested",3:"if",4:"switch",5:"try",6:"while",7:"for",8:"end",9:"else",10:"elseif",11:"break",12:"return",13:"parfor",14:"NA",15:"global",16:"persistent",17:"NA",18:"NA",19:"NA",20:"catch",21:"continue",22:"case",23:"otherwise",24:"NA",25:"classdef",26:"NA",27:"NA",28:"properties",29:"NA",30:"methods",31:"events",32:"enumeration",33:"reserved_mcos_keyword_33",34:"spmd",
35:"reserved_mcos_keyword_35",36:"NA",37:"NA",38:"NA",39:"NA",40:"ID",41:"\x3cend\x3e",42:"\x3cint\x3e",43:"\x3cfloat.",44:"\x3cstring\x3e",45:"\x3cdual\x3e",46:"\x3cBANG\x3e",47:"?",48:"NA",49:"NA",50:";",51:",",52:"(",53:")",54:"[",55:"]",56:"{",57:"}",58:"NA",59:"NA",60:"'",61:".'",62:"~",63:"@",64:"$",65:"`",66:"\\",67:"#",68:"NA",69:"NA",70:"+",71:"-",72:"*",73:"/",74:"\\\\",75:"^",76:":",77:"::",78:"NA",79:"NA",80:".",81:".*",82:"./",83:".\\",84:".^",85:"\x26",86:"|",87:"\x26\x26",88:"||",89:"\x3c",
90:"\x3e",91:"\x3c\x3d",92:"\x3e\x3d",93:"\x3d\x3d",94:"~\x3d",95:"\x3d",96:"\x3cCNE\x3e",97:"NA",98:"NA",99:"NA",100:"\x3cEOL\x3e",101:"\x3cSEOL\x3e",102:"\x3cCEOL\x3e",103:"\x3cIEOL\x3e",104:"NA",105:"\x3ccomment\x3e",106:"\x3cbegin block comment\x3e",107:"\x3cblock comment\x3e",108:"\x3cend block comment\x3e",109:"%%",110:"PRAGMA",111:"...",112:"\x3cDOT DOT\x3e",113:"\x3cDEEP NEST\x3e",114:"\x3cDEEP STMT\x3e",115:"NA",116:"\x3cwhitespace\x3e",117:"NA",118:"\x3cNEG ERROR\x3e",119:"\x3cSEM ERROR\x3e",
120:"\x3cEOL ERROR\x3e",121:"\x3cunterm string\x3e",122:"\x3cbadchar\x3e",123:"\x3cDEEP PAREN\x3e",124:"NA",125:"\x3cRES ERROR\x3e",126:"\x3cDEEP COM\x3e",127:"NA",129:"\x3cstring literal\x3e",130:"\x3cunterm string literal\x3e"},h={"0":339,1:333,2:333,3:333,4:333,5:333,6:333,7:333,8:333,9:333,10:333,11:333,12:333,13:333,14:333,15:333,16:333,17:333,18:333,19:333,20:333,21:333,22:333,23:333,24:333,25:333,26:333,27:333,28:333,29:333,30:333,31:333,32:333,33:333,34:333,35:333,44:44,45:45,46:338,64:122,
65:122,66:122,67:122,105:105,106:106,107:107,108:108,109:109,110:110,111:333,121:337,122:122,125:122,129:44,130:337};e.getValueOfToken=function(e){return k[e]};e.getCategoryOfToken=function(e){return h[e]};return e})},"MW/rtc/plugins/language/matlab/tokenizer/Token":function(){define(["dojo/_base/declare"],function(e){return e(null,{constructor:function(e,h,l,b,m,d){this._index=e;this._type=h;this._line=l;this._column=b;this._length=m;this._value=d},getIndex:function(){return this._index},equals:function(e){return e&&
this._index===e._index&&this._type===e._type&&this._line===e._line&&this._column===e._column&&this._length===e._length&&this._value===e._value},getPositionInfo:function(){return{line:this._line,column:this._column}},setLine:function(e){this._line=e},getType:function(){return this._type},getValue:function(){return this._value}})})},"MW/rtc/plugins/language/matlab/tokenizer/Tokenizer":function(){define([],function(){var e,k,h,l,b,m,d,g,c;function a(a,b){a+=uc[b&127];a=a+" ("+(b>>8);return a+=") "}var f=
1,u=2,p=3,n=4,q=5,r=6,s=7,x=8,w=9,y=10,A=11,B=12,C=13,F=15,K=16,G=20,I=21,O=22,N=23,T=25,P=28,Q=30,L=31,J=32,H=33,V=34,W=35,R=40,Z=41,ba=42,U=43,ka=44,S=45,aa=46,ha=47,Aa=50,ia=51,qa=52,ra=53,Eb=54,lb=55,Fb=56,mb=57,Xa=58,Ya=60,nb=61,Ba=62,Fa=63,Za=64,Na=65,Oa=67,Qb=70,Db=71,oa=72,pb=73,pa=74,fc=75,Ma=76,Sb=80,qb=81,Tb=82,ob=83,Ub=84,Wa=85,Vb=86,Wb=87,xa=88,Gb=89,Rb=90,Xb=91,Hb=92,hc=93,ic=94,jc=95,sb=96,Ja=100,Pa=101,tb=102,ya=103,cb=105,za=106,Ga=107,Da=108,Ha=109,Ua=110,bb=111,Ia=112,db=113,Ib=
114,sa=116,Ea=118,vb=119,Jb=120,Qa=121,ab=122,$a=123,Ra=124,Yb=125,ub=126,eb=127,ja=128,Dc=129,rc=130,na=0,La=1,la=2,Va=3,ea=4,sc=5,dc=6,ec=7,tc=0,Ec=1,ta=2,gc=3,rb=4,uc=[null,"FUNCTION","NESTED","IF","SWITCH","TRY","WHILE","FOR","END","ELSE","ELSEIF","BREAK","RETURN","PARFOR",null,"GLOBAL","PERSISTENT",null,null,null,"CATCH","CONTINUE","CASE","OTHERWISE",null,"CLASSDEF",null,null,"PROPERTIES",null,"METHODS","EVENTS","ENUMERATION","SPMD","PARSECTION","SECTION",null,null,null,null,"ID","EEND","INT",
"FLOAT","STRING","DUAL","BANG","QUEST",null,null,"SEMI","COMMA","LP","RP","LB","RB","LC","RC","FEEND",null,"TRANS","DOTTRANS","NOT","AT","DOLLAR","BACKQUOTE","DOUBLEQUOTE",null,null,null,"PLUS","MINUS","MUL","DIV","LDIV","EXP","COLON",null,null,null,"DOT","DOTMUL","DOTDIV","DOTLDIV","DOTEXP","AND","OR","ANDAND","OROR","LT","GT","LE","GE","EQ","NE","EQUALS","CNE","ARROW",null,null,"EOL","SEOL","CEOL","IEOL",null,"COMMENT","BLKSTART","BLKCOM","BLKEND","CPAD","PRAGMA","DOTDOTDOT","DOTDOT","DEEP_NEST",
"DEEP_STMT",null,"WHITE",null,"NEGERR","SEMERR","EOLERR","UNTERM","BADCHAR","DEEP_PAREN","FP_ERR","RES_ERR","DEEP_COM","BEGIN_TYPE","END_TYPE","STRING_LITERAL","UNTERM_STRING_LITERAL","LAST_TOKEN"];e=0;k=1;h=2;l=3;b=4;m=5;d=6;g=7;c=8;return function(){function vc(){return{cstate:tc,lstate:na,indent:0,infun:0,npars:0,ncoms:0,ldsv:0,atlp:0,contin:0,elist:0,haveends:0,begin:1,spare:0,stack:0,propParseState:-1}}function kc(a,b){a.cstate=b.cstate;a.lstate=b.lstate;a.indent=b.indent;a.infun=b.infun;a.npars=
b.npars;a.ncoms=b.ncoms;a.ldsv=b.ldsv;a.atlp=b.atlp;a.contin=b.contin;a.elist=b.elist;a.haveends=b.haveends;a.begin=b.begin;a.spare=b.spare;a.stack=b.stack;a.propParseState=b.propParseState}function Fc(a){a.lstate=na;a.cstate=tc;a.atlp=a.contin=a.elist=a.haveends=0;a.indent=a.infun=0;a.npars=a.ncoms=a.stack=0;a.begin=1;a.ldsv=0;a.spare=0}function E(a){if(a>=X)return fa;a=ma.charCodeAt(a);return!(a&-128)?Tc[a]:z}function Zb(){for(;E(v)!==fa;++v);}function fb(){for(;E(v)!==fa;++v);if(v+1<X){var a=ma[v],
b=ma[v+1];("\n"===a&&"\r"===b||"\r"===a&&"\n"===b)&&++v}v<X&&++v}function $(a,b,c,f){3===arguments.length&&(f=0);if(a.length+f<c)return 0;for(;0<c;--c)if(a.charCodeAt(f+c-1)!==b.charCodeAt(c-1))return 0;return 1}function Gc(a,b,c,d){a=a.slice(b);switch(c){case 2:if($(a,"if",2))return p;break;case 3:if($(a,"for",3))return s;if($(a,"end",3))return x;if($(a,"try",3))return q;break;case 4:if($(a,"case",4))return O;if($(a,"else",4))return w;if($(a,"spmd",4))return H;break;case 5:if($(a,"catch",5))return G;
if($(a,"while",5))return r;if($(a,"break",5))return A;break;case 6:if($(a,"elseif",6))return y;if($(a,"switch",6))return n;if($(a,"global",6))return F;if($(a,"return",6))return B;if(d&&$(a,"events",6))return L;if($(a,"parfor",6))return C;break;case 7:if(d&&$(a,"methods",7))return Q;break;case 8:if($(a,"function",8))return f;if($(a,"continue",8))return I;if($(a,"classdef",8))return T;break;case 9:if($(a,"otherwise",9))return N;break;case 10:if($(a,"persistent",10))return K;if(d&&$(a,"properties",10))return P;
break;case 11:if(d&&$(a,"enumeration",11))return J}return R}function wb(a,b){var c=v===D?ya:Ja;if(t.npars){if(t.stack&1)return a[b]=v-D<<8|Pa,1;a[b+0]=0|Jb;a[b+1]=v-D<<8|c;return 2}a[b]=v-D<<8|c;return 1}function Hc(){if(E(D+1)===wc){var a;for(a=2;E(D+a)===da;++a);if(E(D+a)===M)return Ua}return cb}function Ic(a,b){var c=0;D=v;v+=3;a[b+c++]=v-D<<8|bb;D=v;Zb();D!=v&&(a[b+c++]=v-D<<8|cb,D=v);fb();a[b+c++]=v-D<<8|tb;return c}function uc(a,b){switch(E(v)){case da:for(++v;E(v)===da;++v);a[b]=v-D<<8|sa;
return 1;case Ca:return Zb(),a[b]=v-D<<8|Hc(),D=v,fb(),wb(a,b+1)+1;case Y:return E(v+1)===Y&&E(v+2)===Y?Ic(a,b):0;case fa:return fb(),wb(a,b);case gb:return++v,a[b]=v-D<<8|Aa,t.lstate=na,1;case hb:return++v,a[b]=v-D<<8|ia,t.lstate=na,1;default:return 0}}function Jc(){if(v>=X)return 0;switch(E(v)){case $b:case ac:return E(v+1)===da?0:1;case bc:return E(v+1)===ga?0:1;case Y:return E(v+1)===ca?1:0;case M:case ca:case ib:case Sa:case xb:case ua:case va:case Ta:case cc:case xc:return 1;default:return 0}}
function Kc(a){return a>>8}function yc(){for(;v<X&&(E(v)===M||E(v)===ca||E(v)===ib);)++v;return t.lstate!==ec?Gc(ma+D,D,v-D,t.cstate===ta||t.cstate===rb):R}function Uc(a,f){var h=E(v);if(t.propParseState===k){if(h!==M&&h!==Sa&&h!==ua&&h!==da&&h!==Y)return t.propParseState=c,0}else if(t.propParseState===b){if(h!==M&&h!==ua&&h!==da&&h!==Y)return a[f+0]=0|ja,1}else if(t.propParseState===m){if(h!==M&&h!==ua&&h!==da&&h!==Y)return a[f+0]=0|ja,1}else if(t.propParseState===d&&h!==ua&&h!==da&&h!==Y)return a[f+
0]=0|ja,1;switch(h){case Ca:return t.propParseState!==e&&t.propParseState!==c?(a[f+0]=0|ja,1):0;case da:return t.propParseState===m&&(t.propParseState=d),0;case fa:return t.propParseState!==e&&t.propParseState!==c?(a[f+0]=0|ja,1):0;case M:if(t.propParseState===k){h=yc();if(h===R)return a[f+0]=0|eb,a[f+1]=v-D<<8|R,2;t.propParseState=c;a[f+0]=v-D<<8|h;return 1}if(t.propParseState===m){h=yc();if(h===R)return a[f+0]=v-D<<8|R,1;a[f+0]=0|ja;a[f+1]=v-D<<8|h;return 2}return t.propParseState===d?(yc(),a[f+
0]=0|ja,2):0;case Y:if(t.propParseState===m){if(E(v+1)===M)return++v,a[f+0]=v-D<<8|Sb,1;if(E(v+1)===Y&&E(v+2)===Y)t.propParseState=d;else return a[f+0]=0|ja,1}return 0;case ga:switch(t.propParseState){case e:case c:case l:case g:return 0;default:return a[f+0]=0|ja,1}case hb:switch(t.propParseState){case d:case b:case m:return a[f+0]=0|ja,1;default:return 0}case gb:switch(t.propParseState){case d:case b:case m:return a[f+0]=0|ja,1;default:return 0}case Sa:return t.propParseState===k?(a[f+0]=0|eb,1):
t.propParseState===d||t.propParseState===m?(a[f+0]=0|ja,1):0;case ua:if(t.propParseState===m)t.propParseState=d;else if(t.propParseState===k)return a[f+0]=0|eb,1;return 0;case jb:return 0===t.npars&&t.propParseState!==e&&t.propParseState!==c?(a[f+0]=0|ja,1):1===t.npars&&t.propParseState===l?(++v,a[f+0]=v-D<<8|ra,1):0;case kb:if(0===t.npars){if(t.propParseState!==e&&t.propParseState!==c)return a[f+0]=0|ja,1}else if(1===t.npars&&t.propParseState===g)return++v,a[f+0]=v-D<<8|mb,a[f+1]=0|ja,2;return 0;
default:return 0}}function Lc(a,b){var c;if(v>=X)return lc&&!t.begin?(D=v=X,wb(a,b)):0;D=v;if(t.begin&&(c=Vc(a,b)))return c;if(t.cstate===rb){if(c=Uc(a,b),0<c)return c}else if(t.lstate===La){a:{var d;c=uc(a,b);if(!c){for(d=c=0;v<X;++v){switch(E(v)){case va:if(c)continue;if(1===d)if(v+1>=X||E(v+1)!==va)d=0;else{++v;continue}else d=1;continue;case Sa:case xb:case ua:d||++c;continue;case jb:case Kb:case kb:d||--c;continue;case da:if(d||c)continue;break;case gb:if(d)continue;break;case fa:break;case Ca:if(d)continue;
break;case Y:if(d)continue;if(E(v+1)===Y&&E(v+2)===Y)break;continue;case hb:if(d||c)continue;break;default:continue}break}if(d&&!c)a[b]=v-D<<8|Qa;else{if(t.ldsv===zc&&E(D)===M){for(c=D+1;c<v&&!(E(c)!==M&&E(c)!==ca&&E(c)!==ib);++c);if(c===v){a[b]=v-D<<8|R;c=1;break a}}a[b]=v-D<<8|S}c=1}}return c}if(1===t.begin&&t.stack&1&&t.contin&&(t.lstate===Va||t.lstate===la)&&Jc()){if(v>D)return a[b+0]=v-D<<8|sa,D=v,a[b+1]=v-D<<8|ia,2;a[b]=v-D<<8|ia;return 1}switch(E(v)){case Mc:return v=X,a[b]=v-D<<8|sa,1;case da:for(++v;E(v)==
da;++v);if(t.stack&1&&(t.lstate==Va||t.lstate==la)&&Jc())return a[b+0]=v-D<<8|sa,D=v,a[b+1]=v-D<<8|ia,2;a[b]=v-D<<8|sa;return 1;case fa:return fb(),wb(a,b);case M:for(c=v+1;c<X&&!(E(c)!=M&&E(c)!=ca&&E(c)!=ib);++c);v=c;c=t.lstate==ec?R:Gc(ma,D,v-D,t.cstate===ta||t.cstate===rb);if(c==R||c==x&&(t.npars||t.lstate==dc))return c==x&&(c=t.npars?Z:Xa),a[b]=v-D<<8|c,1;switch(c){case f:if(t.infun&&(t.haveends||!t.begin)||t.cstate==ta||t.cstate==gc)c=u}if(t.npars)return a[b+0]=0|Yb,a[b+1]=v-D<<8|c,2;a[b]=v-
D<<8|c;return 1;case ca:for(++v;E(v)==ca;++v);if(E(v)==Y)switch(E(v+1)){case yb:case zb:case Ab:case Bb:case va:break;default:return++v,c=Ac(),a[b]=v-D<<8|c,1}if(E(v)==M)return c=Ac(),a[b]=v-D<<8|c,1;a[b]=v-D<<8|ba;return 1;case Y:if(E(v+1)==Y&&E(v+2)==Y)return Ic(a,b);++v;switch(E(v)){case ca:return c=Ac(),a[b]=v-D<<8|c,1;case yb:return++v,a[b]=v-D<<8|qb,1;case zb:return++v,a[b]=v-D<<8|Tb,1;case Ab:return++v,a[b]=v-D<<8|ob,1;case Bb:return++v,a[b]=v-D<<8|Ub,1;case va:return++v,a[b]=v-D<<8|nb,1;case Y:return++v,
a[b]=v-D<<8|Ia,1;default:return a[b]=v-D<<8|Sb,1}case Ca:if(!ma[D]&&D>=X-1)return X=D,0;Zb();a[b]=v-D<<8|Hc();D=v;fb();return 1+wb(a,b+1);case bc:++v;if(E(v)==ga)return++v,a[b]=v-D<<8|ic,1;a[b]=v-D<<8|Ba;return 1;case ga:++v;if(E(v)==ga)return++v,a[b]=v-D<<8|hc,1;a[b]=v-D<<8|jc;return 1;case mc:++v;if(E(v)==ga)return++v,a[b]=v-D<<8|Xb,1;a[b]=v-D<<8|Gb;return 1;case nc:++v;if(E(v)==ga)return++v,a[b]=v-D<<8|Hb,1;a[b]=v-D<<8|Rb;return 1;case Lb:++v;if(E(v)==Lb)return++v,a[b]=v-D<<8|Wb,1;a[b]=v-D<<8|
Wa;return 1;case Mb:++v;if(E(v)==Mb)return++v,a[b]=v-D<<8|xa,1;a[b]=v-D<<8|Vb;return 1;case hb:return++v,a[b]=v-D<<8|ia,1;case gb:++v;if(t.npars&&!(t.stack&1))return a[b+0]=0|vb,a[b+1]=v-D<<8|Aa,2;a[b]=v-D<<8|Aa;return 1;case oc:return++v,a[b]=v-D<<8|Ma,1;case Sa:++v;if(t.npars==Nb)return a[b+0]=0|$a,a[b+1]=v-D<<8|qa,2;a[b]=v-D<<8|qa;return 1;case ua:++v;if(t.npars==Nb)return a[b+0]=0|$a,a[b+1]=v-D<<8|Fb,2;a[b]=v-D<<8|Fb;return 1;case xb:++v;if(t.npars==Nb)return a[b+0]=0|$a,a[b+1]=v-D<<8|Eb,2;a[b]=
v-D<<8|Eb;return 1;case jb:++v;if(0==t.npars)return a[b+0]=0|Ea,a[b+1]=v-D<<8|ra,2;a[b]=v-D<<8|ra;return 1;case Kb:++v;if(0==t.npars)return a[b+0]=0|Ea,a[b+1]=v-D<<8|lb,2;a[b]=v-D<<8|lb;return 1;case kb:++v;if(0==t.npars)return a[b+0]=0|Ea,a[b+1]=v-D<<8|mb,2;a[b]=v-D<<8|mb;return 1;case xc:return++v,a[b]=v-D<<8|ha,1;case wc:return++v,a[b]=v-D<<8|Oa,1;case Nc:return++v,a[b]=v-D<<8|Za,1;case Oc:return++v,a[b]=v-D<<8|Na,1;case cc:return++v,a[b]=v-D<<8|Fa,1;case $b:return++v,a[b]=v-D<<8|Qb,1;case ac:return++v,
a[b]=v-D<<8|Db,1;case yb:return++v,a[b]=v-D<<8|oa,1;case zb:return++v,a[b]=v-D<<8|pb,1;case Ab:return++v,a[b]=v-D<<8|pa,1;case Bb:return++v,a[b]=v-D<<8|fc,1;case va:if(0<v&&t.lstate!=ea&&t.lstate!=dc)switch(E(v-1)){case jb:if(t.atlp)break;case M:case ca:case ib:case Y:case kb:case Kb:case va:case Ta:return++v,a[b]=v-D<<8|Ya,1}for(++v;E(v)!=fa;++v)if(E(v)==va)if(E(v+1)==va)++v;else return++v,a[b]=v-D<<8|ka,1;a[b]=v-D<<8|Qa;return 1;case Ta:for(++v;E(v)!=fa;++v)if(E(v)==Ta)if(E(v+1)==Ta)++v;else return++v,
a[b]=v-D<<8|Dc,1;a[b]=v-D<<8|rc;return 1;case Bc:if(t.lstate!=na&&E(v+1)==ga)return v+=2,a[b]=v-D<<8|sb,1;Zb();a[b+0]=v-D<<8|aa;D=v;fb();return 1+wb(a,b+1);case ib:case z:for(++v;;){switch(E(v)){case ib:case z:++v;continue}break}a[b]=v-D<<8|ab;return 1;default:return++v,a[b]=v-D<<8|ab,1}}function Ac(){for(;v<X&&E(v)==ca;++v);if(v<X&&E(v)==M)switch(ma.charAt(v)){case "d":case "D":case "e":case "E":++v;if(v>=X)return Ra;if(E(v)==$b||E(v)==ac)if(++v,v>=X)return Ra;if(E(v)!=ca)return Ra;for(;v<X&&E(v)==
ca;)++v}v<X&&(E(v)==M&&("i"==ma.charAt(v)||"j"==ma.charAt(v)))&&++v;return U}function Wc(a,b){var c,f=0,d=0,e=0,f=!1;if(E(v)!=da)return la;for(c=v;E(c)==da;++c);if(c>=X)return la;if(Pc&&b&&($(ma,"load",4,a)||$(ma,"save",4,a)))f=!0;switch(E(c)){case Y:if(E(c+1)==Y&&E(c+2)==Y)return la;switch(E(c+1)){case ca:return La;case da:break;case Bb:case yb:case zb:case Ab:case va:case Sa:return Ka(c+2);case M:break;default:return La}break;case ga:if(E(c+1)==ga)return Ka(c+2);case Sa:case jb:return la;case fa:case gb:case hb:case Ca:case Ta:return la;
case ua:break;case Lb:return E(c+1)==Lb?Ka(c+2):Ka(c+1);case Mb:return E(c+1)==Mb?Ka(c+2):Ka(c+1);case bc:return E(c+1)==ga?Ka(c+2):La;case mc:case nc:case Bc:return E(c+1)==ga?Ka(c+2):Ka(c+1);case oc:case $b:case ac:case yb:case zb:case Ab:case Bb:case cc:return Ka(c+1);case xb:if(f||t.ldsv==pc)return ea;default:return La}for(e=d=f=0;c<X;++c){switch(E(c)){case ga:if(!d&&!e&&E(c+1)!=ga)return f?La:la;continue;case hb:if(!d&&!e&&!f)break;continue;case Y:if(E(c+1)==Y&&E(c+2)==Y)break;continue;case gb:if(!d||
!e||!f)break;continue;case Ca:if(!d&&!e)break;continue;case fa:break;case va:d^=1;continue;case Ta:e^=1;continue;case Sa:case ua:case xb:!d&&!e&&++f;continue;case jb:case kb:case Kb:!d&&!e&&--f;continue;default:continue}break}return La}function Ka(a){if(E(a)==da){for(;E(a)==da;)++a;switch(E(a)){case Y:if(E(a+1)==Y&&E(a+2)==Y||E(a+1)==ca)return la;break;case hb:case gb:case fa:case jb:case kb:case Kb:case Ca:case Lb:case Mb:case mc:case nc:case ga:case oc:case yb:case zb:case Ab:case cc:case Bb:break;
default:return la}}return La}function Kc(a){return a>>8}function Qc(a){for(;a<X;++a){if(E(a)===fa)return v=E(a+1)===fa&&"\r"===ma.charAt(a)?a+1:a,1;if(E(a)!==da)return 0}v=X;return 1}function Vc(a,b){var c=v;D=v;if(v>=X)return 0;for(;E(c)==da;)++c;if(0!==t.ncoms){var f=Ga;if(E(c)===Ca&&(E(c+1)===ua||E(c+1)===kb)&&Qc(c+2))f=E(c+1)===ua?t.ncoms>=Rc?ub:za:Da;fb();a[b]=v-D<<8|f;return 1}if(E(c)===fa)return 0;if(E(c)===Ca){if(E(c+1)===Ca&&(E(c+2)===fa||E(c+2)===da))return Zb(),a[b]=v-D<<8|Ha,1;if(E(c+
1)===ua&&Qc(c+2))return fb(),a[b]=v-D<<8|za,1}return 0}function Cc(a,z){t.lstate===na&&wa===qc&&(wa=Sc);a:{var D,X=z>>8;t.begin=0;if(t.cstate===rb)switch(z&255){case Ja:case ya:t.propParseState===c&&(t.propParseState=e);break;case eb:t.propParseState=h;break;case ja:t.propParseState=c;break;case R:if(t.propParseState===e)t.propParseState=k;else if(t.propParseState===b||t.propParseState===h)t.propParseState=m;break;case ia:t.propParseState===c&&0===t.npars&&(t.propParseState=e);break;case Aa:if(t.propParseState===
c&&(0===t.npars||!(t.stack&1)))t.propParseState=e;break;case ra:1===t.npars&&t.propParseState===l&&(t.propParseState=b);break;case qa:t.propParseState===h&&(t.propParseState=l);break;case Fb:if(t.propParseState===d||t.propParseState===b||t.propParseState===h)t.propParseState=g}switch(z&255){case cb:case bb:break;case za:case Ga:case Da:t.begin=1;break;case Ja:case ya:t.begin=1;t.contin=0;break;case Pa:case tb:t.contin=1;t.begin=1;break;case qa:t.lstate==sc&&(t.atlp=1);case R:case Z:case Xa:t.lstate==
sc&&(t.lstate=ea);default:t.contin=0}if(t.cstate==tc)switch(z&255){case sa:case cb:case za:case Ga:case Da:case bb:case Ja:case ya:case tb:break;case T:t.cstate=ta;break;default:t.cstate=Ec}switch(z&255){case R:case Z:case Xa:switch(t.lstate){case na:D=v-(z>>8);var Cb;b:{Cb=z>>8;var da=ma.slice(D),ha="pi eps nan NaN inf Inf i j ans".split(" "),fa=[2,3,3,3,3,3,1,1,3],ga;if(0===da.length)Cb=1;else{for(ga=0;ga<ha.length;++ga)if(Cb==fa[ga]&&$(da,ha[ga],Cb)){Cb=1;break b}Cb=0}}if(Cb){t.lstate=la;break}t.lstate=
Wc(D,4===z>>8);if(Pc&&4===z>>8&&t.lstate!==la&&($(a,"load",4,X)||$(a,"save",4,X)))t.ldsv=pc;break;case ec:case ea:case dc:t.lstate=la}break;case q:++t.indent;case w:case N:case G:case B:case A:case I:t.npars=0;t.stack=0;t.lstate=na;break;case f:t.npars=0;t.stack=0;t.indent=1;t.cstate===ta&&(t.cstate=gc,t.indent=3);t.infun=t.indent;t.lstate=ea;break;case u:t.npars=0;t.stack=0;t.indent<Xc&&(t.infun=++t.indent);t.cstate===ta&&(t.cstate=gc,t.indent=3);t.haveends=1;t.lstate=ea;break;case x:t.npars=0;t.stack=
0;0<t.indent&&--t.indent;if(t.cstate===gc&&2===t.indent||t.cstate===rb){t.cstate=ta;t.lstate=ea;break}t.cstate===ta&&0===t.indent&&(t.cstate=Ec,t.infun=0);t.indent<t.infun&&(t.haveends=1,--t.infun);t.lstate=na;break;case P:t.cstate=rb,t.propParseState=e;case Q:case L:case J:t.npars=0;t.stack=0;++t.indent;t.lstate=ea;break;case p:case r:case s:case C:case H:case V:case W:case n:++t.indent;case y:case O:t.npars=0;t.stack=0;t.lstate=ea;break;case F:case K:t.npars=0;t.stack=0;t.elist=1;t.lstate=ea;break;
case za:t.ncoms<Rc&&++t.ncoms;break;case Da:0<t.ncoms&&--t.ncoms;break;case ia:t.npars?t.lstate=ea:(t.ldsv=0,t.stack=0,t.lstate=t.cstate===ta?ea:na);t.elist=0;break;case Aa:t.npars?t.stack&1?t.lstate=ea:(t.elist=0,t.npars=0,t.stack=0,t.ldsv=0,t.lstate=t.cstate===ta?ea:na):(t.ldsv=0,t.stack=0,t.lstate=t.cstate===ta?ea:na);break;case lb:0<t.npars&&(t.npars--,t.stack>>=1);t.ldsv===pc&&0===t.npars?(t.lstate=La,t.ldsv=zc):t.lstate=Va;break;case mb:0<t.npars&&(t.npars--,t.stack>>=1);t.lstate=la;break;case ra:0<
t.npars&&(t.npars--,t.stack>>=1);t.lstate=la;t.atlp&&(t.lstate=ea,t.atlp=0);break;case qa:t.npars<Nb&&(t.npars++,t.stack<<=1);t.lstate=ea;break;case Eb:t.npars<Nb&&(t.npars++,t.stack<<=1,t.stack|=1);t.lstate=ea;break;case Fb:t.npars<Nb&&(t.npars++,t.stack<<=1,t.lstate!==la&&(t.stack|=1));t.lstate=ea;break;case cb:case sa:case Ua:case Ha:case bb:switch(t.lstate){case la:case Va:if(t.npars||t.elist||t.cstate==ta)break a;switch(E(v)){case M:case ca:case va:case Ta:case xb:case bc:t.lstate=na;break;case Y:E(v+
1)===ca&&(t.lstate=na)}}break;case Fa:switch(t.lstate){case la:case Va:t.elist=1;break;default:t.lstate=sc}break;case Qb:case Db:case oa:case pb:case pa:case fc:case Ma:case Wa:case Wb:case Vb:case xa:case Ba:case Gb:case Xb:case Rb:case Hb:case hc:case ic:case sb:case qb:case Tb:case ob:case Ub:t.lstate=ea;break;case jc:t.lstate=dc;t.elist=0;break;case nb:case U:case ba:case ka:case Dc:case Ya:t.lstate=Va;break;case Sb:t.lstate=ec;break;case Pa:t.elist=0;t.lstate=ea;break;case Ja:case ya:t.elist=
0;t.npars=0;t.stack=0;t.ldsv=0;t.lstate=t.cstate===ta?ea:na;break;case tb:t.contin=1;break;case aa:t.lstate=na;break;case vb:case Jb:t.stack=0;t.npars=0;t.elist=0;t.lstate=na;break;case Ea:t.stack=0;t.npars=0;t.elist=0;t.lstate=Va;break;case $a:case ub:case db:case Ib:t.stack=0;t.npars=0;t.elist=0;t.lstate=ea;break;case Yb:case Ra:case Qa:case rc:case ab:case Oa:case Za:case Na:t.lstate=Va;break;case T:t.cstate=ta;t.lstate=ea;t.indent=1;t.haveends=1;break;case S:t.ldsv===pc&&"-"!==a[X+0]&&(t.ldsv=
zc)}}switch(z&255){case cb:case za:case Ga:case Da:case sa:case bb:case Ha:case Ua:case Ja:case Pa:case ya:case tb:break;case f:case u:case T:case Qa:case rc:case $a:case ub:case db:case Ib:case Ra:case Yb:case vb:case Jb:case Ea:case Oa:case Za:case Na:wa=Yc;break;default:wa===Sc&&(wa=Ob)}}var v=0,X=0,D=0,ma=null,Pb=null,wa=0,lc=0,Pc=0,t=vc(),pc=1,zc=2,qc=0,Sc=1,Ob=2,Yc=3,Nb=32,Xc=7,Rc=7,z=0,M=1,ca=2,ib=3,Sa=4,jb=5,ua=6,kb=7,xb=8,Kb=9,cc=10,$b=11,ac=12,yb=13,zb=14,Ab=15,Bb=16,oc=17,Y=18,Lb=19,Mb=
20,mc=21,nc=22,bc=23,va=24,gb=25,hb=26,fa=27,ga=28,Ca=29,wc=30,da=31,Bc=32,xc=33,Nc=34,Oc=35,Ta=36,Mc=37,Tc=[Ca,z,z,z,z,z,z,z,z,da,fa,fa,fa,fa,z,z,z,z,z,z,z,z,z,z,z,z,Mc,z,z,z,z,z,da,Bc,Ta,wc,Nc,Ca,Lb,va,Sa,jb,yb,$b,hb,ac,Y,zb,ca,ca,ca,ca,ca,ca,ca,ca,ca,ca,oc,gb,mc,ga,nc,xc,cc,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,xb,Ab,Kb,Bb,ib,Oc,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,ua,Mb,kb,bc,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,
z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z];return{lex_line:function(a,b,f,d,g){wa=qc;kc(t,f);ma=d;v=0;X=g;D=0;lc=!0;d=0;var h,n;Pb=ma;if(0===g){h=wb(a,0);for(g=0;g<h;++g)Cc(Pb,a[g]);return{numTokens:h,newState:t,isExecutable:wa===Ob}}if(n=t.cstate===rb&&t.propParseState!==e&&t.propParseState!==c)if(3<b)a[0]=0|eb,d=1;else return{numTokens:-1,newState:f,isExecutable:wa===Ob};
for(;d<b-3;){h=Lc(a,d);if(!h)break;for(g=0;g<h;++g,++d)if(Cc(Pb,a[d]),(a[d]&255)===Xa){var l=a,k=d+g,m=Kc(a[d+g]);l[k]=m<<8|Z}}if(d>=b-3&&!t.begin)return{numTokens:-1,newState:f,isExecutable:wa===Ob};n&&(1<d&&(a[1]&255)===sa)&&(b=a[0],a[0]=a[1],a[1]=b);return{numTokens:d,newState:t,isExecutable:wa===Ob}},lex_file:function(a,b,c,f,d){wa=qc;kc(t,c);ma=f;v=0;X=d;lc=!1;D=0;Pb=ma;for(c=0;c<b-3;c+=d){d=Lc(a,c);if(!d)break;for(f=0;f<d;++f)Cc(Pb,a[c+f]),(a[c+f]&127)===Xa&&(a[c+f]=a[c+f]>>8<<8|Z)}return{isExecutable:wa===
Ob,newState:t}},make_lex_state:vc,copy_lex_state:kc,dump_token:a,set_state:function(a){kc(t,a)},initialize:function(a,b,c){t=vc();Fc(t);Pb=ma=a;v=0;X=b;lc=c;wa=qc},initialize_state:Fc,in_block_comment:function(a){a||(a=t);return 0<a.ncoms},are_states_equal:function(a,b){return a.lstate!==b.lstate||a.cstate!==b.cstate||a.indent!==b.indent||a.contin!==b.contin||a.atlp!==b.atlp||a.begin!==b.begin||a.infun!==b.infun||a.ldsv!==b.ldsv||a.ncoms!==b.ncoms||a.elist!==b.elist||a.npars!==b.npars||a.stack!==
b.stack||a.haveends!==b.haveends?0:1},is_contin:function(a){return a.contin}}}()})},"MW/rtc/plugins/language/matlab/tokenizer/TokenUtilities":function(){define(["./TokenConstants"],function(e){return{isTokenStartOfBlock:function(k){k=k.getType();return k===e.FOR||k===e.PARFOR||k===e.IF||k===e.WHILE||k===e.TRY||k===e.SWITCH||k===e.FUNCTION||k===e.NESTED||k===e.CLASSDEF||k===e.PROPERTIES||k===e.ENUMERATION||k===e.SPMD||k===e.EVENTS||k===e.METHODS},isTokenEndOfBlock:function(k){return k.getType()===
e.END},isTokenStartOfMidBlock:function(k){k=k.getType();return k===e.ELSE||k===e.ELSEIF||k===e.CATCH||k===e.OTHERWISE||k===e.CASE},isSectionTitleToken:function(k){return k.getType()===e.SECTION_TITLE},isWhitespaceToken:function(k){return k.getType()===e.WHITE},isTokenStartOfBlockIndent:function(e){return this.isTokenStartOfBlock(e)||this.isTokenStartOfMidBlock(e)},isCommentToken:function(k){k=k.getType();return e.COMMENT===k||e.SECTION_TITLE===k||e.BLKCOM===k||e.BLKSTART===k||e.BLKEND===k||e.PRAGMA===
k},isBlockCommentToken:function(k){k=k.getType();return e.BLKCOM===k||e.BLKSTART===k||e.BLKEND===k},isSwitchToken:function(k){return k.getType()===e.SWITCH},isEndOfLineToken:function(k){return k.getType()===e.EOL||k.getType()===e.SEOL||k.getType()===e.CEOL||k.getType()===e.IEOL},isFunctionToken:function(k){return k.getType()===e.FUNCTION},isMatlabStringToken:function(k){k=k.getType();return k===e.STRING||k===e.STRING_LITERAL},isMatlabUntermDoubleQuoteStringToken:function(k){return k.getType()===e.UNTERM_STRING_LITERAL},
isMatlabUntermSingleQuoteStringToken:function(k){return k.getType()===e.UNTERM},getMatchingTokenInLine:function(e,h,l){var b=null;e.some(function(e){var d=e.getPositionInfo().column,g=d+e.getValue().length;if(h>=d&&h<=g&&l>=d&&l<=g)return b=e,!0});return b}}})},"MW/syntaxhighlighting/ColorMapDefaults":function(){define(["dojo/_base/declare"],function(e){return{typeMapDefaults:{122:"error",105:"comment",106:"comment",107:"comment",108:"comment",109:"comment",110:"comment",44:"string",45:"string",127:"type sections",
333:"keyword",337:"invalid",338:"system",339:"plain"},colorMapDefaults:{122:{r:255,g:0,b:0},105:{r:34,g:139,b:34},106:{r:34,g:139,b:34},107:{r:34,g:139,b:34},108:{r:34,g:139,b:34},109:{r:34,g:139,b:34},110:{r:34,g:139,b:34},44:{r:160,g:32,b:240},45:{r:160,g:32,b:240},127:{r:162,g:82,b:45},333:{r:0,g:0,b:255},337:{r:179,g:0,b:0},338:{r:179,g:140,b:0},339:{r:0,g:0,b:0}},HTMLColorMapDefaults:{122:"#ff0000",105:"#228b22",106:"#228b22",107:"#228b22",108:"#228b22",109:"#228b22",110:"#228b22",44:"#a020f0",
45:"#a020f0",127:"#a2522d",333:"#0000ff",337:"#b30000",338:"#b38c00",339:"#000000"}}})},"webview/palette/Palette":function(){define("dojo/_base/declare dojo/store/Memory dojo/dom-geometry dojo/dom-style dijit/_WidgetBase dijit/_Container dijit/_TemplatedMixin dojo/text!./templates/Palette.html".split(" "),function(e,k,h,l,b,m,d,g){return e([b,m,d],{templateString:g,postCreate:function(){this.inherited(arguments);this.buttonStore=new k},startup:function(){this.inherited(arguments);this._computedStyle=
l.getComputedStyle(this.domNode)},resize:function(b){var a=this.getChildren(),f,d,e=a.length;b&&h.setMarginBox(this.domNode,b,this._computedStyle);for(d=0;d<e;d+=1)f=a[d],f.resize&&f.resize();this.inherited(arguments)},addChild:function(b){this.inherited(arguments);this.buttonStore.put(b)},removeChild:function(b){this.buttonStore.remove(b.id);this.inherited(arguments)},getChildrenByRole:function(b){return this.buttonStore.query({role:b})}})})},"webview/palette/ModelBrowserButton":function(){define(["dojo/_base/declare",
"./PaletteButton","dojo/i18n!../resources/slreportgen_webview/nls/modelviewer"],function(e,k,h){return e([k],{role:"ModelBrowser",iconClass:"Palette_Hide",label:h.ModelBrowserButtonLabel,startup:function(){var e=this,b=this.app;this.inherited(arguments);this.set("showLabel",!1);this.update();this.own(b.watch("showModelBrowser",function(){e.update()}))},onClick:function(){var e=this.app;e.set("showModelBrowser",!e.get("showModelBrowser"));e.modelViewer.focus()},update:function(){this.set("iconClass",
this.app.showModelBrowser?"Palette_Hide":"Palette_Show")}})})},"webview/palette/PaletteButton":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/on dojo/aspect dijit/Tooltip dijit/form/Button".split(" "),function(e,k,h,l,b,m,d){return e([d],{appId:"",onClick:function(){},onDblClick:function(){},postCreate:function(){this.inherited(arguments);var d=this.iconNode,c=this;this.set("showLabel",!1);this.own(b.after(this,"onClick",function(){l.emit(d,"mouseout",{bubbles:!0,cancelable:!1});
l.emit(d,"mouseover",{bubbles:!0,cancelable:!1})}),new m({connectId:this.domNode,label:this.label,showDelay:800}),l(this.domNode,"dblclick",k.hitch(this,"onDblClick")),l(this.domNode,"mouseover",function(){h.add(d,c.iconClass+"Hover")}),l(this.domNode,"mouseout",function(){h.remove(d,c.iconClass+"Hover")}))},_setIconClassAttr:function(b){var c=this.iconNode,a=this.iconClass;h.remove(c,a);h.remove(c,a+"Hover");this.iconClass=b;h.add(this.iconNode,b)}})})},"dijit/Tooltip":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/fx dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff ./_base/manager ./place ./_Widget ./_TemplatedMixin ./BackgroundIframe dojo/text!./templates/Tooltip.html ./main".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x){function w(){}var y=k("dijit._MasterTooltip",[n,q],{duration:u.defaultDuration,templateString:s,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.bgIframe=new r(this.domNode);this.fadeIn=h.fadeIn({node:this.domNode,duration:this.duration,onEnd:g.hitch(this,"_onShow")});this.fadeOut=h.fadeOut({node:this.domNode,duration:this.duration,onEnd:g.hitch(this,"_onHide")})},show:function(a,b,c,f,e,h,n){if(!this.aroundNode||!(this.aroundNode===
b&&this.containerNode.innerHTML==a))if("playing"==this.fadeOut.status())this._onDeck=arguments;else{this.containerNode.innerHTML=a;e&&this.set("textDir",e);this.containerNode.align=f?"right":"left";var l=p.around(this.domNode,b,c&&c.length?c:A.defaultPosition,!f,g.hitch(this,"orient")),k=l.aroundNodePos;"M"==l.corner.charAt(0)&&"M"==l.aroundCorner.charAt(0)?(this.connectorNode.style.top=k.y+(k.h-this.connectorNode.offsetHeight>>1)-l.y+"px",this.connectorNode.style.left=""):"M"==l.corner.charAt(1)&&
"M"==l.aroundCorner.charAt(1)?this.connectorNode.style.left=k.x+(k.w-this.connectorNode.offsetWidth>>1)-l.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top="");d.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=b;this.onMouseEnter=h||w;this.onMouseLeave=n||w}},orient:function(a,b,c,d,e){this.connectorNode.style.top="";var g=d.h;d=d.w;a.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove",
"BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[b+"-"+c];this.domNode.style.width="auto";var h=m.position(this.domNode);if(f("ie")||f("trident"))h.w+=2;var n=Math.min(Math.max(d,1),h.w);m.setMarginBox(this.domNode,{w:n});"B"==c.charAt(0)&&"B"==b.charAt(0)?(a=m.position(a),b=
this.connectorNode.offsetHeight,a.h>g?(this.connectorNode.style.top=g-(e.h+b>>1)+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(e.h/2-b/2,0),a.h-b)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom="");return Math.max(0,h.w-d)},_onShow:function(){f("ie")&&(this.domNode.style.filter="")},hide:function(a){this._onDeck&&this._onDeck[1]==a?this._onDeck=null:this.aroundNode===a&&(this.fadeIn.stop(),this.isShowingNow=
!1,this.aroundNode=null,this.fadeOut.play());this.onMouseEnter=this.onMouseLeave=w},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});x.showTooltip=function(a,b,c,f,d,g,h){c&&(c=e.map(c,function(a){return{after:"after-centered",before:"before-centered"}[a]||a}));A._masterTT||(x._masterTT=A._masterTT=new y);return A._masterTT.show(a,b,c,f,d,g,h)};x.hideTooltip=function(a){return A._masterTT&&A._masterTT.hide(a)};
var A=k("dijit.Tooltip",n,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(b){e.forEach(this._connections||[],function(a){e.forEach(a,function(a){a.remove()})},this);this._connectIds=e.filter(g.isArrayLike(b)?b:b?[b]:[],function(a){return l.byId(a,this.ownerDocument)},this);this._connections=e.map(this._connectIds,function(b){b=l.byId(b,this.ownerDocument);var f=this.selector,d=f?function(b){return a.selector(f,b)}:function(a){return a},e=this;
return[a(b,d(c.enter),function(){e._onHover(this)}),a(b,d("focusin"),function(){e._onHover(this)}),a(b,d(c.leave),g.hitch(e,"_onUnHover")),a(b,d("focusout"),g.hitch(e,"set","state","DORMANT"))]},this);this._set("connectId",b)},addTarget:function(a){a=a.id||a;-1==e.indexOf(this._connectIds,a)&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=e.indexOf(this._connectIds,a.id||a);0<=a&&(this._connectIds.splice(a,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);
b.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;e.forEach(g.isArrayLike(a)?a:[a],this.addTarget,this)},getContent:function(a){return this.label||this.domNode.innerHTML},state:"DORMANT",_setStateAttr:function(a){if(!(this.state==a||"SHOW TIMER"==a&&"SHOWING"==this.state||"HIDE TIMER"==a&&"DORMANT"==this.state)){this._hideTimer&&(this._hideTimer.remove(),delete this._hideTimer);this._showTimer&&(this._showTimer.remove(),delete this._showTimer);
switch(a){case "DORMANT":this._connectNode&&(A.hide(this._connectNode),delete this._connectNode,this.onHide());break;case "SHOW TIMER":"SHOWING"!=this.state&&(this._showTimer=this.defer(function(){this.set("state","SHOWING")},this.showDelay));break;case "SHOWING":var b=this.getContent(this._connectNode);if(!b){this.set("state","DORMANT");return}A.show(b,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,g.hitch(this,"set","state","SHOWING"),g.hitch(this,"set","state","HIDE TIMER"));
this.onShow(this._connectNode,this.position);break;case "HIDE TIMER":this._hideTimer=this.defer(function(){this.set("state","DORMANT")},this.hideDelay)}this._set("state",a)}},_onHover:function(a){this._connectNode&&a!=this._connectNode&&this.set("state","DORMANT");this._connectNode=a;this.set("state","SHOW TIMER")},_onUnHover:function(a){this.set("state","HIDE TIMER")},open:function(a){this.set("state","DORMANT");this._connectNode=a;this.set("state","SHOWING")},close:function(){this.set("state","DORMANT")},
onShow:function(){},onHide:function(){},destroy:function(){this.set("state","DORMANT");e.forEach(this._connections||[],function(a){e.forEach(a,function(a){a.remove()})},this);this.inherited(arguments)}});A._MasterTooltip=y;A.show=x.showTooltip;A.hide=x.hideTooltip;A.defaultPosition=["after-centered","before-centered"];return A})},"webview/palette/ExplorerBarButton":function(){define(["dojo/_base/declare","./PaletteButton","dojo/i18n!../resources/slreportgen_webview/nls/modelviewer"],function(e,k,
h){return e([k],{role:"ExplorerBar",iconClass:"Palette_Collapse",label:h.ExplorerBarButtonLabel,startup:function(){var e=this,b=this.app.modelViewer;this.inherited(arguments);this.update();this.own(b.watch("showExplorerBar",function(){e.update()}))},onClick:function(){var e=this.app.modelViewer;e.set("showExplorerBar",!e.get("showExplorerBar"));e.focus()},update:function(){this.set("iconClass",this.app.modelViewer.get("showExplorerBar")?"Palette_Collapse":"Palette_Expand")}})})},"webview/palette/PaletteSeparator":function(){define(["dojo/_base/declare",
"dojo/dom","dijit/_WidgetBase","dijit/_TemplatedMixin","dojo/text!./templates/PaletteSeparator.html"],function(e,k,h,l,b){return e([h,l],{templateString:b,role:"Separator",buildRendering:function(){this.inherited(arguments);k.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"webview/palette/PaletteSpacer":function(){define("dojo/_base/declare dojo/dom dojo/dom-geometry dojo/dom-style dijit/_WidgetBase dijit/_Contained dijit/_TemplatedMixin".split(" "),function(e,k,h,l,b,m,d){return e([b,
m,d],{templateString:'\x3cdiv class\x3d"PaletteSpacer" role\x3d"presentation"\x3e\x3c/div\x3e',role:"spacer",height:null,buildRendering:function(){this.inherited(arguments);k.setSelectable(this.domNode,!1)},isFocusable:function(){return!1},postCreate:function(){this.height&&(l.set(this.domNode,"height",this.height+"px"),this.resize=function(){})},resize:function(){var b=this.getParent(),c=this.getIndexInParent(),a=h.position(b.domNode).h,f=0,d,b=b.getChildren();b.splice(c,1);c=b.length;for(d=0;d<
c;d+=1)f+=h.position(b[d].domNode).h;l.set(this.domNode,"height",a-f-2+"px")}})})},"webview/palette/FitToViewButton":function(){define(["dojo/_base/declare","./PaletteButton","dojo/i18n!../resources/slreportgen_webview/nls/modelviewer"],function(e,k,h){return e([k],{role:"FitToView",iconClass:"Palette_ZoomFitView",label:h.FitToViewButtonLabel,onClick:function(){var e=this.app.modelViewer,b=e.selectedDiagramTab.modelGraphicsPane;b&&b.fitToView();e.focus()}})})},"webview/palette/MarqueeZoomButton":function(){define("dojo/_base/declare dojo/on dijit/form/_ToggleButtonMixin ../tools/MarqueeZoomTool ./PaletteButton dojo/i18n!../resources/slreportgen_webview/nls/modelviewer".split(" "),
function(e,k,h,l,b,m){return e([b,h],{role:"MarqueeZoom",iconClass:"Palette_ZoomMarquee",label:m.MarqueeZoomButtonLabel,startup:function(){var b=this,e=new l;this.inherited(arguments);this.set("checked",!1);this.marqueeZoomTool=e;this.own(k(e,"done",function(){b.done()}),k(e,"idle",function(){b.done()}))},onClick:function(){var b=this,e=this.marqueeZoomTool;this.get("checked")?this.marqueeZoom():setTimeout(function(){e.isPersistent||b.done()},500);this.app.modelViewer.focus()},onDblClick:function(){this.marqueeZoom(!0)},
marqueeZoom:function(b){var e=this.app.modelViewer.selectedDiagramTab.modelGraphicsPane.canvas.toolStack,c=this.marqueeZoomTool;c.isPersistent=b||!1;e.getTool(c.role)||(e.addTool(c),c.becomeAlert());this.set("checked",!0)},done:function(){var b=this.marqueeZoomTool;b&&!b.isDone()&&(b.isPersistent=!1,b.becomeDone());this.set("checked",!1)}})})},"webview/tools/MarqueeZoomTool":function(){define(["dojo/_base/declare","../utils/svg","../base/Rect","./Tool"],function(e,k,h,l){var b=e(null,{constructor:function(b,
d){var e=b.sceneServer.svgDocument.createElementNS(k.XMLNS,"rect");e.setAttribute("style","stroke: #99ccff; fill: #ffdbb7; fill-opacity: 0.6");b.sceneServer.foregroundScene.rootElement.appendChild(e);this.canvas=b;this.startPoint=d;this.rect=new h;this.svgRect=e},update:function(b){var d=this.rect,e=this.svgRect;b.x<=this.startPoint.x?(d.x=b.x,d.setRight(this.startPoint.x)):(d.x=this.startPoint.x,d.setRight(b.x-1));b.y<=this.startPoint.y?(d.y=b.y,d.setBottom(this.startPoint.y)):(d.y=this.startPoint.y,
d.setBottom(b.y-1));e.setAttribute("x",d.x);e.setAttribute("y",d.y);e.setAttribute("width",d.width);e.setAttribute("height",d.height)},destroy:function(){this.canvas.sceneServer.foregroundScene.rootElement.removeChild(this.svgRect)}});return e(l,{postMixInProperties:function(){this.role="MarqueeZoomTool";this.marqueeRect=null},isPersistent:!1,becomeActive:function(){this.inherited(arguments);this.canvas.selection.disable()},becomeAlert:function(){var b=this.canvas.cursor;this.inherited(arguments);
b.set("ZoomIn");this.removeMarqueeRect()},becomeIdle:function(){this.reset();this.inherited(arguments)},becomeDone:function(){this.reset();this.inherited(arguments)},handleMouseDownEvent:function(e){this.isAlert()&&e.isLeftMouse()&&(this.marqueeRect=new b(this.canvas,e.getMousePosition()),this.becomeActive())},handleMouseMoveEvent:function(b){var d=this.marqueeRect;this.isActive()&&d&&this.marqueeRect.update(b.getMousePosition())},handleClickEvent:function(b){var d=this.canvas,e,c;this.isActive()&&
(e=parseFloat(d.width()),c=parseFloat(d.height()),0.05*e<this.marqueeRect.rect.width&&0.05*c<this.marqueeRect.rect.width?d.showSceneRect(d.viewRectToSceneRect(this.marqueeRect.rect)):d.setScaleAroundScenePoint(2*d.scale(),d.viewPointToScenePoint(b.getMousePosition())),this.isPersistent?this.becomeAlert():this.becomeDone(),b.consume())},removeMarqueeRect:function(){var b=this.marqueeRect;b&&b.destroy();this.marqueeRect=null},reset:function(){var b=this.canvas;this.removeMarqueeRect();b&&(b.cursor.set("Default"),
b.selection.enable())}})})},"webview/palette/OptionalViewButton":function(){define(["dojo/_base/declare","./PaletteButton"],function(e,k){return e([k],{role:"optionalView",postMixInProperties:function(){var e=this.optView;this.label=e.name;this.viewId=e.id;this.iconClass=e.icon;this.inherited(arguments)},onClick:function(){var e=this.app;e.viewManager.toggleView(this.viewId);e.modelViewer.focus()}})})},"webview/search/SearchResultsPane":function(){define("dojo/_base/declare dojo/keys dojo/window dojo/dom-style dojo/dom-geometry dojo/topic dijit/layout/ContentPane dijit/_WidgetBase dijit/_TemplatedMixin dgrid/OnDemandGrid dgrid/Selection dgrid/Keyboard dgrid/extensions/ColumnResizer dojo/i18n!../resources/slreportgen_webview/nls/modelviewer dojo/text!./templates/SearchResultsPane.html".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q){return e([g,c],{templateString:q,title:n.searchResults,_setTitleAttr:{node:"titleNode",type:"innerHTML"},postCreate:function(){function b(a){a=m.cell(a).row;var c;a&&(c=a.data.obj)&&(g.isDiagram(c)?g.open(c).then(function(){g.select(c)}):g.open(c.diagram).then(function(){g.select(c)}))}function c(a){a=m.cell(a).row;var b;a&&(b=a.data.obj)&&g.isElement(b)&&g.open(b.diagram).then(function(){g.centerToView(b)})}var g=this.app,h=new d({},this.containerNode),l={icon:{label:"",
sortable:!1,get:function(a){return a.obj.backing.icon},formatter:function(a){return'\x3cdiv class\x3d"'+a+'"/\x3e'}},name:{label:n.name,sortable:!0,get:function(a){return a.name},formatter:function(a){return a}},parent:n.parent},m=new (e([a,f,u,p]))({store:g.finder.results,sort:["parent","name"],columns:l,selectionMode:"single"});this.grid=m;this.contentPane=h;this.own(h);h.addChild(m);m.on(".dgrid-cell:click",b);m.on("dgrid-cellfocusin",b);m.on(".dgrid-cell:dblclick",c);m.addKeyHandler(k.ENTER,c);
m.startup()},startup:function(){var a=this.app,c=this.grid;g.prototype.startup.call(this);this.own(m.subscribe(a.id+"/select",function(a){a=c.row(a.eid||a.hid.toString());a.element?c.isSelected(a)||(c.clearSelection(),h.scrollIntoView(a.element),c.select(a)):c.clearSelection()}));this._computedStyle=l.getComputedStyle(this.domNode);this._containerComputedStyle=l.getComputedStyle(this.containerNode);this._gridComputedStyle=l.getComputedStyle(c.domNode);this._titleBarMarginBox=b.getMarginBox(this.titleBar)},
resize:function(a){var c=this.domNode,f=this.grid,d=this._computedStyle;a&&b.setMarginBox(c,a,d);a=b.getMarginBox(c,d);a={l:0,t:0,w:a.w,h:a.h-this._titleBarMarginBox.h};b.setMarginBox(this.containerNode,a,this._containerComputedStyle);b.setMarginBox(f.domNode,a,this._gridComputedStyle);f.resize()},close:function(){this.app.finder.close()}})})},"dgrid/OnDemandGrid":function(){define(["dojo/_base/declare","./Grid","./OnDemandList"],function(e,k,h){return e([k,h],{})})},"dgrid/Grid":function(){define("dojo/_base/kernel dojo/_base/declare dojo/on dojo/has put-selector/put ./List ./util/misc dojo/_base/sniff".split(" "),
function(e,k,h,l,b,m,d){function g(a,b){b&&b.nodeType&&a.appendChild(b)}function c(a,b,c,d){if(this.formatter){d=this.formatter;var e=this.grid.formatterScope;c.innerHTML="string"===typeof d&&e?e[d](b,a):this.formatter(b,a)}else null!=b&&c.appendChild(document.createTextNode(b))}var a=8>l("ie")&&!l("quirks");k=k(m,{columns:null,cellNavigation:!0,tabableHeader:!0,showHeader:!0,column:function(a){return"object"!=typeof a?this.columns[a]:this.cell(a).column},listType:"grid",cell:function(a,b){if(a.column&&
a.element)return a;a.target&&a.target.nodeType&&(a=a.target);var c;if(a.nodeType){do{if(this._rowIdToObject[a.id])break;var d=a.columnId;if(d){b=d;c=a;break}a=a.parentNode}while(a&&a!=this.domNode)}if(!c&&"undefined"!=typeof b){var e=this.row(a);if(d=e&&e.element)for(var d=d.getElementsByTagName("td"),g=0;g<d.length;g++)if(d[g].columnId==b){c=d[g];break}}if(null!=a)return{row:e||this.row(a),column:b&&this.column(b),element:c}},createRowCells:function(c,e,g,h){var k=b("table.dgrid-row-table[role\x3dpresentation]"),
m=9>l("ie")||l("quirks")?b(k,"tbody"):k,s,x,w,y,A,B,C,F,K,G;g=g||this.subRows;x=0;for(w=g.length;x<w;x++){B=g[x];s=b(m,"tr");B.className&&b(s,"."+B.className);y=0;for(A=B.length;y<A;y++){C=B[y];F=C.id;K=C.field?".field-"+d.escapeCssIdentifier(C.field,"-"):"";(G="function"===typeof C.className?C.className(h):C.className)&&(K+="."+G);K=b(c+(".dgrid-cell.dgrid-cell-padding"+(F?".dgrid-column-"+d.escapeCssIdentifier(F,"-"):"")+K.replace(/ +/g,"."))+"[role\x3d"+("th"===c?"columnheader":"gridcell")+"]");
K.columnId=F;a?(F=b(K,"!dgrid-cell-padding div.dgrid-cell-padding"),K.contents=F):F=K;if(G=C.colSpan)K.colSpan=G;if(G=C.rowSpan)K.rowSpan=G;e(F,C);s.appendChild(K)}}return k},left:function(a,b){a.element||(a=this.cell(a));return this.cell(this._move(a,-(b||1),"dgrid-cell"))},right:function(a,b){a.element||(a=this.cell(a));return this.cell(this._move(a,b||1,"dgrid-cell"))},renderRow:function(a,d){var e=this.createRowCells("td",function(b,e){var h=a;e.get?h=e.get(a):"field"in e&&"_item"!=e.field&&(h=
h[e.field]);e.renderCell?g(b,e.renderCell(a,h,b,d)):c.call(e,a,h,b,d)},d&&d.subRows,a);return b("div[role\x3drow]\x3e",e)},renderHeader:function(){var c=this,d=this.headerNode,e=d.childNodes.length;for(d.setAttribute("role","row");e--;)b(d.childNodes[e],"!");e=this.createRowCells("th",function(b,c){var f=c.headerNode=b;a&&(b=b.parentNode);var d=c.field;d&&(b.field=d);if(c.renderHeaderCell)g(f,c.renderHeaderCell(f));else if("label"in c||c.field)f.appendChild(document.createTextNode("label"in c?c.label:
c.field));!1!==c.sortable&&(d&&"_item"!=d)&&(b.sortable=!0,b.className+=" dgrid-sortable")},this.subRows&&this.subRows.headerRows);this._rowIdToObject[e.id=this.id+"-header"]=this.columns;d.appendChild(e);this._sortListener&&this._sortListener.remove();this._sortListener=h(e,"click,keydown",function(a){if("click"==a.type||32==a.keyCode||!l("opera")&&13==a.keyCode){var b=a.target,e,g,k;do if(b.sortable){k=[{attribute:e=b.field||b.columnId,descending:(g=c._sort[0])&&g.attribute==e&&!g.descending}];
e={bubbles:!0,cancelable:!0,grid:c,parentType:a.type,sort:k};h.emit(a.target,"dgrid-sort",e)&&(c._sortNode=b,c.set("sort",k));break}while((b=b.parentNode)&&b!=d)}})},resize:function(){var a=this.headerNode.firstChild,b=this.contentNode,c;this.inherited(arguments);if(!l("ie")||7<l("ie")&&!l("quirks"))if(b.style.width="",b&&a&&(c=a.offsetWidth)!=b.offsetWidth)b.style.width=c+"px"},destroy:function(){this._destroyColumns();this._sortListener&&this._sortListener.remove();this.inherited(arguments)},_setSort:function(a,
b){this.inherited(arguments);this.updateSortArrow(this._sort)},_findSortArrowParent:function(a){var b=this.columns,c;for(c in b){var d=b[c];if(d.field==a)return d.headerNode}},updateSortArrow:function(a,c){this._lastSortedArrow&&(b(this._lastSortedArrow,"\x3c!dgrid-sort-up!dgrid-sort-down"),b(this._lastSortedArrow,"!"),delete this._lastSortedArrow);c&&(this._sort=a);if(a[0]){var d=a[0].attribute,e=a[0].descending,d=this._sortNode||this._findSortArrowParent(d),g;delete this._sortNode;d&&(d=d.contents||
d,g=this._lastSortedArrow=b("div.dgrid-sort-arrow.ui-icon[role\x3dpresentation]"),g.innerHTML="\x26nbsp;",d.insertBefore(g,d.firstChild),b(d,e?".dgrid-sort-down":".dgrid-sort-up"),this.resize())}},styleColumn:function(a,b){return this.addCssRule("#"+d.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-"+d.escapeCssIdentifier(a,"-"),b)},_configColumns:function(a,b){var c=[],e=b instanceof Array;d.each(b,function(d,g){"string"==typeof d&&(b[g]=d={label:d});!e&&!d.field&&(d.field=g);g=d.id=d.id||(isNaN(g)?
g:a+g);this._configColumn&&(this._configColumn(d,g,b,a),g=d.id);e&&(this.columns[g]=d);d.grid=this;"function"===typeof d.init&&d.init();c.push(d)},this);return e?b:c},_destroyColumns:function(){var a=this.subRows,b=a&&a.length,c,d,e,g;this.cleanup();for(c=0;c<b;c++){d=0;for(g=a[c].length;d<g;d++)e=a[c][d],"function"===typeof e.destroy&&e.destroy()}},configStructure:function(){var a=this.subRows,b=this._columns=this.columns;this.columns=!b||b instanceof Array?{}:b;if(a)for(b=0;b<a.length;b++)a[b]=
this._configColumns(b+"-",a[b]);else this.subRows=[this._configColumns("",b)]},_getColumns:function(){return this._columns||this.columns},_setColumns:function(a){this._destroyColumns();this.subRows=null;this.columns=a;this._updateColumns()},_setSubRows:function(a){this._destroyColumns();this.subRows=a;this._updateColumns()},setColumns:function(a){e.deprecated("setColumns(...)",'use set("columns", ...) instead',"dgrid 0.4");this.set("columns",a)},setSubRows:function(a){e.deprecated("setSubRows(...)",
'use set("subRows", ...) instead',"dgrid 0.4");this.set("subRows",a)},_updateColumns:function(){this.configStructure();this.renderHeader();this.refresh();this._lastCollection&&this.renderArray(this._lastCollection);this._started&&(this._sort&&this._sort.length?this.updateSortArrow(this._sort):this.resize())}});k.appendIfNode=g;k.defaultRenderCell=c;return k})},"put-selector/put":function(){(function(e){var k,h=/[-+,> ]/;e([],k=function(e,b){function m(b){function k(){s&&(r&&s!=r)&&(r==b&&(p||(p=h.test(A)&&
e.createDocumentFragment()))?p:r).insertBefore(s,q||null)}for(var p,n,q,r,s,x=arguments,w=x[0],y=0;y<x.length;y++){var A=x[y];if("object"==typeof A){n=!1;if(A instanceof Array){s=e.createDocumentFragment();for(var B=0;B<A.length;B++)s.appendChild(m(A[B]));A=s}if(A.nodeType)s=A,k(),r=A,q=0;else for(B in A)s[B]=A[B]}else if(n)n=!1,s.appendChild(e.createTextNode(A));else{1>y&&(b=null);n=!0;if(w=A.replace(d,function(d,h,n,p,w,B){h&&(k(),"-"==h||"+"==h?(r=(q=s||r).parentNode,s=null,"+"==h&&(q=q.nextSibling)):
("\x3c"==h?r=s=(s||r).parentNode:(","==h?r=b:s&&(r=s),s=null),q=0),s&&(r=s));if((d=!n&&p)||!s&&(n||w))"$"==d?(d=x[++y],r.appendChild(e.createTextNode(d))):(d=d||m.defaultTag,(h=a&&x[y+1]&&x[y+1].name)&&(d="\x3c"+d+' name\x3d"'+h+'"\x3e'),s=c&&~(g=d.indexOf("|"))?e.createElementNS(c[d.slice(0,g)],d.slice(g+1)):e.createElement(d));if(n)if("$"==p&&(p=x[++y]),"#"==n)s.id=p;else if(h=(d=s.className)&&(" "+d+" ").replace(" "+p+" "," "),"."==n)s.className=d?(h+p).substring(1):p;else if("!"==A){var N;a?m("div",
s,"\x3c").innerHTML="":(N=s.parentNode)&&N.removeChild(s)}else h=h.substring(1,h.length-1),h!=d&&(s.className=h);w&&("$"==B&&(B=x[++y]),"style"==w?s.style.cssText=B:(n="!"==w.charAt(0)?(w=w.substring(1))&&"removeAttribute":"setAttribute",B=""===B?w:B,c&&~(g=w.indexOf("|"))?s[n+"NS"](c[w.slice(0,g)],w.slice(g+1),B):s[n](w,B)));return""}))throw new SyntaxError("Unexpected char "+w+" in "+A);k();r=w=s||r}}b&&p&&b.appendChild(p);return w}h=b||h;var d=/(?:\s*([-+ ,<>]))?\s*(\.|!\.?|#)?([-\w\u00A0-\uFFFF%$|]+)?(?:\[([^\]=]+)=?['"]?([^\]'"]*)['"]?\])?/g,
g,c=!1;e=e||document;var a="object"==typeof e.createElement;m.addNamespace=function(a,b){e.createElementNS?(c||(c={}))[a]=b:e.namespaces.add(a,b)};m.defaultTag="div";m.forDocument=k;return m})})(function(e,k,h){h=h||k;"function"===typeof define?define([],function(){return h()}):"undefined"==typeof window?require("./node-html")(module,h):put=h()})},"dgrid/List":function(){define("dojo/_base/kernel dojo/_base/declare dojo/dom dojo/on dojo/has ./util/misc ./TouchScroll xstyle/has-class put-selector/put dojo/_base/sniff xstyle/css!./css/dgrid.css".split(" "),
function(e,k,h,l,b,m,d,g,c){function a(a,b){c(document.body,a,".dgrid-scrollbar-measure");var d=a["offset"+b]-a["client"+b];a.className="";document.body.removeChild(a);return d}function f(a){var b=a?"."+a.replace(x,"."):"";this._class&&(b="!"+this._class.replace(x,"!")+b);c(this.domNode,b);this._class=a}function u(){return this._class}function p(){return{x:this.bodyNode.scrollLeft,y:this.bodyNode.scrollTop}}function n(a){"undefined"!==typeof a.x&&(this.bodyNode.scrollLeft=a.x);"undefined"!==typeof a.y&&
(this.bodyNode.scrollTop=a.y)}g("mozilla","opera","webkit","ie","ie-6","ie-6-7","quirks","no-quirks","touch");var q,r;b.add("dom-scrollbar-width",function(b,c,d){return a(d,"Width")});b.add("dom-scrollbar-height",function(b,c,d){return a(d,"Height")});b.add("dom-rtl-scrollbar-left",function(a,d,f){a=c("div");c(document.body,f,".dgrid-scrollbar-measure[dir\x3drtl]");c(f,a);d=!!b("ie")||!!b("trident")||a.offsetLeft>=b("dom-scrollbar-width");f.className="";document.body.removeChild(f);c(a,"!");f.removeAttribute("dir");
return d});var s=0,x=/ +/g,w=7>b("ie")&&!b("quirks")?function(){var a,b,c;if(this._started&&(a=document.documentElement,b=a.clientWidth,a=a.clientHeight,c=this._prevWinDims||[],c[0]!==b||c[1]!==a))this.resize(),this._prevWinDims=[b,a]}:function(){this._started&&this.resize()};return k(b("touch")?d:null,{tabableHeader:!1,showHeader:!1,showFooter:!1,maintainOddEven:!0,cleanAddedRules:!0,useTouchScroll:null,addUiClasses:!0,cleanEmptyObservers:!0,highlightDuration:250,postscript:function(a,b){var c=this;
(this._Row=function(a,b,c){this.id=a;this.data=b;this.element=c}).prototype.remove=function(){c.removeRow(this.element)};b&&(this.srcNodeRef=b=b.nodeType?b:document.getElementById(b));this.create(a,b)},listType:"list",create:function(a,d){var e=this.domNode=d||c("div"),g;a?(this.params=a,k.safeMixin(this,a),g=a["class"]||a.className||e.className,this._sort=a.sort||[],delete this.sort):this._sort=[];this.observers=[];this._numObservers=0;this._listeners=[];this._rowIdToObject={};this.postMixInProperties&&
this.postMixInProperties();this.id=e.id=e.id||this.id||"dgrid_"+s++;null===this.useTouchScroll&&(this.useTouchScroll=!b("dom-scrollbar-width"));this.buildRendering();g&&f.call(this,g);this.postCreate();delete this.srcNodeRef;this.domNode.offsetHeight&&this.startup()},buildRendering:function(){var a=this.domNode,d=this.addUiClasses,f=this,e,g,h,n;n=this.isRTL="rtl"==(document.body.dir||document.documentElement.dir||document.body.style.direction).toLowerCase();a.className="";c(a,"[role\x3dgrid].dgrid.dgrid-"+
this.listType+(d?".ui-widget":""));e=this.headerNode=c(a,"div.dgrid-header.dgrid-header-row"+(d?".ui-widget-header":"")+(this.showHeader?"":".dgrid-header-hidden"));(b("quirks")||8>b("ie"))&&c(a,"div.dgrid-spacer");g=this.bodyNode=c(a,"div.dgrid-scroller");b("ff")&&(g.tabIndex=-1);this.headerScrollNode=c(a,"div.dgrid-header.dgrid-header-scroll.dgrid-scrollbar-width"+(d?".ui-widget-header":""));h=this.footerNode=c("div.dgrid-footer"+(this.showFooter?"":".dgrid-footer-hidden"));c(a,h);n&&(a.className+=
" dgrid-rtl"+(b("dom-rtl-scrollbar-left")?" dgrid-rtl-swap":""));l(g,"scroll",function(b){f.showHeader&&(e.scrollLeft=b.scrollLeft||g.scrollLeft);b.stopPropagation();l.emit(a,"scroll",{scrollTarget:g})});this.configStructure();this.renderHeader();this.contentNode=this.touchNode=c(this.bodyNode,"div.dgrid-content"+(d?".ui-widget-content":""));this._listeners.push(this._resizeHandle=l(window,"resize",m.throttleDelayed(w,this)))},postCreate:b("touch")?function(){this.useTouchScroll&&this.inherited(arguments)}:
function(){},startup:function(){this._started||(this.inherited(arguments),this._started=!0,this.resize(),this.set("sort",this._sort))},configStructure:function(){},resize:function(){var a=this.bodyNode,c=this.headerNode,d=this.footerNode,f=c.offsetHeight,e=this.showFooter?d.offsetHeight:0,g=b("quirks")||7>b("ie");this.headerScrollNode.style.height=a.style.marginTop=f+"px";a.style.marginBottom=e+"px";g&&(a.style.height="",a.style.height=Math.max(this.domNode.offsetHeight-f-e,0)+"px",e&&(d.style.bottom=
"1px",setTimeout(function(){d.style.bottom=""},0)));q||(q=b("dom-scrollbar-width"),r=b("dom-scrollbar-height"),b("ie")&&(q++,r++),m.addCssRule(".dgrid-scrollbar-width","width: "+q+"px"),m.addCssRule(".dgrid-scrollbar-height","height: "+r+"px"),17!=q&&!g&&(m.addCssRule(".dgrid-header-row","right: "+q+"px"),m.addCssRule(".dgrid-rtl-swap .dgrid-header-row","left: "+q+"px")));g&&(c.style.width=a.clientWidth+"px",setTimeout(function(){c.scrollLeft=a.scrollLeft},0))},addCssRule:function(a,b){var c=m.addCssRule(a,
b);this.cleanAddedRules&&this._listeners.push(c);return c},on:function(a,c){var d=l(this.domNode,a,c);b("dom-addeventlistener")||this._listeners.push(d);return d},cleanup:function(){var a=this.observers,b;for(b in this._rowIdToObject)if(this._rowIdToObject[b]!=this.columns){var c=document.getElementById(b);c&&this.removeRow(c,!0)}for(b=0;b<a.length;b++)(c=a[b])&&c.cancel();this.observers=[];this._numObservers=0;this.preload=null},destroy:function(){if(this._listeners){for(var a=this._listeners.length;a--;)this._listeners[a].remove();
delete this._listeners}this._started=!1;this.cleanup();c(this.domNode,"!");this.useTouchScroll&&this.inherited(arguments)},refresh:function(){this.cleanup();this._rowIdToObject={};this._autoId=0;this.contentNode.innerHTML="";this.scrollTo({x:0,y:0})},newRow:function(a,b,d,f,e){if(b){var g=this.insertRow(a,b,d,f,e);c(g,".dgrid-highlight"+(this.addUiClasses?".ui-state-highlight":""));setTimeout(function(){c(g,"!dgrid-highlight!ui-state-highlight")},this.highlightDuration);return g}},adjustRowIndices:function(a){var b=
a.rowIndex;if(-1<b){do-1<a.rowIndex&&(this.maintainOddEven&&-1<(a.className+" ").indexOf("dgrid-row ")&&c(a,"."+(1==b%2?"dgrid-row-odd":"dgrid-row-even")+"!"+(0==b%2?"dgrid-row-odd":"dgrid-row-even")),a.rowIndex=b++);while((a=a.nextSibling)&&a.rowIndex!=b)}},renderArray:function(a,b,c){function d(){var b=arguments;if(-1<q)for(var e=0;e<b.length;e++){var g=b[e],h=m[g?0:m.length-1];if(h=h&&f(h)){var l=h[g?"previousSibling":"nextSibling"];l&&(l=n.row(l));l&&l.element!=h&&(g=g?"unshift":"push",a[g](l.data),
m[g](l.element),c.count++)}}}function f(a){return!h.isDescendant(a,n.domNode)&&document.getElementById(a.id)?n.row(a.id.slice(n.id.length+5)).element:a}function e(a){u=n.insertRow(a,r,null,l++,c);u.observerIndex=q;return u}function g(a){x=a.slice(0);(p=b?b.parentNode:n.contentNode)&&p.parentNode&&(p!==n.contentNode||a.length)?(p.insertBefore(r,b||null),(u=a[a.length-1])&&n.adjustRowIndices(u)):k[q]&&n.cleanEmptyObservers&&"undefined"!==typeof q&&(k[q].cancel(),k[q]=0,n._numObservers--);m=a;s&&(s.rows=
m)}c=c||{};var n=this,l=c.start||0,k=this.observers,m,p,q;b||(this._lastCollection=a);if(a.observe){n._numObservers++;var s=a.observe(function(e,g,h){var l,k,s;-1<g&&m[g]&&(l=m.splice(g,1)[0],l.parentNode==p&&((k=l.nextSibling)&&g!=h&&k.rowIndex--,n.removeRow(l)),c.count--,n._processScroll&&n._processScroll());if(-1<h){if(m.length)if(0===h)s=(s=m[h])&&f(s);else{if(s=m[h-1])s=f(s),s=(s.connected||s).nextSibling}else s=n._getFirstRowSibling&&n._getFirstRowSibling(p);l&&(s&&l.id===s.id)&&(s=(s.connected||
s).nextSibling);s&&!s.parentNode&&(s=document.getElementById(s.id));l=b&&b.parentNode||s&&s.parentNode||n.contentNode;if(l=n.newRow(e,l,s,c.start+h,c))if(l.observerIndex=q,m.splice(h,0,l),!k||h<g)k=l.previousSibling,k=!k||k.rowIndex+1==l.rowIndex||0==l.rowIndex?l:k;c.count++}0===g?d(1,1):g===a.length-(-1===h?0:1)&&d(0,0);g!=h&&k&&n.adjustRowIndices(k);n._onNotification(m,e,g,h)},!0);q=k.push(s)-1}var r=document.createDocumentFragment(),u,x;if(a.map){if(m=a.map(e,console.error),m.then)return a.then(function(b){a=
b;return m.then(function(a){g(a);d(1,1,0,0);return x})})}else{m=[];for(var w=0,R=a.length;w<R;w++)m[w]=e(a[w])}g(m);d(1,1,0,0);return x},_onNotification:function(a,b,c,d){},renderHeader:function(){},_autoId:0,insertRow:function(a,b,c,d,f){var e=f.parentId,e=this.id+"-row-"+(e?e+"-":"")+(this.store&&this.store.getIdentity?this.store.getIdentity(a):this._autoId++),g=document.getElementById(e),h=g&&g.previousSibling;g&&(g===c&&(c=(c.connected||c).nextSibling),this.removeRow(g));g=this.renderRow(a,f);
g.className=(g.className||"")+" dgrid-row "+(1==d%2?"dgrid-row-odd":"dgrid-row-even")+(this.addUiClasses?" ui-state-default":"");this._rowIdToObject[g.id=e]=a;b.insertBefore(g,c||null);h&&this.adjustRowIndices(h);g.rowIndex=d;return g},renderRow:function(a,b){return c("div",""+a)},removeRow:function(a,b){a=a.element||a;delete this._rowIdToObject[a.id];b||c(a,"!")},row:function(a){var b;if(a instanceof this._Row)return a;a.target&&a.target.nodeType&&(a=a.target);if(a.nodeType){do{var c=a.id;if(b=this._rowIdToObject[c])return new this._Row(c.substring(this.id.length+
5),b,a);a=a.parentNode}while(a&&a!=this.domNode)}else return"object"==typeof a?b=this.store.getIdentity(a):(b=a,a=this._rowIdToObject[this.id+"-row-"+b]),new this._Row(b,a,document.getElementById(this.id+"-row-"+b))},cell:function(a){return{row:this.row(a)}},_move:function(a,b,c,d){var f,e;e=f=a.element;b=b||1;do if(a=f[0>b?"previousSibling":"nextSibling"]){do if((f=a)&&-1<(f.className+" ").indexOf(c+" ")){e=f;b+=0>b?1:-1;break}while(a=(!d||!f.hidden)&&f[0>b?"lastChild":"firstChild"])}else if(f=f.parentNode,
!f||f===this.bodyNode||f===this.headerNode)break;while(b);return e},up:function(a,b,c){a.element||(a=this.row(a));return this.row(this._move(a,-(b||1),"dgrid-row",c))},down:function(a,b,c){a.element||(a=this.row(a));return this.row(this._move(a,b||1,"dgrid-row",c))},scrollTo:b("touch")?function(a){return this.useTouchScroll?this.inherited(arguments):n.call(this,a)}:n,getScrollPosition:b("touch")?function(){return this.useTouchScroll?this.inherited(arguments):p.call(this)}:p,get:function(a){var b=
"_get"+a.charAt(0).toUpperCase()+a.slice(1);return"function"===typeof this[b]?this[b].apply(this,[].slice.call(arguments,1)):this[a]},set:function(a,b){if("object"===typeof a)for(var c in a)this.set(c,a[c]);else c="_set"+a.charAt(0).toUpperCase()+a.slice(1),"function"===typeof this[c]?this[c].apply(this,[].slice.call(arguments,1)):this[a]=b;return this},_getClass:u,_setClass:f,_getClassName:u,_setClassName:f,_setSort:function(a,b){this._sort="string"!=typeof a?a:[{attribute:a,descending:b}];this.refresh();
this._lastCollection&&(a.length&&("string"!=typeof a&&(b=a[0].descending,a=a[0].attribute),this._lastCollection.sort(function(c,d){var f=c[a],e=d[a];void 0===f&&(f="");void 0===e&&(e="");return f==e?0:f>e==!b?1:-1})),this.renderArray(this._lastCollection))},sort:function(a,b){e.deprecated("sort(...)",'use set("sort", ...) instead',"dgrid 0.4");this.set("sort",a,b)},_getSort:function(){return this._sort},_setShowHeader:function(a){var b=this.headerNode;this.showHeader=a;c(b,(a?"!":".")+"dgrid-header-hidden");
this.renderHeader();this.resize();a&&(b.scrollLeft=this.getScrollPosition().x)},setShowHeader:function(a){e.deprecated("setShowHeader(...)",'use set("showHeader", ...) instead',"dgrid 0.4");this.set("showHeader",a)},_setShowFooter:function(a){this.showFooter=a;c(this.footerNode,(a?"!":".")+"dgrid-footer-hidden");this.resize()}})})},"dgrid/util/misc":function(){define(["dojo/has","put-selector/put"],function(e,k){e.add("dom-contains",function(b,a,d){return!!d.contains});var h=[],l,b,m,d=/([^A-Za-z0-9_\u00A0-\uFFFF-])/g,
g={defaultDelay:15,throttle:function(b,a,d){var e=!1;d=d||g.defaultDelay;return function(){e||(e=!0,b.apply(a,arguments),setTimeout(function(){e=!1},d))}},throttleDelayed:function(b,a,d){var e=!1;d=d||g.defaultDelay;return function(){if(!e){e=!0;var g=arguments;setTimeout(function(){e=!1;b.apply(a,g)},d)}}},debounce:function(b,a,d){var e;d=d||g.defaultDelay;return function(){e&&(clearTimeout(e),e=null);var g=arguments;e=setTimeout(function(){b.apply(a,g)},d)}},each:function(b,a,d){var e,g;if(b)if("number"===
typeof b.length){e=0;for(g=b.length;e<g;e++)a.call(d,b[e],e,b)}else for(e in b)a.call(d,b[e],e,b)},contains:function(b,a){return e("dom-contains")?b.contains(a):b.compareDocumentPosition(a)&8},addCssRule:function(c,a){l||(l=k(document.getElementsByTagName("head")[0],"style"),l=l.sheet||l.styleSheet,b=l.deleteRule?"deleteRule":"removeRule",m=l.cssRules?"cssRules":"rules");var d=h.length;h[d]=(l.cssRules||l.rules).length;l.addRule?l.addRule(c,a):l.insertRule(c+"{"+a+"}",h[d]);return{get:function(a){return l[m][h[d]].style[a]},
set:function(a,b){"undefined"!==typeof h[d]&&(l[m][h[d]].style[a]=b)},remove:function(){var a=h[d],c,e;if(void 0!==a){l[b](a);h[d]=void 0;c=d+1;for(e=h.length;c<e;c++)h[c]>a&&h[c]--}}}},escapeCssIdentifier:function(b,a){return"string"===typeof b?b.replace(d,a||"\\$1"):b}};return g})},"dgrid/TouchScroll":function(){define("dojo/_base/declare dojo/on ./util/touch ./util/has-css3 put-selector/put xstyle/css!./css/TouchScroll.css".split(" "),function(e,k,h,l,b){function m(a,b,c,d){d=a.touchNode;var f=
r[a.id],e,g,h;if("object"!==typeof b)h=b,b=c,c=g=!0;else{c="x"in b;g="y"in b;if(!c||!g)e=a.getScrollPosition();h=c?b.x:e.x;b=g?b.y:e.y}d.style[I]=O+-h+"px,"+-b+"px"+N;f&&(c&&a._scrollbarXNode)&&(a._scrollbarXNode.style[I]=O+h*f.parentWidth/f.scrollWidth+"px,0"+N);f&&(g&&a._scrollbarYNode)&&(a._scrollbarYNode.style[I]=O+"0,"+b*f.parentHeight/f.scrollHeight+"px"+N);k.emit(a.touchNode.parentNode,"scroll",{scrollLeft:h,scrollTop:b})}function d(a){return r[a.id]?A.exec(window.getComputedStyle(a.touchNode)[I]):
y.exec(a.touchNode.style[I])}function g(a){var c=this.widget,c=[this.node,c._scrollbarXNode,c._scrollbarYNode],d=c.length;this.timer&&(clearTimeout(this.timer),this.timer=null);for(this.transitionHandler&&this.transitionHandler.remove();d--;)c[d]&&(c[d].style[G+"Duration"]="0");(!a||!a.preserveScrollbars)&&b(this.node.parentNode,".touchscroll-fadeout");delete this.resetEffects}function c(a){var b=a.widget,c=b.touchNode,f=b.id,e=0,g=0,l;if(h.countCurrentTouches(a,c)===b.touchesToScroll){if(l=d(b))e=
+l[1],g=+l[2];if(l=r[f])l.resetEffects&&l.resetEffects({preserveScrollbars:!0}),c.style[I]=O+e+"px,"+g+"px"+N,s[f]=l;a=a.targetTouches[0];l=r[f]={widget:b,node:c,startX:e-a.pageX,startY:g-a.pageY,lastX:e,lastY:g,pageX:a.pageX,pageY:a.pageY,tickFunc:function(){var a=r[f],b,c;a&&(b=a.node,(c=y.exec(b.style[I]))?(b=+c[1],c=+c[2],a.velX=b-a.lastX,a.velY=c-a.lastY,a.lastX=b,a.lastY=c):a.lastX=a.lastY=0,a.timer=setTimeout(a.tickFunc,n))}};l.timer=setTimeout(l.tickFunc,n)}}function a(a){var c=a.widget,d=
c.id,f=c.touchesToScroll,e=r[d],g,n;if(!e||(g=h.countCurrentTouches(a,c.touchNode))!==f)g>f&&c.cancelTouchScroll();else{g=a.targetTouches;f=g[0];if(!e.scrollbarsShown&&(s[d]||Math.abs(f.pageX-e.pageX)>c.scrollThreshold||Math.abs(f.pageY-e.pageY)>c.scrollThreshold)){var d=c.touchNode,l=d.parentNode,k=l.offsetWidth-w,p=l.offsetHeight-w,q=e.scrollWidth=d.scrollWidth,x=e.scrollHeight=d.scrollHeight,u=e.parentWidth=l.offsetWidth,y=e.parentHeight=l.offsetHeight;q>u?(c._scrollbarXNode||(n=b(l,"div.touchscroll-x")),
n=c._scrollbarXNode=c._scrollbarXNode||b(n,"div.touchscroll-bar"),n.style.width=k*k/q+"px",n.style.left=d.offsetLeft+"px",b(l,".touchscroll-scrollable-x"),e.scrollableX=!0):b(l,"!touchscroll-scrollable-x");x>y?(c._scrollbarYNode||(n=b(l,"div.touchscroll-y")),n=c._scrollbarYNode=c._scrollbarYNode||b(n,"div.touchscroll-bar"),n.style.height=p*p/x+"px",n.style.top=d.offsetTop+"px",b(l,".touchscroll-scrollable-y"),e.scrollableY=!0):b(l,"!touchscroll-scrollable-y");b(l,"!touchscroll-fadeout");e.scrollbarsShown=
!0;for(n=g.length;n--;)g[n].touchScrolled=!0}if(e.scrollbarsShown&&(e.scrollableX||e.scrollableY))a.preventDefault(),a=e.scrollableX?e.startX+f.pageX:0,f=e.scrollableY?e.startY+f.pageY:0,n=e.scrollableX?-(e.scrollWidth-e.parentWidth):0,e=e.scrollableY?-(e.scrollHeight-e.parentHeight):0,0<a?a/=2:a<n&&(a=n-(n-a)/2),0<f?f/=2:f<e&&(f=e-(e-f)/2),m(c,-a,-f)}}function f(a){var b=a.widget,c=b.id;r[c]&&h.countCurrentTouches(a,b.touchNode)==b.touchesToScroll-1&&p(c)}function u(a,b,c){function d(){delete f.transitionHandler;
f.resetEffects();delete r[a]}var f=r[a],e=f.widget,g=f.node,h=f.scrollableX?Math.max(Math.min(0,b),-(f.scrollWidth-f.parentWidth)):b,n=f.scrollableY?Math.max(Math.min(0,c),-(f.scrollHeight-f.parentHeight)):c;delete f.timer;h!=b||n!=c?(f.transitionHandler=k.once(g,C,d),g.style[G+"Duration"]=e.bounceDuration+"ms",g.style[I]=O+h+"px,"+n+"px"+N,h!=b&&f.scrollableX&&(g=f.widget._scrollbarXNode,g.style[G+"Duration"]=e.bounceDuration+"ms",g.style[I]=b>h?O+"0,0"+N:O+(g.parentNode.offsetWidth-g.offsetWidth)+
"px,0"+N),n!=c&&f.scrollableY&&(g=f.widget._scrollbarYNode,g.style[G+"Duration"]=e.bounceDuration+"ms",g.style[I]=c>n?O+"0,0"+N:O+"0,"+(g.parentNode.offsetHeight-g.offsetHeight)+"px"+N)):d()}function p(a){var b=r[a],c=s[a],d,f;delete s[a];b.timer&&clearTimeout(b.timer);b.resetEffects=g;(d=y.exec(b.node.style[I]))?(f=+d[1],d=+d[2]):f=d=0;if(!b.velX&&!b.velY||(0<=f||f<=-(b.scrollWidth-b.parentWidth))&&(0<=d||d<=-(b.scrollHeight-b.parentHeight)))u(a,f,d);else{if(c&&(c.velX||c.velY)&&(0>=b.velX&&0>=c.velX||
0<=b.velX&&0<=c.velX)&&(0>=b.velY&&0>=c.velY||0<=b.velY&&0<=c.velY))b.velX=1.15*(b.velX+c.velX),b.velY=1.15*(b.velY+c.velY);b.lastX=f;b.lastY=d;b.calcFunc=function(){var b=r[a],c,d,f,e,g,h;if(b)if(c=b.widget,g=c.glideDecel(b.velX),h=c.glideDecel(b.velY),Math.abs(g)>=x||Math.abs(h)>=x){f=b.lastX+g;e=b.lastY+h;if(0<f||f<-(b.scrollWidth-b.parentWidth))for(d=6;d--;)g=c.glideDecel(g);if(0<e||e<-(b.scrollHeight-b.parentHeight))for(d=6;d--;)h=c.glideDecel(h);m(c,-f,-e);b.lastX=f;b.lastY=e;b.velX=g;b.velY=
h;b.timer=setTimeout(b.calcFunc,q)}else u(a,b.lastX,b.lastY)};b.timer=setTimeout(b.calcFunc,q)}}var n=50,q=30,r={},s={},x=1,w=8,y=/^translate(?:3d)?\((-?\d+)(?:\.\d*)?(?:px)?, (-?\d+)/,A=/^matrix\(1, 0, 0, 1, (-?\d+)(?:\.\d*)?(?:px)?, (-?\d+)/,B=l("css-transitions"),C=l("transitionend"),F=l("css-transforms");l=l("css-transforms3d");var K,G,I,O,N;l?(O="translate3d(",N=",0)"):F&&(O="translate(",N=")");if(!B||!O)return console.warn("CSS3 features unavailable for touch scroll effects."),function(){};
I=l||F;I=!0===I?"transform":I+"Transform";G=!0===B?"transition":B+"Transition";K=!0===F?"":"-"+F.toLowerCase()+"-";return e(null,{touchesToScroll:1,touchNode:null,scrollThreshold:10,bounceDuration:300,postCreate:function(){this._initTouch();this.inherited(arguments)},_initTouch:function(){function b(){g.cancelTouchScroll()}function d(a){return function(c){c.widget=g;c.cancelTouchScroll=b;a.call(this,c)}}var e=this.touchNode=this.touchNode||this.containerNode,g=this,h;!e||!e.parentNode?console.warn("TouchScroll requires a nested node upon which to operate."):
(h=e.parentNode,h.style.overflow="hidden",e.style[G+"Property"]=K+"transform",e.style[G+"TimingFunction"]="cubic-bezier(0.33, 0.66, 0.66, 1)",this._touchScrollListeners=[k(h,"touchstart",d(c)),k(h,"touchmove",d(a)),k(h,"touchend,touchcancel",d(f))])},destroy:function(){for(var a=this._touchScrollListeners.length;a--;)this._touchScrollListeners[a].remove();delete r[this.id];this.inherited(arguments)},scrollTo:function(a){var b=r[this.id],c=this.touchNode,d=c.parentNode;!a.preserveMomentum&&(b&&b.resetEffects)&&
b.resetEffects();a.x&&(a.x=Math.max(0,Math.min(a.x,c.scrollWidth-d.offsetWidth)));a.y&&(a.y=Math.max(0,Math.min(a.y,c.scrollHeight-d.offsetHeight)));m(this,a)},getScrollPosition:function(){var a=d(this);return a?{x:-a[1],y:-a[2]}:{x:0,y:0}},cancelTouchScroll:function(){var a=r[this.id];a&&(a.resetEffects?a.resetEffects():(a.timer&&clearTimeout(a.timer),b(a.node.parentNode,".touchscroll-fadeout")),delete r[this.id])},glideDecel:function(a){return 0.9*a}})})},"dgrid/util/touch":function(){define(["dojo/on",
"dojo/query"],function(e,k){function h(b,h,d,g){if(!(1<d.targetTouches.length)){var c=d.changedTouches[0],a=c.screenX,f=c.screenY;g&&d.preventDefault();var k=e(b,"touchend",function(b){var c=b.changedTouches[0];b.targetTouches.length||(Math.abs(c.screenX-a)<l.tapRadius&&Math.abs(c.screenY-f)<l.tapRadius&&(g&&b.preventDefault(),h.call(this,b)),k.remove())})}}var l={tapRadius:10,dbltapTime:250,selector:function(b,h,d){return function(g,c){var a=h.bubble;a?h=a:!1!==d&&(d=!0);return e(g,h,function(a){var e=
a.target;3==e.nodeType&&(e=e.parentNode);for(;!k.matches(e,b,g);)if(e==g||!d||!(e=e.parentNode))return;return c.call(e,a)})}},countCurrentTouches:function(b,e){if(!("touches"in b))return-1;var d,g,c;for(g=d=0;c=b.touches[d];++d)e.contains(c.target)&&++g;return g},tap:function(b,l){return e(b,"touchstart",function(d){h(b,l,d)})},dbltap:function(b,k){var d,g;return e(b,"touchstart",function(c){d?h(b,function(a){if(d){var b=a.changedTouches[0];Math.abs(b.screenX-d.screenX)<l.tapRadius&&Math.abs(b.screenY-
d.screenY)<l.tapRadius&&(g&&clearTimeout(g),d=g=null,k.call(this,a))}},c,!0):h(b,function(a){d=a.changedTouches[0];g=setTimeout(function(){d=g=null},l.dbltapTime)},c)})}};return l})},"dgrid/util/has-css3":function(){define(["dojo/has"],function(e){function k(e,b){var k=e.style,d;if(b in k)return!0;b=b.slice(0,1).toUpperCase()+b.slice(1);for(d=h.length;d--;)if(h[d]+b in k)return h[d];return!1}var h=["ms","O","Moz","Webkit"];e.add("css-transitions",function(e,b,h){return k(h,"transitionProperty")});
e.add("css-transforms",function(e,b,h){return k(h,"transform")});e.add("css-transforms3d",function(e,b,h){return k(h,"perspective")});e.add("transitionend",function(){var h=e("css-transitions");return!h?!1:!0===h?"transitionend":{ms:"MSTransitionEnd",O:"oTransitionEnd",Moz:"transitionend",Webkit:"webkitTransitionEnd"}[h]});return e})},"xstyle/css":function(){define(["require"],function(e){function k(e,l,b){var k=document.documentElement;e=k.insertBefore(document.createElement(e),k.firstChild);e.id=
l;l=(e.currentStyle||getComputedStyle(e,null))[b];k.removeChild(e);return l}return{load:function(h,l,b,m){function d(a){var c=k("x-parse",null,"content"),d=a&&(a.sheet||a.styleSheet);c&&"none"!=c&&"normal"!=c?l([eval(c)],function(c){a?c.process(a,b):(c.processAll(),b(d))}):b(d)}var g=l.toUrl(h),c;g.match(/!$/)&&(c={wait:!1},g=g.slice(0,-1));var a=l.cache&&l.cache["url:"+g];if(a)a.xCss&&(a=a.cssText),e(["./core/load-css"],function(b){d(b.insertCss(a))});else{if("none"==k("div",h.replace(/\//g,"-").replace(/\..*/,
"")+"-loaded","display"))return d();e(["./core/load-css"],function(a){a(g,d,c)})}}}})},"xstyle/has-class":function(){define(["dojo/has"],function(e){var k={};return function(){for(var h,l=arguments,b=0;b<l.length;b++)if(h=l[b],!k[h]){k[h]=!0;var m=h.match(/^(no-)?(.+?)((-[\d\.]+)(-[\d\.]+)?)?$/),d=e(m[2]),g=-m[4];if((0<g?g<=d&&(-m[5]||g)>=d:!!d)==!m[1])document.documentElement.className+=" has-"+h}}})},"dgrid/OnDemandList":function(){define("./List ./_StoreMixin dojo/_base/declare dojo/_base/lang dojo/_base/Deferred dojo/dom dojo/on ./util/misc put-selector/put".split(" "),
function(e,k,h,l,b,m,d,g,c){return h([e,k],{minRowsPerPage:25,maxRowsPerPage:250,maxEmptySpace:Infinity,bufferRows:10,farOffRemoval:2E3,queryRowsOverlap:0,pagingMethod:"debounce",pagingDelay:g.defaultDelay,keepScrollPosition:!1,rowHeight:22,postCreate:function(){this.inherited(arguments);var a=this;d(this.bodyNode,"scroll",g[this.pagingMethod](function(b){a._processScroll(b)},null,this.pagingDelay))},renderQuery:function(a,d){function e(a){c(y,"!");if(a)throw g._refreshDeferred&&(g._refreshDeferred.reject(a),
delete g._refreshDeferred),a;}var g=this,h=d&&d.container||this.contentNode,k={query:a,count:0,options:d},m,s=this.preload,x,w={node:c(h,"div.dgrid-preload",{rowIndex:0}),count:0,query:a,next:k,options:d};w.node.style.height="0";k.node=m=c(h,"div.dgrid-preload");k.previous=w;m.rowIndex=this.minRowsPerPage;s?((k.next=s.next)&&m.offsetTop>=s.node.offsetTop?k.previous=s:(k.next=s,k.previous=s.previous),k.previous.next=k,k.next.previous=k):this.preload=k;var y=c(m,"-div.dgrid-loading");c(y,"div.dgrid-below").innerHTML=
this.loadingMessage;d=l.mixin(this.get("queryOptions"),d,{start:0,count:this.minRowsPerPage},"level"in a?{queryLevel:a.level}:null);this._trackError(function(){return x=a(d)});if("undefined"===typeof x)e();else return b.when(g.renderArray(x,m,d),function(a){return b.when("undefined"===typeof x.total?x.length:x.total,function(b){var e=a.length,h=m.parentNode,n=g.noDataNode;c(y,"!");"queryLevel"in d||(g._total=b);0===b&&(n&&(c(n,"!"),delete g.noDataNode),g.noDataNode=n=c("div.dgrid-no-data"),h.insertBefore(n,
g._getFirstRowSibling(h)),n.innerHTML=g.noDataMessage);for(n=h=0;n<e;n++)h+=g._calcRowHeight(a[n]);e&&h&&(g.rowHeight=h/e);b-=e;k.count=b;m.rowIndex=e;b?m.style.height=Math.min(b*g.rowHeight,g.maxEmptySpace)+"px":(m.style.display="none",d.count++);g._previousScrollPosition&&(g.scrollTo(g._previousScrollPosition),delete g._previousScrollPosition);g._processScroll();g._refreshDeferred&&(g._refreshDeferred.resolve(x),delete g._refreshDeferred);return a},e)},e),x},refresh:function(a){var c=this,e=a&&
a.keepScrollPosition,g;"undefined"===typeof e&&(e=this.keepScrollPosition);e&&(this._previousScrollPosition=this.getScrollPosition());this.inherited(arguments);if(this.store)return e=this._refreshDeferred=new b,g=c.renderQuery(function(a){return c.store.query(c.query,a)}),"undefined"===typeof g&&e.reject(),e.then(function(a){setTimeout(function(){d.emit(c.domNode,"dgrid-refresh-complete",{bubbles:!0,cancelable:!1,grid:c,results:a})},0);delete c._refreshDeferred;return a},function(a){delete c._refreshDeferred;
throw a;})},resize:function(){this.inherited(arguments);this._processScroll()},_getFirstRowSibling:function(a){return a.lastChild},_calcRowHeight:function(a){var b=a.nextSibling;return b&&!/\bdgrid-preload\b/.test(b.className)?b.offsetTop-a.offsetTop:a.offsetHeight},lastScrollTop:0,_processScroll:function(a){function d(a,b,f,g){var l=h.farOffRemoval,k=a.node;if(b>2*l){for(var m,p=k[f],q=0,s=0,r=[];m=p;){var x=h._calcRowHeight(m);if(q+x+l>b||0>p.className.indexOf("dgrid-row")&&0>p.className.indexOf("dgrid-loading"))break;
p=m[f];q+=x;s+=m.count||1;h.removeRow(m,!0);r.push(m)}a.count+=s;g?(k.rowIndex-=s,e(a)):k.style.height=k.offsetHeight+q+"px";var w=c("div",r);setTimeout(function(){c(w,"!")},1)}}function e(a,b){a.node.style.height=Math.min(a.count*h.rowHeight,b?Infinity:h.maxEmptySpace)+"px"}function g(a,b){do a=b?a.next:a.previous;while(a&&!a.node.offsetWidth);return a}var h=this,k=h.bodyNode;a=a&&a.scrollTop||this.getScrollPosition().y;var k=k.offsetHeight+a,m,s,x=h.preload,w=h.lastScrollTop,y=h.bufferRows*h.rowHeight,
A=y-h.rowHeight,B,C,F,K=!0;for(h.lastScrollTop=a;x&&!x.node.offsetWidth;)x=x.previous;for(;x&&x!=m;){m=h.preload;h.preload=x;s=x.node;var G=s.offsetTop;if(k+1+A<G)x=g(x,K=!1);else if(a-1-A>G+s.offsetHeight)x=g(x,K=!0);else{var I=((s.rowIndex?a-y:k)-G)/h.rowHeight,G=(k-a+2*y)/h.rowHeight,O=Math.max(Math.min((a-w)*h.rowHeight,h.maxRowsPerPage/2),h.maxRowsPerPage/-2),G=G+Math.min(Math.abs(O),10);0==s.rowIndex&&(I-=G);I=Math.max(I,0);10>I&&(0<I&&G+I<h.maxRowsPerPage)&&(G+=Math.max(0,I),I=0);G=Math.min(Math.max(G,
h.minRowsPerPage),h.maxRowsPerPage,x.count);if(0==G)x=g(x,K);else{var G=Math.ceil(G),I=Math.min(Math.floor(I),x.count-G),N=l.mixin(h.get("queryOptions"),x.options);x.count-=G;var T=s,P,Q=h.queryRowsOverlap;if(O=(0<s.rowIndex||s.offsetTop>a)&&x){var L=x.previous;L&&(d(L,a-(L.node.offsetTop+L.node.offsetHeight),"nextSibling"),0<I&&L.node==s.previousSibling?(I=Math.min(x.count,I),x.previous.count+=I,e(x.previous,!0),s.rowIndex+=I,Q=0):G+=I,x.count-=I);N.start=s.rowIndex-Q;N.count=Math.min(G+Q,h.maxRowsPerPage);
s.rowIndex=N.start+N.count}else x.next&&(d(x.next,x.next.node.offsetTop-k,"previousSibling",!0),T=s.nextSibling,T==x.next.node?(x.next.count+=x.count-I,x.next.node.rowIndex=I+G,e(x.next),x.count=I,Q=0):P=!0),N.start=x.count,N.count=Math.min(G+Q,h.maxRowsPerPage);P&&(T&&T.offsetWidth)&&(P=T.offsetTop);e(x);"level"in x.query&&(N.queryLevel=x.query.level);if("queryLevel"in N||!(N.start>h._total||0>N.count)){s=c(T,"-div.dgrid-loading[style\x3dheight:"+G*h.rowHeight+"px]");c(s,"div.dgrid-"+(O?"below":
"above")).innerHTML=h.loadingMessage;s.count=G;var J=x.query(N);if(void 0===h._trackError(function(){return J})){c(s,"!");return}(function(a,d,f,g){F=b.when(h.renderArray(g,a,N),function(l){C=g;T=a.nextSibling;c(a,"!");if(f&&T&&T.offsetWidth){var k=h.getScrollPosition();h.scrollTo({x:k.x,y:k.y+T.offsetTop-f,preserveMomentum:!0})}b.when(g.total||g.length,function(a){"queryLevel"in N||(h._total=a);d&&(d.count=a-d.node.rowIndex,0===d.count&&N.count++,e(d))});h._processScroll();return l},function(b){c(a,
"!");throw b;})}).call(this,s,O,P,J);x=x.previous}}}}if(F&&(B=this._refreshDeferred))delete this._refreshDeferred,b.when(F,function(){B.resolve(C)})},removeRow:function(a,b){if(a){var c=a.previousSibling,d=a.nextSibling,c=c&&(null!=c.observerIndex?c.observerIndex:c.previousObserverIndex),e=d&&(null!=d.observerIndex?d.observerIndex:d.nextObserverIndex),d=a.observerIndex;a.observerIndex=void 0;b&&(a.nextObserverIndex=e,a.previousObserverIndex=c);if(this.cleanEmptyObservers&&(-1<d&&d!==c&&d!==e)&&(c=
this.observers,e=c[d])){if(!b)for(var g=e.rows,h=0;h<g.length;h++)if(g[h]!=a&&m.isDescendant(g[h],this.domNode))return this.inherited(arguments);e.cancel();this._numObservers--;c[d]=0}}this.inherited(arguments)}})})},"dgrid/_StoreMixin":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/Deferred dojo/on dojo/aspect put-selector/put".split(" "),function(e,k,h,l,b,m,d){function g(a){return a}function c(a){if("object"!==typeof a)a=Error(a);else if("cancel"===a.dojoType)return;
a.grid=this;b.emit(this.domNode,"dgrid-error",{grid:this,error:a,cancelable:!0,bubbles:!0})&&console.error(a)}return k(null,{store:null,query:null,queryOptions:null,getBeforePut:!0,noDataMessage:"",loadingMessage:"",constructor:function(){this.query={};this.queryOptions={};this.dirty={};this._updating={};this._columnsWithSet={};m.before(this,"configStructure",h.hitch(this,function(){this._columnsWithSet={}}))},postCreate:function(){this.inherited(arguments);this.store&&this._updateNotifyHandle(this.store)},
destroy:function(){this.inherited(arguments);this._notifyHandle&&this._notifyHandle.remove()},_configColumn:function(a){a.set&&(this._columnsWithSet[a.field]=a);this.inherited(arguments)},_updateNotifyHandle:function(a){this._notifyHandle&&(this._notifyHandle.remove(),delete this._notifyHandle);a&&"function"===typeof a.notify&&(this._notifyHandle=m.after(a,"notify",h.hitch(this,"_onNotify"),!0),a=this.get("sort"),(!a||!a.length)&&console.warn("Observable store detected, but no sort order specified. You may experience quirks when adding/updating items. These can be resolved by setting a sort order on the list or grid."))},
_setStore:function(a,b,c){this._updateNotifyHandle(a);this.store=a;this.dirty={};this.set("query",b,c)},_setQuery:function(a,b){var c=b&&b.sort;this.query=void 0!==a?a:this.query;this.queryOptions=b||this.queryOptions;c?this.set("sort",c):this.refresh()},setStore:function(a,b,c){e.deprecated("setStore(...)",'use set("store", ...) instead',"dgrid 0.4");this.set("store",a,b,c)},setQuery:function(a,b){e.deprecated("setQuery(...)",'use set("query", ...) instead',"dgrid 0.4");this.set("query",a,b)},_getQueryOptions:function(){var a=
h.delegate(this.queryOptions,{});if("function"===typeof this._sort||this._sort.length)a.sort=this._sort;return a},_getQuery:function(){var a=this.query;return"object"==typeof a&&null!=a?h.delegate(a,{}):a},_setSort:function(a,b){this.store&&(this._lastCollection=null);this.inherited(arguments)},_onNotify:function(a,b){this.inherited(arguments);a&&1>this._numObservers&&this.refresh({keepScrollPosition:!0})},refresh:function(){var a=this.inherited(arguments);this.store||(this.noDataNode=d(this.contentNode,
"div.dgrid-no-data"),this.noDataNode.innerHTML=this.noDataMessage);return a},renderArray:function(){var a=this,b=this.inherited(arguments);this.store||l.when(b,function(b){b.length&&a.noDataNode&&d(a.noDataNode,"!")});return b},insertRow:function(a,b,c,d,e){var g=this.store,l=this.dirty,g=g&&g.getIdentity(a),k;g in l&&!(g in this._updating)&&(k=l[g]);k&&(a=h.delegate(a,k));return this.inherited(arguments)},updateDirty:function(a,b,c){var d=this.dirty,e=d[a];e||(e=d[a]={});e[b]=c},setDirty:function(a,
b,c){e.deprecated("setDirty(...)","use updateDirty() instead","dgrid 0.4");this.updateDirty(a,b,c)},save:function(){function a(a,e){return function(g){var h=b._columnsWithSet,k=b._updating,n,m;if("function"===typeof g.set)g.set(e);else for(n in e)g[n]=e[n];for(n in h)m=h[n].set(g),void 0!==m&&(g[n]=m);k[a]=!0;return l.when(c.put(g),function(){delete d[a];delete k[a]})}}var b=this,c=this.store,d=this.dirty,e=new l,g=e.promise,h=function(a){var d;return b.getBeforePut||!(d=b.row(a).data)?function(){return c.get(a)}:
function(){return d}},k;for(k in d)var m=a(k,d[k]),g=g.then(h(k)).then(m);e.resolve();return g},revert:function(){this.dirty={};this.refresh()},_trackError:function(a){var b;"string"==typeof a&&(a=h.hitch(this,a));try{b=a()}catch(d){c.call(this,d)}return l.when(b,g,h.hitch(this,c))},newRow:function(){var a=this.inherited(arguments);this.noDataNode&&(d(this.noDataNode,"!"),delete this.noDataNode);return a},removeRow:function(a,b){var c={element:a};!b&&(this.noDataMessage&&this.up(c).element===a&&this.down(c).element===
a)&&(this.noDataNode=d(this.contentNode,"div.dgrid-no-data"),this.noDataNode.innerHTML=this.noDataMessage);return this.inherited(arguments)}})})},"dgrid/Selection":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/Deferred dojo/on dojo/has dojo/aspect ./List ./util/has-pointer ./util/touch put-selector/put dojo/query dojo/_base/sniff".split(" "),function(e,k,h,l,b,m,d,g,c,a){function f(a,b){for(var c=a.unselectable=b?"on":"",d=a.getElementsByTagName("*"),e=d.length;--e;)"INPUT"===
d[e].tagName||"TEXTAREA"===d[e].tagName||(d[e].unselectable=c)}function u(a,c){var d=a.bodyNode,e=c?"text":21>b("ff")?"-moz-none":"none";n&&"msUserSelect"!==n?d.style[n]=e:b("dom-selectstart")?!c&&!a._selectstartHandle?a._selectstartHandle=l(d,"selectstart",function(a){var b=a.target&&a.target.tagName;"INPUT"!==b&&"TEXTAREA"!==b&&a.preventDefault()}):c&&a._selectstartHandle&&(a._selectstartHandle.remove(),delete a._selectstartHandle):(f(d,!c),!c&&!a._unselectableHandle?a._unselectableHandle=m.after(a,
"renderRow",function(a){f(a,!0);return a}):c&&a._unselectableHandle&&(a._unselectableHandle.remove(),delete a._unselectableHandle))}b.add("dom-comparedocumentposition",function(a,b,c){return!!c.compareDocumentPosition});b.add("css-user-select",function(a,b,c){a=c.style;b=["Khtml","O","ms","Moz","Webkit"];c=b.length;var d="userSelect";do if("undefined"!==typeof a[d])return d;while(c--&&(d=b[c]+"UserSelect"));return!1});b.add("dom-selectstart","undefined"!==typeof document.onselectstart);var p=b("mac")?
"metaKey":"ctrlKey",n=b("css-user-select");d=g.pointer;g=g.MSPointer;var q=d?d+(g?"Down":"down"):"mousedown",r=d?d+(g?"Up":"up"):"mouseup";return k(null,{selectionDelegate:".dgrid-row",selectionEvents:q+","+r+",dgrid-cellfocusin",selectionTouchEvents:b("touch")?c.tap:null,deselectOnRefresh:!0,allowSelectAll:!1,selection:{},selectionMode:"extended",allowTextSelection:void 0,_selectionTargetType:"rows",create:function(){this.selection={};return this.inherited(arguments)},postCreate:function(){this.inherited(arguments);
this._initSelectionEvents();var a=this.selectionMode;this.selectionMode="";this._setSelectionMode(a)},destroy:function(){this.inherited(arguments);this._selectstartHandle&&this._selectstartHandle.remove();this._unselectableHandle&&this._unselectableHandle.remove();this._removeDeselectSignals&&this._removeDeselectSignals()},_setSelectionMode:function(a){a!=this.selectionMode&&(this.clearSelection(),this.selectionMode=a,this._selectionHandlerName="_"+a+"SelectionHandler",this._setAllowTextSelection(this.allowTextSelection))},
setSelectionMode:function(a){e.deprecated("setSelectionMode(...)",'use set("selectionMode", ...) instead',"dgrid 0.4");this.set("selectionMode",a)},_setAllowTextSelection:function(a){"undefined"!==typeof a?u(this,a):u(this,"none"===this.selectionMode);this.allowTextSelection=a},_handleSelect:function(a,b){if(this[this._selectionHandlerName]&&this.allowSelect(this.row(b))&&!("dgrid-cellfocusin"===a.type&&a.parentType===q||a.type===r&&b!=this._waitForMouseUp)){this._waitForMouseUp=null;this._selectionTriggerEvent=
a;if(!a.keyCode||!a.ctrlKey||32==a.keyCode)if(!a.shiftKey&&a.type===q&&this.isSelected(b))this._waitForMouseUp=b;else this[this._selectionHandlerName](a,b);this._selectionTriggerEvent=null}},_singleSelectionHandler:function(a,b){var c=a.keyCode?a.ctrlKey:a[p];this._lastSelected===b?this.select(b,null,!c||!this.isSelected(b)):(this.clearSelection(),this.select(b),this._lastSelected=b)},_multipleSelectionHandler:function(a,b){var c=this._lastSelected,d=a.keyCode?a.ctrlKey:a[p],e;a.shiftKey||(e=d?null:
!0,c=null);this.select(b,c,e);c||(this._lastSelected=b)},_extendedSelectionHandler:function(a,b){(2===a.button?!this.isSelected(b):!(a.keyCode?a.ctrlKey:a[p]))&&this.clearSelection(null,!0);this._multipleSelectionHandler(a,b)},_toggleSelectionHandler:function(a,b){this.select(b,null,null)},_initSelectionEvents:function(){var a=this,d=this.contentNode,e=this.selectionDelegate;this._selectionEventQueues={deselect:[],select:[]};b("touch")&&!b("pointer")&&this.selectionTouchEvents?(l(d,c.selector(e,this.selectionTouchEvents),
function(b){a._handleSelect(b,this);a._ignoreMouseSelect=this}),l(d,l.selector(e,this.selectionEvents),function(b){a._ignoreMouseSelect!==this?a._handleSelect(b,this):b.type===r&&(a._ignoreMouseSelect=null)})):l(d,l.selector(e,this.selectionEvents),function(b){a._handleSelect(b,this)});this.addKeyHandler&&this.addKeyHandler(32,function(b){a._handleSelect(b,b.target)});if(this.allowSelectAll)this.on("keydown",function(b){b[p]&&(65==b.keyCode&&!/\bdgrid-input\b/.test(b.target.className))&&(b.preventDefault(),
a[a.allSelected?"clearSelection":"selectAll"]())});this._setStore&&m.after(this,"_setStore",function(){a._updateDeselectionAspect()});this._updateDeselectionAspect()},_updateDeselectionAspect:function(){function a(c,d,e){c=d||c&&c[b.idProperty||"id"];if(null!=c&&(d=(c=b.row(c))&&b.selection[c.id]))b[e](c,null,d)}var b=this,c=this.store,d,e;this._removeDeselectSignals&&this._removeDeselectSignals();c&&c.notify?(d=m.before(c,"notify",function(b,c){b||a(b,c,"deselect")}),e=m.after(c,"notify",function(b,
c){a(b,c,"select")},!0),this._removeDeselectSignals=function(){d.remove();e.remove()}):(d=m.before(this,"removeRow",function(a,b){var c;b||(c=this.row(a))&&c.id in this.selection&&this.deselect(c)}),this._removeDeselectSignals=function(){d.remove()})},allowSelect:function(a){return!0},_fireSelectionEvent:function(a){var b=this._selectionEventQueues[a],c=this._selectionTriggerEvent,d;d={bubbles:!0,grid:this};c&&(d.parentType=c.type);d[this._selectionTargetType]=b;l.emit(this.contentNode,"dgrid-"+a,
d);this._selectionEventQueues[a]=[]},_fireSelectionEvents:function(){var a=this._selectionEventQueues,b;for(b in a)a[b].length&&this._fireSelectionEvent(b)},_select:function(b,c,d){var e,f,g;"undefined"===typeof d&&(d=!0);b.element||(b=this.row(b));if(!1===d||this.allowSelect(b))if(e=this.selection,f=!!e[b.id],null===d&&(d=!f),g=b.element,!d&&!this.allSelected?delete this.selection[b.id]:e[b.id]=d,g&&(d?a(g,".dgrid-selected"+(this.addUiClasses?".ui-state-active":"")):a(g,"!dgrid-selected!ui-state-active")),
d!==f&&g&&this._selectionEventQueues[(d?"":"de")+"select"].push(b),c)if(c.element||(c=this.row(c)),c){if(c=c.element){e=this._determineSelectionDirection(g,c);e||(c=document.getElementById(c.id),e=this._determineSelectionDirection(g,c));for(;b.element!=c&&(b=this[e](b));)this._select(b,null,d)}}else this._lastSelected=g,console.warn("The selection range has been reset because the beginning of the selection is no longer in the DOM. If you are using OnDemandList, you may wish to increase farOffRemoval to avoid this, but note that keeping more nodes in the DOM may impact performance.")},
_determineSelectionDirection:b("dom-comparedocumentposition")?function(a,b){var c=b.compareDocumentPosition(a);return c&1?!1:2===c?"down":"up"}:function(a,b){return 1>b.sourceIndex?!1:b.sourceIndex>a.sourceIndex?"down":"up"},select:function(a,b,c){this._select(a,b,c);this._fireSelectionEvents()},deselect:function(a,b){this.select(a,b,!1)},clearSelection:function(a,b){this.allSelected=!1;for(var c in this.selection)a!==c&&this._select(c,null,!1);b||(this._lastSelected=null);this._fireSelectionEvents()},
selectAll:function(){this.allSelected=!0;this.selection={};for(var a in this._rowIdToObject){var b=this.row(this._rowIdToObject[a]);this._select(b.id,null,!0)}this._fireSelectionEvents()},isSelected:function(a){if("undefined"===typeof a||null===a)return!1;a.element||(a=this.row(a));return a.id in this.selection?!!this.selection[a.id]:this.allSelected&&(!a.data||this.allowSelect(a))},refresh:function(){this.deselectOnRefresh&&this.clearSelection();this._lastSelected=null;return this.inherited(arguments)},
renderArray:function(){var a=this,b=this.inherited(arguments);h.when(b,function(b){var c=a.selection,d,e,f;for(d=0;d<b.length;d++)e=a.row(b[d]),(f=e.id in c?c[e.id]:a.allSelected)&&a._select(e,null,f);a._fireSelectionEvents()});return b}})})},"dgrid/util/has-pointer":function(){define(["dojo/has"],function(e){e.add("pointer",function(e){return"PointerEvent"in e?"pointer":"MSPointerEvent"in e?"MSPointer":!1});var k=(e=e("pointer"))&&"MS"===e.slice(0,2),h={};h.pointer=e;h.MSPointer=k;return h})},"dgrid/Keyboard":function(){define("dojo/_base/declare dojo/aspect dojo/on dojo/_base/lang dojo/has put-selector/put ./util/has-pointer ./util/misc dojo/_base/Deferred dojo/_base/sniff".split(" "),
function(e,k,h,l,b,m,d,g,c){function a(a){a.preventDefault()}var f={checkbox:1,radio:1,button:1},u=/\bdgrid-cell\b/,p=/\bdgrid-row\b/,n=d.pointer;d=d.MSPointer;var q=n?n+(d?"Down":"down"):"mousedown",r=e(null,{pageSkip:10,tabIndex:0,keyMap:null,headerKeyMap:null,postMixInProperties:function(){this.inherited(arguments);this.keyMap||(this.keyMap=l.mixin({},r.defaultKeyMap));this.headerKeyMap||(this.headerKeyMap=l.mixin({},r.defaultHeaderKeyMap))},postCreate:function(){function a(b){var c=b.target;return c.type&&
(!f[c.type]||32==b.keyCode)}function b(e){function f(){d._focusedHeaderNode&&(d._focusedHeaderNode.tabIndex=-1);if(d.showHeader){if(l)for(var a=0,b,c=d.headerNode.getElementsByTagName("th");b=c[a];++a){if(n.test(b.className)){d._focusedHeaderNode=r=b;break}}else d._focusedHeaderNode=r=d.headerNode;r&&(r.tabIndex=d.tabIndex)}}var l=d.cellNavigation,n=l?u:p,m=e===d.headerNode,r=e;m?(f(),k.after(d,"renderHeader",f,!0)):k.after(d,"renderArray",function(a){return c.when(a,function(a){var b=d._focusedNode||
r;if(n.test(b.className)&&g.contains(e,b))return a;for(var c=0,f=e.getElementsByTagName("*"),h;h=f[c];++c)if(n.test(h.className)){b=d._focusedNode=h;break}b.tabIndex=d.tabIndex;return a})});d._listeners.push(h(e,q,function(b){a(b)||d._focusOnNode(b.target,m,b)}));d._listeners.push(h(e,"keydown",function(b){if(!b.metaKey&&!b.altKey){var c=d[m?"headerKeyMap":"keyMap"][b.keyCode];c&&!a(b)&&c.call(d,b)}}))}this.inherited(arguments);var d=this;this.tabableHeader&&(b(this.headerNode),h(this.headerNode,
"dgrid-cellfocusin",function(){d.scrollTo({x:this.scrollLeft})}));b(this.contentNode)},removeRow:function(a){if(!this._focusedNode)return this.inherited(arguments);var b=this,c=document.activeElement===this._focusedNode,d=this[this.cellNavigation?"cell":"row"](this._focusedNode),e=d.row||d,f;a=a.element||a;if(a===e.element){f=this.down(e,!0);if(!f||f.element===a)f=this.up(e,!0);this._removedFocus={active:c,rowId:e.id,columnId:d.column&&d.column.id,siblingId:!f||f.element===a?void 0:f.id};setTimeout(function(){b._removedFocus&&
b._restoreFocus(e.id)},0);this._focusedNode=null}this.inherited(arguments)},insertRow:function(a){var b=this.inherited(arguments);this._removedFocus&&!this._removedFocus.wait&&this._restoreFocus(b);return b},_restoreFocus:function(a){var b=this._removedFocus,c;if((a=(a=a&&this.row(a))&&a.element&&a.id===b.rowId?a:"undefined"!==typeof b.siblingId&&this.row(b.siblingId))&&a.element){if(!a.element.parentNode.parentNode){b.wait=!0;return}"undefined"!==typeof b.columnId&&(c=this.cell(a,b.columnId))&&c.element&&
(a=c);b.active&&0!==a.element.offsetHeight?this._focusOnNode(a,!1,null):(m(a.element,".dgrid-focus"),a.element.tabIndex=this.tabIndex,this._focusedNode=a.element)}delete this._removedFocus},addKeyHandler:function(a,b,c){return k.after(this[c?"headerKeyMap":"keyMap"],a,b,!0)},_focusOnNode:function(a,c,d){var e="_focused"+(c?"Header":"")+"Node";c=this[e];var f=this.cellNavigation?"cell":"row",g=this[f](a),k,n,q,r,s;if(a=g&&g.element){if(this.cellNavigation){k=a.getElementsByTagName("input");s=0;for(q=
k.length;s<q;s++)if(n=k[s],(-1!=n.tabIndex||"_dgridLastValue"in n)&&!n.disabled){8>b("ie")&&(n.style.position="relative");n.focus();8>b("ie")&&(n.style.position="");r=!0;break}}null!==d&&(d=l.mixin({grid:this},d),d.type&&(d.parentType=d.type),d.bubbles||(d.bubbles=!0));c&&(m(c,"!dgrid-focus[!tabIndex]"),8>b("ie")&&(c.style.position=""),d&&(d[f]=this[f](c),h.emit(c,"dgrid-cellfocusout",d)));c=this[e]=a;d&&(d[f]=g);e=this.cellNavigation?u:p;!r&&e.test(a.className)&&(8>b("ie")&&(a.style.position="relative"),
a.tabIndex=this.tabIndex,a.focus());m(a,".dgrid-focus");d&&h.emit(c,"dgrid-cellfocusin",d)}},focusHeader:function(a){this._focusOnNode(a||this._focusedHeaderNode,!0)},focus:function(a){(a=a||this._focusedNode)?this._focusOnNode(a,!1):this.contentNode.focus()}}),s=r.moveFocusVertical=function(a,b){var c=this.cellNavigation,d=this[c?"cell":"row"](a),d=c&&d.column.id,e=this.down(this._focusedNode,b,!0);c&&(e=this.cell(e,d));this._focusOnNode(e,!1,a);a.preventDefault()};e=r.moveFocusUp=function(a){s.call(this,
a,-1)};n=r.moveFocusDown=function(a){s.call(this,a,1)};d=r.moveFocusPageUp=function(a){s.call(this,a,-this.pageSkip)};var x=r.moveFocusPageDown=function(a){s.call(this,a,this.pageSkip)},w=r.moveFocusHorizontal=function(a,b){if(this.cellNavigation){var c=!this.row(a);this._focusOnNode(this.right(this["_focused"+(c?"Header":"")+"Node"],b),c,a);a.preventDefault()}},y=r.moveFocusLeft=function(a){w.call(this,a,-1)},A=r.moveFocusRight=function(a){w.call(this,a,1)},B=r.moveHeaderFocusEnd=function(a,b){var c;
this.cellNavigation&&(c=this.headerNode.getElementsByTagName("th"),this._focusOnNode(c[b?0:c.length-1],!0,a));a.preventDefault()},C=r.moveHeaderFocusHome=function(a){B.call(this,a,!0)},F=r.moveFocusEnd=function(a,d){var e=this,f=this.cellNavigation,g=this.contentNode,h=g.scrollTop+(d?0:g.scrollHeight),g=g[d?"firstChild":"lastChild"],n=-1<g.className.indexOf("dgrid-preload"),m=n?g[(d?"next":"previous")+"Sibling"]:g,p=m.offsetTop+(d?0:m.offsetHeight),q;if(n){for(;m&&0>m.className.indexOf("dgrid-row");)m=
m[(d?"next":"previous")+"Sibling"];if(!m)return}!n||1>g.offsetHeight?(f&&(m=this.cell(m,this.cell(a).column.id)),this._focusOnNode(m,!1,a)):(b("dom-addeventlistener")||(a=l.mixin({},a)),q=k.after(this,"renderArray",function(b){q.remove();return c.when(b,function(b){b=b[d?0:b.length-1];f&&(b=e.cell(b,e.cell(a).column.id));e._focusOnNode(b,!1,a)})}));h===p&&a.preventDefault()},K=r.moveFocusHome=function(a){F.call(this,a,!0)};r.defaultKeyMap={32:a,33:d,34:x,35:F,36:K,37:y,38:e,39:A,40:n};r.defaultHeaderKeyMap=
{32:a,35:B,36:C,37:y,39:A};return r})},"dgrid/extensions/ColumnResizer":function(){define("dojo/_base/declare dojo/on dojo/query dojo/_base/lang dojo/dom dojo/dom-construct dojo/dom-geometry dojo/has ../util/misc put-selector/put dojo/_base/html xstyle/css!../css/extensions/ColumnResizer.css".split(" "),function(e,k,h,l,b,m,d,g,c,a){function f(a){for(var b=a.length,c=b,d=a[0].length,e=Array(b);b--;)e[b]=Array(d);for(var f={},b=0;b<c;b++)for(var g=e[b],h=a[b],k=0,n=0;k<d;k++){var l=h[n],m;if("undefined"==
typeof g[k]){g[k]=l.id;if(l.rowSpan&&1<l.rowSpan){m=e;for(var p=l.rowSpan,q=b,r=k,u=l.id,L=1;L<p;L++)m[q+L][r]=u}if(0<b&&l.colSpan&&1<l.colSpan)for(m=1;m<l.colSpan;m++)if(g[++k]=l.id,l.rowSpan&&1<l.rowSpan)for(var p=e,q=l.rowSpan,r=b,u=k,L=l.id,J=1;J<q;J++)p[r+J][u]=L;f[l.id]=a[0][k].id;n++}}return f}function u(a,b,d,e,f){if(!(0>=d)){var g=a.columns[b],h;if(g&&(h={grid:a,columnId:b,width:d,bubbles:!0,cancelable:!0},e&&(h.parentType=e),!a._resizedColumns||k.emit(a.headerNode,"dgrid-columnresize",h)))return"auto"===
d?delete g.width:(g.width=d,d+="px"),(e=a._columnSizes[b])?e.set("width",d):e=c.addCssRule("#"+c.escapeCssIdentifier(a.domNode.id)+" .dgrid-column-"+c.escapeCssIdentifier(b,"-"),"width: "+d+";"),a._columnSizes[b]=e,!1!==f&&a.resize(),!0}}var p,n,q=0,r={create:function(){p=a("div.dgrid-column-resizer");n=m.create("div",{className:"dgrid-resize-guard"})},destroy:function(){a(p,"!");m.destroy(n);p=n=null},show:function(b){var c=d.position(b.domNode,!0);p.style.top=c.y+"px";p.style.height=c.h+"px";a(document.body,
p);b.domNode.appendChild(n)},move:function(a){p.style.left=a+"px"},hide:function(){p.parentNode.removeChild(p);n.parentNode.removeChild(n)}};return e(null,{resizeNode:null,minWidth:40,adjustLastColumn:!0,_resizedColumns:!1,buildRendering:function(){this.inherited(arguments);q++||r.create()},destroy:function(){this.inherited(arguments);for(var a in this._columnSizes)this._columnSizes[a].remove();--q||r.destroy()},resizeColumnWidth:function(a,b){return u(this,a,b)},configStructure:function(){var a=
this._oldColumnSizes=l.mixin({},this._columnSizes),b;this._resizedColumns=!1;this._columnSizes={};this.inherited(arguments);for(b in a)b in this._columnSizes||a[b].remove();delete this._oldColumnSizes},_configColumn:function(a){this.inherited(arguments);var b=a.id,d;"width"in a&&((d=this._oldColumnSizes[b])?d.set("width",a.width+"px"):d=c.addCssRule("#"+c.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-"+c.escapeCssIdentifier(b,"-"),"width: "+a.width+"px;"),this._columnSizes[b]=d)},renderHeader:function(){this.inherited(arguments);
var b=this,d;if(this.columnSets&&this.columnSets.length)for(var e=this.columnSets.length;e--;)d=l.mixin(d||{},f(this.columnSets[e]));else this.subRows&&1<this.subRows.length&&(d=f(this.subRows));for(var e=h(".dgrid-cell",b.headerNode),n=e.length;n--;){var m=e[n],p=m.columnId,q=b.columns[p],r=m.childNodes;if(q&&!1!==q.resizable){q=a("div.dgrid-resize-header-container");for(m.contents=q;0<r.length;)a(q,r[0]);m=a(m,q,"div.dgrid-resize-handle.resizeNode-"+c.escapeCssIdentifier(p,"-"));m.columnId=d&&d[p]||
p}}b.mouseMoveListen||(k(b.headerNode,".dgrid-resize-handle:mousedown"+(g("touch")?",.dgrid-resize-handle:touchstart":""),function(a){b._resizeMouseDown(a,this);b.mouseMoveListen.resume();b.mouseUpListen.resume()}),b._listeners.push(b.mouseMoveListen=k.pausable(document,"mousemove"+(g("touch")?",touchmove":""),c.throttleDelayed(function(a){b._updateResizerPosition(a)}))),b._listeners.push(b.mouseUpListen=k.pausable(document,"mouseup"+(g("touch")?",touchend":""),function(a){b._resizeMouseUp(a);b.mouseMoveListen.pause();
b.mouseUpListen.pause()})),b.mouseMoveListen.pause(),b.mouseUpListen.pause())},_resizeMouseDown:function(a,d){a.preventDefault();b.setSelectable(this.domNode,!1);this._startX=this._getResizeMouseLocation(a);this._targetCell=h(".dgrid-column-"+c.escapeCssIdentifier(d.columnId,"-"),this.headerNode)[0];this._updateResizerPosition(a);r.show(this)},_resizeMouseUp:function(a){var d=this._columnSizes,e,f,g;this.adjustLastColumn&&(g=this.headerNode.clientWidth-1);this._resizedColumns||(e=h(".dgrid-cell",
this.headerNode),this.columnSets&&this.columnSets.length?e=e.filter(function(a){return"0"==a.columnId.split("-")[0]&&!(a.columnId in d)}):this.subRows&&1<this.subRows.length&&(e=e.filter(function(a){return"0"==a.columnId.charAt(0)&&!(a.columnId in d)})),f=e.map(function(a){return a.offsetWidth}),e.forEach(function(a,b){u(this,a.columnId,f[b],null,!1)},this),this._resizedColumns=!0);b.setSelectable(this.domNode,!0);e=this._targetCell;var k=this._getResizeMouseLocation(a)-this._startX,l=e.offsetWidth+
k,n=this._getResizedColumnWidths(),m=n.totalWidth,n=n.lastColId,p=h(".dgrid-column-"+c.escapeCssIdentifier(n,"-"),this.headerNode)[0].offsetWidth;l<this.minWidth&&(l=this.minWidth);u(this,e.columnId,l,a.type)&&e.columnId!=n&&this.adjustLastColumn&&(m+k<g?u(this,n,"auto",a.type):p-k<=this.minWidth&&u(this,n,this.minWidth,a.type));r.hide();delete this._startX;delete this._targetCell},_updateResizerPosition:function(a){if(this._targetCell){a=this._getResizeMouseLocation(a);var b=this._targetCell.offsetWidth,
c=a;b+(a-this._startX)<this.minWidth&&(c=this._startX-(b-this.minWidth));r.move(c)}},_getResizeMouseLocation:function(a){var b=0;a.pageX?b=a.pageX:a.clientX&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft);return b},_getResizedColumnWidths:function(){var a=0,b=h((this.columnSets?".dgrid-column-set-cell ":"")+"tr:first-child .dgrid-cell",this.headerNode),c=b.length;if(!c)return{};for(var d=b[c-1].columnId;c--;)a+=b[c].offsetWidth;return{totalWidth:a,lastColId:d}}})})},"webview/widgets/ExplorerBar":function(){define("dojo/_base/declare dojo/_base/array dojo/dom-class dojo/dom-geometry dojo/dom-style dijit/layout/BorderContainer dijit/layout/ContentPane dijit/form/Button dijit/form/DropDownButton dijit/Menu dijit/MenuItem ../search/InlineSearch ./SystemButton".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p){var n=e([f],{onClick:function(){var a=this.app;a.open(this.diagram,{tab:"reuse"}).then(function(){a.modelViewer.focus()})}}),q=e([d],{_resizing:!1,resize:function(){this._resizing||(this._resizing=!0,this.inherited(arguments),this.explorerBar.update(),this._resizing=!1)},postCreate:function(){this.inherited(arguments);this.childrenMarginWidths=0},addChild:function(a){this.inherited(arguments);a._computedStyle||(a._computedStyle=b.getComputedStyle(a));this.childrenMarginWidths+=
l.getMarginBox(a.domNode,a._computedStyle).w},removeChild:function(a){this.childrenMarginWidths-=l.getMarginBox(a.domNode,a._computedStyle).w;this.inherited(arguments)}});return e([m],{postMixInProperties:function(){this.gutters=!1;this.inherited(arguments)},postCreate:function(){var b=this,d=new a({"class":"wvExplorerBarOverflowMenu"}),e=new c({region:"left",dropDown:d,baseClass:"wvExplorerBarOverflowButton","class":"dijitDropDownButton"}),f=new q({region:"center","class":"wvExplorerBarBreadCrumbs",
explorerBar:this}),k=new a({style:"display: none;","class":"wvExplorerBarExpandMenu"}),l=new c({region:"right",layoutPriority:3,_aroundNode:this.domNode,dropDown:k,"class":"wvExplorerBarExpandButton"}),n=new u({region:"right",layoutPriority:2,splitter:!0,minSize:150,maxSize:350,finder:this.app.finder,style:"width: 200px"}),m=new g({region:"right",layoutPriority:1,splitter:!0,"class":"wvExplorerBarToggleButton",iconClass:"Search_Search_16",cssStateNodes:{iconNode:"Search_Search_16"},onClick:function(){b.set("showInlineSearch",
!b.get("showInlineSearch"));b.get("showInlineSearch")?this.set("iconClass","Search_Collapse_16"):this.set("iconClass","Search_Search_16")}});h.add(this.domNode,"wvExplorerBar");this.overflowMenu=d;this.overflowButton=e;this.breadCrumbsPane=f;this.expandMenu=k;this.expandButton=l;this.inlineSearch=n;this.searchToggleButton=m;this._historyHids=[];this.addChild(e);this.addChild(f);this.addChild(l);this.addChild(n);this.addChild(m);this.own(d,e,f,k,l,n,m);this.inherited(arguments)},startup:function(){this.inherited(arguments);
var a=this.searchToggleButton,c=a._splitterWidget;this.set("showInlineSearch",!1);c._detachTemplateNodes();h.add(c.domNode,"wvExplorerBarToggleButtonSplitter");this._computedStyle=b.getComputedStyle(this.domNode);this._inlineSearchComputedStyle=b.getComputedStyle(this.inlineSearch.domNode);this._searchToggleButtonMarginBox=l.getMarginBox(a.domNode);this._breadcrumbsComputedStyle=b.getComputedStyle(this.breadCrumbsPane.domNode);this._overflowButtonComputedStyle=b.getComputedStyle(this.overflowButton.domNode)},
resize:function(a){var b=this.domNode,c=this._computedStyle,d=this.inlineSearch,e=d.domNode,f;f=this._inlineSearchComputedStyle;this.inherited(arguments);this.showInlineSearch&&(a&&l.setMarginBox(b,a,c),b=l.getContentBox(b,c),b=Math.floor(b.w/2-this._searchToggleButtonMarginBox.w),c=d.minSize,f=l.getMarginBox(e,f),e=f.w,e>b?f.w=b:e<c&&(f.w=c),d.set("maxSize",b),d.resize(f));this.update()},update:function(a){a&&(this.diagram!==a&&(this.diagram=a,this._updateBreadCrumbs(a),this._resetOverflowButton()),
a.visited&&this._addDiagramToExpandButton(a));this._updateOverflowButton()},showInlineSearch:!0,_setShowInlineSearchAttr:function(a){var c,d;this._started&&a!==this.showInlineSearch&&(c=this.inlineSearch,d=this.searchToggleButton._splitterWidget.domNode,a?(this.addChild(c),b.set(d,"display","none")):(this.removeChild(c),b.set(d,"display","inline-block")),this.showInlineSearch=a,this.resize(),c.textBox.focus())},_updateOverflowButton:function(){var a=this.app,b=this.overflowButton,c=this.overflowMenu,
d,e=this.breadCrumbsPane,f,g;d=e.getChildren();for(f=d.shift();f&&!this._doesSystemButtonsFitInBreadCrumbsPane(!0);)g=f.diagram,c.addChild(new n({iconClass:g.icon,label:g.label,app:a,diagram:g,button:f})),e.removeChild(f),f=d.shift();a=c.getChildren();for(d=a.pop();d;)f=d.button,e.addChild(f,0),this._doesSystemButtonsFitInBreadCrumbsPane(!1)?(c.removeChild(d),d.destroy(),d=a.pop()):(e.removeChild(f),d=null);c.hasChildren()?this.addChild(b):this.removeChild(b)},_updateBreadCrumbs:function(a){var b=
this.app,c=this.breadCrumbsPane,d=c.getChildren(),e,f=d.length,g;for(g=0;g<f;g+=1)e=d[g],c.removeChild(e),e.destroy();for(;a;)e=new p({app:b,diagram:a}),this.breadCrumbsPane.addChild(e,0),a=a.getParent()},_addDiagramToExpandButton:function(a){var b=a.hid,c=this._historyHids;-1===k.indexOf(c,b)&&(c.push(b),c.sort(),this.expandMenu.addChild(new n({iconClass:a.icon,label:a.fullname,app:this.app,diagram:a}),k.indexOf(this._historyHids,b)))},_resetOverflowButton:function(){var a=this.overflowMenu,b=a.getChildren(),
c,d=b.length,e;for(e=0;e<d;e+=1)c=b[e],a.removeChild(c),c.destroy()},_doesSystemButtonsFitInBreadCrumbsPane:function(a){var b=l.getContentBox(this.breadCrumbsPane.domNode,this._breadcrumbsComputedStyle).w,c=l.getMarginBox(this.overflowButton.domNode,this._overflowButtonComputedStyle).w;a=a||1<this.overflowMenu.getChildren().length?b:b+c;return this.breadCrumbsPane.childrenMarginWidths<a}})})},"dijit/form/DropDownButton":function(){define("dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/query ../registry ../popup ./Button ../_Container ../_HasDropDown dojo/text!./templates/DropDownButton.html ../a11yclick".split(" "),
function(e,k,h,l,b,m,d,g,c,a){return e("dijit.form.DropDownButton",[d,g,c],{baseClass:"dijitDropDownButton",templateString:a,_fillContent:function(){var a=this.srcNodeRef,b=this.containerNode;if(a&&b)for(;a.hasChildNodes();){var c=a.firstChild;c.hasAttribute&&(c.hasAttribute("data-dojo-type")||c.hasAttribute("dojoType")||c.hasAttribute("data-"+k._scopeName+"-type")||c.hasAttribute(k._scopeName+"Type"))?(this.dropDownContainer=this.ownerDocument.createElement("div"),this.dropDownContainer.appendChild(c)):
b.appendChild(c)}},startup:function(){this._started||(!this.dropDown&&this.dropDownContainer&&(this.dropDown=b.byNode(this.dropDownContainer.firstChild),delete this.dropDownContainer),this.dropDown&&m.hide(this.dropDown),this.inherited(arguments))},isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(a){var b=this.dropDown,c=b.on("load",h.hitch(this,function(){c.remove();a()}));b.refresh()},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}})})},
"webview/search/InlineSearch":function(){define("dojo/_base/declare dojo/on dojo/dom-geometry dojo/dom-style dijit/form/Form dijit/form/TextBox dijit/form/DropDownButton dijit/_WidgetBase dijit/_TemplatedMixin dijit/TooltipDialog dijit/popup ./SearchFieldsPanel dojo/i18n!../resources/slreportgen_webview/nls/modelviewer dojo/text!./templates/InlineSearch.html".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n){return e([g,c],{templateString:n,postCreate:function(){this._createTextBox();this._createFieldsButton()},
startup:function(){this.inherited(arguments);this.form.startup();this.textBox.startup();this._computedStyle=l.getComputedStyle(this.domNode);this._formNodeComputedStyle=l.getComputedStyle(this.form.domNode);this._textNodeComputedStyle=l.getComputedStyle(this.textBox.domNode);this._fieldsButtonWidth=h.getMarginSize(this.fieldsButton.domNode).w},resize:function(a){var b=this.domNode,c=this._computedStyle;this._started&&(a&&h.setMarginBox(b,a,c),a=h.getMarginBox(b,c),a={l:0,t:0,w:a.w-this._fieldsButtonWidth,
h:a.h},h.setMarginBox(this.form.domNode,a,this._formNodeComputedStyle),h.setMarginBox(this.textBox.domNode,a,this._textNodeComputedStyle))},doSearch:function(){var a=this.textBox.get("value");a&&0<a.length&&this.finder.search(a)},_createTextBox:function(){var a=this,c=new m({placeHolder:p.searchCurrentAndBelow},this.textBoxNode),d=new b({onSubmit:function(){return!1}},this.formNode);this.form=d;this.textBox=c;this.own(d,c,k(d.domNode,"submit",function(){a.doSearch()}))},_createFieldsButton:function(){var b=
new u({finder:this.finder}),c=new a({"class":"wvInlineSearch",content:b,onMouseLeave:function(){f.close(c)}});this.fieldsButton=b=new d({iconClass:"Search_Adv_Search_16",dropDown:c},this.fieldsButtonNode);this.fieldsToolTipDialog=c;this.own(b,c)}})})},"dijit/form/Form":function(){define("dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/sniff ../_Widget ../_TemplatedMixin ./_FormMixin ../layout/_ContentPaneResizeMixin".split(" "),function(e,k,h,l,b,m,d,g){return e("dijit.form.Form",[b,m,d,g],
{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"\x3cform data-dojo-attach-point\x3d'containerNode' data-dojo-attach-event\x3d'onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}\x3e\x3c/form\x3e",postMixInProperties:function(){this.nameAttrSetting=this.name?"name\x3d'"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(b){k.set(this.domNode,"encType",b);l("ie")&&(this.domNode.encoding=
b);this._set("encType",b)},reset:function(b){var a={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:b?b.target:this.domNode,target:b?b.target:this.domNode};!1!==this.onReset(a)&&a.returnValue&&this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(b){this.reset(b);b.stopPropagation();b.preventDefault();return!1},_onSubmit:function(b){var a=this.constructor.prototype;if(this.execute!=a.execute||this.onExecute!=a.onExecute)h.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.",
"","2.0"),this.onExecute(),this.execute(this.getValues());!1===this.onSubmit(b)&&(b.stopPropagation(),b.preventDefault())},onSubmit:function(){return this.isValid()},submit:function(){!1!==this.onSubmit()&&this.containerNode.submit()}})})},"dijit/form/_FormMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/on dojo/window".split(" "),function(e,k,h,l,b,m){return k("dijit.form._FormMixin",null,{state:"",_getDescendantFormWidgets:function(b){var g=[];
e.forEach(b||this.getChildren(),function(b){"value"in b?g.push(b):g=g.concat(this._getDescendantFormWidgets(b.getChildren()))},this);return g},reset:function(){e.forEach(this._getDescendantFormWidgets(),function(b){b.reset&&b.reset()})},validate:function(){var b=!1;return e.every(e.map(this._getDescendantFormWidgets(),function(e){e._hasBeenBlurred=!0;var c=e.disabled||!e.validate||e.validate();!c&&!b&&(m.scrollIntoView(e.containerNode||e.domNode),e.focus(),b=!0);return c}),function(b){return b})},
setValues:function(b){h.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",b)},_setValueAttr:function(b){var g={};e.forEach(this._getDescendantFormWidgets(),function(a){a.name&&(g[a.name]||(g[a.name]=[])).push(a)});for(var c in g)if(g.hasOwnProperty(c)){var a=g[c],f=l.getObject(c,!1,b);void 0!==f&&(f=[].concat(f),"boolean"==typeof a[0].checked?e.forEach(a,function(a){a.set("value",-1!=e.indexOf(f,a._get("value")))}):a[0].multiple?
a[0].set("value",f):e.forEach(a,function(a,b){a.set("value",f[b])}))}},getValues:function(){h.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var b={};e.forEach(this._getDescendantFormWidgets(),function(e){var c=e.name;if(c&&!e.disabled){var a=e.get("value");"boolean"==typeof e.checked?/Radio/.test(e.declaredClass)?!1!==a?l.setObject(c,a,b):(a=l.getObject(c,!1,b),void 0===a&&l.setObject(c,null,b)):
(e=l.getObject(c,!1,b),e||(e=[],l.setObject(c,e,b)),!1!==a&&e.push(a)):(e=l.getObject(c,!1,b),"undefined"!=typeof e?l.isArray(e)?e.push(a):l.setObject(c,[e,a],b):l.setObject(c,a,b))}});return b},isValid:function(){return""==this.state},onValidStateChange:function(){},_getState:function(){var b=e.map(this._descendants,function(b){return b.get("state")||""});return 0<=e.indexOf(b,"Error")?"Error":0<=e.indexOf(b,"Incomplete")?"Incomplete":""},disconnectChildren:function(){},connectChildren:function(b){this._descendants=
this._getDescendantFormWidgets();e.forEach(this._descendants,function(b){b._started||b.startup()});b||this._onChildChange()},_onChildChange:function(b){(!b||"state"==b||"disabled"==b)&&this._set("state",this._getState());if(!b||"value"==b||"disabled"==b||"checked"==b)this._onChangeDelayTimer&&this._onChangeDelayTimer.remove(),this._onChangeDelayTimer=this.defer(function(){delete this._onChangeDelayTimer;this._set("value",this.get("value"))},10)},startup:function(){this.inherited(arguments);this._descendants=
this._getDescendantFormWidgets();this.value=this.get("value");this.state=this._getState();var d=this;this.own(b(this.containerNode,"attrmodified-state, attrmodified-disabled, attrmodified-value, attrmodified-checked",function(b){b.target!=d.domNode&&d._onChildChange(b.type.replace("attrmodified-",""))}));this.watch("state",function(b,c,a){this.onValidStateChange(""==a)})},destroy:function(){this.inherited(arguments)}})})},"dijit/form/TextBox":function(){define("dojo/_base/declare dojo/dom-construct dojo/dom-style dojo/_base/kernel dojo/_base/lang dojo/on dojo/sniff ./_FormValueWidget ./_TextBoxMixin dojo/text!./templates/TextBox.html ../main ../_mw/utils/deprecation".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u){u.deprecated({deprecated:{module:"dijit/form/TextBox"},replacement:{module:"MW/form/TextField"},geckNumber:1352405});e=e("dijit.form.TextBox",[g,c],{templateString:a,_singleNodeTemplate:'\x3cinput class\x3d"dijit dijitReset dijitLeft dijitInputField" data-dojo-attach-point\x3d"textbox,focusNode" autocomplete\x3d"off" type\x3d"${type}" ${!nameAttrSetting} /\x3e',_buttonInputDisabled:d("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var a=
this.type.toLowerCase();if(this.templateString&&"input"==this.templateString.toLowerCase()||("hidden"==a||"file"==a)&&this.templateString==this.constructor.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);9>d("ie")&&this.defer(function(){try{var a=h.getComputedStyle(this.domNode);if(a){var b=a.fontFamily;if(b){var c=this.domNode.getElementsByTagName("INPUT");if(c)for(a=0;a<c.length;a++)c[a].style.fontFamily=
b}}}catch(d){}})},_setPlaceHolderAttr:function(a){this._set("placeHolder",a);this._phspan||(this._attachPoints.push("_phspan"),this._phspan=k.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after"),this.own(m(this._phspan,"mousedown",function(a){a.preventDefault()}),m(this._phspan,"touchend, pointerup, MSPointerUp",b.hitch(this,function(){this.focus()}))));this._phspan.innerHTML="";this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(a));this._updatePlaceHolder()},
_onInput:function(a){this.inherited(arguments);this._updatePlaceHolder()},_updatePlaceHolder:function(){this._phspan&&(this._phspan.style.display=this.placeHolder&&!this.textbox.value?"":"none")},_setValueAttr:function(a,b,c){this.inherited(arguments);this._updatePlaceHolder()},getDisplayedValue:function(){l.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue")},setDisplayedValue:function(a){l.deprecated(this.declaredClass+
"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",a)},_onBlur:function(a){this.disabled||(this.inherited(arguments),this._updatePlaceHolder(),d("mozilla")&&this.selectOnClick&&(this.textbox.selectionStart=this.textbox.selectionEnd=void 0))},_onFocus:function(a){!this.disabled&&!this.readOnly&&(this.inherited(arguments),this._updatePlaceHolder())}});9>d("ie")&&(e.prototype._isTextSelected=function(){var a=this.ownerDocument.selection.createRange();
return a.parentElement()==this.textbox&&0<a.text.length},f._setSelectionRange=c._setSelectionRange=function(a,b,c){a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",b),a.moveEnd("character",c-b),a.select())});return e})},"dijit/form/_FormValueWidget":function(){define(["dojo/_base/declare","dojo/sniff","./_FormWidget","./_FormValueMixin"],function(e,k,h,l){return e("dijit.form._FormValueWidget",[h,l],{_layoutHackIE7:function(){if(7==k("ie"))for(var b=
this.domNode,e=b.parentNode,d=b.firstChild||b,g=d.style.filter,c=this;e&&0==e.clientHeight;)(function(){var a=c.connect(e,"onscroll",function(){c.disconnect(a);d.style.filter=(new Date).getMilliseconds();c.defer(function(){d.style.filter=g})})})(),e=e.parentNode}})})},"dijit/form/_FormValueMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on ./_FormWidgetMixin".split(" "),function(e,k,h,l,b,m){return e("dijit.form._FormValueMixin",m,{readOnly:!1,_setReadOnlyAttr:function(b){k.set(this.focusNode,
"readOnly",b);this._set("readOnly",b)},postCreate:function(){this.inherited(arguments);void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(b,e){this._handleOnChange(b,e)},_handleOnChange:function(b,e){this._set("value",b);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,!0)}})})},"dijit/form/_TextBoxMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/sniff dojo/keys dojo/_base/lang dojo/on ../main".split(" "),
function(e,k,h,l,b,m,d,g){var c=k("dijit.form._TextBoxMixin",null,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,b,c){var d;void 0!==a&&(d=this.filter(a),"string"!=typeof c&&(c=null!==d&&("number"!=typeof d||!isNaN(d))?this.filter(this.format(d,this.constraints)):"",0!=this.compare(d,this.filter(this.parse(c,this.constraints)))&&(c=null)));
if(null!=c&&("number"!=typeof c||!isNaN(c))&&this.textbox.value!=c)this.textbox.value=c,this._set("displayedValue",this.get("displayedValue"));this.inherited(arguments,[d,b])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(a){null==a?a="":"string"!=typeof a&&(a=String(a));this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},format:function(a){return null==
a?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},onInput:function(){},_onInput:function(a){this._lastInputEventValue=this.textbox.value;this._processInput(this._lastInputProducingEvent||a);delete this._lastInputProducingEvent;this.intermediateChanges&&this._handleOnChange(this.get("value"),!1)},_processInput:function(){this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);
this.inherited(arguments);this.own(d(this.textbox,"keydown, keypress, paste, cut, compositionend",m.hitch(this,function(a){var c;if("keydown"==a.type&&229!=a.keyCode){c=a.keyCode;switch(c){case b.SHIFT:case b.ALT:case b.CTRL:case b.META:case b.CAPS_LOCK:case b.NUM_LOCK:case b.SCROLL_LOCK:return}if(!a.ctrlKey&&!a.metaKey&&!a.altKey){switch(c){case b.NUMPAD_0:case b.NUMPAD_1:case b.NUMPAD_2:case b.NUMPAD_3:case b.NUMPAD_4:case b.NUMPAD_5:case b.NUMPAD_6:case b.NUMPAD_7:case b.NUMPAD_8:case b.NUMPAD_9:case b.NUMPAD_MULTIPLY:case b.NUMPAD_PLUS:case b.NUMPAD_ENTER:case b.NUMPAD_MINUS:case b.NUMPAD_PERIOD:case b.NUMPAD_DIVIDE:return}if(65<=
c&&90>=c||48<=c&&57>=c||c==b.SPACE)return;c=!1;for(var e in b)if(b[e]===a.keyCode){c=!0;break}if(!c)return}}(c=32<=a.charCode?String.fromCharCode(a.charCode):a.charCode)||(c=65<=a.keyCode&&90>=a.keyCode||48<=a.keyCode&&57>=a.keyCode||a.keyCode==b.SPACE?String.fromCharCode(a.keyCode):a.keyCode);c||(c=229);if("keypress"==a.type){if("string"!=typeof c)return;if("a"<=c&&"z">=c||"A"<=c&&"Z">=c||"0"<=c&&"9">=c||" "===c)if(a.ctrlKey||a.metaKey||a.altKey)return}var g={faux:!0},h;for(h in a)/^(layer[XY]|returnValue|keyLocation)$/.test(h)||
(e=a[h],"function"!=typeof e&&"undefined"!=typeof e&&(g[h]=e));m.mixin(g,{charOrCode:c,_wasConsumed:!1,preventDefault:function(){g._wasConsumed=!0;a.preventDefault()},stopPropagation:function(){a.stopPropagation()}});this._lastInputProducingEvent=g;!1===this.onInput(g)&&(g.preventDefault(),g.stopPropagation());if(!g._wasConsumed&&9>=l("ie"))switch(a.keyCode){case b.TAB:case b.ESCAPE:case b.DOWN_ARROW:case b.UP_ARROW:case b.LEFT_ARROW:case b.RIGHT_ARROW:break;default:if(a.keyCode==b.ENTER&&"textarea"!=
this.textbox.tagName.toLowerCase())break;this.defer(function(){this.textbox.value!==this._lastInputEventValue&&d.emit(this.textbox,"input",{bubbles:!0})})}})),d(this.textbox,"input",m.hitch(this,"_onInput")),d(this.domNode,"keypress",function(a){a.stopPropagation()}))},_blankValue:"",filter:function(a){if(null===a)return this._blankValue;if("string"!=typeof a)return a;this.trim&&(a=m.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,
function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){this.disabled||(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(a){!this.disabled&&!this.readOnly&&(this.selectOnClick&&"mouse"==a&&(this._selectOnClickHandle=d.once(this.domNode,"mouseup, touchend",m.hitch(this,function(a){this._isTextSelected()||
c.selectInputText(this.textbox)})),this.own(this._selectOnClickHandle),this.defer(function(){this._selectOnClickHandle&&(this._selectOnClickHandle.remove(),this._selectOnClickHandle=null)},500)),this.inherited(arguments),this._refreshState())},reset:function(){this.textbox.value="";this.inherited(arguments)}});c._setSelectionRange=g._setSelectionRange=function(a,b,c){a.setSelectionRange&&a.setSelectionRange(b,c)};c.selectInputText=g.selectInputText=function(a,b,d){a=h.byId(a);isNaN(b)&&(b=0);isNaN(d)&&
(d=a.value?a.value.length:0);try{a.focus(),c._setSelectionRange(a,b,d)}catch(e){}};return c})},"dijit/TooltipDialog":function(){define("dojo/_base/declare dojo/dom-class dojo/has dojo/keys dojo/_base/lang dojo/on ./focus ./layout/ContentPane ./_DialogMixin ./form/_FormMixin ./_TemplatedMixin dojo/text!./templates/TooltipDialog.html ./main".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p){return e("dijit.TooltipDialog",[g,f,a,c],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,
_lastFocusItem:null,templateString:u,_setTitleAttr:"containerNode",postCreate:function(){this.inherited(arguments);this.own(m(this.domNode,"keydown",b.hitch(this,"_onKey")))},orient:function(a,b,c){a={"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight",
"BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft","BR-TL":"dijitTooltipBelow dijitTooltipABLeft","BL-TR":"dijitTooltipBelow dijitTooltipABRight","TL-BR":"dijitTooltipAbove dijitTooltipABRight","TR-BL":"dijitTooltipAbove dijitTooltipABLeft"}[b+"-"+c];k.replace(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems();d.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);var b=a.aroundNodePos;"M"==
a.corner.charAt(0)&&"M"==a.aroundCorner.charAt(0)?(this.connectorNode.style.top=b.y+(b.h-this.connectorNode.offsetHeight>>1)-a.y+"px",this.connectorNode.style.left=""):"M"==a.corner.charAt(1)&&"M"==a.aroundCorner.charAt(1)&&(this.connectorNode.style.left=b.x+(b.w-this.connectorNode.offsetWidth>>1)-a.x+"px");this._onShow()},onClose:function(){this.onHide()},_onKey:function(a){if(a.keyCode==l.ESCAPE)this.defer("onCancel"),a.stopPropagation(),a.preventDefault();else if(a.keyCode==l.TAB){var b=a.target;
this._getFocusItems();this._firstFocusItem==this._lastFocusItem?(a.stopPropagation(),a.preventDefault()):b==this._firstFocusItem&&a.shiftKey?(d.focus(this._lastFocusItem),a.stopPropagation(),a.preventDefault()):b==this._lastFocusItem&&!a.shiftKey?(d.focus(this._firstFocusItem),a.stopPropagation(),a.preventDefault()):a.stopPropagation()}}})})},"dijit/_DialogMixin":function(){define(["dojo/_base/declare","./a11y"],function(e,k){return e("dijit._DialogMixin",null,{actionBarTemplate:"",execute:function(){},
onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var e=k._getTabNavigable(this.domNode);this._firstFocusItem=e.lowest||e.first||this.closeButtonNode||this.domNode;this._lastFocusItem=e.last||e.highest||this._firstFocusItem}})})},"webview/search/SearchFieldsPanel":function(){define("dojo/_base/declare dojo/_base/array dojo/dom dojo/store/Memory dijit/_WidgetBase dijit/_TemplatedMixin dijit/form/CheckBox dojo/i18n!../resources/slreportgen_webview/nls/modelviewer dojo/text!./templates/SearchFieldsPanel.html".split(" "),
function(e,k,h,l,b,m,d,g,c){return e([b,m],{templateString:c,startup:function(){var a=this.finder.searchFields,b=new l,c=this,e=function(b){a.set(this.searchField,b)};this.inherited(arguments);k.forEach(["name","blockType","maskType","propertyName","propertyValue"],function(k){var l=c.id+"-"+k,m=new d({searchField:k,checked:a[k],onChange:e},l);h.byId(l+"-label").innerHTML=g[k];b.add({id:k,checkBox:m});m.startup();c.own(m)});this.own(a.watch(function(a,c,d){(a=b.get(a))&&a.checkBox&&a.checkBox.set("checked",
d)}))}})})},"dijit/form/CheckBox":function(){define("require dojo/_base/declare dojo/dom-attr dojo/has dojo/query dojo/ready ./ToggleButton ./_CheckBoxMixin dojo/text!./templates/CheckBox.html ../_mw/utils/deprecation dojo/NodeList-dom ../a11yclick".split(" "),function(e,k,h,l,b,m,d,g,c,a){a.deprecated({deprecated:{module:"dijit/form/Checkbox"},replacement:{module:"MW/form/Checkbox"},geckNumber:1352405});l("dijit-legacy-requires")&&m(0,function(){e(["dijit/form/RadioButton"])});return k("dijit.form.CheckBox",
[d,g],{templateString:c,baseClass:"dijitCheckBox",_setValueAttr:function(a,b){"string"==typeof a&&(this.inherited(arguments),a=!0);this._created&&this.set("checked",a,b)},_getValueAttr:function(){return this.checked&&this._get("value")},_setIconClassAttr:null,_setNameAttr:"focusNode",postMixInProperties:function(){this.inherited(arguments);this.checkedAttrSetting=""},_fillContent:function(){},_onFocus:function(){this.id&&b("label[for\x3d'"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},
_onBlur:function(){this.id&&b("label[for\x3d'"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)}})})},"dijit/form/_CheckBoxMixin":function(){define(["dojo/_base/declare","dojo/dom-attr"],function(e,k){return e("dijit.form._CheckBoxMixin",null,{type:"checkbox",value:"on",readOnly:!1,_aria_attr:"aria-checked",_setReadOnlyAttr:function(e){this._set("readOnly",e);k.set(this.focusNode,"readOnly",e)},_setLabelAttr:void 0,_getSubmitValue:function(e){return null==e||""===e?"on":e},
_setValueAttr:function(e){e=this._getSubmitValue(e);this._set("value",e);k.set(this.focusNode,"value",e)},reset:function(){this.inherited(arguments);this._set("value",this._getSubmitValue(this.params.value));k.set(this.focusNode,"value",this.value)},_onClick:function(e){return this.readOnly?(e.stopPropagation(),e.preventDefault(),!1):this.inherited(arguments)}})})},"webview/widgets/SystemButton":function(){define("dojo/_base/declare dojo/dom-style dijit/_WidgetBase dijit/_CssStateMixin dijit/_TemplatedMixin dijit/form/Button dijit/form/DropDownButton dijit/Menu dijit/MenuItem dojo/text!./templates/SystemButton.html".split(" "),
function(e,k,h,l,b,m,d,g,c,a){var f=e([c],{onClick:function(){var a=this.app;a.open(this.diagram,{tab:"reuse"}).then(function(){a.modelViewer.focus()})}});return e([h,l,b],{templateString:a,baseClass:"system-button-widget",postCreate:function(){var a=this.app,b=this.diagram,c=new g({"class":"system-button-widget"}),e=new d({dropDown:c},this.arrowButtonNode),h=new m({label:b.label,iconClass:b.icon,diagram:b,onClick:function(){a.open(this.diagram,{tab:"reuse"}).then(function(){a.modelViewer.focus()})}},
this.buttonNode),l=e.domNode,b=b.getChildren(),x,w=b.length,y;for(y=0;y<w;y+=1)x=b[y],c.addChild(new f({app:a,iconClass:x.icon,label:x.label,diagram:x}));this.own(c,e,h);c.hasChildren()?k.set(l,"display","inline-block"):k.set(l,"display","none")}})})},"webview/widgets/ModelInspector":function(){define("dojo/_base/declare dojo/_base/lang dojo/store/Memory dojo/query dojo/dom-class dojo/dom-style dojo/dom-geometry dojo/dom-construct dojo/topic dojo/mouse dojo/on dijit/_WidgetBase dijit/_TemplatedMixin dijit/_CssStateMixin dijit/_Container dijit/TitlePane dijit/Tooltip dgrid/Grid dojo/text!./templates/ModelInspector.html dojo/i18n!../resources/slreportgen_webview/nls/modelinspector".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w,y){return e([u,p,n,q],{templateString:w,baseClass:"modelInspector",title:"",_setTitleAttr:{node:"titleNode",type:"innerHTML"},startup:function(){this.inherited(arguments);this.own(c.subscribe(this.app.id+"/select",k.hitch(this,"update")));this._computedStyle=m.getComputedStyle(this.domNode);this._containerComputedStyle=m.getComputedStyle(this.containerNode);this._titleBarComputedStyle=m.getComputedStyle(this.titleBar)},destroy:function(){this._destroyTitlePanes();
this.inherited(arguments)},resize:function(a){var b=this.domNode,c=this._computedStyle;a&&d.setMarginBox(b,a,c);a=d.getMarginBox(b,c);b=d.getMarginBox(this.titleBar,this._titleBarComputedStyle);d.setMarginBox(this.containerNode,{l:0,t:0,w:a.w,h:a.h-b.h},this._containerComputedStyle);this._updateNameColumnWidth()},getMarginBox:function(){return d.getMarginBox(this.domNode,this._computedStyle)},refresh:function(){var a=this.object;this._lastViewId=this._lastObject="";this.object=null;this._destroyTitlePanes();
this.update(a)},update:function(a){var b=a.backing,c,d,e,f,g,h,k;f=this.app.viewManager;g=f.currentViewId;if(!(a===this._lastObject&&this._lastViewId===g)){this._lastObject=a;this._lastViewId=g;this._maxNameColumnWidth=null;this.object=a;this._destroyTitlePanes();b?(c=b.name,0===c.length&&(c=b.label),0===c.length&&(c=b.sid),g?(e=this._getInspectorData(b.views[g]))?c=f.optViewsStore.get(g).name+": "+c:e=this._getInspectorData(b):e=this._getInspectorData(b)):c=a.label;if(e&&e.tabs){g=e.tabs.length;
h=e.params.length;for(f=0;f<g;f+=1)d=e.tabs_idx[f],k=f<g-1?e.tabs_idx[f+1]-1:h-1,d=this._getGridData(e,d,k),d=this._createTitlePane(e.tabs[f],d),this.addChild(d)}this.set("title",c);this.resize();b&&this.emit("updated",a)}},getParamNameNode:function(a){return(a=this._paramToNodeMap.get(a))?a.nameNode:null},getParamValueNode:function(a){return(a=this._paramToNodeMap.get(a))?a.valueNode:null},_createTitlePane:function(c,d){var e=this,h=this._parseTabTitle(c),h=new r({title:h.title,open:h.isOpen}),k=
new x({columns:[{label:"Name",field:"name",renderCell:function(a,b,c){b=g.create("div",{"class":"wvModelInspectorFieldName",innerHTML:b});e._paramToNodeMap.put({id:a.name,nameNode:b});c.appendChild(b)}},{label:"Value",field:"value",renderCell:function(a,b,c){b=g.create("div",{"class":"wvModelInspectorFieldValue",innerHTML:b});e._paramToNodeMap.get(a.name).valueNode=b;c.appendChild(b)}}],inspector:this});k.renderArray(d);k.set("showHeader",!1);k.on(".dgrid-cell:mouseover",function(b){var c=b.target;
if((b=l(".wvModelInspectorFieldName",b.target)[0])&&b.clientWidth<b.scrollWidth)s.show(b.innerHTML,c,["before","after","above","below"]),f.once(c,a.leave,function(){s.hide(c)})});b.add(h.containerNode,"wvModelInspectorTitlePane");h.addChild(k);return h},_destroyTitlePanes:function(){var a=this.getChildren(),b=a.length,c;this._paramToNodeMap=new h({});for(c=0;c<b;c+=1)a[c].destroy()},_parseTabTitle:function(a){var b=!0;0===a.indexOf("-")&&(a=a.substr(1),b=!1);return{title:a,isOpen:b}},_getGridData:function(a,
b,c){for(var d=[];b<=c;b+=1)d.push({name:a.params[b],value:a.values[b].toString().replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;")});return d},_getInspectorData:function(a){var b;a.inspector&&(b={title:"",params:[],values:[],tabs:[],tabs_idx:[]},a=a.inspector,a.params&&(b.params=a.params),a.values&&(b.values=a.values),a.tabs&&(b.tabs=a.tabs instanceof Array?a.tabs:[a.tabs]),a.tabs_idx instanceof Array?b.tabs_idx=a.tabs_idx:"number"===typeof a.tabs_idx&&
(b.tabs_idx=[a.tabs_idx]),0<b.params.length&&0===b.tabs.length&&(b.tabs=[y.ParameterAttributes],b.tabs_idx=[0]));return b},_updateNameColumnWidth:function(){for(var a=this.domNode,b=this._getMaxNameColumnWidth(),c=a.clientWidth,a=l(".field-name",a),d=a.length,c=Math.min(b+10,c/2),b=0;b<d;b+=1)m.set(a[b],"width",c+"px")},_maxNameColumnWidth:null,_getMaxNameColumnWidth:function(){var a,b,c,d,e=this._maxNameColumnWidth;if(!e){a=l(".wvModelInspectorFieldName",this.domNode);b=a.length;for(c=0;c<b;c+=1)m.set(a[c],
"display","inline-block"),d=a[c].scrollWidth,e<d&&(e=d),m.set(a[c],"display","block");this._maxNameColumnWidth=e}return e}})})},"dijit/TitlePane":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/fx dojo/has dojo/_base/kernel dojo/keys ./_CssStateMixin ./_TemplatedMixin ./layout/ContentPane dojo/text!./templates/TitlePane.html ./_base/manager ./a11yclick".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q){return k("dijit.TitlePane",
[p,u,f],{title:"",_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!0,toggleable:!0,tabIndex:"0",duration:q.defaultDuration,baseClass:"dijitTitlePane",templateString:n,doLayout:!1,_setTooltipAttr:{node:"focusNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);h.setSelectable(this.titleNode,!1)},postCreate:function(){this.inherited(arguments);this.toggleable&&this._trackMouseState(this.titleBarNode,this.baseClass+"Title");var a=this.hideNode,b=this.wipeNode;
this._wipeIn=d.wipeIn({node:b,duration:this.duration,beforeBegin:function(){a.style.display=""}});this._wipeOut=d.wipeOut({node:b,duration:this.duration,onEnd:function(){a.style.display="none"}})},_setOpenAttr:function(a,b){e.forEach([this._wipeIn,this._wipeOut],function(a){a&&"playing"==a.status()&&a.stop()});b?this[a?"_wipeIn":"_wipeOut"].play():this.hideNode.style.display=this.wipeNode.style.display=a?"":"none";if(this._started)if(a)this._onShow();else this.onHide();this.containerNode.setAttribute("aria-hidden",
a?"false":"true");this.focusNode.setAttribute("aria-pressed",a?"true":"false");this._set("open",a);this._setCss()},_setToggleableAttr:function(a){this.focusNode.setAttribute("role",a?"button":"heading");a?(this.focusNode.setAttribute("aria-controls",this.id+"_pane"),this.focusNode.setAttribute("tabIndex",this.tabIndex),this.focusNode.setAttribute("aria-pressed",this.open)):(l.remove(this.focusNode,"aria-controls"),l.remove(this.focusNode,"tabIndex"),l.remove(this.focusNode,"aria-pressed"));this._set("toggleable",
a);this._setCss()},_setContentAttr:function(a){!this.open||!this._wipeOut||"playing"==this._wipeOut.status()?this.inherited(arguments):(this._wipeIn&&"playing"==this._wipeIn.status()&&this._wipeIn.stop(),m.setMarginBox(this.wipeNode,{h:m.getMarginBox(this.wipeNode).h}),this.inherited(arguments),this._wipeIn?this._wipeIn.play():this.hideNode.style.display="")},toggle:function(){this._setOpenAttr(!this.open,!0)},_setCss:function(){var a=this.titleBarNode||this.focusNode,c=this._titleBarClass;this._titleBarClass=
this.baseClass+"Title"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");b.replace(a,this._titleBarClass,c||"");b.replace(a,this._titleBarClass.replace("TitlePaneTitle",""),(c||"").replace("TitlePaneTitle",""));this.arrowNodeInner.innerHTML=this.open?"-":"+"},_onTitleKey:function(b){b.keyCode==a.DOWN_ARROW&&this.open&&(this.containerNode.focus(),b.preventDefault())},_onTitleClick:function(){this.toggleable&&this.toggle()},setTitle:function(a){c.deprecated("dijit.TitlePane.setTitle() is deprecated. Use set('title', ...) instead.",
"","2.0");this.set("title",a)}})})},"webview/widgets/Informer":function(){define("dojo/_base/declare dojo/_base/lang dojo/query dojo/dom-style dojo/dom-geometry dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin dijit/layout/ContentPane dojo/text!./templates/Informer.html".split(" "),function(e,k,h,l,b,m,d,g,c,a){return e([d,g],{templateString:a,baseClass:"informer",title:"",_setTitleAttr:{node:"titleNode",type:"innerHTML"},postCreate:function(){var a=new c({},this.containerNode);this.inherited(arguments);
this.contentPane=a;this.own(a)},startup:function(){this.inherited(arguments);this.own(m.subscribe(this.app.id+"/select",k.hitch(this,"_update")));this._computedStyle=l.getComputedStyle(this.domNode);this._containerComputedStyle=l.getComputedStyle(this.containerNode);this._titleBarMarginBox=b.getMarginBox(this.titleBar)},resize:function(a){var c=this.domNode,d=this._computedStyle;a&&b.setMarginBox(c,a,d);c=b.getMarginBox(c,d);b.setMarginBox(this.containerNode,{l:0,t:0,w:c.w,h:c.h-this._titleBarMarginBox.h},
this._containerComputedStyle);this.inherited(arguments)},_update:function(a){var b=this.contentPane,c=this.app.viewManager,d=c.currentViewId,e=a.backing.informer,g=a.name,k,l,m;b.set("content","");d&&(e=a.backing.views[d].informer,g=c.optViewsStore.get(d).name+": "+g);"string"===typeof e?k=e:e&&(g=e.title||g,k=e.html||k);this.set("title",g);k?b.set("content",k):e&&e.href&&/\.html$/.test(e.href)&&b.set("href",e.href);e&&e.anchor&&(m=e.anchor);e&&e.href&&b.set("href",e.href).then(function(){m&&(l=h("a[name\x3d'"+
m+"']"),0<l.length&&l[0].scrollIntoView())})}})})},"webview/widgets/ViewManager":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/topic"],function(e,k,h,l){return e(null,{constructor:function(b){h.mixin(this,b)},startup:function(){this.optViewsStore=this.app.data.optViewsStore},setView:function(b){var e=this.app.modelViewer,d=e.selectedDiagramTab,e=e.palette;this.currentViewId=b;k.forEach(e.getChildren(),function(d){d.set("checked",d.viewId===b)});d.lightBox.close();
d.modelGraphicsPane.update()},toggleView:function(b){this.currentViewId===b?this.setView(""):this.setView(b)}})})},"webview/utils/check-browser":function(){define(["dojo/request","dijit/Dialog","./svg","dojo/i18n!../resources/slreportgen_webview/nls/utils"],function(e,k,h,l){var b=!0;/chrome/.test(navigator.userAgent.toLowerCase())&&"file://"===window.location.origin&&e(require.toUrl("dojo/resources/blank.gif"),{sync:!0}).then(function(){},function(){b=!1});b?h.hasSvgSupport||(e=new k({title:l.UnsupportedBrowser,
content:l.SvgSupport}),e.show()):(e=new k({title:l.UnsupportedBrowser,content:l.ChromeLocalFileSupport}),e.show());return h.hasSvgSupport&&b})},"dijit/Dialog":function(){define("require dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/fx dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/ready dojo/sniff dojo/window dojo/dnd/Moveable dojo/dnd/TimedMoveable ./focus ./_base/manager ./_Widget ./_TemplatedMixin ./_CssStateMixin ./form/_FormMixin ./_DialogMixin ./DialogUnderlay ./layout/ContentPane ./layout/utils dojo/text!./templates/Dialog.html ./a11yclick dojo/i18n!./nls/common".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w,y,A,B,C,F,K,G,I,O,N,T){function P(){}var Q=new b;Q.resolve(!0);A=l("dijit._DialogBase",[C,K,G,F],{templateString:T,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!1,duration:A.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,draggable:!0,_setDraggableAttr:function(a){this._set("draggable",a)},maxRatio:0.9,closable:!0,_setClosableAttr:function(a){this.closeButtonNode.style.display=
a?"":"none";this._set("closable",a)},postMixInProperties:function(){var a=f.getLocalization("dijit","common");p.mixin(this,a);this.inherited(arguments)},postCreate:function(){c.set(this.domNode,{display:"none",position:"absolute"});this.ownerDocumentBody.appendChild(this.domNode);this.inherited(arguments);h.after(this,"onExecute",p.hitch(this,"hide"),!0);h.after(this,"onCancel",p.hitch(this,"hide"),!0);this._modalconnects=[]},onLoad:function(){this.resize();this._position();this.autofocus&&J.isTop(this)&&
(this._getFocusItems(),y.focus(this._firstFocusItem));this.inherited(arguments)},focus:function(){this._getFocusItems();y.focus(this._firstFocusItem)},_endDrag:function(){var a=g.position(this.domNode),b=s.getBox(this.ownerDocument);a.y=Math.min(Math.max(a.y,0),b.h-a.h);a.x=Math.min(Math.max(a.x,0),b.w-a.w);this._relativePosition=a;this._position()},_setup:function(){var a=this.domNode;this.titleBar&&this.draggable?(this._moveable=new (6==r("ie")?w:x)(a,{handle:this.titleBar}),h.after(this._moveable,
"onMoveStop",p.hitch(this,"_endDrag"),!0)):d.add(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":k.map(this["class"].split(/\s/),function(a){return a+"_underlay"}).join(" "),_onKeyDown:p.hitch(this,"_onKey"),ownerDocument:this.ownerDocument}},_size:function(){this.resize()},_position:function(){if(!d.contains(this.ownerDocumentBody,"dojoMove")){var a=this.domNode,b=s.getBox(this.ownerDocument),e=this._relativePosition,f=g.position(a),h=Math.floor(b.l+(e?Math.min(e.x,b.w-f.w):(b.w-
f.w)/2)),b=Math.floor(b.t+(e?Math.min(e.y,b.h-f.h):(b.h-f.h)/2));c.set(a,{left:h+"px",top:b+"px"})}},_onKey:function(a){if(a.keyCode==u.TAB){this._getFocusItems();var b=a.target;this._firstFocusItem==this._lastFocusItem?(a.stopPropagation(),a.preventDefault()):b==this._firstFocusItem&&a.shiftKey?(y.focus(this._lastFocusItem),a.stopPropagation(),a.preventDefault()):b==this._lastFocusItem&&!a.shiftKey&&(y.focus(this._firstFocusItem),a.stopPropagation(),a.preventDefault())}else this.closable&&a.keyCode==
u.ESCAPE&&(this.onCancel(),a.stopPropagation(),a.preventDefault())},show:function(){if(this.open)return Q.promise;this._started||this.startup();this._alreadyInitialized||(this._setup(),this._alreadyInitialized=!0);this._fadeOutDeferred&&(this._fadeOutDeferred.cancel(),J.hide(this));var d=s.get(this.ownerDocument);this._modalconnects.push(n(d,"scroll",p.hitch(this,"resize",null)));this._modalconnects.push(n(this.domNode,"keydown",p.hitch(this,"_onKey")));c.set(this.domNode,{opacity:0,display:""});
this._set("open",!0);this._onShow();this.resize();this._position();var e;this._fadeInDeferred=new b(p.hitch(this,function(){e.stop();delete this._fadeInDeferred}));this._fadeInDeferred.then(void 0,P);d=this._fadeInDeferred.promise;e=a.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:p.hitch(this,function(){J.show(this,this.underlayAttrs)}),onEnd:p.hitch(this,function(){this.autofocus&&J.isTop(this)&&(this._getFocusItems(),y.focus(this._firstFocusItem));this._fadeInDeferred.resolve(!0);
delete this._fadeInDeferred})}).play();return d},hide:function(){if(!this._alreadyInitialized||!this.open)return Q.promise;this._fadeInDeferred&&this._fadeInDeferred.cancel();var c;this._fadeOutDeferred=new b(p.hitch(this,function(){c.stop();delete this._fadeOutDeferred}));this._fadeOutDeferred.then(void 0,P);this._fadeOutDeferred.then(p.hitch(this,"onHide"));var d=this._fadeOutDeferred.promise;c=a.fadeOut({node:this.domNode,duration:this.duration,onEnd:p.hitch(this,function(){this.domNode.style.display=
"none";J.hide(this);this._fadeOutDeferred.resolve(!0);delete this._fadeOutDeferred})}).play();this._scrollConnected&&(this._scrollConnected=!1);for(var e;e=this._modalconnects.pop();)e.remove();this._relativePosition&&delete this._relativePosition;this._set("open",!1);return d},resize:function(a){if("none"!=this.domNode.style.display){this._checkIfSingleChild();if(!a){this._shrunk&&(this._singleChild&&"undefined"!=typeof this._singleChildOriginalStyle&&(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle,
delete this._singleChildOriginalStyle),k.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],function(a){a&&c.set(a,{position:"static",width:"auto",height:"auto"})}),this.domNode.style.position="absolute");var b=s.getBox(this.ownerDocument);b.w*=this.maxRatio;b.h*=this.maxRatio;var d=g.position(this.domNode);d.w>=b.w||d.h>=b.h?(a={w:Math.min(d.w,b.w),h:Math.min(d.h,b.h)},this._shrunk=!0):this._shrunk=!1}if(a){g.setMarginBox(this.domNode,a);b=[];this.titleBar&&b.push({domNode:this.titleBar,
region:"top"});this.actionBarNode&&b.push({domNode:this.actionBarNode,region:"bottom"});d={domNode:this.containerNode,region:"center"};b.push(d);var e=N.marginBox2contentBox(this.domNode,a);N.layoutChildren(this.domNode,e,b);this._singleChild?(b=N.marginBox2contentBox(this.containerNode,d),this._singleChild.resize({w:b.w,h:b.h})):(this.containerNode.style.overflow="auto",this._layoutChildren())}else this._layoutChildren();!r("touch")&&!a&&this._position()}},_layoutChildren:function(){k.forEach(this.getChildren(),
function(a){a.resize&&a.resize()})},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();for(var a;a=this._modalconnects.pop();)a.remove();J.hide(this);this.inherited(arguments)}});var L=l("dijit.Dialog",[O,A],{});L._DialogBase=A;var J=L._DialogLevelManager={_beginZIndex:950,show:function(a,b){H[H.length-1].focus=y.curNode;var d=H[H.length-1].dialog?H[H.length-1].zIndex+2:L._DialogLevelManager._beginZIndex;
c.set(a.domNode,"zIndex",d);I.show(b,d-1);H.push({dialog:a,underlayAttrs:b,zIndex:d})},hide:function(a){if(H[H.length-1].dialog==a){H.pop();var b=H[H.length-1];1==H.length?I.hide():I.show(b.underlayAttrs,b.zIndex-1);if(a.refocus){a=b.focus;if(b.dialog&&(!a||!m.isDescendant(a,b.dialog.domNode)))b.dialog._getFocusItems(),a=b.dialog._firstFocusItem;if(a)try{a.focus()}catch(c){}}}else b=k.indexOf(k.map(H,function(a){return a.dialog}),a),-1!=b&&H.splice(b,1)},isTop:function(a){return H[H.length-1].dialog==
a}},H=L._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];y.watch("curNode",function(a,b,c){a=H[H.length-1].dialog;if(c&&a&&!a._fadeOutDeferred&&c.ownerDocument==a.ownerDocument){do if(c==a.domNode||d.contains(c,"dijitPopup"))return;while(c=c.parentNode);a.focus()}});r("dijit-legacy-requires")&&q(0,function(){e(["dijit/TooltipDialog"])});return L})},"dojo/dnd/Moveable":function(){define("../_base/array ../_base/declare ../_base/lang ../dom ../dom-class ../Evented ../on ../topic ../touch ./common ./Mover ../_base/window".split(" "),
function(e,k,h,l,b,m,d,g,c,a,f,u){return k("dojo.dnd.Moveable",[m],{handle:"",delay:0,skip:!1,constructor:function(a,b){this.node=l.byId(a);b||(b={});this.handle=b.handle?l.byId(b.handle):null;this.handle||(this.handle=this.node);this.delay=0<b.delay?b.delay:0;this.skip=b.skip;this.mover=b.mover?b.mover:f;this.events=[d(this.handle,c.press,h.hitch(this,"onMouseDown")),d(this.handle,"dragstart",h.hitch(this,"onSelectStart")),d(this.handle,"selectstart",h.hitch(this,"onSelectStart"))]},markupFactory:function(a,
b,c){return new c(b,a)},destroy:function(){e.forEach(this.events,function(a){a.remove()});this.events=this.node=this.handle=null},onMouseDown:function(b){if(!this.skip||!a.isFormElement(b)){if(this.delay)this.events.push(d(this.handle,c.move,h.hitch(this,"onMouseMove")),d(this.handle.ownerDocument,c.release,h.hitch(this,"onMouseUp"))),this._lastX=b.pageX,this._lastY=b.pageY;else this.onDragDetected(b);b.preventDefault()}},onMouseMove:function(a){if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-
this._lastY)>this.delay)this.onMouseUp(a),this.onDragDetected(a);a.stopPropagation();a.preventDefault()},onMouseUp:function(a){for(var b=0;2>b;++b)this.events.pop().remove();a.stopPropagation();a.preventDefault()},onSelectStart:function(b){if(!this.skip||!a.isFormElement(b))b.stopPropagation(),b.preventDefault()},onDragDetected:function(a){new this.mover(this.node,a,this)},onMoveStart:function(a){g.publish("/dnd/move/start",a);b.add(u.body(),"dojoMove");b.add(this.node,"dojoMoveItem")},onMoveStop:function(a){g.publish("/dnd/move/stop",
a);b.remove(u.body(),"dojoMove");b.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(a,b){this.onMoving(a,b);var c=a.node.style;c.left=b.l+"px";c.top=b.t+"px";this.onMoved(a,b)},onMoving:function(){},onMoved:function(){}})})},"dojo/dnd/Mover":function(){define("../_base/array ../_base/declare ../_base/lang ../sniff ../_base/window ../dom ../dom-geometry ../dom-style ../Evented ../on ../touch ./common ./autoscroll".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p){return k("dojo.dnd.Mover",
[c],{constructor:function(b,c,d){function e(a){a.preventDefault();a.stopPropagation()}this.node=m.byId(b);this.marginBox={l:c.pageX,t:c.pageY};this.mouseButton=c.button;c=this.host=d;b=b.ownerDocument;this.events=[a(b,f.move,h.hitch(this,"onFirstMove")),a(b,f.move,h.hitch(this,"onMouseMove")),a(b,f.release,h.hitch(this,"onMouseUp")),a(b,"dragstart",e),a(b.body,"selectstart",e)];p.autoScrollStart(b);if(c&&c.onMoveStart)c.onMoveStart(this)},onMouseMove:function(a){p.autoScroll(a);var b=this.marginBox;
this.host.onMove(this,{l:b.l+a.pageX,t:b.t+a.pageY},a);a.preventDefault();a.stopPropagation()},onMouseUp:function(a){(l("webkit")&&l("mac")&&2==this.mouseButton?0==a.button:this.mouseButton==a.button)&&this.destroy();a.preventDefault();a.stopPropagation()},onFirstMove:function(a){var c=this.node.style,e,f=this.host;switch(c.position){case "relative":case "absolute":e=Math.round(parseFloat(c.left))||0;c=Math.round(parseFloat(c.top))||0;break;default:c.position="absolute";c=d.getMarginBox(this.node);
e=b.doc.body;var h=g.getComputedStyle(e),k=d.getMarginBox(e,h),h=d.getContentBox(e,h);e=c.l-(h.l-k.l);c=c.t-(h.t-k.t)}this.marginBox.l=e-this.marginBox.l;this.marginBox.t=c-this.marginBox.t;if(f&&f.onFirstMove)f.onFirstMove(this,a);this.events.shift().remove()},destroy:function(){e.forEach(this.events,function(a){a.remove()});var a=this.host;if(a&&a.onMoveStop)a.onMoveStop(this);this.events=this.node=this.host=null}})})},"dojo/dnd/autoscroll":function(){define("../_base/lang ../sniff ../_base/window ../dom-geometry ../dom-style ../window".split(" "),
function(e,k,h,l,b,m){var d={};e.setObject("dojo.dnd.autoscroll",d);d.getViewport=m.getBox;d.V_TRIGGER_AUTOSCROLL=32;d.H_TRIGGER_AUTOSCROLL=32;d.V_AUTOSCROLL_VALUE=16;d.H_AUTOSCROLL_VALUE=16;var g,c=h.doc,a=Infinity,f=Infinity;d.autoScrollStart=function(b){c=b;g=m.getBox(c);b=h.body(c).parentNode;a=Math.max(b.scrollHeight-g.h,0);f=Math.max(b.scrollWidth-g.w,0)};d.autoScroll=function(b){var e=g||m.getBox(c),k=h.body(c).parentNode,l=0,r=0;b.clientX<d.H_TRIGGER_AUTOSCROLL?l=-d.H_AUTOSCROLL_VALUE:b.clientX>
e.w-d.H_TRIGGER_AUTOSCROLL&&(l=Math.min(d.H_AUTOSCROLL_VALUE,f-k.scrollLeft));b.clientY<d.V_TRIGGER_AUTOSCROLL?r=-d.V_AUTOSCROLL_VALUE:b.clientY>e.h-d.V_TRIGGER_AUTOSCROLL&&(r=Math.min(d.V_AUTOSCROLL_VALUE,a-k.scrollTop));window.scrollBy(l,r)};d._validNodes={div:1,p:1,td:1};d._validOverflow={auto:1,scroll:1};d.autoScrollNodes=function(a){for(var c,e,f,g,m,x,w=0,y=0,A=a.target;A;){if(1==A.nodeType&&A.tagName.toLowerCase()in d._validNodes){f=b.getComputedStyle(A);g=f.overflow.toLowerCase()in d._validOverflow;
m=f.overflowX.toLowerCase()in d._validOverflow;x=f.overflowY.toLowerCase()in d._validOverflow;if(g||m||x)c=l.getContentBox(A,f),e=l.position(A,!0);if(g||m){f=Math.min(d.H_TRIGGER_AUTOSCROLL,c.w/2);m=a.pageX-e.x;if(k("webkit")||k("opera"))m+=h.body().scrollLeft;w=0;0<m&&m<c.w&&(m<f?w=-f:m>c.w-f&&(w=f),A.scrollLeft+=w)}if(g||x){g=Math.min(d.V_TRIGGER_AUTOSCROLL,c.h/2);x=a.pageY-e.y;if(k("webkit")||k("opera"))x+=h.body().scrollTop;y=0;0<x&&x<c.h&&(x<g?y=-g:x>c.h-g&&(y=g),A.scrollTop+=y)}if(w||y)return}try{A=
A.parentNode}catch(B){A=null}}d.autoScroll(a)};return d})},"dojo/dnd/TimedMoveable":function(){define(["../_base/declare","./Moveable"],function(e,k){var h=k.prototype.onMove;return e("dojo.dnd.TimedMoveable",k,{timeout:40,constructor:function(e,b){b||(b={});b.timeout&&("number"==typeof b.timeout&&0<=b.timeout)&&(this.timeout=b.timeout)},onMoveStop:function(e){e._timer&&(clearTimeout(e._timer),h.call(this,e,e._leftTop));k.prototype.onMoveStop.apply(this,arguments)},onMove:function(e,b){e._leftTop=
b;if(!e._timer){var k=this;e._timer=setTimeout(function(){e._timer=null;h.call(k,e,e._leftTop)},this.timeout)}}})})},"dijit/DialogUnderlay":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/dom-attr dojo/dom-style dojo/on dojo/window ./_Widget ./_TemplatedMixin ./BackgroundIframe ./Viewport ./main".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u){var p=e("dijit.DialogUnderlay",[g,c],{templateString:"\x3cdiv class\x3d'dijitDialogUnderlayWrapper'\x3e\x3cdiv class\x3d'dijitDialogUnderlay' tabIndex\x3d'-1' data-dojo-attach-point\x3d'node'\x3e\x3c/div\x3e\x3c/div\x3e",
dialogId:"","class":"",_modalConnects:[],_setDialogIdAttr:function(a){l.set(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+a;this._set("class",a)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.own(m(this.domNode,"keydown",k.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var a=this.node.style,b=this.domNode.style;b.display="none";var c=d.getBox(this.ownerDocument);b.top=
c.t+"px";b.left=c.l+"px";a.width=c.w+"px";a.height=c.h+"px";b.display="block"},show:function(){this.domNode.style.display="block";this.open=!0;this.layout();this.bgIframe=new a(this.domNode);var b=d.get(this.ownerDocument);this._modalConnects=[f.on("resize",k.hitch(this,"layout")),m(b,"scroll",k.hitch(this,"layout"))]},hide:function(){this.bgIframe.destroy();delete this.bgIframe;for(this.domNode.style.display="none";this._modalConnects.length;)this._modalConnects.pop().remove();this.open=!1},destroy:function(){for(;this._modalConnects.length;)this._modalConnects.pop().remove();
this.inherited(arguments)},_onKeyDown:function(){}});p.show=function(a,c){var d=p._singleton;!d||d._destroyed?d=u._underlay=p._singleton=new p(a):a&&d.set(a);b.set(d.domNode,"zIndex",c);d.open||d.show()};p.hide=function(){var a=p._singleton;a&&!a._destroyed&&a.hide()};return p})},"webview/interface":function(){define(["dijit/registry","dojo/Deferred","dojo/topic","webview/utils/hash"],function(e,k,h,l){function b(a){a=a.getBoundingClientRect();return 0<=a.top&&0<=a.left&&a.bottom<=(window.innerHeight||
document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)}function m(a){var b=a.indexOf(":"),c,d;-1===b?c=e.byId(a):(c=e.byId(a.substring(0,b)),d=a.substring(b+1));return{app:c,path:d}}function d(a){return u[a.id]&&"undefined"!==typeof f[a.id]}function g(a,b,c){var d,e=1,f;d=a;do f=document.querySelector(".slwebview-anchor["+d+"\x3d'"+b+"'], .slwebview-anchor["+d+"\x3d'"+c+"']"),"boolean"!==typeof p[d]&&(p[d]=null!==f||null!==document.querySelector(".slwebview-anchor["+
d+"]")),!f&&p[d]&&(e+=1,d=a+"-"+String(e));while(null===f&&(p[d]||"undefined"===typeof p[d]));return f}function c(a){d(a)||(f[a.id]||(f[a.id]=a.on("open",function(c){var e=a.id+":"+c.sid;d(a)&&(a.isElement(c)?(c=a.id+":"+c.diagram.fullname+"/"+c.name,e=g("data-slwebview-elem-anchor",c,e)):(c=a.id+":"+c.fullname,e=g("data-slwebview-diag-anchor",c,e)),e&&(b(e)||e.scrollIntoView(),e.classList.remove("slwebview-anchor-highlight"),top.slwebview.__tmp=e.offsetWidth,e.classList.add("slwebview-anchor-highlight")))})),
u[a.id]=!0)}function a(a,c){function d(a){return a.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})}var e=a.substring(a.indexOf("-")+1),f=d(e),g=d(e+"-id");return function(){function d(a){var h=1,k=this.dataset[f],m=this.dataset[g],n=a&&a.nohash;for(a=a&&a.highlight;k;)c(k),k=this.dataset[f+"-"+String(h+=1)];m&&(!n&&l()!==m)&&(e=!0,l(m));a&&(b(this)||this.scrollIntoView(),this.classList.remove("slwebview-anchor-highlight"),top.slwebview.__tmp=this.offsetWidth,this.classList.add("slwebview-anchor-highlight"))}
var e=!1,k=document.querySelectorAll("["+a+"]"),m,p=k.length,r,s,u={};for(r=0;r<p;r+=1)m=k[r],m.addEventListener("click",d),(s=m.dataset[g])&&(u[s]=m);h.subscribe("/dojo/hashchange",function(a){if(a=u[a])e||d.call(a,{nohash:!0,highlight:!0}),e=!1})}}var f={},u={},p={};return{open:function(a,b){var c=m(a),d=c.app,c=c.path,e="diagram"===(b&&b.type||"diagram")?d.getDiagram(c):d.getElement(c);return d.isDiagram(e)?d.open(e,b):d.open(e.diagram,b).then(function(){d.select(e,b);return d.open(e,b)})},close:function(a,
b){var c=m(a),d=c.app,c=c.path,c="diagram"===(b&&b.type||"diagram")?d.getDiagram(c):d.getElement(c);return d.close(c)},select:function(a,b){var c=m(a),d=c.app,c=c.path,e="diagram"===(b&&b.type||"element")?d.getDiagram(c):d.getElement(c);return d.isDiagram(e)?d.open(e,b).then(function(){d.select(e,b)}):d.isElement(e)?d.open(e.diagram,b).then(function(){d.select(e,b)}):(new k).reject("invalid path",!0)},unselect:function(a){m(a).app.unselect()},centerToView:function(a){a=m(a);var b=a.app,c=b.getElement(a.path);
return c?b.open(c.diagram).then(function(){b.centerToView(c)}):(new k).reject("invalid path",!0)},moveToView:function(a){a=m(a);var b=a.app,c=b.getElement(a.path);return c?b.open(c.diagram).then(function(){b.moveToView(c)}):(new k).reject("invalid path")},highlight:function(a,b){var c=m(a),d=c.app,e=d.getElement(c.path),f="stroke: "+b+"; stroke-width: 2; stroke-linejoin: miter; stroke-dasharray: none; fill: none;";return e?d.open(e.diagram).then(function(){d.highlight(e,f);d.moveToView(e)}):(new k).reject("invalid path")},
unhighlight:function(a){a=m(a);var b=a.app,c=b.getElement(a.path);if(b.isElement(c))b.unhighlight(c,a.path);else throw"invalid path";},unhighlightAll:function(a){m(a).app.unhighlightAll()},highlightAndFade:function(a,b){var c=m(a),d=c.app,e=d.getElement(c.path);return e?d.open(e.diagram,b).then(function(){d.highlightAndFade(e)}):(new k).reject("invalid path",!0)},enableModelToDoc:function(a){a=m(a);c(a.app)},disableModelToDoc:function(a){a=m(a);u[a.app.id]=!1},removeModelToDoc:function(a){a=m(a).app;
f[a.id]&&(f[a.id].remove(),delete f[a.id]);u[a.id]=!1},isModelToDocEnabled:function(a){a=m(a);return d(a.app)},addDiagramLinkListeners:a("data-slwebview-diag-link",function(a){a=m(a);var b=a.app;a=b.getDiagram(a.path);u[b.id]=!1;a?b.open(a,{nohash:!0}).then(function(){c(b)},function(){c(b)}):c(b)}),addElementLinkListeners:a("data-slwebview-elem-link",function(a){a=m(a);var b=a.app,d=b.getElement(a.path);u[b.id]=!1;d?b.open(d.diagram,{nohash:!0}).then(function(){b.moveToView(d);b.select(d);b.highlightAndFade(d);
c(b)},function(){c(b)}):c(b)})}})},"webview/parser":function(){define(["dojo/parser"],function(e){return{parse:function(){var k=document.querySelectorAll("div[data-webview-type]"),h=k.length,l=document.querySelectorAll("div[data-webview-props]"),b=l.length,m,d,g;for(m=0;m<h;m+=1)d=k[m],g=d.dataset.webviewType,"BorderContainer"===g?d.dataset.dojoType="dijit/layout/BorderContainer":"ContentPane"===g&&(d.dataset.dojoType="dijit/layout/ContentPane");for(m=0;m<b;m+=1)d=l[m],d.dataset.dojoProps=d.dataset.webviewProps;
e.parse()}}})},"dojo/selector/lite":function(){define(["../has","../_base/kernel"],function(e,k){var h=document.createElement("div"),l=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.msMatchesSelector||h.oMatchesSelector,b=h.querySelectorAll,m=/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g;e.add("dom-matches-selector",!!l);e.add("dom-qsa",!!b);var d=function(f,h){if(a&&-1<f.indexOf(","))return a(f,h);var l=h?h.ownerDocument||h:k.doc||document,m=(b?/^([\w]*)#([\w\-]+$)|^(\.)([\w\-\*]+$)|^(\w+$)/:
/^([\w]*)#([\w\-]+)(?:\s+(.*))?$|(?:^|(>|.+\s+))([\w\-\*]+)(\S*$)/).exec(f);h=h||l;if(m){var q=8===e("ie")&&e("quirks")?h.nodeType===l.nodeType:null!==h.parentNode&&9!==h.nodeType&&h.parentNode===l;if(m[2]&&q){var r=k.byId?k.byId(m[2],l):l.getElementById(m[2]);if(!r||m[1]&&m[1]!=r.tagName.toLowerCase())return[];if(h!=l)for(l=r;l!=h;)if(l=l.parentNode,!l)return[];return m[3]?d(m[3],r):[r]}if(m[3]&&h.getElementsByClassName)return h.getElementsByClassName(m[4]);if(m[5])if(r=h.getElementsByTagName(m[5]),
m[4]||m[6])f=(m[4]||"")+m[6];else return r}if(b)return 1===h.nodeType&&"object"!==h.nodeName.toLowerCase()?g(h,f,h.querySelectorAll):h.querySelectorAll(f);r||(r=h.getElementsByTagName("*"));m=[];l=0;for(q=r.length;l<q;l++){var s=r[l];1==s.nodeType&&c(s,f,h)&&m.push(s)}return m},g=function(a,b,c){var d=a,e=a.getAttribute("id"),g=e||"__dojo__",h=a.parentNode,k=/^\s*[+~]/.test(b);if(k&&!h)return[];e?g=g.replace(/'/g,"\\$\x26"):a.setAttribute("id",g);k&&h&&(a=a.parentNode);b=b.match(m);for(h=0;h<b.length;h++)b[h]=
"[id\x3d'"+g+"'] "+b[h];b=b.join(",");try{return c.call(a,b)}finally{e||d.removeAttribute("id")}};if(!e("dom-matches-selector"))var c=function(){function a(b,c,d){var e=c.charAt(0);if('"'==e||"'"==e)c=c.slice(1,-1);c=c.replace(/\\/g,"");var f=k[d||""];return function(a){return(a=a.getAttribute(b))&&f(a,c)}}function b(a){return function(b,c){for(;(b=b.parentNode)!=c;)if(a(b,c))return!0}}function c(a){return function(b,c){b=b.parentNode;return a?b!=c&&a(b,c):b==c}}function d(a,b){return a?function(c,
d){return b(c)&&a(c,d)}:b}var e="div"==h.tagName?"toLowerCase":"toUpperCase",g={"":function(a){a=a[e]();return function(b){return b.tagName==a}},".":function(a){var b=" "+a+" ";return function(c){return-1<c.className.indexOf(a)&&-1<(" "+c.className+" ").indexOf(b)}},"#":function(a){return function(b){return b.id==a}}},k={"^\x3d":function(a,b){return 0==a.indexOf(b)},"*\x3d":function(a,b){return-1<a.indexOf(b)},"$\x3d":function(a,b){return a.substring(a.length-b.length,a.length)==b},"~\x3d":function(a,
b){return-1<(" "+a+" ").indexOf(" "+b+" ")},"|\x3d":function(a,b){return 0==(a+"-").indexOf(b+"-")},"\x3d":function(a,b){return a==b},"":function(a,b){return!0}},l={};return function(e,h,k){var m=l[h];if(!m){if(h.replace(/(?:\s*([> ])\s*)|(#|\.)?((?:\\.|[\w-])+)|\[\s*([\w-]+)\s*(.?=)?\s*("(?:\\.|[^"])+"|'(?:\\.|[^'])+'|(?:\\.|[^\]])*)\s*\]/g,function(e,h,k,l,q,s,w){l?m=d(m,g[k||""](l.replace(/\\/g,""))):h?m=(" "==h?b:c)(m):q&&(m=d(m,a(q,w,s)));return""}))throw Error("Syntax error in query");if(!m)return!0;
l[h]=m}return m(e,k)}}();if(!e("dom-qsa"))var a=function(a,b){for(var c=a.match(m),e=[],g=0;g<c.length;g++){a=new String(c[g].replace(/\s*$/,""));a.indexOf=escape;for(var h=d(a,b),k=0,l=h.length;k<l;k++){var w=h[k];e[w.sourceIndex]=w}}c=[];for(g in e)c.push(e[g]);return c};d.match=l?function(a,b,c){return c&&9!=c.nodeType?g(c,b,function(b){return l.call(a,b)}):l.call(a,b)}:c;return d})},"xstyle/core/load-css":function(){define([],function(){function e(e){if(l.createStyleSheet){var d=l.createStyleSheet();
d.cssText=e;return d.owningElement}d=l.createElement("style");d.setAttribute("type","text/css");d.appendChild(l.createTextNode(e));b.insertBefore(d,b.firstChild);return d}function k(k,d,g){var c=h[k];if(c)return a=e(c),d(a);var a=l.createElement("link");a.type="text/css";a.rel="stylesheet";a.href=k;var f=!g||!1!==g.wait;g=(g=navigator.userAgent.match(/AppleWebKit\/(\d+\.?\d*)/))&&+g[1];if(null===a.onload&&!(536>g))a.onload=function(){a.onload=null;a.onerror=null;f&&d(a)},a.onerror=function(){console.error("Error loading stylesheet "+
k);f&&d(a)};else if(f)var u=setInterval(function(){a.style&&(clearInterval(u),d(a))},15);(b||l.getElementsByTagName("head")[0]).appendChild(a);f||d(a)}var h="undefined"==typeof _css_cache?{}:_css_cache,l=document,b=l.head;k.insertCss=e;return k})},"url:dijit/templates/TreeNode.html":'\x3cdiv class\x3d"dijitTreeNode" role\x3d"presentation"\n\t\x3e\x3cdiv data-dojo-attach-point\x3d"rowNode" class\x3d"dijitTreeRow" role\x3d"presentation"\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNode" class\x3d"dijitInline dijitTreeExpando" role\x3d"presentation"\x3e\x3c/span\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNodeText" class\x3d"dijitExpandoText" role\x3d"presentation"\x3e\x3c/span\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"contentNode"\n\t\t\tclass\x3d"dijitTreeContent" role\x3d"presentation"\x3e\n\t\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTreeIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"labelNode,focusNode" class\x3d"dijitTreeLabel" role\x3d"treeitem"\n\t\t\t\t tabindex\x3d"-1" aria-selected\x3d"false" id\x3d"${id}_label"\x3e\x3c/span\x3e\n\t\t\x3c/span\n\t\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeNodeContainer" role\x3d"presentation"\n\t\t style\x3d"display: none;" aria-labelledby\x3d"${id}_label"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/Tree.html":'\x3cdiv role\x3d"tree"\x3e\n\t\x3cdiv class\x3d"dijitInline dijitTreeIndent" style\x3d"position: absolute; top: -9999px" data-dojo-attach-point\x3d"indentDetector"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTreeExpando dijitTreeExpandoLoading" data-dojo-attach-point\x3d"rootLoadingIndicator"\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeContainer" role\x3d"presentation"\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',"url:dijit/templates/Menu.html":'\x3ctable class\x3d"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role\x3d"menu" tabIndex\x3d"${tabIndex}"\n\t cellspacing\x3d"0"\x3e\n\t\x3ctbody class\x3d"dijitReset" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/tbody\x3e\n\x3c/table\x3e\n',
"url:dijit/templates/MenuItem.html":'\x3ctr class\x3d"dijitReset" data-dojo-attach-point\x3d"focusNode" role\x3d"menuitem" tabIndex\x3d"-1"\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemIconCell" role\x3d"presentation"\x3e\n\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitMenuItemIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemLabel" colspan\x3d"2" data-dojo-attach-point\x3d"containerNode,textDirNode"\n\t\trole\x3d"presentation"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemAccelKey" style\x3d"display: none" data-dojo-attach-point\x3d"accelKeyNode"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuArrowCell" role\x3d"presentation"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"arrowWrapper" style\x3d"visibility: hidden"\x3e\n\t\t\t\x3cspan class\x3d"dijitInline dijitIcon dijitMenuExpand"\x3e\x3c/span\x3e\n\t\t\t\x3cspan class\x3d"dijitMenuExpandA11y"\x3e+\x3c/span\x3e\n\t\t\x3c/span\x3e\n\t\x3c/td\x3e\n\x3c/tr\x3e\n',
"url:webview/widgets/templates/ModelBrowser.html":'\x3cdiv class\x3d"wvModelBrowser"\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"wvModelBrowserTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"wvModelBrowserTitleText"\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3cdiv data-dojo-attach-point\x3d"treeNode"\x3e\x3c/div\x3e\n\x3c/div\x3e',"url:dijit/layout/templates/TabContainer.html":'\x3cdiv class\x3d"dijitTabContainer"\x3e\n\t\x3cdiv class\x3d"dijitTabListWrapper" data-dojo-attach-point\x3d"tablistNode"\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"tablistSpacer" class\x3d"dijitTabSpacer ${baseClass}-spacer"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTabPaneWrapper ${baseClass}-container" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/form/templates/Button.html":'\x3cspan class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonNode"\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" role\x3d"presentation"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"titleNode,focusNode"\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitToggleButtonIconChar"\x3e\x26#x25CF;\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\x3e\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick"\n\t\ttabIndex\x3d"-1" aria-hidden\x3d"true" data-dojo-attach-point\x3d"valueNode"\n/\x3e\x3c/span\x3e\n',
"url:dijit/layout/templates/_TabButton.html":'\x3cdiv role\x3d"presentation" data-dojo-attach-point\x3d"titleNode,innerDiv,tabContent" class\x3d"dijitTabInner dijitTabContent"\x3e\n\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTabButtonIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3cspan data-dojo-attach-point\x3d\'containerNode,focusNode\' class\x3d\'tabLabel\'\x3e\x3c/span\x3e\n\t\x3cspan class\x3d"dijitInline dijitTabCloseButton dijitTabCloseIcon" data-dojo-attach-point\x3d\'closeNode\'\n\t\t role\x3d"presentation"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d\'closeText\' class\x3d\'dijitTabCloseText\'\x3e[x]\x3c/span\n\t\t\t\t\x3e\x3c/span\x3e\n\x3c/div\x3e\n',
"url:dijit/layout/templates/ScrollingTabController.html":'\x3cdiv class\x3d"dijitTabListContainer-${tabPosition}" style\x3d"visibility:hidden"\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerMenuButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_menuBtn"\n\t\t data-dojo-props\x3d"containerId: \'${containerId}\', iconClass: \'dijitTabStripMenuIcon\',\n\t\t\t\t\tdropDownPosition: [\'below-alt\', \'above-alt\']"\n\t\t data-dojo-attach-point\x3d"_menuBtn" showLabel\x3d"false" title\x3d""\x3e\x26#9660;\x3c/div\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_leftBtn"\n\t\t data-dojo-props\x3d"iconClass:\'dijitTabStripSlideLeftIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point\x3d"_leftBtn" data-dojo-attach-event\x3d"onClick: doSlideLeft"\x3e\x26#9664;\x3c/div\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_rightBtn"\n\t\t data-dojo-props\x3d"iconClass:\'dijitTabStripSlideRightIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point\x3d"_rightBtn" data-dojo-attach-event\x3d"onClick: doSlideRight"\x3e\x26#9654;\x3c/div\x3e\n\t\x3cdiv class\x3d\'dijitTabListWrapper\' data-dojo-attach-point\x3d\'tablistWrapper\'\x3e\n\t\t\x3cdiv role\x3d\'tablist\' data-dojo-attach-event\x3d\'onkeydown:onkeydown\'\n\t\t\t data-dojo-attach-point\x3d\'containerNode\' class\x3d\'nowrapTabStrip\'\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e',
"url:dijit/layout/templates/_ScrollingTabControllerButton.html":'\x3cdiv data-dojo-attach-event\x3d"ondijitclick:_onClick" class\x3d"dijitTabInnerDiv dijitTabContent dijitButtonContents" data-dojo-attach-point\x3d"focusNode" role\x3d"button"\x3e\n\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitTabStripIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3cspan data-dojo-attach-point\x3d"containerNode,titleNode" class\x3d"dijitButtonText"\x3e\x3c/span\x3e\n\x3c/div\x3e',"url:webview/widgets/templates/ModelGraphicsPane.html":'\x3cdiv id\x3d${id} \n class\x3d"model-graphics-widget"\n tabindex\x3d"0"\x3e\n \x3cdiv data-dojo-attach-point\x3d"CanvasNode" \n class\x3d"model-graphics-canvas"\x3e\n \x3c/div\x3e\n\x3c/div\x3e',
"url:webview/widgets/templates/LightBox.html":'\x3cdiv class\x3d"lightbox-widget"\x3e\n \x3cdiv class\x3d\'dijitDialogUnderlay\'\n tabIndex\x3d\'-1\'\n id\x3d"${id}_underlay"\n data-dojo-attach-point\x3d\'underlayNode\'\x3e\n \x3c/div\x3e\n\n \x3cdiv class\x3d"dijitDialog dijitDialogFixed"\n tabindex\x3d"0"\n role\x3d"dialog"\n aria-labelledby\x3d"${id}_title"\n data-dojo-attach-point\x3d"dialogNode"\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar"\n class\x3d"dijitDialogTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode"\n class\x3d"dijitDialogTitle"\n id\x3d"${id}_title"\n role\x3d"heading"\n level\x3d"1"\x3e\x3c/span\x3e\n \x3cspan data-dojo-attach-point\x3d"closeButtonNode"\n class\x3d"dijitDialogCloseIcon"\n data-dojo-attach-event\x3d"onclick:close"\n title\x3d"${buttonCancel}"\n role\x3d"button"\n tabindex\x3d"0"\x3e\x3cspan data-dojo-attach-point\x3d"closeText"\n class\x3d"closeText"\n title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3cdiv data-dojo-attach-point\x3d"contentNode"\n class\x3d"dijitDialogPaneContent"\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\x3c/div\x3e',
"url:webview/palette/templates/Palette.html":'\x3cdiv class\x3d"palette-widget" \n role\x3d"toolbar"\n data-dojo-attach-point\x3d"containerNode"\x3e\n\x3c/div\x3e\n\n',"url:dijit/templates/Tooltip.html":'\x3cdiv class\x3d"dijitTooltip dijitTooltipLeft" id\x3d"dojoTooltip" data-dojo-attach-event\x3d"mouseenter:onMouseEnter,mouseleave:onMouseLeave"\n\t\x3e\x3cdiv class\x3d"dijitTooltipConnector" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point\x3d"containerNode" role\x3d\'alert\'\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:webview/palette/templates/PaletteSeparator.html":'\x3cdiv id\x3d${id}\n class\x3d"palette-separator"\n role\x3d"presentation"\x3e\n \x3cdiv class\x3d"palette-separator-icon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n\n',"url:webview/search/templates/SearchResultsPane.html":'\x3cdiv class\x3d"wvSearchResultsPane" data-dojo-attach-point\x3d"focusNode" tabIndex\x3d"-1"\x3e\n\x3c!-- revisit focusNOde--\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"wvSearchResultsPaneTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"wvSearchResultsPaneTitleText"\x3e\x3c/span\x3e\n \x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n data-dojo-attach-event\x3d"onclick:close"\x3e\x3c/span\x3e\n \x3c/div\x3e \n \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"wvSearchResultsPaneContent"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/form/templates/DropDownButton.html":'\x3cspan class\x3d"dijit dijitReset dijitInline"\n\t\x3e\x3cspan class\x3d\'dijitReset dijitInline dijitButtonNode\'\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" data-dojo-attach-point\x3d"_buttonNode"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"focusNode,titleNode,_arrowWrapperNode,_popupStateNode"\n\t\t\trole\x3d"button" aria-haspopup\x3d"true" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon"\n\t\t\t\tdata-dojo-attach-point\x3d"iconNode"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonInner"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonChar"\x3e\x26#9660;\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen" tabIndex\x3d"-1"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick" data-dojo-attach-point\x3d"valueNode" aria-hidden\x3d"true"\n/\x3e\x3c/span\x3e\n',
"url:dijit/form/templates/TextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft" id\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',"url:dijit/templates/TooltipDialog.html":'\x3cdiv role\x3d"alertdialog" tabIndex\x3d"-1"\x3e\n\t\x3cdiv class\x3d"dijitTooltipContainer" role\x3d"presentation"\x3e\n\t\t\x3cdiv data-dojo-attach-point\x3d"contentsNode" class\x3d"dijitTooltipContents dijitTooltipFocusNode"\x3e\n\t\t\t\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\n\t\t\t${!actionBarTemplate}\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTooltipConnector" role\x3d"presentation" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/form/templates/CheckBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cinput\n\t \t${!nameAttrSetting} type\x3d"${type}" role\x3d"${type}" aria-checked\x3d"false" ${checkedAttrSetting}\n\t\tclass\x3d"dijitReset dijitCheckBoxInput"\n\t\tdata-dojo-attach-point\x3d"focusNode"\n\t \tdata-dojo-attach-event\x3d"ondijitclick:_onClick"\n/\x3e\x3c/div\x3e\n',"url:webview/search/templates/SearchFieldsPanel.html":'\x3ctable\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-name"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-name-label" for\x3d"${id}-name"\x3eName\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-blockType"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-blockType-label" for\x3d"${id}-blockType"\x3eBlockType\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-maskType"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-maskType-label" for\x3d"${id}-maskType"\x3eMaskType\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-propertyName"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-propertyName-label" for\x3d"${id}-propertyName"\x3eProperty Name\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-propertyValue"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-propertyValue-label" for\x3d"${id}-propertyValue"\x3eProperty Value\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n\x3c/table\x3e',
"url:webview/search/templates/InlineSearch.html":'\x3cdiv class\x3d"wvInlineSearch"\x3e\x3cdiv data-dojo-attach-point\x3d"fieldsButtonNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"formNode"\x3e\x3cdiv data-dojo-attach-point\x3d"textBoxNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"searchButtonNode"\x3e\x3c/div\x3e\x3c/div\x3e',"url:webview/widgets/templates/SystemButton.html":'\x3cdiv class\x3d"system-button-widget dijit dijitReset dijitInline dijitLeft"\n role\x3d"presentation"\x3e\n \x3cdiv role\x3d"presentation"\x3e\n \x3cdiv role\x3d"presentation"\x3e\n \x3cdiv data-dojo-attach-point\x3d"buttonNode"\x3e\x3c/div\x3e\n \x3cdiv data-dojo-attach-point\x3d"arrowButtonNode"\x3e\x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/TitlePane.html":'\x3cdiv\x3e\n\t\x3cdiv data-dojo-attach-event\x3d"ondijitclick:_onTitleClick, onkeydown:_onTitleKey"\n\t\t\tclass\x3d"dijitTitlePaneTitle" data-dojo-attach-point\x3d"titleBarNode" id\x3d"${id}_titleBarNode"\x3e\n\t\t\x3cdiv class\x3d"dijitTitlePaneTitleFocus" data-dojo-attach-point\x3d"focusNode"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"arrowNode" class\x3d"dijitInline dijitArrowNode" role\x3d"presentation"\x3e\x3c/span\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"arrowNodeInner" class\x3d"dijitArrowNodeInner"\x3e\x3c/span\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitTitlePaneTextNode"\x3e\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTitlePaneContentOuter" data-dojo-attach-point\x3d"hideNode" role\x3d"presentation"\x3e\n\t\t\x3cdiv class\x3d"dijitReset" data-dojo-attach-point\x3d"wipeNode" role\x3d"presentation"\x3e\n\t\t\t\x3cdiv class\x3d"dijitTitlePaneContentInner" data-dojo-attach-point\x3d"containerNode" role\x3d"region" id\x3d"${id}_pane" aria-labelledby\x3d"${id}_titleBarNode"\x3e\n\t\t\t\t\x3c!-- nested divs because wipeIn()/wipeOut() doesn\'t work right on node w/padding etc. Put padding on inner div. --\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:webview/widgets/templates/ModelInspector.html":'\x3cdiv class\x3d"wvModelInspector"\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"wvModelInspectorTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"wvModelInspectorTitleText"\x3e\x3c/span\x3e\n \x3c/div\x3e \n \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"wvModelInspectorContainer"\x3e\x3c/div\x3e\n\x3c/div\x3e\n\n',"url:webview/widgets/templates/Informer.html":'\x3cdiv class\x3d"wvInformer"\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"wvInformerTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"wvInformerTitleText"\x3e\x3c/span\x3e\n \x3c/div\x3e \n \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"wvInformerContent"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/Dialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\n\t\t\t\trole\x3d"heading" level\x3d"1"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"${buttonCancel}" role\x3d"button" tabindex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\n\t\t\x3c/span\x3e\n\t\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\x3c/div\x3e\n\t${!actionBarTemplate}\n\x3c/div\x3e\n\n',
"*now":function(e){e(['dojo/i18n!*preload*webview/nls/webview*["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","ROOT"]'])}}});(function(){var e=this.require;e({cache:{}});!e.async&&e(["dojo"]);e.boot&&e.apply(null,e.boot)})();
//# sourceMappingURL=webview.js.map