//>>built
define("dojox/collections/Dictionary",["dojo/_base/kernel","dojo/_base/array","./_base"],function(k,l,e){e.Dictionary=function(c){var b={};this.count=0;var g={};this.add=function(a,d){var f=a in b;b[a]=new e.DictionaryEntry(a,d);f||this.count++};this.clear=function(){b={};this.count=0};this.clone=function(){return new e.Dictionary(this)};this.contains=this.containsKey=function(a){return g[a]?!1:null!=b[a]};this.containsValue=function(a){for(var d=this.getIterator();d.get();)if(d.element.value==a)return!0;
return!1};this.entry=function(a){return b[a]};this.forEach=function(a,d){var f=[],h;for(h in b)g[h]||f.push(b[h]);k.forEach(f,a,d)};this.getKeyList=function(){return this.getIterator().map(function(a){return a.key})};this.getValueList=function(){return this.getIterator().map(function(a){return a.value})};this.item=function(a){if(a in b)return b[a].valueOf()};this.getIterator=function(){return new e.DictionaryIterator(b)};this.remove=function(a){return a in b&&!g[a]?(delete b[a],this.count--,!0):!1};
if(c)for(c=c.getIterator();c.get();)this.add(c.element.key,c.element.value)};return e.Dictionary});