//>>built
require({cache:{"app/App":function(){define("dojo/_base/declare dojo/_base/lang dojo/promise/all dijit/_WidgetBase ./ui/AppUi ./controllers/ConceptSchemeController ./controllers/ConceptController ./controllers/LanguageController ./controllers/ListController dGrowl".split(" "),function(h,l,m,n,f,d,k,e,c,a){return h([n],{appConfig:null,_controllers:null,languageManager:null,postCreate:function(){this.inherited(arguments);this._controllers={};this._controllers.conceptSchemeController=new d({});this._controllers.conceptController=
new k({});this._controllers.languageController=new e({});this._controllers.listController=new c({});new a({channels:[{name:"info",pos:3},{name:"error",pos:1},{name:"warn",pos:2}]})},startup:function(){this.inherited(arguments);var a=this._controllers.conceptSchemeController.loadConceptSchemeStores();m({conceptScheme:a}).then(l.hitch(this,function(a){(new f({loadingContainer:this.appConfig.loadingContainer,appContainer:this.appConfig.appContainer,staticAppPath:this.appConfig.staticAppPath,conceptSchemeController:this._controllers.conceptSchemeController,
conceptController:this._controllers.conceptController,languageController:this._controllers.languageController,listController:this._controllers.listController},this.appConfig.appContainer)).startup()}),l.hitch(this,function(a){window.alert("Startup error: \n\nThere was a problem connecting to the backend services, the application cannot be started.")}))}})})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(h,l,m){function n(a,b){throw Error("declare"+(b?" "+b:"")+": "+
a);}function f(a,b){for(var g=[],c=[{cls:0,refs:[]}],q={},p=1,r=a.length,t=0,d,e,f,k,u;t<r;++t){(d=a[t])?"[object Function]"!=C.call(d)&&n("mixin #"+t+" is not a callable constructor.",b):n("mixin #"+t+" is unknown. Did you use dojo.require to pull it in?",b);e=d._meta?d._meta.bases:[d];f=0;for(d=e.length-1;0<=d;--d)k=e[d].prototype,k.hasOwnProperty("declaredClass")||(k.declaredClass="uniqName_"+z++),k=k.declaredClass,q.hasOwnProperty(k)||(q[k]={count:0,refs:[],cls:e[d]},++p),k=q[k],f&&f!==k&&(k.refs.push(f),
++f.count),f=k;++f.count;c[0].refs.push(f)}for(;c.length;){f=c.pop();g.push(f.cls);for(--p;u=f.refs,1==u.length;){f=u[0];if(!f||--f.count){f=0;break}g.push(f.cls);--p}if(f)for(t=0,r=u.length;t<r;++t)f=u[t],--f.count||c.push(f)}p&&n("can't build consistent linearization",b);d=a[0];g[0]=d?d._meta&&d===g[g.length-d._meta.bases.length]?d._meta.bases.length:1:0;return g}function d(a,b,g){var c,q,p,r,t,d,e,f=this._inherited=this._inherited||{};"string"==typeof a&&(c=a,a=b,b=g);g=0;r=a.callee;(c=c||r.nom)||
n("can't deduce a name to call inherited()",this.declaredClass);t=this.constructor._meta;p=t.bases;e=f.p;if("constructor"!=c){if(f.c!==r&&(e=0,d=p[0],t=d._meta,t.hidden[c]!==r)){(q=t.chains)&&"string"==typeof q[c]&&n("calling chained method with inherited: "+c,this.declaredClass);do if(t=d._meta,q=d.prototype,t&&(q[c]===r&&q.hasOwnProperty(c)||t.hidden[c]===r))break;while(d=p[++e]);e=d?e:-1}if(d=p[++e])if(q=d.prototype,d._meta&&q.hasOwnProperty(c))g=q[c];else{r=A[c];do if(q=d.prototype,(g=q[c])&&
(d._meta?q.hasOwnProperty(c):g!==r))break;while(d=p[++e])}g=d&&g||A[c]}else{if(f.c!==r&&(e=0,(t=p[0]._meta)&&t.ctor!==r)){for((q=t.chains)&&"manual"===q.constructor||n("calling chained constructor with inherited",this.declaredClass);(d=p[++e])&&(!(t=d._meta)||t.ctor!==r););e=d?e:-1}for(;(d=p[++e])&&!(g=(t=d._meta)?t.ctor:d););g=d&&g}f.c=g;f.p=e;if(g)return!0===b?g:g.apply(this,b||a)}function k(a,b){return"string"==typeof a?this.__inherited(a,b,!0):this.__inherited(a,!0)}function e(a,b,g){var c=this.getInherited(a,
b);if(c)return c.apply(this,g||b||a)}function c(a){for(var b=this.constructor._meta.bases,g=0,c=b.length;g<c;++g)if(b[g]===a)return!0;return this instanceof a}function a(a,b){for(var g in b)"constructor"!=g&&b.hasOwnProperty(g)&&(a[g]=b[g]);if(l("bug-for-in-skips-shadowed"))for(var c=m._extraNames,q=c.length;q;)g=c[--q],"constructor"!=g&&b.hasOwnProperty(g)&&(a[g]=b[g])}function b(a){B.safeMixin(this.prototype,a);return this}function r(a,b){a instanceof Array||"function"==typeof a||(b=a,a=void 0);
b=b||{};a=a||[];return B([this].concat(a),b)}function p(a,b){return function(){var g=arguments,c=g,q=g[0],p,t;t=a.length;var r;if(!(this instanceof g.callee))return w(g);if(b&&(q&&q.preamble||this.preamble))for(r=Array(a.length),r[0]=g,p=0;;){(q=g[0])&&(q=q.preamble)&&(g=q.apply(this,g)||g);q=a[p].prototype;(q=q.hasOwnProperty("preamble")&&q.preamble)&&(g=q.apply(this,g)||g);if(++p==t)break;r[p]=g}for(p=t-1;0<=p;--p)q=a[p],(q=(t=q._meta)?t.ctor:q)&&q.apply(this,r?r[p]:g);(q=this.postscript)&&q.apply(this,
c)}}function u(a,b){return function(){var g=arguments,c=g,q=g[0];if(!(this instanceof g.callee))return w(g);b&&(q&&(q=q.preamble)&&(c=q.apply(this,c)||c),(q=this.preamble)&&q.apply(this,c));a&&a.apply(this,g);(q=this.postscript)&&q.apply(this,g)}}function t(a){return function(){var b=arguments,g=0,c,q;if(!(this instanceof b.callee))return w(b);for(;c=a[g];++g)if(c=(q=c._meta)?q.ctor:c){c.apply(this,b);break}(c=this.postscript)&&c.apply(this,b)}}function g(a,b,g){return function(){var c,q,p=0,t=1;
g&&(p=b.length-1,t=-1);for(;c=b[p];p+=t)q=c._meta,(c=(q?q.hidden:c.prototype)[a])&&c.apply(this,arguments)}}function q(a){v.prototype=a.prototype;a=new v;v.prototype=null;return a}function w(a){var b=a.callee,g=q(b);b.apply(g,a);return g}function B(e,w,h){"string"!=typeof e&&(h=w,w=e,e="");h=h||{};var v,z,y,D,F,H,I,G=1,R=w;"[object Array]"==C.call(w)?(H=f(w,e),y=H[0],G=H.length-y,w=H[G]):(H=[0],w?"[object Function]"==C.call(w)?(y=w._meta,H=H.concat(y?y.bases:w)):n("base class is not a callable constructor.",
e):null!==w&&n("unknown base class. Did you use dojo.require to pull it in?",e));if(w)for(z=G-1;;--z){v=q(w);if(!z)break;y=H[z];(y._meta?a:x)(v,y.prototype);D=l("csp-restrictions")?function(){}:new Function;D.superclass=w;D.prototype=v;w=v.constructor=D}else v={};B.safeMixin(v,h);y=h.constructor;y!==A.constructor&&(y.nom="constructor",v.constructor=y);for(z=G-1;z;--z)(y=H[z]._meta)&&y.chains&&(I=x(I||{},y.chains));v["-chains-"]&&(I=x(I||{},v["-chains-"]));w&&w.prototype&&w.prototype["-chains-"]&&
(I=x(I||{},w.prototype["-chains-"]));y=!I||!I.hasOwnProperty("constructor");H[0]=D=I&&"manual"===I.constructor?t(H):1==H.length?u(h.constructor,y):p(H,y);D._meta={bases:H,hidden:h,chains:I,parents:R,ctor:h.constructor};D.superclass=w&&w.prototype;D.extend=b;D.createSubclass=r;D.prototype=v;v.constructor=D;v.getInherited=k;v.isInstanceOf=c;v.inherited=E;v.__inherited=d;e&&(v.declaredClass=e,m.setObject(e,D));if(I)for(F in I)v[F]&&"string"==typeof I[F]&&"constructor"!=F&&(y=v[F]=g(F,H,"after"===I[F]),
y.nom=F);return D}var x=m.mixin,A=Object.prototype,C=A.toString,v,z=0;v=l("csp-restrictions")?function(){}:new Function;var E=h.config.isDebug?e:d;h.safeMixin=B.safeMixin=function(a,b){var g,c;for(g in b)c=b[g],c===A[g]&&g in A||"constructor"==g||("[object Function]"==C.call(c)&&(c.nom=g),a[g]=c);if(l("bug-for-in-skips-shadowed")&&b)for(var q=m._extraNames,p=q.length;p;)g=q[--p],c=b[g],c===A[g]&&g in A||"constructor"==g||("[object Function]"==C.call(c)&&(c.nom=g),a[g]=c);return a};return h.declare=
B})},"dojo/promise/all":function(){define(["../_base/array","../_base/lang","../Deferred","../when"],function(h,l,m,n){var f=h.some;return function(d){var k,e;l.isArray(d)?e=d:d&&"object"===typeof d&&(k=d);var c,a=[];if(k){e=[];for(var b in k)Object.hasOwnProperty.call(k,b)&&(a.push(b),e.push(k[b]));c={}}else e&&(c=[]);if(!e||!e.length)return(new m).resolve(c);var r=new m;r.promise.always(function(){c=a=null});var p=e.length;f(e,function(b,t){k||a.push(t);n(b,function(b){r.isFulfilled()||(c[a[t]]=
b,0===--p&&r.resolve(c))},r.reject);return r.isFulfilled()});return r.promise}})},"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 dojo/has!dojo-bidi?./_BidiMixin ./registry".split(" "),function(h,l,m,n,f,d,k,
e,c,a,b,r,p,u,t,g,q,w,B,x,A,C,v){function z(a){return function(b){e[b?"set":"remove"](this.domNode,a,b);this._set(a,b)}}p.add("dijit-legacy-requires",!u.isAsync);p.add("dojo-bidi",!1);p("dijit-legacy-requires")&&q(0,function(){h(["dijit/_base/manager"])});var E={};n=d("dijit._WidgetBase",[w,A],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:z("lang"),dir:"",_setDirAttr:z("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:n.blankGif||h.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var a=this.constructor;if(!a._setterAttrs){var b=a.prototype,g=a._setterAttrs=[],a=a._onMap={},c;for(c in b.attributeMap)g.push(c);for(c in b)/^on/.test(c)&&(a[c.substring(2).toLowerCase()]=c),/^_set[A-Z](.*)Attr$/.test(c)&&(c=c.charAt(4).toLowerCase()+c.substr(5,c.length-9),b.attributeMap&&
c in b.attributeMap||g.push(c))}},postscript:function(a,b){this.create(a,b)},create:function(a,b){this._introspect();this.srcNodeRef=k.byId(b);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);a&&(this.params=a,t.mixin(this,a));this.postMixInProperties();this.id||(this.id=v.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=this.ownerDocument||(this.srcNodeRef?
this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=x.body(this.ownerDocument);v.add(this);this.buildRendering();var g;if(this.domNode){this._applyAttributes();var c=this.srcNodeRef;c&&c.parentNode&&this.domNode!==c&&(c.parentNode.replaceChild(this.domNode,c),g=!0);this.domNode.setAttribute("widgetId",this.id)}this.postCreate();g&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a={},b;for(b in this.params||{})a[b]=this._get(b);l.forEach(this.constructor._setterAttrs,
function(b){if(!(b in a)){var g=this._get(b);g&&this.set(b,g)}},this);for(b in a)this.set(b,a[b])},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(l.map(a,function(a){return a+"Rtl"})));c.add(this.domNode,a)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,l.forEach(this.getChildren(),function(a){a._started||
a._destroyed||!t.isFunction(a.startup)||(a.startup(),a._started=!0)}))},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){function b(b){b.destroyRecursive?b.destroyRecursive(a):b.destroy&&b.destroy(a)}this._beingDestroyed=!0;this.uninitialize();l.forEach(this._connects,t.hitch(this,"disconnect"));l.forEach(this._supportingWidgets,b);this.domNode&&l.forEach(v.findWidgets(this.domNode,this.containerNode),b);this.destroyRendering(a);
v.remove(this.id);this._destroyed=!0},destroyRendering:function(b){this.bgIframe&&(this.bgIframe.destroy(b),delete this.bgIframe);this.domNode&&(b?e.remove(this.domNode,"widgetId"):a.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(b||a.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){l.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var b=this.domNode;t.isObject(a)?
r.set(b,a):b.style.cssText=b.style.cssText?b.style.cssText+("; "+a):a;this._set("style",a)},_attrToDom:function(a,b,g){g=3<=arguments.length?g:this.attributeMap[a];l.forEach(t.isArray(g)?g:[g],function(g){var q=this[g.node||g||"domNode"];switch(g.type||"attribute"){case "attribute":t.isFunction(b)&&(b=t.hitch(this,b));g=g.attribute?g.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;q.tagName?e.set(q,g,b):q.set(g,b);break;case "innerText":q.innerHTML="";q.appendChild(this.ownerDocument.createTextNode(b));
break;case "innerHTML":q.innerHTML=b;break;case "class":c.replace(q,b,this[a]);break;case "toggleClass":c.toggle(q,g.className||a,b)}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this._get(a)},set:function(a,b){if("object"===typeof a){for(var g in a)this.set(g,a[g]);return this}g=this._getAttrNames(a);var c=this[g.s];if(t.isFunction(c))var q=c.apply(this,Array.prototype.slice.call(arguments,1));else{var c=this.focusNode&&!t.isFunction(this.focusNode)?"focusNode":
"domNode",p=this[c]&&this[c].tagName,r;if((r=p)&&!(r=E[p])){r=this[c];var d={},e;for(e in r)d[e.toLowerCase()]=!0;r=E[p]=d}e=r;g=a in this.attributeMap?this.attributeMap[a]:g.s in this?this[g.s]:e&&g.l in e&&"function"!=typeof b||/^aria-|^data-|^role$/.test(a)?c:null;null!=g&&this._attrToDom(a,b,g);this._set(a,b)}return q||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var g=a.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length-1).toUpperCase()});
return b[a]={n:a+"Node",s:"_set"+g+"Attr",g:"_get"+g+"Attr",l:g.toLowerCase()}},_set:function(a,b){var g=this[a];this[a]=b;!this._created||g===b||g!==g&&b!==b||(this._watchCallbacks&&this._watchCallbacks(a,g,b),this.emit("attrmodified-"+a,{detail:{prevValue:g,newValue:b}}))},_get:function(a){return this[a]},emit:function(a,b,c){b=b||{};void 0===b.bubbles&&(b.bubbles=!0);void 0===b.cancelable&&(b.cancelable=!0);b.detail||(b.detail={});b.detail.widget=this;var q,p=this["on"+a];p&&(q=p.apply(this,c?
c:[b]));this._started&&!this._beingDestroyed&&g.emit(this.domNode,a.toLowerCase(),b);return q},on:function(a,b){var c=this._onMap(a);return c?m.after(this,c,b,!0):this.own(g(this.domNode,a,b))[0]},_onMap:function(a){var b=this.constructor,g=b._onMap;if(!g){var g=b._onMap={},c;for(c in b.prototype)/^on/.test(c)&&(g[c.replace(/^on/,"").toLowerCase()]=c)}return g["string"==typeof a&&a.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?
v.findWidgets(this.containerNode):[]},getParent:function(){return v.getEnclosingWidget(this.domNode.parentNode)},connect:function(a,b,g){return this.own(f.connect(a,b,this,g))[0]},disconnect:function(a){a.remove()},subscribe:function(a,b){return this.own(B.subscribe(a,t.hitch(this,b)))[0]},unsubscribe:function(a){a.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():b.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=r.get(this.domNode,"display")},
placeAt:function(b,g){var c=!b.tagName&&v.byId(b);!c||!c.addChild||g&&"number"!==typeof g?(c=c&&"domNode"in c?c.containerNode&&!/after|before|replace/.test(g||"")?c.containerNode:c.domNode:k.byId(b,this.ownerDocument),a.place(this.domNode,c,g),!this._started&&(this.getParent()||{})._started&&this.startup()):c.addChild(this,g);return this},defer:function(a,b){var g=setTimeout(t.hitch(this,function(){g&&(g=null,this._destroyed||t.hitch(this,a)())}),b||0);return{remove:function(){g&&(clearTimeout(g),
g=null);return null}}}});p("dojo-bidi")&&n.extend(C);return n})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),function(h,l,m,n,f,d,k,e){function c(a,b,c,p,r){p=e.hitch(c,p);if(!a||!a.addEventListener&&!a.attachEvent)return n.after(a||h.global,b,p,!0);"string"==typeof b&&"on"==b.substring(0,2)&&(b=b.substring(2));a||(a=h.global);if(!r)switch(b){case "keypress":b=u;break;case "mouseenter":b=d.enter;break;case "mouseleave":b=
d.leave}return l(a,b,p,r)}function a(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}k.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(q){}return 0==a.charCode&&!k("opera")});var b={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},r=k("mac")?"metaKey":"ctrlKey",
p=function(b,c){var g=e.mixin({},b,c);a(g);g.preventDefault=function(){b.preventDefault()};g.stopPropagation=function(){b.stopPropagation()};return g},u;u=k("events-keypress-typed")?function(a,c){var g=l(a,"keydown",function(a){var g=a.keyCode,q=13!=g&&32!=g&&(27!=g||!k("ie"))&&(48>g||90<g)&&(96>g||111<g)&&(186>g||192<g)&&(219>g||222<g)&&229!=g;if(q||a.ctrlKey){q=q?0:g;if(a.ctrlKey){if(3==g||13==g)return c.call(a.currentTarget,a);q=95<q&&106>q?q-48:!a.shiftKey&&65<=q&&90>=q?q+32:b[q]||q}g=p(a,{type:"keypress",
faux:!0,charCode:q});c.call(a.currentTarget,g);if(k("ie"))try{a.keyCode=g.keyCode}catch(v){}}}),q=l(a,"keypress",function(a){var b=a.charCode;a=p(a,{charCode:32<=b?b:0,faux:!0});return c.call(this,a)});return{remove:function(){g.remove();q.remove()}}}:k("opera")?function(a,b){return l(a,"keypress",function(a){var g=a.which;3==g&&(g=99);g=32>g&&!a.shiftKey?0:g;a.ctrlKey&&!a.shiftKey&&65<=g&&90>=g&&(g+=32);return b.call(this,p(a,{charCode:g}))})}:function(b,c){return l(b,"keypress",function(b){a(b);
return c.call(this,b)})};var t={_keypress:u,connect:function(a,b,p,r,t){var g=arguments,q=[],d=0;q.push("string"==typeof g[0]?null:g[d++],g[d++]);var e=g[d+1];q.push("string"==typeof e||"function"==typeof e?g[d++]:null,g[d++]);for(e=g.length;d<e;d++)q.push(g[d]);return c.apply(this,q)},disconnect:function(a){a&&a.remove()},subscribe:function(a,b,c){return m.subscribe(a,e.hitch(b,c))},publish:function(a,b){return m.publish.apply(m,[a].concat(b))},connectPublisher:function(a,b,c){var g=function(){t.publish(a,
arguments)};return c?t.connect(b,c,g):t.connect(b,g)},isCopyKey:function(a){return a[r]}};t.unsubscribe=t.disconnect;e.mixin(h,t);return t})},"dojo/topic":function(){define(["./Evented"],function(h){var l=new h;return{publish:function(h,n){return l.emit.apply(l,arguments)},subscribe:function(h,n){return l.on.apply(l,arguments)}}})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(h,l,m,n){if(l._fixEvent){var f=l._fixEvent;l._fixEvent=function(d,e){(d=f(d,
e))&&n.normalizeEvent(d);return d}}var d={fix:function(d,e){return l._fixEvent?l._fixEvent(d,e):d},stop:function(d){m("dom-addeventlistener")||d&&d.preventDefault?(d.preventDefault(),d.stopPropagation()):(d=d||window.event,d.cancelBubble=!0,l._preventDefault.call(d))}};h.fixEvent=d.fix;h.stopEvent=d.stop;return d})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(h,l,m,n){function f(a,b,c,p,d,t){t=t||"px";a=a.style;isNaN(b)||(a.left=b+t);isNaN(c)||
(a.top=c+t);0<=p&&(a.width=p+t);0<=d&&(a.height=d+t)}function d(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function k(a){return"border-box"==e.boxModel||"table"==a.tagName.toLowerCase()||d(a)}var e={boxModel:"content-box"};h("ie")&&(e.boxModel="BackCompat"==document.compatMode?"border-box":"content-box");e.getPadExtents=function(a,b){a=m.byId(a);var c=b||n.getComputedStyle(a),p=n.toPixelValue,d=p(a,c.paddingLeft),
t=p(a,c.paddingTop),g=p(a,c.paddingRight),c=p(a,c.paddingBottom);return{l:d,t:t,r:g,b:c,w:d+g,h:t+c}};e.getBorderExtents=function(a,b){a=m.byId(a);var c=n.toPixelValue,p=b||n.getComputedStyle(a),d="none"!=p.borderLeftStyle?c(a,p.borderLeftWidth):0,t="none"!=p.borderTopStyle?c(a,p.borderTopWidth):0,g="none"!=p.borderRightStyle?c(a,p.borderRightWidth):0,c="none"!=p.borderBottomStyle?c(a,p.borderBottomWidth):0;return{l:d,t:t,r:g,b:c,w:d+g,h:t+c}};e.getPadBorderExtents=function(a,b){a=m.byId(a);var c=
b||n.getComputedStyle(a),p=e.getPadExtents(a,c),c=e.getBorderExtents(a,c);return{l:p.l+c.l,t:p.t+c.t,r:p.r+c.r,b:p.b+c.b,w:p.w+c.w,h:p.h+c.h}};e.getMarginExtents=function(a,b){a=m.byId(a);var c=b||n.getComputedStyle(a),p=n.toPixelValue,d=p(a,c.marginLeft),t=p(a,c.marginTop),g=p(a,c.marginRight),c=p(a,c.marginBottom);return{l:d,t:t,r:g,b:c,w:d+g,h:t+c}};e.getMarginBox=function(a,b){a=m.byId(a);var c=b||n.getComputedStyle(a),c=e.getMarginExtents(a,c),p=a.offsetLeft-c.l,d=a.offsetTop-c.t,t=a.parentNode,
g=n.toPixelValue;8==h("ie")&&!h("quirks")&&t&&(t=n.getComputedStyle(t),p-="none"!=t.borderLeftStyle?g(a,t.borderLeftWidth):0,d-="none"!=t.borderTopStyle?g(a,t.borderTopWidth):0);return{l:p,t:d,w:a.offsetWidth+c.w,h:a.offsetHeight+c.h}};e.getContentBox=function(a,b){a=m.byId(a);var c=b||n.getComputedStyle(a),p=a.clientWidth,d,t=e.getPadExtents(a,c);d=e.getBorderExtents(a,c);var c=a.offsetLeft+t.l+d.l,g=a.offsetTop+t.t+d.t;p?d=a.clientHeight:(p=a.offsetWidth-d.w,d=a.offsetHeight-d.h);if(8==h("ie")&&
!h("quirks")){var q=a.parentNode,f=n.toPixelValue;q&&(q=n.getComputedStyle(q),c-="none"!=q.borderLeftStyle?f(a,q.borderLeftWidth):0,g-="none"!=q.borderTopStyle?f(a,q.borderTopWidth):0)}return{l:c,t:g,w:p-t.w,h:d-t.h}};e.setContentSize=function(a,b,c){a=m.byId(a);var d=b.w;b=b.h;k(a)&&(c=e.getPadBorderExtents(a,c),0<=d&&(d+=c.w),0<=b&&(b+=c.h));f(a,NaN,NaN,d,b)};var c={l:0,t:0,w:0,h:0};e.setMarginBox=function(a,b,r){a=m.byId(a);var p=r||n.getComputedStyle(a);r=b.w;var u=b.h,t=k(a)?c:e.getPadBorderExtents(a,
p),p=e.getMarginExtents(a,p);if(h("webkit")&&d(a)){var g=a.style;0<=r&&!g.width&&(g.width="4px");0<=u&&!g.height&&(g.height="4px")}0<=r&&(r=Math.max(r-t.w-p.w,0));0<=u&&(u=Math.max(u-t.h-p.h,0));f(a,b.l,b.t,r,u)};e.isBodyLtr=function(a){a=a||l.doc;return"ltr"==(l.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};e.docScroll=function(a){a=a||l.doc;var b=a.parentWindow||a.defaultView;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=h("quirks")?l.body(a):a.documentElement)&&{x:e.fixIeBiDiScrollLeft(b.scrollLeft||
0,a),y:b.scrollTop||0}};e.getIeDocumentElementOffset=function(a){return{x:0,y:0}};e.fixIeBiDiScrollLeft=function(a,b){b=b||l.doc;var c=h("ie");if(c&&!e.isBodyLtr(b)){var d=h("quirks"),f=d?l.body(b):b.documentElement,t=l.global;6==c&&!d&&t.frameElement&&f.scrollHeight>f.clientHeight&&(a+=f.clientLeft);return 8>c||d?a+f.clientWidth-f.scrollWidth:-a}return a};e.position=function(a,b){a=m.byId(a);var c=l.body(a.ownerDocument),d=a.getBoundingClientRect(),d={x:d.left,y:d.top,w:d.right-d.left,h:d.bottom-
d.top};9>h("ie")&&(d.x-=h("quirks")?c.clientLeft+c.offsetLeft:0,d.y-=h("quirks")?c.clientTop+c.offsetTop:0);b&&(c=e.docScroll(a.ownerDocument),d.x+=c.x,d.y+=c.y);return d};e.getMarginSize=function(a,b){a=m.byId(a);var c=e.getMarginExtents(a,b||n.getComputedStyle(a)),d=a.getBoundingClientRect();return{w:d.right-d.left+c.w,h:d.bottom-d.top+c.h}};e.normalizeEvent=function(a){"layerX"in a||(a.layerX=a.offsetX,a.layerY=a.offsetY);if(!("pageX"in a)){var b=a.target,b=b&&b.ownerDocument||document,c=h("quirks")?
b.body:b.documentElement;a.pageX=a.clientX+e.fixIeBiDiScrollLeft(c.scrollLeft||0,b);a.pageY=a.clientY+(c.scrollTop||0)}};return e})},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(h,l,m){function n(a,c,g){c=c.toLowerCase();if("auto"==g){if("height"==c)return a.offsetHeight;if("width"==c)return a.offsetWidth}if("fontweight"==c)switch(g){case 700:return"bold";default:return"normal"}c in b||(b[c]=r.test(c));return b[c]?k(a,g):g}var f,d={};f=h("webkit")?function(a){var b;
if(1==a.nodeType){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null);!b&&a.style&&(a.style.display="",b=c.getComputedStyle(a,null))}return b||{}}:h("ie")&&(9>h("ie")||h("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){if(1===a.nodeType){var b=a.ownerDocument.defaultView;return(b.opener?b:m.global.window).getComputedStyle(a,null)}return{}};d.getComputedStyle=f;var k;k=h("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==
b.slice(-2))return parseFloat(b);var c=a.style,q=a.runtimeStyle,d=c.left,p=q.left;q.left=a.currentStyle.left;try{c.left=b,b=c.pixelLeft}catch(x){b=0}c.left=d;q.left=p;return b}:function(a,b){return parseFloat(b)||0};d.toPixelValue=k;var e=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(g){return b?{}:null}},c=9>h("ie")||10>h("ie")&&h("quirks")?function(a){try{return e(a).Opacity/100}catch(t){return 1}}:function(a){return f(a).opacity},a=9>h("ie")||10>h("ie")&&h("quirks")?
function(b,c){""===c&&(c=1);var g=100*c;1===c?(b.style.zoom="",e(b)&&(b.style.filter=b.style.filter.replace(/\s*progid:DXImageTransform.Microsoft.Alpha\([^\)]+?\)/i,""))):(b.style.zoom=1,e(b)?e(b,1).Opacity=g:b.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+g+")",e(b,1).Enabled=!0);if("tr"==b.tagName.toLowerCase())for(g=b.firstChild;g;g=g.nextSibling)"td"==g.tagName.toLowerCase()&&a(g,c);return c}:function(a,b){return a.style.opacity=b},b={left:!0,top:!0},r=/margin|padding|width|height|max|min|offset/,
p={cssFloat:1,styleFloat:1,"float":1};d.get=function(a,b){var g=l.byId(a),q=arguments.length;if(2==q&&"opacity"==b)return c(g);b=p[b]?"cssFloat"in g.style?"cssFloat":"styleFloat":b;var e=d.getComputedStyle(g);return 1==q?e:n(g,b,e[b]||g.style[b])};d.set=function(b,c,g){var q=l.byId(b),e=arguments.length,t="opacity"==c;c=p[c]?"cssFloat"in q.style?"cssFloat":"styleFloat":c;if(3==e)return t?a(q,g):q.style[c]=g;for(var r in c)d.set(b,r,c[r]);return d.getComputedStyle(q)};return d})},"dojo/mouse":function(){define(["./_base/kernel",
"./on","./has","./dom","./_base/window"],function(h,l,m,n,f){function d(f,e){var c=function(a,b){return l(a,f,function(c){if(e)return e(c,b);if(!n.isDescendant(c.relatedTarget,a))return b.call(this,c)})};c.bubble=function(a){return d(f,function(b,c){var d=a(b.target),e=b.relatedTarget;if(d&&d!=(e&&1==e.nodeType&&a(e)))return c.call(d,b)})};return c}m.add("dom-quirks",f.doc&&"BackCompat"==f.doc.compatMode);m.add("events-mouseenter",f.doc&&"onmouseenter"in f.doc.createElement("div"));m.add("events-mousewheel",
f.doc&&"onmousewheel"in f.doc);f=m("dom-quirks")&&m("ie")||!m("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(d,e){return d.button&e},isLeft:function(d){return d.button&1},isMiddle:function(d){return d.button&4},isRight:function(d){return d.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(d,e){return d.button==e},isLeft:function(d){return 0==d.button},isMiddle:function(d){return 1==d.button},isRight:function(d){return 2==d.button}};h.mouseButtons=f;h=m("events-mousewheel")?
"mousewheel":function(d,e){return l(d,"DOMMouseScroll",function(c){c.wheelDelta=-c.detail;e.call(this,c)})};return{_eventHandler:d,enter:d("mouseover"),leave:d("mouseout"),wheel:h,isLeft:f.isLeft,isMiddle:f.isMiddle,isRight:f.isRight}})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(h,l){return h.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:l("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:l("mac")&&!l("air")?l("safari")?91:224:17}})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(h,l,m,n,f,d){function k(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return!!c&&c.specified}var e={innerHTML:1,textContent:1,className:1,htmlFor:l("ie"),value:1},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};h.has=function(a,b){var f=b.toLowerCase();return e[d.names[f]||
b]||k(n.byId(a),c[f]||b)};h.get=function(a,b){a=n.byId(a);var f=b.toLowerCase(),p=d.names[f]||b,u=a[p];if(e[p]&&"undefined"!=typeof u)return u;if("textContent"==p)return d.get(a,p);if("href"!=p&&("boolean"==typeof u||m.isFunction(u)))return u;f=c[f]||b;return k(a,f)?a.getAttribute(f):null};h.set=function(a,b,r){a=n.byId(a);if(2==arguments.length){for(var p in b)h.set(a,p,b[p]);return a}p=b.toLowerCase();var k=d.names[p]||b,t=e[k];if("style"==k&&"string"!=typeof r)return f.set(a,r),a;if(t||"boolean"==
typeof r||m.isFunction(r))return d.set(a,b,r);a.setAttribute(c[p]||b,r);return a};h.remove=function(a,b){n.byId(a).removeAttribute(c[b.toLowerCase()]||b)};h.getNodeProp=function(a,b){a=n.byId(a);var e=b.toLowerCase(),p=d.names[e]||b;if(p in a&&"href"!=p)return a[p];e=c[e]||b;return k(a,e)?a.getAttribute(e):null}})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(h,l,m,n,f,d,k,e){function c(a){var b=
"";a=a.childNodes;for(var d=0,g;g=a[d];d++)8!=g.nodeType&&(b=1==g.nodeType?b+c(g):b+g.nodeValue);return b}var a={},b=1,r=l._scopeName+"attrid";m.add("dom-textContent",function(a,b,c){return"textContent"in c});h.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};h.get=function(a,b){a=f.byId(a);var d=b.toLowerCase(),d=h.names[d]||b;return"textContent"!=d||m("dom-textContent")?
a[d]:c(a)};h.set=function(c,u,t){c=f.byId(c);if(2==arguments.length&&"string"!=typeof u){for(var g in u)h.set(c,g,u[g]);return c}g=u.toLowerCase();g=h.names[g]||u;if("style"==g&&"string"!=typeof t)return d.set(c,t),c;if("innerHTML"==g)return m("ie")&&c.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(k.empty(c),c.appendChild(k.toDom(t,c.ownerDocument))):c[g]=t,c;if("textContent"==g&&!m("dom-textContent"))return k.empty(c),c.appendChild(c.ownerDocument.createTextNode(t)),
c;if(n.isFunction(t)){var q=c[r];q||(q=b++,c[r]=q);a[q]||(a[q]={});var p=a[q][g];if(p)e.disconnect(p);else try{delete c[g]}catch(B){}t?a[q][g]=e.connect(c,g,t):c[g]=null;return c}c[g]=t;return c}})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(h,l,m,n,f,d){function k(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)}function e(a){if("innerHTML"in a)try{a.innerHTML="";return}catch(x){}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\:]+)/,b={},r=0,p="__"+l._scopeName+"ToDomId",u;for(u in c)c.hasOwnProperty(u)&&(l=c[u],l.pre="option"==u?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+l.join("\x3e\x3c")+"\x3e",l.post="\x3c/"+l.reverse().join("\x3e\x3c/")+"\x3e");var t;8>=m("ie")&&(t=
function(a){a.__dojo_html5_tested="yes";var b=g("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},a.body);1!==b.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(b){a.createElement(b)});q(b)});h.toDom=function(g,d){d=d||n.doc;var q=d[p];q||(d[p]=q=++r+"",b[q]=d.createElement("div"));8>=m("ie")&&!d.__dojo_html5_tested&&d.body&&t(d);g+="";var e=
g.match(a),f=e?e[1].toLowerCase():"",q=b[q];if(e&&c[f])for(e=c[f],q.innerHTML=e.pre+g+e.post,e=e.length;e;--e)q=q.firstChild;else q.innerHTML=g;if(1==q.childNodes.length)return q.removeChild(q.firstChild);for(f=d.createDocumentFragment();e=q.firstChild;)f.appendChild(e);return f};h.place=function(a,b,c){b=f.byId(b);"string"==typeof a&&(a=/^\s*</.test(a)?h.toDom(a,b.ownerDocument):f.byId(a));if("number"==typeof c){var g=b.childNodes;!g.length||g.length<=c?b.appendChild(a):k(a,g[0>c?0:c])}else switch(c){case "before":k(a,
b);break;case "after":c=a;(g=b.parentNode)&&(g.lastChild==b?g.appendChild(c):g.insertBefore(c,b.nextSibling));break;case "replace":b.parentNode.replaceChild(a,b);break;case "only":h.empty(b);b.appendChild(a);break;case "first":if(b.firstChild){k(a,b.firstChild);break}default:b.appendChild(a)}return a};var g=h.create=function(a,b,c,g){var q=n.doc;c&&(c=f.byId(c),q=c.ownerDocument);"string"==typeof a&&(a=q.createElement(a));b&&d.set(a,b);c&&h.place(a,c,g);return a};h.empty=function(a){e(f.byId(a))};
var q=h.destroy=function(a){if(a=f.byId(a)){var b=a;a=a.parentNode;b.firstChild&&e(b);a&&(m("ie")&&a.canHaveChildren&&"removeNode"in b?b.removeNode(!1):a.removeChild(b))}}})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(h,l,m){function n(c){if("string"==typeof c||c instanceof String){if(c&&!d.test(c))return k[0]=c,k;c=c.split(d);c.length&&!c[0]&&c.shift();c.length&&!c[c.length-1]&&c.pop();return c}return c?l.filter(c,function(a){return a}):[]}var f,d=/\s+/,
k=[""],e={};return f={contains:function(c,a){return 0<=(" "+m.byId(c).className+" ").indexOf(" "+a+" ")},add:function(c,a){c=m.byId(c);a=n(a);var b=c.className,d,b=b?" "+b+" ":" ";d=b.length;for(var e=0,f=a.length,t;e<f;++e)(t=a[e])&&0>b.indexOf(" "+t+" ")&&(b+=t+" ");d<b.length&&(c.className=b.substr(1,b.length-2))},remove:function(c,a){c=m.byId(c);var b;if(void 0!==a){a=n(a);b=" "+c.className+" ";for(var d=0,e=a.length;d<e;++d)b=b.replace(" "+a[d]+" "," ");b=h.trim(b)}else b="";c.className!=b&&
(c.className=b)},replace:function(c,a,b){c=m.byId(c);e.className=c.className;f.remove(e,b);f.add(e,a);c.className!==e.className&&(c.className=e.className)},toggle:function(c,a,b){c=m.byId(c);if(void 0===b){a=n(a);for(var d=0,e=a.length,k;d<e;++d)k=a[d],f[f.contains(c,k)?"remove":"add"](c,k)}else f[b?"add":"remove"](c,a);return b}}})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(h,l,m,n,f){var d=0,k=[],e=0;l=function(){d=1;h._postLoad=h.config.afterOnLoad=
!0;c()};var c=function(){if(!e){for(e=1;d&&(!n||0==n._Q.length)&&(m.idle?m.idle():1)&&k.length;){var a=k.shift();try{a()}catch(p){if(p.info=p.message,m.signal)m.signal("error",p);else throw p;}}e=0}};m.on&&m.on("idle",c);n&&(n._onQEmpty=c);var a=h.ready=h.addOnLoad=function(a,b,d){var e=f._toArray(arguments);"number"!=typeof a?(d=b,b=a,a=1E3):e.shift();d=d?f.hitch.apply(h,e):function(){b()};d.priority=a;for(e=0;e<k.length&&a>=k[e].priority;e++);k.splice(e,0,d);c()},b=h.config.addOnLoad;if(b)a[f.isArray(b)?
"apply":"call"](h,b);n?n(l):l();return a})},"dojo/domReady":function(){define(["./global","./has"],function(h,l){function m(a){c.push(a);e&&n()}function n(){if(!a){for(a=!0;c.length;)try{c.shift()(f)}catch(g){}a=!1;m._onQEmpty()}}var f=document,d={loaded:1,complete:1},k="string"!=typeof f.readyState,e=!!d[f.readyState],c=[],a;m.load=function(a,b,c){m(c)};m._Q=c;m._onQEmpty=function(){};k&&(f.readyState="loading");if(!e){var b=[],r=function(a){a=a||h.event;e||"readystatechange"==a.type&&!d[f.readyState]||
(k&&(f.readyState="complete"),e=1,n())},p=function(a,b){a.addEventListener(b,r,!1);c.push(function(){a.removeEventListener(b,r,!1)})};if(!l("dom-addeventlistener")){var p=function(a,b){b="on"+b;a.attachEvent(b,r);c.push(function(){a.detachEvent(b,r)})},u=f.createElement("div");try{u.doScroll&&null===h.frameElement&&b.push(function(){try{return u.doScroll("left"),1}catch(g){}})}catch(g){}}p(f,"DOMContentLoaded");p(h,"load");"onreadystatechange"in f?p(f,"readystatechange"):k||b.push(function(){return d[f.readyState]});
if(b.length){var t=function(){if(!e){for(var a=b.length;a--;)if(b[a]()){r("poller");return}setTimeout(t,30)}};t()}}return m})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(h,l,m,n){return h("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(f){var d=this._attrPairNames;return d[f]?d[f]:d[f]={s:"_"+f+"Setter",g:"_"+f+"Getter"}},postscript:function(f){f&&this.set(f)},_get:function(f,d){return"function"===typeof this[d.g]?this[d.g]():
this[f]},get:function(f){return this._get(f,this._getAttrNames(f))},set:function(f,d){if("object"===typeof f){for(var k in f)f.hasOwnProperty(k)&&"_watchCallbacks"!=k&&this.set(k,f[k]);return this}k=this._getAttrNames(f);var e=this._get(f,k);k=this[k.s];var c;"function"===typeof k?c=k.apply(this,Array.prototype.slice.call(arguments,1)):this[f]=d;if(this._watchCallbacks){var a=this;n(c,function(){a._watchCallbacks(f,e,d)})}return this},_changeAttrValue:function(f,d){var k=this.get(f);this[f]=d;this._watchCallbacks&&
this._watchCallbacks(f,k,d);return this},watch:function(f,d){var k=this._watchCallbacks;if(!k)var e=this,k=this._watchCallbacks=function(a,c,d,f){var b=function(b){if(b){b=b.slice();for(var g=0,p=b.length;g<p;g++)b[g].call(e,a,c,d)}};b(k["_"+a]);f||b(k["*"])};d||"function"!==typeof f?f="_"+f:(d=f,f="*");var c=k[f];"object"!==typeof c&&(c=k[f]=[]);c.push(d);var a={};a.unwatch=a.remove=function(){var a=m.indexOf(c,d);-1<a&&c.splice(a,1)};return a}})})},"dijit/Destroyable":function(){define(["dojo/_base/array",
"dojo/aspect","dojo/_base/declare"],function(h,l,m){return m("dijit.Destroyable",null,{destroy:function(l){this._destroyed=!0},own:function(){var m=["destroyRecursive","destroy","remove"];h.forEach(arguments,function(f){function d(){e.remove();h.forEach(c,function(a){a.remove()})}var k,e=l.before(this,"destroy",function(a){f[k](a)}),c=[];f.then?(k="cancel",f.then(d,d)):h.forEach(m,function(a){"function"===typeof f[a]&&(k||(k=a),c.push(l.after(f,a,d,!0)))})},this);return arguments}})})},"dijit/registry":function(){define(["dojo/_base/array",
"dojo/_base/window","./main"],function(h,l,m){var n={},f={},d={length:0,add:function(d){if(f[d.id])throw Error("Tried to register widget with id\x3d\x3d"+d.id+" but that id is already registered");f[d.id]=d;this.length++},remove:function(d){f[d]&&(delete f[d],this.length--)},byId:function(d){return"string"==typeof d?f[d]:d},byNode:function(d){return f[d.getAttribute("widgetId")]},toArray:function(){var d=[],e;for(e in f)d.push(f[e]);return d},getUniqueId:function(d){var e;do e=d+"_"+(d in n?++n[d]:
n[d]=0);while(f[e]);return"dijit"==m._scopeName?e:m._scopeName+"_"+e},findWidgets:function(d,e){function c(b){for(b=b.firstChild;b;b=b.nextSibling)if(1==b.nodeType){var d=b.getAttribute("widgetId");d?(d=f[d])&&a.push(d):b!==e&&c(b)}}var a=[];c(d);return a},_destroyAll:function(){m._curFocus=null;m._prevFocus=null;m._activeStack=[];h.forEach(d.findWidgets(l.body()),function(d){d._destroyed||(d.destroyRecursive?d.destroyRecursive():d.destroy&&d.destroy())})},getEnclosingWidget:function(d){for(;d;){var e=
1==d.nodeType&&d.getAttribute("widgetId");if(e)return f[e];d=d.parentNode}return null},_hash:f};return m.registry=d})},"dijit/main":function(){define(["dojo/_base/kernel"],function(h){return h.dijit})},"app/ui/AppUi":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/fx dojo/_base/array dojo/dom-style dojo/topic dojo/on dojo/window dojo/router dojo/query dijit/_WidgetBase dijit/_TemplatedMixin dijit/ConfirmDialog dojo/text!./templates/AppUi.html dojo/text!./templates/Help.html dijit/layout/ContentPane dijit/layout/TabContainer dijit/layout/LayoutContainer ../utils/DomUtils ./widgets/SearchPane ./widgets/ConceptDetail ./widgets/SlideMenu ./dialogs/ManageConceptDialog ./dialogs/ManageLanguagesDialog ./dialogs/ImportConceptDialog ./dialogs/MergeConceptDialog ./dialogs/ManageSchemeDialog ../utils/ErrorUtils dojo/NodeList-manipulate".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B,x,A,C,v,z,E,y,D,F){return h([b,r],{templateString:u,loadingContainer:null,staticAppPath:null,conceptSchemeController:null,conceptController:null,languageController:null,listController:null,_searchPane:null,_conceptContainer:null,_slideMenu:null,_manageConceptDialog:null,_manageLanguagesDialog:null,_importConceptDialog:null,_mergeConceptDialog:null,_selectedSchemeId:null,postCreate:function(){this.inherited(arguments);this._registerLoadingEvents();this._registerRoutes();
this._createSlideMenu(this.menuContainerNode);this._manageConceptDialog=new v({parent:this,languageController:this.languageController,listController:this.listController,conceptSchemeController:this.conceptSchemeController});k(this._manageConceptDialog,"new.concept.save",l.hitch(this,function(a){this._saveNewConcept(this._manageConceptDialog,a.concept,a.schemeId)}));k(this._manageConceptDialog,"concept.save",l.hitch(this,function(a){this._saveConcept(this._manageConceptDialog,a.concept,a.schemeId)}));
this._manageConceptDialog.startup();this._manageLanguagesDialog=new z({parentNode:this,languageController:this.languageController});this._manageLanguagesDialog.startup();this._importConceptDialog=new E({externalSchemeStore:this.conceptSchemeController.getExternalSchemeStore(),conceptSchemeController:this.conceptSchemeController});this._importConceptDialog.startup();k(this._importConceptDialog,"concept.import",l.hitch(this,function(a){this._createImportConcept(a.schemeId,a.concept)}));this._mergeConceptDialog=
new y({conceptSchemeController:this.conceptSchemeController});this._mergeConceptDialog.startup();k(this._mergeConceptDialog,"concept.merge",l.hitch(this,function(a){this._createMergeConcept(a.conceptUri,a.concept,a.schemeId)}));this._manageSchemeDialog=new D({parent:this,languageController:this.languageController,listController:this.listController,conceptSchemeController:this.conceptSchemeController});this._manageSchemeDialog.startup();k(this._manageSchemeDialog,"scheme.save",l.hitch(this,function(a){this._saveConceptScheme(this._manageSchemeDialog,
a.scheme)}));k(window,"resize",l.hitch(this,function(){this._calculateHeight()}))},startup:function(){this.inherited(arguments);this._buildInterface().startup();this._searchPane.startup();this._slideMenu._slideOpen();this._hideLoading();c.startup("#")},_hideLoading:function(){m.fadeOut({node:this.loadingContainer,onEnd:function(a){f.set(a,"display","none")},duration:1E3}).play()},_showLoading:function(b){b||(b="");var c=this.loadingContainer;a(".loadingMessage",c).innerHTML(b);f.set(c,"display","block");
m.fadeIn({node:c,duration:1}).play()},_buildInterface:function(){this._calculateHeight();var a=new w({design:"headline",id:"appContainer"},this.conceptContainerNode);this._container=new q({tabPosition:"bottom",splitter:!0});a.addChild(new g({content:this._container,region:"center",baseClass:"appBody"}));this._createHelpTab(this._container);a.startup();return a},_createHelpTab:function(a){a.addChild(new g({tabId:"help",title:"Info",content:t,closable:!1}))},_registerLoadingEvents:function(){this.own(d.subscribe("standby.show",
l.hitch(this,function(a){this._showLoading(a.message)})),d.subscribe("standby.stop",l.hitch(this,function(){this._hideLoading()})))},_registerRoutes:function(){c.register("/conceptschemes/:scheme/c/:id",l.hitch(this,function(a){a.params.id&&a.params.scheme&&(this._openConcept(a.params.id,a.params.scheme),this._closeMenu(),c.go("#"))}));c.register("/conceptschemes/:schemeId",l.hitch(this,function(a){a.params.schemeId&&(this._openEditConceptScheme(a.params.schemeId),this._closeMenu(),c.go("#"))}));
c.register("/conceptschemes/:schemeId/",l.hitch(this,function(a){a.params.schemeId&&(this._openEditConceptScheme(a.params.schemeId),this._closeMenu(),c.go("#"))}))},_createConcept:function(a){a?a.preventDefault():null;this._manageConceptDialog.showDialog(this._selectedSchemeId,null,"add")},_createAddSubordinateArrayConcept:function(a,b){var c={superordinates:[],type:"collection"};c.superordinates.push(a);this._manageConceptDialog.showDialog(b,c,"add")},_createAddNarrowerConcept:function(a,b){var c=
{broader:[],type:"concept"};c.broader.push(a);this._manageConceptDialog.showDialog(b,c,"add")},_createAddMemberConcept:function(a,b){var c={member_of:[],type:"concept"};c.member_of.push(a);this._manageConceptDialog.showDialog(b,c,"add")},_createImportConcept:function(a,b){this.conceptSchemeController.getConcept(a,b.uri).then(l.hitch(this,function(a){this._manageConceptDialog.showDialog(this._selectedSchemeId,a,"add")}))},_createMergeConcept:function(a,b,c){this._showLoading("Merging concepts..");
this.conceptSchemeController.getMergeMatch(a).then(l.hitch(this,function(a){var g=a.notes;b.labels=this._mergeLabels(b.labels,a.labels);b.notes=this._mergeNotes(b.notes,g);this._manageConceptDialog.showDialog(c,b,"edit")}),function(a){d.publish("dGrowl",a,{title:"Error when looking up match",sticky:!0,channel:"error"})}).always(l.hitch(this,function(){this._hideLoading()}))},_importConcept:function(a){a.preventDefault();this._importConceptDialog.show()},_editLanguages:function(a){a.preventDefault();
this._manageLanguagesDialog.show()},_editConceptScheme:function(a){a.preventDefault();this._showLoading("Loading concept scheme..");this.conceptSchemeController.getConceptScheme(this._selectedSchemeId).then(l.hitch(this,function(a){this._manageSchemeDialog.showDialog(a,"edit")}),function(a){}).always(l.hitch(this,function(){this._hideLoading()}))},_openEditConceptScheme:function(a){this._showLoading("Loading concept scheme..");this.conceptSchemeController.getConceptScheme(a).then(l.hitch(this,function(a){this._manageSchemeDialog.showDialog(a,
"edit")}),function(a){}).always(l.hitch(this,function(){this._hideLoading()}))},_createSlideMenu:function(a){this._slideMenu=new C({overlayContainer:this.menuOverlayContainer},a);this._slideMenu.startup();this._createSearchPane(this._slideMenu.menuNode)},_closeMenu:function(a){a?a.preventDefault():null;this._slideMenu._slideClose()},_toggleMenu:function(a){a?a.preventDefault():null;this._slideMenu._toggleMenu()},_openConcept:function(a,b){this._getTab(b+"_"+a)?this._openTab(this._getTab(b+"_"+a)):
(this._showLoading("Loading concept.."),this.conceptController.getConcept(b,a).then(l.hitch(this,function(c){var g=new A({concept:c,conceptId:a,conceptLabel:c.label,scheme:b,languageController:this.languageController,listController:this.listController,conceptSchemeController:this.conceptSchemeController});k(g,"concept.save",l.hitch(this,function(a){this._saveConcept(g,a.concept,a.schemeId)}));k(g,"concept.delete",l.hitch(this,function(a){this._deleteConcept(g,a.concept,a.schemeId)}));k(g,"concept.edit",
l.hitch(this,function(a){this._editConcept(g,a.concept,a.schemeId)}));k(g,"concept.merge",l.hitch(this,function(a){this._mergeConcept(g,a.concept,a.schemeId)}));g.startup();this._addTab(g)})).always(l.hitch(this,function(){this._hideLoading()})))},_createSearchPane:function(a){this._searchPane=new x({conceptSchemeList:this.conceptSchemeController.conceptSchemeList,appUi:this},a);k(this._searchPane,"row-select",l.hitch(this,function(a){this._openConcept(a.data.id,a.scheme)}));k(this._searchPane,"scheme.changed",
l.hitch(this,function(a){this._selectedSchemeId=a.schemeId}));k(this._searchPane,"concept.create",l.hitch(this,function(a){this._createConcept()}));k(this._searchPane,"concept.edit",l.hitch(this,function(a){this.conceptController.getConcept(this._selectedSchemeId,a.conceptId).then(l.hitch(this,function(a){this._editConcept(null,a,this._selectedSchemeId)}))}));k(this._searchPane,"concept.delete",l.hitch(this,function(a){this.conceptController.getConcept(this._selectedSchemeId,a.conceptId).then(l.hitch(this,
function(a){this._deleteConcept(this._getTab(this._selectedSchemeId+"_"+a.id),a,this._selectedSchemeId)}))}));k(this._searchPane,"concept.addnarrower",l.hitch(this,function(a){this.conceptController.getConcept(this._selectedSchemeId,a.conceptId).then(l.hitch(this,function(a){this._createAddNarrowerConcept(a,this._selectedSchemeId)}))}));k(this._searchPane,"concept.addsubarray",l.hitch(this,function(a){this.conceptController.getConcept(this._selectedSchemeId,a.conceptId).then(l.hitch(this,function(a){this._createAddSubordinateArrayConcept(a,
this._selectedSchemeId)}))}));k(this._searchPane,"concept.addmember",l.hitch(this,function(a){this.conceptController.getConcept(this._selectedSchemeId,a.conceptId).then(l.hitch(this,function(a){this._createAddMemberConcept(a,this._selectedSchemeId)}))}))},_openTab:function(a){this._container.selectChild(a)},_closeTab:function(a){this._container.removeChild(a);a.destroyRecursive()},_getTab:function(a){var b=n.filter(this._container.getChildren(),function(b){return b.tabId===a});return 0<b.length?b[0]:
null},_addTab:function(a){a.tabId=a.scheme+"_"+a.conceptId;a.title=a.conceptLabel;a.closable=!0;a.onClose=l.hitch(this,function(){this._closeTab(a)});this._container.addChild(a);this._container.selectChild(a)},_calculateHeight:function(){var a=e.getBox();f.set(this.appContentContainer,"height",a.h-30-60+"px");this._container&&this._container.resize()},_editConcept:function(a,b,c){this._manageConceptDialog.showDialog(c,b,"edit")},_mergeConcept:function(a,b,c){b.matches&&this._mergeConceptDialog.show(b,
c)},_deleteConcept:function(b,c,g){var q=new p({title:"Delete concept",content:'\x3cp style\x3d"font-size: 15px;"\x3eAre you sure you want to remove \x3cstrong\x3e'+c.label+"\x3c/strong\x3e (ID: "+c.id+") from scheme \x3cstrong\x3e"+g+"\x3c/strong\x3e?\x3c/p\x3e",baseClass:"confirm-dialog"});a(".dijitButton",q.domNode).addClass("button tiny");q.closeText.innerHTML='\x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e';k(q,"close",function(){q.destroy()});k(q,"execute",l.hitch(this,function(){this._showLoading("Removing concept..");
this.conceptController.deleteConcept(c,g).then(l.hitch(this,function(a){b&&this._closeTab(b)}),l.hitch(this,function(a){a=F.parseError(a);d.publish("dGrowl",a.message,{title:a.title,sticky:!0,channel:"error"})})).always(l.hitch(this,function(){this._hideLoading()}))}));q.show()},_saveConcept:function(a,b,c){this._showLoading("Saving concept..");this.conceptController.saveConcept(b,c,"PUT").then(l.hitch(this,function(g){a._close();var q=this._getTab(c+"_"+b.id);this._closeTab(q);this._openConcept(g.id,
c);d.publish("dGrowl","The concept was successfully saved.",{title:"Save successful",sticky:!1,channel:"info"})}),function(a){a=F.parseError(a);d.publish("dGrowl",a.message,{title:a.title,sticky:!0,channel:"error"})}).always(l.hitch(this,function(){this._hideLoading()}))},_saveNewConcept:function(a,b,c){this._showLoading("Saving concept..");this.conceptController.saveConcept(b,c,"POST").then(l.hitch(this,function(b){a._close();this._openConcept(b.id,c);d.publish("dGrowl","The concept was successfully saved.",
{title:"Save successful",sticky:!1,channel:"info"})}),function(a){a=F.parseError(a);d.publish("dGrowl",a.message,{title:a.title,sticky:!0,channel:"error"})}).always(l.hitch(this,function(){this._hideLoading()}))},_saveConceptScheme:function(a,b){this._showLoading("Saving concept scheme..");this.conceptSchemeController.editConceptScheme(b).then(l.hitch(this,function(b){a._close();d.publish("dGrowl","The concept scheme was successfully saved.",{title:"Save successful",sticky:!1,channel:"info"})}),function(a){a=
F.parseError(a);d.publish("dGrowl",a.message,{title:a.title,sticky:!0,channel:"error"})}).always(l.hitch(this,function(){this._hideLoading()}))},_closeEditDialog:function(){this._editDialog&&(this._editDialog._close(),this._editDialog.destroyRecursive())},_mergeLabels:function(a,b){n.forEach(b,function(b){this._containsLabel(a,b)||a.push(this._verifyPrefLabel(a,b))},this);return a},_containsLabel:function(a,b){return n.some(a,function(a){return a.label===b.label&&a.language===b.language&&a.type===
b.type})},_verifyPrefLabel:function(a,b){"prefLabel"===b.type&&this._containsPrefLabelOfSameLanguage(a,b)&&(b.type="altLabel");return b},_containsPrefLabelOfSameLanguage:function(a,b){return n.some(a,function(a){return"prefLabel"===a.type&&a.language===b.language})},_mergeNotes:function(a,b){n.forEach(b,function(b){this._containsNote(a,b)||a.push(b)},this);return a},_containsNote:function(a,b){return n.some(a,function(a){return a.note===b.note&&a.language===b.language&&a.type===b.type})}})})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),
function(h,l,m,n,f,d,k,e,c){var a=m.mixin,b={},r=b._Line=function(a,b){this.start=a;this.end=b};r.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};var p=b.Animation=function(b){a(this,b);m.isArray(this.curve)&&(this.curve=new r(this.curve[0],this.curve[1]))};p.prototype=new n;m.extend(p,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,b){var c=b||[];if(this[a])if(l.debugAtAllCosts)this[a].apply(this,
c);else try{this[a].apply(this,c)}catch(C){}return this},play:function(a,b){this._delayTimer&&this._clearTimer();if(b)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var c=a||this.delay,g=m.hitch(this,"_play",b);if(0<c)return this._delayTimer=setTimeout(g,c),this;g();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,b){this._stopTimer();this._active=
this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();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 u=0,t=null,g={run:function(){}};m.extend(p,{_startTimer:function(){this._timer||(this._timer=d.after(g,"run",m.hitch(this,"_cycle"),!0),u++);t||(t=setInterval(m.hitch(g,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,u--);0>=u&&(clearInterval(t),t=null,u=0)}});var q=k("ie")?function(a){var b=a.style;b.width.length||"auto"!=c.get(a,"width")||(b.width="auto")}:function(){};b._fade=function(g){g.node=e.byId(g.node);var p=a({properties:{}},g);g=p.properties.opacity=
{};g.start="start"in p?p.start:function(){return+c.get(p.node,"opacity")||0};g.end=p.end;g=b.animateProperty(p);d.after(g,"beforeBegin",m.partial(q,p.node),!0);return g};b.fadeIn=function(c){return b._fade(a({end:1},c))};b.fadeOut=function(c){return b._fade(a({end:0},c))};b._defaultEasing=function(a){return.5+Math.sin((a+1.5)*Math.PI)/2};var w=function(a){this._properties=a;for(var b in a){var c=a[b];c.start instanceof f&&(c.tempColor=new f)}};w.prototype.getValue=function(a){var b={},c;for(c in this._properties){var g=
this._properties[c],d=g.start;d instanceof f?b[c]=f.blendColors(d,g.end,a,g.tempColor).toCss():m.isArray(d)||(b[c]=(g.end-d)*a+d+("opacity"!=c?g.units||"px":0))}return b};b.animateProperty=function(b){var g=b.node=e.byId(b.node);b.easing||(b.easing=h._defaultEasing);b=new p(b);d.after(b,"beforeBegin",m.hitch(b,function(){var b={},d;for(d in this.properties){var q=function(a,b){var g={height:a.offsetHeight,width:a.offsetWidth}[b];if(void 0!==g)return g;g=c.get(a,b);return"opacity"==b?+g:p?g:parseFloat(g)};
if("width"==d||"height"==d)this.node.display="block";var e=this.properties[d];m.isFunction(e)&&(e=e(g));e=b[d]=a({},m.isObject(e)?e:{end:e});m.isFunction(e.start)&&(e.start=e.start(g));m.isFunction(e.end)&&(e.end=e.end(g));var p=0<=d.toLowerCase().indexOf("color");"end"in e?"start"in e||(e.start=q(g,d)):e.end=q(g,d);p?(e.start=new f(e.start),e.end=new f(e.end)):e.start="opacity"==d?+e.start:parseFloat(e.start)}this.curve=new w(b)}),!0);d.after(b,"onAnimate",m.hitch(c,"set",b.node),!0);return b};b.anim=
function(a,c,g,d,q,e){return b.animateProperty({node:a,duration:g||p.prototype.duration,properties:c,easing:d,onEnd:q}).play(e||0)};a(h,b);h._Animation=p;return b})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(h,l,m,n){var f=h.Color=function(d){d&&this.setColor(d)};f.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:n.transparentColor||[0,0,0,0]};l.extend(f,{r:255,g:255,b:255,a:1,_set:function(d,f,e,c){this.r=d;this.g=f;this.b=e;this.a=c},setColor:function(d){l.isString(d)?f.fromString(d,this):l.isArray(d)?f.fromArray(d,this):(this._set(d.r,d.g,d.b,d.a),d instanceof f||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"#"+m.map(["r","g","b"],function(d){d=this[d].toString(16);return 2>d.length?"0"+d:d},this).join("")},toCss:function(d){var f=this.r+", "+this.g+", "+this.b;return(d?"rgba("+f+", "+this.a:"rgb("+f)+")"},toString:function(){return this.toCss(!0)}});f.blendColors=h.blendColors=function(d,k,e,c){c=c||new f;c.r=Math.round(d.r+(k.r-d.r)*e);c.g=Math.round(d.g+(k.g-d.g)*e);c.b=Math.round(d.b+(k.b-d.b)*e);c.a=d.a+(k.a-d.a)*e;return c.sanitize()};f.fromRgb=h.colorFromRgb=
function(d,k){var e=d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return e&&f.fromArray(e[1].split(/\s*,\s*/),k)};f.fromHex=h.colorFromHex=function(d,k){var e=k||new f,c=4==d.length?4:8,a=(1<<c)-1;d=Number("0x"+d.substr(1));if(isNaN(d))return null;m.forEach(["b","g","r"],function(b){var f=d&a;d>>=c;e[b]=4==c?17*f:f});e.a=1;return e};f.fromArray=h.colorFromArray=function(d,k){var e=k||new f;e._set(Number(d[0]),Number(d[1]),Number(d[2]),Number(d[3]));isNaN(e.a)&&(e.a=1);return e.sanitize()};f.fromString=
h.colorFromString=function(d,k){var e=f.named[d];return e&&f.fromArray(e,k)||f.fromRgb(d,k)||f.fromHex(d,k)};return f})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),function(h,l,m,n,f,d,k){l.add("rtl-adjust-position-for-verticalScrollBar",function(c,a){var b=m.body(a),d=k.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",
height:"64px"}},b,"last"),e=k.create("div",{style:{overflow:"hidden",direction:"ltr"}},d,"last"),u=0!=f.position(e).x;d.removeChild(e);b.removeChild(d);return u});l.add("position-fixed-support",function(c,a){var b=m.body(a),d=k.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},b,"last"),e=k.create("span",{style:{position:"fixed",left:"0",top:"0"}},d,"last"),u=f.position(e).x!=f.position(d).x;d.removeChild(e);b.removeChild(d);return u});var e={getBox:function(c){c=c||
m.doc;var a="BackCompat"==c.compatMode?m.body(c):c.documentElement,b=f.docScroll(c);if(l("touch")){var d=e.get(c);c=d.innerWidth||a.clientWidth;a=d.innerHeight||a.clientHeight}else c=a.clientWidth,a=a.clientHeight;return{l:b.x,t:b.y,w:c,h:a}},get:function(c){if(l("ie")&&e!==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=
n.byId(c);var b=c.ownerDocument||m.doc,e=m.body(b),p=b.documentElement||e.parentNode,k=l("ie")||l("trident"),t=l("webkit");if(c!=e&&c!=p)if(!(l("mozilla")||k||t||l("opera")||l("trident")||l("edge"))&&"scrollIntoView"in c)c.scrollIntoView(!1);else{var g="BackCompat"==b.compatMode,q=Math.min(e.clientWidth||p.clientWidth,p.clientWidth||e.clientWidth),w=Math.min(e.clientHeight||p.clientHeight,p.clientHeight||e.clientHeight),b=t||g?e:p,h=a||f.position(c),x=c.parentNode,t=function(a){return 6>=k||7==k&&
g?!1:l("position-fixed-support")&&"fixed"==d.get(a,"position").toLowerCase()},A=this,C=function(a,b,c){"BODY"==a.tagName||"HTML"==a.tagName?A.get(a.ownerDocument).scrollBy(b,c):(b&&(a.scrollLeft+=b),c&&(a.scrollTop+=c))};if(!t(c))for(;x;){x==e&&(x=b);var v=f.position(x),z=t(x),E="rtl"==d.getComputedStyle(x).direction.toLowerCase();if(x==b)v.w=q,v.h=w,b==p&&(k||l("trident"))&&E&&(v.x+=b.offsetWidth-v.w),v.x=0,v.y=0;else{var y=f.getPadBorderExtents(x);v.w-=y.w;v.h-=y.h;v.x+=y.l;v.y+=y.t;var D=x.clientWidth,
F=v.w-D;0<D&&0<F&&(E&&l("rtl-adjust-position-for-verticalScrollBar")&&(v.x+=F),v.w=D);D=x.clientHeight;F=v.h-D;0<D&&0<F&&(v.h=D)}z&&(0>v.y&&(v.h+=v.y,v.y=0),0>v.x&&(v.w+=v.x,v.x=0),v.y+v.h>w&&(v.h=w-v.y),v.x+v.w>q&&(v.w=q-v.x));var L=h.x-v.x,J=h.y-v.y,O=L+h.w-v.w,Q=J+h.h-v.h,N,H;0<O*L&&(x.scrollLeft||x==b||x.scrollWidth>x.offsetHeight)&&(N=Math[0>L?"max":"min"](L,O),E&&(8==k&&!g||5<=l("trident"))&&(N=-N),H=x.scrollLeft,C(x,N,0),N=x.scrollLeft-H,h.x-=N);0<Q*J&&(x.scrollTop||x==b||x.scrollHeight>x.offsetHeight)&&
(N=Math.ceil(Math[0>J?"max":"min"](J,Q)),H=x.scrollTop,C(x,0,N),N=x.scrollTop-H,h.y-=N);x=x!=b&&!z&&x.parentNode}}}catch(I){c.scrollIntoView(!1)}}};h.setObject("dojo.window",e);return e})},"dojo/router":function(){define(["./router/RouterBase"],function(h){return new h({})})},"dojo/router/RouterBase":function(){define(["dojo/_base/declare","dojo/hash","dojo/topic"],function(h,l,m){function n(d,f,e){var c,a,b,r;c=this.callbackQueue;b=a=!1;f=[{stopImmediatePropagation:function(){a=!0},preventDefault:function(){b=
!0},oldPath:f,newPath:e,params:d}];if(d instanceof Array)f=f.concat(d);else for(r in d)f.push(d[r]);d=0;for(r=c.length;d<r;++d)a||c[d].apply(null,f);return!b}var f;f=String.prototype.trim?function(d){return d.trim()}:function(d){return d.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};return h(null,{_routes:null,_routeIndex:null,_started:!1,_currentPath:"",idMatch:/:(\w[\w\d]*)/g,idReplacement:"([^\\/]+)",globMatch:/\*(\w[\w\d]*)/,globReplacement:"(.+)",constructor:function(d){this._routes=[];this._routeIndex=
{};for(var f in d)d.hasOwnProperty(f)&&(this[f]=d[f])},register:function(d,f){return this._registerRoute(d,f)},registerBefore:function(d,f){return this._registerRoute(d,f,!0)},go:function(d,k){var e;if("string"!==typeof d)return!1;d=f(d);(e=this._handlePathChange(d))&&l(d,k);return e},startup:function(d){if(!this._started){var f=this,e=l();this._started=!0;this._hashchangeHandle=m.subscribe("/dojo/hashchange",function(){f._handlePathChange.apply(f,arguments)});e?this._handlePathChange(e):this.go(d,
!0)}},destroy:function(){this._hashchangeHandle&&this._hashchangeHandle.remove();this._routeIndex=this._routes=null},_handlePathChange:function(d){var f,e,c,a,b,r,p,u,t=this._routes,g=this._currentPath;if(!this._started||d===g)return e;e=!0;f=0;for(c=t.length;f<c;++f)if(b=t[f],r=b.route.exec(d)){if(b.parameterNames)for(p=b.parameterNames,u={},e=0,a=p.length;e<a;++e)u[p[e]]=r[e+1];else u=r.slice(1);e=b.fire(u,g,d)}e&&(this._currentPath=d);return e},_convertRouteToRegExp:function(d){d=d.replace(this.idMatch,
this.idReplacement);d=d.replace(this.globMatch,this.globReplacement);return new RegExp("^"+d+"$")},_getParameterNames:function(d){var f=this.idMatch,e=this.globMatch,c=[],a;for(f.lastIndex=0;null!==(a=f.exec(d));)c.push(a[1]);null!==(a=e.exec(d))&&c.push(a[1]);return 0<c.length?c:null},_indexRoutes:function(){var d,f,e,c,a=this._routes;c=this._routeIndex={};d=0;for(f=a.length;d<f;++d)e=a[d],c[e.route]=d},_registerRoute:function(d,f,e){var c,a,b,r,p,k=this,t=this._routes,g=this._routeIndex;c=this._routeIndex[d];
(a="undefined"!==typeof c)&&(b=t[c]);b||(b={route:d,callbackQueue:[],fire:n});r=b.callbackQueue;"string"==typeof d&&(b.parameterNames=this._getParameterNames(d),b.route=this._convertRouteToRegExp(d));e?r.unshift(f):r.push(f);a||(c=t.length,g[d]=c,t.push(b));p=!1;return{remove:function(){var a,b;if(!p){a=0;for(b=r.length;a<b;++a)r[a]===f&&r.splice(a,1);0===r.length&&(t.splice(c,1),k._indexRoutes());p=!0}},register:function(a,b){return k.register(d,a,b)}}}})})},"dojo/hash":function(){define("./_base/kernel require ./_base/config ./aspect ./_base/lang ./topic ./domReady ./sniff".split(" "),
function(h,l,m,n,f,d,k,e){function c(a,b){var c=a.indexOf(b);return 0<=c?a.substring(c+1):""}function a(){return c(location.href,"#")}function b(){d.publish("/dojo/hashchange",a())}function r(){a()!==t&&(t=a(),b())}function p(a){if(g)if(g.isTransitioning())setTimeout(f.hitch(null,p,a),w);else{var b=g.iframe.location.href,c=b.indexOf("?");g.iframe.location.replace(b.substring(0,c)+"?"+a)}else b=location.href.replace(/#.*/,""),location.replace(b+"#"+a),!q&&r()}function u(){function g(){t=a();e=u?t:
c(n.href,"?");p=!1;r=null}var d=document.createElement("iframe"),q=m.dojoBlankHtmlUrl||l.toUrl("./resources/blank.html");d.id="dojo-hash-iframe";d.src=q+"?"+a();d.style.display="none";document.body.appendChild(d);this.iframe=h.global["dojo-hash-iframe"];var e,p,r,k,u,n=this.iframe.location;this.isTransitioning=function(){return p};this.pollLocation=function(){if(!u)try{var x=c(n.href,"?");document.title!=k&&(k=this.iframe.document.title=document.title)}catch(J){u=!0}var l=a();if(p&&t===l)if(u||x===
r)g(),b();else{setTimeout(f.hitch(this,this.pollLocation),0);return}else if(t!==l||!u&&e!==x){if(t!==l){t=l;p=!0;r=l;d.src=q+"?"+r;u=!1;setTimeout(f.hitch(this,this.pollLocation),0);return}u||(location.href="#"+n.search.substring(1),g(),b())}setTimeout(f.hitch(this,this.pollLocation),w)};g();setTimeout(f.hitch(this,this.pollLocation),w)}h.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 t,g,q,w=m.hashPollFrequency||100;
k(function(){"onhashchange"in h.global&&(!e("ie")||8<=e("ie")&&"BackCompat"!=document.compatMode)?q=n.after(h.global,"onhashchange",b,!0):document.addEventListener?(t=a(),setInterval(r,w)):document.attachEvent&&(g=new u)});return h.hash})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),function(h,l,m,n,f,d,k,e){function c(a,b){var c=function(c,g){if("string"==typeof g&&(g=m.byId(g),!g))return new b([]);
var d="string"==typeof c?a(c,g):c?c.end&&c.on?c:[c]:[];return d.end&&d.on?d:new b(d)};c.matches=a.match||function(a,b,g){return 0<c.filter([a],b,g).length};c.filter=a.filter||function(a,b,g){return c(b,g).filter(function(b){return-1<f.indexOf(a,b)})};if("function"!=typeof a){var g=a.search;a=function(a,b){return g(b||document,a)}}return c}l.add("array-extensible",function(){return 1==d.delegate([],{length:1}).length&&!l("bug-for-in-skips-shadowed")});var a=Array.prototype,b=a.slice,r=a.concat,p=f.forEach,
u=function(a,c,g){c=[0].concat(b.call(c,0));g=g||h.global;return function(b){c[0]=b;return a.apply(g,c)}},t=function(a){var b=this instanceof g&&l("array-extensible");"number"==typeof a&&(a=Array(a));var c=a&&"length"in a?a:arguments;if(b||!c.sort){for(var e=b?this:[],f=e.length=c.length,p=0;p<f;p++)e[p]=c[p];if(b)return e;c=e}d._mixin(c,q);c._NodeListCtor=function(a){return g(a)};return c},g=t,q=g.prototype=l("array-extensible")?[]:{};g._wrap=q._wrap=function(a,b,c){a=new (c||this._NodeListCtor||
g)(a);return b?a._stash(b):a};g._adaptAsMap=function(a,b){return function(){return this.map(u(a,arguments,b))}};g._adaptAsForEach=function(a,b){return function(){this.forEach(u(a,arguments,b));return this}};g._adaptAsFilter=function(a,b){return function(){return this.filter(u(a,arguments,b))}};g._adaptWithCondition=function(a,b,c){return function(){var g=arguments,d=u(a,g,c);if(b.call(c||h.global,g))return this.map(d);this.forEach(d);return this}};p(["slice","splice"],function(b){var c=a[b];q[b]=
function(){return this._wrap(c.apply(this,arguments),"slice"==b?this:null)}});p(["indexOf","lastIndexOf","every","some"],function(a){var c=f[a];q[a]=function(){return c.apply(h,[this].concat(b.call(arguments,0)))}});d.extend(t,{constructor:g,_NodeListCtor:g,toString:function(){return this.join(",")},_stash:function(a){this._parent=a;return this},on:function(a,b){var c=this.map(function(c){return n(c,a,b)});c.remove=function(){for(var a=0;a<c.length;a++)c[a].remove()};return c},end:function(){return this._parent?
this._parent:new this._NodeListCtor(0)},concat:function(a){var c=b.call(this,0),g=f.map(arguments,function(a){return b.call(a,0)});return this._wrap(r.apply(c,g),this)},map:function(a,b){return this._wrap(f.map(this,a,b),this)},forEach:function(a,b){p(this,a,b);return this},filter:function(a){var b=arguments,c=this,g=0;if("string"==typeof a){c=w._filterResult(this,b[0]);if(1==b.length)return c._stash(this);g=1}return this._wrap(f.filter(c,b[g],b[g+1]),this)},instantiate:function(a,b){var c=d.isFunction(a)?
a:d.getObject(a);b=b||{};return this.forEach(function(a){new c(b,a)})},at:function(){var a=new this._NodeListCtor(0);p(arguments,function(b){0>b&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});var w=c(e,t);h.query=c(e,function(a){return t(a)});w.load=function(a,b,g){k.load(a,b,function(a){g(c(a,t))})};h._filterQueryResult=w._filterResult=function(a,b,c){return new t(w.filter(a,b,c))};h.NodeList=w.NodeList=t;return w})},"dojo/selector/lite":function(){define(["../has","../_base/kernel"],
function(h,l){var m=document.createElement("div"),n=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.msMatchesSelector||m.oMatchesSelector,f=m.querySelectorAll,d=/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g;h.add("dom-matches-selector",!!n);h.add("dom-qsa",!!f);var k=function(b,d){if(a&&-1<b.indexOf(","))return a(b,d);var p=d?d.ownerDocument||d:l.doc||document,r=(f?/^([\w]*)#([\w\-]+$)|^(\.)([\w\-\*]+$)|^(\w+$)/:/^([\w]*)#([\w\-]+)(?:\s+(.*))?$|(?:^|(>|.+\s+))([\w\-\*]+)(\S*$)/).exec(b);
d=d||p;if(r){var t=8===h("ie")&&h("quirks")?d.nodeType===p.nodeType:null!==d.parentNode&&9!==d.nodeType&&d.parentNode===p;if(r[2]&&t){var g=l.byId?l.byId(r[2],p):p.getElementById(r[2]);if(!g||r[1]&&r[1]!=g.tagName.toLowerCase())return[];if(d!=p)for(p=g;p!=d;)if(p=p.parentNode,!p)return[];return r[3]?k(r[3],g):[g]}if(r[3]&&d.getElementsByClassName)return d.getElementsByClassName(r[4]);if(r[5])if(g=d.getElementsByTagName(r[5]),r[4]||r[6])b=(r[4]||"")+r[6];else return g}if(f)return 1===d.nodeType&&"object"!==
d.nodeName.toLowerCase()?e(d,b,d.querySelectorAll):d.querySelectorAll(b);g||(g=d.getElementsByTagName("*"));r=[];p=0;for(t=g.length;p<t;p++){var q=g[p];1==q.nodeType&&c(q,b,d)&&r.push(q)}return r},e=function(a,c,e){var b=a,f=a.getAttribute("id"),g=f||"__dojo__",q=a.parentNode,p=/^\s*[+~]/.test(c);if(p&&!q)return[];f?g=g.replace(/'/g,"\\$\x26"):a.setAttribute("id",g);p&&q&&(a=a.parentNode);c=c.match(d);for(q=0;q<c.length;q++)c[q]="[id\x3d'"+g+"'] "+c[q];c=c.join(",");try{return e.call(a,c)}finally{f||
b.removeAttribute("id")}};if(!h("dom-matches-selector"))var c=function(){function a(a,b,c){var g=b.charAt(0);if('"'==g||"'"==g)b=b.slice(1,-1);b=b.replace(/\\/g,"");var d=q[c||""];return function(c){return(c=c.getAttribute(a))&&d(c,b)}}function c(a){return function(b,c){for(;(b=b.parentNode)!=c;)if(a(b,c))return!0}}function d(a){return function(b,c){b=b.parentNode;return a?b!=c&&a(b,c):b==c}}function e(a,b){return a?function(c,g){return b(c)&&a(c,g)}:b}var f="div"==m.tagName?"toLowerCase":"toUpperCase",
g={"":function(a){a=a[f]();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}}},q={"^\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}},k={};return function(b,q,f){var p=k[q];if(!p){if(q.replace(/(?:\s*([> ])\s*)|(#|\.)?((?:\\.|[\w-])+)|\[\s*([\w-]+)\s*(.?=)?\s*("(?:\\.|[^"])+"|'(?:\\.|[^'])+'|(?:\\.|[^\]])*)\s*\]/g,function(b,q,f,t,r,k,u){t?p=e(p,g[f||""](t.replace(/\\/g,""))):q?p=(" "==q?c:d)(p):r&&(p=e(p,a(r,u,k)));return""}))throw Error("Syntax error in query");if(!p)return!0;k[q]=p}return p(b,f)}}();if(!h("dom-qsa"))var a=function(a,c){for(var b=
a.match(d),e=[],f=0;f<b.length;f++){a=new String(b[f].replace(/\s*$/,""));a.indexOf=escape;for(var g=k(a,c),q=0,r=g.length;q<r;q++){var l=g[q];e[l.sourceIndex]=l}}b=[];for(f in e)b.push(e[f]);return b};k.match=n?function(a,c,d){return d&&9!=d.nodeType?e(d,c,function(b){return n.call(a,b)}):n.call(a,c)}:c;return k})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "),function(h,l,m,n,
f,d,k,e){var c=l("dijit._TemplatedMixin",e,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(a){var b=this.declaredClass,c=this;return k.substitute(a,this,function(a,d){"!"==d.charAt(0)&&(a=n.getObject(d.substr(1),!1,c));if("undefined"==typeof a)throw Error(b+" 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=h(this.templatePath,{sanitize:!0}));var a=c.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument),b;if(n.isString(a)){if(b=m.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 b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)}});c._templateCache={};c.getCachedTemplate=function(a,b,d){var e=c._templateCache,f=a,t=e[f];if(t){try{if(!t.ownerDocument||t.ownerDocument==(d||document))return t}catch(g){}m.destroy(t)}a=k.trim(a);if(b||a.match(/\$\{([^\}]+)\}/g))return e[f]=a;b=m.toDom(a,d);if(1!=b.nodeType)throw Error("Invalid template: "+a);return e[f]=b};d("ie")&&f(window,"unload",function(){var a=
c._templateCache,b;for(b in a){var d=a[b];"object"==typeof d&&m.destroy(d);delete a[b]}});return c})},"dojo/cache":function(){define(["./_base/kernel","./text"],function(h){return h.cache})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(h,l,m,n){var f;f=function(a,b,c){n(a,{sync:!!b,headers:{"X-Requested-With":null}}).then(c)};var d={},k=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
b&&(a=b[1])}else a="";return a},e={},c={};h.cache=function(a,b,c){var e;"string"==typeof a?/\//.test(a)?(e=a,c=b):e=l.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")):(e=a+"",c=b);a=void 0!=c&&"string"!=typeof c?c.value:c;c=c&&c.sanitize;if("string"==typeof a)return d[e]=a,c?k(a):a;if(null===a)return delete d[e],null;e in d||f(e,!0,function(a){d[e]=a});return c?k(d[e]):d[e]};return{dynamic:!0,normalize:function(a,b){var c=a.split("!"),d=c[0];return(/^\./.test(d)?b(d):d)+(c[1]?"!"+c[1]:"")},load:function(a,
b,r){a=a.split("!");var p=1<a.length,u=a[0],t=b.toUrl(a[0]);a="url:"+t;var g=e,q=function(a){r(p?k(a):a)};u in d?g=d[u]:b.cache&&a in b.cache?g=b.cache[a]:t in d&&(g=d[t]);if(g===e)if(c[t])c[t].push(q);else{var w=c[t]=[q];f(t,!b.async,function(a){d[u]=d[t]=a;for(var b=0;b<w.length;)w[b++](a);delete c[t]})}else q(g)}}})},"dojo/request":function(){define(["./request/default!"],function(h){return h})},"dojo/request/default":function(){define(["exports","require","../has"],function(h,l,m){var n=m("config-requestProvider");
n||(n="./xhr");h.getPlatformDefaultId=function(){return"./xhr"};h.load=function(f,d,k,e){l(["platform"==f?"./xhr":n],function(c){k(c)})}})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(h,l){var m=/[&<>'"\/]/g,n={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},f={};l.setObject("dojo.string",f);f.escape=function(d){return d?d.replace(m,function(d){return n[d]}):""};f.rep=function(d,f){if(0>=f||!d)return"";for(var e=[];;){f&
1&&e.push(d);if(!(f>>=1))break;d+=d}return e.join("")};f.pad=function(d,k,e,c){e||(e="0");d=String(d);k=f.rep(e,Math.ceil((k-d.length)/e.length));return c?d+k:k+d};f.substitute=function(d,f,e,c){c=c||h.global;e=e?l.hitch(c,e):function(a){return a};return d.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,function(a,b,d){if(""==b)return"$";a=l.getObject(b,!1,f);d&&(a=l.getObject(d,!1,c).call(c,a,b));d=e(a,b);if("undefined"===typeof d)throw Error('string.substitute could not find key "'+b+'" in template');
return d.toString()})};f.trim=String.prototype.trim?l.trim:function(d){d=d.replace(/^\s+/,"");for(var f=d.length-1;0<=f;f--)if(/\S/.test(d.charAt(f))){d=d.substring(0,f+1);break}return d};return f})},"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(h,l,m,n,f,d,k,e,c){var a=f.delegate(e,{mouseenter:d.enter,mouseleave:d.leave,keypress:m._keypress}),b;m=n("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 b=a;;)if(1==b.nodeType&&(this._processTemplateNode(b,function(a,b){return a.getAttribute(b)},this._attach)||this.searchContainerNode)&&b.firstChild)b=b.firstChild;else{if(b==a)break;for(;!b.nextSibling;)if(b=b.parentNode,b==a)return;b=
b.nextSibling}},_processTemplateNode:function(a,b,c){var d=!0,g=this.attachScope||this,q=b(a,"dojoAttachPoint")||b(a,"data-dojo-attach-point");if(q)for(var e=q.split(/\s*,\s*/);q=e.shift();)f.isArray(g[q])?g[q].push(a):g[q]=a,d="containerNode"!=q,this._attachPoints.push(q);if(b=b(a,"dojoAttachEvent")||b(a,"data-dojo-attach-event"))for(q=b.split(/\s*,\s*/),e=f.trim;b=q.shift();)if(b){var p=null;-1!=b.indexOf(":")?(p=b.split(":"),b=e(p[0]),p=e(p[1])):b=e(b);p||(p=b);this._attachEvents.push(c(a,b,f.hitch(g,
p)))}return d},_attach:function(c,d,e){d=d.replace(/^on/,"").toLowerCase();d="dijitclick"==d?b||(b=h("./a11yclick")):a[d]||d;return k(c,d,e)},_detachTemplateNodes:function(){var a=this.attachScope||this;l.forEach(this._attachPoints,function(b){delete a[b]});this._attachPoints=[];l.forEach(this._attachEvents,function(a){a.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});f.extend(c,{dojoAttachEvent:"",dojoAttachPoint:""});return m})},
"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(h,l,m,n,f,d,k,e,c,a){function b(a,b,c){return t&&c?function(a,b){return d(a,c,b)}:q?function(c,g){var e=d(c,b,function(a){g.call(this,a);D=(new Date).getTime()}),q=d(c,a,function(a){(!D||(new Date).getTime()>D+1E3)&&g.call(this,a)});return{remove:function(){e.remove();q.remove()}}}:function(b,c){return d(b,a,c)}}function r(a){do if(void 0!==a.dojoClick)return a;
while(a=a.parentNode)}function p(b,c,g){if(!e.isRight(b)){var q=r(b.target);if(B=!b.target.disabled&&q&&q.dojoClick)if(A=(x="useTarget"==B)?q:b.target,x&&b.preventDefault(),C=b.changedTouches?b.changedTouches[0].pageX-a.global.pageXOffset:b.clientX,v=b.changedTouches?b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY,z=("object"==typeof B?B.x:"number"==typeof B?B:0)||4,E=("object"==typeof B?B.y:"number"==typeof B?B:0)||4,!w){b=function(b){a.doc.addEventListener(b,function(a){var c=a.target;
B&&!a._dojo_click&&(new Date).getTime()<=y+1E3&&("INPUT"!=c.tagName||!n.contains(c,"dijitOffScreen"))&&(a.stopPropagation(),a.stopImmediatePropagation&&a.stopImmediatePropagation(),"click"==b&&("INPUT"!=c.tagName||"radio"==c.type&&(n.contains(c,"dijitCheckBoxInput")||n.contains(c,"mblRadioButton"))||"checkbox"==c.type&&(n.contains(c,"dijitCheckBoxInput")||n.contains(c,"mblCheckBox")))&&"TEXTAREA"!=c.tagName&&"AUDIO"!=c.tagName&&"VIDEO"!=c.tagName&&a.preventDefault())},!0)};var f=function(b){B=x?m.isDescendant(a.doc.elementFromPoint(b.changedTouches?
b.changedTouches[0].pageX-a.global.pageXOffset:b.clientX,b.changedTouches?b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY),A):B&&(b.changedTouches?b.changedTouches[0].target:b.target)==A&&Math.abs((b.changedTouches?b.changedTouches[0].pageX-a.global.pageXOffset:b.clientX)-C)<=z&&Math.abs((b.changedTouches?b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY)-v)<=E};w=!0;a.doc.addEventListener(c,function(a){e.isRight(a)||(f(a),x&&a.preventDefault())},!0);a.doc.addEventListener(g,function(a){if(!e.isRight(a)&&
(f(a),B)){var b=function(b){var c=document.createEvent("MouseEvents");c._dojo_click=!0;c.initMouseEvent(b,!0,!0,a.view,a.detail,g.screenX,g.screenY,g.clientX,g.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null);return c};y=(new Date).getTime();var c=x?A:a.target;"LABEL"===c.tagName&&(c=m.byId(c.getAttribute("for"))||c);var g=a.changedTouches?a.changedTouches[0]:a,q=b("mousedown"),p=b("mouseup"),t=b("click");setTimeout(function(){d.emit(c,"mousedown",q);d.emit(c,"mouseup",p);d.emit(c,"click",
t);y=(new Date).getTime()},0)}},!0);b("click");b("mousedown");b("mouseup")}}}var u=5>k("ios"),t=k("pointer-events")||k("MSPointer"),g=function(){var a={},b;for(b in{down:1,move:1,up:1,cancel:1,over:1,out:1})a[b]=k("MSPointer")?"MSPointer"+b.charAt(0).toUpperCase()+b.slice(1):"pointer"+b;return a}(),q=k("touch-events"),w,B,x=!1,A,C,v,z,E,y,D,F;k("touch")&&(t?c(function(){a.doc.addEventListener(g.down,function(a){p(a,g.move,g.up)},!0)}):c(function(){function b(a){var b=f.delegate(a,{bubbles:!0});6<=
k("ios")&&(b.touches=a.touches,b.altKey=a.altKey,b.changedTouches=a.changedTouches,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.targetTouches=a.targetTouches);return b}F=a.body();a.doc.addEventListener("touchstart",function(a){D=(new Date).getTime();var b=F;F=a.target;d.emit(b,"dojotouchout",{relatedTarget:F,bubbles:!0});d.emit(F,"dojotouchover",{relatedTarget:b,bubbles:!0});p(a,"touchmove","touchend")},!0);d(a.doc,"touchmove",function(c){D=(new Date).getTime();var g=a.doc.elementFromPoint(c.pageX-
(u?0:a.global.pageXOffset),c.pageY-(u?0:a.global.pageYOffset));g&&(F!==g&&(d.emit(F,"dojotouchout",{relatedTarget:g,bubbles:!0}),d.emit(g,"dojotouchover",{relatedTarget:F,bubbles:!0}),F=g),d.emit(g,"dojotouchmove",b(c))||c.preventDefault())});d(a.doc,"touchend",function(c){D=(new Date).getTime();var g=a.doc.elementFromPoint(c.pageX-(u?0:a.global.pageXOffset),c.pageY-(u?0:a.global.pageYOffset))||a.body();d.emit(g,"dojotouchend",b(c))})}));l={press:b("mousedown","touchstart",g.down),move:b("mousemove",
"dojotouchmove",g.move),release:b("mouseup","dojotouchend",g.up),cancel:b(e.leave,"touchcancel",t?g.cancel:null),over:b("mouseover","dojotouchover",g.over),out:b("mouseout","dojotouchout",g.out),enter:e._eventHandler(b("mouseover","dojotouchover",g.over)),leave:e._eventHandler(b("mouseout","dojotouchout",g.out))};return h.touch=l})},"dijit/ConfirmDialog":function(){define(["dojo/_base/declare","./Dialog","./_ConfirmDialogMixin"],function(h,l,m){return h("dijit.ConfirmDialog",[l,m],{})})},"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/touch 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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B,x,A,C,v,z,E,y,D,F,L,J,O){function Q(){}var N=new f;N.resolve(!0);C=n("dijit._DialogBase"+(g("dojo-bidi")?"_NoBidi":""),[z,y,D,E],{templateString:O,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!1,duration:C.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,draggable:!0,_setDraggableAttr:function(a){this._set("draggable",a)},maxRatio:.9,
closable:!0,_setClosableAttr:function(a){this.closeButtonNode.style.display=a?"":"none";this._set("closable",a)},postMixInProperties:function(){var a=b.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);m.after(this,"onExecute",p.hitch(this,"hide"),!0);m.after(this,"onCancel",p.hitch(this,"hide"),!0);u(this.closeButtonNode,
q.press,function(a){a.stopPropagation()});this._modalconnects=[]},onLoad:function(){this.resize();this._position();this.autofocus&&I.isTop(this)&&(this._getFocusItems(),A.focus(this._firstFocusItem));this.inherited(arguments)},focus:function(){this._getFocusItems();A.focus(this._firstFocusItem)},_endDrag:function(){var a=e.position(this.domNode),b=w.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==g("ie")?x:B)(a,{handle:this.titleBar}),m.after(this._moveable,"onMoveStop",p.hitch(this,"_endDrag"),!0)):k.add(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":l.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(!k.contains(this.ownerDocumentBody,"dojoMove")){var a=
this.domNode,b=w.getBox(this.ownerDocument),g=this._relativePosition,d=e.position(a);c.set(a,{left:Math.floor(b.l+(g?Math.min(g.x,b.w-d.w):(b.w-d.w)/2))+"px",top:Math.floor(b.t+(g?Math.min(g.y,b.h-d.h):(b.h-d.h)/2))+"px"})}},_onKey:function(a){if(a.keyCode==r.TAB){this._getFocusItems();var b=a.target;this._firstFocusItem==this._lastFocusItem?(a.stopPropagation(),a.preventDefault()):b==this._firstFocusItem&&a.shiftKey?(A.focus(this._lastFocusItem),a.stopPropagation(),a.preventDefault()):b!=this._lastFocusItem||
a.shiftKey||(A.focus(this._firstFocusItem),a.stopPropagation(),a.preventDefault())}else this.closable&&a.keyCode==r.ESCAPE&&(this.onCancel(),a.stopPropagation(),a.preventDefault())},show:function(){if(this.open)return N.promise;this._started||this.startup();this._alreadyInitialized||(this._setup(),this._alreadyInitialized=!0);this._fadeOutDeferred&&(this._fadeOutDeferred.cancel(),I.hide(this));var b=w.get(this.ownerDocument);this._modalconnects.push(u(b,"scroll",p.hitch(this,"resize",null)));this._modalconnects.push(u(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 g;this._fadeInDeferred=new f(p.hitch(this,function(){g.stop();delete this._fadeInDeferred}));this._fadeInDeferred.then(void 0,Q);b=this._fadeInDeferred.promise;g=a.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:p.hitch(this,function(){I.show(this,this.underlayAttrs)}),onEnd:p.hitch(this,function(){this.autofocus&&I.isTop(this)&&(this._getFocusItems(),
A.focus(this._firstFocusItem));this._fadeInDeferred.resolve(!0);delete this._fadeInDeferred})}).play();return b},hide:function(){if(!this._alreadyInitialized||!this.open)return N.promise;this._fadeInDeferred&&this._fadeInDeferred.cancel();var b;this._fadeOutDeferred=new f(p.hitch(this,function(){b.stop();delete this._fadeOutDeferred}));this._fadeOutDeferred.then(void 0,Q);this._fadeOutDeferred.then(p.hitch(this,"onHide"));var c=this._fadeOutDeferred.promise;b=a.fadeOut({node:this.domNode,duration:this.duration,
onEnd:p.hitch(this,function(){this.domNode.style.display="none";I.hide(this);this._fadeOutDeferred.resolve(!0);delete this._fadeOutDeferred})}).play();this._scrollConnected&&(this._scrollConnected=!1);for(var g;g=this._modalconnects.pop();)g.remove();this._relativePosition&&delete this._relativePosition;this._set("open",!1);return c},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),l.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=w.getBox(this.ownerDocument);b.w*=this.maxRatio;b.h*=this.maxRatio;var d=e.position(this.domNode);this._shrunk=!1;d.w>=b.w&&(a={w:b.w},e.setMarginBox(this.domNode,a),d=e.position(this.domNode),this._shrunk=
!0);d.h>=b.h&&(a||(a={w:d.w}),a.h=b.h,this._shrunk=!0);a&&(a.w||(a.w=d.w),a.h||(a.h=d.h))}if(a){e.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 q=J.marginBox2contentBox(this.domNode,a);J.layoutChildren(this.domNode,q,b);this._singleChild?(b=J.marginBox2contentBox(this.containerNode,d),this._singleChild.resize({w:b.w,h:b.h})):
(this.containerNode.style.overflow="auto",this._layoutChildren())}else this._layoutChildren();g("touch")||a||this._position()}},_layoutChildren:function(){l.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();I.hide(this);this.inherited(arguments)}});g("dojo-bidi")&&(C=n("dijit._DialogBase",
C,{_setTitleAttr:function(a){this._set("title",a);this.titleNode.innerHTML=a;this.applyTextDir(this.titleNode)},_setTextDirAttr:function(a){this._created&&this.textDir!=a&&(this._set("textDir",a),this.set("title",this.title))}}));var H=n("dijit.Dialog",[L,C],{});H._DialogBase=C;var I=H._DialogLevelManager={_beginZIndex:950,show:function(a,b){G[G.length-1].focus=A.curNode;var g=G[G.length-1].dialog?G[G.length-1].zIndex+2:H._DialogLevelManager._beginZIndex;c.set(a.domNode,"zIndex",g);F.show(b,g-1);
G.push({dialog:a,underlayAttrs:b,zIndex:g})},hide:function(a){if(G[G.length-1].dialog==a){G.pop();var b=G[G.length-1];1==G.length?F.hide():F.show(b.underlayAttrs,b.zIndex-1);if(a.refocus&&(a=b.focus,!b.dialog||a&&d.isDescendant(a,b.dialog.domNode)||(b.dialog._getFocusItems(),a=b.dialog._firstFocusItem),a))try{a.focus()}catch(M){}}else b=l.indexOf(l.map(G,function(a){return a.dialog}),a),-1!=b&&G.splice(b,1)},isTop:function(a){return G[G.length-1].dialog==a}},G=H._dialogStack=[{dialog:null,focus:null,
underlayAttrs:null}];A.watch("curNode",function(a,b,c){a=G[G.length-1].dialog;if(c&&a&&!a._fadeOutDeferred&&c.ownerDocument==a.ownerDocument){do if(c==a.domNode||k.contains(c,"dijitPopup"))return;while(c=c.parentNode);a.focus()}});g("dijit-legacy-requires")&&t(0,function(){h(["dijit/TooltipDialog"])});return H})},"dojo/dnd/Moveable":function(){define("../_base/array ../_base/declare ../_base/lang ../dom ../dom-class ../Evented ../has ../on ../topic ../touch ./common ./Mover ../_base/window".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p){function u(a,b){"touchAction"in document.body.style?t="touchAction":"msTouchAction"in document.body.style&&(t="msTouchAction");g=function(a,b){a.style[t]=b};g(a,b)}var t,g=function(){};k("touch-action")&&(g=u);return l("dojo.dnd.Moveable",[d],{handle:"",delay:0,skip:!1,constructor:function(b,c){this.node=n.byId(b);g(this.node,"none");c||(c={});this.handle=c.handle?n.byId(c.handle):null;this.handle||(this.handle=this.node);this.delay=0<c.delay?c.delay:0;this.skip=
c.skip;this.mover=c.mover?c.mover:r;this.events=[e(this.handle,a.press,m.hitch(this,"onMouseDown")),e(this.handle,"dragstart",m.hitch(this,"onSelectStart")),e(this.handle,"selectstart",m.hitch(this,"onSelectStart"))]},markupFactory:function(a,b,c){return new c(b,a)},destroy:function(){h.forEach(this.events,function(a){a.remove()});g(this.node,"");this.events=this.node=this.handle=null},onMouseDown:function(c){if(!this.skip||!b.isFormElement(c)){if(this.delay)this.events.push(e(this.handle,a.move,
m.hitch(this,"onMouseMove")),e(this.handle.ownerDocument,a.release,m.hitch(this,"onMouseUp"))),this._lastX=c.pageX,this._lastY=c.pageY;else this.onDragDetected(c);c.stopPropagation();c.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(a){this.skip&&b.isFormElement(a)||(a.stopPropagation(),a.preventDefault())},onDragDetected:function(a){new this.mover(this.node,a,this)},onMoveStart:function(a){c.publish("/dnd/move/start",a);f.add(p.body(),"dojoMove");f.add(this.node,"dojoMoveItem")},onMoveStop:function(a){c.publish("/dnd/move/stop",a);f.remove(p.body(),"dojoMove");f.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/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(h,l,m,n){var f=m.getObject("dojo.dnd",!0);f.getCopyKeyState=function(d){return d[h("mac")?"metaKey":"ctrlKey"]};f._uniqueId=0;f.getUniqueId=function(){var d;do d=l._scopeName+"Unique"+ ++f._uniqueId;while(n.byId(d));return d};f._empty={};f.isFormElement=function(d){d=d.target;3==d.nodeType&&(d=d.parentNode);return 0<=" a button textarea input select option ".indexOf(" "+
d.tagName.toLowerCase()+" ")};return f})},"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(h,l,m,n,f,d,k,e,c,a,b,r,p){return l("dojo.dnd.Mover",[c],{constructor:function(c,e,g){function q(a){a.preventDefault();a.stopPropagation()}this.node=d.byId(c);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;e=this.host=g;c=c.ownerDocument;
this.events=[a(c,b.move,m.hitch(this,"onFirstMove")),a(c,b.move,m.hitch(this,"onMouseMove")),a(c,b.release,m.hitch(this,"onMouseUp")),a(c,"dragstart",q),a(c.body,"selectstart",q)];p.autoScrollStart(c);if(e&&e.onMoveStart)e.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){(n("webkit")&&n("mac")&&2==this.mouseButton?0==a.button:this.mouseButton==a.button)&&
this.destroy();a.preventDefault();a.stopPropagation()},onFirstMove:function(a){var b=this.node.style,c,d=this.host;switch(b.position){case "relative":case "absolute":c=Math.round(parseFloat(b.left))||0;b=Math.round(parseFloat(b.top))||0;break;default:b.position="absolute";b=k.getMarginBox(this.node);c=f.doc.body;var p=e.getComputedStyle(c),r=k.getMarginBox(c,p),p=k.getContentBox(c,p);c=b.l-(p.l-r.l);b=b.t-(p.t-r.t)}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=b-this.marginBox.t;if(d&&d.onFirstMove)d.onFirstMove(this,
a);this.events.shift().remove()},destroy:function(){h.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(h,l,m,n,f,d){var k={};h.setObject("dojo.dnd.autoscroll",k);k.getViewport=d.getBox;k.V_TRIGGER_AUTOSCROLL=32;k.H_TRIGGER_AUTOSCROLL=32;k.V_AUTOSCROLL_VALUE=16;k.H_AUTOSCROLL_VALUE=
16;var e,c=m.doc,a=Infinity,b=Infinity;k.autoScrollStart=function(f){c=f;e=d.getBox(c);f=m.body(c).parentNode;a=Math.max(f.scrollHeight-e.h,0);b=Math.max(f.scrollWidth-e.w,0)};k.autoScroll=function(f){var p=e||d.getBox(c),r=m.body(c).parentNode,t=0,g=0;f.clientX<k.H_TRIGGER_AUTOSCROLL?t=-k.H_AUTOSCROLL_VALUE:f.clientX>p.w-k.H_TRIGGER_AUTOSCROLL&&(t=Math.min(k.H_AUTOSCROLL_VALUE,b-r.scrollLeft));f.clientY<k.V_TRIGGER_AUTOSCROLL?g=-k.V_AUTOSCROLL_VALUE:f.clientY>p.h-k.V_TRIGGER_AUTOSCROLL&&(g=Math.min(k.V_AUTOSCROLL_VALUE,
a-r.scrollTop));window.scrollBy(t,g)};k._validNodes={div:1,p:1,td:1};k._validOverflow={auto:1,scroll:1};k.autoScrollNodes=function(a){for(var b,c,d,g,e,r=0,h=0,x=a.target;x;){if(1==x.nodeType&&x.tagName.toLowerCase()in k._validNodes){d=f.getComputedStyle(x);e=d.overflowX.toLowerCase()in k._validOverflow;g=d.overflowY.toLowerCase()in k._validOverflow;if(e||g)b=n.getContentBox(x,d),c=n.position(x,!0);if(e){d=Math.min(k.H_TRIGGER_AUTOSCROLL,b.w/2);e=a.pageX-c.x;if(l("webkit")||l("opera"))e+=m.body().scrollLeft;
r=0;0<e&&e<b.w&&(e<d?r=-d:e>b.w-d&&(r=d),x.scrollLeft+=r)}if(g){g=Math.min(k.V_TRIGGER_AUTOSCROLL,b.h/2);d=a.pageY-c.y;if(l("webkit")||l("opera"))d+=m.body().scrollTop;h=0;0<d&&d<b.h&&(d<g?h=-g:d>b.h-g&&(h=g),x.scrollTop+=h)}if(r||h)return}try{x=x.parentNode}catch(A){x=null}}k.autoScroll(a)};return k})},"dojo/dnd/TimedMoveable":function(){define(["../_base/declare","./Moveable"],function(h,l){var m=l.prototype.onMove;return h("dojo.dnd.TimedMoveable",l,{timeout:40,constructor:function(l,f){f||(f=
{});f.timeout&&"number"==typeof f.timeout&&0<=f.timeout&&(this.timeout=f.timeout)},onMoveStop:function(h){h._timer&&(clearTimeout(h._timer),m.call(this,h,h._leftTop));l.prototype.onMoveStop.apply(this,arguments)},onMove:function(l,f){l._leftTop=f;if(!l._timer){var d=this;l._timer=setTimeout(function(){l._timer=null;m.call(d,l,l._leftTop)},this.timeout)}}})})},"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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q){var w,B,x=new (l([r,k],{curNode:null,activeStack:[],constructor:function(){var a=e.hitch(this,function(a){m.isDescendant(this.curNode,a)&&this.set("curNode",null);m.isDescendant(this.prevNode,a)&&this.set("prevNode",null)});h.before(d,"empty",a);h.before(d,"destroy",a)},registerIframe:function(a){return this.registerWin(a.contentWindow,a)},registerWin:function(a,g){var d=this,e=a.document&&a.document.body;if(e){var q=b("pointer-events")?"pointerdown":b("MSPointer")?
"MSPointerDown":b("touch-events")?"mousedown, touchstart":"mousedown",f=c(a.document,q,function(a){a&&a.target&&null==a.target.parentNode||d._onTouchNode(g||a.target,"mouse")}),p=c(e,"focusin",function(a){if(a.target.tagName){var b=a.target.tagName.toLowerCase();"#document"!=b&&"body"!=b&&(t.isFocusable(a.target)?d._onFocusNode(g||a.target):d._onTouchNode(g||a.target))}}),r=c(e,"focusout",function(a){d._onBlurNode(g||a.target)});return{remove:function(){f.remove();p.remove();r.remove();e=f=p=r=null}}}},
_onBlurNode:function(a){a=(new Date).getTime();a<w+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(e.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),a<B+100||(this._clearActiveWidgetsTimer=setTimeout(e.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(a,b){B=(new Date).getTime();
this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);f.contains(a,"dijitPopup")&&(a=a.firstChild);var c=[];try{for(;a;){var d=n.get(a,"dijitPopupParent");if(d)a=g.byId(d).domNode;else if(a.tagName&&"body"==a.tagName.toLowerCase()){if(a===p.body())break;a=u.get(a.ownerDocument).frameElement}else{var e=a.getAttribute&&a.getAttribute("widgetId"),q=e&&g.byId(e);!q||"mouse"==b&&q.get("disabled")||c.unshift(e);a=a.parentNode}}}catch(F){}this._setStack(c,
b)},_onFocusNode:function(a){a&&9!=a.nodeType&&(w=(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,b){var c=this.activeStack,d=c.length-1,e=a.length-1;if(a[e]!=c[d]){this.set("activeStack",a);var q;for(q=d;0<=q&&c[q]!=a[q];q--)if(d=g.byId(c[q]))d._hasBeenBlurred=!0,d.set("focused",!1),d._focusManager==this&&d._onBlur(b),
this.emit("widget-blur",d,b);for(q++;q<=e;q++)if(d=g.byId(a[q]))d.set("focused",!0),d._focusManager==this&&d._onFocus(b),this.emit("widget-focus",d,b)}},focus:function(a){if(a)try{a.focus()}catch(v){}}}));a(function(){var a=x.registerWin(u.get(document));b("ie")&&c(window,"unload",function(){a&&(a.remove(),a=null)})});q.focus=function(a){x.focus(a)};for(var A in x)/^_/.test(A)||(q.focus[A]="function"==typeof x[A]?e.hitch(x,A):x[A]);x.watch(function(a,b,c){q.focus[a]=c});return x})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),
function(h,l,m,n,f,d,k){var e={_isElementShown:function(c){var a=n.get(c);return"hidden"!=a.visibility&&"collapsed"!=a.visibility&&"none"!=a.display&&"hidden"!=m.get(c,"type")},hasDefaultTabStop:function(c){switch(c.nodeName.toLowerCase()){case "a":return m.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(r){try{a=c.contentWindow.document.body}catch(p){return!1}}return a&&
("true"==a.contentEditable||a.firstChild&&"true"==a.firstChild.contentEditable);default:return"true"==c.contentEditable}},effectiveTabIndex:function(c){if(!m.get(c,"disabled"))return m.has(c,"tabIndex")?+m.get(c,"tabIndex"):e.hasDefaultTabStop(c)?0:void 0},isTabNavigable:function(c){return 0<=e.effectiveTabIndex(c)},isFocusable:function(c){return-1<=e.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()}function b(b){return l[a(b)]||b}var f,p,k,t,g,q,l={},h=e._isElementShown,n=e.effectiveTabIndex,A=function(b){for(b=b.firstChild;b;b=b.nextSibling)if(!(1!=b.nodeType||9>=d("ie")&&"HTML"!==b.scopeName)&&h(b)){var c=n(b);if(0<=c){if(0==c)f||(f=b),p=b;else if(0<c){if(!k||c<t)t=c,k=b;if(!g||c>=q)q=c,g=b}c=a(b);m.get(b,"checked")&&c&&(l[c]=b)}"SELECT"!=b.nodeName.toUpperCase()&&A(b)}};h(c)&&A(c);return{first:b(f),last:b(p),lowest:b(k),highest:b(g)}},getFirstInTabbingOrder:function(c,
a){var b=e._getTabNavigable(l.byId(c,a));return b.lowest?b.lowest:b.first},getLastInTabbingOrder:function(c,a){var b=e._getTabNavigable(l.byId(c,a));return b.last?b.last:b.highest}};f.mixin(k,e);return e})},"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(h,l,m,n,f){var d={};h.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),function(f){d[f]=n[f]});m.mixin(d,{defaultDuration:l.defaultDuration||
200});m.mixin(f,d);return f})},"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(h,l,m,n,f,d,k,e,c,a,b,r,p){function u(){}function t(a){return function(b,c,g,d){return b&&"string"==typeof c&&b[c]==u?b.on(c.substring(2).toLowerCase(),k.hitch(g,d)):a.apply(m,arguments)}}h.around(m,"connect",
t);d.connect&&h.around(d,"connect",t);h=n("dijit._Widget",[b,r,p],{onClick:u,onDblClick:u,onKeyDown:u,onKeyPress:u,onKeyUp:u,onMouseDown:u,onMouseMove:u,onMouseOut:u,onMouseOver:u,onMouseLeave:u,onMouseEnter:u,onMouseUp:u,constructor:function(a){this._toConnect={};for(var b in a)this[b]===u&&(this._toConnect[b.replace(/^on/,"").toLowerCase()]=a[b],delete a[b])},postCreate:function(){this.inherited(arguments);for(var a in this._toConnect)this.on(a,this._toConnect[a]);delete this._toConnect},on:function(a,
b){return this[this._onMap(a)]===u?m.connect(this.domNode,a.toLowerCase(),this,b):this.inherited(arguments)},_setFocusedAttr:function(a){this._focused=a;this._set("focused",a)},setAttribute:function(a,b){d.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,b)},attr:function(a,b){return 2<=arguments.length||"object"===typeof a?this.set.apply(this,arguments):this.get(a)},getDescendants:function(){d.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.",
"","2.0");return this.containerNode?e("[widgetId]",this.containerNode).map(a.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});f("dijit-legacy-requires")&&c(0,function(){require(["dijit/_base"])});return h})},"dijit/_OnDijitClickMixin":function(){define("dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/has ./a11yclick".split(" "),function(h,l,m,n,f,d){h=n("dijit._OnDijitClickMixin",null,{connect:function(f,e,c){return this.inherited(arguments,
[f,"ondijitclick"==e?d:e,c])}});h.a11yclick=d;return h})},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(h,l,m,n){function f(d){if((d.keyCode===h.ENTER||d.keyCode===h.SPACE)&&!/input|button|textarea/i.test(d.target.nodeName))for(d=d.target;d;d=d.parentNode)if(d.dojoClick)return!0}var d;m(document,"keydown",function(e){f(e)?(d=e.target,e.preventDefault()):d=null});m(document,"keyup",function(e){f(e)&&e.target==d&&(d=null,m.emit(e.target,"click",{cancelable:!0,
bubbles:!0,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,altKey:e.altKey,_origType:e.type}))});var k=function(d,c){d.dojoClick=!0;return m(d,"click",c)};k.click=k;k.press=function(d,c){var a=m(d,n.press,function(a){("mousedown"!=a.type||l.isLeft(a))&&c(a)}),b=m(d,"keydown",function(a){a.keyCode!==h.ENTER&&a.keyCode!==h.SPACE||c(a)});return{remove:function(){a.remove();b.remove()}}};k.release=function(d,c){var a=m(d,n.release,function(a){("mouseup"!=a.type||l.isLeft(a))&&c(a)}),b=m(d,"keyup",
function(a){a.keyCode!==h.ENTER&&a.keyCode!==h.SPACE||c(a)});return{remove:function(){a.remove();b.remove()}}};k.move=n.move;return k})},"dijit/_FocusMixin":function(){define(["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(h,l,m,n){n.extend(l,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return m("dijit._FocusMixin",null,{_focusManager:h})})},"dojo/uacss":function(){define(["./dom-geometry",
"./_base/lang","./domReady","./sniff","./_base/window"],function(h,l,m,n,f){var d=f.doc.documentElement;f=n("ie");var k=n("trident"),e=n("opera"),c=Math.floor,a=n("ff"),b=h.boxModel.replace(/-/,""),e={dj_quirks:n("quirks"),dj_opera:e,dj_khtml:n("khtml"),dj_webkit:n("webkit"),dj_safari:n("safari"),dj_chrome:n("chrome"),dj_edge:n("edge"),dj_gecko:n("mozilla"),dj_ios:n("ios"),dj_android:n("android")};f&&(e.dj_ie=!0,e["dj_ie"+c(f)]=!0,e.dj_iequirks=n("quirks"));k&&(e.dj_trident=!0,e["dj_trident"+c(k)]=
!0);a&&(e["dj_ff"+c(a)]=!0);e["dj_"+b]=!0;var r="",p;for(p in e)e[p]&&(r+=p+" ");d.className=l.trim(d.className+" "+r);m(function(){if(!h.isBodyLtr()){var a="dj_rtl dijitRtl "+r.replace(/ /g,"-rtl ");d.className=l.trim(d.className+" "+a+"dj_rtl dijitRtl "+r.replace(/ /g,"-rtl "))}});return n})},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(h,l,m,n){m(function(){l("highcontrast")&&h.add(n.body(),"dijit_a11y")});return l})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),
function(h,l,m,n,f,d,k){f.add("highcontrast",function(){var d=k.doc.createElement("div");try{d.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(l.blankGif||h.toUrl("./resources/blank.gif"))+'");';k.body().appendChild(d);var c=n.getComputedStyle(d),a=c.backgroundImage;return c.borderTopColor==c.borderRightColor||a&&("none"==a||"url(invalid-url:)"==a)}catch(b){return!1}finally{8>=f("ie")?d.outerHTML="":k.body().removeChild(d)}});
d(function(){f("highcontrast")&&m.add(k.body(),"dj_a11y")});return f})},"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(h,l,m,n,f,d,k,e,c,a,b,r){l=l("dijit._CssStateMixin",[],{hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);h.forEach("disabled readOnly checked selected focused state hovering active _opened".split(" "),
function(a){this.watch(a,d.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(a){b=b.concat(h.map(b,function(b){return b+a}),"dijit"+a)}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,d={};h.forEach(c.className.split(" "),function(a){d[a]=!0});"_stateClasses"in this&&h.forEach(this._stateClasses,function(a){delete d[a]});h.forEach(b,function(a){d[a]=!0});var e=[],f;for(f in d)e.push(f);c.className=e.join(" ");this._stateClasses=b},_subnodeCssMouseEvent:function(a,
b,c){function d(c){n.toggle(a,b+"Active",c)}if(!this.disabled&&!this.readOnly)switch(c.type){case "mouseover":case "MSPointerOver":case "pointerover":n.toggle(a,b+"Hover",!0);break;case "mouseout":case "MSPointerOut":case "pointerout":n.toggle(a,b+"Hover",!1);d(!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":d(!0);break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":d(!1);break;case "focus":case "focusin":n.toggle(a,
b+"Focused",!0);break;case "blur":case "focusout":n.toggle(a,b+"Focused",!1)}},_trackMouseState:function(a,b){a._cssState=b}});e(function(){function d(a,b,c){if(!c||!m.isDescendant(c,b))for(;b&&b!=c;b=b.parentNode)if(b._cssState){var d=r.getEnclosingWidget(b);d&&(b==d.domNode?d._cssMouseEvent(a):d._subnodeCssMouseEvent(b,b._cssState,a))}}var e=a.body(),f;k(e,c.over,function(a){d(a,a.target,a.relatedTarget)});k(e,c.out,function(a){d(a,a.target,a.relatedTarget)});k(e,b.press,function(a){f=a.target;
d(a,f)});k(e,b.release,function(a){d(a,f);f=null});k(e,"focusin, focusout",function(a){var b=a.target;if(b._cssState&&!b.getAttribute("widgetId")){var c=r.getEnclosingWidget(b);c&&c._subnodeCssMouseEvent(b,b._cssState,a)}})});return l})},"dijit/form/_FormMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/on dojo/window".split(" "),function(h,l,m,n,f,d){return l("dijit.form._FormMixin",null,{state:"",_getDescendantFormWidgets:function(d){var e=[];h.forEach(d||
this.getChildren(),function(c){"value"in c?e.push(c):e=e.concat(this._getDescendantFormWidgets(c.getChildren()))},this);return e},reset:function(){h.forEach(this._getDescendantFormWidgets(),function(d){d.reset&&d.reset()})},validate:function(){var f=!1;return h.every(h.map(this._getDescendantFormWidgets(),function(e){e._hasBeenBlurred=!0;var c=e.disabled||!e.validate||e.validate();c||f||(d.scrollIntoView(e.containerNode||e.domNode),e.focus(),f=!0);return c}),function(d){return d})},setValues:function(d){m.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",d)},_setValueAttr:function(d){var e={};h.forEach(this._getDescendantFormWidgets(),function(a){a.name&&(e[a.name]||(e[a.name]=[])).push(a)});for(var c in e)if(e.hasOwnProperty(c)){var a=e[c],b=n.getObject(c,!1,d);void 0!==b&&(b=[].concat(b),"boolean"==typeof a[0].checked?h.forEach(a,function(a){a.set("value",-1!=h.indexOf(b,a._get("value")))}):a[0].multiple?a[0].set("value",b):h.forEach(a,function(a,c){a.set("value",
b[c])}))}},getValues:function(){m.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var d={};h.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?n.setObject(c,a,d):(a=n.getObject(c,!1,d),void 0===a&&n.setObject(c,null,d)):(e=n.getObject(c,!1,d),e||(e=[],n.setObject(c,e,d)),!1!==a&&
e.push(a)):(e=n.getObject(c,!1,d),"undefined"!=typeof e?n.isArray(e)?e.push(a):n.setObject(c,[e,a],d):n.setObject(c,a,d))}});return d},isValid:function(){return""==this.state},onValidStateChange:function(){},_getState:function(){var d=h.map(this._descendants,function(d){return d.get("state")||""});return 0<=h.indexOf(d,"Error")?"Error":0<=h.indexOf(d,"Incomplete")?"Incomplete":""},disconnectChildren:function(){},connectChildren:function(d){this._descendants=this._getDescendantFormWidgets();h.forEach(this._descendants,
function(d){d._started||d.startup()});d||this._onChildChange()},_onChildChange:function(d){d&&"state"!=d&&"disabled"!=d||this._set("state",this._getState());d&&"value"!=d&&"disabled"!=d&&"checked"!=d||(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(f(this.containerNode,"attrmodified-state, attrmodified-disabled, attrmodified-value, attrmodified-checked",function(e){e.target!=d.domNode&&d._onChildChange(e.type.replace("attrmodified-",""))}));this.watch("state",function(d,c,a){this.onValidStateChange(""==a)})},destroy:function(){this.inherited(arguments)}})})},"dijit/_DialogMixin":function(){define(["dojo/_base/declare","./a11y"],function(h,l){return h("dijit._DialogMixin",null,{actionBarTemplate:"",
execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var h=l._getTabNavigable(this.domNode);this._firstFocusItem=h.lowest||h.first||this.closeButtonNode||this.domNode;this._lastFocusItem=h.last||h.highest||this._firstFocusItem}})})},"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(h,l,m,n,f,d,k,e,c,a,b,r){var p=h("dijit.DialogUnderlay",[e,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){n.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(d(this.domNode,"keydown",l.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var a=this.node.style,b=this.domNode.style;b.display="none";var c=k.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 c=k.get(this.ownerDocument);this._modalConnects=[b.on("resize",l.hitch(this,"layout")),d(c,"scroll",
l.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,b){var c=p._singleton;!c||c._destroyed?c=r._underlay=p._singleton=new p(a):a&&c.set(a);f.set(c.domNode,"zIndex",b);c.open||c.show()};p.hide=function(){var a=
p._singleton;a&&!a._destroyed&&a.hide()};return p})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),function(h,l,m,n,f,d,k,e){e.add("config-bgIframe",(e("ie")||e("trident"))&&!/IEMobile\/10\.0/.test(navigator.userAgent));var c=new function(){var a=[];this.pop=function(){var b;a.length?(b=a.pop(),b.style.display=""):(9>e("ie")?(b=m.dojoBlankHtmlUrl||h.toUrl("dojo/resources/blank.html")||'javascript:""',
b=document.createElement("\x3ciframe src\x3d'"+b+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e")):(b=n.create("iframe"),b.src='javascript:""',b.className="dijitBackgroundIframe",b.setAttribute("role","presentation"),f.set(b,"opacity",.1)),b.tabIndex=-1);return b};this.push=function(b){b.style.display="none";a.push(b)}};l.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(e("config-bgIframe")){var b=this.iframe=
c.pop();a.appendChild(b);7>e("ie")||e("quirks")?(this.resize(a),this._conn=k(a,"resize",d.hitch(this,"resize",a))):f.set(b,{width:"100%",height:"100%"})}};d.extend(l.BackgroundIframe,{resize:function(a){this.iframe&&f.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 l.BackgroundIframe})},"dijit/Viewport":function(){define(["dojo/Evented",
"dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(h,l,m,n,f){var d=new h,k;m(function(){var e=f.getBox();d._rlh=l(window,"resize",function(){var a=f.getBox();if(e.h!=a.h||e.w!=a.w)e=a,d.emit("resize")});if(8==n("ie")){var c=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=c&&(c=screen.deviceXDPI,d.emit("resize"))},500)}n("ios")&&(l(document,"focusin",function(a){k=a.target}),l(document,"focusout",function(a){k=null}))});d.getEffectiveBox=function(d){d=f.getBox(d);var c=k&&
k.tagName&&k.tagName.toLowerCase();n("ios")&&k&&!k.readOnly&&("textarea"==c||"input"==c&&/^(color|email|number|password|search|tel|text|url)$/.test(k.type))&&(d.h*=0==orientation||180==orientation?.66:.4,c=k.getBoundingClientRect(),d.h=Math.max(d.h,c.top+c.height));return d};return d})},"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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g){return c("dijit.layout.ContentPane",[m,n,f],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:h._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 d=new c(a,b);return!d.href&&d._contentSetter&&d._contentSetter.parseDeferred&&!d._contentSetter.parseDeferred.isFulfilled()?d._contentSetter.parseDeferred.then(function(){return d}):d},create:function(a,c){if(!(a&&a.template||!c||"href"in a||"content"in a)){c=b.byId(c);for(var d=c.ownerDocument.createDocumentFragment();c.firstChild;)d.appendChild(c.firstChild);
a=l.delegate(a,{content:d})}this.inherited(arguments,[a,c])},postMixInProperties:function(){this.inherited(arguments);var a=t.getLocalization("dijit","loading",this.lang);this.loadingMessage=d.substitute(this.loadingMessage,a);this.errorMessage=d.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&&e.forEach(this._contentSetter.parseResults,
function(a){a._started||a._destroyed||!l.isFunction(a.startup)||(a.startup(),a._started=!0)},this)},_startChildren:function(){e.forEach(this.getChildren(),function(a){a._started||a._destroyed||!l.isFunction(a.startup)||(a.startup(),a._started=!0)});this._contentSetter&&e.forEach(this._contentSetter.parseResults,function(a){a._started||a._destroyed||!l.isFunction(a.startup)||(a.startup(),a._started=!0)},this)},setHref:function(a){h.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(l.hitch(this,"cancel"));this.onLoadDeferred.then(l.hitch(this,"onLoad"));this._set("href",b);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(a){h.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(l.hitch(this,"cancel"));this._created&&this.onLoadDeferred.then(l.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(l.hitch(this,"cancel"));this.onLoadDeferred.then(l.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"};
l.isObject(this.ioArgs)&&l.mixin(b,this.ioArgs);var c=this._xhrDfd=(this.ioMethod||u.get)(b),d;c.then(function(b){d=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 d});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(a)}catch(w){}},_onUnloadHandler:function(){this._set("isLoaded",
!1);try{this.onUnload()}catch(q){}},destroyDescendants:function(a){this.isLoaded&&this._onUnloadHandler();var b=this._contentSetter;e.forEach(this.getChildren(),function(b){b.destroyRecursive?b.destroyRecursive(a):b.destroy&&b.destroy(a);b._destroyed=!0});b&&(e.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 k._ContentSetter||(c=this._contentSetter=new k._ContentSetter({node:this.containerNode,_onError:l.hitch(this,this._onError),onContentError:l.hitch(this,function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=a}catch(v){}})}));var d=l.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||{}),d=c.set(l.isObject(a)&&a.domNode?a.domNode:a,d),e=this;return g(d&&d.then?d:c.parseDeferred,function(){delete e._contentSetterParams;b||(e._started&&(e._startChildren(),e._scheduleLayout()),e._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||a&&this._setContent(a,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},
onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(h,l,m,n){return l("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(f,d){var k=this.containerNode;if(0<d){for(k=k.firstChild;0<d;)1==k.nodeType&&d--,k=k.nextSibling;
k?d="before":(k=this.containerNode,d="last")}m.place(f.domNode,k,d);this._started&&!f._started&&f.startup()},removeChild:function(f){"number"==typeof f&&(f=this.getChildren()[f]);f&&(f=f.domNode)&&f.parentNode&&f.parentNode.removeChild(f)},hasChildren:function(){return 0<this.getChildren().length},_getSiblingOfChild:function(f,d){var k=this.getChildren(),e=h.indexOf(k,f);return k[e+d]},getIndexOfChild:function(f){return h.indexOf(this.getChildren(),f)}})})},"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(h,l,m,n,f,d,k,e,c,a){return l("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",d.hitch(this,"resize")))}},_checkIfSingleChild:function(){if(this.doLayout){var a=[],c=!1;k("\x3e *",this.containerNode).some(function(b){var d=
e.byNode(b);d&&d.resize?a.push(d):!/script|link|style/i.test(b.nodeName)&&b.offsetHeight&&(c=!0)});this._singleChild=1!=a.length||c?null:a[0];m.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)}},resize:function(a,c){this._resizeCalled=!0;this._scheduleLayout(a,c)},_scheduleLayout:function(a,c){this._isShown()?this._layout(a,c):(this._needLayout=!0,this._changeSize=a,this._resultSize=c)},_layout:function(b,c){delete this._needLayout;this._wasShown||!1===this.open||this._onShow();
b&&n.setMarginBox(this.domNode,b);var e=this.containerNode;if(e===this.domNode){var f=c||{};d.mixin(f,b||{});"h"in f&&"w"in f||(f=d.mixin(n.getMarginBox(e),f));this._contentBox=a.marginBox2contentBox(e,f)}else this._contentBox=n.getContentBox(e);this._layoutChildren()},_layoutChildren:function(){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||n.getContentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else for(var a=this.getChildren(),
c,d=0;c=a[d++];)c.resize&&c.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,c=this.domNode.parentNode;return"none"!=a.style.display&&"hidden"!=a.style.visibility&&!m.contains(a,"dijitHidden")&&c&&c.style&&"none"!=c.style.display},_onShow:function(){this._wasShown=!0;this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments)}})})},"dijit/layout/utils":function(){define(["dojo/_base/array",
"dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang"],function(h,l,m,n,f){function d(c){return c.substring(0,1).toUpperCase()+c.substring(1)}function k(c,a){var b=c.resize?c.resize(a):m.setMarginBox(c.domNode,a);b?f.mixin(c,b):(f.mixin(c,m.getMarginBox(c.domNode)),f.mixin(c,a))}var e={marginBox2contentBox:function(c,a){var b=n.getComputedStyle(c),d=m.getMarginExtents(c,b),e=m.getPadBorderExtents(c,b);return{l:n.toPixelValue(c,b.paddingLeft),t:n.toPixelValue(c,b.paddingTop),w:a.w-
(d.w+e.w),h:a.h-(d.h+e.h)}},layoutChildren:function(c,a,b,e,p){a=f.mixin({},a);l.add(c,"dijitLayoutContainer");b=h.filter(b,function(a){return"center"!=a.region&&"client"!=a.layoutAlign}).concat(h.filter(b,function(a){return"center"==a.region||"client"==a.layoutAlign}));h.forEach(b,function(b){var c=b.domNode,g=b.region||b.layoutAlign;if(!g)throw Error("No region setting for "+b.id);var f=c.style;f.left=a.l+"px";f.top=a.t+"px";f.position="absolute";l.add(c,"dijitAlign"+d(g));c={};e&&e==b.id&&(c["top"==
b.region||"bottom"==b.region?"h":"w"]=p);"leading"==g&&(g=b.isLeftToRight()?"left":"right");"trailing"==g&&(g=b.isLeftToRight()?"right":"left");"top"==g||"bottom"==g?(c.w=a.w,k(b,c),a.h-=b.h,"top"==g?a.t+=b.h:f.top=a.t+a.h+"px"):"left"==g||"right"==g?(c.h=a.h,k(b,c),a.w-=b.w,"left"==g?a.l+=b.w:f.left=a.l+a.w+"px"):"client"!=g&&"center"!=g||k(b,a)})}};f.setObject("dijit.layout.utils",e);return e})},"dojo/html":function(){define("./_base/kernel ./_base/lang ./_base/array ./_base/declare ./dom ./dom-construct ./parser".split(" "),
function(h,l,m,n,f,d,k){var e=0,c={_secureForInnerHtml:function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")},_emptyNode:d.empty,_setNodeContent:function(a,b){d.empty(a);if(b)if("number"==typeof b&&(b=b.toString()),"string"==typeof b&&(b=d.toDom(b,a.ownerDocument)),!b.nodeType&&l.isArrayLike(b))for(var c=b.length,e=0;e<b.length;e=c==b.length?e+1:0)d.place(b[e],a,"last");else d.place(b,a,"last");return a},_ContentSetter:n("dojo.html._ContentSetter",null,{node:"",
content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:h._scopeName,startup:!0,constructor:function(a,b){l.mixin(this,a||{});b=this.node=f.byId(this.node||b);this.id||(this.id=["Setter",b?b.id||b.tagName:"",e++].join("_"))},set:function(a,b){void 0!==a&&(this.content=a);"number"==typeof a&&(a=a.toString());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(r){var b=this.onContentError(r);try{a.innerHTML=b}catch(p){}}this.node=a},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred);this.parseResults&&this.parseResults.length&&(m.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);d.empty(this.node)},onBegin:function(){var a=this.content;if(l.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={};m.forEach(["dir","lang","textDir"],function(a){this[a]&&(b[a]=this[a])},this);var c=this;this.parseDeferred=k.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#"+c.id)})}catch(p){this._onError("Content",p,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,b,d){a=
this["on"+a+"Error"].call(this,b);d||a&&c._setNodeContent(this.node,a,!0)}}),set:function(a,b,d){void 0==b&&(b="");"number"==typeof b&&(b=b.toString());return d?(new c._ContentSetter(l.mixin(d,{content:b,node:a}))).set():c._setNodeContent(a,b,!0)}};l.setObject("dojo.html",c);return c})},"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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g){function q(a){return eval("("+a+")")}function w(a){var b=a._nameCaseMap,c=a.prototype;if(!b||b._extendCnt<x){var b=a._nameCaseMap={},d;for(d in c)"_"!==d.charAt(0)&&(b[d.toLowerCase()]=d);b._extendCnt=x}return b}function B(a,b){b||(b=h);var c=b._dojoParserCtorMap||(b._dojoParserCtorMap={}),d=a.join();if(!c[d]){for(var g=[],e=0,f=a.length;e<f;e++){var q=a[e];g[g.length]=c[q]=c[q]||m.getObject(q)||~q.indexOf("/")&&b(q)}e=g.shift();c[d]=g.length?e.createSubclass?
e.createSubclass(g):e.extend.apply(e,g):e}return c[d]}new Date("X");var x=0;c.after(m,"extend",function(){x++},!0);var A={_clearCache:function(){x++;_ctorMap={}},_functionFromScript:function(a,b){var c="",d="",g=a.getAttribute(b+"args")||a.getAttribute("args"),e=a.getAttribute("with"),g=(g||"").split(/\s*,\s*/);e&&e.length&&n.forEach(e.split(/\s*,\s*/),function(a){c+="with("+a+"){";d+="}"});return new Function(g,c+a.innerHTML+d)},instantiate:function(a,b,c){b=b||{};c=c||{};var d=(c.scope||l._scopeName)+
"Type",g="data-"+(c.scope||l._scopeName)+"-",e=g+"type",f=g+"mixins",q=[];n.forEach(a,function(a){var c=d in b?b[d]:a.getAttribute(e)||a.getAttribute(d);if(c){var g=a.getAttribute(f),c=g?[c].concat(g.split(/\s*,\s*/)):[c];q.push({node:a,types:c})}});return this._instantiate(q,b,c)},_instantiate:function(b,c,d,g){function e(a){c._started||d.noStart||n.forEach(a,function(a){"function"!==typeof a.startup||a._started||a.startup()});return a}b=n.map(b,function(a){var b=a.ctor||B(a.types,d.contextRequire);
if(!b)throw Error("Unable to resolve constructor for: '"+a.types.join()+"'");return this.construct(b,a.node,c,d,a.scripts,a.inherited)},this);return g?a(b).then(e):e(b)},construct:function(a,d,g,f,k,r){function h(a){E&&m.setObject(E,a);for(z=0;z<P.length;z++)c[P[z].advice||"after"](a,P[z].method,m.hitch(a,P[z].func),!0);for(z=0;z<S.length;z++)S[z].call(a);for(z=0;z<T.length;z++)a.watch(T[z].prop,T[z].func);for(z=0;z<U.length;z++)t(a,U[z].event,U[z].func);return a}var x=a&&a.prototype;f=f||{};var A=
{};f.defaults&&m.mixin(A,f.defaults);r&&m.mixin(A,r);var B;p("dom-attributes-explicit")?B=d.attributes:p("dom-attributes-specified-flag")?B=n.filter(d.attributes,function(a){return a.specified}):(r=(/^input$|^img$/i.test(d.nodeName)?d:d.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),B=n.map(r.split(/\s+/),function(a){var b=a.toLowerCase();return{name:a,value:"LI"==d.nodeName&&"value"==a||"enctype"==b?d.getAttribute(b):d.getAttributeNode(b).value}}));
var v=f.scope||l._scopeName;r="data-"+v+"-";var C={};"dojo"!==v&&(C[r+"props"]="data-dojo-props",C[r+"type"]="data-dojo-type",C[r+"mixins"]="data-dojo-mixins",C[v+"type"]="dojotype",C[r+"id"]="data-dojo-id");for(var z=0,y,v=[],E,D;y=B[z++];){var K=y.name,M=K.toLowerCase();y=y.value;switch(C[M]||M){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":D=y;break;case "data-dojo-id":case "jsid":E=y;break;case "data-dojo-attach-point":case "dojoattachpoint":A.dojoAttachPoint=
y;break;case "data-dojo-attach-event":case "dojoattachevent":A.dojoAttachEvent=y;break;case "class":A["class"]=d.className;break;case "style":A.style=d.style&&d.style.cssText;break;default:if(K in x||(K=w(a)[M]||K),K in x)switch(typeof x[K]){case "string":A[K]=y;break;case "number":A[K]=y.length?Number(y):NaN;break;case "boolean":A[K]="false"!=y.toLowerCase();break;case "function":""===y||-1!=y.search(/[^\w\.]+/i)?A[K]=new Function(y):A[K]=m.getObject(y,!1)||new Function(y);v.push(K);break;default:M=
x[K],A[K]=M&&"length"in M?y?y.split(/\s*,\s*/):[]:M instanceof Date?""==y?new Date(""):"now"==y?new Date:b.fromISOString(y):M instanceof e?l.baseUrl+y:q(y)}else A[K]=y}}for(B=0;B<v.length;B++)C=v[B].toLowerCase(),d.removeAttribute(C),d[C]=null;if(D)try{D=q.call(f.propsThis,"{"+D+"}"),m.mixin(A,D)}catch(V){throw Error(V.toString()+" in data-dojo-props\x3d'"+D+"'");}m.mixin(A,g);k||(k=a&&(a._noScript||x._noScript)?[]:u("\x3e script[type^\x3d'dojo/']",d));var P=[],S=[],T=[],U=[];if(k)for(z=0;z<k.length;z++)C=
k[z],d.removeChild(C),g=C.getAttribute(r+"event")||C.getAttribute("event"),f=C.getAttribute(r+"prop"),D=C.getAttribute(r+"method"),v=C.getAttribute(r+"advice"),B=C.getAttribute("type"),C=this._functionFromScript(C,r),g?"dojo/connect"==B?P.push({method:g,func:C}):"dojo/on"==B?U.push({event:g,func:C}):A[g]=C:"dojo/aspect"==B?P.push({method:D,advice:v,func:C}):"dojo/watch"==B?T.push({prop:f,func:C}):S.push(C);a=(k=a.markupFactory||x.markupFactory)?k(A,d,a):new a(A,d);return a.then?a.then(h):h(a)},scan:function(a,
b){function c(a){if(!a.inherited){a.inherited={};var b=a.node,d=c(a.parent),b={dir:b.getAttribute("dir")||d.dir,lang:b.getAttribute("lang")||d.lang,textDir:b.getAttribute(k)||d.textDir},g;for(g in b)b[g]&&(a.inherited[g]=b[g])}return a.inherited}var d=[],g=[],e={},f=(b.scope||l._scopeName)+"Type",q="data-"+(b.scope||l._scopeName)+"-",t=q+"type",k=q+"textdir",q=q+"mixins",m=a.firstChild,w=b.inherited;if(!w){var u=function(a,b){return a.getAttribute&&a.getAttribute(b)||a.parentNode&&u(a.parentNode,
b)},w={dir:u(a,"dir"),lang:u(a,"lang"),textDir:u(a,k)},x;for(x in w)w[x]||delete w[x]}for(var w={inherited:w},A,v;;)if(m)if(1!=m.nodeType)m=m.nextSibling;else if(A&&"script"==m.nodeName.toLowerCase())(C=m.getAttribute("type"))&&/^dojo\/\w/i.test(C)&&A.push(m),m=m.nextSibling;else if(v)m=m.nextSibling;else{var C=m.getAttribute(t)||m.getAttribute(f);x=m.firstChild;if(C||x&&(3!=x.nodeType||x.nextSibling)){v=null;if(C){var M=m.getAttribute(q);A=M?[C].concat(M.split(/\s*,\s*/)):[C];try{v=B(A,b.contextRequire)}catch(S){}v||
n.forEach(A,function(a){~a.indexOf("/")&&!e[a]&&(e[a]=!0,g[g.length]=a)});M=v&&!v.prototype._noScript?[]:null;w={types:A,ctor:v,parent:w,node:m,scripts:M};w.inherited=c(w);d.push(w)}else w={node:m,scripts:A,parent:w};A=M;v=m.stopParser||v&&v.prototype.stopParser&&!b.template;m=x}else m=m.nextSibling}else{if(!w||!w.node)break;m=w.node.nextSibling;v=!1;w=w.parent;A=w.scripts}var P=new r;g.length?(p("dojo-debug-messages"),(b.contextRequire||h)(g,function(){P.resolve(n.filter(d,function(a){if(!a.ctor)try{a.ctor=
B(a.types,b.contextRequire)}catch(V){}for(var c=a.parent;c&&!c.types;)c=c.parent;var d=a.ctor&&a.ctor.prototype;a.instantiateChildren=!(d&&d.stopParser&&!b.template);a.instantiate=!c||c.instantiate&&c.instantiateChildren;return a.instantiate}))})):P.resolve(d);return P.promise},_require:function(a,b){var c=q("{"+a.innerHTML+"}"),d=[],g=[],e=new r,f=b&&b.contextRequire||h,p;for(p in c)d.push(p),g.push(c[p]);f(g,function(){for(var a=0;a<d.length;a++)m.setObject(d[a],arguments[a]);e.resolve(arguments)});
return e.promise},_scanAmd:function(a,b){var c=new r,d=c.promise;c.resolve(!0);var g=this;u("script[type\x3d'dojo/require']",a).forEach(function(a){d=d.then(function(){return g._require(a,b)});a.parentNode.removeChild(a)});return d},parse:function(a,b){!a||"string"==typeof a||"nodeType"in a||(b=a,a=b.rootNode);var c=a?d.byId(a):k.body();b=b||{};var g=b.template?{template:!0}:{},e=[],f=this,q=this._scanAmd(c,b).then(function(){return f.scan(c,b)}).then(function(a){return f._instantiate(a,g,b,!0)}).then(function(a){return e=
e.concat(a)}).otherwise(function(a){throw a;});m.mixin(e,q);return e}};l.parser=A;f.parseOnLoad&&g(100,A,"parse");return A})},"dojo/_base/url":function(){define(["./kernel"],function(h){var l=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,m=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,n=function(){for(var f=arguments,d=[f[0]],k=1;k<f.length;k++)if(f[k]){var e=new n(f[k]+""),d=new n(d[0]+"");if(""==e.path&&!e.scheme&&!e.authority&&!e.query)null!=e.fragment&&(d.fragment=
e.fragment),e=d;else if(!e.scheme&&(e.scheme=d.scheme,!e.authority&&(e.authority=d.authority,"/"!=e.path.charAt(0)))){for(var d=(d.path.substring(0,d.path.lastIndexOf("/")+1)+e.path).split("/"),c=0;c<d.length;c++)"."==d[c]?c==d.length-1?d[c]="":(d.splice(c,1),c--):0<c&&(1!=c||""!=d[0])&&".."==d[c]&&".."!=d[c-1]&&(c==d.length-1?(d.splice(c,1),d[c-1]=""):(d.splice(c-1,2),c-=2));e.path=d.join("/")}d=[];e.scheme&&d.push(e.scheme,":");e.authority&&d.push("//",e.authority);d.push(e.path);e.query&&d.push("?",
e.query);e.fragment&&d.push("#",e.fragment)}this.uri=d.join("");f=this.uri.match(l);this.scheme=f[2]||(f[1]?"":null);this.authority=f[4]||(f[3]?"":null);this.path=f[5];this.query=f[7]||(f[6]?"":null);this.fragment=f[9]||(f[8]?"":null);null!=this.authority&&(f=this.authority.match(m),this.user=f[3]||null,this.password=f[4]||null,this.host=f[6]||f[7],this.port=f[9]||null)};n.prototype.toString=function(){return this.uri};return h._Url=n})},"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],
function(h,l){var m={};h.setObject("dojo.date.stamp",m);m.fromISOString=function(h,f){m._isoRegExp||(m._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var d=m._isoRegExp.exec(h),k=null;if(d){d.shift();d[1]&&d[1]--;d[6]&&(d[6]*=1E3);f&&(f=new Date(f),l.forEach(l.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(a){return f["get"+a]()}),function(a,b){d[b]=d[b]||a}));k=new Date(d[0]||1970,d[1]||
0,d[2]||1,d[3]||0,d[4]||0,d[5]||0,d[6]||0);100>d[0]&&k.setFullYear(d[0]||1970);var e=0,c=d[7]&&d[7].charAt(0);"Z"!=c&&(e=60*(d[8]||0)+(Number(d[9])||0),"-"!=c&&(e*=-1));c&&(e-=k.getTimezoneOffset());e&&k.setTime(k.getTime()+6E4*e)}return k};m.toISOString=function(l,f){var d=function(a){return 10>a?"0"+a:a};f=f||{};var k=[],e=f.zulu?"getUTC":"get",c="";"time"!=f.selector&&(c=l[e+"FullYear"](),c=["0000".substr((c+"").length)+c,d(l[e+"Month"]()+1),d(l[e+"Date"]())].join("-"));k.push(c);if("date"!=f.selector){c=
[d(l[e+"Hours"]()),d(l[e+"Minutes"]()),d(l[e+"Seconds"]())].join(":");e=l[e+"Milliseconds"]();f.milliseconds&&(c+="."+(100>e?"0":"")+d(e));if(f.zulu)c+="Z";else if("time"!=f.selector)var e=l.getTimezoneOffset(),a=Math.abs(e),c=c+((0<e?"-":"+")+d(Math.floor(a/60))+":"+d(a%60));k.push(c)}return k.join("T")};return m})},"dijit/_ConfirmDialogMixin":function(){define(["dojo/_base/declare","./_WidgetsInTemplateMixin","dojo/i18n!./nls/common","dojo/text!./templates/actionBar.html","./form/Button"],function(h,
l,m,n){return h("dijit._ConfirmDialogMixin",l,{actionBarTemplate:n,buttonOk:m.buttonOk,_setButtonOkAttr:{node:"okButton",attribute:"label"},buttonCancel:m.buttonCancel,_setButtonCancelAttr:{node:"cancelButton",attribute:"label"}})})},"dijit/_WidgetsInTemplateMixin":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang","dojo/parser"],function(h,l,m,n,f){return m("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,contextRequire:null,_beforeFillContent:function(){if(/dojoType|data-dojo-type/i.test(this.domNode.innerHTML)){var d=
this.domNode;this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0);f.parse(d,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,contextRequire:this.contextRequire,scope:"dojo"}).then(n.hitch(this,function(d){this._startupWidgets=d;for(var e=0;e<d.length;e++)this._processTemplateNode(d[e],function(c,a){return c[a]},function(c,a,b){return a in c?c.connect(c,a,b):c.on(a,b,!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(d,f,e){return f(d,"dojoType")||f(d,"data-dojo-type")?!0:this.inherited(arguments)},startup:function(){h.forEach(this._startupWidgets,function(d){d&&!d._started&&
d.startup&&d.startup()});this._startupWidgets=null;this.inherited(arguments)}})})},"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 ../a11yclick".split(" "),function(h,l,m,n,f,d,k,e,c,a){n("dijit-legacy-requires")&&k(0,function(){h(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});k=l("dijit.form.Button"+(n("dojo-bidi")?
"_NoBidi":""),[e,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=d.trim(this.containerNode.innerHTML),this.onLabelSet())},_setShowLabelAttr:function(a){this.containerNode&&
m.toggle(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},setLabel:function(a){f.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=d.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});n("dojo-bidi")&&(k=l("dijit.form.Button",k,{onLabelSet:function(){this.inherited(arguments);this.titleNode.title&&
this.applyTextDir(this.titleNode,this.titleNode.title)},_setTextDirAttr:function(a){this._created&&this.textDir!=a&&(this._set("textDir",a),this._setLabelAttr(this.label))}}));return k})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),function(h,l,m,n,f,d,k,e){l("dijit-legacy-requires")&&n(0,function(){require(["dijit/form/_FormValueWidget"])});return h("dijit.form._FormWidget",
[f,k,d,e],{setDisabled:function(c){m.deprecated("setDisabled("+c+") is deprecated. Use set('disabled',"+c+") instead.","","2.0");this.set("disabled",c)},setValue:function(c){m.deprecated("dijit.form._FormWidget:setValue("+c+") is deprecated.  Use set('value',"+c+") instead.","","2.0");this.set("value",c)},getValue:function(){m.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=
this.name&&!l("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(h,l,m,n,f,d,k,e,c,a){return l("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(b){this._set("disabled",b);/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)?(m.set(this.focusNode,"disabled",b),e("trident")&&"readOnly"in this&&m.set(this.focusNode,"readonly",b||this.readOnly)):this.focusNode.setAttribute("aria-disabled",b?"true":"false");this.valueNode&&m.set(this.valueNode,"disabled",b);b?(this._set("hovering",!1),this._set("active",!1),b="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:
"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode",h.forEach(f.isArray(b)?b:[b],function(b){b=this[b];e("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 b=this.own(k(this.focusNode,"focus",function(){l.remove();b.remove()}))[0],d=e("pointer-events")?"pointerup":e("MSPointer")?"MSPointerUp":e("touch-events")?"touchend, mouseup":
"mouseup",l=this.own(k(this.ownerDocumentBody,d,f.hitch(this,function(a){l.remove();b.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"!=n.get(this.domNode,"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(b){}},compare:function(a,c){return"number"==
typeof a&&"number"==typeof c?isNaN(a)&&isNaN(c)?0:a-c:a>c?1:a<c?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,c){void 0!=this._lastValueReported||null!==c&&this._onChangeActive||(this._resetValue=this._lastValueReported=a);this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||0!=this.compare(a,this._lastValueReported);(this.intermediateChanges||c||void 0===c)&&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(h,l,m,n){var f=h("dijit.form._ButtonMixin"+
(m("dojo-bidi")?"_NoBidi":""),null,{label:"",type:"button",__onClick:function(d){d.stopPropagation();d.preventDefault();this.disabled||this.valueNode.click(d);return!1},_onClick:function(d){if(this.disabled)return d.stopPropagation(),d.preventDefault(),!1;!1===this.onClick(d)&&d.preventDefault();var f=d.defaultPrevented;if(!f&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var e=this.domNode;e.parentNode;e=e.parentNode){var c=n.byNode(e);if(c&&"function"==typeof c._onSubmit){c._onSubmit(d);
d.preventDefault();f=!0;break}}return!f},postCreate:function(){this.inherited(arguments);l.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(d){this._set("label",d);(this.containerNode||this.focusNode).innerHTML=d;this.onLabelSet()},onLabelSet:function(){}});m("dojo-bidi")&&(f=h("dijit.form._ButtonMixin",f,{onLabelSet:function(){this.inherited(arguments);this.applyTextDir(this.containerNode||this.focusNode)}}));return f})},"dijit/layout/TabContainer":function(){define(["dojo/_base/lang",
"dojo/_base/declare","./_TabContainerBase","./TabController","./ScrollingTabController"],function(h,l,m,n,f){return l("dijit.layout.TabContainer",m,{useMenu:!0,useSlider:!0,controllerWidget:"",_makeController:function(d){var f=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout");return new ("string"==typeof this.controllerWidget?h.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":f,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},d)},postMixInProperties:function(){this.inherited(arguments);this.controllerWidget||(this.controllerWidget="top"!=this.tabPosition&&"bottom"!=this.tabPosition||this.nested?n:f)}})})},"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(h,l,m,n,f,d,k,e){return h("dijit.layout._TabContainerBase",[f,k],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:!1,nested:!1,templateString:e,postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&n.set(this.srcNodeRef,"visibility","hidden");this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);this.doLayout||
l.add(this.domNode,"dijitTabContainerNoLayout");this.nested?(l.add(this.domNode,"dijitTabContainerNested"),l.add(this.tablist.containerNode,"dijitTabContainerTabListNested"),l.add(this.tablistSpacer,"dijitTabContainerSpacerNested"),l.add(this.containerNode,"dijitTabPaneWrapperNested")):l.add(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"))},_setupChild:function(c){l.add(c.domNode,"dijitTabPane");this.inherited(arguments)},removeChild:function(c){l.remove(c.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 c=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"}];d.layoutChildren(this.domNode,this._contentBox,a);this._containerContentBox=d.marginBox2contentBox(this.containerNode,a[2]);c&&
c.resize&&c.resize(this._containerContentBox)}else{if(this.tablist.resize){a=this.tablist.domNode.style;a.width="0";var b=m.getContentBox(this.domNode).w;a.width="";this.tablist.resize({w:b})}c&&c.resize&&c.resize()}}},destroy:function(c){this.tablist&&this.tablist.destroy(c);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(h,l,m,n,f,d,k,e,c,a,b,r,p,u){d("dijit-legacy-requires")&&c(0,function(){require(["dijit/layout/StackController"])});m=m("dijit.layout.StackContainer",u,{doLayout:!0,persist:!1,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);n.add(this.domNode,"dijitLayoutContainer")},postCreate:function(){this.inherited(arguments);this.own(e(this.domNode,"keydown",k.hitch(this,"_onKeyDown")))},startup:function(){if(!this._started){var b=this.getChildren();h.forEach(b,this._setupChild,
this);this.persist?this.selectedChildWidget=r.byId(l(this.id+"_selectedChild")):h.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 b=a.domNode,c=f.place("\x3cdiv role\x3d'tabpanel' class\x3d'"+this.baseClass+"ChildWrapper dijitHidden'\x3e",a.domNode,"replace"),d=a["aria-label"]||a.title||a.label;d&&c.setAttribute("aria-label",d);f.place(b,c);a._wrapper=c;this.inherited(arguments);"none"==b.style.display&&(b.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(b){var c=h.indexOf(this.getChildren(),b);this.inherited(arguments);f.destroy(b._wrapper);delete b._wrapper;this._started&&a.publish(this.id+"-removeChild",b);if(!this._descendantsBeingDestroyed){if(this.selectedChildWidget===b&&(this.selectedChildWidget=void 0,this._started)){var d=this.getChildren();d.length&&this.selectChild(d[Math.max(c-1,0)])}this._started&&this.layout()}},selectChild:function(c,d){var g;c=r.byId(c);this.selectedChildWidget!=c&&(g=this._transition(c,
this.selectedChildWidget,d),this._set("selectedChildWidget",c),a.publish(this.id+"-selectChild",c,this._focused),this.persist&&l(this.id+"_selectedChild",this.selectedChildWidget.id));return b(g||!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=h.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&&n.replace(a._wrapper,
"dijitVisible","dijitHidden");return a._onShow&&a._onShow()||!0},_hideChild:function(a){a._set("selected",!1);a._wrapper&&n.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;h.forEach(this.getChildren(),function(b){a||this.removeChild(b);b.destroyRecursive(a)},this);this._descendantsBeingDestroyed=
!1}});m.ChildWidgetProperties={selected:!1,disabled:!1,closable:!1,iconClass:"dijitNoIcon",showTitle:!0};k.extend(p,m.ChildWidgetProperties);return m})},"dojo/cookie":function(){define(["./_base/kernel","./regexp"],function(h,l){h.cookie=function(h,n,f){var d=document.cookie,k;if(1==arguments.length)k=(k=d.match(new RegExp("(?:^|; )"+l.escapeString(h)+"\x3d([^;]*)")))?decodeURIComponent(k[1]):void 0;else{f=f||{};d=f.expires;if("number"==typeof d){var e=new Date;e.setTime(e.getTime()+864E5*d);d=f.expires=
e}d&&d.toUTCString&&(f.expires=d.toUTCString());n=encodeURIComponent(n);var d=h+"\x3d"+n,c;for(c in f)d+="; "+c,e=f[c],!0!==e&&(d+="\x3d"+e);document.cookie=d}return k};h.cookie.isSupported=function(){"cookieEnabled"in navigator||(this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled="CookiesAllowed"==this("__djCookieTest__"),navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1}));return navigator.cookieEnabled};return h.cookie})},"dojo/regexp":function(){define(["./_base/kernel",
"./_base/lang"],function(h,l){var m={};l.setObject("dojo.regexp",m);m.escapeString=function(l,f){return l.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,function(d){return f&&-1!=f.indexOf(d)?d:"\\"+d})};m.buildGroupRE=function(l,f,d){if(!(l instanceof Array))return f(l);for(var k=[],e=0;e<l.length;e++)k.push(f(l[e]));return m.group(k.join("|"),d)};m.group=function(l,f){return"("+(f?"?:":"")+l+")"};return m})},"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(h,l,m,n,f,d,k,e,c){return d("dijit.layout._LayoutWidget",[l,m,n],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,_setTitleAttr:null,buildRendering:function(){this.inherited(arguments);k.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();a&&a.isLayoutContainer||(this.resize(),this.own(f.on("resize",h.hitch(this,"resize"))))}},resize:function(a,b){var d=this.domNode;a&&e.setMarginBox(d,a);var f=b||
{};h.mixin(f,a||{});"h"in f&&"w"in f||(f=h.mixin(e.getMarginBox(d),f));var k=c.getComputedStyle(d),t=e.getMarginExtents(d,k),g=e.getBorderExtents(d,k),f=this._borderBox={w:f.w-(t.w+g.w),h:f.h-(t.h+g.h)},t=e.getPadExtents(d,k);this._contentBox={l:c.toPixelValue(d,k.paddingLeft),t:c.toPixelValue(d,k.paddingTop),w:f.w-t.w,h:f.h-t.h};this.layout()},layout:function(){},_setupChild:function(a){k.add(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,
b){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){k.remove(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}})})},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(h,l){return h("dijit._Contained",null,{_getSibling:function(l){var h=this.getParent();return h&&h._getSiblingOfChild&&h._getSiblingOfChild(this,"previous"==l?-1:1)||null},getPreviousSibling:function(){return this._getSibling("previous")},
getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var l=this.getParent();return l&&l.getIndexOfChild?l.getIndexOfChild(this):-1}})})},"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(h,l,m,n,f,d,k,e,c,a,b,r){r=h("dijit.layout._TabButton"+(f("dojo-bidi")?
"_NoBidi":""),e.StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:r,_setNameAttr:"focusNode",scrollOnFocus:!1,buildRendering:function(){this.inherited(arguments);l.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);n.toggle(this.domNode,"dijitClosable",a);this.closeNode.style.display=a?"":"none";
a&&(a=d.getLocalization("dijit","common"),this.closeNode&&m.set(this.closeNode,"title",a.itemClose))},_setDisabledAttr:function(a){this.inherited(arguments);if(this.closeNode)if(a)m.remove(this.closeNode,"title");else{var b=d.getLocalization("dijit","common");m.set(this.closeNode,"title",b.itemClose)}},_setLabelAttr:function(a){this.inherited(arguments);this.showLabel||this.params.title||(this.iconNode.alt=k.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});f("dojo-bidi")&&
(r=h("dijit.layout._TabButton",r,{_setLabelAttr:function(a){this.inherited(arguments);this.applyTextDir(this.iconNode,this.iconNode.alt)}}));h=h("dijit.layout.TabController",e,{baseClass:"dijitTabController",templateString:"\x3cdiv role\x3d'tablist' data-dojo-attach-event\x3d'onkeydown:onkeydown'\x3e\x3c/div\x3e",tabPosition:"top",buttonWidget:r,buttonWidgetCloseClass:"dijitTabCloseButton",postCreate:function(){this.inherited(arguments);var e=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 n.contains(a,"dijitClosable")&&!n.contains(a,"dijitTabDisabled")}});this.own(e);var f=d.getLocalization("dijit","common"),t=this;e.addChild(new b({label:f.itemClose,ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,onClick:function(a){a=c.byNode(this.getParent().currentTarget);t.onCloseButtonClick(a.page)}}))}});h.TabButton=r;return h})},"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(h,l,m,n,f,d,k,e,c,a,b,r,p,u){n=l("dijit.layout._StackButton",u,{tabIndex:"-1",closeButton:!1,_aria_attr:"aria-selected",buildRendering:function(a){this.inherited(arguments);(this.focusNode||this.domNode).setAttribute("role","tab")}});l=l("dijit.layout.StackController",[b,r,p],{baseClass:"dijitStackController",templateString:"\x3cspan role\x3d'tablist' data-dojo-attach-event\x3d'onkeydown'\x3e\x3c/span\x3e",containerId:"",buttonWidget:n,buttonWidgetCloseClass:"dijitStackCloseButton",pane2button:function(b){return a.byId(this.id+
"_"+b)},postCreate:function(){this.inherited(arguments);this.own(e.subscribe(this.containerId+"-startup",d.hitch(this,"onStartup")),e.subscribe(this.containerId+"-addChild",d.hitch(this,"onAddChild")),e.subscribe(this.containerId+"-removeChild",d.hitch(this,"onRemoveChild")),e.subscribe(this.containerId+"-selectChild",d.hitch(this,"onSelectChild")),e.subscribe(this.containerId+"-containerKeyDown",d.hitch(this,"onContainerKeyDown")));this.containerNode.dojoClick=!0;this.own(k(this.containerNode,"click",
d.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(m.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;h.forEach(b.children,this.onAddChild,this);if(b.selected)this.onSelectChild(b.selected);var c=a.byId(this.containerId).containerNode,e=d.hitch(this,"pane2button");
b={title:"label",showtitle:"showLabel",iconclass:"iconClass",closable:"closeButton",tooltip:"title",disabled:"disabled",textdir:"textdir"};var f=function(a,b){return k(c,"attrmodified-"+a,function(a){var c=e(a.detail&&a.detail.widget&&a.detail.widget.id);c&&c.set(b,a.detail.newValue)})},p;for(p in b)this.own(f(p,b[p]))},destroy:function(a){this.destroyDescendants(a);this.inherited(arguments)},onAddChild:function(a,b){var c=new (d.isString(this.buttonWidget)?d.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 d=this.pane2button(b.id);
c.focus(d.focusNode);this._currentChild&&this._currentChild.id===b.id&&d.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){this.isLeftToRight()||this.tabPosition&&!/top|bottom/.test(this.tabPosition)||(a=!a);var b=this.getChildren(),c=h.indexOf(b,this.pane2button(this._currentChild.id)),d=b[c],e;do c=(c+
(a?1:b.length-1))%b.length,e=b[c];while(e.disabled&&e!=d);return e},onkeydown:function(a,b){if(!this.disabled&&!a.altKey){var c=null;if(a.ctrlKey||!a._djpage){switch(a.keyCode){case f.LEFT_ARROW:case f.UP_ARROW:a._djpage||(c=!1);break;case f.PAGE_UP:a.ctrlKey&&(c=!1);break;case f.RIGHT_ARROW:case f.DOWN_ARROW:a._djpage||(c=!0);break;case f.PAGE_DOWN:a.ctrlKey&&(c=!0);break;case f.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 f.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 f.DELETE:case 87:this._currentChild.closable&&(a.keyCode==f.DELETE||a.ctrlKey)&&(this.onCloseButtonClick(this._currentChild),a.stopPropagation(),a.preventDefault());break;case f.TAB:a.ctrlKey&&(this.onButtonClick(this.adjacent(!a.shiftKey).page),a.stopPropagation(),a.preventDefault())}null!==c&&(this.onButtonClick(this.adjacent(c).page),
a.stopPropagation(),a.preventDefault())}}},onContainerKeyDown:function(a){a.e._djpage=a.page;this.onkeydown(a.e)}});l.StackButton=n;return l})},"dijit/form/ToggleButton":function(){define(["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(h,l,m,n){return h("dijit.form.ToggleButton",[m,n],{baseClass:"dijitToggleButton",setChecked:function(f){l.deprecated("setChecked("+f+") is deprecated. Use set('checked',"+f+") instead.","","2.0");this.set("checked",f)}})})},"dijit/form/_ToggleButtonMixin":function(){define(["dojo/_base/declare",
"dojo/dom-attr"],function(h,l){return h("dijit.form._ToggleButtonMixin",null,{checked:!1,_aria_attr:"aria-pressed",_onClick:function(l){var h=this.checked;this._set("checked",!h);var f=this.inherited(arguments);this.set("checked",f?this.checked:h);return f},_setCheckedAttr:function(h,n){this._set("checked",h);var f=this.focusNode||this.domNode;this._created&&l.get(f,"checked")!=!!h&&l.set(f,"checked",!!h);f.setAttribute(this._aria_attr,String(h));this._handleOnChange(h,n)},postCreate:function(){this.inherited(arguments);
var l=this.focusNode||this.domNode;this.checked&&l.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/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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g){b("dijit-legacy-requires")&&g(0,function(){h(["dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"])});return m("dijit.Menu",t,{constructor:function(){this._bindings=[]},targetNodeIds:[],selector:"",contextMenuForWindow:!1,leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(this.ownerDocumentBody):l.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(b){b=n.byId(b,this.ownerDocument);var d;if("iframe"==b.tagName.toLowerCase()){var g=b;d=this._iframeContentWindow(g);d=r.body(d.document)}else d=b==r.body(this.ownerDocument)?this.ownerDocument.documentElement:b;var q={node:b,
iframe:g};f.set(b,"_dijitMenu"+this.id,this._bindings.push(q));var p=c.hitch(this,function(b){var c=this.selector,d=c?function(b){return a.selector(c,b)}:function(a){return a},f=this;return[a(b,d(this.leftClickToOpen?"click":"contextmenu"),function(a){a.stopPropagation();a.preventDefault();(new Date).getTime()<f._lastKeyDown+500||f._scheduleOpen(this,g,{x:a.pageX,y:a.pageY},a.target)}),a(b,d("keydown"),function(a){if(93==a.keyCode||a.shiftKey&&a.keyCode==e.F10||f.leftClickToOpen&&a.keyCode==e.SPACE)a.stopPropagation(),
a.preventDefault(),f._scheduleOpen(this,g,null,a.target),f._lastKeyDown=(new Date).getTime()})]});q.connects=d?p(d):[];g&&(q.onloadHandler=c.hitch(this,function(){var a=this._iframeContentWindow(g),a=r.body(a.document);q.connects=p(a)}),g.addEventListener?g.addEventListener("load",q.onloadHandler,!1):g.attachEvent("onload",q.onloadHandler))},unBindDomNode:function(a){var b;try{b=n.byId(a,this.ownerDocument)}catch(C){return}a="_dijitMenu"+this.id;if(b&&f.has(b,a)){for(var c=f.get(b,a)-1,d=this._bindings[c],
g;g=d.connects.pop();)g.remove();(g=d.iframe)&&(g.removeEventListener?g.removeEventListener("load",d.onloadHandler,!1):g.detachEvent("onload",d.onloadHandler));f.remove(b,a);delete this._bindings[c]}},_scheduleOpen:function(a,b,c,d){this._openTimer||(this._openTimer=this.defer(function(){delete this._openTimer;this._openMyself({target:d,delegatedTarget:a,iframe:b,coords:c})},1))},_openMyself:function(a){function c(){h.refocus&&t&&t.focus();u.close(h)}var g=a.target,e=a.iframe,f=a.coords,q=!f;this.currentTarget=
a.delegatedTarget;if(f){if(e){a=d.position(e,!0);var g=this._iframeContentWindow(e),g=d.docScroll(g.document),p=k.getComputedStyle(e),r=k.toPixelValue,l=(b("ie")&&b("quirks")?0:r(e,p.paddingLeft))+(b("ie")&&b("quirks")?r(e,p.borderLeftWidth):0),e=(b("ie")&&b("quirks")?0:r(e,p.paddingTop))+(b("ie")&&b("quirks")?r(e,p.borderTopWidth):0);f.x+=a.x+l-g.x;f.y+=a.y+e-g.y}}else f=d.position(g,!0),f.x+=10,f.y+=10;var h=this,e=this._focusManager.get("prevNode");a=this._focusManager.get("curNode");var t=!a||
n.isDescendant(a,this.domNode)?e:a;u.open({popup:this,x:f.x,y:f.y,onExecute:c,onCancel:c,orient:this.isLeftToRight()?"L":"R"});this.focus();q||this.defer(function(){this._cleanUp(!0)});this._onBlur=function(){this.inherited("_onBlur",arguments);u.close(this)}},destroy:function(){l.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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g){function q(){this._popupWrapper&&(d.destroy(this._popupWrapper),delete this._popupWrapper)}m=m(null,{_stack:[],_beginZIndex:1E3,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var a=this._firstAroundPosition,c=k.position(this._firstAroundNode,!0),d=c.x-a.x,a=c.y-a.y;if(d||a)for(this._firstAroundPosition=c,c=0;c<this._stack.length;c++){var g=this._stack[c].wrapper.style;g.top=parseFloat(g.top)+a+"px";"auto"==g.right?g.left=parseFloat(g.left)+d+
"px":g.right=parseFloat(g.right)-d+"px"}this._aroundMoveListener=setTimeout(b.hitch(this,"_repositionAll"),d||a?10:50)}},_createWrapper:function(a){var b=a._popupWrapper,c=a.domNode;b||(b=d.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,l.after(a,"destroy",q,!0),"ontouchend"in document&&r(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=k.isBodyLtr(a.ownerDocument);var c={visibility:"hidden",top:"-9999px",display:""};c[a?"left":"right"]="-9999px";c[a?"right":"left"]="auto";e.set(b,c);return b},hide:function(a){var b=this._createWrapper(a);e.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(d){for(var g=this._stack,q=d.popup,l=q.domNode,h=d.orient||["below","below-alt","above","above-alt"],m=d.parent?d.parent.isLeftToRight():k.isBodyLtr(q.ownerDocument),w=d.around,E=d.around&&d.around.id?d.around.id+"_dropdown":"popup_"+this._idGen++;g.length&&(!d.parent||!n.isDescendant(d.parent.domNode,g[g.length-1].widget.domNode));)this.close(g[g.length-1].widget);var y=this.moveOffScreen(q);
q.startup&&!q._started&&q.startup();var D,F=k.position(l);if("maxHeight"in d&&-1!=d.maxHeight)D=d.maxHeight||Infinity;else{D=t.getEffectiveBox(this.ownerDocument);var L=w?k.position(w,!1):{y:d.y-(d.padding||0),h:2*(d.padding||0)};D=Math.floor(Math.max(L.y,D.h-(L.y+L.h)))}F.h>D&&(F=e.getComputedStyle(l),e.set(y,{overflowY:"scroll",height:D+"px",border:F.borderLeftWidth+" "+F.borderLeftStyle+" "+F.borderLeftColor}),l._originalStyle=l.style.cssText,l.style.border="none");f.set(y,{id:E,style:{zIndex:this._beginZIndex+
g.length},"class":"dijitPopup "+(q.baseClass||q["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:d.parent?d.parent.id:""});0==g.length&&w&&(this._firstAroundNode=w,this._firstAroundPosition=k.position(w,!0),this._aroundMoveListener=setTimeout(b.hitch(this,"_repositionAll"),50));c("config-bgIframe")&&!q.bgIframe&&(q.bgIframe=new u(y));E=q.orient?b.hitch(q,"orient"):null;h=w?p.around(y,w,h,m,E):p.at(y,d,"R"==h?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],d.padding,E);y.style.visibility="visible";
l.style.visibility="visible";l=[];l.push(r(y,"keydown",b.hitch(this,function(b){if(b.keyCode==a.ESCAPE&&d.onCancel)b.stopPropagation(),b.preventDefault(),d.onCancel();else if(b.keyCode==a.TAB&&(b.stopPropagation(),b.preventDefault(),(b=this.getTopPopup())&&b.onCancel))b.onCancel()})));q.onCancel&&d.onCancel&&l.push(q.on("cancel",d.onCancel));l.push(q.on(q.onExecute?"execute":"change",b.hitch(this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()})));g.push({widget:q,wrapper:y,parent:d.parent,
onExecute:d.onExecute,onCancel:d.onCancel,onClose:d.onClose,handlers:l});if(q.onOpen)q.onOpen(h);return h},close:function(a){for(var b=this._stack;a&&h.some(b,function(b){return b.widget==a})||!a&&b.length;){var c=b.pop(),d=c.widget,g=c.onClose;d.bgIframe&&(d.bgIframe.destroy(),delete d.bgIframe);if(d.onClose)d.onClose();for(var e;e=c.handlers.pop();)e.remove();d&&d.domNode&&this.hide(d);g&&g()}0==b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=
this._aroundMoveListener=null)}});return g.popup=new m})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(h,l,m,n,f,d,k){function e(a,b,c,e){var p=d.getEffectiveBox(a.ownerDocument);a.parentNode&&"body"==String(a.parentNode.tagName).toLowerCase()||f.body(a.ownerDocument).appendChild(a);var k=null;h.some(b,function(b){var d=b.corner,g=b.pos,f=0,q={w:{L:p.l+p.w-g.x,R:g.x-p.l,M:p.w}[d.charAt(1)],
h:{T:p.t+p.h-g.y,B:g.y-p.t,M:p.h}[d.charAt(0)]},r=a.style;r.left=r.right="auto";c&&(f=c(a,b.aroundCorner,d,q,e),f="undefined"==typeof f?0:f);var h=a.style,t=h.display,m=h.visibility;"none"==h.display&&(h.visibility="hidden",h.display="");r=l.position(a);h.display=t;h.visibility=m;t={L:g.x,R:g.x-r.w,M:Math.max(p.l,Math.min(p.l+p.w,g.x+(r.w>>1))-r.w)}[d.charAt(1)];m={T:g.y,B:g.y-r.h,M:Math.max(p.t,Math.min(p.t+p.h,g.y+(r.h>>1))-r.h)}[d.charAt(0)];g=Math.max(p.l,t);h=Math.max(p.t,m);t=Math.min(p.l+p.w,
t+r.w)-g;m=Math.min(p.t+p.h,m+r.h)-h;f+=r.w-t+(r.h-m);if(null==k||f<k.overflow)k={corner:d,aroundCorner:b.aroundCorner,x:g,y:h,w:t,h:m,overflow:f,spaceAvailable:q};return!f});k.overflow&&c&&c(a,k.aroundCorner,k.corner,k.spaceAvailable,e);b=k.y;var g=k.x,q=f.body(a.ownerDocument);/relative|absolute/.test(m.get(q,"position"))&&(b-=m.get(q,"marginTop"),g-=m.get(q,"marginLeft"));q=a.style;q.top=b+"px";q.left=g+"px";q.right="auto";return k}var c={TL:"BR",TR:"BL",BL:"TR",BR:"TL"};return k.place={at:function(a,
b,d,f,k){d=h.map(d,function(a){var d={corner:a,aroundCorner:c[a],pos:{x:b.x,y:b.y}};f&&(d.pos.x+="L"==a.charAt(1)?f.x:-f.x,d.pos.y+="T"==a.charAt(0)?f.y:-f.y);return d});return e(a,d,k)},around:function(a,b,c,d,f){function p(a,b){y.push({aroundCorner:a,corner:b,pos:{x:{L:C,R:C+z,M:C+(z>>1)}[a.charAt(1)],y:{T:v,B:v+E,M:v+(E>>1)}[a.charAt(0)]}})}var g;if("string"==typeof b||"offsetWidth"in b||"ownerSVGElement"in b){if(g=l.position(b,!0),/^(above|below)/.test(c[0])){var q=l.getBorderExtents(b),k=b.firstChild?
l.getBorderExtents(b.firstChild):{t:0,l:0,b:0,r:0},r=l.getBorderExtents(a),u=a.firstChild?l.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0};g.y+=Math.min(q.t+k.t,r.t+u.t);g.h-=Math.min(q.t+k.t,r.t+u.t)+Math.min(q.b+k.b,r.b+u.b)}}else g=b;if(b.parentNode)for(q="absolute"==m.getComputedStyle(b).position,b=b.parentNode;b&&1==b.nodeType&&"BODY"!=b.nodeName;){k=l.position(b,!0);r=m.getComputedStyle(b);/relative|absolute/.test(r.position)&&(q=!1);if(!q&&/hidden|auto|scroll/.test(r.overflow)){var u=Math.min(g.y+
g.h,k.y+k.h),A=Math.min(g.x+g.w,k.x+k.w);g.x=Math.max(g.x,k.x);g.y=Math.max(g.y,k.y);g.h=u-g.y;g.w=A-g.x}"absolute"==r.position&&(q=!0);b=b.parentNode}var C=g.x,v=g.y,z="w"in g?g.w:g.w=g.width,E="h"in g?g.h:(n.deprecated("place.around: dijit/place.__Rectangle: { x:"+C+", y:"+v+", height:"+g.height+", width:"+z+" } has been deprecated.  Please use { x:"+C+", y:"+v+", h:"+g.height+", w:"+z+" }","","2.0"),g.h=g.height),y=[];h.forEach(c,function(a){var b=d;switch(a){case "above-centered":p("TM","BM");
break;case "below-centered":p("BM","TM");break;case "after-centered":b=!b;case "before-centered":p(b?"ML":"MR",b?"MR":"ML");break;case "after":b=!b;case "before":p(b?"TL":"TR",b?"TR":"TL");p(b?"BL":"BR",b?"BR":"BL");break;case "below-alt":b=!b;case "below":p(b?"BL":"BR",b?"TL":"TR");p(b?"BR":"BL",b?"TR":"TL");break;case "above-alt":b=!b;case "above":p(b?"TL":"TR",b?"BL":"BR");p(b?"TR":"TL",b?"BR":"BL");break;default:p(a.aroundCorner,a.corner)}});a=e(a,y,f,{w:z,h:E});a.aroundNodePos=g;return a}}})},
"dijit/DropDownMenu":function(){define(["dojo/_base/declare","dojo/keys","dojo/text!./templates/Menu.html","./_MenuBase"],function(h,l,m,n){return h("dijit.DropDownMenu",n,{templateString:m,baseClass:"dijitMenu",_onUpArrow:function(){this.focusPrev()},_onDownArrow:function(){this.focusNext()},_onRightArrow:function(f){this._moveToPopup(f);f.stopPropagation();f.preventDefault()},_onLeftArrow:function(f){if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();else this.onCancel(!1);
else f.stopPropagation(),f.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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t){return l("dijit._MenuBase",[r,t,u,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){f.toggle(this.domNode,"dijitMenuActive",a);f.toggle(this.domNode,"dijitMenuPassive",!a);this._set("activated",a)},parentMenu:null,popupDelay:500,passivePopupDelay:Infinity,autoFocus:!1,childSelector:function(a){var c=b.byNode(a);return a.parentNode==this.containerNode&&c&&c.focus},postCreate:function(){var c=this,f="string"==typeof this.childSelector?this.childSelector:d.hitch(this,"childSelector");this.own(e(this.containerNode,
e.selector(f,k.enter),function(){c.onItemHover(b.byNode(this))}),e(this.containerNode,e.selector(f,k.leave),function(){c.onItemUnhover(b.byNode(this))}),e(this.containerNode,e.selector(f,a),function(a){c.onItemClick(b.byNode(this),a);a.stopPropagation()}),e(this.containerNode,e.selector(f,"focusin"),function(){c._onItemFocus(b.byNode(this))}));this.inherited(arguments)},onKeyboardSearch:function(a,b,c,d){this.inherited(arguments);if(a&&(-1==d||a.popup&&1==d))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=e.once(c.domNode,"mouseover",d.hitch(this,"_onPopupHover")));var g=this;a._openPopup({parent:this,orient:this._orient||["after","before"],onCancel:function(){b&&g.focusChild(a);g._cleanUp()},onExecute:d.hitch(this,"_cleanUp",!0),onClose:function(){g._mouseoverHandle&&(g._mouseoverHandle.remove(),delete g._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&&(n.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(h,l,m,n,f,d,k,e,c,a){return l("dijit._KeyNavContainer",[c,a,e],{connectKeyNavHandlers:function(a,c){var b=this._keyNavCodes=
{},e=d.hitch(this,"focusPrev"),k=d.hitch(this,"focusNext");h.forEach(a,function(a){b[a]=e});h.forEach(c,function(a){b[a]=k});b[f.HOME]=d.hitch(this,"focusFirstChild");b[f.END]=d.hitch(this,"focusLastChild")},startupKeyNavChildren:function(){n.deprecated("startupKeyNavChildren() call no longer needed","","2.0")},startup:function(){this.inherited(arguments);h.forEach(this.getChildren(),d.hitch(this,"_startupChild"))},addChild:function(a,c){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=k.byNode(a))&&a.getParent()==this}})})},"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(h,l,m,n,f,d,k,e){return l("dijit._KeyNavMixin",e,{tabIndex:"0",childSelector:null,postCreate:function(){this.inherited(arguments);m.set(this.domNode,"tabIndex",this.tabIndex);if(!this._keyNavCodes){var c=this._keyNavCodes={};c[n.HOME]=f.hitch(this,"focusFirstChild");c[n.END]=f.hitch(this,"focusLastChild");c[this.isLeftToRight()?n.LEFT_ARROW:n.RIGHT_ARROW]=f.hitch(this,"_onLeftArrow");c[this.isLeftToRight()?n.RIGHT_ARROW:n.LEFT_ARROW]=f.hitch(this,"_onRightArrow");c[n.UP_ARROW]=f.hitch(this,
"_onUpArrow");c[n.DOWN_ARROW]=f.hitch(this,"_onDownArrow")}var a=this,c="string"==typeof this.childSelector?this.childSelector:f.hitch(this,"childSelector");this.own(d(this.domNode,"keypress",f.hitch(this,"_onContainerKeypress")),d(this.domNode,"keydown",f.hitch(this,"_onContainerKeydown")),d(this.domNode,"focus",f.hitch(this,"_onContainerFocus")),d(this.containerNode,d.selector(c,"focusin"),function(b){a._onChildFocus(k.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(c,a){c&&(this.focusedChild&&c!==this.focusedChild&&this._onChildBlur(this.focusedChild),
c.set("tabIndex",this.tabIndex),c.focus(a?"end":"start"))},_onContainerFocus:function(c){c.target!==this.domNode||this.focusedChild||this.focus()},_onFocus:function(){m.set(this.domNode,"tabIndex","-1");this.inherited(arguments)},_onBlur:function(c){m.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(c){c&&c!=this.focusedChild&&
(this.focusedChild&&!this.focusedChild._destroyed&&this.focusedChild.set("tabIndex","-1"),c.set("tabIndex",this.tabIndex),this.lastFocused=c,this._set("focusedChild",c))},_searchString:"",multiCharSearchDuration:1E3,onKeyboardSearch:function(c,a,b,d){c&&this.focusChild(c)},_keyboardSearchCompare:function(c,a){var b=c.domNode,b=(c.label||(b.focusNode?b.focusNode.label:"")||b.innerText||b.textContent||"").replace(/^\s+/,"").substr(0,a.length).toLowerCase();return a.length&&b==a?-1:0},_onContainerKeydown:function(c){var a=
this._keyNavCodes[c.keyCode];a?(a(c,this.focusedChild),c.stopPropagation(),c.preventDefault(),this._searchString=""):c.keyCode!=n.SPACE||!this._searchTimer||c.ctrlKey||c.altKey||c.metaKey||(c.stopImmediatePropagation(),c.preventDefault(),this._keyboardSearch(c," "))},_onContainerKeypress:function(c){c.charCode<=n.SPACE||c.ctrlKey||c.altKey||c.metaKey||(c.preventDefault(),c.stopPropagation(),this._keyboardSearch(c,String.fromCharCode(c.charCode).toLowerCase()))},_keyboardSearch:function(c,a){var b=
null,d,e=0;f.hitch(this,function(){this._searchTimer&&this._searchTimer.remove();this._searchString+=a;var c=/^(.)\1*$/.test(this._searchString)?1:this._searchString.length;d=this._searchString.substr(0,c);this._searchTimer=this.defer(function(){this._searchTimer=null;this._searchString=""},this.multiCharSearchDuration);var f=this.focusedChild||null;if(1==c||!f)if(f=this._getNextFocusableChild(f,1),!f)return;c=f;do{var g=this._keyboardSearchCompare(f,d);g&&0==e++&&(b=f);if(-1==g){e=-1;break}f=this._getNextFocusableChild(f,
1)}while(f&&f!=c)})();this.onKeyboardSearch(b,c,d,e)},_onChildBlur:function(){},_getNextFocusableChild:function(c,a){var b=c;do{if(c)c=this._getNext(c,a);else if(c=this[0<a?"_getFirst":"_getLast"](),!c)break;if(null!=c&&c!=b&&c.isFocusable())return c}while(c!=b);return null},_getFirst:function(){return null},_getLast:function(){return null},_getNext:function(c,a){if(c)for(c=c.domNode;c;)if((c=c[0>a?"previousSibling":"nextSibling"])&&"getAttribute"in c){var b=k.byNode(c);if(b)return b}return null}})})},
"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(h,l,m,n,f,d,k,e,c,a,b,r){k=h("dijit.MenuItem"+(d("dojo-bidi")?"_NoBidi":""),[e,c,a,b],{templateString:r,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(a){this._set("label",a);var b="",c;c=a.search(/{\S}/);if(0<=c){var b=a.charAt(c+1),d=a.substr(0,
c);a=a.substr(c+3);c=d+b+a;a=d+'\x3cspan class\x3d"dijitMenuItemShortcutKey"\x3e'+b+"\x3c/span\x3e"+a}else c=a;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);m.set(this.containerNode,"id",this.id+
"_text");this.accelKeyNode&&m.set(this.accelKeyNode,"id",this.id+"_accel");l.setSelectable(this.domNode,!1)},onClick:function(){},focus:function(){try{8==d("ie")&&this.containerNode.focus(),this.focusNode.focus()}catch(p){}},_setSelected:function(a){n.toggle(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){f.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},setDisabled:function(a){f.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,m.set(this.containerNode,"colSpan",a?"1":"2"));this._set("accelKey",a)}});d("dojo-bidi")&&(k=h("dijit.MenuItem",k,{_setLabelAttr:function(a){this.inherited(arguments);"auto"===this.textDir&&this.applyTextDir(this.textDirNode)}}));
return k})},"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(h,l,m,n,f,d,k,e,
c,a,b,r,p,u,t,g,q,w,B,x){r=l("dijit.layout.ScrollingTabController",[u,g],{baseClass:"dijitTabController dijitScrollingTabController",templateString:r,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",m.add(a,"tabStrip-disabled"));m.add(this.tablistWrapper,this.tabStripClass)},onStartup:function(){this.inherited(arguments);f.set(this.domNode,"visibility","");this._postStartup=!0;this.own(e(this.containerNode,"attrmodified-label, attrmodified-iconclass",k.hitch(this,function(a){this._dim&&this.resize(this._dim)})))},onAddChild:function(a,b){this.inherited(arguments);f.set(this.containerNode,"width",f.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+=n.getMarginSize(a).w,!0;f.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 b=this._getTabsWidth();a=a||f.get(this.scrollNode,"width");return 0<b&&a<b},resize:function(a){this._dim=a;this.scrollNode.style.height="auto";var b=this._contentBox=t.marginBox2contentBox(this.domNode,{h:0,w:a.w});b.h=this.scrollNode.offsetHeight;n.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";t.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:f.get(this.containerNode,"width")-f.get(this.scrollNode,"width")+(a("trident")||a("edge")?-1:1)*this.scrollNode.scrollLeft},_convertToScrollLeft:function(b){if(this.isLeftToRight()||8>a("ie")||a("trident")&&a("quirks")||a("webkit"))return b;var c=f.get(this.containerNode,"width")-f.get(this.scrollNode,"width");return(a("trident")||a("edge")?-1:1)*(b-c)},onSelectChild:function(a,
b){var c=this.pane2button(a.id);if(c){var d=c.domNode;if(d!=this._selectedTab&&(this._selectedTab=d,this._postResize)){var g=this._getScroll();g>d.offsetLeft||g+f.get(this.scrollNode,"width")<d.offsetLeft+f.get(d,"width")?(d=this.createSmoothScroll(),b&&(d.onEnd=function(){c.focus()}),d.play()):b&&c.focus()}this.inherited(arguments)}},_getScrollBounds:function(){var a=this.getChildren(),b=f.get(this.scrollNode,"width"),c=f.get(this.containerNode,"width")-b,d=this._getTabsWidth();if(a.length&&d>b)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-b:c};a=this.isLeftToRight()?0:c;return{min:a,max:a}},_getScrollForSelectedTab:function(){var a=this._selectedTab,b=f.get(this.scrollNode,"width"),c=this._getScrollBounds(),a=a.offsetLeft+f.get(a,"width")/2-b/2;return a=Math.min(Math.max(a,c.min),c.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,g=this.scrollNode,e=new d.Animation({beforeBegin:function(){this.curve&&delete this.curve;var b=g.scrollLeft,f=c._convertToScrollLeft(a);e.curve=new d._Line(b,f)},onAnimate:function(a){g.scrollLeft=a}});this._anim=e;this._setButtonClass(a);return e},_getBtnNode:function(a){for(a=a.target;a&&!m.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,b){if(!b||!m.contains(b,"dijitTabDisabled")){var c=.75*f.get(this.scrollNode,"width")*a,c=this._getScroll()+c;this._setButtonClass(c);this.createSmoothScroll(c).play()}},_setButtonClass:function(a){var b=this._getScrollBounds();this._leftBtn.set("disabled",a<=b.min);this._rightBtn.set("disabled",a>=b.max)}});p=l("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:p,
tabIndex:"",isFocusable:function(){return!1}});l("dijit.layout._ScrollingTabControllerButton",[B,p]);l("dijit.layout._ScrollingTabControllerMenuButton",[B,x,p],{containerId:"",tabIndex:"-1",isLoaded:function(){return!1},loadDropDown:function(a){this.dropDown=new q({id:this.containerId+"_menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir});var c=b.byId(this.containerId);h.forEach(c.getChildren(),function(a){var b=new w({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||c.textDir,onClick:function(){c.selectChild(a)}});this.dropDown.addChild(b)},this);a()},closeDropDown:function(a){this.inherited(arguments);this.dropDown&&(this._popupStateNode.removeAttribute("aria-owns"),this.dropDown.destroyRecursive(),delete this.dropDown)}});return r})},"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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g){return h("dijit._HasDropDown",g,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(c){this.disabled||this.readOnly||("MSPointerDown"!=c.type&&c.preventDefault(),this.own(b.once(this.ownerDocument,r.release,a.hitch(this,"_onDropDownMouseUp"))),this.toggleDropDown())},_onDropDownMouseUp:function(a){var b=
this.dropDown,c=!1;if(a&&this._opened){var g=d.position(this._buttonNode,!0);if(!(a.pageX>=g.x&&a.pageX<=g.x+g.w&&a.pageY>=g.y&&a.pageY<=g.y+g.h)){for(g=a.target;g&&!c;)f.contains(g,"dijitPopup")?c=!0:g=g.parentNode;if(c){g=a.target;if(b.onItemClick){for(var e;g&&!(e=p.byNode(g));)g=g.parentNode;if(e&&e.onClick&&e.getParent)e.getParent().onItemClick(e,a)}return}}}this._opened?b.focus&&(!1!==b.autoFocus||"mouseup"==a.type&&!this.hovering)&&(this._focusDropDownTimer=this.defer(function(){b.focus();
delete this._focusDropDownTimer})):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";f.add(this._arrowWrapperNode||this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);var c=this.focusNode||this.domNode;this.own(b(this._buttonNode,r.press,a.hitch(this,"_onDropDownMouseDown")),b(this._buttonNode,"click",a.hitch(this,"_onDropDownClick")),b(c,"keydown",a.hitch(this,"_onKey")),b(c,"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,d=a.target;b&&this._opened&&b.handleKey&&!1===b.handleKey(a)?(a.stopPropagation(),a.preventDefault()):b&&this._opened&&a.keyCode==c.ESCAPE?(this.closeDropDown(),a.stopPropagation(),a.preventDefault()):!this._opened&&(a.keyCode==c.DOWN_ARROW||(a.keyCode==c.ENTER||a.keyCode==c.SPACE&&(!this._searchTimer||a.ctrlKey||a.altKey||a.metaKey))&&("input"!==(d.tagName||"").toLowerCase()||
d.type&&"text"!==d.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 l,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 b=this.dropDown,c=b.domNode,g=this._aroundNode||this.domNode,e=this,p=t.open({parent:this,popup:b,around:g,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){e.closeDropDown(!0)},onCancel:function(){e.closeDropDown(!0)},onClose:function(){n.set(e._popupStateNode,"popupActive",
!1);f.remove(e._popupStateNode,"dijitHasDropDownOpen");e._set("_opened",!1)}});if(this.forceWidth||this.autoWidth&&g.offsetWidth>b._popupWrapper.offsetWidth){var g=g.offsetWidth-b._popupWrapper.offsetWidth,k={w:b.domNode.offsetWidth+g};this._origStyle=c.style.cssText;a.isFunction(b.resize)?b.resize(k):d.setMarginBox(c,k);"R"==p.corner[1]&&(b._popupWrapper.style.left=b._popupWrapper.style.left.replace("px","")-g+"px")}n.set(this._popupStateNode,"popupActive","true");f.add(this._popupStateNode,"dijitHasDropDownOpen");
this._set("_opened",!0);this._popupStateNode.setAttribute("aria-expanded","true");this._popupStateNode.setAttribute("aria-owns",b.id);"presentation"===c.getAttribute("role")||c.getAttribute("aria-labelledby")||c.setAttribute("aria-labelledby",this.id);return p},closeDropDown:function(a){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer);this._opened&&(this._popupStateNode.setAttribute("aria-expanded","false"),a&&this.focus&&this.focus(),t.close(this.dropDown),
this._opened=!1);this._origStyle&&(this.dropDown.domNode.style.cssText=this._origStyle,delete this._origStyle)}})})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),function(h,l,m,n,f,d,k,e,c){function a(a){return function(b,c,d){return 2==arguments.length?a["string"==typeof c?"get":"set"](b,c):a.set(b,c,d)}}var b=function(a){return 1==a.length&&"string"==typeof a[0]},r=function(a){var b=
a.parentNode;b&&b.removeChild(a)},p=l.NodeList,u=p._adaptWithCondition,t=p._adaptAsForEach,g=p._adaptAsMap;n.extend(p,{_normalize:function(a,b){var c=!0===a.parse;if("string"==typeof a.template){var g=a.templateFunc||h.string&&h.string.substitute;a=g?g(a.template,a):a}g=typeof a;"string"==g||"number"==g?(a=d.toDom(a,b&&b.ownerDocument),a=11==a.nodeType?n._toArray(a.childNodes):[a]):n.isArrayLike(a)?n.isArray(a)||(a=n._toArray(a)):a=[a];c&&(a._runParse=!0);return a},_cloneNode:function(a){return a.cloneNode(!0)},
_place:function(a,b,c,g){if(1==b.nodeType||"only"!=c)for(var e,f=a.length,p=f-1;0<=p;p--){var q=g?this._cloneNode(a[p]):a[p];if(a._runParse&&h.parser&&h.parser.parse)for(e||(e=b.ownerDocument.createElement("div")),e.appendChild(q),h.parser.parse(e),q=e.firstChild;e.firstChild;)e.removeChild(e.firstChild);p==f-1?d.place(q,b,c):b.parentNode.insertBefore(q,b);b=q}},position:g(k.position),attr:u(a(e),b),style:u(a(c),b),addClass:t(f.add),removeClass:t(f.remove),toggleClass:t(f.toggle),replaceClass:t(f.replace),
empty:t(d.empty),removeAttr:t(e.remove),marginBox:g(k.getMarginBox),place:function(a,b){var c=l(a)[0];return this.forEach(function(a){d.place(a,c,b)})},orphan:function(a){return(a?l._filterResult(this,a):this).forEach(r)},adopt:function(a,b){return l(a).place(this[0],b)._stash(this)},query:function(a){if(!a)return this;var b=new p;this.map(function(c){l(a,c).forEach(function(a){void 0!==a&&b.push(a)})});return b._stash(this)},filter:function(a){var b=arguments,c=this,d=0;if("string"==typeof a){c=
l._filterResult(this,b[0]);if(1==b.length)return c._stash(this);d=1}return this._wrap(m.filter(c,b[d],b[d+1]),this)},addContent:function(a,b){a=this._normalize(a,this[0]);for(var c=0,g;g=this[c];c++)a.length?this._place(a,g,b,0<c):d.empty(g);return this}});return p})},"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(h,l,m,n,f,d,k,e){l=l("dijit.layout.LayoutContainer",
k,{design:"headline",baseClass:"dijitLayoutContainer",startup:function(){this._started||(h.forEach(this.getChildren(),this._setupChild,this),this.inherited(arguments))},_setupChild:function(c){this.inherited(arguments);c.region&&m.add(c.domNode,this.baseClass+"Pane")},_getOrderedChildren:function(){var c=h.map(this.getChildren(),function(a,b){return{pane:a,weight:["center"==a.region?Infinity:0,a.layoutPriority,("sidebar"==this.design?1:-1)*(/top|bottom/.test(a.region)?1:-1),b]}},this);c.sort(function(a,
b){for(var c=a.weight,d=b.weight,e=0;e<c.length;e++)if(c[e]!=d[e])return c[e]-d[e];return 0});return h.map(c,function(a){return a.pane})},layout:function(){e.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();m.remove(c.domNode,this.baseClass+"Pane");n.set(c.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});
n.set(c.domNode,/top|bottom/.test(c.region)?"width":"height","auto")}});l.ChildWidgetProperties={region:"",layoutAlign:"",layoutPriority:0};f.extend(d,l.ChildWidgetProperties);return l})},"app/utils/DomUtils":function(){define(["dojo/_base/array","dojo/dom-construct","dojo/_base/lang","dojo/_base/connect"],function(h,l,m,n){return{addOptionsToSelect:function(f,d){h.forEach(d.data,function(k){l.place('\x3coption value\x3d"'+k[d.idProperty]+'"\x3e'+k[d.labelProperty]+"\x3c/option\x3e",f)})},getSelectedOption:function(f){return f.options[f.selectedIndex].value}}})},
"app/ui/widgets/SearchPane":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-class dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./templates/SearchPane.html dgrid/OnDemandGrid dgrid/Keyboard dgrid/Selection dijit/Menu dijit/MenuItem dijit/MenuSeparator dojo/dom-construct dojo/dom-attr dojo/topic dojo/on dojo/dom-style dojo/window ../../utils/DomUtils".split(" "),function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B,x){return h([f,d],{templateString:k,conceptSchemeList:null,
baseClass:"search-pane",appUi:null,_grid:null,_scheme:null,postCreate:function(){this.inherited(arguments)},startup:function(){this.inherited(arguments);this._fillConceptSchemeSelect(this.conceptSchemeList);this._createGrid(this.gridNode);this._grid.startup();this._calculateGridHeight();q(window,"resize",m.hitch(this,function(){this._calculateGridHeight()}))},init:function(a,b){this._scheme=a;this._grid.set("collection",b)},_createGrid:function(b){var d=this._grid=(new h([e,c,a]))({columns:{id:"ID",
concept:{label:"Concept",renderCell:function(a){return u.create("div",{"class":"slideMenuGridCell",innerHTML:"\x3ch3\x3e"+a.label+"\x3c/h3\x3e\x3cp\x3eTYPE: "+a.type+"\x3c/p\x3e\x3cp\x3eURI: "+a.uri+"\x3c/p\x3e"})}}},sort:{property:"label"},selectionMode:"single",cellNavigation:!1,loadingMessage:"Loading data...",noDataMessage:"No results found.",collection:null},b),g=this._createContextMenu(),f=this._createCollectionContextMenu();d.on(".dgrid-content .dgrid-row:click",m.hitch(this,function(a){(a=
d.row(a))&&this._rowSelect(a)}));d.on(".dgrid-row:contextmenu",m.hitch(this,function(a){a.preventDefault();var b=d.row(a).data.type;b&&"concept"===b?(g.selectedGridItem=d.row(a).data,g._scheduleOpen(this,null,{x:a.pageX,y:a.pageY})):(f.selectedGridItem=d.row(a).data,f._scheduleOpen(this,null,{x:a.pageX,y:a.pageY}))}))},_calculateGridHeight:function(){var a=B.getBox().h-30-60;w.set(this.searchResultsNode,"height",a-326-80+"px")},_rowSelect:function(a){this.emit("row-select",{data:a.data,scheme:this._scheme})},
_rowDeSelect:function(a){this.emit("row-deselect",{data:a.data,scheme:this._scheme})},_fillConceptSchemeSelect:function(a){x.addOptionsToSelect(this.conceptSchemeSelect,{data:a,idProperty:"id",labelProperty:"name"});this.own(q(this.conceptSchemeSelect,"change",m.hitch(this,function(){this.emit("scheme.changed",{schemeId:this.conceptSchemeSelect.value});t.set(this.addConceptButton,"disabled",!1);t.set(this.importConceptButton,"disabled",!1);t.set(this.editSchemeButton,"disabled",!1);this._search()})))},
_createContextMenu:function(){var a=new b({}),c=this;a.addChild(new r({label:"Add narrower concept",onClick:m.hitch(this,function(){c.emit("concept.addnarrower",{conceptId:a.selectedGridItem.id})})}));a.addChild(new r({label:"Add subordinate array",onClick:m.hitch(this,function(){c.emit("concept.addsubarray",{conceptId:a.selectedGridItem.id})})}));a.addChild(new r({label:"Edit",onClick:m.hitch(this,function(){c.emit("concept.edit",{conceptId:a.selectedGridItem.id})})}));a.addChild(new r({label:"Delete",
onClick:m.hitch(this,function(){c.emit("concept.delete",{conceptId:a.selectedGridItem.id})})}));a.addChild(new p);a.addChild(new r({label:"Add concept or collection",onClick:m.hitch(this,function(){c.emit("concept.create")})}));return a},_createCollectionContextMenu:function(){var a=new b({}),c=this;a.addChild(new r({label:"Add member",onClick:m.hitch(this,function(){c.emit("concept.addmember",{conceptId:a.selectedGridItem.id})})}));a.addChild(new r({label:"Edit",onClick:m.hitch(this,function(){c.emit("concept.edit",
{conceptId:a.selectedGridItem.id})})}));a.addChild(new r({label:"Delete",onClick:m.hitch(this,function(){c.emit("concept.delete",{conceptId:a.selectedGridItem.id})})}));a.addChild(new p);a.addChild(new r({label:"Add concept or collection",onClick:m.hitch(this,function(){c.emit("concept.create")})}));return a},_search:function(a){a?a.preventDefault():null;a=x.getSelectedOption(this.conceptSchemeSelect);this.matchInput.value=this.matchInput.value.trim();this.labelInput.value=this.labelInput.value.trim();
if(-1==a)g.publish("dGrowl","You have to select a scheme.",{title:"",sticky:!1,channel:"warn"});else{var b={type:x.getSelectedOption(this.conceptTypeSelect),label:this.labelInput.value,sort:"+label"};""!==this.matchInput.value&&(b.match=this.matchInput.value);b=this.appUi.conceptController.getConceptStore(a).filter(b);this.init(a,b);this.appUi._slideMenu._slideOpen()}},_resetSearchInputs:function(){this.labelSearchForm.reset()},_createConcept:function(a){a.preventDefault();this.appUi._createConcept(a)},
_importConcept:function(a){a.preventDefault();this.appUi._importConcept(a)},_editLanguages:function(a){a.preventDefault();this.appUi._editLanguages(a)},_editConceptScheme:function(a){a.preventDefault();this.appUi._editConceptScheme(a)}})})},"dgrid/OnDemandGrid":function(){define(["dojo/_base/declare","./Grid","./OnDemandList"],function(h,l,m){return h([l,m],{})})},"dgrid/Grid":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/on dojo/has ./List ./util/misc dojo/_base/sniff".split(" "),
function(h,l,m,n,f,d,k,e){function c(a,b){b&&b.nodeType&&a.appendChild(b)}h=h(k,{columns:null,hasNeutralSort:!1,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"),f=0;f<d.length;f++)if(d[f].columnId===b){c=d[f];break}}if(null!=a)return{row:e||this.row(a),column:b&&this.column(b),element:c}},createRowCells:function(a,b,c,f,k){var p=m.create("table",{className:"dgrid-row-table",role:"presentation"}),g=9>d("ie")?m.create("tbody",null,p):p,q,l,h,r,n,u,v,z,E,y;c=c||this.subRows;l=0;for(h=c.length;l<h;l++)for(u=c[l],q=m.create("tr",null,g),u.className&&(q.className=u.className),
r=0,n=u.length;r<n;r++){v=u[r];z=v.id;E=v.field?" field-"+e.escapeCssIdentifier(v.field,"-"):"";(y="function"===typeof v.className?v.className(f):v.className)&&(E+=" "+y);E=m.create(a,{className:"dgrid-cell"+(z?" dgrid-column-"+e.escapeCssIdentifier(z,"-"):"")+E,role:"th"===a?"columnheader":"gridcell"});E.columnId=z;if(z=v.colSpan)E.colSpan=z;if(z=v.rowSpan)E.rowSpan=z;b(E,v,f,k);q.appendChild(E)}return p},_createBodyRowCell:function(a,b,d,e){var f=d;b.get?f=b.get(d):"field"in b&&"_item"!==b.field&&
(f=d[b.field]);b.renderCell?c(a,b.renderCell(d,f,a,e)):this._defaultRenderCell.call(b,d,f,a,e)},_createHeaderRowCell:function(a,b){var d=b.headerNode=a,e=b.field;e&&(a.field=e);b.renderHeaderCell?c(d,b.renderHeaderCell(d)):("label"in b||b.field)&&d.appendChild(document.createTextNode("label"in b?b.label:b.field));!1!==b.sortable&&e&&"_item"!==e&&(a.sortable=!0,a.className+=" dgrid-sortable")},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"))},_defaultRenderCell:function(a,b,c){if(this.formatter){var d=this.formatter,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))},renderRow:function(a,b){var c=this.createRowCells("td",l.hitch(this,"_createBodyRowCell"),b&&b.subRows,a,b),d=m.create("div",{role:"row"});d.appendChild(c);return d},renderHeader:function(){var a=
this,b=this.headerNode;b.setAttribute("role","row");m.empty(b);var c=this.createRowCells("th",l.hitch(this,"_createHeaderRowCell"),this.subRows&&this.subRows.headerRows);this._rowIdToObject[c.id=this.id+"-header"]=this.columns;b.appendChild(c);this._sortListener&&this._sortListener.remove();this._sortListener=f(c,"click,keydown",function(c){if("click"===c.type||32===c.keyCode||!d("opera")&&13===c.keyCode){var e=c.target,p,g;do if(e.sortable){p=e.field||e.columnId;g=a.sort[0];p=a.hasNeutralSort&&g&&
g.property===p&&g.descending?[]:[{property:p,descending:g&&g.property===p&&!g.descending}];g={bubbles:!0,cancelable:!0,grid:a,parentType:c.type,sort:p};f.emit(c.target,"dgrid-sort",g)&&(a._sortNode=e,a.set("sort",p));break}while((e=e.parentNode)&&e!==b)}})},resize:function(){var a=this.headerNode.firstChild,b=this.contentNode,c;this.inherited(arguments);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(){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,b){this._lastSortedArrow&&(n.remove(this._lastSortedArrow.parentNode,"dgrid-sort-up dgrid-sort-down"),m.destroy(this._lastSortedArrow),delete this._lastSortedArrow);b&&(this.sort=a);if(a[0]){var c=a[0].property,d=a[0].descending,c=this._sortNode||this._findSortArrowParent(c);
delete this._sortNode;c&&(c=c.contents||c,this._lastSortedArrow=m.create("div",{className:"dgrid-sort-arrow ui-icon",innerHTML:"\x26nbsp;",role:"presentation"},c,"first"),n.add(c,"dgrid-sort-"+(d?"down":"up")),this.resize())}},styleColumn:function(a,b){return this.addCssRule("#"+e.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-"+e.escapeCssIdentifier(a,"-"),b)},_configColumns:function(a,b){var c=[],d=b instanceof Array;e.each(b,function(e,f){"string"===typeof e&&(b[f]=e={label:e});d||e.field||
(e.field=f);f=e.id=e.id||(isNaN(f)?f:a+f);this._configColumn&&(this._configColumn(e,b,a),f=e.id);d&&(this.columns[f]=e);e.grid=this;c.push(e)},this);return d?b:c},_destroyColumns:function(){this.cleanup()},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()},_updateColumns:function(){this.configStructure();this.renderHeader();this.refresh();this._lastCollection&&this.renderArray(this._lastCollection);this._started&&(this.sort.length?(this._lastSortedArrow=null,this.updateSortArrow(this.sort)):this.resize())}});h.appendIfNode=c;return h})},"dgrid/List":function(){define("dojo/_base/declare dojo/dom-construct dojo/dom-class dojo/on dojo/has ./util/misc dojo/_base/sniff".split(" "),
function(h,l,m,n,f,d){function k(a,b){a.className="dgrid-scrollbar-measure";document.body.appendChild(a);var c=a["offset"+b]-a["client"+b];a.className="";a.parentNode&&document.body.removeChild(a);return c}function e(a){m.replace(this.domNode,a,this._class||"");this._class=a}function c(){return this._class}var a=[];f("mozilla")&&a.push("has-mozilla");f("touch")&&a.push("has-touch");m.add(document.documentElement,a);f.add("pointer",function(a){return"PointerEvent"in a?"pointer":"MSPointerEvent"in a?
"MSPointer":!1});var b,r;f.add("dom-scrollbar-width",function(a,b,c){return k(c,"Width")});f.add("dom-scrollbar-height",function(a,b,c){return k(c,"Height")});f.add("dom-rtl-scrollbar-left",function(a,b,c){a=document.createElement("div");c.className="dgrid-scrollbar-measure";c.setAttribute("dir","rtl");c.appendChild(a);document.body.appendChild(c);b=!!f("ie")||!!f("trident")||/\bEdge\//.test(navigator.userAgent)||a.offsetLeft>=f("dom-scrollbar-width");c.className="";c.parentNode&&document.body.removeChild(c);
l.destroy(a);c.removeAttribute("dir");return b});var p=0,u=function(){this._started&&this.resize()},t=h(null,{tabableHeader:!1,showHeader:!1,showFooter:!1,maintainOddEven:!0,cleanAddedRules:!0,addUiClasses:!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,
b){var c=this.domNode=b||document.createElement("div"),d;a&&(this.params=a,h.safeMixin(this,a),d=a["class"]||a.className||c.className);this.sort=this.sort||[];this._listeners=[];this._rowIdToObject={};this.postMixInProperties&&this.postMixInProperties();this.id=c.id=c.id||this.id||t.autoIdPrefix+p++;this.buildRendering();d&&e.call(this,d);this.postCreate();delete this.srcNodeRef;this.domNode.offsetHeight&&this.startup()},buildRendering:function(){var a=this.domNode,b=this.addUiClasses,c=this,e,p,
k;k=this.isRTL="rtl"===(document.body.dir||document.documentElement.dir||document.body.style.direction).toLowerCase();a.className="";a.setAttribute("role","grid");m.add(a,"dgrid dgrid-"+this.listType+(b?" ui-widget":""));e=this.headerNode=l.create("div",{className:"dgrid-header dgrid-header-row"+(b?" ui-widget-header":"")+(this.showHeader?"":" dgrid-header-hidden")},a);p=this.bodyNode=l.create("div",{className:"dgrid-scroller"},a);f("ff")&&(p.tabIndex=-1);this.headerScrollNode=l.create("div",{className:"dgrid-header dgrid-header-scroll dgrid-scrollbar-width"+
(b?" ui-widget-header":"")},a);this.footerNode=l.create("div",{className:"dgrid-footer"+(this.showFooter?"":" dgrid-footer-hidden")},a);k&&(a.className+=" dgrid-rtl"+(f("dom-rtl-scrollbar-left")?" dgrid-rtl-swap":""));n(p,"scroll",function(b){c.showHeader&&(e.scrollLeft=b.scrollLeft||p.scrollLeft);b.stopPropagation();n.emit(a,"scroll",{scrollTarget:p})});this.configStructure();this.renderHeader();this.contentNode=this.touchNode=l.create("div",{className:"dgrid-content"+(b?" ui-widget-content":"")},
this.bodyNode);this._listeners.push(this._resizeHandle=n(window,"resize",d.throttleDelayed(u,this)))},postCreate: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.footerNode,c=this.showFooter?c.offsetHeight:0;this.headerScrollNode.style.height=a.style.marginTop=this.headerNode.offsetHeight+"px";a.style.marginBottom=c+"px";b||(b=f("dom-scrollbar-width"),
r=f("dom-scrollbar-height"),f("ie")&&(b++,r++),d.addCssRule(".dgrid-scrollbar-width","width: "+b+"px"),d.addCssRule(".dgrid-scrollbar-height","height: "+r+"px"),17!==b&&(d.addCssRule(".dgrid-header-row","right: "+b+"px"),d.addCssRule(".dgrid-rtl-swap .dgrid-header-row","left: "+b+"px")))},addCssRule:function(a,b){var c=d.addCssRule(a,b);this.cleanAddedRules&&this._listeners.push(c);return c},on:function(a,b){var c=n(this.domNode,a,b);f("dom-addeventlistener")||this._listeners.push(c);return c},cleanup:function(){for(var a in this._rowIdToObject)if(this._rowIdToObject[a]!==
this.columns){var b=document.getElementById(a);b&&this.removeRow(b,!0)}},destroy:function(){if(this._listeners){for(var a=this._listeners.length;a--;)this._listeners[a].remove();this._listeners=null}this._started=!1;this.cleanup();l.destroy(this.domNode)},refresh:function(){this.cleanup();this._rowIdToObject={};this._autoRowId=0;this.contentNode.innerHTML="";this.scrollTo({x:0,y:0})},highlightRow:function(a,b){var c="dgrid-highlight"+(this.addUiClasses?" ui-state-highlight":"");a=a.element||a;m.add(a,
c);setTimeout(function(){m.remove(a,c)},b||this.highlightDuration)},adjustRowIndices:function(a){var b=a.rowIndex;if(-1<b){do-1<a.rowIndex&&(this.maintainOddEven&&m.contains(a,"dgrid-row")&&m.replace(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){c=c||{};var d=c.start||0,e=document.createDocumentFragment(),g=[],f=0,p=a.length;b||(this._lastCollection=a);for(;f<p;)g[f]=this.insertRow(a[f],
e,null,d++,c),f++;(a=b?b.parentNode:this.contentNode)&&a.parentNode&&(a!==this.contentNode||p)&&(a.insertBefore(e,b||null),p&&this.adjustRowIndices(g[p-1]));return g},renderHeader:function(){},_autoRowId:0,insertRow:function(a,b,c,d,e){var g=this.id+"-row-"+(this.collection&&this.collection.getIdentity?this.collection.getIdentity(a):this._autoRowId++),f=document.getElementById(g),p=f&&f.previousSibling;f&&(f===c&&(c=(c.connected||c).nextSibling),this.removeRow(f,!1,e));f=this.renderRow(a,e);f.className=
(f.className||"")+" dgrid-row "+(1===d%2?"dgrid-row-odd":"dgrid-row-even")+(this.addUiClasses?" ui-state-default":"");this._rowIdToObject[f.id=g]=a;b.insertBefore(f,c||null);f.rowIndex=d;p&&p.rowIndex!==f.rowIndex-1&&this.adjustRowIndices(p);return f},renderRow:function(a){var b=document.createElement("div");b.appendChild(document.createTextNode(a));return b},removeRow:function(a,b){a=a.element||a;delete this._rowIdToObject[a.id];b||l.destroy(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.collection.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 e,f;f=e=a.element;b=b||1;do if(a=e[0>b?"previousSibling":"nextSibling"]){do if((e=
a)&&-1<(e.className+" ").indexOf(c+" ")){f=e;b+=0>b?1:-1;break}while(a=(!d||!e.hidden)&&e[0>b?"lastChild":"firstChild"])}else if(e=e.parentNode,!e||e===this.bodyNode||e===this.headerNode)break;while(b);return f},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:function(a){"undefined"!==typeof a.x&&(this.bodyNode.scrollLeft=a.x);"undefined"!==
typeof a.y&&(this.bodyNode.scrollTop=a.y)},getScrollPosition:function(){return{x:this.bodyNode.scrollLeft,y:this.bodyNode.scrollTop}},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:c,_setClass:e,_getClassName:c,_setClassName:e,_setSort:function(a,b){this.sort="string"!==typeof a?a:[{property:a,descending:b}];this._applySort()},_applySort:function(){this.refresh();if(this._lastCollection){var a=this.sort;if(a&&0<a.length){var b=a[0].property,c=!!a[0].descending;this._lastCollection.sort(function(a,d){var e=a[b],f=d[b];void 0===e&&(e="");void 0===f&&(f="");return e===f?0:e>f!==c?1:-1})}this.renderArray(this._lastCollection)}},_setShowHeader:function(a){var b=this.headerNode;
this.showHeader=a;m.toggle(b,"dgrid-header-hidden",!a);this.renderHeader();this.resize();a&&(b.scrollLeft=this.getScrollPosition().x)},_setShowFooter:function(a){this.showFooter=a;m.toggle(this.footerNode,"dgrid-footer-hidden",!a);this.resize()}});t.autoIdPrefix="dgrid_";return t})},"dgrid/util/misc":function(){define(["dojo/has"],function(h){h.add("dom-contains",function(d,c,a){return!!a.contains});var l=[],m,n,f,d=/([^A-Za-z0-9_\u00A0-\uFFFF-])/g,k={defaultDelay:15,throttle:function(d,c,a){var b=
!1;a=a||k.defaultDelay;return function(){b||(b=!0,d.apply(c,arguments),setTimeout(function(){b=!1},a))}},throttleDelayed:function(d,c,a){var b=!1;a=a||k.defaultDelay;return function(){if(!b){b=!0;var e=arguments;setTimeout(function(){b=!1;d.apply(c,e)},a)}}},debounce:function(d,c,a){var b;a=a||k.defaultDelay;return function(){b&&(clearTimeout(b),b=null);var e=arguments;b=setTimeout(function(){d.apply(c,e)},a)}},each:function(d,c,a){var b,e;if(d)if("number"===typeof d.length)for(b=0,e=d.length;b<e;b++)c.call(a,
d[b],b,d);else for(b in d)c.call(a,d[b],b,d)},addCssRule:function(d,c){m||(m=document.createElement("style"),document.getElementsByTagName("head")[0].appendChild(m),m=m.sheet||m.styleSheet,n=m.deleteRule?"deleteRule":"removeRule",f=m.cssRules?"cssRules":"rules");var a=l.length;l[a]=(m.cssRules||m.rules).length;m.addRule?m.addRule(d,c):m.insertRule(d+"{"+c+"}",l[a]);return{get:function(b){return m[f][l[a]].style[b]},set:function(b,c){"undefined"!==typeof l[a]&&(m[f][l[a]].style[b]=c)},remove:function(){var b=
l[a],c,d;if(void 0!==b)for(m[n](b),l[a]=void 0,c=a+1,d=l.length;c<d;c++)l[c]>b&&l[c]--}}},escapeCssIdentifier:function(e,c){return"string"===typeof e?e.replace(d,c||"\\$1"):e}};return k})},"dgrid/OnDemandList":function(){define("./List ./_StoreMixin dojo/_base/declare dojo/_base/lang dojo/dom-construct dojo/on dojo/when ./util/misc".split(" "),function(h,l,m,n,f,d,k,e){return m([h,l],{minRowsPerPage:25,maxRowsPerPage:250,maxEmptySpace:Infinity,bufferRows:10,farOffRemoval:2E3,queryRowsOverlap:0,pagingMethod:"debounce",
pagingDelay:e.defaultDelay,keepScrollPosition:!1,rowHeight:0,postCreate:function(){this.inherited(arguments);var c=this;d(this.bodyNode,"scroll",e[this.pagingMethod](function(a){c._processScroll(a)},null,this.pagingDelay))},renderQuery:function(c,a){var b=this,d=a&&a.container||this.contentNode,e={query:c,count:0},l,h=this.preload,g={node:f.create("div",{className:"dgrid-preload",style:{height:"0"}},d),count:0,query:c,next:e};g.node.rowIndex=0;e.node=l=f.create("div",{className:"dgrid-preload"},d);
e.previous=g;l.rowIndex=this.minRowsPerPage;h?((e.next=h.next)&&l.offsetTop>=h.node.offsetTop?e.previous=h:(e.next=h,e.previous=h.previous),e.previous.next=e,e.next.previous=e):this.preload=e;var q=f.create("div",{className:"dgrid-loading"},l,"before");f.create("div",{className:"dgrid-below"},q).innerHTML=this.loadingMessage;a=n.mixin({start:0,count:this.minRowsPerPage},"level"in c?{queryLevel:c.level}:null);return this._trackError(function(){var d=c(a);return b.renderQueryResults(d,l,a).then(function(c){return d.totalLength.then(function(d){var g=
c.length,p=l.parentNode;b._rows&&(b._rows.min=0,b._rows.max=g===d?Infinity:g-1);f.destroy(q);"queryLevel"in a||(b._total=d);0===d&&p&&(b.noDataNode&&f.destroy(b.noDataNode),b._insertNoDataNode(p));b._calcAverageRowHeight(c);d-=g;e.count=d;l.rowIndex=g;d?l.style.height=Math.min(d*b.rowHeight,b.maxEmptySpace)+"px":l.style.display="none";b._previousScrollPosition&&(b.scrollTo(b._previousScrollPosition),delete b._previousScrollPosition);return k(b._processScroll()).then(function(){return c})})}).otherwise(function(a){f.destroy(q);
throw a;})})},refresh:function(c){var a=this,b=c&&c.keepScrollPosition;"undefined"===typeof b&&(b=this.keepScrollPosition);b&&(this._previousScrollPosition=this.getScrollPosition());this.inherited(arguments);if(this._renderedCollection)return this.renderQuery(function(b){return a._renderedCollection.fetchRange({start:b.start,end:b.start+b.count})}).then(function(){a._emitRefreshComplete()})},resize:function(){this.inherited(arguments);this.rowHeight||this._calcAverageRowHeight(this.contentNode.getElementsByClassName("dgrid-row"));
this._processScroll()},cleanup:function(){this.inherited(arguments);this.preload=null},renderQueryResults:function(c){var a=this.inherited(arguments),b=this._renderedCollection;b&&b.releaseRange&&a.then(function(a){a[0]&&!a[0].parentNode.tagName&&c.totalLength.then(function(){b.releaseRange(a[0].rowIndex,a[a.length-1].rowIndex+1)})});return a},_getFirstRowSibling:function(c){return c.lastChild},_calcRowHeight:function(c){var a=c.nextSibling;return a&&!/\bdgrid-preload\b/.test(a.className)?a.offsetTop-
c.offsetTop:c.offsetHeight},_calcAverageRowHeight:function(c){for(var a=c.length,b=0,d=0;d<a;d++)b+=this._calcRowHeight(c[d]);a&&b&&(this.rowHeight=b/a)},lastScrollTop:0,_processScroll:function(c){function a(a,c,d,g){var k=e.farOffRemoval,h=a.node;if(c>2*k){for(var p,l=h[d],q=0,r=0,m=[],t=l&&l.rowIndex,n;p=l;){var u=e._calcRowHeight(p);if(q+u+k>c||0>l.className.indexOf("dgrid-row")&&0>l.className.indexOf("dgrid-loading"))break;l=p[d];q+=u;r+=p.count||1;e.removeRow(p,!0);m.push(p);"rowIndex"in p&&
(n=p.rowIndex)}e._renderedCollection.releaseRange&&"number"===typeof t&&"number"===typeof n&&(g?e._renderedCollection.releaseRange(n,t+1):e._renderedCollection.releaseRange(t,n+1),e._rows[g?"max":"min"]=n,e._rows.max>=e._total-1&&(e._rows.max=Infinity));a.count+=r;g?(h.rowIndex-=r,b(a)):h.style.height=h.offsetHeight+q+"px";var x=document.createElement("div");for(a=m.length;a--;)x.appendChild(m[a]);setTimeout(function(){f.destroy(x)},1)}}function b(a,b){a.node.style.height=Math.min(a.count*e.rowHeight,
b?Infinity:e.maxEmptySpace)+"px"}function d(a,b){do a=b?a.next:a.previous;while(a&&!a.node.offsetWidth);return a}if(this.rowHeight){var e=this,k=e.bodyNode;c=c&&c.scrollTop||this.getScrollPosition().y;var k=k.offsetHeight+c,l,g,h=e.preload,m=e.lastScrollTop,n=e.bufferRows*e.rowHeight,x=n-e.rowHeight,A,C=!0;for(e.lastScrollTop=c;h&&!h.node.offsetWidth;)h=h.previous;for(;h&&h!==l;){l=e.preload;e.preload=h;g=h.node;var v=g.offsetTop;if(k+1+x<v)h=d(h,C=!1);else if(c-1-x>v+g.offsetHeight)h=d(h,C=!0);else{var v=
((g.rowIndex?c-n:k)-v)/e.rowHeight,z=(k-c+2*n)/e.rowHeight,z=z+Math.min(Math.abs(Math.max(Math.min((c-m)*e.rowHeight,e.maxRowsPerPage/2),e.maxRowsPerPage/-2)),10);0===g.rowIndex&&(v-=z);v=Math.max(v,0);10>v&&0<v&&z+v<e.maxRowsPerPage&&(z+=Math.max(0,v),v=0);z=Math.min(Math.max(z,e.minRowsPerPage),e.maxRowsPerPage,h.count);if(0===z)h=d(h,C);else{var z=Math.ceil(z),v=Math.min(Math.floor(v),h.count-z),E={};h.count-=z;var y=g,D,F=e.queryRowsOverlap,L=(0<g.rowIndex||g.offsetTop>c)&&h;if(L){var J=h.previous;
J&&(a(J,c-(J.node.offsetTop+J.node.offsetHeight),"nextSibling"),0<v&&J.node===g.previousSibling?(v=Math.min(h.count,v),h.previous.count+=v,b(h.previous,!0),g.rowIndex+=v,F=0):z+=v,h.count-=v);E.start=g.rowIndex-F;E.count=Math.min(z+F,e.maxRowsPerPage);g.rowIndex=E.start+E.count}else h.next&&(a(h.next,h.next.node.offsetTop-k,"previousSibling",!0),y=g.nextSibling,y===h.next.node?(h.next.count+=h.count-v,h.next.node.rowIndex=v+z,b(h.next),h.count=v,F=0):D=!0),E.start=h.count,E.count=Math.min(z+F,e.maxRowsPerPage);
D&&y&&y.offsetWidth&&(D=y.offsetTop);b(h);"level"in h.query&&(E.queryLevel=h.query.level);if("queryLevel"in E||!(E.start>e._total||0>E.count)){var O=f.create("div",{className:"dgrid-loading",style:{height:z*e.rowHeight+"px"}},y,"before");f.create("div",{className:"dgrid-"+(L?"below":"above"),innerHTML:e.loadingMessage},O);O.count=z;e._trackError(function(){(function(a,c,d){var g=h.query(E);A=e.renderQueryResults(g,a,E).then(function(k){var h=e._rows;!h||"queryLevel"in E||!k.length||(c?(h.max<=h.min&&
(h.min=k[0].rowIndex),h.max=k[k.length-1].rowIndex):(h.max<=h.min&&(h.max=k[k.length-1].rowIndex),h.min=k[0].rowIndex));y=a.nextSibling;f.destroy(a);d&&y&&y.offsetWidth&&(h=e.getScrollPosition(),e.scrollTo({x:h.x,y:h.y+y.offsetTop-d,preserveMomentum:!0}));g.totalLength.then(function(a){"queryLevel"in E||(e._total=a,e._rows&&e._rows.max>=e._total-1&&(e._rows.max=Infinity));c&&(c.count=a-c.node.rowIndex,b(c))});e._processScroll();return k},function(b){f.destroy(a);throw b;})})(O,L,D)});h=h.previous}}}}return A}}})})},
"dgrid/_StoreMixin":function(){define("dojo/_base/declare dojo/_base/lang dojo/Deferred dojo/aspect dojo/dom-construct dojo/has dojo/on dojo/when".split(" "),function(h,l,m,n,f,d,k,e){function c(a){if("object"!==typeof a)a=Error(a);else if("cancel"===a.dojoType)return;k.emit(this.domNode,"dgrid-error",{grid:this,error:a,cancelable:!0,bubbles:!0})}return h(null,{collection:null,_renderedCollection:null,_rows:null,_observerHandle:null,shouldTrackCollection:!0,getBeforePut:!0,noDataMessage:"",loadingMessage:"",
_total:0,constructor:function(){this.dirty={};this._updating={};this._columnsWithSet={};n.before(this,"configStructure",l.hitch(this,function(){this._columnsWithSet={}}))},destroy:function(){this.inherited(arguments);this._renderedCollection&&this._cleanupCollection();this._refreshTimeout&&clearTimeout(this._refreshTimeout)},_configColumn:function(a){a.set&&(this._columnsWithSet[a.field]=a);this.inherited(arguments)},_setCollection:function(a){this._renderedCollection&&(this.cleanup(),this._cleanupCollection({shouldRevert:!a||
a.storage!==this._renderedCollection.storage}));this.collection=a;if(this._started){if(a){var b=a;this.sort&&0<this.sort.length&&(b=a.sort(this.sort));b.track&&this.shouldTrackCollection&&(b=b.track(),this._rows=[],this._observerHandle=this._observeCollection(b,this.contentNode,{rows:this._rows}));this._renderedCollection=b}this.refresh()}},_setStore:function(){},_getTotal:function(){return this._total},_cleanupCollection:function(a){a=a||{};this._renderedCollection.tracking&&this._renderedCollection.tracking.remove();
this._observerHandle&&(this._observerHandle.remove(),this._observerHandle=this._rows=null);!1!==a.shouldRevert&&(this.dirty={});this._renderedCollection=this.collection=null},_applySort:function(){this.collection&&this.set("collection",this.collection)},_emitRefreshComplete:function(){var a=this;this._refreshTimeout=setTimeout(function(){k.emit(a.domNode,"dgrid-refresh-complete",{bubbles:!0,cancelable:!1,grid:a});a._refreshTimeout=null},0)},_insertNoDataNode:function(a){a=a||this.contentNode;var b=
this.noDataNode=f.create("div",{className:"dgrid-no-data",innerHTML:this.noDataMessage});a.insertBefore(b,this._getFirstRowSibling&&this._getFirstRowSibling(a));return b},row:function(){var a=this.inherited(arguments);a&&a.data&&"undefined"!==typeof a.id&&(a.id=this.collection.getIdentity(a.data));return a},refresh:function(){var a=this.inherited(arguments);this.collection||this._insertNoDataNode();return a},refreshCell:function(a){if(!this.collection||!this._createBodyRowCell)throw Error("refreshCell requires a Grid with a collection.");
this.inherited(arguments);return this.collection.get(a.row.id).then(l.hitch(this,"_refreshCellFromItem",a))},_refreshCellFromItem:function(a,b,c){var d=a.element;f.empty(d);var e=this.dirty&&this.dirty[a.row.id];e&&(b=l.delegate(b,e));this._createBodyRowCell(d,a.column,b,c)},renderArray:function(){var a=this.inherited(arguments);this.collection||a.length&&this.noDataNode&&f.destroy(this.noDataNode);return a},insertRow:function(a,b,c,d,e){var k=this.collection,g=this.dirty,k=k&&k.getIdentity(a),h;
k in g&&!(k in this._updating)&&(h=g[k]);h&&(a=l.delegate(a,h));g=this.inherited(arguments);e&&e.rows&&(e.rows[d]=g);this.noDataNode&&(f.destroy(this.noDataNode),this.noDataNode=null);return g},updateDirty:function(a,b,c){var d=this.dirty,e=d[a];e||(e=d[a]={});e[b]=c},save:function(){function a(a,e){return function(g){var k=b._columnsWithSet,h=b._updating,p,l;if("function"===typeof g.set)g.set(e);else for(p in e)g[p]=e[p];for(p in k)l=k[p].set(g),void 0!==l&&(g[p]=l);h[a]=!0;return c.put(g).then(function(b){delete d[a];
delete h[a];f[a]=b;return f})}}var b=this,c=this.collection,d=this.dirty,e=new m,f={},g=function(a){var d;return b.getBeforePut||!(d=b.row(a).data)?function(){return c.get(a)}:function(){return d}},k=e.then(function(){return f}),h;for(h in d)var l=a(h,d[h]),k=k.then(g(h)).then(l);e.resolve();return k},revert:function(){this.dirty={};this.refresh()},_trackError:function(a){"string"===typeof a&&(a=l.hitch(this,a));var b=this,d;try{d=e(a())}catch(p){a=new m,a.reject(p),d=a.promise}d.otherwise(function(a){c.call(b,
a)});return d},removeRow:function(a,b,c){var d={element:a};b||this.up(d).element!==a||this.down(d).element!==a||this._insertNoDataNode();(d=c&&c.rows||this._rows)&&delete d[a.rowIndex];return this.inherited(arguments)},renderQueryResults:function(a,b,c){c=l.mixin({rows:this._rows},c);var d=this;return a.then(function(a){a=d.renderArray(a,b,c);delete d._lastCollection;return a})},_observeCollection:function(a,b,c){var d=this,e=c.rows,f,g=[a.on("delete, update",function(a){var g=a.previousIndex,k=a.index;
void 0!==g&&e[g]&&("max"in e&&(void 0===k||k<e.min||k>e.max)&&e.max--,f=e[g],f.parentNode===b&&d.removeRow(f,!1,c),e.splice(g,1),("delete"===a.type||"update"===a.type&&(g<k||void 0===k))&&e[g]&&e[g].rowIndex--);"delete"===a.type&&(f=null)}),a.on("add, update",function(a){var g=a.previousIndex,k=a.index;if(void 0!==k&&(!("max"in e)||k>=e.min&&k<=e.max)){"max"in e&&(void 0===g||g<e.min||g>e.max)&&e.max++;if(e.length){if(g=e[k],!g&&(g=e[k-1]))g=(g.connected||g).nextSibling}else g=d._getFirstRowSibling&&
d._getFirstRowSibling(b);f&&g&&f.id===g.id&&(g=(g.connected||g).nextSibling);g&&!g.parentNode&&(g=document.getElementById(g.id));e.splice(k,0,void 0);f=d.insertRow(a.target,b,g,k,c);d.highlightRow(f)}f=null}),a.on("add, delete, update",function(b){var c="undefined"!==typeof b.previousIndex?b.previousIndex:Infinity,f="undefined"!==typeof b.index?b.index:Infinity,g=Math.min(c,f);c!==f&&e[g]&&d.adjustRowIndices(e[g]);Infinity!==c&&d._processScroll&&(e[c]||e[c-1])&&d._processScroll();d._onNotification(e,
b,a);a===d._renderedCollection&&"totalLength"in b&&(d._total=b.totalLength)})];return{remove:function(){for(;0<g.length;)g.pop().remove()}}},_onNotification:function(){}})})},"dgrid/Keyboard":function(){define("dojo/_base/declare dojo/aspect dojo/dom-class dojo/on dojo/_base/lang dojo/has ./util/misc dojo/_base/sniff".split(" "),function(h,l,m,n,f,d,k){function e(a){a.preventDefault()}var c={checkbox:1,radio:1,button:1},a=/\bdgrid-cell\b/,b=/\bdgrid-row\b/,r=h(null,{pageSkip:10,tabIndex:0,keyMap:null,
headerKeyMap:null,postMixInProperties:function(){this.inherited(arguments);this.keyMap||(this.keyMap=f.mixin({},r.defaultKeyMap));this.headerKeyMap||(this.headerKeyMap=f.mixin({},r.defaultHeaderKeyMap))},postCreate:function(){function d(a){var b=a.target;return b.type&&(!c[b.type]||32===a.keyCode)}function e(c){function e(){f._focusedHeaderNode&&(f._focusedHeaderNode.tabIndex=-1);if(f.showHeader){if(k)for(var a=f.headerNode.getElementsByTagName("th"),b=0,c;c=a[b];++b){if(h.test(c.className)){f._focusedHeaderNode=
m=c;break}}else f._focusedHeaderNode=m=f.headerNode;m&&(m.tabIndex=f.tabIndex)}}function g(){var a=f._focusedNode||m;if(!h.test(a.className)||!c.contains(a)){for(var b=c.getElementsByTagName("*"),d=0,e;e=b[d];++d)if(h.test(e.className)){a=f._focusedNode=e;break}m.tabIndex=-1;a.tabIndex=f.tabIndex}}var k=f.cellNavigation,h=k?a:b,p=c===f.headerNode,m=c;p?(e(),l.after(f,"renderHeader",e,!0)):(l.after(f,"renderArray",g,!0),l.after(f,"_onNotification",function(a,b){0===b.totalLength?c.tabIndex=0:1===b.totalLength&&
"add"===b.type&&g()},!0));f._listeners.push(n(c,"mousedown",function(a){d(a)||f._focusOnNode(a.target,p,a)}));f._listeners.push(n(c,"keydown",function(a){if(!a.metaKey&&!a.altKey){var b=f[p?"headerKeyMap":"keyMap"][a.keyCode];b&&!d(a)&&b.call(f,a)}}))}this.inherited(arguments);var f=this;this.tabableHeader&&(e(this.headerNode),n(this.headerNode,"dgrid-cellfocusin",function(){f.scrollTo({x:this.scrollLeft})}));e(this.contentNode);this._debouncedEnsureScroll=k.debounce(this._ensureScroll,this)},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;a===e.element&&((f=this.down(e,!0))&&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?f.id:void 0},setTimeout(function(){b._removedFocus&&b._restoreFocus(e.id)},0),this._focusedNode=null);this.inherited(arguments)},insertRow:function(){var a=this.inherited(arguments);this._removedFocus&&
!this._removedFocus.wait&&this._restoreFocus(a);return a},_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.add(a.element,"dgrid-focus"),a.element.tabIndex=this.tabIndex,this._focusedNode=
a.element)}delete this._removedFocus},addKeyHandler:function(a,b,c){return l.after(this[c?"headerKeyMap":"keyMap"],a,b,!0)},_ensureRowScroll:function(a){var b=this.getScrollPosition().y;b>a.offsetTop?this.scrollTo({y:a.offsetTop}):b+this.contentNode.offsetHeight<a.offsetTop+a.offsetHeight&&this.scrollTo({y:a.offsetTop-this.contentNode.offsetHeight+a.offsetHeight})},_ensureColumnScroll:function(a){var b=this.getScrollPosition().x,c=a.offsetLeft;if(b>c)this.scrollTo({x:c});else{var d=this.bodyNode.clientWidth;
a=a.offsetWidth;var e=c+a;b+d<e&&this.scrollTo({x:d>a?e-d:c})}},_ensureScroll:function(a,b){this.cellNavigation&&(this.columnSets||1<this.subRows.length)&&!b&&this._ensureRowScroll(a.row.element);this.bodyNode.clientWidth<this.contentNode.offsetWidth&&this._ensureColumnScroll(a.element)},_focusOnNode:function(c,d,e){var g="_focused"+(d?"Header":"")+"Node",k=this[g],h=this.cellNavigation?"cell":"row",l=this[h](c),p,q,r,t,u;if(c=l&&l.element){if(this.cellNavigation)for(p=c.getElementsByTagName("input"),
u=0,r=p.length;u<r;u++)if(q=p[u],(-1!==q.tabIndex||"_dgridLastValue"in q)&&!q.disabled){q.focus();t=!0;break}null!==e&&(e=f.mixin({grid:this},e),e.type&&(e.parentType=e.type),e.bubbles||(e.bubbles=!0));k&&(m.remove(k,"dgrid-focus"),k.removeAttribute("tabindex"),e&&(e[h]=this[h](k),n.emit(k,"dgrid-cellfocusout",e)));k=this[g]=c;e&&(e[h]=l);g=this.cellNavigation?a:b;!t&&g.test(c.className)&&(c.tabIndex=this.tabIndex,c.focus());m.add(c,"dgrid-focus");e&&n.emit(k,"dgrid-cellfocusin",e);this._debouncedEnsureScroll(l,
d)}},focusHeader:function(a){this._focusOnNode(a||this._focusedHeaderNode,!0)},focus:function(a){(a=a||this._focusedNode)?this._focusOnNode(a,!1):(this._removedFocus&&(this._removedFocus.active=!0),this.contentNode.focus())}}),p=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()};h=r.moveFocusUp=function(a){p.call(this,a,-1)};var u=r.moveFocusDown=
function(a){p.call(this,a,1)},t=r.moveFocusPageUp=function(a){p.call(this,a,-this.pageSkip)},g=r.moveFocusPageDown=function(a){p.call(this,a,this.pageSkip)},q=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()}},w=r.moveFocusLeft=function(a){q.call(this,a,-1)},B=r.moveFocusRight=function(a){q.call(this,a,1)},x=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()},A=r.moveHeaderFocusHome=function(a){x.call(this,a,!0)},C=r.moveFocusEnd=function(a,b){var c=this.cellNavigation,e=this.contentNode,g=e.scrollTop+(b?0:e.scrollHeight),e=e[b?"firstChild":"lastChild"],k=-1<e.className.indexOf("dgrid-preload"),h=k?e[(b?"next":"previous")+"Sibling"]:e,p;a.preventDefault();this.scrollTo({y:g});if(k){for(;h&&0>h.className.indexOf("dgrid-row");)h=h[(b?"next":"previous")+
"Sibling"];if(!h)return}!k||1>e.offsetHeight?(c&&(h=this.cell(h,this.cell(a).column.id)),this._focusOnNode(h,!1,a)):(d("dom-addeventlistener")||(a=f.mixin({},a)),p=l.after(this,"renderArray",function(d){var e=d[b?0:d.length-1];c&&(e=this.cell(e,this.cell(a).column.id));this._focusOnNode(e,!1,a);p.remove();return d}))},v=r.moveFocusHome=function(a){C.call(this,a,!0)};r.defaultKeyMap={32:e,33:t,34:g,35:C,36:v,37:w,38:h,39:B,40:u};r.defaultHeaderKeyMap={32:e,35:x,36:A,37:w,39:B};return r})},"dgrid/Selection":function(){define("dojo/_base/declare dojo/dom-class dojo/on dojo/has dojo/aspect ./List dojo/has!touch?./util/touch dojo/query dojo/_base/sniff dojo/dom".split(" "),
function(h,l,m,n,f,d,k){function e(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 c(a,c){var d=a.bodyNode,g=c?"text":21>n("ff")?"-moz-none":"none";b&&"msUserSelect"!==b?d.style[b]=g:n("dom-selectstart")?c||a._selectstartHandle?c&&a._selectstartHandle&&(a._selectstartHandle.remove(),delete a._selectstartHandle):a._selectstartHandle=m(d,"selectstart",function(a){var b=a.target&&a.target.tagName;
"INPUT"!==b&&"TEXTAREA"!==b&&a.preventDefault()}):(e(d,!c),c||a._unselectableHandle)?c&&a._unselectableHandle&&(a._unselectableHandle.remove(),delete a._unselectableHandle):a._unselectableHandle=f.after(a,"renderRow",function(a){e(a,!0);return a})}n.add("dom-comparedocumentposition",function(a,b,c){return!!c.compareDocumentPosition});n.add("dom-selectstart","undefined"!==typeof document.onselectstart);var a=n("mac")?"metaKey":"ctrlKey",b=n("css-user-select"),r=(d=n("pointer"))&&"MS"===d.slice(0,2),
p=d?d+(r?"Down":"down"):"mousedown",u=d?d+(r?"Up":"up"):"mouseup";"WebkitUserSelect"===b&&"undefined"!==typeof document.documentElement.style.msUserSelect&&(b=!1);return h(null,{selectionDelegate:".dgrid-row",selectionEvents:p+","+u+",dgrid-cellfocusin",selectionTouchEvents:n("touch")?k.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))},
_setAllowTextSelection:function(a){"undefined"!==typeof a?c(this,a):c(this,"none"===this.selectionMode);this.allowTextSelection=a},_handleSelect:function(a,b){if(this[this._selectionHandlerName]&&this.allowSelect(this.row(b))&&("dgrid-cellfocusin"!==a.type||"mousedown"!==a.parentType)&&(a.type!==u||b===this._waitForMouseUp)){this._waitForMouseUp=null;this._selectionTriggerEvent=a;if(!a.keyCode||!a.ctrlKey||32===a.keyCode)if(!a.shiftKey&&a.type===p&&this.isSelected(b))this._waitForMouseUp=b;else this[this._selectionHandlerName](a,
b);this._selectionTriggerEvent=null}},_singleSelectionHandler:function(b,c){var d=b.keyCode?b.ctrlKey:b[a];this._lastSelected===c?this.select(c,null,!d||!this.isSelected(c)):(this.clearSelection(),this.select(c),this._lastSelected=c)},_multipleSelectionHandler:function(b,c){var d=this._lastSelected,e=b.keyCode?b.ctrlKey:b[a],f;b.shiftKey||(f=e?null:!0,d=null);this.select(c,d,f);d||(this._lastSelected=c)},_extendedSelectionHandler:function(b,c){(2===b.button?this.isSelected(c):b.keyCode?b.ctrlKey:
b[a])||this.clearSelection(null,!0);this._multipleSelectionHandler(b,c)},_toggleSelectionHandler:function(a,b){this.select(b,null,null)},_initSelectionEvents:function(){var b=this,c=this.contentNode,d=this.selectionDelegate;this._selectionEventQueues={deselect:[],select:[]};n("touch")&&!n("pointer")&&this.selectionTouchEvents?(m(c,k.selector(d,this.selectionTouchEvents),function(a){b._handleSelect(a,this);b._ignoreMouseSelect=this}),m(c,m.selector(d,this.selectionEvents),function(a){b._ignoreMouseSelect!==
this?b._handleSelect(a,this):a.type===u&&(b._ignoreMouseSelect=null)})):m(c,m.selector(d,this.selectionEvents),function(a){b._handleSelect(a,this)});this.addKeyHandler&&this.addKeyHandler(32,function(a){b._handleSelect(a,a.target)});if(this.allowSelectAll)this.on("keydown",function(c){c[a]&&65===c.keyCode&&!/\bdgrid-input\b/.test(c.target.className)&&(c.preventDefault(),b[b.allSelected?"clearSelection":"selectAll"]())});this._setCollection&&f.before(this,"_setCollection",function(a){b._updateDeselectionAspect(a)});
this._updateDeselectionAspect()},_updateDeselectionAspect:function(a){function b(a,b){var d=c.row(a);if(d&&c.selection[d.id])c[b](d)}var c=this,d;this._removeDeselectSignals&&this._removeDeselectSignals();d=a&&a.track&&this._observeCollection?[f.before(this,"_observeCollection",function(a){d.push(a.on("delete",function(a){"undefined"===typeof a.index&&b(a.id,"deselect")}))}),f.after(this,"_observeCollection",function(a){d.push(a.on("update",function(c){"undefined"!==typeof c.index&&b(a.getIdentity(c.target),
"select")}))},!0)]:[f.before(this,"removeRow",function(a,b){var c;b||(c=this.row(a))&&c.id in this.selection&&this.deselect(c)})];this._removeDeselectSignals=function(){for(var a=d.length;a--;)d[a].remove();d=[]}},allowSelect:function(){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;this._selectionEventQueues[a]=[];m.emit(this.contentNode,"dgrid-"+a,d)},_fireSelectionEvents:function(){var a=
this._selectionEventQueues,b;for(b in a)a[b].length&&this._fireSelectionEvent(b)},_select:function(a,b,c){var d,e,f;"undefined"===typeof c&&(c=!0);a.element||(a=this.row(a));if(!1===c||this.allowSelect(a))if(d=this.selection,e=!!d[a.id],null===c&&(c=!e),f=a.element,c||this.allSelected?d[a.id]=c:delete this.selection[a.id],f&&(c?l.add(f,"dgrid-selected"+(this.addUiClasses?" ui-state-active":"")):l.remove(f,"dgrid-selected ui-state-active")),c!==e&&f&&this._selectionEventQueues[(c?"":"de")+"select"].push(a),
b)if(b.element||(b=this.row(b)),b){if(b=b.element)for(d=this._determineSelectionDirection(f,b),d||(b=document.getElementById(b.id),d=this._determineSelectionDirection(f,b));a.element!==b&&(a=this[d](a));)this._select(a,null,c)}else this._lastSelected=f},_determineSelectionDirection:n("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.inherited(arguments),b=this.selection,c,d,e;for(c=0;c<a.length;c++)d=this.row(a[c]),(e=d.id in b?b[d.id]:this.allSelected)&&this.select(d,null,e);this._fireSelectionEvents();return a}})})},"dijit/MenuSeparator":function(){define("dojo/_base/declare dojo/dom ./_WidgetBase ./_TemplatedMixin ./_Contained dojo/text!./templates/MenuSeparator.html".split(" "),
function(h,l,m,n,f,d){return h("dijit.MenuSeparator",[m,n,f],{templateString:d,buildRendering:function(){this.inherited(arguments);l.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"app/ui/widgets/ConceptDetail":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/promise/all dojo/dom-construct dojo/dom-class dojo/dom-style dojo/dom-attr dojo/json dojo/query dojo/on dojo/dom dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./templates/ConceptDetail.html ../dialogs/ConceptEditDialog dojo/NodeList-traverse".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g){return h([p,u],{templateString:t,baseClass:"concept-detail",concept:null,conceptId:null,conceptLabel:null,scheme:null,languageController:null,listController:null,conceptSchemeController:null,_editDialog:null,postCreate:function(){this.inherited(arguments);e.set(this.mergeButton,"disabled",!0)},startup:function(){this.inherited(arguments);this._setData(this.concept)},_openEditDialog:function(a){a?a.preventDefault():null;this.emit("concept.edit",{concept:this.concept,
schemeId:this.scheme})},_openMergeDialog:function(a){a?a.preventDefault():null;this.emit("concept.merge",{concept:this.concept,schemeId:this.scheme})},_deleteConcept:function(a){a?a.preventDefault():null;this.emit("concept.delete",{concept:this.concept,schemeId:this.scheme})},_setData:function(a){this.conceptTitleViewNode.innerHTML="\x3cstrong\x3e"+this.scheme+" : "+a.label+"\x3c/strong\x3e";this.idViewNode.innerHTML="ID: "+a.id;this.typeViewNode.innerHTML="TYPE: "+a.type;this.uriViewNode.innerHTML=
"URI: ";f.create("a",{href:this.concept.uri,innerHTML:this.concept.uri,target:"_blank"},this.uriViewNode);if(a.labels&&0<a.label.length){var b="",c="",d="",g="";l.forEach(a.labels,m.hitch(this,function(a){"prefLabel"===a.type&&(b+=a.label+" ("+a.language+"), ");"altLabel"===a.type&&(c+=a.label+" ("+a.language+"), ");"hiddenLabel"===a.type&&(d+=a.label+" ("+a.language+"), ");"sortLabel"===a.type&&(g+=a.label+" ("+a.language+"), ")}));2<c.length&&(c=c.substring(0,c.length-2));2<b.length&&(b=b.substring(0,
b.length-2));2<d.length&&(d=d.substring(0,d.length-2));2<g.length&&(g=g.substring(0,g.length-2));this.preferredLabelsNode.innerHTML=b;this.alternateLabelsNode.innerHTML=c;this.hiddenLabelsNode.innerHTML=d;this.sortLabelsNode.innerHTML=g}if(a.narrower&&0<a.narrower.length){var k=f.create("dt",{innerHTML:"Narrower"},this.relationsListNode,"first"),h="";l.forEach(a.narrower,m.hitch(this,function(a){h+='\x3ca href\x3d"'+a.uri+'" target\x3d"_blank" \x3e'+a.label+"\x3c/a\x3e ("+a.id+"), "}));2<h.length&&
(h=h.substring(0,h.length-2));f.create("dd",{innerHTML:h},k)}if(a.broader&&0<a.broader.length){var k=f.create("dt",{innerHTML:"Broader"},this.relationsListNode,"last"),p="";l.forEach(a.broader,m.hitch(this,function(a){p+='\x3ca href\x3d"'+a.uri+'" target\x3d"_blank" \x3e'+a.label+"\x3c/a\x3e ("+a.id+"), "}));2<p.length&&(p=p.substring(0,p.length-2));f.create("dd",{innerHTML:p},k)}if(a.related&&0<a.related.length){var k=f.create("dt",{innerHTML:"Related"},this.relationsListNode,"last"),r="";l.forEach(a.related,
m.hitch(this,function(a){r+='\x3ca href\x3d"'+a.uri+'" target\x3d"_blank" \x3e'+a.label+"\x3c/a\x3e ("+a.id+"), "}));2<r.length&&(r=r.substring(0,r.length-2));f.create("dd",{innerHTML:r},k)}if(a.member_of&&0<a.member_of.length){var k=f.create("dt",{innerHTML:"Member of"},this.relationsListNode,"last"),n="";l.forEach(a.member_of,m.hitch(this,function(a){n+='\x3ca href\x3d"'+a.uri+'" target\x3d"_blank" \x3e'+a.label+"\x3c/a\x3e ("+a.id+"), "}));2<n.length&&(n=n.substring(0,n.length-2));f.create("dd",
{innerHTML:n},k)}if(a.members&&0<a.members.length){var k=f.create("dt",{innerHTML:"Members"},this.relationsListNode,"last"),q="";l.forEach(a.members,m.hitch(this,function(a){q+='\x3ca href\x3d"'+a.uri+'" target\x3d"_blank" \x3e'+a.label+"\x3c/a\x3e ("+a.id+"), "}));2<q.length&&(q=q.substring(0,q.length-2));f.create("dd",{innerHTML:q},k)}if(a.subordinate_arrays&&0<a.subordinate_arrays.length){var k=f.create("dt",{innerHTML:"Subordinate \x3cbr\x3earrays"},this.relationsListNode,"last"),t="";l.forEach(a.subordinate_arrays,
m.hitch(this,function(a){t+='\x3ca href\x3d"'+a.uri+'" target\x3d"_blank" \x3e'+a.label+"\x3c/a\x3e ("+a.id+"), "}));2<t.length&&(t=t.substring(0,t.length-2));f.create("dd",{innerHTML:t},k)}if(a.superordinates&&0<a.superordinates.length){var k=f.create("dt",{innerHTML:"Superordinates"},this.relationsListNode,"last"),u="";l.forEach(a.superordinates,m.hitch(this,function(a){u+='\x3ca href\x3d"'+a.uri+'" target\x3d"_blank" \x3e'+a.label+"\x3c/a\x3e ("+a.id+"), "}));2<u.length&&(u=u.substring(0,u.length-
2));f.create("dd",{innerHTML:u},k)}"collection"===a.type&&(k=f.create("dt",{innerHTML:'Inheritance \x3ci class\x3d"fa fa-info-circle"\x3e',title:"Should member concepts of this collection be seen as narrower concept of a superordinate of the collection"},this.relationsListNode,"last"),u='\x3ci class\x3d"fa '+(!0===a.infer_concept_relations?"fa-check":"fa-times")+'" title\x3d"'+(!0===a.infer_concept_relations?"yes":"no")+'"\x3e',f.create("dd",{innerHTML:u},k));if(a.matches){var k=a.matches,J=!1;k.broad&&
0<k.broad.length&&(this._loadMatches(k.broad,"broad"),J=!0);k.narrow&&0<k.narrow.length&&(this._loadMatches(k.narrow,"narrow"),J=!0);k.exact&&0<k.exact.length&&(this._loadMatches(k.exact,"exact"),J=!0);k.close&&0<k.close.length&&(this._loadMatches(k.close,"close"),J=!0);k.related&&0<k.related.length&&(this._loadMatches(k.related,"related"),J=!0);J&&e.set(this.mergeButton,"disabled",!1)}a.notes&&0<a.notes.length?l.forEach(a.notes,m.hitch(this,function(a){f.create("li",{lang:a.language,innerHTML:"\x3cstrong\x3e"+
this._capitalize(a.type)+"\x3c/strong\x3e \x3cem\x3e("+a.language+")\x3c/em\x3e: "+a.note},this.scopeNoteNode,"last")})):f.destroy(this.scopeNoteNode);a.sources&&0<a.sources.length?l.forEach(a.sources,m.hitch(this,function(a){f.create("li",{innerHTML:a.citation},this.sourcesNode,"last")})):f.destroy(this.sourcesNode)},_capitalize:function(a){return a[0].toUpperCase()+a.substr(1)},_loadMatches:function(b,c){var e=f.create("dt",{innerHTML:this.capitalize(c),id:c},this.matchesListNode,"last"),g=[],k=
f.create("dd",{innerHTML:""},e);l.forEach(b,function(a,e){f.create("span",{id:a,innerHTML:a+'\x26nbsp;\x3ci class\x3d"fa fa-spinner fa-pulse"\x3e\x3c/i\x3e\x26nbsp;'},k);g.push(this.conceptSchemeController.getMatch(a,c).then(m.hitch(this,function(a){var c=r.byId(a.data.uri);c.innerHTML='\x3ca href\x3d"'+a.data.uri+'" target\x3d"_blank" \x3e'+a.data.label+"\x3c/a\x3e"+(e===b.length-1?"":", ");d.set(c,"matched")}),function(a){}))},this);n(g).then(function(b){a("span:not(.matched)",r.byId(c)).forEach(function(a){f.destroy(a)})})},
capitalize:function(a){return a.charAt(0).toUpperCase()+a.slice(1)}})})},"app/ui/dialogs/ConceptEditDialog":function(){define("dojo/_base/declare dojo/_base/lang dojo/topic dojo/on dijit/Dialog dijit/_Widget dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin ../../utils/DomUtils ../managers/LabelManager ../managers/NoteManager ../managers/RelationManager ../managers/MatchesManager ../../utils/DomUtils dojo/text!./templates/ConceptEditDialog.html dijit/layout/TabContainer dijit/layout/ContentPane".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t){return h([d,k,e],{templateString:t,baseClass:"concept-edit-dialog",concept:null,dialog:null,parent:null,scheme:null,languageController:null,listController:null,conceptSchemeController:null,postCreate:function(){this.inherited(arguments);this.dialog=new f({title:"Edit \x3cstrong\x3e"+this.concept.label+"\x3c/strong\x3e",style:"width: 1000px; min-height: 700px;",onHide:l.hitch(this,function(){this.parent._closeEditDialog()})});this.dialog.closeText.innerHTML=
'\x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e';this.dialog.set("content",this);u.addOptionsToSelect(this.typeNode,{data:this.listController.getConceptTypes(),idProperty:"value",labelProperty:"label"});n(this.typeNode,"change",l.hitch(this,function(a){this._toggleMatches(a.target.value);this._toggleRelations(a.target.value)}));this._createLabelsTab(this.concept);this._createNotesTab(this.concept);this._createRelationsTab(this.concept);this._createMatchesTab(this.concept)},startup:function(){this.inherited(arguments);
this.concept&&this._setData(this.concept);this.showDialog();this.tabContainer.layout();this.dialog.resize()},_setData:function(a){this.schemeNode.value=this.scheme;this.typeNode.value=this.concept.type;this._toggleMatches(this.concept.type)},showDialog:function(){this.tabContainer.layout();this.dialog.show();this.dialog.resize()},_toggleMatches:function(a){"collection"===a?(this.tabMatches.set("disabled",!0),this.tabContainer.selectedChildWidget===this.tabMatches&&this.tabContainer.selectChild(this.tabLabels)):
this.tabMatches.set("disabled",!1)},_toggleRelations:function(a){"collection"===a?this.relationManager.setCollectionTypes():this.relationManager.setConceptTypes()},_close:function(){this.dialog.hide()},_saveConcept:function(a){a?a.preventDefault():null;a={};this.concept&&(a.id=this.concept.id,a.uri=this.concept.uri,a.concept_scheme=this.scheme);a.type=this.typeNode.value;var b=this.labelManager.getData();l.mixin(a,b);b=this.noteManager.getData();l.mixin(a,b);b=this.relationManager.getData();l.mixin(a,
b);"collection"!==a.type&&(b=this.matchesManager.getData(),l.mixin(a,b));this.emit("concept.save",{concept:a,schemeId:this.scheme})},_cancel:function(a){a?a.preventDefault():null;this.parent._closeEditDialog()},_createLabelsTab:function(b){this.languageController.getLanguageStore().fetch().then(l.hitch(this,function(c){this.labelManager=new a({languageController:this.languageController,listController:this.listController,concept:b,languageList:c},this.labelsNode);this.labelManager.startup()}))},_createNotesTab:function(a){this.languageController.getLanguageStore().fetch().then(l.hitch(this,
function(c){this.noteManager=new b({languageController:this.languageController,listController:this.listController,concept:a,languageList:c},this.notesNode);this.noteManager.startup()}))},_createRelationsTab:function(a){this.languageController.getLanguageStore().fetch().then(l.hitch(this,function(b){this.relationManager=new r({languageController:this.languageController,listController:this.listController,conceptSchemeController:this.conceptSchemeController,concept:a,languageList:b,scheme:this.scheme},
this.relationsNode);this.relationManager.startup()}))},_createMatchesTab:function(a){this.languageController.getLanguageStore().fetch().then(l.hitch(this,function(b){this.matchesManager=new p({languageController:this.languageController,listController:this.listController,conceptSchemeController:this.conceptSchemeController,concept:a,languageList:b,scheme:this.scheme,matchTypes:this.listController.getMatchTypes()},this.matchesNode);this.matchesManager.startup()}))}})})},"app/ui/managers/LabelManager":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/dom-style dojo/json dojo/on dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./templates/LabelManager.html dstore/Memory dstore/Trackable dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer ../../utils/DomUtils ../dialogs/LabelsDialog".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B){return h([a,b],{templateString:r,baseClass:"label-manager",languageController:null,listController:null,concept:null,languageList:null,_labelDialog:null,_labelStore:null,_labelGrid:null,_index:0,postCreate:function(){this.inherited(arguments);this.trackableMemory=h([p,u]);this._labelStore=new this.trackableMemory({data:[]});this.concept&&l.forEach(this.concept.labels,m.hitch(this,function(a){a.id=this._index++;this._labelStore.put(a)}));this._createGrid({collection:this._labelStore},
this.labelGridNode);this._labelDialog=new B({parentNode:this,langList:this.languageList,typeList:this.listController.getLabelTypes()});e(this._labelDialog,"add.label",m.hitch(this,function(a){this._doAddLabel(a)}));e(this._labelDialog,"edit.label",m.hitch(this,function(a){this._doEditLabel(a)}))},startup:function(){this.inherited(arguments);this._labelGrid.startup();this._labelGrid.resize()},reset:function(){this._labelDialog&&this._labelDialog.reset();this._labelStore=new (h([p,u]))({data:[]});this._labelGrid.set("collection",
this._labelStore)},_createGrid:function(a,b){var c={label:{label:"Title",field:"label"},language:{label:"Language",field:"language",formatter:m.hitch(this,function(a){var b=l.filter(this.languageList,function(b){return b.id===a})[0];return b?b.name:"-"})},type:{label:"Type",field:"type",formatter:m.hitch(this,function(a){return l.filter(this.listController.getLabelTypes(),function(b){return b.value===a})[0].label})},actions:{label:"",renderCell:m.hitch(this,function(a){if(void 0===a.id)return null;
var b=n.create("div",{"class":"dGridHyperlink"});n.create("a",{href:"#",title:"Edit label",className:"fa fa-pencil",innerHTML:"",style:"margin-right: 12px;",onclick:m.hitch(this,function(b){b.preventDefault();this._editLabel(a)})},b);n.create("a",{href:"#",title:"Remove label",className:"fa fa-trash",innerHTML:"",onclick:m.hitch(this,function(b){b.preventDefault();this._removeRow(a.id)})},b);return b})}};this._labelGrid=c=new (h([t,g,q]))({collection:a.collection,columns:c,showHeader:!1,noDataMessage:"No labels found",
loadingMessage:"Fetching data.."},b);c.on("dgrid-error",function(a){})},getData:function(){return{labels:this._labelStore.data}},setConcept:function(a){a&&(this.concept=a,this._labelStore=new this.trackableMemory({data:[]}),l.forEach(this.concept.labels,m.hitch(this,function(a){a.id=this._index++;this._labelStore.put(a)})),this._labelGrid.set("collection",this._labelStore))},updateLanguages:function(a){a&&(this.languageList=a,this._labelDialog.updateLanguages(a))},_addLabel:function(a){a?a.preventDefault():
null;this._labelDialog.show()},_editLabel:function(a){this._labelDialog.show(a)},_doAddLabel:function(a){this._labelStore.add({language:a.lang,type:a.labelType,label:a.label})},_doEditLabel:function(a){this._labelStore.put({language:a.lang,type:a.labelType,label:a.label,id:a.id})},_removeRow:function(a){this._labelStore.remove(a)}})})},"dstore/Memory":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array ./Store ./Promised ./SimpleQuery ./QueryResults".split(" "),function(h,l,m,n,
f,d,k){return h([n,f,d],{constructor:function(){this.storage.version=0},postscript:function(){this.inherited(arguments);this.setData(this.data||[])},data:null,autoEmitEvents:!1,getSync:function(d){return this.storage.fullData[this.storage.index[d]]},putSync:function(d,c){c=c||{};var a=this.storage,b=a.index,e=a.fullData,f=this.Model;!f||d instanceof f||(d=this._restore(d));var k=this.getIdentity(d);null==k&&(this._setIdentity(d,"id"in c?c.id:Math.random()),k=this.getIdentity(d));a.version++;var a=
k in b?"update":"add",f={target:d},h;if("update"===a){if(!1===c.overwrite)throw Error("Object already exists");e.splice(h=b[k],1);k=h}else k=this.defaultNewToStart?0:e.length;var g;if("beforeId"in c){var l=c.beforeId;null===l?g=e.length:(g=b[l],h<g&&--g);void 0!==g?f.beforeId=l:g=k}else g=k;e.splice(g,0,d);h=isFinite(h)?Math.min(h,g):g;for(k=e.length;h<k;++h)b[this.getIdentity(e[h])]=h;this.emit(a,f);return d},addSync:function(d,c){(c=c||{}).overwrite=!1;return this.putSync(d,c)},removeSync:function(d){var c=
this.storage,a=c.index,c=c.fullData;if(d in a)return a=c.splice(a[d],1)[0],this._reindex(),this.emit("delete",{id:d,target:a}),!0},setData:function(d){this.parse&&(d=this.parse(d));d.items&&(this.idProperty=d.identifier||this.idProperty,d=d.items);this.storage.fullData=this.data=d;this._reindex()},_reindex:function(){for(var d=this.storage,c=d.index={},a=d.fullData,b=this.Model,f=Object.prototype,k=0,h=a.length;k<h;k++){var l=a[k];if(b&&!(l instanceof b)){var g=this._restore(l,l.__proto__===f);l!==
g&&(a[k]=l=g)}c[this.getIdentity(l)]=k}d.version++},fetchSync:function(){var d=this.data;if(!d||d._version!==this.storage.version){for(var d=this.storage.fullData,c=this.queryLog,a=0,b=c.length;a<b;a++)d=c[a].querier(d);d._version=this.storage.version;this.data=d}return new k(d)},fetchRangeSync:function(d){var c=this.fetchSync();return new k(c.slice(d.start,d.end),{totalLength:c.length})},_includePropertyInSubCollection:function(d){return"data"!==d&&this.inherited(arguments)}})})},"dstore/Store":function(){define("dojo/_base/lang dojo/_base/array dojo/aspect dojo/has dojo/when dojo/Deferred dojo/_base/declare ./QueryMethod ./Filter dojo/Evented".split(" "),
function(h,l,m,n,f,d,k,e,c,a){function b(a){return function(b,c){var d=this;f(b,function(b){b={target:b};var e=c[1]||{};"beforeId"in e&&(b.beforeId=e.beforeId);d.emit(a,b)});return b}}n.add("object-proto",!!{}.__proto__&&!{}.watch);var r=n("object-proto");return k(a,{constructor:function(c){c&&k.safeMixin(this,c);this.Model&&this.Model.createSubclass&&(this.Model=this.Model.createSubclass([]).extend({_store:this}));this.storage=new a;var d=this;this.autoEmitEvents&&(m.after(this,"add",b("add")),m.after(this,
"put",b("update")),m.after(this,"remove",function(a,b){f(a,function(){d.emit("delete",{id:b[0]})});return a}))},autoEmitEvents:!0,idProperty:"id",queryAccessors:!0,getIdentity:function(a){return a.get?a.get(this.idProperty):a[this.idProperty]},_setIdentity:function(a,b){a.set?a.set(this.idProperty,b):a[this.idProperty]=b},forEach:function(a,b){var c=this;return f(this.fetch(),function(d){for(var e=0,f;void 0!==(f=d[e]);e++)a.call(b,f,e,c);return d})},on:function(a,b){return this.storage.on(a,b)},
emit:function(a,b){b=b||{};b.type=a;try{return this.storage.emit(a,b)}finally{return b.cancelable}},parse:null,stringify:null,Model:null,_restore:function(a,b){var c=this.Model;if(c&&a){var d=c.prototype,e=d._restore;e?a=e.call(a,c,b):r&&b?a.__proto__=d:a=h.delegate(d,a)}return a},create:function(a){return new this.Model(a)},_createSubCollection:function(a){var b=h.delegate(this.constructor.prototype),c;for(c in this)this._includePropertyInSubCollection(c,b)&&(b[c]=this[c]);return k.safeMixin(b,a)},
_includePropertyInSubCollection:function(a,b){return!(a in b)||b[a]!==this[a]},queryLog:[],filter:new e({type:"filter",normalizeArguments:function(a){var b=this.Filter;return a instanceof b?[a]:[new b(a)]}}),Filter:c,sort:new e({type:"sort",normalizeArguments:function(a,b){var c;"function"===typeof a?c=[a]:(c=a instanceof Array?a.slice():"object"===typeof a?[].slice.call(arguments):[{property:a,descending:b}],c=l.map(c,function(a){a=h.mixin({},a);a.descending=!!a.descending;return a}),c=[c]);return c}}),
select:new e({type:"select"}),_getQuerierFactory:function(a){return this["_create"+(a[0].toUpperCase()+a.substr(1))+"Querier"]}})})},"dstore/QueryMethod":function(){define([],function(){return function(h){var l=h.type,m=h.normalizeArguments,n=h.applyQuery,f=h.querierFactory;return function(){var d=Array.prototype.slice.call(arguments),k=m?m.apply(this,d):d,d={type:l,arguments:d,normalizedArguments:k},e=this._getQuerierFactory(l)||f;e&&(d.querier=e.apply(this,k));k=this._createSubCollection({queryLog:this.queryLog.concat(d)});
return n?n.call(this,k,d):k}}})},"dstore/Filter":function(){define(["dojo/_base/declare"],function(h){function l(h){return function(){var f=this.constructor,d=new f;d.type=h;d.args=Array.prototype.slice.call(arguments);return this.type?l("and").call(f.prototype,this,d):d}}function m(h){return function(){for(var f=this.constructor,d=[],k=0;k<arguments.length;k++){var e=arguments[k];d.push(e instanceof f?e:new f(e))}f=new f;f.type=h;f.args=d;this.type===h?f.args=this.args.concat(d):this.type?d.unshift(this):
1===d.length&&(f.type=d[0].type,f.args=d[0].args.slice());return f}}h=h(null,{constructor:function(h){var f=typeof h;switch(f){case "object":var f=this,d;for(d in h)var k=h[d],f=k instanceof this.constructor?f[k.type](d,k.args[0]):k&&k.test?f.match(d,k):f.eq(d,k);this.type=f.type;this.args=f.args;break;case "function":case "string":this.type=f,this.args=[h]}},and:m("and"),or:m("or"),eq:l("eq"),ne:l("ne"),lt:l("lt"),lte:l("lte"),gt:l("gt"),gte:l("gte"),contains:l("contains"),"in":l("in"),match:l("match")});
h.filterCreator=l;h.logicalOperatorCreator=m;return h})},"dstore/Promised":function(){define(["dojo/_base/declare","dojo/Deferred","./QueryResults","dojo/when"],function(h,l,m,n){function f(d,f){return function(){var e=new l;try{e.resolve(this[d].apply(this,arguments))}catch(c){e.reject(c)}return f?(e=new m(e.promise),e.totalLength=n(e.totalLength),e):e.promise}}return h(null,{get:f("getSync"),put:f("putSync"),add:f("addSync"),remove:f("removeSync"),fetch:f("fetchSync",!0),fetchRange:f("fetchRangeSync",
!0)})})},"dstore/QueryResults":function(){define(["dojo/_base/lang","dojo/when"],function(h,l){function m(h,f){return l(this,function(d){for(var k=0,e=d.length;k<e;k++)h.call(f,d[k],k,d)})}return function(l,f){var d=f&&"totalLength"in f;if(l.then){l=h.delegate(l);var k=l.then(function(e){var c=d?f.totalLength:e.totalLength||e.length;e.totalLength=c;return!d&&c});l.totalLength=d?f.totalLength:k;l.response=f&&f.response}else l.totalLength=d?f.totalLength:l.length;l.forEach=m;return l}})},"dstore/SimpleQuery":function(){define(["dojo/_base/declare",
"dojo/_base/array"],function(h,l){function m(f,d){if(-1<f.indexOf(".")){var k=f.split("."),e=k.length;return function(c){for(var a=0;a<e;a++)c=c&&(d&&c.get?c.get(k[a]):c[k[a]]);return c}}return function(c){return c.get?c.get(f):c[f]}}var n={eq:function(f,d){return f===d},"in":function(f,d){return-1<l.indexOf(d.data||d,f)},ne:function(f,d){return f!==d},lt:function(f,d){return f<d},lte:function(f,d){return f<=d},gt:function(f,d){return f>d},gte:function(f,d){return f>=d},match:function(f,d,k){return d.test(f,
k)},contains:function(f,d,k,e){var c=this;d=d.data?d.data:Array.isArray(d)?d:[d];return l.every(d,function(a){if("object"===typeof a&&a.type){var b=c._getFilterComparator(a.type);return l.some(f,function(d){return b.call(c,d,a.args[1],k,e)})}return-1<l.indexOf(f,a)})}};return h(null,{_createFilterQuerier:function(f){function d(a){var b,c,f=a.type;a=a.args;var h=e._getFilterComparator(f);if(h){var l=a[0],g=m(l,k),n=a[1];n&&n.fetchSync&&(n=n.fetchSync());return function(a){return h.call(e,g(a),n,a,
l)}}switch(f){case "and":case "or":for(var w=0,B=a.length;w<B;w++)c=d(a[w]),b=b?function(a,b){return"and"===f?function(c){return a(c)&&b(c)}:function(c){return a(c)||b(c)}}(b,c):c;return b;case "function":return a[0];case "string":b=e[a[0]];if(!b)throw Error("No filter function "+a[0]+" was found in the collection");return b;case void 0:return function(){return!0};default:throw Error('Unknown filter operation "'+f+'"');}}var k=this.queryAccessors,e=this,c=d(f);return function(a){return l.filter(a,
c)}},_getFilterComparator:function(f){return n[f]||this.inherited(arguments)},_createSelectQuerier:function(f){return function(d){var k=f.length;return l.map(d,f instanceof Array?function(d){for(var c={},a=0;a<k;a++){var b=f[a];c[b]=d[b]}return c}:function(d){return d[f]})}},_createSortQuerier:function(f){var d=this.queryAccessors;return function(k){k=k.slice();k.sort("function"==typeof f?f:function(e,c){for(var a=0;a<f.length;a++){var b,k=f[a];if("function"==typeof k)b=k(e,c);else{b=k.get||(k.get=
m(k.property,d));var k=k.descending,h=b(e);b=b(c);null!=h&&(h=h.valueOf());null!=b&&(b=b.valueOf());b=h===b?0:!!k===("undefined"===typeof b||null===b&&"undefined"!==typeof h||null!=h&&h<b)?1:-1}if(0!==b)return b}return 0});return k}}})})},"dstore/Trackable":function(){define("dojo/_base/lang dojo/_base/declare dojo/aspect dojo/when dojo/promise/all dojo/_base/array dojo/on".split(" "),function(h,l,m,n,f,d,k){function e(a,c,d){for(var b=a.length-1;0<=b;--b){var e=a[b],f=e.start,e=f+e.count;if(c>e){a.splice(b+
1,0,{start:c,count:d-c});return}d>=f&&(c=Math.min(c,f),d=Math.max(d,e),a.splice(b,1))}a.unshift({start:c,count:d-c})}var c=0,a={track:function(){function a(){return function(){var a=this,b=this.inherited(arguments);n(b,function(b){b=a._results=b.slice();a._partialResults&&(a._partialResults=null);a._ranges=[];e(a._ranges,0,b.length)});return b}}function f(){return function(a){var b=this,c=a.start,d=a.end,f=this.inherited(arguments);this._results||n(f,function(a){return n(a.totalLength,function(f){var g=
b._partialResults||(b._partialResults=[]);d=Math.min(d,c+a.length);g.length=f;f=[c,d-c].concat(a);g.splice.apply(g,f);e(b._ranges,c,d);return a})});return f}}function p(a,b){c++;var e=b.target;b=h.delegate(b,x[a]);var f=b.beforeId;n(w._results||w._partialResults,function(c){if(c){var g,k,h,l=w._ranges,p,m="id"in b?b.id:u.getIdentity(e),r=-1,n=-1,q=-1,t=-1,x;if("delete"===a||"update"===a)for(g=0;-1===r&&g<l.length;++g)for(p=l[g],k=p.start,h=k+p.count;k<h;++k)if(u.getIdentity(c[k])==m){r=b.previousIndex=
k;n=g;x=f==m;c.splice(r,1);p.count--;for(k=g+1;k<l.length;++k)l[k].start--;break}if("add"===a||"update"===a){if(B){if(B([e]).length){var v=0;h=l.length-1;for(x=-1;v<=h&&-1===q;)g=v+Math.round((h-v)/2),p=l[g],n=c.slice(p.start,p.start+p.count),void 0!==f&&(x=null===f?n.length:A(n,f)),-1===x&&(x=r>=Math.max(0,p.start-1)&&r<=p.start+p.count?r:u.defaultNewToStart?0:n.length),n.splice(x,0,e),k=d.indexOf(B(n),e),m=p.start+k,0===k&&0!==p.start?h=g-1:k>=n.length-1&&m<c.length?v=g+1:(q=m,t=g);if(-1===q&&0<
v&&v<l.length)var M=!0}}else{k=-1;if(void 0===f||x)"update"===a?(q=r,t=n):u.defaultNewToStart?k=q=0:(q=c.length,k=l.length-1);else if(null===f)q=c.length,k=l.length-1;else for(g=0,h=l.length;-1===t&&g<h;++g)p=l[g],q=A(c,f,p.start,p.start+p.count),-1!==q&&(t=g);-1!==k&&-1===t&&(p=l[k])&&p.start<=q&&q<=p.start+p.count&&(t=k)}if(-1<q&&-1<t)for(b.index=q,c.splice(q,0,e),l[t].count++,g=t+1;g<l.length;++g)l[g].start++;else if(M)for(b.beforeIndex=l[v].start,g=v;g<l.length;++g)l[g].start++}b.totalLength=
c.length}(c=w["on_tracked"+a])&&c.call(w,b)})}var u=this.store||this,t=[],g={add:1,update:1,"delete":1},q;for(q in g)t.push(this.on(q,function(a){return function(b){p(a,b)}}(q)));var w=l.safeMixin(h.delegate(this),{_ranges:[],fetch:a(),fetchRange:f(),releaseRange:function(a,b){if(this._partialResults){a:for(var c=this._ranges,d=0,e;e=c[d];++d){var f=e.start,g=f+e.count;if(a<=f)if(b>=g)c.splice(d,1);else{e.start=b;e.count=g-e.start;break a}else if(a<g)if(b>f){c.splice(d,1,{start:f,count:a-f},{start:b,
count:g-b});break a}else e.count=a-e.start}for(c=a;c<b;++c)delete this._partialResults[c]}},on:function(a,b){var c=this,d=this.getInherited(arguments);return k.parse(w,a,b,function(a,e){return e in g?m.after(w,"on_tracked"+e,b,!0):d.call(c,e,b)})},tracking:{remove:function(){for(;0<t.length;)t.pop().remove();this.remove=function(){}}},track:null});this.fetchSync&&(l.safeMixin(w,{fetchSync:a(),fetchRangeSync:f()}),w.fetchSync());var B;d.forEach(this.queryLog,function(a){var b=B,c=a.querier;c&&(B=b?
function(a){return c(b(a))}:c)});var x={add:{index:void 0},update:{previousIndex:void 0,index:void 0},"delete":{previousIndex:void 0}},A=function(a,b,c,d){d=void 0!==d?d:a.length;for(c=void 0!==c?c:0;c<d;++c)if(u.getIdentity(a[c])===b)return c;return-1};return w}};f=l(null,a);f.create=function(b,c){b=l.safeMixin(h.delegate(b),a);l.safeMixin(b,c);return b};return f})},"dgrid/extensions/DijitRegistry":function(){define(["dojo/_base/declare","dojo/dom-geometry","dijit/_WidgetBase","dijit/registry"],
function(h,l,m,n){var f=m.prototype;return h(null,{minSize:0,maxSize:Infinity,layoutPriority:0,showTitle:!0,buildRendering:function(){n.add(this);this.inherited(arguments);this.domNode.setAttribute("widgetId",this.id)},startup:function(){if(!this._started){this.inherited(arguments);var d=this.getParent();d&&d.isLayoutContainer&&this._resizeHandle.remove()}},destroyRecursive:function(){this.destroy()},destroy:function(){this.inherited(arguments);n.remove(this.id)},getChildren:function(){return[]},
getParent:function(){return n.getEnclosingWidget(this.domNode.parentNode)},isLeftToRight:function(){return!this.isRTL},placeAt:function(d,k){return f.placeAt.call(this,d,k)},resize:function(d){d&&l.setMarginBox(this.domNode,d);this.inherited(arguments)},_set:function(d,f){this[d]=f},watch:function(){}})})},"dgrid/extensions/ColumnResizer":function(){define("dojo/_base/declare dojo/_base/array dojo/on dojo/query dojo/_base/lang dojo/dom dojo/dom-construct dojo/dom-geometry dojo/has ../util/misc dojo/_base/html".split(" "),
function(h,l,m,n,f,d,k,e,c,a){function b(a,b,c,d,e){for(var f=1;f<b;f++)a[c+f][d]=e}function r(a){for(var c=a.length,d=c,e=l.filter(a[0],function(a){return!a.hidden}).length,f=Array(c);c--;)f[c]=Array(e);for(var g={},c=0;c<d;c++)for(var k=f[c],h=a[c],p=0,m=0;p<e;p++){var r=h[m],n;if("undefined"===typeof k[p]){k[p]=r.id;r.rowSpan&&1<r.rowSpan&&b(f,r.rowSpan,c,p,r.id);if(0<c&&r.colSpan&&1<r.colSpan)for(n=1;n<r.colSpan;n++)k[++p]=r.id,r.rowSpan&&1<r.rowSpan&&b(f,r.rowSpan,c,p,r.id);g[r.id]=a[0][p].id;
m++}}return g}function p(b,c,d,e,f){if(!(0>=d)){var g=b.columns[c],k;if(g&&(k={grid:b,columnId:c,width:d,bubbles:!0,cancelable:!0},e&&(k.parentType=e),!b._resizedColumns||m.emit(b.headerNode,"dgrid-columnresize",k)))return"auto"===d?delete g.width:(g.width=d,d+="px"),(e=b._columnSizes[c])?e.set("width",d):e=a.addCssRule("#"+a.escapeCssIdentifier(b.domNode.id)+" .dgrid-column-"+a.escapeCssIdentifier(c,"-"),"width: "+d+";"),b._columnSizes[c]=e,!1!==f&&b.resize(),!0}}var u,t,g=0,q={create:function(){u=
k.create("div",{className:"dgrid-column-resizer"});t=k.create("div",{className:"dgrid-resize-guard"})},destroy:function(){k.destroy(u);k.destroy(t);u=t=null},show:function(a){var b=e.position(a.domNode,!0);u.style.top=b.y+"px";u.style.height=b.h+"px";document.body.appendChild(u);a.domNode.appendChild(t)},move:function(a){u.style.left=a+"px"},hide:function(){u.parentNode.removeChild(u);t.parentNode.removeChild(t)}};return h(null,{resizeNode:null,minWidth:40,adjustLastColumn:!0,_resizedColumns:!1,buildRendering:function(){this.inherited(arguments);
g||q.create();g++},destroy:function(){this.inherited(arguments);for(var a in this._columnSizes)this._columnSizes[a].remove();--g||q.destroy()},resizeColumnWidth:function(a,b){return p(this,a,b)},configStructure:function(){var a=this._oldColumnSizes=f.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(b){this.inherited(arguments);var c=b.id,d;"width"in
b&&((d=this._oldColumnSizes[c])?d.set("width",b.width+"px"):d=a.addCssRule("#"+a.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-"+a.escapeCssIdentifier(c,"-"),"width: "+b.width+"px;"),this._columnSizes[c]=d)},renderHeader:function(){this.inherited(arguments);var b=this,d;if(this.columnSets&&this.columnSets.length)for(var e=this.columnSets.length;e--;)d=f.mixin(d||{},r(this.columnSets[e]));else this.subRows&&1<this.subRows.length&&(d=r(this.subRows));for(var e=n(".dgrid-cell",b.headerNode),g=
e.length;g--;){var h=e[g],l=h.columnId,p=b.columns[l],q=h.childNodes;if(p&&!1!==p.resizable){p=k.create("div",{className:"dgrid-resize-header-container"});for(h.contents=p;0<q.length;)p.appendChild(q[0]);q=k.create("div",{className:"dgrid-resize-handle resizeNode-"+a.escapeCssIdentifier(l,"-")},p);h.appendChild(p);q.columnId=d&&d[l]||l}}b.mouseMoveListen||(m(b.headerNode,".dgrid-resize-handle:mousedown"+(c("touch")?",.dgrid-resize-handle:touchstart":""),function(a){b._resizeMouseDown(a,this);b.mouseMoveListen.resume();
b.mouseUpListen.resume()}),b._listeners.push(b.mouseMoveListen=m.pausable(document,"mousemove"+(c("touch")?",touchmove":""),a.throttleDelayed(function(a){b._updateResizerPosition(a)}))),b._listeners.push(b.mouseUpListen=m.pausable(document,"mouseup"+(c("touch")?",touchend":""),function(a){b._resizeMouseUp(a);b.mouseMoveListen.pause();b.mouseUpListen.pause()})),b.mouseMoveListen.pause(),b.mouseUpListen.pause())},_resizeMouseDown:function(b,c){b.preventDefault();d.setSelectable(this.domNode,!1);this._startX=
this._getResizeMouseLocation(b);this._targetCell=n(".dgrid-column-"+a.escapeCssIdentifier(c.columnId,"-"),this.headerNode)[0];this._updateResizerPosition(b);q.show(this)},_resizeMouseUp:function(b){var c=this._columnSizes,e,f,g;this.adjustLastColumn&&(g=this.headerNode.clientWidth-1);this._resizedColumns||(e=n(".dgrid-cell",this.headerNode),this.columnSets&&this.columnSets.length?e=e.filter(function(a){return"0"===a.columnId.split("-")[0]&&!(a.columnId in c)}):this.subRows&&1<this.subRows.length&&
(e=e.filter(function(a){return"0"===a.columnId.charAt(0)&&!(a.columnId in c)})),f=e.map(function(a){return a.offsetWidth}),e.forEach(function(a,b){p(this,a.columnId,f[b],null,!1)},this),this._resizedColumns=!0);d.setSelectable(this.domNode,!0);e=this._targetCell;var k=this._getResizeMouseLocation(b)-this._startX,h=e.offsetWidth+k,l=this._getResizedColumnWidths(),m=l.totalWidth,l=l.lastColId,r=n(".dgrid-column-"+a.escapeCssIdentifier(l,"-"),this.headerNode)[0].offsetWidth;h<this.minWidth&&(h=this.minWidth);
p(this,e.columnId,h,b.type)&&e.columnId!==l&&this.adjustLastColumn&&(m+k<g?p(this,l,"auto",b.type):r-k<=this.minWidth&&p(this,l,this.minWidth,b.type));q.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));q.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=n((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}}})})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(h,l,m,n,f,d,k,e){h.byId=
l.byId;h.isDescendant=l.isDescendant;h.setSelectable=l.setSelectable;h.getAttr=n.get;h.setAttr=n.set;h.hasAttr=n.has;h.removeAttr=n.remove;h.getNodeProp=n.getNodeProp;h.attr=function(c,a,b){return 2==arguments.length?n["string"==typeof a?"get":"set"](c,a):n.set(c,a,b)};h.hasClass=d.contains;h.addClass=d.add;h.removeClass=d.remove;h.toggleClass=d.toggle;h.replaceClass=d.replace;h._toDom=h.toDom=k.toDom;h.place=k.place;h.create=k.create;h.empty=function(c){k.empty(c)};h._destroyElement=h.destroy=function(c){k.destroy(c)};
h._getPadExtents=h.getPadExtents=e.getPadExtents;h._getBorderExtents=h.getBorderExtents=e.getBorderExtents;h._getPadBorderExtents=h.getPadBorderExtents=e.getPadBorderExtents;h._getMarginExtents=h.getMarginExtents=e.getMarginExtents;h._getMarginSize=h.getMarginSize=e.getMarginSize;h._getMarginBox=h.getMarginBox=e.getMarginBox;h.setMarginBox=e.setMarginBox;h._getContentBox=h.getContentBox=e.getContentBox;h.setContentSize=e.setContentSize;h._isBodyLtr=h.isBodyLtr=e.isBodyLtr;h._docScroll=h.docScroll=
e.docScroll;h._getIeDocumentElementOffset=h.getIeDocumentElementOffset=e.getIeDocumentElementOffset;h._fixIeBiDiScrollLeft=h.fixIeBiDiScrollLeft=e.fixIeBiDiScrollLeft;h.position=e.position;h.marginBox=function(c,a){return a?e.setMarginBox(c,a):e.getMarginBox(c)};h.contentBox=function(c,a){return a?e.setContentSize(c,a):e.getContentBox(c)};h.coords=function(c,a){h.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");c=l.byId(c);var b=m.getComputedStyle(c),b=e.getMarginBox(c,b),d=
e.position(c,a);b.x=d.x;b.y=d.y;return b};h.getProp=f.get;h.setProp=f.set;h.prop=function(c,a,b){return 2==arguments.length?f["string"==typeof a?"get":"set"](c,a):f.set(c,a,b)};h.getStyle=m.get;h.setStyle=m.set;h.getComputedStyle=m.getComputedStyle;h.__toPixelValue=h.toPixelValue=m.toPixelValue;h.style=function(c,a,b){switch(arguments.length){case 1:return m.get(c);case 2:return m["string"==typeof a?"get":"set"](c,a)}return m.set(c,a,b)};return h})},"app/ui/dialogs/LabelsDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/topic dojo/dom-construct dojo/text!./templates/LabelsDialog.html ../../utils/DomUtils".split(" "),
function(h,l,m,n,f,d,k,e){return h([n,l,m],{templateString:k,parentNode:null,baseClass:"labels-dialog",title:"Add label",labelElement:null,typeList:null,langList:null,edit:!1,postCreate:function(){this.inherited(arguments);e.addOptionsToSelect(this.typeSelectNode,{data:this.typeList,idProperty:"value",labelProperty:"label"});e.addOptionsToSelect(this.langSelectNode,{data:this.langList,idProperty:"id",labelProperty:"name"})},startup:function(){this.inherited(arguments)},setData:function(c){this.labelInputNode.value=
c.label;this.langSelectNode.value=c.language;this.typeSelectNode.value=c.type},hide:function(){this.inherited(arguments);this.reset()},show:function(c){this.inherited(arguments);this.reset();c?(this.setData(c),this.set("title","Edit label"),this.okButtonNode.innerHTML="Edit",this.edit=!0,this.labelElement=c):(this.set("title","Add new label"),this.okButtonNode.innerHTML="Add",this.edit=!1)},updateLanguages:function(c){this.langList=c;d.empty(this.langSelectNode);e.addOptionsToSelect(this.langSelectNode,
{data:this.langList,idProperty:"id",labelProperty:"name"})},_okClick:function(c){c.preventDefault();this._validate()?(this.edit?this.emit("edit.label",{label:this.labelInputNode.value.trim(),lang:this.langSelectNode.value,labelType:this.typeSelectNode.value,id:this.labelElement.id}):this.emit("add.label",{label:this.labelInputNode.value.trim(),lang:this.langSelectNode.value,labelType:this.typeSelectNode.value}),this.hide()):f.publish("dGrowl","Please fill in all fields.",{title:"Invalid label",sticky:!1,
channel:"info"})},_cancelClick:function(c){c.preventDefault();this.hide()},reset:function(){this.labelInputNode.value="";this.langSelectNode.selectedIndex=0;this.typeSelectNode.selectedIndex=0},_validate:function(){return""!==this.labelInputNode.value.trim()}})})},"app/ui/managers/NoteManager":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/dom-style dojo/json dojo/on dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./templates/NoteManager.html dstore/Memory dstore/Trackable dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer ../../utils/DomUtils ../dialogs/NotesDialog".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B){return h([a,b],{templateString:r,baseClass:"note-manager",languageController:null,listController:null,concept:null,languageList:null,_noteStore:null,_noteGrid:null,_index:0,postCreate:function(){this.inherited(arguments);this.trackableMemory=h([p,u]);this._noteStore=new this.trackableMemory({data:[]});this.concept&&l.forEach(this.concept.notes,m.hitch(this,function(a){a.id=this._index++;this._noteStore.put(a)}));this._createGrid({collection:this._noteStore},
this.noteGridNode);this._notesDialog=new B({parentNode:this,langList:this.languageList,typeList:this.listController.getNoteTypes()});e(this._notesDialog,"add.note",m.hitch(this,function(a){this._doAddNote(a)}));e(this._notesDialog,"edit.note",m.hitch(this,function(a){this._doEditNote(a)}))},startup:function(){this.inherited(arguments);this._notesDialog.startup();this._noteGrid.startup();this._noteGrid.resize()},reset:function(){this._notesDialog&&this._notesDialog.reset();this._noteStore=new (h([p,
u]))({data:[]});this._noteGrid.set("collection",this._noteStore)},_createGrid:function(a,b){var c={note:{label:"Note",field:"note",renderCell:function(a){if(a)return n.create("div",{innerHTML:a.note})}},language:{label:"Language",field:"language",formatter:m.hitch(this,function(a){var b=l.filter(this.languageList,function(b){return b.id===a})[0];return b?b.name:"-"})},type:{label:"Type",field:"type",formatter:m.hitch(this,function(a){return l.filter(this.listController.getNoteTypes(),function(b){return b.value===
a})[0].label})},actions:{label:"",renderCell:m.hitch(this,function(a){if(void 0===a.id)return null;var b=n.create("div",{"class":"dGridHyperlink"});n.create("a",{href:"#",title:"Edit note",className:"fa fa-pencil",innerHTML:"",style:"margin-right: 12px;",onclick:m.hitch(this,function(b){b.preventDefault();this._editNote(a)})},b);n.create("a",{href:"#",title:"Remove note",className:"fa fa-trash",innerHTML:"",onclick:m.hitch(this,function(b){b.preventDefault();this._removeRow(a.id)})},b);return b})}};
this._noteGrid=c=new (h([t,g,q]))({collection:a.collection,columns:c,showHeader:!1,noDataMessage:"No notes found",loadingMessage:"Fetching data.."},b);c.on("dgrid-error",function(a){})},getData:function(){return{notes:this._noteStore.data}},setConcept:function(a){a&&(this.concept=a,this._noteStore=new this.trackableMemory({data:[]}),l.forEach(this.concept.notes,m.hitch(this,function(a){a.id=this._index++;this._noteStore.put(a)})),this._noteGrid.set("collection",this._noteStore))},updateLanguages:function(a){a&&
(this.languageList=a,this._notesDialog.updateLanguages(a))},_addNote:function(a){a?a.preventDefault():null;this._notesDialog.show()},_editNote:function(a){this._notesDialog.show(a)},_doAddNote:function(a){this._noteStore.add({language:a.lang,type:a.noteType,note:a.note})},_doEditNote:function(a){this._noteStore.put({language:a.lang,type:a.noteType,note:a.note,id:a.id})},_removeRow:function(a){this._noteStore.remove(a)}})})},"app/ui/dialogs/NotesDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/topic dojo/dom-construct dojo/text!./templates/NotesDialog.html ../../utils/HtmlEditor ../../utils/DomUtils".split(" "),
function(h,l,m,n,f,d,k,e,c){return h([n,l,m],{templateString:k,parentNode:null,baseClass:"notes-dialog",title:"Add note",note:null,typeList:null,langList:null,_editor:null,edit:!1,postCreate:function(){this.inherited(arguments);this._editor=new e({},this.htmlEditorNode);c.addOptionsToSelect(this.typeSelectNode,{data:this.typeList,idProperty:"value",labelProperty:"label"});c.addOptionsToSelect(this.langSelectNode,{data:this.langList,idProperty:"id",labelProperty:"name"})},startup:function(){this.inherited(arguments);
this._editor.startup();this._editor.addButtons(["emphasis","strong","link"]);this._editor.setContent("")},setData:function(a){this._editor.setContent(a.note);this.langSelectNode.value=a.language;this.typeSelectNode.value=a.type},hide:function(){this.inherited(arguments);this.reset()},show:function(a){this.inherited(arguments);this.reset();a?(this.setData(a),this.set("title","Edit note"),this.okButtonNode.innerHTML="Edit",this.edit=!0,this.note=a):(this.set("title","Add new note"),this.okButtonNode.innerHTML=
"Add",this.edit=!1)},updateLanguages:function(a){this.langList=a;d.empty(this.langSelectNode);c.addOptionsToSelect(this.langSelectNode,{data:this.langList,idProperty:"id",labelProperty:"name"})},_okClick:function(a){a.preventDefault();this._validate()?(this.edit?this.emit("edit.note",{note:this._editor.getContent(),lang:this.langSelectNode.value,noteType:this.typeSelectNode.value,id:this.note.id}):this.emit("add.note",{note:this._editor.getContent(),lang:this.langSelectNode.value,noteType:this.typeSelectNode.value}),
this.hide()):f.publish("dGrowl","Please fill in all fields.",{title:"Invalid note",sticky:!1,channel:"info"})},_cancelClick:function(a){a.preventDefault();this.hide()},reset:function(){this._editor.setContent("");this.langSelectNode.selectedIndex=0;this.typeSelectNode.selectedIndex=0},_validate:function(){return""!==this._editor.getContent().trim()}})})},"app/utils/HtmlEditor":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/text!./templates/HtmlEditor.html dijit/Toolbar dijit/_TemplatedMixin dijit/_WidgetBase dijit/form/Button dijit/ToolbarSeparator".split(" "),
function(h,l,m,n,f,d,k,e,c){return h([k,d],{templateString:n,editorToolbar:null,buttons:[{name:"h4",icon:"dijitEditorIconHeader dijitEditorIconH4",title:"Header 4"},{name:"h5",icon:"dijitEditorIconHeader dijitEditorIconH5",title:"Header 5"},{name:"h6",icon:"dijitEditorIconHeader dijitEditorIconH6",title:"Header 6"},{name:"emphasis",label:"",icon:"dijitEditorIcon dijitEditorIconItalic",title:"Italic"},{name:"strong",label:"",icon:"dijitEditorIcon dijitEditorIconBold",title:"Bold"},{name:"link",label:"",
icon:"dijitEditorIcon dijitEditorIconCreateLink",title:"Hyperlink"},{name:"list",label:"",icon:"dijitEditorIcon dijitEditorIconListBulletIndent",title:"Lijst Toevoegen"},{name:"addbibitem",label:"",icon:"dijitEditorIcon dijitEditorIconInsertUnorderedList",title:"Item Toevoegen"}],htmlElements:[{key:"h4",value:{name:"h4",open:"\x3ch4\x3e",close:"\x3c/h4\x3e"}},{key:"h5",value:{name:"h5",open:"\x3ch5\x3e",close:"\x3c/h5\x3e"}},{key:"h6",value:{name:"h6",open:"\x3ch6\x3e",close:"\x3c/h6\x3e"}},{key:"emphasis",
value:{name:"emphasis",open:"\x3cem\x3e",close:"\x3c/em\x3e"}},{key:"strong",value:{name:"strong",open:"\x3cstrong\x3e",close:"\x3c/strong\x3e"}},{key:"link",value:{name:"link",open:'\x3ca href\x3d"#"\x3e',close:"\x3c/a\x3e"}},{key:"list",value:{name:"list",open:"\x3cul\x3e",close:"\x3c/ul\x3e"}},{key:"addbibitem",value:{name:"addbibitem",open:"\x3cli\x3e",close:"\x3c/li\x3e"}}],postCreate:function(){this.inherited(arguments);this.editorToolbar=new f({},this.containerToolbarNode)},startup:function(){this.inherited(arguments)},
addButtons:function(a){l.forEach(a,function(a){l.forEach(this.buttons,function(b){if(b.name===a){var d="separator"===a?new c({label:b.title}):new e({name:b.name,iconClass:b.icon,title:b.title,showLabel:!1,onClick:m.hitch(this,function(){this._btnAction(b.name)})});this.editorToolbar.addChild(d)}},this)},this);this.editorToolbar.startup()},_btnAction:function(a){var b=this.containerTextAreaNode,c=/[^\n\r\v]+/gm,d=this._getHtmlElementByKey(a),e=d.open,d=d.close,f=b.scrollTop,g=b.selectionStart,k=b.selectionEnd,
h=b.value.substring(0,g),l=b.value.substring(k,b.value.length),g=b.value.substring(g,k);b.value="addbibitem"===a&&""!==g?h+g.replace(c,e+"$\x26"+d)+l:h+e+g+d+l;b.selectionStart=k+e.length+d.length;b.selectionEnd=k+e.length+d.length;b.scrollTop=f},setContent:function(a){this.containerTextAreaNode.value=a},getContent:function(){return this.containerTextAreaNode.value},_getHtmlElementByKey:function(a){return l.filter(this.htmlElements,function(b){return b.key===a})[0].value}})})},"dijit/Toolbar":function(){define("require dojo/_base/declare dojo/has dojo/keys dojo/ready ./_Widget ./_KeyNavContainer ./_TemplatedMixin".split(" "),
function(h,l,m,n,f,d,k,e){m("dijit-legacy-requires")&&f(0,function(){h(["dijit/ToolbarSeparator"])});return l("dijit.Toolbar",[d,e,k],{templateString:'\x3cdiv class\x3d"dijit" role\x3d"toolbar" tabIndex\x3d"${tabIndex}" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e',baseClass:"dijitToolbar",_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()}})})},"dijit/ToolbarSeparator":function(){define(["dojo/_base/declare","dojo/dom","./_Widget","./_TemplatedMixin"],
function(h,l,m,n){return h("dijit.ToolbarSeparator",[m,n],{templateString:'\x3cdiv class\x3d"dijitToolbarSeparator dijitInline" role\x3d"presentation"\x3e\x3c/div\x3e',buildRendering:function(){this.inherited(arguments);l.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"app/ui/managers/RelationManager":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/dom-style dojo/json dojo/topic dojo/on dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./templates/RelationManager.html dstore/Memory dstore/Trackable dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer ../../utils/DomUtils ../dialogs/AddRelationDialog".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B){return h([a,b],{templateString:r,baseClass:"relation-manager",languageController:null,listController:null,conceptSchemeController:null,concept:null,scheme:null,_broaderStore:null,_broaderGrid:null,_narrowerStore:null,_narrowerGrid:null,_relatedStore:null,_relatedGrid:null,_memberOfStore:null,_memberOfGrid:null,_membersStore:null,_membersGrid:null,_subordinateStore:null,_subordinateGrid:null,_superordinatesCollStore:null,_superordinatesCollGrid:null,
_index:0,_isCollection:null,_relationStore:null,_addRelationDialog:null,postCreate:function(){this.inherited(arguments);this.trackableMemory=h([p,u]);this._broaderStore=new this.trackableMemory({data:this.concept?this.concept.broader:[]});this._broaderGrid=this._createGrid({collection:this._broaderStore,type:"broader"},this.broaderGridNode);this._narrowerStore=new this.trackableMemory({data:this.concept?this.concept.narrower:[]});this._narrowerGrid=this._createGrid({collection:this._narrowerStore,
type:"narrower"},this.narrowerGridNode);this._relatedStore=new this.trackableMemory({data:this.concept?this.concept.related:[]});this._relatedGrid=this._createGrid({collection:this._relatedStore,type:"related"},this.relatedGridNode);this._memberOfStore=new this.trackableMemory({data:this.concept?this.concept.member_of:[]});this._memberOfGrid=this._createGrid({collection:this._memberOfStore,type:"memberOf"},this.memberOfGridNode);this._membersStore=new this.trackableMemory({data:this.concept?this.concept.members:
[]});this._membersGrid=this._createGrid({collection:this._membersStore,type:"members"},this.membersGridNode);this._subordinateStore=new this.trackableMemory({data:this.concept?this.concept.subordinate_arrays:[]});this._subordinateGrid=this._createGrid({collection:this._subordinateStore,type:"subordinate"},this.subordinateGridNode);this._superordinatesCollStore=new this.trackableMemory({data:this.concept?this.concept.superordinates:[]});this._superordinatesCollGrid=this._createGrid({collection:this._superordinatesCollStore,
type:"superordinate"},this.superordinatesCollGridNode);this._relationStore=this.conceptSchemeController.getConceptSchemeTree(this.scheme);this._addRelationDialog=new B({parentNode:this,relationStore:this._relationStore,concept:this.concept,scheme:this.scheme});this._addRelationDialog.startup();this.own(c(this._addRelationDialog,"ok",m.hitch(this,function(a){this._addRelation(a.conceptId,a.conceptLabel,a.conceptPath,a.relation)})));this.concept&&"collection"===this.concept.type?this.setCollectionTypes():
this.setConceptTypes()},startup:function(){this.inherited(arguments);this._broaderGrid.startup();this._narrowerGrid.startup();this._relatedGrid.startup();this._memberOfGrid.startup();this._membersGrid.startup();this._subordinateGrid.startup();this._superordinatesCollGrid.startup()},setScheme:function(a){this.scheme=a;this._relationStore=this.conceptSchemeController.getConceptSchemeTree(this.scheme);this._addRelationDialog.setScheme(a)},reset:function(){var a=h([p,u]);this._broaderStore=new a({data:[]});
this._broaderGrid.set("collection",this._broaderStore);this._narrowerStore=new a({data:[]});this._narrowerGrid.set("collection",this._narrowerStore);this._relatedStore=new a({data:[]});this._relatedGrid.set("collection",this._relatedStore);this._memberOfStore=new a({data:[]});this._memberOfGrid.set("collection",this._memberOfStore);this._subordinateStore=new a({data:[]});this._subordinateGrid.set("collection",this._subordinateStore);this._superordinatesCollStore=new a({data:[]});this._superordinatesCollGrid.set("collection",
this._superordinatesCollStore);this.inferConceptRelationsYesNode.checked=!1;this.inferConceptRelationsNoNode.checked=!1},setCollectionTypes:function(){this._isCollection=!0;this.broaderContainerNode.style.display="none";this.broaderGridNode.style.display="none";this.narrowerContainerNode.style.display="none";this.narrowerGridNode.style.display="none";this.relatedContainerNode.style.display="none";this.relatedGridNode.style.display="none";this.subordinateArraysContainerNode.style.display="none";this.subordinateGridNode.style.display=
"none";this.superordinatesCollContainerNode.style.display="block";this.superordinatesCollGridNode.style.display="block";this.membersContainerNode.style.display="block";this.membersGridNode.style.display="block";this.inferConceptRelationsContainerNode.style.display="block"},setConceptTypes:function(){this._isCollection=!1;this.broaderContainerNode.style.display="block";this.broaderGridNode.style.display="block";this.narrowerContainerNode.style.display="block";this.narrowerGridNode.style.display="block";
this.relatedContainerNode.style.display="block";this.relatedGridNode.style.display="block";this.subordinateArraysContainerNode.style.display="block";this.subordinateGridNode.style.display="block";this.membersContainerNode.style.display="none";this.membersGridNode.style.display="none";this.superordinatesCollContainerNode.style.display="none";this.superordinatesCollGridNode.style.display="none";this.inferConceptRelationsContainerNode.style.display="none"},_createGrid:function(a,b){var c={label:{label:""},
remove:{label:"",renderCell:m.hitch(this,function(b){if(void 0===b.id)return null;var c=n.create("div",{"class":"dGridHyperlink"});n.create("a",{href:"#",title:"Remove relation",className:"fa fa-trash",innerHTML:"",onclick:m.hitch(this,function(c){c.preventDefault();this._removeRow(b.id,a.type)})},c);return c})}},c=new (h([t,g,q]))({className:"dgrid-autoheight",collection:a.collection,columns:c,showHeader:!1,noDataMessage:"",loadingMessage:"Fetching data.."},b);c.on("dgrid-error",function(a){});return c},
getData:function(){var a={};this._isCollection?(a.members=l.map(this._membersStore.data,function(a){var b={};b.id=a.id;return b},this),a.superordinates=l.map(this._superordinatesCollStore.data,function(a){var b={};b.id=a.id;return b},this),a.infer_concept_relations=this.inferConceptRelationsYesNode.checked?!0:this.inferConceptRelationsNoNode.checked?!1:void 0):(a.related=l.map(this._relatedStore.data,function(a){var b={};b.id=a.id;return b},this),a.narrower=l.map(this._narrowerStore.data,function(a){var b=
{};b.id=a.id;return b},this),a.broader=l.map(this._broaderStore.data,function(a){var b={};b.id=a.id;return b},this),a.subordinate_arrays=l.map(this._subordinateStore.data,function(a){var b={};b.id=a.id;return b},this));a.member_of=l.map(this._memberOfStore.data,function(a){var b={};b.id=a.id;return b},this);return a},_addRelation:function(a,b,c,d){return l.some(d.data,function(b){return b.id==a})?!1:(d.add({id:a,label:b,path:c}),!0)},setConcept:function(a){a&&(this.concept=a,this._broaderStore=new this.trackableMemory({data:this.concept?
this.concept.broader:[]}),this._broaderGrid.set("collection",this._broaderStore),this._narrowerStore=new this.trackableMemory({data:this.concept?this.concept.narrower:[]}),this._narrowerGrid.set("collection",this._narrowerStore),this._relatedStore=new this.trackableMemory({data:this.concept?this.concept.related:[]}),this._relatedGrid.set("collection",this._relatedStore),this._memberOfStore=new this.trackableMemory({data:this.concept?this.concept.member_of:[]}),this._memberOfGrid.set("collection",
this._memberOfStore),this._membersStore=new this.trackableMemory({data:this.concept?this.concept.members:[]}),this._membersGrid.set("collection",this._membersStore),this._subordinateStore=new this.trackableMemory({data:this.concept?this.concept.subordinate_arrays:[]}),this._subordinateGrid.set("collection",this._subordinateStore),this._superordinatesCollStore=new this.trackableMemory({data:this.concept?this.concept.superordinates:[]}),this._superordinatesCollGrid.set("collection",this._superordinatesCollStore),
!0===a.infer_concept_relations?this.inferConceptRelationsYesNode.checked=!0:!1===a.infer_concept_relations&&(this.inferConceptRelationsNoNode.checked=!0),"collection"===this.concept.type?this.setCollectionTypes():this.setConceptTypes())},_addBroader:function(a){a?a.preventDefault():null;this._addRelationDialog.show(this._broaderStore,this._relationStore)},_addNarrower:function(a){a?a.preventDefault():null;this._addRelationDialog.show(this._narrowerStore,this._relationStore)},_addRelated:function(a){a?
a.preventDefault():null;this._addRelationDialog.show(this._relatedStore,this._relationStore)},_addMemberOf:function(a){a?a.preventDefault():null;this._addRelationDialog.show(this._memberOfStore,this._relationStore)},_addMembers:function(a){a?a.preventDefault():null;this._addRelationDialog.show(this._membersStore,this._relationStore)},_addSubordinateArray:function(a){a?a.preventDefault():null;this._addRelationDialog.show(this._subordinateStore,this._relationStore)},_addSuperordinates:function(a){a?
a.preventDefault():null;this._addRelationDialog.show(this._superordinatesCollStore,this._relationStore)},_removeRow:function(a,b){var c=null;switch(b){case "broader":c=this._broaderStore;break;case "narrower":c=this._narrowerStore;break;case "related":c=this._relatedStore;break;case "memberOf":c=this._memberOfStore;break;case "members":c=this._membersStore;break;case "subordinate":c=this._subordinateStore;break;case "superordinate":c=this._superordinatesCollStore}c&&c.remove(a)}})})},"app/ui/dialogs/AddRelationDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dijit/tree/ObjectStoreModel dstore/legacy/DstoreAdapter dijit/Tree dojo/_base/array dojo/topic dojo/dom-construct dojo/text!./templates/AddRelationDialog.html".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b){return h([n,l,m],{templateString:b,parentNode:null,baseClass:"relation-dialog",title:"Add a relation",scheme:null,concept:null,relationStore:null,_tree:null,_myRelation:null,postCreate:function(){this.inherited(arguments)},startup:function(){this.inherited(arguments)},hide:function(){this.inherited(arguments)},setScheme:function(a){a&&(this.scheme=a)},_okClick:function(a){a.preventDefault();if(a=this._tree.selectedItems[0])if(this.concept&&a.concept_id===this.concept.id)c.publish("dGrowl",
"Concept or collection cannot be related to itself",{title:"Not valid",sticky:!0,channel:"error"});else{var b=e.map(this._tree.get("path"),function(a){return a?a.label:""});this.emit("ok",{conceptId:a.concept_id,conceptLabel:a.label,conceptPath:b,relation:this._myRelation});this.hide()}else c.publish("dGrowl","Nothing is selected",{title:"Not valid",sticky:!0,channel:"error"})},show:function(b,c){this.inherited(arguments);this._myRelation=b;this.relationStore=c;var d=this;a.empty(this.addRelationContainerNode);
var e=new f({store:this.relationStore,mayHaveChildren:function(a){return a.children&&0<a.children.length},getRoot:function(a){var b=this.store.query(this.query);a({concept_id:"-1",type:"collection",label:d.scheme,id:"-1",children:b})}});this._tree=(new k({model:e,showRoot:!1,getIconClass:function(a,b){return"collection"==a.type?b?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabel:function(a){return a.label},dndParams:"onDndDrop itemCreator onDndCancel checkAcceptance checkItemAcceptance dragThreshold betweenThreshold singular".split(" "),
singular:!0})).placeAt(this.addRelationContainerNode)},_cancelClick:function(a){a.preventDefault();this.hide()}})})},"dijit/tree/ObjectStoreModel":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/_base/lang dojo/when ../Destroyable".split(" "),function(h,l,m,n,f,d,k){return m("dijit.tree.ObjectStoreModel",k,{store:null,labelAttr:"name",labelType:"text",root:null,query:null,constructor:function(d){f.mixin(this,d);this.childrenCache={}},getRoot:function(e,c){if(this.root)e(this.root);
else{var a=this.store.query(this.query);a.then&&this.own(a);d(a,f.hitch(this,function(b){if(1!=b.length)throw Error("dijit.tree.ObjectStoreModel: root query returned "+b.length+" items, but must return exactly one");this.root=b[0];e(this.root);a.observe&&a.observe(f.hitch(this,function(a){this.onChange(a)}),!0)}),c)}},mayHaveChildren:function(){return!0},getChildren:function(e,c,a){var b=this.store.getIdentity(e);if(this.childrenCache[b])d(this.childrenCache[b],c,a);else{var k=this.childrenCache[b]=
this.store.getChildren(e);k.then&&this.own(k);k.observe&&this.own(k.observe(f.hitch(this,function(a,b,c){this.onChange(a);b!=c&&d(k,f.hitch(this,"onChildrenChange",e))}),!0));d(k,c,a)}},isItem:function(){return!0},getIdentity:function(d){return this.store.getIdentity(d)},getLabel:function(d){return d[this.labelAttr]},newItem:function(d,c,a,b){return this.store.put(d,{parent:c,before:b})},pasteItem:function(d,c,a,b,k,l){var e=new n;if(c===a&&!b&&!l)return e.resolve(!0),e;c&&!b?this.getChildren(c,f.hitch(this,
function(b){b=[].concat(b);var f=h.indexOf(b,d);b.splice(f,1);this.onChildrenChange(c,b);e.resolve(this.store.put(d,{overwrite:!0,parent:a,oldParent:c,before:l}))})):e.resolve(this.store.put(d,{overwrite:!0,parent:a,oldParent:c,before:l}));return e},onChange:function(){},onChildrenChange:function(){},onDelete:function(){}})})},"dstore/legacy/DstoreAdapter":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/store/util/QueryResults"],function(h,l,m){function n(d){return d}var f={store:null,
constructor:function(d){this.store=d;if(d._getQuerierFactory("filter")||d._getQuerierFactory("sort"))this.queryEngine=function(e,c){c=c||{};var a=d._getQuerierFactory("filter"),b=a?a(e):n,a=d._getQuerierFactory("sort"),f=n;a&&(f=a(l.map(c.sort,function(a){return{property:a.attribute,descending:a.descending}})));var k=n;isNaN(c.start)&&isNaN(c.count)||(k=function(a){var b=c.start||0,b=a.slice(b,b+(c.count||Infinity));b.total=a.length;return b});return function(a){return k(f(b(a)))}};var f=this;d.on("add,update,delete",
function(e){var c=e.type,a=e.target;f.notify("add"===c||"update"===c?a:void 0,"delete"===c||"update"===c?"id"in e?e.id:d.getIdentity(a):void 0)})},query:function(d,f){f=f||{};var e=this.store.filter(d),c,a,b;if(b=f.sort)if("[object Array]"===Object.prototype.toString.call(b))for(var k;k=b.pop();)e=e.sort(k.attribute,k.descending);else e=e.sort(b);e.track&&!e.tracking&&(e=e.track(),a=!0);"start"in f&&(c=f.start||0,c=e[e.fetchRangeSync?"fetchRangeSync":"fetchRange"]({start:c,end:f.count?c+f.count:Infinity}));
c=c||e[e.fetchSync?"fetchSync":"fetch"]();b=c.totalLength;c=new m(c);c.total=b;c.observe=function(b,c){function d(b){return void 0===b&&a?-1:b}var f=e.on("add",function(a){b(a.target,-1,d(a.index))}),k=e.on("update",function(a){!c&&a.previousIndex===a.index&&isFinite(a.index)||b(a.target,d(a.previousIndex),d(a.index))}),h=e.on("delete",function(a){b(a.target,d(a.previousIndex),-1)}),l={remove:function(){f.remove();k.remove();h.remove()}};l.cancel=l.remove;return l};return c},notify:function(){}};
l.forEach(["get","put","add","remove","getIdentity"],function(d){f[d]=function(){var f=this.store;return(f[d+"Sync"]||f[d]).apply(f,arguments)}});return h(null,f)})},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../when"],function(h,l,m){var n=function(f){function d(d){f[d]=function(){var c=arguments,a=m(f,function(a){Array.prototype.unshift.call(c,a);return n(h[d].apply(h,c))});if("forEach"!==d||k)return a}}if(!f)return f;var k=!!f.then;k&&(f=l.delegate(f));
d("forEach");d("filter");d("map");null==f.total&&(f.total=m(f,function(d){return d.length}));return f};l.setObject("dojo.store.util.QueryResults",n);return n})},"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(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B,x,A,C,v,z,E,y,D,F,L,J,O,Q,N,H,I){function G(a){return g.delegate(a.promise||a,{addCallback:function(a){this.then(a)},addErrback:function(a){this.otherwise(a)}})}var R=n("dijit._TreeNode",[E,y,D,F,L],{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);p("dojo-bidi")&&this.applyTextDir(this.labelNode)},labelType:"text",
isExpandable:null,isExpanded:!1,state:"NotLoaded",templateString:O,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);h.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,d){var f="_"+c+"Class";c+="Node";var g=this[f];this[f]=this.tree["get"+d+"Class"](b,this.isExpanded);e.replace(this[c],this[f]||"",g||"");a.set(this[c],this.tree["get"+d+"Style"](b,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent(),a=!a||!a.rowNode||"none"==a.rowNode.style.display;e.toggle(this.domNode,"dijitTreeIsRoot",a);e.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;e.replace(this.expandoNode,b[a],b);this.expandoNodeText.innerHTML=["*","-","+","*"][a]},expand:function(){if(this._expandDeferred)return G(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");e.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=r.wipeIn({node:this.containerNode,duration:z.defaultDuration}),b=this._expandDeferred=new f(function(){a.stop()});l.after(a,"onEnd",function(){b.resolve(!0)},!0);a.play();return G(b)},collapse:function(){if(this._collapseDeferred)return G(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");e.remove(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);var a=r.wipeOut({node:this.containerNode,duration:z.defaultDuration}),b=this._collapseDeferred=new f(function(){a.stop()});l.after(a,"onEnd",
function(){b.resolve(!0)},!0);a.play();return G(b)},indent:0,setChildItems:function(a){var b=this.tree,c=b.model,e=[],f=b.focusedChild,g=this.getChildren();h.forEach(g,function(a){D.prototype.removeChild.call(this,a)},this);this.defer(function(){h.forEach(g,function(a){if(!a._destroyed&&!a.getParent()){var d=function(a){var e=c.getIdentity(a.item),f=b._itemNodesMap[e];1==f.length?delete b._itemNodesMap[e]:(e=h.indexOf(f,a),-1!=e&&f.splice(e,1));h.forEach(a.getChildren(),d)};b.dndController.removeTreeNode(a);
d(a);if(b.persist){var e=h.map(a.getTreePath(),function(a){return b.model.getIdentity(a)}).join("/"),g;for(g in b._openedNodes)g.substr(0,e.length)==e&&delete b._openedNodes[g];b._saveExpandedNodes()}b.lastFocusedChild&&!k.isDescendant(b.lastFocusedChild.domNode,b.domNode)&&delete b.lastFocusedChild;f&&!k.isDescendant(f.domNode,b.domNode)&&b.focus();a.destroyRecursive()}})});this.state="Loaded";a&&0<a.length?(this.isExpandable=!0,h.forEach(a,function(a){var d=c.getIdentity(a),f=b._itemNodesMap[d],
g;if(f)for(var k=0;k<f.length;k++)if(f[k]&&!f[k].getParent()){g=f[k];g.set("indent",this.indent+1);break}g||(g=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}),f?f.push(g):b._itemNodesMap[d]=[g]);this.addChild(g);(this.tree.autoExpand||this.tree._state(g))&&e.push(b._expandNode(g))},this),h.forEach(this.getChildren(),
function(a){a._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);a=d(e);this.tree._startPaint(a);return G(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());h.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");e.toggle(this.rowNode,"dijitTreeRowSelected",a)},focus:function(){C.focus(this.focusNode)}});p("dojo-bidi")&&R.extend({_setTextDirAttr:function(a){!a||this.textDir==a&&this._created||(this._set("textDir",a),this.applyTextDir(this.labelNode),h.forEach(this.getChildren(),function(b){b.set("textDir",
a)},this))}});var K=n("dijit.Tree",[E,J,y,L],{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:I,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){w.publish(this.id,g.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 f;this.pendingCommandsPromise=this.expandChildrenDeferred.promise;this.inherited(arguments)},postCreate:function(){this._initState();var a=this;this.own(q(this.containerNode,
q.selector(".dijitTreeNode",B.enter),function(b){a._onNodeMouseEnter(v.byNode(this),b)}),q(this.containerNode,q.selector(".dijitTreeNode",B.leave),function(b){a._onNodeMouseLeave(v.byNode(this),b)}),q(this.containerNode,q.selector(".dijitTreeRow",A.press),function(b){a._onNodePress(v.getEnclosingWidget(this),b)}),q(this.containerNode,q.selector(".dijitTreeRow",A),function(b){a._onClick(v.getEnclosingWidget(this),b)}),q(this.containerNode,q.selector(".dijitTreeRow","dblclick"),function(b){a._onDblClick(v.getEnclosingWidget(this),
b)}));this.model||this._store2model();this.own(l.after(this.model,"onChange",g.hitch(this,"_onItemChange"),!0),l.after(this.model,"onChildrenChange",g.hitch(this,"_onItemChildrenChange"),!0),l.after(this.model,"onDelete",g.hitch(this,"_onItemDelete"),!0));this.inherited(arguments);if(this.dndController){g.isString(this.dndController)&&(this.dndController=g.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=G(this.pendingCommandsPromise);this.onLoadDeferred.then(g.hitch(this,"onLoad"))},_store2model:function(){this._v10Compat=!0;u.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=g.hitch(this,"mayHaveChildren"));this.params.getItemChildren&&
(a.getChildren=g.hitch(this,function(a,b,c){this.getItemChildren(this._v10Compat&&a===this.model.root?null:a,b,c)}));this.model=new H(a);this.showRoot=!!this.label},onLoad:function(){},_load:function(){this.model.getRoot(g.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(g.hitch(this,function(){this._destroyed||
(this.rootLoadingIndicator.style.display="none",this.expandChildrenDeferred.resolve(!0))}))}),g.hitch(this,function(a){}))},getNodesByItem:function(a){if(!a)return[];a=g.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(g.hitch(this,function(){var c=h.map(a,function(a){return!a||g.isString(a)?
a:b.model.getIdentity(a)}),d=[];h.forEach(c,function(a){d=d.concat(b._itemNodesMap[a]||[])});this.set("selectedNodes",d)}))},_setPathAttr:function(a){return a.length?G(this.set("paths",[a]).then(function(a){return a[0]})):G(this.set("paths",[]).then(function(a){return a[0]}))},_setPathsAttr:function(a){function b(a,d){var e=a.shift(),f=h.filter(d,function(a){return a.getIdentity()==e})[0];if(f)return a.length?c._expandNode(f).then(function(){return b(a,f.getChildren())}):f;throw new K.PathError("Could not expand path at "+
e);}var c=this;return G(this.pendingCommandsPromise=this.pendingCommandsPromise.always(function(){return d(h.map(a,function(a){a=h.map(a,function(a){return a&&g.isObject(a)?c.model.getIdentity(a):a});if(a.length)return b(a,[c.rootNode]);throw new K.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=
h.filter(c.getChildren()||[],function(a){return a.isExpandable});return d(h.map(b,a))})}var b=this;return G(a(this.rootNode))},collapseAll:function(){function a(c){var e=h.filter(c.getChildren()||[],function(a){return a.isExpandable}),e=d(h.map(e,a));return!c.isExpanded||c==b.rootNode&&!b.showRoot?e:e.then(function(){return b._collapseNode(c)})}var b=this;return G(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 k.isDescendant(a,b.expandoNode)||k.isDescendant(a,
b.expandoNodeText)},_onNodePress:function(a,b){this.focusNode(a)},__click:function(a,b,c,d){var e=this.isExpandoNode(b.target,a);a.isExpandable&&(c||e)?this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:b}),this[d](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){u.deprecated(this.declaredClass+"::_getNextNode(node) is deprecated. Use _getNext(node) instead.","","2.0");return this._getNext(a)},_getRootOrFirstNode:function(){u.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 b=this.model,c=a.item;a._loadDeferred||(a.markProcessing(),a._loadDeferred=new f,b.getChildren(c,function(b){a.unmarkProcessing();a.setChildItems(b).then(function(){a._loadDeferred.resolve(b)})},function(b){a._loadDeferred.reject(b)}));b=a._loadDeferred.then(g.hitch(this,
function(){var b=a.expand();this.onOpen(a.item,a);this._state(a,!0);return b}));this._startPaint(b);return b},focusNode:function(a){for(var b=[],c=this.domNode;c&&c.tagName&&"IFRAME"!==c.tagName.toUpperCase();c=c.parentNode)b.push({domNode:c.contentWindow||c,scrollLeft:c.scrollLeft||0,scrollTop:c.scrollTop||0});this.focusChild(a);this.defer(function(){for(var a=0,c=b.length;a<c;a++)b[a].domNode.scrollLeft=b[a].scrollLeft,b[a].domNode.scrollTop=b[a].scrollTop},0)},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},
_onItemChange:function(a){var b=this.model.getIdentity(a);if(b=this._itemNodesMap[b]){var c=this.getLabel(a),d=this.getTooltip(a);h.forEach(b,function(b){b.set({item:a,label:c,tooltip:d});b._updateItemClasses(a)})}},_onItemChildrenChange:function(a,b){var c=this.model.getIdentity(a);(c=this._itemNodesMap[c])&&h.forEach(c,function(a){a.setChildItems(b)})},_onItemDelete:function(a){a=this.model.getIdentity(a);var b=this._itemNodesMap[a];b&&(h.forEach(b,function(a){this.dndController.removeTreeNode(a);
var b=a.getParent();b&&b.removeChild(a);this.lastFocusedChild&&!k.isDescendant(this.lastFocusedChild.domNode,this.domNode)&&delete this.lastFocusedChild;this.focusedChild&&!k.isDescendant(this.focusedChild.domNode,this.domNode)&&this.focus();a.destroyRecursive()},this),delete this._itemNodesMap[a])},_initState:function(){this._openedNodes={};if(this.persist&&this.cookieName){var a=m(this.cookieName);a&&h.forEach(a.split(","),function(a){this._openedNodes[a]=!0},this)}},_state:function(a,b){if(!this.persist)return!1;
var c=h.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);m(this.cookieName,a.join(","),{expires:365})}},destroy:function(){this._curSearch&&(this._curSearch.timer.remove(),delete this._curSearch);this.rootNode&&this.rootNode.destroyRecursive();
this.dndController&&!g.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(g.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=g.hitch(this,function(){this._outstandingPaintOperations--;0>=this._outstandingPaintOperations&&!this._adjustWidthsTimer&&this._started&&(this._adjustWidthsTimer=this.defer("_adjustWidths"))});x(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 R(a)},focus:function(){this.lastFocusedChild?this.focusNode(this.lastFocusedChild):this.focusFirstChild()}});p("dojo-bidi")&&K.extend({_setTextDirAttr:function(a){a&&this.textDir!=a&&(this._set("textDir",a),this.rootNode.set("textDir",a))}});K.PathError=b("TreePathError");K._TreeNode=R;return K})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b){m.isAsync||a(0,function(){b(["./fx/Toggler"])});m=m.fx={};a={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}};var r=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;n.forEach(this._animations,function(a){a&&("undefined"!=typeof a.duration&&(this.duration+=a.duration),a.delay&&(this.duration+=a.delay))},this)};r.prototype=new l;h.extend(r,{_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=f.after(this._current,"onAnimate",h.hitch(this,"_onAnimate"),!0),this._onEndCtx=f.after(this._current,"onEnd",h.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(a,b){this._current||(this._current=this._animations[this._index=0]);if(!b&&"playing"==
this._current.status())return this;var c=f.after(this._current,"beforeBegin",h.hitch(this,function(){this._fire("beforeBegin")}),!0),d=f.after(this._current,"onBegin",h.hitch(this,function(a){this._fire("onBegin",arguments)}),!0),e=f.after(this._current,"onPlay",h.hitch(this,function(a){this._fire("onPlay",arguments);c.remove();d.remove();e.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=f.after(this._current,"onAnimate",h.hitch(this,"_onAnimate"),!0);this._onEndCtx&&
this._onEndCtx.remove();this._onEndCtx=f.after(this._current,"onEnd",h.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var a=f.after(this._current,"onPause",h.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;n.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 b=f.after(this._current,"onStop",h.hitch(this,function(a){this._fire("onStop",arguments);b.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()}});h.extend(r,a);m.chain=function(a){return new r(h.isArray(a)?a:Array.prototype.slice.call(a,0))};var p=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;n.forEach(a,function(a){var b=a.duration;a.delay&&(b+=a.delay);this.duration<b&&(this.duration=b);this._connects.push(f.after(a,"onEnd",h.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=
new d.Animation({curve:[0,1],duration:this.duration});var b=this;n.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(a){b._connects.push(f.after(b._pseudoAnimation,a,function(){b._fire(a,arguments)},!0))})};h.extend(p,{_doAction:function(a,b){n.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;n.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();n.forEach(this._connects,function(a){a.remove()})}});h.extend(p,a);m.combine=function(a){return new p(h.isArray(a)?a:Array.prototype.slice.call(a,0))};m.wipeIn=function(a){var b=a.node=k.byId(a.node),c=b.style,l;a=d.animateProperty(h.mixin({properties:{height:{start:function(){l=c.overflow;c.overflow="hidden";if("hidden"==c.visibility||"none"==c.display)return c.height="1px",c.display="",c.visibility="",1;var a=e.get(b,"height");return Math.max(a,1)},end:function(){return b.scrollHeight}}}},
a));var p=function(){c.height="auto";c.overflow=l};f.after(a,"onStop",p,!0);f.after(a,"onEnd",p,!0);return a};m.wipeOut=function(a){var b=(a.node=k.byId(a.node)).style,c;a=d.animateProperty(h.mixin({properties:{height:{end:1}}},a));f.after(a,"beforeBegin",function(){c=b.overflow;b.overflow="hidden";b.display=""},!0);var e=function(){b.overflow=c;b.height="auto";b.display="none"};f.after(a,"onStop",e,!0);f.after(a,"onEnd",e,!0);return a};m.slideTo=function(a){var b=null,g=null,l=function(a){return function(){var d=
e.getComputedStyle(a),f=d.position;b="absolute"==f?a.offsetTop:parseInt(d.top)||0;g="absolute"==f?a.offsetLeft:parseInt(d.left)||0;"absolute"!=f&&"relative"!=f&&(d=c.position(a,!0),b=d.y,g=d.x,a.style.position="absolute",a.style.top=b+"px",a.style.left=g+"px")}}(a.node=k.byId(a.node));l();a=d.animateProperty(h.mixin({properties:{top:a.top||0,left:a.left||0}},a));f.after(a,"beforeBegin",l,!0);return a};return m})},"dijit/tree/TreeStoreModel":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare",
"dojo/_base/lang"],function(h,l,m,n){return m("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(f){n.mixin(this,f);this.connects=[];f=this.store;if(!f.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.tree.TreeStoreModel: store must support dojo.data.Identity");f.getFeatures()["dojo.data.api.Notification"]&&(this.connects=this.connects.concat([l.after(f,"onNew",n.hitch(this,
"onNewItem"),!0),l.after(f,"onDelete",n.hitch(this,"onDeleteItem"),!0),l.after(f,"onSet",n.hitch(this,"onSetItem"),!0)]))},destroy:function(){for(var f;f=this.connects.pop();)f.remove()},getRoot:function(f,d){this.root?f(this.root):this.store.fetch({query:this.query,onComplete:n.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];f(this.root)}),onError:d})},mayHaveChildren:function(f){return h.some(this.childrenAttrs,
function(d){return this.store.hasAttribute(f,d)},this)},getChildren:function(f,d,k){var e=this.store;if(e.isItemLoaded(f)){for(var c=[],a=0;a<this.childrenAttrs.length;a++)var b=e.getValues(f,this.childrenAttrs[a]),c=c.concat(b);var l=0;this.deferItemLoadingUntilExpand||h.forEach(c,function(a){e.isItemLoaded(a)||l++});0==l?d(c):h.forEach(c,function(a,b){e.isItemLoaded(a)||e.loadItem({item:a,onItem:function(a){c[b]=a;0==--l&&d(c)},onError:k})})}else{var p=n.hitch(this,arguments.callee);e.loadItem({item:f,
onItem:function(a){p(a,d,k)},onError:k})}},isItem:function(f){return this.store.isItem(f)},fetchItemByIdentity:function(f){this.store.fetchItemByIdentity(f)},getIdentity:function(f){return this.store.getIdentity(f)},getLabel:function(f){return this.labelAttr?this.store.getValue(f,this.labelAttr):this.store.getLabel(f)},newItem:function(f,d,k){var e={parent:d,attribute:this.childrenAttrs[0]},c;this.newItemIdAttr&&f[this.newItemIdAttr]?this.fetchItemByIdentity({identity:f[this.newItemIdAttr],scope:this,
onItem:function(a){a?this.pasteItem(a,null,d,!0,k):(c=this.store.newItem(f,e))&&void 0!=k&&this.pasteItem(c,d,d,!1,k)}}):(c=this.store.newItem(f,e))&&void 0!=k&&this.pasteItem(c,d,d,!1,k)},pasteItem:function(f,d,k,e,c){var a=this.store,b=this.childrenAttrs[0];d&&h.forEach(this.childrenAttrs,function(c){if(a.containsValue(d,c,f)){if(!e){var k=h.filter(a.getValues(d,c),function(a){return a!=f});a.setValues(d,c,k)}b=c}});if(k)if("number"==typeof c){var l=a.getValues(k,b).slice();l.splice(c,0,f);a.setValues(k,
b,l)}else a.setValues(k,b,a.getValues(k,b).concat(f))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(f,d){d&&this.getChildren(d.item,n.hitch(this,function(f){this.onChildrenChange(d.item,f)}))},onDeleteItem:function(f){this.onDelete(f)},onSetItem:function(f,d){if(-1!=h.indexOf(this.childrenAttrs,d))this.getChildren(f,n.hitch(this,function(d){this.onChildrenChange(f,d)}));else this.onChange(f)}})})},"dijit/tree/ForestStoreModel":function(){define(["dojo/_base/array",
"dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","./TreeStoreModel"],function(h,l,m,n,f){return l("dijit.tree.ForestStoreModel",f,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(d){this.root={store:this,root:!0,id:d.rootId,label:d.rootLabel,children:d.rootChildren}},mayHaveChildren:function(d){return d===this.root||this.inherited(arguments)},getChildren:function(d,f,e){d===this.root?this.root.children?f(this.root.children):this.store.fetch({query:this.query,onComplete:n.hitch(this,
function(c){this.root.children=c;f(c)}),onError:e}):this.inherited(arguments)},isItem:function(d){return d===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(d){if(d.identity==this.root.id){var f=d.scope||m.global;d.onItem&&d.onItem.call(f,this.root)}else this.inherited(arguments)},getIdentity:function(d){return d===this.root?this.root.id:this.inherited(arguments)},getLabel:function(d){return d===this.root?this.root.label:this.inherited(arguments)},newItem:function(d,f,e){return f===
this.root?(this.onNewRootItem(d),this.store.newItem(d)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(d,f,e,c,a){if(f===this.root&&!c)this.onLeaveRoot(d);this.inherited(arguments,[d,f===this.root?null:f,e===this.root?null:e,c,a]);if(e===this.root)this.onAddToRoot(d)},onAddToRoot:function(d){},onLeaveRoot:function(d){},_requeryTop:function(){var d=this.root.children||[];this.store.fetch({query:this.query,onComplete:n.hitch(this,function(f){this.root.children=f;if(d.length!=
f.length||h.some(d,function(d,c){return f[c]!=d}))this.onChildrenChange(this.root,f)})})},onNewItem:function(d,f){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(d){-1!=h.indexOf(this.root.children,d)&&this._requeryTop();this.inherited(arguments)},onSetItem:function(d,f,e,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(h,l,m,n,f,d,k,e,c,a,b){return l("dijit.tree._dndSelector",b,{constructor:function(){this.selection={};this.anchor=null;this.events.push(e(this.tree.domNode,c.press,n.hitch(this,"onMouseDown")),e(this.tree.domNode,c.release,n.hitch(this,"onMouseUp")),e(this.tree.domNode,c.move,n.hitch(this,"onMouseMove")),e(this.tree.domNode,a.press,n.hitch(this,"onClickPress")),e(this.tree.domNode,a.release,n.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=h.filter(this.getSelectedTreeNodes(),function(b){return!d.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();h.forEach(this._setDifference(b,a),n.hitch(this,function(a){a.setSelected(!1);this.anchor==a&&delete this.anchor;delete this.selection[a.id]}));h.forEach(this._setDifference(a,b),n.hitch(this,function(a){a.setSelected(!0);this.selection[a.id]=a}));this._updateSelectionProperties()},_setDifference:function(a,b){h.forEach(b,function(a){a.__exclude__=!0});var c=h.filter(a,function(a){return!a.__exclude__});h.forEach(b,function(a){delete a.__exclude__});
return c},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),b=[],c=[];h.forEach(a,function(a){var d=a.getTreePath();c.push(a);b.push(d)},this);a=h.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&&k.isLeft(a)&&a.preventDefault();var b="keydown"==a.type?this.tree.focusedChild:this.current;if(b){var c=f.getCopyKeyState(a),d=b.id;this.singular||a.shiftKey||!this.selection[d]?(this._doDeselect=!1,this.userSelect(b,c,a.shiftKey)):this._doDeselect=!0}}},onClickRelease:function(a){this._doDeselect&&(this._doDeselect=!1,this.userSelect("keyup"==a.type?this.tree.focusedChild:this.current,f.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 d=doc.createRange();d.setStartBefore(b);return c.compareBoundaryPoints(c.END_TO_END,d)}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||m.global;for(var c in this.selection)a.call(b,this.getItem(c),c,this)}})})},"dijit/tree/_dndContainer":function(){define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/on dojo/touch".split(" "),function(h,l,m,n,f,d){return l("dijit.tree._dndContainer",null,{constructor:function(k,e){this.tree=k;this.node=k.domNode;n.mixin(this,e);this.containerState="";m.add(this.node,"dojoDndContainer");this.events=[f(this.node,d.enter,n.hitch(this,"onOverEvent")),f(this.node,d.leave,
n.hitch(this,"onOutEvent")),h.after(this.tree,"_onNodeMouseEnter",n.hitch(this,"onMouseOver"),!0),h.after(this.tree,"_onNodeMouseLeave",n.hitch(this,"onMouseOut"),!0),f(this.node,"dragstart, selectstart",function(c){c.preventDefault()})]},destroy:function(){for(var d;d=this.events.pop();)d.remove();this.node=this.parent=null},onMouseOver:function(d){this.current=d},onMouseOut:function(){this.current=null},_changeState:function(d,e){var c="dojoDnd"+d,a=d.toLowerCase()+"State";m.replace(this.node,c+
e,c+this[a]);this[a]=e},_addItemClass:function(d,e){m.add(d,"dojoDndItem"+e)},_removeItemClass:function(d,e){m.remove(d,"dojoDndItem"+e)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}})})},"app/ui/managers/MatchesManager":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/dom-style dojo/json dojo/topic dojo/on dojo/promise/all dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./templates/MatchesManager.html dstore/Memory dstore/Trackable dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer ../../utils/DomUtils ../dialogs/AddMatchesDialog".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B,x){return h([b,r],{templateString:p,baseClass:"matches-manager",languageController:null,listController:null,conceptSchemeController:null,concept:null,scheme:null,matchTypes:null,_loaded:!1,_broadStore:null,_broadGrid:null,_narrowStore:null,_narrowGrid:null,_relatedStore:null,_relatedGrid:null,_exactStore:null,_exactGrid:null,_closeStore:null,_closeGrid:null,_index:0,_matchesDialog:null,postCreate:function(){this.inherited(arguments);var a=h([u,t]);this._broadStore=
new a({data:[]});this._broadGrid=this._createGrid({collection:this._broadStore},this.broadGridNode);this._narrowStore=new a({data:[]});this._narrowGrid=this._createGrid({collection:this._narrowStore},this.narrowGridNode);this._relatedStore=new a({data:[]});this._relatedGrid=this._createGrid({collection:this._relatedStore},this.relatedGridNode);this._exactStore=new a({data:[]});this._exactGrid=this._createGrid({collection:this._exactStore},this.exactGridNode);this._closeStore=new a({data:[]});this._closeGrid=
this._createGrid({collection:this._closeStore},this.closeGridNode);this.concept&&this.concept.matches&&this._loadMatches(this.concept.matches);this._matchesDialog=new x({concept:this.concept,externalSchemeStore:this.conceptSchemeController.getExternalSchemeStore(),conceptSchemeController:this.conceptSchemeController,matchTypesList:this.listController.getMatchTypes()});this._matchesDialog.startup();this.own(c(this._matchesDialog,"match.add",m.hitch(this,function(a){this._addNewMatch(a.match,a.matchType)})))},
startup:function(){this.inherited(arguments);this._broadGrid.startup();this._narrowGrid.startup();this._relatedGrid.startup();this._exactGrid.startup();this._closeGrid.startup()},reset:function(){var a=h([u,t]);this._broadStore=new a({data:[]});this._broadGrid.set("collection",this._broadStore);this._narrowStore=new a({data:[]});this._narrowGrid.set("collection",this._narrowStore);this._relatedStore=new a({data:[]});this._relatedGrid.set("collection",this._relatedStore);this._exactStore=new a({data:[]});
this._exactGrid.set("collection",this._exactStore);this._closeStore=new a({data:[]});this._closeGrid.set("collection",this._closeStore);this._matchesDialog&&this._matchesDialog.reset()},_createGrid:function(a,b){var c={label:{label:"",get:function(a){return a.data.label}},uri:{label:"",renderCell:function(a){if(a&&a.data)return n.create("a",{href:a.data.uri,target:"_blank",title:a.data.uri,innerHTML:'\x3ci class\x3d"fa fa-external-link"\x3e\x3c/i\x3e\x26nbsp;\x26nbsp;'+a.data.uri})}},remove:{label:"",
renderCell:m.hitch(this,function(a){if(void 0===a.id)return null;var b=n.create("div",{"class":"dGridHyperlink"});n.create("a",{href:"#",title:"Remove match",className:"fa fa-trash",innerHTML:"",onclick:m.hitch(this,function(b){b.preventDefault();this._removeRow(a.id,a.type)})},b);return b})}},c=new (h([g,q,w]))({className:"dgrid-autoheight",collection:a.collection,columns:c,showHeader:!1,noDataMessage:"",loadingMessage:"Fetching data.."},b);c.on("dgrid-error",function(a){});return c},setConcept:function(a){a&&
(this.concept=a,this.reset(),this.concept.matches&&this._loadMatches(this.concept.matches))},_loadMatches:function(b){if(b){var c=[];this.loadingMatchesNode.style.display="inline-block";b.broad&&l.forEach(b.broad,function(a){c.push(this.conceptSchemeController.getMatch(a,"broad").then(m.hitch(this,function(a){this._addMatch(a,this._broadStore)})))},this);b.close&&l.forEach(b.close,function(a){c.push(this.conceptSchemeController.getMatch(a,"close").then(m.hitch(this,function(a){this._addMatch(a,this._closeStore)})))},
this);b.exact&&l.forEach(b.exact,function(a){c.push(this.conceptSchemeController.getMatch(a,"exact").then(m.hitch(this,function(a){this._addMatch(a,this._exactStore)})))},this);b.narrow&&l.forEach(b.narrow,function(a){c.push(this.conceptSchemeController.getMatch(a,"narrow").then(m.hitch(this,function(a){this._addMatch(a,this._narrowStore)})))},this);b.related&&l.forEach(b.related,function(a){c.push(this.conceptSchemeController.getMatch(a,"related").then(m.hitch(this,function(a){this._addMatch(a,this._relatedStore)})))},
this);a(c).then(m.hitch(this,function(a){this.loadingMatchesNode.style.display="none";this._loaded=!0}))}},getData:function(){var a={};if(this._loaded){var b={};b.narrow=l.map(this._narrowStore.data,function(a){return a.data.uri});b.broad=l.map(this._broadStore.data,function(a){return a.data.uri});b.related=l.map(this._relatedStore.data,function(a){return a.data.uri});b.close=l.map(this._closeStore.data,function(a){return a.data.uri});b.exact=l.map(this._exactStore.data,function(a){return a.data.uri});
a.matches=b}else a.matches=this.concept&&this.concept.matches?this.concept.matches:{};return a},_addNewMatch:function(a,b){var c=null;switch(b){case "broad":c=this._broadStore;break;case "narrow":c=this._narrowStore;break;case "related":c=this._relatedStore;break;case "close":c=this._closeStore;break;case "exact":c=this._exactStore}a&&c&&this._addMatch({data:{id:a.id,label:a.label,uri:a.uri},type:a.type},c)},_addMatch:function(a,b){return l.some(b.data,function(b){return b.data.id==a.data.id})?!1:
(b.add(a),!0)},_addMatches:function(a){a?a.preventDefault():null;this._matchesDialog.show()},_removeRow:function(a,b){var c=null;switch(b){case "broad":c=this._broadStore;break;case "close":c=this._closeStore;break;case "exact":c=this._exactStore;break;case "narrow":c=this._narrowStore;break;case "related":c=this._relatedStore}c&&c.remove(a)}})})},"app/ui/dialogs/AddMatchesDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/_base/lang dojo/_base/array dstore/Memory dojo/topic dojo/dom-construct dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer dgrid/Selection ../../utils/DomUtils dojo/text!./templates/AddMatchesDialog.html".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t){return h([n,l,m],{templateString:t,parentNode:null,baseClass:"matches-dialog",title:"Add a match",concept:null,conceptSchemeController:null,externalSchemeStore:null,matchTypesList:null,_matchesGrid:null,_matchesStore:null,postCreate:function(){this.inherited(arguments);this._matchesGrid=this._createGrid({collection:this._matchesStore},this.addMatchesGridNode);this.externalSchemeStore.fetch().then(f.hitch(this,function(a){u.addOptionsToSelect(this.externalSchemeSelect,
{data:a,idProperty:"id",labelProperty:"label"})}));u.addOptionsToSelect(this.matchTypeSelectNode,{data:this.matchTypesList,idProperty:"value",labelProperty:"label"})},startup:function(){this.inherited(arguments);this._matchesGrid.startup()},reset:function(){this.externalSchemeSelect.selectedIndex=0;this.matchTypeSelectNode.selectedIndex=0;this._matchesStore=new k({data:[]});this._matchesGrid.set("collection",this._matchesStore);this.searchLabelInput.value=""},hide:function(){this.reset();this.inherited(arguments)},
_createGrid:function(d,e){var f=new (h([a,b,r,p]))({collection:d.collection,columns:{label:{label:""},id:{label:""},type:{label:""},link:{label:"",renderCell:function(a){if(a&&a.uri)return c.create("a",{href:a.uri,target:"_blank",title:a.uri,innerHTML:'\x3ci class\x3d"fa fa-external-link"\x3e\x3c/i\x3e'})}}},selectionMode:"single",showHeader:!1,noDataMessage:"",loadingMessage:"Fetching data.."},e);f.on("dgrid-error",function(a){});return f},_okClick:function(a){a.preventDefault();a=u.getSelectedOption(this.matchTypeSelectNode);
var b=null,c;for(c in this._matchesGrid.selection)this._matchesGrid.selection[c]&&(b=this._matchesStore.getSync(c));b&&(this.emit("match.add",{matchType:a,match:b}),this.hide())},_cancelClick:function(a){a.preventDefault();this.hide()},_searchMatches:function(a){a?a.preventDefault():null;a=u.getSelectedOption(this.externalSchemeSelect);var b=this.searchLabelInput.value;a&&b&&""!==b&&this._loadStore(a,b)},_loadStore:function(a,b){this.conceptSchemeController.searchForConcepts(a,b).then(f.hitch(this,
function(a){this._matchesStore=new k({data:a});this._matchesGrid.set("collection",this._matchesStore);this._matchesGrid.resize()}),function(a){})},_validate:function(){}})})},"dojo/NodeList-traverse":function(){define(["./query","./_base/lang","./_base/array"],function(h,l,m){var n=h.NodeList;l.extend(n,{_buildArrayFromCallback:function(f){for(var d=[],k=0;k<this.length;k++){var e=f.call(this[k],this[k],d);e&&(d=d.concat(e))}return d},_getUniqueAsNodeList:function(f){for(var d=[],k=0,e;e=f[k];k++)1==
e.nodeType&&-1==m.indexOf(d,e)&&d.push(e);return this._wrap(d,null,this._NodeListCtor)},_getUniqueNodeListWithParent:function(f,d){var k=this._getUniqueAsNodeList(f),k=d?h._filterResult(k,d):k;return k._stash(this)},_getRelatedUniqueNodes:function(f,d){return this._getUniqueNodeListWithParent(this._buildArrayFromCallback(d),f)},children:function(f){return this._getRelatedUniqueNodes(f,function(d,f){return l._toArray(d.childNodes)})},closest:function(f,d){return this._getRelatedUniqueNodes(null,function(k,
e){do if(h._filterResult([k],f,d).length)return k;while(k!=d&&(k=k.parentNode)&&1==k.nodeType);return null})},parent:function(f){return this._getRelatedUniqueNodes(f,function(d,f){return d.parentNode})},parents:function(f){return this._getRelatedUniqueNodes(f,function(d,f){for(var e=[];d.parentNode;)d=d.parentNode,e.push(d);return e})},siblings:function(f){return this._getRelatedUniqueNodes(f,function(d,f){for(var e=[],c=d.parentNode&&d.parentNode.childNodes,a=0;a<c.length;a++)c[a]!=d&&e.push(c[a]);
return e})},next:function(f){return this._getRelatedUniqueNodes(f,function(d,f){for(var e=d.nextSibling;e&&1!=e.nodeType;)e=e.nextSibling;return e})},nextAll:function(f){return this._getRelatedUniqueNodes(f,function(d,f){for(var e=[],c=d;c=c.nextSibling;)1==c.nodeType&&e.push(c);return e})},prev:function(f){return this._getRelatedUniqueNodes(f,function(d,f){for(var e=d.previousSibling;e&&1!=e.nodeType;)e=e.previousSibling;return e})},prevAll:function(f){return this._getRelatedUniqueNodes(f,function(d,
f){for(var e=[],c=d;c=c.previousSibling;)1==c.nodeType&&e.push(c);return e})},andSelf:function(){return this.concat(this._parent)},first:function(){return this._wrap(this[0]&&[this[0]]||[],this)},last:function(){return this._wrap(this.length?[this[this.length-1]]:[],this)},even:function(){return this.filter(function(f,d){return 0!=d%2})},odd:function(){return this.filter(function(f,d){return 0==d%2})}});return n})},"app/ui/widgets/SlideMenu":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/text!./templates/SlideMenu.html dijit/_WidgetBase dijit/_TemplatedMixin dojo/topic dojo/on dojo/window dojo/dom-style".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b){return h([d,k],{baseClass:"atramhasis-slidemenu",templateString:f,layerService:null,menuOpen:!1,parentMap:null,overlayContainer:null,_layerLegend:null,postCreate:function(){this.inherited(arguments);this._calculateMenuHeight();c(window,"resize",l.hitch(this,function(){this._calculateMenuHeight()}))},startup:function(){this.inherited(arguments)},_calculateMenuHeight:function(){var c=a.getBox();b.set(this.menuContainer,"height",c.h-30-60+"px");b.set(this.overlayContainer,
"height",c.h-30-60+"px")},_toggleMenu:function(a){a?a.preventDefault():null;this.menuOpen?this._slideClose(a):this._slideOpen(a)},_slideOpen:function(a){a?a.preventDefault():null;n.remove(this.menuContainer,"slidemenu-close");n.add(this.menuContainer,"slidemenu-open");n.remove(this.overlayContainer,"slideoverlay-close");n.add(this.overlayContainer,"slideoverlay-open");this.menuOpen=!0},_slideClose:function(a){a?a.preventDefault():null;n.remove(this.menuContainer,"slidemenu-open");n.add(this.menuContainer,
"slidemenu-close");n.remove(this.overlayContainer,"slideoverlay-open");n.add(this.overlayContainer,"slideoverlay-close");this.menuOpen=!1}})})},"app/ui/dialogs/ManageConceptDialog":function(){define("dojo/_base/declare dojo/_base/lang dojo/topic dojo/dom-attr dojo/on dijit/Dialog dijit/_Widget dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin ../../utils/DomUtils ../managers/LabelManager ../managers/NoteManager ../managers/RelationManager ../managers/MatchesManager ../managers/SourcesManager ../../utils/DomUtils dojo/text!./templates/ManageConceptDialog.html dijit/layout/TabContainer dijit/layout/ContentPane".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q){return h([k,e,c],{templateString:q,baseClass:"concept-add-dialog",dialog:null,parent:null,concept:null,scheme:null,languageController:null,listController:null,conceptSchemeController:null,relationManager:null,labelManager:null,noteManager:null,matchesManager:null,sourcesManager:null,_mode:"add",postCreate:function(){this.inherited(arguments);this.dialog=new d({title:"Add new concept",style:"width: 1000px; min-height: 700px;"});this.dialog.closeText.innerHTML=
'\x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e';this.dialog.set("content",this);g.addOptionsToSelect(this.typeNode,{data:this.listController.getConceptTypes(),idProperty:"value",labelProperty:"label"});f(this.typeNode,"change",l.hitch(this,function(a){this._toggleMatches(a.target.value);this._toggleRelations(a.target.value)}));g.addOptionsToSelect(this.schemeNode,{data:this.conceptSchemeController.conceptSchemeList,idProperty:"id",labelProperty:"name"});m.subscribe("languages.updated",l.hitch(this,function(){this.updateLanguages()}));
this.scheme=this.schemeNode.value;this._createLabelsTab();this._createNotesTab();this._createSourcesTab();this._createRelationsTab();this._createMatchesTab()},startup:function(){this.inherited(arguments);this.tabContainer.layout();this.dialog.resize()},showDialog:function(a,b,c){c&&(this._mode=c);a&&(this.schemeNode.value=a,this.updateScheme(a),this.dialog.set("title","Add new concept or collection"),this.relationManager.reset(),this.labelManager.reset(),this.noteManager.reset(),this.matchesManager.reset(),
this.sourcesManager.reset(),b&&(b.id&&this.dialog.set("title","Edit \x3cstrong\x3e"+b.label+"\x3c/strong\x3e"),this.relationManager.setConcept(b),this.labelManager.setConcept(b),this.noteManager.setConcept(b),this.matchesManager.setConcept(b),this.sourcesManager.setConcept(b),this.concept=b,this.typeNode.value=b.type,this._toggleMatches(b.type),this._toggleRelations(b.type)));this.dialog.show();this.tabContainer.selectChild(this.tabLabels);this.tabContainer.layout();this.dialog.resize()},updateScheme:function(a){this.scheme=
a;this.relationManager.setScheme(a)},updateLanguages:function(){this.languageController.getLanguageStore().fetch().then(l.hitch(this,function(a){this.noteManager.updateLanguages(a);this.labelManager.updateLanguages(a)}))},_toggleMatches:function(a){"collection"===a?(this.tabMatches.set("disabled",!0),this.tabContainer.selectedChildWidget===this.tabMatches&&this.tabContainer.selectChild(this.tabLabels)):this.tabMatches.set("disabled",!1)},_toggleRelations:function(a){"collection"===a?this.relationManager.setCollectionTypes():
this.relationManager.setConceptTypes()},_close:function(){this._reset();this.dialog.hide()},_saveConcept:function(a){a?a.preventDefault():null;a={};this.concept&&(a.id=this.concept.id||void 0,a.uri=this.concept.uri||void 0);a.concept_scheme=this.scheme;a.type=this.typeNode.value;var b=this.labelManager.getData();l.mixin(a,b);b=this.noteManager.getData();l.mixin(a,b);b=this.sourcesManager.getData();l.mixin(a,b);b=this.relationManager.getData();l.mixin(a,b);"collection"!==a.type&&(b=this.matchesManager.getData(),
l.mixin(a,b));"add"===this._mode?this.emit("new.concept.save",{concept:a,schemeId:this.schemeNode.value}):this.emit("concept.save",{concept:a,schemeId:this.schemeNode.value})},_cancel:function(a){a?a.preventDefault():null;this._close()},_reset:function(){this.schemeNode.selectedIndex=0;this.typeNode.selectedIndex=0;this.labelManager.reset();this.noteManager.reset();this.relationManager.reset();this.matchesManager.reset()},_createLabelsTab:function(a){this.languageController.getLanguageStore().fetch().then(l.hitch(this,
function(c){this.labelManager=new b({languageController:this.languageController,listController:this.listController,concept:a,languageList:c},this.labelsNode);this.labelManager.startup()}))},_createNotesTab:function(a){this.languageController.getLanguageStore().fetch().then(l.hitch(this,function(b){this.noteManager=new r({languageController:this.languageController,listController:this.listController,concept:a,languageList:b},this.notesNode);this.noteManager.startup()}))},_createSourcesTab:function(a){this.sourcesManager=
new t({listController:this.listController,concept:a},this.sourcesNode);this.sourcesManager.startup()},_createRelationsTab:function(a){this.relationManager=new p({languageController:this.languageController,listController:this.listController,conceptSchemeController:this.conceptSchemeController,scheme:this.scheme,concept:a},this.relationsNode);this.relationManager.startup();this.updateScheme(this.schemeNode.value)},_createMatchesTab:function(a){this.matchesManager=new u({languageController:this.languageController,
listController:this.listController,conceptSchemeController:this.conceptSchemeController,scheme:this.scheme,concept:a,matchTypes:this.listController.getMatchTypes()},this.matchesNode);this.matchesManager.startup()}})})},"app/ui/managers/SourcesManager":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/dom-style dojo/json dojo/on dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!./templates/SourcesManager.html dstore/Memory dstore/Trackable dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer ../../utils/DomUtils ../dialogs/SourcesDialog".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w,B){return h([a,b],{templateString:r,baseClass:"sources-manager",languageController:null,listController:null,concept:null,languageList:null,_sourcesStore:null,_sourcesGrid:null,_sourcesDialog:null,_index:0,postCreate:function(){this.inherited(arguments);this.trackableMemory=h([p,u]);this._sourcesStore=new this.trackableMemory({data:[]});this.concept&&l.forEach(this.concept.sources,m.hitch(this,function(a){a.id=this._index++;this._sourcesStore.put(a)}));
this._createGrid({collection:this._sourcesStore},this.sourcesGridNode);this._sourcesDialog=new B({parentNode:this});e(this._sourcesDialog,"add.source",m.hitch(this,function(a){this._doAddSource(a)}));e(this._sourcesDialog,"edit.source",m.hitch(this,function(a){this._doEditSource(a)}))},startup:function(){this.inherited(arguments);this._sourcesDialog.startup();this._sourcesGrid.startup();this._sourcesGrid.resize()},reset:function(){this._sourcesDialog&&this._sourcesDialog.reset();this._sourcesStore=
new (h([p,u]))({data:[]});this._sourcesGrid.set("collection",this._sourcesStore)},_createGrid:function(a,b){var c={citation:{label:"Citation",field:"citation",renderCell:function(a){if(a)return n.create("div",{innerHTML:a.citation})}},actions:{label:"",renderCell:m.hitch(this,function(a){if(void 0===a.id)return null;var b=n.create("div",{"class":"dGridHyperlink"});n.create("a",{href:"#",title:"Edit source",className:"fa fa-pencil",innerHTML:"",style:"margin-right: 12px;",onclick:m.hitch(this,function(b){b.preventDefault();
this._editSource(a)})},b);n.create("a",{href:"#",title:"Remove source",className:"fa fa-trash",innerHTML:"",onclick:m.hitch(this,function(b){b.preventDefault();this._removeRow(a.id)})},b);return b})}};this._sourcesGrid=c=new (h([t,g,q]))({collection:a.collection,columns:c,showHeader:!1,noDataMessage:"No sources found",loadingMessage:"Fetching data.."},b);c.on("dgrid-error",function(a){})},getData:function(){return{sources:this._sourcesStore.data}},setConcept:function(a){a&&(this.concept=a,this._sourcesStore=
new this.trackableMemory({data:[]}),l.forEach(this.concept.sources,m.hitch(this,function(a){a.id=this._index++;this._sourcesStore.put(a)})),this._sourcesGrid.set("collection",this._sourcesStore))},_addSource:function(a){a?a.preventDefault():null;this._sourcesDialog.show()},_editSource:function(a){this._sourcesDialog.show(a)},_doAddSource:function(a){this._sourcesStore.add({citation:a.citation})},_doEditSource:function(a){this._sourcesStore.put({citation:a.citation,id:a.id})},_removeRow:function(a){this._sourcesStore.remove(a)}})})},
"app/ui/dialogs/SourcesDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/topic dojo/text!./templates/SourcesDialog.html ../../utils/HtmlEditor ../../utils/DomUtils".split(" "),function(h,l,m,n,f,d,k,e){return h([n,l,m],{templateString:d,parentNode:null,baseClass:"sources-dialog",title:"Add source",source:null,_editor:null,edit:!1,postCreate:function(){this.inherited(arguments);this._editor=new k({},this.htmlEditorNode)},startup:function(){this.inherited(arguments);
this._editor.startup();this._editor.addButtons(["emphasis","strong","link"]);this._editor.setContent("")},setData:function(c){this._editor.setContent(c.citation)},hide:function(){this.inherited(arguments);this.reset()},show:function(c){this.inherited(arguments);this.reset();c?(this.setData(c),this.set("title","Edit source"),this.okButtonNode.innerHTML="Edit",this.edit=!0,this.source=c):(this.set("title","Add new source"),this.okButtonNode.innerHTML="Add",this.edit=!1)},_okClick:function(c){c.preventDefault();
this._validate()?(this.edit?this.emit("edit.source",{citation:this._editor.getContent(),id:this.source.id}):this.emit("add.source",{citation:this._editor.getContent()}),this.hide()):f.publish("dGrowl","Please fill in all fields.",{title:"Invalid source",sticky:!1,channel:"info"})},_cancelClick:function(c){c.preventDefault();this.hide()},reset:function(){this._editor.setContent("")},_validate:function(){return""!==this._editor.getContent().trim()}})})},"app/ui/dialogs/ManageLanguagesDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/topic dojo/_base/lang dojo/query dojo/on dojo/when dojo/_base/array dojo/dom-construct dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer dojo/text!./templates/ManageLanguagesDialog.html dijit/ConfirmDialog ../../utils/DomUtils ./LanguageDialog dojo/NodeList-manipulate".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g,q,w){return h([n,l,m],{templateString:t,parentNode:null,baseClass:"manage-languages-dialog",title:"Manage languages",languageController:null,_langStore:null,_langGrid:null,postCreate:function(){this.inherited(arguments);this._langStore=this.languageController.getLanguageStore();this._langGrid=this._createGrid({collection:this._langStore},this.langGridNode);this._editLanguageDialog=new w({edit:!0});this._editLanguageDialog.startup();e(this._editLanguageDialog,
"edit.language",d.hitch(this,function(a){this._editLanguage(a.language)}))},startup:function(){this.inherited(arguments);this._langGrid.startup();this._langGrid.resize()},_createGrid:function(a,c){var e={id:{label:"ID",field:"id"},name:{label:"Name",field:"name"},actions:{label:"",renderCell:d.hitch(this,function(a){if(void 0===a.id)return null;var c=b.create("div",{"class":"dGridHyperlink"});b.create("a",{href:"#",title:"Edit language",className:"fa fa-pencil",innerHTML:"",onclick:d.hitch(this,function(b){b.preventDefault();
this._showEditLanguageDialog(a)})},c);b.create("a",{href:"#",title:"Remove language",className:"fa fa-trash",innerHTML:"",style:"margin-left: 10px;",onclick:d.hitch(this,function(b){b.preventDefault();this._removeRow(a)})},c);return c})}},e=new (h([r,p,u]))({collection:a.collection,columns:e,noDataMessage:"No languages found",loadingMessage:"Fetching data.."},c);e.on("dgrid-error",function(a){});return e},hide:function(){this.inherited(arguments)},show:function(){this.inherited(arguments);this._reset()},
_addLangClick:function(b){b.preventDefault();this._validate()?c(this._langStore.add({id:this.codeInputNode.value,name:this.nameInputNode.value})).then(d.hitch(this,function(a){f.publish("dGrowl","New language added: "+a.name,{title:"Languages",sticky:!1,channel:"info"});this.languageController.updateLanguageStore();this._langGrid.refresh();this._reset()}),function(b){b=JSON.parse(b.response.data);var c="",d=null;a.forEach(b.errors,function(a){for(d in a)c+="-\x3cem\x3e",c+=d,c+="\x3c/em\x3e: ",c+=
a[d],c+="\x3cbr\x3e"});f.publish("dGrowl",c,{title:b.message,sticky:!0,channel:"error"})}):f.publish("dGrowl","-Please fill in a language code to add a new language.",{title:"Invalid values",sticky:!0,channel:"error"})},_cancelClick:function(a){a.preventDefault();this.hide()},_reset:function(){this._langGrid.resize();this.codeInputNode.value="";this.nameInputNode.value=""},_validate:function(){return""!==this.codeInputNode.value.trim()&&""!==this.codeInputNode.value.trim()?!0:!1},_removeRow:function(a){var b=
new g({title:"Delete language",content:'\x3cp style\x3d"font-size: 15px;"\x3eAre you sure you want to remove \x3cstrong\x3e'+a.name+"\x3c/strong\x3e (ID: "+a.id+")?\x3c/p\x3e",baseClass:"confirm-dialog"});k(".dijitButton",b.domNode).addClass("button tiny");b.closeText.innerHTML='\x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e';e(b,"close",function(){b.destroy()});e(b,"execute",d.hitch(this,function(){this._langStore.remove(a.id).then(function(a){f.publish("dGrowl","Language removed: "+a.name+" ("+a.id+
")",{title:"Languages",sticky:!1,channel:"info"});this.languageController.updateLanguageStore();this._langGrid.refresh();this._reset()},function(b){(b.response&&"409"===b.response.status||409===b.response.status)&&f.publish("dGrowl",a.name+" ("+a.id+") is in use and can't be removed",{title:"Languages",sticky:!1,channel:"warn"})})}));b.show()},_showEditLanguageDialog:function(a){this._editLanguageDialog&&this._editLanguageDialog.show(a)},_editLanguage:function(b){c(this._langStore.add(b)).then(d.hitch(this,
function(a){f.publish("dGrowl","Language edited: "+a.name,{title:"Languages",sticky:!1,channel:"info"});this.languageController.updateLanguageStore();this._langGrid.refresh();this._reset()}),function(b){b=JSON.parse(b.response.data);var c="",d=null;a.forEach(b.errors,function(a){for(d in a)c+="-\x3cem\x3e",c+=d,c+="\x3c/em\x3e: ",c+=a[d],c+="\x3cbr\x3e"});f.publish("dGrowl",c,{title:b.message,sticky:!0,channel:"error"})})}})})},"app/ui/dialogs/LanguageDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/topic dojo/text!./templates/LanguageDialog.html ../../utils/DomUtils".split(" "),
function(h,l,m,n,f,d,k){return h([n,l,m],{templateString:d,parentNode:null,baseClass:"language-dialog",title:"Edit language",language:null,edit:!0,postCreate:function(){this.inherited(arguments)},startup:function(){this.inherited(arguments)},setData:function(d){this.codeInputNode.value=d.id;this.descriptionInputNode.value=d.name},hide:function(){this.inherited(arguments);this.reset()},show:function(d){this.inherited(arguments);this.reset();d?(this.setData(d),this.set("title","Edit language"),this.okButtonNode.innerHTML=
"Edit",this.edit=!0,this.language=d):(this.set("title","Add new language"),this.okButtonNode.innerHTML="Add",this.edit=!1)},_okClick:function(d){d.preventDefault();this._validate()?(this.language.id=this.codeInputNode.value,this.language.name=this.descriptionInputNode.value,this.edit?this.emit("edit.language",{language:this.language}):this.emit("add.language",{language:this.language}),this.hide()):f.publish("dGrowl","Please fill in at least a language code.",{title:"Invalid language",sticky:!1,channel:"info"})},
_cancelClick:function(d){d?d.preventDefault():null;this.hide()},reset:function(){this.codeInputNode.value="";this.descriptionInputNode.value=""},_validate:function(){return null!==this.codeInputNode.value.trim()&&""!==this.codeInputNode.value.trim()}})})},"dojo/NodeList-manipulate":function(){define("./query ./_base/lang ./_base/array ./dom-construct ./dom-attr ./NodeList-dom".split(" "),function(h,l,m,n,f){function d(c){for(;c.childNodes[0]&&1==c.childNodes[0].nodeType;)c=c.childNodes[0];return c}
function k(c,a){"string"==typeof c?(c=n.toDom(c,a&&a.ownerDocument),11==c.nodeType&&(c=c.childNodes[0])):1==c.nodeType&&c.parentNode&&(c=c.cloneNode(!1));return c}var e=h.NodeList;l.extend(e,{_placeMultiple:function(c,a){for(var b="string"==typeof c||c.nodeType?h(c):c,d=[],e=0;e<b.length;e++)for(var f=b[e],k=this.length,g=k-1,l;l=this[g];g--)0<e&&(l=this._cloneNode(l),d.unshift(l)),g==k-1?n.place(l,f,a):f.parentNode.insertBefore(l,f),f=l;d.length&&(d.unshift(0),d.unshift(this.length-1),Array.prototype.splice.apply(this,
d));return this},innerHTML:function(c){return arguments.length?this.addContent(c,"only"):this[0].innerHTML},text:function(c){if(arguments.length){for(var a=0,b;b=this[a];a++)1==b.nodeType&&f.set(b,"textContent",c);return this}for(var d="",a=0;b=this[a];a++)d+=f.get(b,"textContent");return d},val:function(c){if(arguments.length){for(var a=l.isArray(c),b=0,d;d=this[b];b++){var e=d.nodeName.toUpperCase(),f=d.type,k=a?c[b]:c;if("SELECT"==e)for(e=d.options,f=0;f<e.length;f++){var g=e[f];g.selected=d.multiple?
-1!=m.indexOf(c,g.value):g.value==k}else"checkbox"==f||"radio"==f?d.checked=d.value==k:d.value=k}return this}if((d=this[0])&&1==d.nodeType){c=d.value||"";if("SELECT"==d.nodeName.toUpperCase()&&d.multiple){c=[];e=d.options;for(f=0;f<e.length;f++)g=e[f],g.selected&&c.push(g.value);c.length||(c=null)}return c}},append:function(c){return this.addContent(c,"last")},appendTo:function(c){return this._placeMultiple(c,"last")},prepend:function(c){return this.addContent(c,"first")},prependTo:function(c){return this._placeMultiple(c,
"first")},after:function(c){return this.addContent(c,"after")},insertAfter:function(c){return this._placeMultiple(c,"after")},before:function(c){return this.addContent(c,"before")},insertBefore:function(c){return this._placeMultiple(c,"before")},remove:e.prototype.orphan,wrap:function(c){if(this[0]){c=k(c,this[0]);for(var a=0,b;b=this[a];a++){var e=this._cloneNode(c);b.parentNode&&b.parentNode.replaceChild(e,b);d(e).appendChild(b)}}return this},wrapAll:function(c){if(this[0]){c=k(c,this[0]);this[0].parentNode.replaceChild(c,
this[0]);c=d(c);for(var a=0,b;b=this[a];a++)c.appendChild(b)}return this},wrapInner:function(c){if(this[0]){c=k(c,this[0]);for(var a=0;a<this.length;a++){var b=this._cloneNode(c);this._wrap(l._toArray(this[a].childNodes),null,this._NodeListCtor).wrapAll(b)}}return this},replaceWith:function(c){c=this._normalize(c,this[0]);for(var a=0,b;b=this[a];a++)this._place(c,b,"before",0<a),b.parentNode.removeChild(b);return this},replaceAll:function(c){c=h(c);for(var a=this._normalize(this,this[0]),b=0,d;d=
c[b];b++)this._place(a,d,"before",0<b),d.parentNode.removeChild(d);return this},clone:function(){for(var c=[],a=0;a<this.length;a++)c.push(this._cloneNode(this[a]));return this._wrap(c,this,this._NodeListCtor)}});e.prototype.html||(e.prototype.html=e.prototype.innerHTML);return e})},"app/ui/dialogs/ImportConceptDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/_base/lang dojo/_base/array dstore/Memory dojo/topic dojo/dom-construct dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer dgrid/Selection ../../utils/DomUtils dojo/text!./templates/ImportConceptDialog.html".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t){return h([n,l,m],{templateString:t,parentNode:null,baseClass:"import-concept-dialog",title:"Choose an external concept",conceptSchemeController:null,externalSchemeStore:null,_importConceptGrid:null,_importConceptStore:null,postCreate:function(){this.inherited(arguments);this._importConceptGrid=this._createGrid({collection:this._importConceptStore},this.importConceptGridNode);this.externalSchemeStore.fetch().then(f.hitch(this,function(a){u.addOptionsToSelect(this.externalSchemeSelect,
{data:a,idProperty:"id",labelProperty:"label"})}))},startup:function(){this.inherited(arguments);this._importConceptGrid.startup()},reset:function(){this.externalSchemeSelect.selectedIndex=0;this._importConceptStore=new k({data:[]});this._importConceptGrid.set("collection",this._importConceptStore);this.searchLabelInput.value=""},hide:function(){this.reset();this.inherited(arguments)},_createGrid:function(d,e){var f=new (h([a,b,r,p]))({collection:d.collection,columns:{label:{label:""},id:{label:""},
type:{label:""},link:{label:"",renderCell:function(a){if(a&&a.uri)return c.create("a",{href:a.uri,target:"_blank",title:a.uri,innerHTML:'\x3ci class\x3d"fa fa-external-link"\x3e\x3c/i\x3e'})}}},selectionMode:"single",showHeader:!1,noDataMessage:"",loadingMessage:"Fetching data.."},e);f.on("dgrid-error",function(a){});return f},_okClick:function(a){a.preventDefault();a=null;for(var b in this._importConceptGrid.selection)this._importConceptGrid.selection[b]&&(a=this._importConceptStore.getSync(b));
a&&(this.emit("concept.import",{concept:a,schemeId:this.externalSchemeSelect.value}),this.hide())},_cancelClick:function(a){a.preventDefault();this.hide()},_searchConcepts:function(a){a?a.preventDefault():null;a=u.getSelectedOption(this.externalSchemeSelect);var b=this.searchLabelInput.value;a&&b&&""!==b&&this._loadStore(a,b)},_loadStore:function(a,b){this.conceptSchemeController.searchForConcepts(a,b).then(f.hitch(this,function(a){this._importConceptStore=new k({data:a});this._importConceptGrid.set("collection",
this._importConceptStore);this._importConceptGrid.resize()}),function(a){})},_validate:function(){}})})},"app/ui/dialogs/MergeConceptDialog":function(){define("dojo/_base/declare dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dojo/_base/array dojo/_base/lang dojo/topic dojo/promise/all dojo/dom-construct dgrid/OnDemandGrid dgrid/extensions/DijitRegistry dgrid/extensions/ColumnResizer dgrid/Selection dstore/Memory dstore/Trackable dojo/text!./templates/MergeConceptDialog.html".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t,g){return h([n,l,m],{templateString:g,parentNode:null,baseClass:"merge-concept-dialog",title:"Merge concept or collection",scheme:null,concept:null,conceptSchemeController:null,_mergeGrid:null,_mergeStore:null,postCreate:function(){this.inherited(arguments);this.trackableMemory=h([u,t]);this._mergeStore=new this.trackableMemory({data:[]});this._mergeGrid=this._createGrid({collection:this._mergeStore},this.mergeConceptGridNode)},startup:function(){this.inherited(arguments);
this._mergeGrid.startup()},hide:function(){this.inherited(arguments)},_createGrid:function(d,e){var f=new (h([a,b,r,p]))({collection:d.collection,columns:{label:{label:""},type:{label:"",formatter:function(a){return a+" match"}},link:{label:"",renderCell:function(a){if(a&&a.uri)return c.create("a",{href:a.uri,target:"_blank",title:a.uri,innerHTML:'\x3ci class\x3d"fa fa-external-link"\x3e\x3c/i\x3e'})}}},selectionMode:"single",showHeader:!1,noDataMessage:"",loadingMessage:"Fetching data.."},e);f.on("dgrid-error",
function(a){});return f},_okClick:function(a){a.preventDefault();for(var b in this._mergeGrid.selection)this._mergeGrid.selection[b]&&(selected=this._mergeStore.getSync(b));selected&&(this.emit("concept.merge",{conceptUri:selected.uri,concept:this.concept,schemeId:this.scheme}),this.hide())},show:function(a,b){this.inherited(arguments);this.loadingMatchesContainer.style.display="inline-block";this.mergeGridContainer.style.display="none";this.concept=a;this.scheme=b;var c=[],g=[];if(a.matches)for(var k in a.matches)a.matches.hasOwnProperty(k)&&
f.forEach(a.matches[k],function(a){c.push(this.conceptSchemeController.getMatch(a,k).then(d.hitch(this,function(a){g.push({id:a.data.id,label:a.data.label,uri:a.data.uri,type:a.type})})))},this);e(c).then(d.hitch(this,function(){this._mergeStore.setData(g);this._mergeGrid.refresh();this.loadingMatchesContainer.style.display="none";this.mergeGridContainer.style.display="inline-block"}))},_cancelClick:function(a){a.preventDefault();this.hide()}})})},"app/ui/dialogs/ManageSchemeDialog":function(){define("dojo/_base/declare dojo/_base/lang dojo/topic dojo/dom-attr dojo/on dijit/Dialog dijit/_Widget dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin ../../utils/DomUtils ../managers/LabelManager ../managers/NoteManager ../managers/SourcesManager ../../utils/DomUtils dojo/text!./templates/ManageSchemeDialog.html dijit/layout/TabContainer dijit/layout/ContentPane".split(" "),
function(h,l,m,n,f,d,k,e,c,a,b,r,p,u,t){return h([k,e,c],{templateString:t,baseClass:"edit-scheme-dialog",dialog:null,parent:null,scheme:null,languageController:null,listController:null,conceptSchemeController:null,_mode:"edit",postCreate:function(){this.inherited(arguments);this.dialog=new d({title:"Edit scheme",style:"width: 1000px; min-height: 650px;"});this.dialog.closeText.innerHTML='\x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e';this.dialog.set("content",this);this._createLabelsTab();this._createNotesTab();
this._createSourcesTab()},startup:function(){this.inherited(arguments);this.tabContainer.layout();this.dialog.resize()},showDialog:function(a,b){b&&(this.mode=b);a&&(a.id&&this.dialog.set("title","Edit \x3cstrong\x3e"+a.label+"\x3c/strong\x3e"),this.sourcesManager.setConcept(a),this.labelManager.setConcept(a),this.noteManager.setConcept(a),this.scheme=a);this.dialog.show();this.tabContainer.selectChild(this.tabLabels);this.tabContainer.layout();this.dialog.resize()},_close:function(){this._reset();
this.dialog.hide()},_saveScheme:function(a){a?a.preventDefault():null;a={};this.scheme&&(a.id=this.scheme.id||void 0,a.uri=this.scheme.uri||void 0);var b=this.labelManager.getData();l.mixin(a,b);b=this.noteManager.getData();l.mixin(a,b);b=this.sourcesManager.getData();l.mixin(a,b);"add"===this._mode?this.emit("new.scheme.save",{scheme:a}):this.emit("scheme.save",{scheme:a})},_cancel:function(a){a?a.preventDefault():null;this._close()},_reset:function(){this.labelManager.reset();this.noteManager.reset();
this.sourcesManager.reset()},_createLabelsTab:function(a){this.languageController.getLanguageStore().fetch().then(l.hitch(this,function(c){this.labelManager=new b({languageController:this.languageController,listController:this.listController,concept:a,languageList:c},this.labelsNode);this.labelManager.startup()}))},_createNotesTab:function(a){this.languageController.getLanguageStore().fetch().then(l.hitch(this,function(b){this.noteManager=new r({languageController:this.languageController,listController:this.listController,
concept:a,languageList:b},this.notesNode);this.noteManager.startup()}))},_createSourcesTab:function(a){this.sourcesManager=new p({listController:this.listController,concept:a},this.sourcesNode);this.sourcesManager.startup()}})})},"app/utils/ErrorUtils":function(){define(["dojo/_base/array","dojo/json"],function(h,l){return{parseError:function(m){var n={title:"Er is een fout opgetreden",message:m};if(m.response&&m.response.text)try{var f=l.parse(m.response.text);f.errors&&0<f.errors.length?(n.title=
f.message?f.message:n.title,n.message="",h.forEach(f.errors,function(d){for(var f in d)n.message+="- "+f+": "+d[f]+"\x3c/br\x3e"})):n.message=f.message?f.message:""}catch(d){}return n}}})},"app/controllers/ConceptSchemeController":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/request/xhr dojo/Deferred dojo/store/JsonRest dojo/store/Cache dojo/store/Memory dstore/Memory dojo/json".split(" "),function(h,l,m,n,f,d,k,e,c,a){return h(null,{conceptSchemeList:null,externalSchemeStore:null,
_target:"/conceptschemes",_stores:{},constructor:function(a){h.safeMixin(this,a);this.conceptSchemeList=[]},getConceptSchemes:function(){return n.get(this._target,{handleAs:"json",headers:{"Content-Type":"application/json",Accept:"application/json"}})},getConceptScheme:function(a){return n.get(this._target+"/"+a,{handleAs:"json",headers:{"Content-Type":"application/json",Accept:"application/json"}})},editConceptScheme:function(b){var c=a.stringify(b);return n(this._target+"/"+b.id,{handleAs:"json",
method:"PUT",data:c,headers:{"Content-Type":"application/json",Accept:"application/json"}})},loadConceptSchemeStores:function(){return this.getConceptSchemes().then(l.hitch(this,function(a){var b=[];m.forEach(a,l.hitch(this,function(a){-1==m.indexOf(a.subject,"external")?this.conceptSchemeList.push({name:a.label,id:a.id}):b.push(a)}));this.externalSchemeStore=new c({idProperty:"id",data:b})}))},getConceptSchemeTree:function(a){return new k(new d({target:"/conceptschemes/"+a+"/tree",getChildren:function(a){return a.children||
[]}}),new e)},getMatch:function(a,c){var b=this;return n.get("/uris/"+a,{handleAs:"json",headers:{Accept:"application/json"}}).then(function(d){var e=d.id;return b.getConcept(d.concept_scheme.id,a).then(function(d){return{type:c,data:{id:e,label:b._getPrefLabel(d.labels,"en"),uri:a}}},function(a){throw a;})},function(a){throw a;})},getMergeMatch:function(a){var b=this;return n.get("/uris/"+a,{handleAs:"json",headers:{Accept:"application/json"}}).then(function(c){return b.getConcept(c.concept_scheme.id,
a).then(function(a){return{labels:a.labels,notes:a.notes}},function(a){throw a;})},function(a){throw a;})},getConcept:function(a,c){var b=new f,d=c.split("/").pop();a&&d||b.reject("Malformed external scheme URI");n.get("/conceptschemes/"+a+"/c/"+d,{handleAs:"json",headers:{Accept:"application/json"}}).then(function(a){var d={label:a.label,labels:a.labels,type:a.type,notes:a.notes};"collection"!=a.type&&(d.matches={exact:[c]});b.resolve(d)},function(a){b.reject(a)});return b},_getPrefLabel:function(a,
c){var b=m.filter(a,function(a){return"prefLabel"==a.type});if(0==b.length)return a[0].label;var d=m.filter(a,function(a){return a.language==c});return 0==d.length?b[0].label:d[0].label},getExternalSchemeStore:function(){return this.externalSchemeStore?this.externalSchemeStore:null},searchForConcepts:function(a,c){return n.get("/conceptschemes/"+a+"/c?label\x3d"+c+"\x26type\x3dall\x26sort\x3d+label",{handleAs:"json",headers:{Accept:"application/json"}})}})})},"dojo/store/JsonRest":function(){define(["../_base/xhr",
"../_base/lang","../json","../_base/declare","./util/QueryResults"],function(h,l,m,n,f){return n("dojo.store.JsonRest",null,{constructor:function(d){this.headers={};n.safeMixin(this,d)},headers:{},target:"",idProperty:"id",ascendingPrefix:"+",descendingPrefix:"-",_getTarget:function(d){var f=this.target;"undefined"!=typeof d&&(f="/"==f.charAt(f.length-1)||"\x3d"==f.charAt(f.length-1)?f+d:f+("/"+d));return f},get:function(d,f){f=f||{};var e=l.mixin({Accept:this.accepts},this.headers,f.headers||f);
return h("GET",{url:this._getTarget(d),handleAs:"json",headers:e})},accepts:"application/javascript, application/json",getIdentity:function(d){return d[this.idProperty]},put:function(d,f){f=f||{};var e="id"in f?f.id:this.getIdentity(d);return h("undefined"==typeof e||f.incremental?"POST":"PUT",{url:this._getTarget(e),postData:m.stringify(d),handleAs:"json",headers:l.mixin({"Content-Type":"application/json",Accept:this.accepts,"If-Match":!0===f.overwrite?"*":null,"If-None-Match":!1===f.overwrite?"*":
null},this.headers,f.headers)})},add:function(d,f){f=f||{};f.overwrite=!1;return this.put(d,f)},remove:function(d,f){f=f||{};return h("DELETE",{url:this._getTarget(d),headers:l.mixin({},this.headers,f.headers)})},query:function(d,k){k=k||{};var e=l.mixin({Accept:this.accepts},this.headers,k.headers),c=-1<this.target.indexOf("?");(d=d||"")&&"object"==typeof d&&(d=(d=h.objectToQuery(d))?(c?"\x26":"?")+d:"");if(0<=k.start||0<=k.count)e["X-Range"]="items\x3d"+(k.start||"0")+"-"+("count"in k&&Infinity!=
k.count?k.count+(k.start||0)-1:""),this.rangeParam?(d+=(d||c?"\x26":"?")+this.rangeParam+"\x3d"+e["X-Range"],c=!0):e.Range=e["X-Range"];if(k&&k.sort){var a=this.sortParam;d+=(d||c?"\x26":"?")+(a?a+"\x3d":"sort(");for(c=0;c<k.sort.length;c++){var b=k.sort[c];d+=(0<c?",":"")+(b.descending?this.descendingPrefix:this.ascendingPrefix)+encodeURIComponent(b.attribute)}a||(d+=")")}var m=h("GET",{url:this.target+(d||""),handleAs:"json",headers:e});m.total=m.then(function(){var a=m.ioArgs.xhr.getResponseHeader("Content-Range");
a||(a=m.ioArgs.xhr.getResponseHeader("X-Content-Range"));return a&&(a=a.match(/\/(.*)/))&&+a[1]});return f(m)}})})},"dojo/store/Cache":function(){define(["../_base/lang","../when"],function(h,l){var m=function(m,f,d){d=d||{};return h.delegate(m,{query:function(h,e){var c=m.query(h,e);c.forEach(function(a){d.isLoaded&&!d.isLoaded(a)||f.put(a)});return c},queryEngine:m.queryEngine||f.queryEngine,get:function(d,e){return l(f.get(d),function(c){return c||l(m.get(d,e),function(a){a&&f.put(a,{id:d});return a})})},
add:function(d,e){return l(m.add(d,e),function(c){f.add(c&&"object"==typeof c?c:d,e);return c})},put:function(d,e){f.remove(e&&e.id||this.getIdentity(d));return l(m.put(d,e),function(c){f.put(c&&"object"==typeof c?c:d,e);return c})},remove:function(d,e){return l(m.remove(d,e),function(c){return f.remove(d,e)})},evict:function(d){return f.remove(d)}})};h.setObject("dojo.store.Cache",m);return m})},"dojo/store/Memory":function(){define(["../_base/declare","./util/QueryResults","./util/SimpleQueryEngine"],
function(h,l,m){return h("dojo.store.Memory",null,{constructor:function(h){for(var f in h)this[f]=h[f];this.setData(this.data||[])},data:null,idProperty:"id",index:null,queryEngine:m,get:function(h){return this.data[this.index[h]]},getIdentity:function(h){return h[this.idProperty]},put:function(h,f){var d=this.data,k=this.index,e=this.idProperty,e=h[e]=f&&"id"in f?f.id:e in h?h[e]:Math.random();if(e in k){if(f&&!1===f.overwrite)throw Error("Object already exists");d[k[e]]=h}else k[e]=d.push(h)-1;
return e},add:function(h,f){(f=f||{}).overwrite=!1;return this.put(h,f)},remove:function(h){var f=this.index,d=this.data;if(h in f)return d.splice(f[h],1),this.setData(d),!0},query:function(h,f){return l(this.queryEngine(h,f)(this.data))},setData:function(h){h.items?(this.idProperty=h.identifier||this.idProperty,h=this.data=h.items):this.data=h;this.index={};for(var f=0,d=h.length;f<d;f++)this.index[h[f][this.idProperty]]=f}})})},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],
function(h){return function(l,m){function n(d){d=h.filter(d,l);var f=m&&m.sort;f&&d.sort("function"==typeof f?f:function(c,a){for(var b,d=0;b=f[d];d++){var e=c[b.attribute],h=a[b.attribute],e=null!=e?e.valueOf():e,h=null!=h?h.valueOf():h;if(e!=h)return!!b.descending==(null==e||e>h)?-1:1}return 0});if(m&&(m.start||m.count)){var e=d.length;d=d.slice(m.start||0,(m.start||0)+(m.count||Infinity));d.total=e}return d}switch(typeof l){default:throw Error("Can not query with a "+typeof l);case "object":case "undefined":var f=
l;l=function(d){for(var h in f){var e=f[h];if(e&&e.test){if(!e.test(d[h],d))return!1}else if(e!=d[h])return!1}return!0};break;case "string":if(!this[l])throw Error("No filter function "+l+" was found in store");l=this[l];case "function":}n.matches=l;return n}})},"app/controllers/ConceptController":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/request/xhr dojo/request dojo/Deferred dojo/json dstore/Rest".split(" "),function(h,l,m,n,f,d,k,e){return h(null,{_stores:{},_target:"/conceptschemes/{schemeId}/c/",
constructor:function(c){h.safeMixin(this,c)},getConcept:function(c,a){var b=new d,e=this._target.replace("{schemeId}",c)+a;n.get(e,{handleAs:"json",headers:{Accept:"application/json"}}).then(l.hitch(this,function(a){b.resolve(a)}),function(a){a.response&&a.response.data&&a.response.data.message?b.reject(a.response.data.message):b.reject(a)});return b},getConceptStore:function(c){c in this._stores||(this._stores[c]=new e({target:this._target.replace("{schemeId}",c),idProperty:"id",sortParam:"sort",
useRangeHeaders:!0}));return this._stores[c]},saveConcept:function(c,a,b){var d=this._target.replace("{schemeId}",a);"PUT"===b&&(d=this._target.replace("{schemeId}",a)+c.id);return f(d,{method:b,data:k.stringify(c),handleAs:"json",headers:{Accept:"application/json","Content-type":"application/json","X-Requested-With":""}})},deleteConcept:function(c,a){var b=this._target.replace("{schemeId}",a)+c.id;return f(b,{method:"DELETE",handleAs:"json",headers:{Accept:"application/json","Content-type":"application/json",
"X-Requested-With":""}})},getConceptByUri:function(c){return f(c,{method:"GET",handleAs:"json",headers:{Accept:"application/json","Content-type":"application/json","X-Requested-With":""}})}})})},"dstore/Rest":function(){define("dojo/request dojo/when dojo/_base/lang dojo/json dojo/io-query dojo/_base/declare ./Request".split(" "),function(h,l,m,n,f,d,k){return d(k,{stringify:n.stringify,_getTarget:function(d){var c=this.target;return"/"==c.slice(-1)?c+d:c+"/"+d},get:function(d,c){c=c||{};var a=m.mixin({Accept:this.accepts},
this.headers,c.headers||c),b=this;return h(this._getTarget(d),{headers:a}).then(function(a){return b._restore(b.parse(a),!0)})},autoEmitEvents:!1,put:function(d,c){c=c||{};var a="id"in c?c.id:this.getIdentity(d),b="undefined"!==typeof a,e=this,f="beforeId"in c?null===c.beforeId?{"Put-Default-Position":"end"}:{"Put-Before":c.beforeId}:b&&!1!==c.overwrite?null:{"Put-Default-Position":this.defaultNewToStart?"start":"end"},k=h(b?this._getTarget(a):this.target,{method:b&&!c.incremental?"PUT":"POST",data:this.stringify(d),
headers:m.mixin({"Content-Type":"application/json",Accept:this.accepts,"If-Match":!0===c.overwrite?"*":null,"If-None-Match":!1===c.overwrite?"*":null},f,this.headers,c.headers)});return k.then(function(a){var b={};"beforeId"in c&&(b.beforeId=c.beforeId);a=b.target=a&&e._restore(e.parse(a),!0)||d;l(k.response,function(a){e.emit(201===a.status?"add":"update",b)});return a})},add:function(d,c){c=c||{};c.overwrite=!1;return this.put(d,c)},remove:function(d,c){c=c||{};var a=this;return h(this._getTarget(d),
{method:"DELETE",headers:m.mixin({},this.headers,c.headers)}).then(function(b){var c=b&&a.parse(b);a.emit("delete",{id:d,target:c});return b?c:!0})}})})},"dstore/Request":function(){define("dojo/request dojo/_base/lang dojo/_base/array dojo/json dojo/_base/declare ./Store ./QueryResults".split(" "),function(h,l,m,n,f,d,k){var e=[].push;return f(d,{constructor:function(){this.headers||(this.headers={});this._targetContainsQueryString=0<=this.target.lastIndexOf("?")},headers:{},parse:n.parse,target:"",
ascendingPrefix:"+",descendingPrefix:"-",accepts:"application/json",fetch:function(c){c=this._request(c);return new k(c.data,{response:c.response})},fetchRange:function(c){var a=c.start,b=c.end,d={};this.useRangeHeaders?d.headers=l.mixin(this._renderRangeHeaders(a,b),c.headers):(d.queryParams=this._renderRangeParams(a,b),c.headers&&(d.headers=c.headers));c=this._request(d);return new k(c.data,{totalLength:c.total,response:c.response})},_issueFetchRequest:function(c,a){return h(c,{method:"GET",headers:a})},
_request:function(c){c=c||{};var a=l.delegate(this.headers,{Accept:this.accepts});"headers"in c&&l.mixin(a,c.headers);c=this._renderUrl(c.queryParams);var b=this._issueFetchRequest(c,a),d=this,a=b.then(function(a){return d.parse(a)});return{data:a.then(function(a){a=a.items||a;for(var b=0,c=a.length;b<c;b++)a[b]=d._restore(a[b],!0);return a}),total:a.then(function(a){a=a.total;return-1<a?a:b.response.then(function(a){return(a=a.getHeader("Content-Range"))&&(a=a.match(/\/(.*)/))&&+a[1]})}),response:b.response}},
_renderFilterParams:function(c){var a=c.type,b=c.args;if(!a)return[""];if("string"===a)return[b[0]];if("and"===a||"or"===a)return[m.map(c.args,function(b){var c=this._renderFilterParams(b);return"and"!==b.type&&"or"!==b.type||b.type===a?c:"("+c+")"},this).join("and"===a?"\x26":"|")];(c=b[1])&&(c._renderUrl?c="("+c._renderUrl()+")":c instanceof Array&&(c="("+c+")"));return[encodeURIComponent(b[0])+"\x3d"+("eq"===a?"":a+"\x3d")+encodeURIComponent(c)]},_renderSortParams:function(c){c=m.map(c,function(a){return(a.descending?
this.descendingPrefix:this.ascendingPrefix)+encodeURIComponent(a.property)},this);var a=[];c&&a.push(this.sortParam?encodeURIComponent(this.sortParam)+"\x3d"+c:"sort("+c+")");return a},_renderRangeParams:function(c,a){var b=[];this.rangeStartParam?b.push(this.rangeStartParam+"\x3d"+c,this.rangeCountParam+"\x3d"+(a-c)):b.push("limit("+(a-c)+(c?","+c:"")+")");return b},_renderSelectParams:function(c){var a=[];this.selectParam?a.push(this.selectParam+"\x3d"+c):a.push("select("+c+")");return a},_renderQueryParams:function(){var c=
[];m.forEach(this.queryLog,function(a){var b=a.type,b="_render"+b[0].toUpperCase()+b.substr(1)+"Params";this[b]&&e.apply(c,this[b].apply(this,a.normalizedArguments))},this);return c},_renderUrl:function(c){var a=this._renderQueryParams(),b=this.target;c&&e.apply(a,c);0<a.length&&(b+=(this._targetContainsQueryString?"\x26":"?")+a.join("\x26"));return b},_renderRangeHeaders:function(c,a){var b="items\x3d"+c+"-"+(a-1);return{Range:b,"X-Range":b}}})})},"app/controllers/LanguageController":function(){define("dojo/_base/declare dstore/Rest dstore/Trackable dstore/Cache dstore/Memory dojo/topic".split(" "),
function(h,l,m,n,f,d){return h(null,{_target:"/languages",TrackableRest:null,_baseUrl:"",_langStore:null,_langList:null,constructor:function(d){h.safeMixin(this,d);this.TrackableRest=h([l,m])},getLanguageStore:function(){if(!this._langStore){var d=new this.TrackableRest({target:this._baseUrl+this._target,idProperty:"id",sortParam:"sort",useRangeHeaders:!0,accepts:"application/json"});this._langStore=n.create(d,{cachingStore:new f,isValidFetchCache:!0})}return this._langStore},updateLanguageStore:function(){this.getLanguageStore().invalidate();
d.publish("languages.updated")}})})},"dstore/Cache":function(){define("dojo/_base/array dojo/when dojo/_base/declare dojo/_base/lang ./Store ./Memory ./QueryResults".split(" "),function(h,l,m,n,f,d,k){function e(a){return function(){var b=this.inherited(arguments),c=this.cachingCollection||this.cachingStore;b.cachingCollection=c[a].apply(c,arguments);b.isValidFetchCache=!0===this.canCacheQuery||this.canCacheQuery(a,arguments);return b}}function c(a){a.cachingStore||(a.cachingStore=new d);a.cachingStore.Model=
a.Model;a.cachingStore.idProperty=a.idProperty}var a={cachingStore:null,constructor:function(){c(this)},canCacheQuery:function(a,c){return!1},isAvailableInCache:function(){return this.isValidFetchCache&&(this.allLoaded||this.fetchRequest)||this._parent&&this._parent.isAvailableInCache()},fetch:function(){return this._fetch(arguments)},fetchRange:function(){return this._fetch(arguments,!0)},_fetch:function(a,c){var b=this.cachingStore,d=this.cachingCollection||b,e=this,f=this.isAvailableInCache();
if(f)return new k(l(f,function(){return e.isAvailableInCache()?c?d.fetchRange(a[0]):d.fetch():e.inherited(a)}));f=this.fetchRequest=this.inherited(a);l(f,function(a){var d=!c;e.fetchRequest=null;h.forEach(a,function(a){!e.isLoaded||e.isLoaded(a)?b.putSync?b.putSync(a):b.put(a):d=!1});d&&(e.allLoaded=!0);return a});return f},isValidFetchCache:!1,get:function(a,c){var b=this.cachingStore,d=this.getInherited(arguments),e=this;return l(this.fetchRequest,function(){return l(b.get(a),function(f){if(void 0!==
f)return f;if(d)return l(d.call(e,a,c),function(c){c&&b.put(c,{id:a});return c})})})},add:function(a,c){var b=this.cachingStore;return l(this.inherited(arguments),function(d){var e=b.put(a&&"object"===typeof d?d:a,c);return d||e})},put:function(a,c){var b=this.cachingStore;b.put(a,c);return l(this.inherited(arguments)).then(function(d){var e=b.put(a&&"object"===typeof d?d:a,c);return d||e},function(){b.remove(c&&c.id||this.getIdentity(a))})},remove:function(a,c){var b=this.cachingStore;return l(this.inherited(arguments),
function(d){return l(b.remove(a,c),function(){return d})})},evict:function(a){this.allLoaded=!1;return this.cachingStore.remove(a)},invalidate:function(){this.allLoaded=!1},_createSubCollection:function(){var a=this.inherited(arguments);a._parent=this;return a},sort:e("sort"),filter:e("filter"),select:e("select"),_getQuerierFactory:function(a){var b=this.cachingStore;return this.inherited(arguments)||n.hitch(b,b._getQuerierFactory(a))}};f=m(null,a);f.create=function(b,d){b=m.safeMixin(n.delegate(b),
a);m.safeMixin(b,d);c(b);return b};return f})},"app/controllers/ListController":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/request/xhr dojo/Deferred dstore/Rest".split(" "),function(h,l,m,n,f,d){return h(null,{labelTypes:[{label:"Preferred",value:"prefLabel"},{label:"Alternative",value:"altLabel"},{label:"Hidden",value:"hiddenLabel"},{label:"Sort",value:"sortLabel"}],noteTypes:[{label:"Definition",value:"definition"},{label:"Note",value:"note"},{label:"History note",
value:"historyNote"},{label:"Scope note",value:"scopeNote"}],matchTypes:[{label:"Broad",value:"broad"},{label:"Close",value:"close"},{label:"Exact",value:"exact"},{label:"Narrow",value:"narrow"},{label:"Related",value:"related"}],conceptTypes:[{label:"Concept",value:"concept"},{label:"Collection",value:"collection"}],constructor:function(d){h.safeMixin(this,d)},getLabelTypes:function(){return this.labelTypes},getNoteTypes:function(){return this.noteTypes},getMatchTypes:function(){return this.matchTypes},
getConceptTypes:function(){return this.conceptTypes}})})},"dGrowl/main":function(){define("dojo/text dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dojo/topic dojo/dom-construct dGrowl/NotificationNode dojo/query dojo/_base/lang dojo/dom-class".split(" "),function(h,l,m,n,f,d,k,e,c,a){return l("dGrowl",[m,n],{templateString:dojo.cache("dGrowl","main.html"),channels:[{name:"default",pos:0}],orientation:"topRight",defaultChannel:null,postCreate:function(){this.inherited(arguments);!this.channels instanceof
Array&&(this.channels=[this.channels]);null===this.defaultChannel&&(this.defaultChannel=this.channels[0].name);this.channels.sort(this.sortChannels);this.chanDefs={};for(var b=0;b<this.channels.length;b++)this.addChannel(this.channels[b].name,this.channels[b]);this._s=f.subscribe("dGrowl",c.hitch(this,this._subscribedChannels));a.add(this.domNode,"dGrowl-"+this.orientation);b=e("body")[0];d.place(this.domNode,b,"top")},destroy:function(){for(var a=0;a<this.chanDefs.length;a++)f.unsubscribe(this.chanDefs[a]._s);
f.unsubscribe(this._s);this.inherited(arguments)},_subscribedChannels:function(a,c){return this.addNotification(a,c)},addChannel:function(a,c){this.chanDefs[a]=c;this.chanDefs[a].node=d.create("li",{"class":"dGrowl-channel dGrowl-channel-"+a});d.place(this.chanDefs[a].node,this.channelsN)},addNotification:function(a,c){void 0==c?c={channel:this.defaultChannel}:void 0==c.channel&&(c.channel=this.defaultChannel);if(void 0!=this.chanDefs[c.channel]){c.message=a;var b=new k(c);d.place(b.domNode,this.chanDefs[c.channel].node);
b.show();return b}return!1},sortChannels:function(a,c){return void 0==a.pos?-1:void 0==c.pos?1:a.pos>c.pos?1:a.pos==c.pos?0:-1}})})},"dGrowl/NotificationNode":function(){define("dojo/text dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dojo/dom-construct dGrowl/NotificationNode dojo/dom-class dojo/_base/event dojo/_base/lang".split(" "),function(h,l,m,n,f,d,k,e,c){return l("dGrowl",[m,n],{templateString:dojo.cache("dGrowl","NotificationNode.html"),title:"",message:"",duration:5E3,sticky:!1,
stickyClass:"",constructor:function(a){!0===a.sticky&&(this.stickyClass="dGrowl-notification-sticky")},postCreate:function(){this.inherited(arguments);!1===this.sticky&&setTimeout(c.hitch(this,this.killme),this.duration)},show:function(){k.add(this.domNode,"dGrowl-visible");this.onShow(this)},onShow:function(){},onHide:function(){},killme:function(a){a&&e.stop(a);k.remove(this.domNode,"dGrowl-visible");setTimeout(c.hitch(this,this.destroy),1100);this.onHide(this)}})})},"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',
"url:dijit/templates/actionBar.html":"\x3cdiv class\x3d'dijitDialogPaneActionBar' data-dojo-attach-point\x3d\"actionBarNode\"\x3e\n\t\x3cbutton data-dojo-type\x3d'dijit/form/Button' type\x3d'submit' data-dojo-attach-point\x3d\"okButton\"\x3e\x3c/button\x3e\n\t\x3cbutton data-dojo-type\x3d'dijit/form/Button' type\x3d'button'\n\t\t\tdata-dojo-attach-point\x3d\"cancelButton\" data-dojo-attach-event\x3d'click:onCancel'\x3e\x3c/button\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:app/ui/templates/AppUi.html":'\x3cdiv\x3e\n\n  \x3cheader\x3e\n    \x3cnav class\x3d"top-bar" data-topbar role\x3d"navigation"\x3e\n      \x3cul class\x3d"title-area"\x3e\n        \x3cli class\x3d"name"\x3e\n          \x3ca href\x3d"/"\x3e\x3cimg src\x3d"${staticAppPath}img/atramlogo.png" class\x3d"left logo-small"\x3e\n            \x3ch1 class\x3d"left logo-small-text"\x3eAtramhasis\x3c/h1\x3e\n          \x3c/a\x3e\n        \x3c/li\x3e\n      \x3c/ul\x3e\n      \x3cdiv class\x3d"top-bar-section"\x3e\n        \x3c!-- Right Nav Section --\x3e\n        \x3cul class\x3d"right"\x3e\n          \x3cli class\x3d"divider"\x3e\x3c/li\x3e\n          \x3cli\x3e\n            \x3ca class\x3d"button tiny menu-button" data-dojo-attach-event\x3d"onClick: _toggleMenu"\x3e\x3ci class\x3d"fa fa-bars"\x3e\x3c/i\x3eMENU\x3c/a\x3e\n          \x3c/li\x3e\n        \x3c/ul\x3e\n      \x3c/div\x3e\n    \x3c/nav\x3e\n  \x3c/header\x3e\n\n  \x3cdiv class\x3d"app-content-container" data-dojo-attach-point\x3d"appContentContainer"\x3e\n\n    \x3cdiv data-dojo-attach-point\x3d"conceptContainerNode"\x3e\x3c/div\x3e\n\n    \x3cdiv class\x3d"app-menu"\x3e\n      \x3cdiv data-dojo-attach-point\x3d"menuContainerNode"\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"slidemenu-overlay slideoverlay-close" data-dojo-attach-point\x3d"menuOverlayContainer" data-dojo-attach-event\x3d"onClick: _closeMenu"\x3e\x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\n  \x3cfooter\x3e\n    \u00a9 Copyright 2014-2020 \x3ca href\x3d"https://www.onroerenderfgoed.be/"\x3eFlanders Heritage Agency\x3c/a\x3e\n    \x3cdiv class\x3d"right"\x3enl | fr | en\x3c/div\x3e\n  \x3c/footer\x3e\n\n\x3c/div\x3e\n',
"url:app/ui/templates/Help.html":"\x3cdiv class\x3d\"large-8 columns\"\x3e\n  \x3ch2\x3e\n    Welcome to Atramhasis!\n  \x3c/h2\x3e\n  \x3ch4\x3eAtramhasis is an open-source, web-based \x3ca href\x3d'http://www.w3.org/2004/02/skos/'\x3eSKOS\x3c/a\x3e editor. \x3c/h4\x3e\n  \x3ch4\x3eYou can use this webapplication to browse, edit and add SKOS vocabularies, thesauri, authority files, word lists, ... through the amdin interface.\x3c/h4\x3e\n\x3c/div\x3e\n","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/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: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:app/ui/widgets/templates/SearchPane.html":'\x3cdiv\x3e\n\n  \x3cdiv class\x3d"search-form"\x3e\n    \x3cform data-dojo-attach-point\x3d"labelSearchForm" data-dojo-attach-event\x3d"onsubmit: _search"\x3e\n        \x3cdiv class\x3d"large-10 columns"\x3e\n          \x3cselect data-dojo-attach-point\x3d"conceptSchemeSelect"\x3e\n            \x3coption value\x3d"-1" selected disabled\x3eSelect thesaurus\x3c/option\x3e\n          \x3c/select\x3e\n        \x3c/div\x3e\n        \x3cdiv class\x3d"large-2 columns edit-scheme-button"\x3e\n          \x3cbutton type\x3d"button" class\x3d"button tiny" href\x3d"#/conceptscheme/edit" data-dojo-attach-point\x3d"editSchemeButton"\n                  data-dojo-attach-event\x3d"onClick: _editConceptScheme" disabled\x3eEdit\x3c/button\x3e\n        \x3c/div\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"labelfilter-${id}"\x3eFilter by label\x3c/label\x3e\n          \x3cinput id\x3d"labelfilter-${id}" data-dojo-attach-point\x3d"labelInput" type\x3d"text"/\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"typefilter-${id}"\x3eFilter by type\x3c/label\x3e\n          \x3cselect id\x3d"typefilter-${id}" data-dojo-attach-point\x3d"conceptTypeSelect"\x3e\n            \x3coption value\x3d"all"\x3eall types\x3c/option\x3e\n            \x3coption value\x3d"concept"\x3econcepts\x3c/option\x3e\n            \x3coption value\x3d"collection"\x3ecollections\x3c/option\x3e\n          \x3c/select\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"matchfilter-${id}"\x3eFilter by match\x3c/label\x3e\n          \x3cinput id\x3d"matchfilter-${id}" data-dojo-attach-point\x3d"matchInput" type\x3d"text" placeholder\x3d"e.g. http://vocab.getty.edu/aat/300005241"/\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"text-center large-12 columns"\x3e\n        \x3cbutton href\x3d"#/search" class\x3d"button tiny search-button" data-dojo-attach-event\x3d"onClick: _search"\x3e\x3cspan class\x3d"ico ico-mglass"\x3e\x3c/span\x3e\x3c/button\x3e\n      \x3c/div\x3e\n    \x3c/form\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"search-results" data-dojo-attach-point\x3d"searchResultsNode"\x3e\n    \x3cdiv data-dojo-attach-point\x3d"gridNode"\x3e\x3c/div\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"search-footer-buttons text-center large-8 columns large-offset-2"\x3e\n    \x3cdiv class\x3d"large-4 columns"\x3e\n      \x3cbutton class\x3d"button tiny" href\x3d"#/concept/new" data-dojo-attach-event\x3d"onClick: _createConcept"\n              data-dojo-attach-point\x3d"addConceptButton" disabled\x3e+Add\x3c/button\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-4 columns"\x3e\n      \x3cbutton class\x3d"button tiny" href\x3d"#/concept/import" data-dojo-attach-event\x3d"onClick: _importConcept"\n              data-dojo-attach-point\x3d"importConceptButton" disabled\x3eImport\x3c/button\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-4 columns"\x3e\n      \x3ca class\x3d"button tiny" href\x3d"#/languages" data-dojo-attach-event\x3d"onClick: _editLanguages"\x3eLanguage\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\n\x3c/div\x3e',
"url:dijit/templates/MenuSeparator.html":'\x3ctr class\x3d"dijitMenuSeparator" role\x3d"separator"\x3e\n\t\x3ctd class\x3d"dijitMenuSeparatorIconCell"\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorTop"\x3e\x3c/div\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorBottom"\x3e\x3c/div\x3e\n\t\x3c/td\x3e\n\t\x3ctd colspan\x3d"3" class\x3d"dijitMenuSeparatorLabelCell"\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorTop dijitMenuSeparatorLabel"\x3e\x3c/div\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorBottom"\x3e\x3c/div\x3e\n\t\x3c/td\x3e\n\x3c/tr\x3e\n',
"url:app/ui/widgets/templates/ConceptDetail.html":'\x3cdiv data-dojo-attach-point\x3d"conceptDetailNode"\x3e\n  \x3cdiv class\x3d"large-12 columns" style\x3d"margin-top: 20px; padding-bottom: 20px;"\x3e\n    \x3cdiv class\x3d"large-8 columns"\x3e\n      \x3ch1 data-dojo-attach-point\x3d"conceptTitleViewNode"\x3e\x3c/h1\x3e\n      \x3cspan class\x3d"concept-title-info" data-dojo-attach-point\x3d"idViewNode"\x3e\x3c/span\x3e\n      \x3cspan class\x3d"concept-title-info" data-dojo-attach-point\x3d"typeViewNode"\x3e\x3c/span\x3e\n      \x3cspan class\x3d"concept-title-info" data-dojo-attach-point\x3d"uriViewNode"\x3e\x3c/span\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-4 columns"\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny right" data-dojo-attach-event\x3d"onClick: _deleteConcept"\x3eDELETE\x3c/a\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny right" style\x3d"margin-right: 10px;" data-dojo-attach-event\x3d"onClick: _openEditDialog"\x3eEDIT\x3c/a\x3e\n      \x3cbutton href\x3d"#" class\x3d"button tiny right" style\x3d"margin-right: 10px;" data-dojo-attach-event\x3d"onClick: _openMergeDialog"\n         data-dojo-attach-point\x3d"mergeButton"\x3eMERGE\x3c/button\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3chr class\x3d"concept-hr"\x3e\n  \x3cdiv class\x3d"large-12 columns label-relation-block"\x3e\n    \x3cdiv class\x3d"large-6 columns"\x3e\n      \x3ch4 class\x3d"no-top-padding"\x3eLabels\x3c/h4\x3e\n      \x3cdl class\x3d"dllist"\x3e\n        \x3cdt\x3ePreferred labels\x3c/dt\x3e\x3cdd data-dojo-attach-point\x3d"preferredLabelsNode"\x3e\x3c/dd\x3e\n        \x3cdt\x3eAlternate labels\x3c/dt\x3e\x3cdd data-dojo-attach-point\x3d"alternateLabelsNode"\x3e\x3c/dd\x3e\n        \x3cdt\x3eHidden labels\x3c/dt\x3e\x3cdd data-dojo-attach-point\x3d"hiddenLabelsNode"\x3e\x3c/dd\x3e\n        \x3cdt\x3eSort labels\x3c/dt\x3e\x3cdd data-dojo-attach-point\x3d"sortLabelsNode"\x3e\x3c/dd\x3e\n      \x3c/dl\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-6 columns"\x3e\n      \x3ch4 class\x3d"no-top-padding"\x3eRelations\x3c/h4\x3e\n      \x3cdl class\x3d"dllist" data-dojo-attach-point\x3d"relationsListNode"\x3e\n      \x3c/dl\x3e\n      \x3ch4 class\x3d"no-top-padding"\x3eMatches\x3c/h4\x3e\n      \x3cdl class\x3d"dllist" data-dojo-attach-point\x3d"matchesListNode"\x3e\n      \x3c/dl\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3chr class\x3d"concept-hr"\x3e\n  \x3cdiv class\x3d"large-12 columns"\x3e\n    \x3cdiv class\x3d"large-12 columns"\x3e\n      \x3cul class\x3d"scopeNote" data-dojo-attach-point\x3d"scopeNoteNode"\x3e\n        \x3ch3\x3enotes\x3c/h3\x3e\n      \x3c/ul\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-12 columns"\x3e\n      \x3cul class\x3d"scopeNote" data-dojo-attach-point\x3d"sourcesNode"\x3e\n        \x3ch3\x3esources\x3c/h3\x3e\n      \x3c/ul\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/managers/templates/LabelManager.html":'\x3cdiv\x3e\n  \x3cdiv class\x3d"row relation-row" style\x3d"margin-bottom: 5px;"\x3e\n    \x3cdiv class\x3d"large-offset-10 large-2 columns"\x3e\n      \x3ca style\x3d"float: right;" href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addLabel" title\x3d"Add label"\x3eAdd Label\x26nbsp;\x26nbsp;\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row"\x3e\n    \x3cdiv class\x3d"large-12 columns" style\x3d"padding: 0;"\x3e\n      \x3cdiv data-dojo-attach-point\x3d"labelGridNode" style\x3d"max-height: 350px;"\x3e\x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/LabelsDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"labelsDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n    \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-6 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"typeSelectNode-${id}"\x3eType\x3c/label\x3e\n          \x3cselect id\x3d"typeSelectNode-${id}" data-dojo-attach-point\x3d"typeSelectNode"\x3e\x3c/select\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-6 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"langSelectNode-${id}"\x3eLanguage\x3c/label\x3e\n          \x3cselect id\x3d"langSelectNode-${id}" data-dojo-attach-point\x3d"langSelectNode"\x3e\x3c/select\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"labelInputNode-${id}"\x3eLabel\x3c/label\x3e\n          \x3cinput type\x3d"text" data-dojo-attach-point\x3d"labelInputNode" id\x3d"labelInputNode-${id}"\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" data-dojo-attach-point\x3d"okButtonNode" class\x3d"button tiny"\x3eOk\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/managers/templates/NoteManager.html":'\x3cdiv\x3e\n  \x3cdiv class\x3d"row relation-row" style\x3d"margin-bottom: 5px;"\x3e\n    \x3cdiv class\x3d"large-offset-10 large-2 columns"\x3e\n      \x3ca style\x3d"float: right;" href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addNote" title\x3d"Add note"\x3eAdd Note\x26nbsp;\x26nbsp;\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row"\x3e\n    \x3cdiv class\x3d"large-12 columns" style\x3d"padding: 0;"\x3e\n      \x3cdiv data-dojo-attach-point\x3d"noteGridNode" style\x3d"max-height: 350px;"\x3e\x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/NotesDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"notesDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n    \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-6 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"typeSelectNode-${id}"\x3eType\x3c/label\x3e\n          \x3cselect id\x3d"typeSelectNode-${id}" data-dojo-attach-point\x3d"typeSelectNode"\x3e\x3c/select\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-6 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"langSelectNode-${id}"\x3eLanguage\x3c/label\x3e\n          \x3cselect id\x3d"langSelectNode-${id}" data-dojo-attach-point\x3d"langSelectNode"\x3e\x3c/select\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"htmlEditorNode"\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" data-dojo-attach-point\x3d"okButtonNode" class\x3d"button tiny"\x3eOk\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/utils/templates/HtmlEditor.html":'\x3cdiv class\x3d"htmlEditor"\x3e\n    \x3cdiv data-dojo-attach-point\x3d"containerToolbarNode" \x3e\x3c/div\x3e\n    \x3ctextarea data-dojo-attach-point\x3d"containerTextAreaNode"\x3e\x3c/textarea\x3e\n\x3c/div\x3e',"url:app/ui/managers/templates/RelationManager.html":'\x3cdiv\x3e\n  \x3cdiv class\x3d"row relation-row" data-dojo-attach-point\x3d"broaderContainerNode"\x3e\n    \x3cdiv class\x3d"large-11 columns"\x3e\n      \x3cp\x3eBroader\x3c/p\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-1 columns"\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addBroader" title\x3d"Add broader concept"\x3e\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"broaderGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row" data-dojo-attach-point\x3d"narrowerContainerNode"\x3e\n    \x3cdiv class\x3d"large-11 columns"\x3e\n      \x3cp\x3eNarrower\x3c/p\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-1 columns"\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addNarrower" title\x3d"Add narrower concept"\x3e\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"narrowerGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row" data-dojo-attach-point\x3d"relatedContainerNode"\x3e\n    \x3cdiv class\x3d"large-11 columns"\x3e\n      \x3cp\x3eRelated\x3c/p\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-1 columns"\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addRelated" title\x3d"Add related concept"\x3e\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"relatedGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row" data-dojo-attach-point\x3d"membersContainerNode"\x3e\n    \x3cdiv class\x3d"large-11 columns"\x3e\n      \x3cp\x3eMembers\x3c/p\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-1 columns"\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addMembers" title\x3d"Add members"\x3e\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"membersGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row" data-dojo-attach-point\x3d"memberOfContainerNode"\x3e\n    \x3cdiv class\x3d"large-11 columns"\x3e\n      \x3cp\x3eMember of\x3c/p\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-1 columns"\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addMemberOf" title\x3d"Add member of concept"\x3e\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"memberOfGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row" data-dojo-attach-point\x3d"subordinateArraysContainerNode"\x3e\n    \x3cdiv class\x3d"large-11 columns"\x3e\n      \x3cp\x3eSubordinate arrays\x3c/p\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-1 columns"\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addSubordinateArray" title\x3d"Add subordinate array"\x3e\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"subordinateGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row" data-dojo-attach-point\x3d"superordinatesCollContainerNode"\x3e\n    \x3cdiv class\x3d"large-11 columns"\x3e\n      \x3cp\x3eSuperordinates\x3c/p\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-1 columns"\x3e\n      \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addSuperordinates" title\x3d"Add superordinates"\x3e\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"superordinatesCollGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row" data-dojo-attach-point\x3d"inferConceptRelationsContainerNode" style\x3d"margin-top: 10px"\x3e\n    \x3cdiv class\x3d"placeholder-container radio-container"\x3e\n      \x3clabel style\x3d"width: 80%"\x3eShould member concepts of this collection be seen as narrower concept of a superordinate of the collection\x3c/label\x3e\n      \x3cinput type\x3d"radio" name\x3d"inferConceptRelations" data-dojo-attach-point\x3d"inferConceptRelationsYesNode" /\x3e Yes\n      \x3cinput type\x3d"radio" name\x3d"inferConceptRelations" data-dojo-attach-point\x3d"inferConceptRelationsNoNode" /\x3e No\n    \x3c/div\x3e\n  \x3c/div\x3e\n\n\x3c/div\x3e',
"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:app/ui/dialogs/templates/AddRelationDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"addRelationDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"addRelationContainerNode" style\x3d"height: 330px; overflow-y: scroll; width: 100%"\x3e\x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" class\x3d"button tiny"\x3eAdd\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/managers/templates/MatchesManager.html":'\x3cdiv\x3e\n  \x3cdiv class\x3d"row relation-row" style\x3d"margin-bottom: 5px;"\x3e\n    \x3cdiv class\x3d"large-10 columns"\x3e\n      \x3ch5 data-dojo-attach-point\x3d"loadingMatchesNode" style\x3d"display: none;"\x3e\x3ci class\x3d"fa fa-spinner fa-pulse"\x3e\x3c/i\x3e\x26nbsp;Loading matches..\x3c/h5\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-2 columns"\x3e\n      \x3ca style\x3d"float: right;" href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addMatches" title\x3d"Add match"\x3eAdd Match\x26nbsp;\x26nbsp;\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row relation-row"\x3e\n    \x3cdiv class\x3d"large-12 columns"\x3e\n      \x3cp\x3eBroad\x3c/p\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"broadGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row"\x3e\n    \x3cdiv class\x3d"large-12 columns"\x3e\n      \x3cp\x3eClose\x3c/p\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"closeGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row"\x3e\n    \x3cdiv class\x3d"large-12 columns"\x3e\n      \x3cp\x3eExact\x3c/p\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"exactGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row"\x3e\n    \x3cdiv class\x3d"large-12 columns"\x3e\n      \x3cp\x3eNarrow\x3c/p\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"narrowGridNode"\x3e\n  \x3c/div\x3e\n\n  \x3cdiv class\x3d"row relation-row"\x3e\n    \x3cdiv class\x3d"large-12 columns"\x3e\n      \x3cp\x3eRelated\x3c/p\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row large-12 columns"\n       data-dojo-attach-point\x3d"relatedGridNode"\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/AddMatchesDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"addMatchesDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n    \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cp style\x3d"margin-top: 0; padding-top: 0;"\x3eSelect an external scheme and enter a label to search for a match:\x3c/p\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-6 columns"\x3e\n        \x3cselect data-dojo-attach-point\x3d"externalSchemeSelect"\x3e\x3c/select\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-5 columns"\x3e\n        \x3cinput type\x3d"search" style\x3d"float: right" data-dojo-attach-point\x3d"searchLabelInput" placeholder\x3d"Enter a label .." /\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-1 columns"\x3e\n        \x3ca href\x3d"#" class\x3d"button tiny" style\x3d"float: right" data-dojo-attach-event\x3d"onClick: _searchMatches"\x3e\x3ci class\x3d"fa fa-search"\x3e\x3c/i\x3e\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"addMatchesGridNode" style\x3d"height: 330px; width: 100%"\x3e\x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-6 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container" style\x3d"margin-top: 15px;"\x3e\n          \x3clabel for\x3d"matchType-${id}" style\x3d"width: 60%;"\x3eSelect the type of match\x3c/label\x3e\n          \x3cselect id\x3d"matchType-${id}" data-dojo-attach-point\x3d"matchTypeSelectNode"\x3e\x3c/select\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" class\x3d"button tiny"\x3eAdd\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/ConceptEditDialog.html":'\x3cdiv\x3e\n  \x3cdiv class\x3d"large-12 columns"\x3e\n    \x3cdiv class\x3d"large-4 columns"\x3e\n      \x3cdiv class\x3d"placeholder-container"\x3e\n        \x3clabel\x3eSCHEME\x3c/label\x3e\n        \x3cinput type\x3d"text" data-dojo-attach-point\x3d"schemeNode" disabled /\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-4 columns"\x3e\n      \x3cdiv class\x3d"placeholder-container"\x3e\n        \x3clabel\x3eTYPE\x3c/label\x3e\n        \x3cselect data-dojo-attach-point\x3d"typeNode"\x3e\x3c/select\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3chr class\x3d"concept-hr"\x3e\n  \x3cdiv class\x3d"large-12 columns" style\x3d"padding-bottom: 20px;"\x3e\n    \x3cdiv data-dojo-type\x3d"dijit/layout/TabContainer"\n         data-dojo-attach-point\x3d"tabContainer"\n         data-dojo-props\x3d"doLayout:false"\n         class\x3d""\x3e\n\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Labels"\n           data-dojo-attach-point\x3d"tabLabels"\n           data-dojo-props\x3d"selected:true"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"labelsNode"\x3e[ LABELS ]\x3c/div\x3e\n      \x3c/div\x3e\n\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Notes"\n           data-dojo-attach-point\x3d"tabNotes"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"notesNode"\x3e[ NOTES ]\x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Relations"\n           data-dojo-attach-point\x3d"tabRelations"\n           style\x3d"max-height: 408px; overflow-y: auto;"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"relationsNode"\x3e[ RELATIONS ]\x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Matches"\n           data-dojo-attach-point\x3d"tabMatches"\n           style\x3d"max-height: 408px; overflow-y: auto;"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"matchesNode"\x3e[ MATCHES ]\x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"large-12 columns text-center" style\x3d"margin-top: 30px; margin-bottom: 20px;"\x3e\n    \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _saveConcept"\x3eSave\x3c/a\x3e\n    \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _cancel"\x3eCancel\x3c/a\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/widgets/templates/SlideMenu.html":'\x3cdiv class\x3d"slidemenu-container slidemenu-close" data-dojo-attach-point\x3d"menuContainer" data-dojo-attach-event\x3d"onClick: _slideOpen"\x3e\n  \x3cdiv class\x3d"slidemenu-inner"\x3e\n    \x3cdiv data-dojo-attach-point\x3d"menuNode"\x3e\x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e\n',"url:app/ui/managers/templates/SourcesManager.html":'\x3cdiv\x3e\n  \x3cdiv class\x3d"row relation-row" style\x3d"margin-bottom: 5px;"\x3e\n    \x3cdiv class\x3d"large-offset-10 large-2 columns"\x3e\n      \x3ca style\x3d"float: right;" href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _addSource" title\x3d"Add source"\x3eAdd Source\x26nbsp;\x26nbsp;\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"row"\x3e\n    \x3cdiv class\x3d"large-12 columns" style\x3d"padding: 0;"\x3e\n      \x3cdiv data-dojo-attach-point\x3d"sourcesGridNode" style\x3d"max-height: 350px;"\x3e\x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/SourcesDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"sourcesDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n    \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"htmlEditorNode"\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" data-dojo-attach-point\x3d"okButtonNode" class\x3d"button tiny"\x3eOk\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/ManageConceptDialog.html":'\x3cdiv\x3e\n  \x3cdiv class\x3d"large-12 columns"\x3e\n    \x3cdiv class\x3d"large-4 columns"\x3e\n      \x3cdiv class\x3d"placeholder-container"\x3e\n        \x3clabel\x3eSCHEME\x3c/label\x3e\n        \x3cselect class\x3d"no-arrow-select" data-dojo-attach-point\x3d"schemeNode" disabled\x3e\x3c/select\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"large-4 columns"\x3e\n      \x3cdiv class\x3d"placeholder-container"\x3e\n        \x3clabel\x3eTYPE\x3c/label\x3e\n        \x3cselect data-dojo-attach-point\x3d"typeNode"\x3e\x3c/select\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3chr class\x3d"concept-hr"\x3e\n  \x3cdiv class\x3d"large-12 columns" style\x3d"padding-bottom: 20px;"\x3e\n    \x3cdiv data-dojo-type\x3d"dijit/layout/TabContainer"\n         data-dojo-attach-point\x3d"tabContainer"\n         data-dojo-props\x3d"doLayout:false"\n         class\x3d""\x3e\n\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Labels"\n           data-dojo-attach-point\x3d"tabLabels"\n           data-dojo-props\x3d"selected:true"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"labelsNode"\x3e[ LABELS ]\x3c/div\x3e\n      \x3c/div\x3e\n\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Notes"\n           data-dojo-attach-point\x3d"tabNotes"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"notesNode"\x3e[ NOTES ]\x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Sources"\n           data-dojo-attach-point\x3d"tabSources"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"sourcesNode"\x3e[ SOURCES ]\x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Relations"\n           data-dojo-attach-point\x3d"tabRelations"\n           style\x3d"max-height: 408px; overflow-y: scroll;"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"relationsNode"\x3e[ RELATIONS ]\x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Matches"\n           data-dojo-attach-point\x3d"tabMatches"\n           style\x3d"max-height: 408px; overflow-y: scroll;"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"matchesNode"\x3e[ MATCHES ]\x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"large-12 columns text-center" style\x3d"margin-top: 30px; margin-bottom: 20px;"\x3e\n    \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _saveConcept"\x3eSave\x3c/a\x3e\n    \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _cancel"\x3eCancel\x3c/a\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/ManageLanguagesDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"manageLanguagesDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n    \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3ch5 style\x3d"margin-top: 0;"\x3eAdd a language\x3c/h5\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-3 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"codeInputNode-${id}"\x3eCode\x3c/label\x3e\n          \x3cinput type\x3d"text" id\x3d"codeInputNode-${id}" data-dojo-attach-point\x3d"codeInputNode" /\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-7 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"nameInputNode-${id}"\x3eName\x3c/label\x3e\n          \x3cinput type\x3d"text" id\x3d"nameInputNode-${id}" data-dojo-attach-point\x3d"nameInputNode" /\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-2 columns" style\x3d"padding: 0;"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _addLangClick" data-dojo-attach-point\x3d"addButtonNode" style\x3d"float: left; height: 39px;" class\x3d"button tiny"\x3eAdd\x26nbsp;\x26nbsp;\x3ci class\x3d"fa fa-plus"\x3e\x3c/i\x3e\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3ch5 style\x3d"margin-top: 0; margin-bottom: 10px;"\x3eYou can use \x3ca href\x3d"http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry" target\x3d"_blank" style\x3d"text-decoration: underline;"\x3ethis\x3c/a\x3e list as a reference.\x3c/h5\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"langGridNode"\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3c!--?\x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" data-dojo-attach-point\x3d"okButtonNode" class\x3d"button tiny"\x3eOK\x3c/a\x3e--\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eClose\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/LanguageDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"languageDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n    \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"codeInput-${id}"\x3eCode\x3c/label\x3e\n          \x3cinput type\x3d"text" id\x3d"codeInput-${id}" data-dojo-attach-point\x3d"codeInputNode" /\x3e\n        \x3c/div\x3e\n        \x3cdiv class\x3d"placeholder-container"\x3e\n          \x3clabel for\x3d"descriptionInput-${id}"\x3eName\x3c/label\x3e\n          \x3cinput type\x3d"text" id\x3d"descriptionInput-${id}" data-dojo-attach-point\x3d"descriptionInputNode" /\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" data-dojo-attach-point\x3d"okButtonNode" class\x3d"button tiny"\x3eOk\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/ImportConceptDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"importConceptDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n    \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cp style\x3d"margin-top: 0; padding-top: 0;"\x3eSelect an external scheme and enter a label to search for a match:\x3c/p\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-6 columns"\x3e\n        \x3cselect data-dojo-attach-point\x3d"externalSchemeSelect"\x3e\x3c/select\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-5 columns"\x3e\n        \x3cinput type\x3d"search" style\x3d"float: right" data-dojo-attach-point\x3d"searchLabelInput" placeholder\x3d"Enter a label .." /\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-1 columns"\x3e\n        \x3ca href\x3d"#" class\x3d"button tiny" style\x3d"float: right" data-dojo-attach-event\x3d"onClick: _searchConcepts"\x3e\x3ci class\x3d"fa fa-search"\x3e\x3c/i\x3e\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"importConceptGridNode" style\x3d"height: 330px; width: 100%"\x3e\x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" class\x3d"button tiny"\x3eImport\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/MergeConceptDialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"mergeConceptDialog_title"\x3e\n  \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" role\x3d"heading"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n          data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"Annuleren" role\x3d"button" tabIndex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"Annuleren" tabIndex\x3d"-1"\x3e\n        \x3ci class\x3d"fa fa-times"\x3e\x3c/i\x3e\x3c/span\x3e\n\t\t\x3c/span\x3e\n  \x3c/div\x3e\n\n  \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n    \x3cdiv class\x3d"row"\x3e\n      \x3cdiv class\x3d"large-12 columns" data-dojo-attach-point\x3d"loadingMatchesContainer" style\x3d"height: 250px;"\x3e\n        \x3ch4\x3e\x3ci class\x3d"fa fa-spinner fa-pulse"\x3e\x3c/i\x3e\x26nbsp;\x26nbsp;Loading matches..\x3c/h4\x3e\n      \x3c/div\x3e\n      \x3cdiv class\x3d"large-12 columns" data-dojo-attach-point\x3d"mergeGridContainer"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"mergeConceptGridNode"\x3e\x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv class\x3d"row footerButtons"\x3e\n      \x3cdiv class\x3d"large-12 columns text-center"\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _okClick" class\x3d"button tiny"\x3eMerge\x3c/a\x3e\n        \x3ca href\x3d"#" data-dojo-attach-event\x3d"onClick: _cancelClick" class\x3d"button tiny"\x3eCancel\x3c/a\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"url:app/ui/dialogs/templates/ManageSchemeDialog.html":'\x3cdiv\x3e\n  \x3cdiv class\x3d"large-12 columns" style\x3d"padding-bottom: 20px;"\x3e\n    \x3cdiv data-dojo-type\x3d"dijit/layout/TabContainer"\n         data-dojo-attach-point\x3d"tabContainer"\n         data-dojo-props\x3d"doLayout:false"\n         class\x3d""\x3e\n\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Labels"\n           data-dojo-attach-point\x3d"tabLabels"\n           data-dojo-props\x3d"selected:true"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"labelsNode"\x3e[ LABELS ]\x3c/div\x3e\n      \x3c/div\x3e\n\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Notes"\n           data-dojo-attach-point\x3d"tabNotes"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"notesNode"\x3e[ NOTES ]\x3c/div\x3e\n      \x3c/div\x3e\n\n      \x3cdiv data-dojo-type\x3d"dijit/layout/ContentPane"\n           title\x3d"Sources"\n           data-dojo-attach-point\x3d"tabSources"\x3e\n        \x3cdiv data-dojo-attach-point\x3d"sourcesNode"\x3e[ SOURCES ]\x3c/div\x3e\n      \x3c/div\x3e\n      \x3c!--? todo add languages tab --\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3cdiv class\x3d"large-12 columns text-center" style\x3d"margin-top: 30px; margin-bottom: 20px;"\x3e\n    \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _saveScheme"\x3eSave\x3c/a\x3e\n    \x3ca href\x3d"#" class\x3d"button tiny" data-dojo-attach-event\x3d"onClick: _cancel"\x3eCancel\x3c/a\x3e\n  \x3c/div\x3e\n\x3c/div\x3e',
"*now":function(h){h(['dojo/i18n!*preload*app/nls/main*["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"]'])}}});define("app/main",["./App","dojo/dom","dojo/domReady!"],function(h,l){var m={appContainer:l.byId("appDiv"),loadingContainer:l.byId("loadingOverlay"),staticAppPath:staticAppPath};(new h({appConfig:m})).startup()});
//# sourceMappingURL=main.js.map