Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated builds.

  • Loading branch information...
commit bc208117988cbe4ff4763072d2260eeb659bc345 1 parent eb475f3
Jens Arps authored
View
2  build/embed-kitchensink-android.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
View
2  build/embed-kitchensink-blackberry.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
View
2  build/embed-kitchensink-blackberry46.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){var b=a._getProp;a._getProp=function(a,c,d){var e=d||dojo.global;e===window&&c&&a.length&&typeof window[a[0]]==="undefined"&&(window[a[0]]={});return b(a,c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){var b=a._getProp;a._getProp=function(a,c,d){var e=d||dojo.global;e===window&&c&&a.length&&typeof window[a[0]]==="undefined"&&(window[a[0]]={});return b(a,c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
View
2  build/embed-kitchensink-firefox-mobile.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(a,b){return a.classList.contains(b)},a.toggleClass=function(b,c,d){var e={"true":"add","false":"remove","undefined":"toggle"};a.byId(b).classList[e[d+""]](c)},a.addClass=function(b,c){b=a.byId(b);var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.add(d[e])},a.removeClass=function(b,c){b=a.byId(b);if(c===undefined)b.className="";else{var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.remove(d[e])}};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(a,b){return a.classList.contains(b)},a.toggleClass=function(b,c,d){var e={"true":"add","false":"remove","undefined":"toggle"};a.byId(b).classList[e[d+""]](c)},a.addClass=function(b,c){b=a.byId(b);var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.add(d[e])},a.removeClass=function(b,c){b=a.byId(b);if(c===undefined)b.className="";else{var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.remove(d[e])}};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
View
2  build/embed-kitchensink-ios.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
View
2  build/embed-kitchensink-ios5.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(a,b){return a.classList.contains(b)},a.toggleClass=function(b,c,d){var e={"true":"add","false":"remove","undefined":"toggle"};a.byId(b).classList[e[d+""]](c)},a.addClass=function(b,c){b=a.byId(b);var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.add(d[e])},a.removeClass=function(b,c){b=a.byId(b);if(c===undefined)b.className="";else{var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.remove(d[e])}};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(a,b){return a.classList.contains(b)},a.toggleClass=function(b,c,d){var e={"true":"add","false":"remove","undefined":"toggle"};a.byId(b).classList[e[d+""]](c)},a.addClass=function(b,c){b=a.byId(b);var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.add(d[e])},a.removeClass=function(b,c){b=a.byId(b);if(c===undefined)b.className="";else{var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.remove(d[e])}};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
View
2  build/embed-kitchensink-nokia-wrt.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){embed.fromJson=function(json){return eval("("+json+")")},embed._escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},embed.toJson=function(a){if(a===undefined)return"undefined";var b=typeof a;if(b=="number"||b=="boolean")return a+"";if(a===null)return"null";if(embed.isString(a))return embed._escapeString(a);var c=arguments.callee,d,e=a.__json__||a.json;if(embed.isFunction(e)){d=e.call(a);if(a!==d)return c(d)}if(a.nodeType&&a.cloneNode)throw new Error("Can't serialize DOM nodes");if(embed.isArray(a)){var f=embed.map(a,function(a){var b=c(a);typeof b!="string"&&(b="undefined");return b});return"["+f.join(",")+"]"}if(b=="function")return null;var g=[],h;for(h in a){var i,j;if(typeof h=="number")i='"'+h+'"';else if(typeof h=="string")i=embed._escapeString(h);else continue;j=c(a[h]);if(typeof j!="string")continue;g.push(i+":"+j)}return"{"+g.join(",")+"}"};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){embed.fromJson=function(json){return eval("("+json+")")},embed._escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},embed.toJson=function(a){if(a===undefined)return"undefined";var b=typeof a;if(b=="number"||b=="boolean")return a+"";if(a===null)return"null";if(embed.isString(a))return embed._escapeString(a);var c=arguments.callee,d,e=a.__json__||a.json;if(embed.isFunction(e)){d=e.call(a);if(a!==d)return c(d)}if(a.nodeType&&a.cloneNode)throw new Error("Can't serialize DOM nodes");if(embed.isArray(a)){var f=embed.map(a,function(a){var b=c(a);typeof b!="string"&&(b="undefined");return b});return"["+f.join(",")+"]"}if(b=="function")return null;var g=[],h;for(h in a){var i,j;if(typeof h=="number")i='"'+h+'"';else if(typeof h=="string")i=embed._escapeString(h);else continue;j=c(a[h]);if(typeof j!="string")continue;g.push(i+":"+j)}return"{"+g.join(",")+"}"};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
View
1  build/embed-kitchensink-unknown.js
@@ -0,0 +1 @@
+define("implementations",{embed:"embed",array:[{isAvailable:function(){return({}).toString.call([].forEach)=="[object Function]"},implementation:"array/native"},{isAvailable:function(){return!0},implementation:"array/functional"}],"array:native":"array/native","array:functional":"array/functional","connect-connect":"connect/connect","connect-event":"connect/event","connect-pubsub":"connect/pubsub","async-promise":"async/promise","async-when":"async/when","async-deferred":"async/deferred","html-attr":"html/attr","html-element":"html/element","html-todom":"html/todom","html-class":[{isAvailable:function(){return"classList"in document.body},implementation:"html/class-classlist"},{isAvailable:function(){return!0},implementation:"html/class"}],"html-class:classlist":"html/class-classlist","html-class:string":"html/class","html-style":"html/style","html-ready":"html/ready","html-id":"html/id","html-destroy":"html/destroy",json:[{isAvailable:function(){return typeof JSON!="undefined"&&typeof JSON.parse=="function"},implementation:"json/native"},{isAvailable:function(){return!0},implementation:"json/dojo-json"}],"json:native":"json/native","json:dojo":"json/dojo-json","lang-toarray":"lang/toarray","lang-clone":"lang/clone","lang-hitch":"lang/hitch","lang-is":"lang/is","lang-string":"lang/string","lang-mixin":"lang/mixin","lang-object":[{isAvailable:function(){return/blackberry4\.6/i.test(window.navigator.userAgent)},implementation:"lang/object-bb46fix"},{isAvailable:function(){return!0},implementation:"lang/object"}],"lang-object:default":"lang/object","lang-object:bb46fix":"lang/object-bb46fix","transport-xhr":"transport/xhr","transport-script":"transport/script","transport-jsonp":"transport/jsonp",query:[{isAvailable:function(){return typeof document.querySelectorAll!="undefined"},implementation:"query/qsa-preprocessor"},{isAvailable:function(){return!0},implementation:"query/acme"}],"query:qsapp":"query/qsa-preprocessor","query:qsa":"query/qsa","query:simple":"query/simple","query:acme":"query/acme","query:xpath":"query/xpath","queryExtensions-ChainableNodeArray":"queryExtensions/ChainableNodeArray","oo-declare":"oo/declare","oo-delegate":"oo/delegate","oo-extend":"oo/extend",uri:"uri/objectToQuery"}),define("feature",["implementations"],function(a){return{load:function(b,c,d,e){var f,g,h,i=a[b],j=({}).toString,k=function(a){return j.call(a)=="[object Array]"},l=k(i),m=function(){},n=function(a){d(a)};if(e.isBuild&&l)for(f=0,g=i.length;f<g;f++)c([i[f].implementation],m);else{if(l){for(f=0,g=i.length;f<g;f++)if(i[f].isAvailable()){h=i[f].implementation;break}}else h=i;c([h],n)}}}}),define("embed",["require","exports","module"],function(){var a={};a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";return a}),define("lang/is",["embed"],function(a){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};return a}),define("lang/mixin",["embed"],function(a){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};return a}),define("lang/object",["embed"],function(a){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};return a}),define("lang/object-bb46fix",["feature!lang-object:default"],function(a){var b=a._getProp;a._getProp=function(a,c,d){var e=d||dojo.global;e===window&&c&&a.length&&typeof window[a[0]]==="undefined"&&(window[a[0]]={});return b(a,c,d)};return a}),define("lang/hitch",["embed","feature!lang-is","feature!lang-toarray"],function(a){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};return a}),define("lang/clone",["embed","feature!lang-is"],function(a){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};return a}),define("lang/toarray",["embed"],function(a){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};return a}),define("lang/string",["embed","feature!lang-object","feature!lang-is"],function(a){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};return a}),define("oo/declare",["embed","feature!lang-mixin","feature!lang-is","feature!lang-object","feature!array","feature!oo-extend","feature!oo-delegate"],function(a){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});return a}),define("oo/delegate",["embed","feature!lang-mixin"],function(a){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();return a}),define("oo/extend",["embed","feature!lang-mixin"],function(a){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};return a}),define("array/native",["embed"],function(a){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});return a}),define("array/functional",["embed","feature!lang-mixin"],function(a){var b=function(b,c,d){return[typeof b=="string"?b.split(""):b,c||a.global,typeof d=="string"?new Function("item","index","array",d):d]},c=function(a,c,d,e){var f=b(c,e,d);c=f[0];for(var g=0,h=c.length;g<h;++g){var i=!!f[2].call(f[1],c[g],g,c);if(a^i)return i}return a};a.mixin(a,{indexOf:function(a,b,c,d){var e=1,f=a.length||0,g=0;d&&(g=f-1,e=f=-1),c!=undefined&&(g=c);if(d&&g>f||g<f)for(;g!=f;g+=e)if(a[g]==b)return g;return-1},lastIndexOf:function(b,c,d){return a.indexOf(b,c,d,!0)},forEach:function(a,c,d){if(a&&a.length){var e=b(a,d,c);a=e[0];for(var f=0,g=a.length;f<g;++f)e[2].call(e[1],a[f],f,a)}},every:function(a,b,d){return c(!0,a,b,d)},some:function(a,b,d){return c(!1,a,b,d)},map:function(a,c,d){var e=b(a,d,c);a=e[0];var f=arguments[3]?new arguments[3]:[];for(var g=0,h=a.length;g<h;++g)f.push(e[2].call(e[1],a[g],g,a));return f},filter:function(a,c,d){var e=b(a,d,c);a=e[0];var f=[];for(var g=0,h=a.length;g<h;++g)e[2].call(e[1],a[g],g,a)&&f.push(a[g]);return f}});return a}),define("connect/connect",["embed","feature!lang-hitch","feature!lang-is"],function(a){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};return a}),define("connect/event",["embed","feature!connect-connect"],function(a){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};return a}),define("connect/pubsub",["embed","feature!connect-connect","feature!lang-hitch"],function(a){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};return a}),define("async/promise",["embed","feature!lang-hitch"],function(a){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};return a}),define("async/when",["embed"],function(a){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};return a}),define("async/deferred",["embed","feature!async-promise","feature!oo-extend","feature!lang-hitch"],function(a){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});return a}),define("html/attr",["embed","feature!html-style","feature!html-id","feature!lang-is","feature!connect-connect","feature!connect-event"],function(a){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};return a}),define("html/element",["embed","feature!html-id","feature!html-style","feature!html-todom"],function(a){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};return a}),define("html/todom",["embed"],function(a){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};return a}),define("html/class-classlist",["embed","feature!html-id"],function(a){a.hasClass=function(a,b){return a.classList.contains(b)},a.toggleClass=function(b,c,d){var e={"true":"add","false":"remove","undefined":"toggle"};a.byId(b).classList[e[d+""]](c)},a.addClass=function(b,c){b=a.byId(b);var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.add(d[e])},a.removeClass=function(b,c){b=a.byId(b);if(c===undefined)b.className="";else{var d=c.split?c.split(" "):c;for(var e=0,f=d.length;e<f;e++)d[e].length&&b.classList.remove(d[e])}};return a}),define("html/class",["embed","feature!html-id","feature!lang-string"],function(a){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};return a}),define("html/style",["embed","feature!html-id"],function(a){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};return a}),define("html/ready",["embed"],function(a){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);return a}),define("html/id",["embed"],function(a){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};return a}),define("html/destroy",["embed","feature!html-id"],function(a){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};return a}),define("json/native",["embed"],function(a){var b=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg;a.toJson=function(a){return JSON.stringify(a)},a.fromJson=function(a,c){c&&(a=a.replace(b,""));return JSON.parse(a)};return a}),define("json/dojo-json",["embed","feature!lang-is","feature!array"],function(embed){embed.fromJson=function(json){return eval("("+json+")")},embed._escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},embed.toJson=function(a){if(a===undefined)return"undefined";var b=typeof a;if(b=="number"||b=="boolean")return a+"";if(a===null)return"null";if(embed.isString(a))return embed._escapeString(a);var c=arguments.callee,d,e=a.__json__||a.json;if(embed.isFunction(e)){d=e.call(a);if(a!==d)return c(d)}if(a.nodeType&&a.cloneNode)throw new Error("Can't serialize DOM nodes");if(embed.isArray(a)){var f=embed.map(a,function(a){var b=c(a);typeof b!="string"&&(b="undefined");return b});return"["+f.join(",")+"]"}if(b=="function")return null;var g=[],h;for(h in a){var i,j;if(typeof h=="number")i='"'+h+'"';else if(typeof h=="string")i=embed._escapeString(h);else continue;j=c(a[h]);if(typeof j!="string")continue;g.push(i+":"+j)}return"{"+g.join(",")+"}"};return embed}),define("transport/xhr",["embed","feature!json","feature!uri","feature!lang-is","feature!lang-mixin","feature!async-deferred"],function(a){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};return a}),define("transport/script",["embed"],function(a){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};return a}),define("transport/jsonp",["embed","feature!transport-script","feature!uri"],function(a){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};return a}),define("query/qsa-preprocessor",["embed","feature!html-id"],function(a){a.query=function(b,c){if(typeof c=="string"){c=a.byId(c);if(!c)return[]}c=c||a.doc,/[>+~]\s*$/.test(b)&&(b+="*");var d=c;if(c.nodeType==9)if(/^\s*>/.test(b)){var e=b.replace(/^\s*>/,"").match(/([^\s>+~]+)(.*)/);if(!e)return[];var f=e[1];b=e[2];if(c.querySelector(f)!==c.documentElement)return[];if(!b)return[c.documentElement];c=c.documentElement}else if(/^\s*[+~]/.test(b))return[];if(c.nodeType==1){var g=c.id,h=g;if(!g){h=c.id="d---embed-query-synthetic-id-"+(new Date).getTime();var i=!0}var j="#"+h+" ",k=b.split(/(?=[,'"])/),l=[],m=k[0],n,o,p,q=m,r=/\\+$/;for(var s=1,t=k.length;s<t;s++){var p=k[s],u=p.charAt(0);if(u!==","||o||n){var v=r.exec(q);if(!v||v[0].length%2===0)o||u!=='"'?!n&&u==="'"&&(o=!o):n=!n;m+=p}else l.push(m),m=p.slice(1);q=p}l.push(m),b=j+l.join(","+j),d=c.parentNode||c}var w=d.querySelectorAll(b);i&&(c.id="");return w||[]};return a}),define("query/acme",["embed"],function(a){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;return a}),define("queryExtensions/ChainableNodeArray",["embed","feature!query","feature!array"],function(a){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};return a}),define("uri/objectToQuery",["embed","feature!lang-is"],function(a){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};return a}),define("../profiles/kitchensink",["feature!lang-is","feature!lang-mixin","feature!lang-object","feature!lang-hitch","feature!lang-clone","feature!lang-toarray","feature!lang-string","feature!oo-declare","feature!oo-delegate","feature!oo-extend","feature!array","feature!connect-connect","feature!connect-event","feature!connect-pubsub","feature!async-promise","feature!async-when","feature!async-deferred","feature!html-attr","feature!html-element","feature!html-todom","feature!html-class","feature!html-style","feature!html-ready","feature!html-id","feature!html-destroy","feature!json","feature!transport-xhr","feature!transport-script","feature!transport-jsonp","feature!query","feature!queryExtensions-ChainableNodeArray","feature!uri"],function(a){a.global.embed=a;return a})
View
2  build/embed-kitchensink-vodafone-apps-manager-2-2.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){embed.fromJson=function(json){return eval("("+json+")")},embed._escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},embed.toJson=function(a){if(a===undefined)return"undefined";var b=typeof a;if(b=="number"||b=="boolean")return a+"";if(a===null)return"null";if(embed.isString(a))return embed._escapeString(a);var c=arguments.callee,d,e=a.__json__||a.json;if(embed.isFunction(e)){d=e.call(a);if(a!==d)return c(d)}if(a.nodeType&&a.cloneNode)throw new Error("Can't serialize DOM nodes");if(embed.isArray(a)){var f=embed.map(a,function(a){var b=c(a);typeof b!="string"&&(b="undefined");return b});return"["+f.join(",")+"]"}if(b=="function")return null;var g=[],h;for(h in a){var i,j;if(typeof h=="number")i='"'+h+'"';else if(typeof h=="string")i=embed._escapeString(h);else continue;j=c(a[h]);if(typeof j!="string")continue;g.push(i+":"+j)}return"{"+g.join(",")+"}"};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){a.indexOf=function(a,b,c){return a.indexOf(b,c)},a.lastIndexOf=function(a,b,c){return arguments.length<3?a.lastIndexOf(b):a.lastIndexOf(b,c)},["forEach","map","some","every","filter"].forEach(function(b,c){a[b]=function(a,c,d){typeof c=="string"&&(c=new Function("item","index","array",c));return Array.prototype[b].call(a,c,d)}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){embed.fromJson=function(json){return eval("("+json+")")},embed._escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},embed.toJson=function(a){if(a===undefined)return"undefined";var b=typeof a;if(b=="number"||b=="boolean")return a+"";if(a===null)return"null";if(embed.isString(a))return embed._escapeString(a);var c=arguments.callee,d,e=a.__json__||a.json;if(embed.isFunction(e)){d=e.call(a);if(a!==d)return c(d)}if(a.nodeType&&a.cloneNode)throw new Error("Can't serialize DOM nodes");if(embed.isArray(a)){var f=embed.map(a,function(a){var b=c(a);typeof b!="string"&&(b="undefined");return b});return"["+f.join(",")+"]"}if(b=="function")return null;var g=[],h;for(h in a){var i,j;if(typeof h=="number")i='"'+h+'"';else if(typeof h=="string")i=embed._escapeString(h);else continue;j=c(a[h]);if(typeof j!="string")continue;g.push(i+":"+j)}return"{"+g.join(",")+"}"};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
View
2  build/embed-kitchensink-wp-7.js
@@ -1 +1 @@
-;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){var b=function(b,c,d){return[typeof b=="string"?b.split(""):b,c||a.global,typeof d=="string"?new Function("item","index","array",d):d]},c=function(a,c,d,e){var f=b(c,e,d);c=f[0];for(var g=0,h=c.length;g<h;++g){var i=!!f[2].call(f[1],c[g],g,c);if(a^i)return i}return a};a.mixin(a,{indexOf:function(a,b,c,d){var e=1,f=a.length||0,g=0;d&&(g=f-1,e=f=-1),c!=undefined&&(g=c);if(d&&g>f||g<f)for(;g!=f;g+=e)if(a[g]==b)return g;return-1},lastIndexOf:function(b,c,d){return a.indexOf(b,c,d,!0)},forEach:function(a,c,d){if(a&&a.length){var e=b(a,d,c);a=e[0];for(var f=0,g=a.length;f<g;++f)e[2].call(e[1],a[f],f,a)}},every:function(a,b,d){return c(!0,a,b,d)},some:function(a,b,d){return c(!1,a,b,d)},map:function(a,c,d){var e=b(a,d,c);a=e[0];var f=arguments[3]?new arguments[3]:[];for(var g=0,h=a.length;g<h;++g)f.push(e[2].call(e[1],a[g],g,a));return f},filter:function(a,c,d){var e=b(a,d,c);a=e[0];var f=[];for(var g=0,h=a.length;g<h;++g)e[2].call(e[1],a[g],g,a)&&f.push(a[g]);return f}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){embed.fromJson=function(json){return eval("("+json+")")},embed._escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},embed.toJson=function(a){if(a===undefined)return"undefined";var b=typeof a;if(b=="number"||b=="boolean")return a+"";if(a===null)return"null";if(embed.isString(a))return embed._escapeString(a);var c=arguments.callee,d,e=a.__json__||a.json;if(embed.isFunction(e)){d=e.call(a);if(a!==d)return c(d)}if(a.nodeType&&a.cloneNode)throw new Error("Can't serialize DOM nodes");if(embed.isArray(a)){var f=embed.map(a,function(a){var b=c(a);typeof b!="string"&&(b="undefined");return b});return"["+f.join(",")+"]"}if(b=="function")return null;var g=[],h;for(h in a){var i,j;if(typeof h=="number")i='"'+h+'"';else if(typeof h=="string")i=embed._escapeString(h);else continue;j=c(a[h]);if(typeof j!="string")continue;g.push(i+":"+j)}return"{"+g.join(",")+"}"};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();
+;(function(){var a={};(function(){a.config={},a.global=this,a.doc=this.document||null,a.body=function(){var b=a;return b.doc&&b.doc.body},a.version="0.2.1";})();(function(){a.isString=function(a){return typeof a=="string"||a instanceof String},a.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")},a.isFunction=function(a){var b=typeof a;return a&&(b=="function"||a instanceof Function)&&!a.nodeType&&a.toString()!="[object NodeList]"},a.isObject=function(b){return b!==undefined&&(b===null||typeof b=="object"||a.isArray(b)||a.isFunction(b))},a.isArrayLike=function(b){var c=a;return b&&b!==undefined&&!c.isString(b)&&!c.isFunction(b)&&(!b.tagName||b.tagName.toLowerCase()!="form")&&(c.isArray(b)||isFinite(b.length))},a.isAlien=function(b){return b&&!a.isFunction(b)&&/\{\s*\[native code\]\s*\}/.test(String(b))},a.isNumeric=function(a){return a==parseFloat(a)},a.isNumber=function(a){return typeof a=="number"||a instanceof Number};})();(function(){var b={};a._mixin=function(a,c){var d,e,f=0;for(d in c)e=c[d],e!==b[d]&&e!==a[d]&&(a[d]=e);return a},a.mixin=function(b,c){b||(b={});for(var d=1,e=arguments.length;d<e;d++)a._mixin(b,arguments[d]);return b},a.safeMixin=function(b,c){var d,e,f=0,g=a._extraNames.length,h=Object.prototype,i=h.toString,j="constructor";for(d in c)e=c[d],(e!==h[d]||!(d in h))&&d!=j&&(i.call(e)=="[object Function]"&&(e.nom=d),b[d]=e);return b};})();(function(){a._getProp=function(b,c,d){var e=d||a.global;for(var f=0,g;e&&(g=b[f]);f++)e=g in e?e[g]:c?e[g]={}:undefined;return e},a.setObject=function(b,c,d){var e=b.split("."),f=e.pop(),g=a._getProp(e,!0,d);return g&&f?g[f]=c:undefined},a.getObject=function(b,c,d){return a._getProp(b.split("."),c,d)};})();(function(){a._hitchArgs=function(b,c){var d=a.toArray(arguments,2),e=a.isString(c);return function(){var f=a.toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},a.hitch=function(b,c){if(arguments.length>2)return a._hitchArgs.apply(a,arguments);c||(c=b,b=null);if(a.isString(c)){b=b||a.global;if(!b[c])throw['embed.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c};})();(function(){a.clone=function(b){if(!b||typeof b!="object"||a.isFunction(b))return b;if(b.nodeType&&"cloneNode"in b)return b.cloneNode(!0);if(b instanceof Date)return new Date(b.getTime());var c,d,e,f,g;if(a.isArray(b)){c=[];for(d=0,e=b.length;d<e;++d)d in b&&c.push(a.clone(b[d]))}else c=b.constructor?new b.constructor:{};var h={};for(g in b){f=b[g];if(!(g in c)||c[g]!==f&&(!(g in h)||h[g]!==f))c[g]=a.clone(f)}return c};})();(function(){a.toArray=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))};})();(function(){a.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=/\{([^\}]+)\}/g;a.replace=function(c,d,e){return c.replace(e||b,a.isFunction(d)?d:function(b,c){return a.getObject(c,!1,d)})};})();(function(){a.declare=function(b,c,d){var e=arguments.callee,f;a.isArray(c)&&(f=c,c=f.shift()),f&&a.forEach(f,function(a,d){if(!a)throw b+": mixin #"+d+" is null";c=e._delegate(c,a)});var g=e._delegate(c);d=d||{},g.extend(d),a.extend(g,{declaredClass:b,_constructor:d.constructor}),g.prototype.constructor=g;return a.setObject(b,g)},a.mixin(a.declare,{_delegate:function(b,c){var d=(b||0).prototype,e=(c||0).prototype,f=a.declare,g=f._makeCtor();a.mixin(g,{superclass:d,mixin:e,extend:f._extend}),b&&(g.prototype=a._delegate(d)),a.extend(g,f._core,e||0,{_constructor:null,preamble:null}),g.prototype.constructor=g,g.prototype.declaredClass=(d||0).declaredClass+"_"+(e||0).declaredClass;return g},_extend:function(b){var c,d;for(c in b)a.isFunction(d=b[c])&&!(0)[c]&&(d.nom=c,d.ctor=this);a.extend(this,b)},_makeCtor:function(){return function(){this._construct(arguments)}},_core:{_construct:function(a){var b=a.callee,c=b.superclass,d=c&&c.constructor,e=b.mixin,f=e&&e.constructor,g=a,h,i;if(g[0])if(i=g[0].preamble)g=i.apply(this,g)||g;if(i=b.prototype.preamble)g=i.apply(this,g)||g;d&&d.apply&&d.apply(this,g),f&&f.apply&&f.apply(this,g),(h=b.prototype._constructor)&&h.apply(this,a),this.constructor.prototype==b.prototype&&(d=this.postscript)&&d.apply(this,a)},_findMixin:function(a){var b=this.constructor,c,d;while(b){c=b.superclass,d=b.mixin;if(d==a||d instanceof a.constructor)return c;if(d&&d._findMixin&&(d=d._findMixin(a)))return d;b=c&&c.constructor}},_findMethod:function(a,b,c,d){var e=c,f,g,h;do{f=e.constructor,g=f.mixin;if(g&&(g=this._findMethod(a,b,g,d)))return g;if((h=e[a])&&d==(h==b))return e;e=f.superclass}while(e);return!d&&(e=this._findMixin(c))&&this._findMethod(a,b,e,d)},inherited:function(a,b,c){var d=arguments;typeof d[0]!="string"&&(c=b,b=a,a=b.callee.nom),d=c||b;var e=b.callee,f=this.constructor.prototype,g,h;if(this[a]!=e||f[a]==e){h=(e.ctor||0).superclass||this._findMethod(a,e,f,!0);if(!h)throw this.declaredClass+': inherited method "'+a+'" mismatch';f=this._findMethod(a,e,h,!1)}g=f&&f[a];if(!g)throw h.declaredClass+': inherited method "'+a+'" not found';return g.apply(this,d)}}});})();(function(){a.delegate=a._delegate=function(){function a(){}return function(b,c){a.prototype=b;var d=new a;a.prototype=null,c&&dojo._mixin(d,c);return d}}();})();(function(){a.extend=function(b,c){for(var d=1,e=arguments.length;d<e;d++)a._mixin(b.prototype,arguments[d]);return b};})();(function(){var b=function(b,c,d){return[typeof b=="string"?b.split(""):b,c||a.global,typeof d=="string"?new Function("item","index","array",d):d]},c=function(a,c,d,e){var f=b(c,e,d);c=f[0];for(var g=0,h=c.length;g<h;++g){var i=!!f[2].call(f[1],c[g],g,c);if(a^i)return i}return a};a.mixin(a,{indexOf:function(a,b,c,d){var e=1,f=a.length||0,g=0;d&&(g=f-1,e=f=-1),c!=undefined&&(g=c);if(d&&g>f||g<f)for(;g!=f;g+=e)if(a[g]==b)return g;return-1},lastIndexOf:function(b,c,d){return a.indexOf(b,c,d,!0)},forEach:function(a,c,d){if(a&&a.length){var e=b(a,d,c);a=e[0];for(var f=0,g=a.length;f<g;++f)e[2].call(e[1],a[f],f,a)}},every:function(a,b,d){return c(!0,a,b,d)},some:function(a,b,d){return c(!1,a,b,d)},map:function(a,c,d){var e=b(a,d,c);a=e[0];var f=arguments[3]?new arguments[3]:[];for(var g=0,h=a.length;g<h;++g)f.push(e[2].call(e[1],a[g],g,a));return f},filter:function(a,c,d){var e=b(a,d,c);a=e[0];var f=[];for(var g=0,h=a.length;g<h;++g)e[2].call(e[1],a[g],g,a)&&f.push(a[g]);return f}});})();(function(){a._listener={getDispatcher:function(){return function(){var a=Array.prototype,b=arguments.callee,c=b._listeners,d=b.target,e=d&&d.apply(this,arguments),f,g;g=[].concat(c);for(f in g)f in a||g[f].apply(this,arguments);return e}},add:function(b,c,d){b=b||a.global;var e=b[c];if(!e||!e._listeners){var f=a._listener.getDispatcher();f.target=e,f._listeners=[],e=b[c]=f}return e._listeners.push(d)},remove:function(b,c,d){var e=(b||a.global)[c];e&&e._listeners&&d--&&delete e._listeners[d]}},a.connect=a.on=function(b,c,d,e,f){var g=arguments,h=[],i=0;h.push(a.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(a.isString(j)||a.isFunction(j)?g[i++]:null,g[i++]);for(var k=g.length;i<k;i++)h.push(g[i]);return a._connect.apply(this,h)},a._connect=function(b,c,d,e){var f=a._listener,g=f.add(b,c,a.hitch(d,e));return[b,c,g,f]},a.disconnect=function(b){b&&b[0]!==undefined&&(a._disconnect.apply(this,b),delete b[0])},a._disconnect=function(a,b,c,d){d.remove(a,b,c)};})();(function(){var b=a._event_listener={add:function(a,c,d){if(a){c=b._normalizeEventName(c),a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){a&&(c=b._normalizeEventName(c),a.removeEventListener(c,d,!1))},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a}};a.fixEvent=function(a,c){return b._fixEvent(a,c)},a.stopEvent=function(a){a.preventDefault(),a.stopPropagation()},a._connect=function(c,d,e,f,g){var h=c&&(c.nodeType||c.attachEvent||c.addEventListener),i=h?1:0,j=[a._listener,b][i],k=j.add(c,d,a.hitch(e,f));return[c,d,k,i]},a._disconnect=function(c,d,e,f){[a._listener,b][f].remove(c,d,e)};})();(function(){a._topics={},a.subscribe=function(b,c,d){return[b,a._listener.add(a._topics,b,a.hitch(c,d))]},a.unsubscribe=function(b){b&&a._listener.remove(a._topics,b[0],b[1])},a.publish=function(b,c){var d=a._topics[b];d&&d.apply(this,c||[])},a.connectPublisher=function(b,c,d){var e=function(){a.publish(b,arguments)};return d?a.connect(c,d,e):a.connect(c,e)};})();(function(){a.__mutator=function(){};var b=Object.freeze||function(){};a.Promise=function(c){function k(){var b;while(!b&&h){var c=h;h=h.next;if(b=c.progress==a.__mutator)e=!1;var g=f?c.error:c.resolved;if(g)try{var i=g(d);if(i&&typeof i.then==="function"){i.then(a.hitch(c.deferred,"resolve"),a.hitch(c.deferred,"reject"));continue}var j=b&&i===undefined;c.deferred[j&&f?"reject":"resolve"](j?d:i)}catch(k){c.deferred.reject(k)}else f?c.deferred.reject(d):c.deferred.resolve(d)}}function j(a){if(e)throw new Error("This deferred has already been resolved");d=a,e=!0,k()}var d,e,f,g,h,i=this.promise={};this.resolve=function(a){this.fired=0,this.results=[a,null],j(a)},this.reject=function(b){f=!0,this.fired=1,j(b),this.results=[null,b],(!b||b.log!==!1)&&(a.config.deferredOnError||function(a){console.error(a)})(b)},this.progress=function(a){var b=h;while(b){var c=b.progress;c&&c(a),b=b.next}},this.then=i.then=function(b,c,d){var f=d==a.__mutator?this:new a.Promise(i.cancel),j={resolved:b,error:c,progress:d,deferred:f};h?g=g.next=j:h=g=j,e&&k();return f.promise};var l=this;this.cancel=i.cancel=function(){if(!e){var a=c&&c(l);e||(a instanceof Error||(a=new Error(a)),a.log=!1,l.reject(a))}},b(i)};})();(function(){a.when=function(a,b,c,d){if(a&&typeof a.then==="function")return a.then(b,c,d);return b(a)};})();(function(){a.Deferred=a.Promise,a.extend(a.Deferred,{callback:function(a){this.resolve(a)},errback:function(a){this.reject(a)},addCallbacks:function(b,c){this.then(b,c,a.__mutator);return this},addCallback:function(b){return this.addCallbacks(a.hitch.apply(a,arguments))},addErrback:function(b){return this.addCallbacks(null,a.hitch.apply(a,arguments))},addBoth:function(b){var c=a.hitch.apply(a,arguments);return this.addCallbacks(c,c)},fired:-1});})();(function(){var b={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},d={innerHTML:1,className:1,htmlFor:0,value:1},e=function(a){return c[a.toLowerCase()]||a},f=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};a.hasAttr=function(e,g){var h=g.toLowerCase();return d[b[h]||g]||f(a.byId(e),c[h]||g)};var g={},h=0,i="_attrid",j={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};a.attr=function(e,j,k){e=a.byId(e);var l=arguments.length,m;if(l==2&&typeof j!="string"){for(var n in j)a.attr(e,n,j[n]);return e}var o=j.toLowerCase(),p=b[o]||j,q=d[p],r=c[o]||j;if(l==3){do{if(p=="style"&&typeof k!="string"){a.style(e,k);break}if(p=="innerHTML"){e[p]=k;break}if(a.isFunction(k)){var s=a.attr(e,i);s||(s=h++,a.attr(e,i,s)),g[s]||(g[s]={});var t=g[s][p];if(t)a.disconnect(t);else try{delete e[p]}catch(u){}g[s][p]=a.connect(e,p,k);break}if(q||typeof k=="boolean"){e[p]=k;break}e.setAttribute(r,k)}while(!1);return e}k=e[p];if(q&&typeof k!="undefined")return k;if(p!="href"&&(typeof k=="boolean"||a.isFunction(k)))return k;return f(e,r)?e.getAttribute(r):null},a.removeAttr=function(b,c){a.byId(b).removeAttribute(e(c))};})();(function(){a._docScroll=function(){var b=d.global;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=a.doc.documentElement,b.clientHeight?{x:b.scrollLeft,y:b.scrollTop}:(b=a.body(),{x:b.scrollLeft||0,y:b.scrollTop||0}))};var b=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)},c=function(a,b){var c=b.parentNode;c&&(c.lastChild==b?c.appendChild(a):c.insertBefore(a,b.nextSibling))};a.place=function(d,e,f){var g=a.byId;e=g(e),typeof d=="string"&&(d=d.charAt(0)=="<"?a.toDom(d,e.ownerDocument):g(d));if(typeof f=="number"){var h=e.childNodes;h.length&&h.length>f?b(d,h[f<0?0:f]):e.appendChild(d)}else switch(f){case"before":b(d,e);break;case"after":c(d,e);break;case"replace":e.parentNode.replaceChild(d,e);break;case"only":a.empty(e),e.appendChild(d);break;case"first":if(e.firstChild){b(d,e.firstChild);break};default:e.appendChild(d)}return d},a.create=function(b,c,d,e){var f=a.byId,g=a.doc;d&&(d=f(d),g=d.ownerDocument),typeof b=="string"&&(b=g.createElement(b));if(c)for(var h in c){var i=c[h];if(h=="style"&&typeof i!="string"){a.style(b,i);break}h=="class"?b.className=i:b[h]=i}d&&a.place(b,d,e);return b},a.empty=function(b){a.byId(b).innerHTML=""};})();(function(){var b={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"]},c=/<\s*([\w\:]+)/,d={},e=0,f="__"+a._scopeName+"ToDomId";for(var g in b){var h=b[g];h.pre=g=="option"?'<select multiple="multiple">':"<"+h.join("><")+">",h.post="</"+h.reverse().join("></")+">"}a._toDom=a.toDom=function(g,h){h=h||a.doc;var i=h[f];i||(h[f]=i=++e+"",d[i]=h.createElement("div")),g+="";var j=g.match(c),k=j?j[1].toLowerCase():"",l=d[i],m,n,o,p;if(j&&b[k]){m=b[k],l.innerHTML=m.pre+g+m.post;for(n=m.length;n;--n)l=l.firstChild}else l.innerHTML=g;if(l.childNodes.length==1)return l.removeChild(l.firstChild);p=h.createDocumentFragment();while(o=l.firstChild)p.appendChild(o);return p};})();(function(){a.hasClass=function(b,c){return(" "+a.byId(b).className+" ").indexOf(" "+c+" ")>=0},a.toggleClass=function(b,c,d){d===undefined&&(d=!a.hasClass(b,c)),a[d?"addClass":"removeClass"](b,c)};var b=/\s+/,c=function(c){if(typeof c=="string"||c instanceof String)return c.indexOf(" ")<0?[c]:a.trim(c).split(b);return c};a.addClass=function(b,d){b=a.byId(b),d=c(d);var e=" "+b.className+" ";for(var f=0,g=d.length,h;f<g;++f)h=d[f],h&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");b.className=a.trim(e)},a.removeClass=function(b,d){b=a.byId(b);var e;if(d!==undefined){d=c(d),e=" "+b.className+" ";for(var f=0,g=d.length;f<g;++f)e=e.replace(" "+d[f]+" "," ");e=a.trim(e)}else e="";b.className!=e&&(b.className=e)};})();(function(){a.getComputedStyle=function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},a.style=function(b,c,d){var e=a.byId(b),f=arguments.length;if(f==3)return e.style[c]=d;{if(f!=2)return a.getComputedStyle(e);if(typeof c=="string")return e.style[c];for(var g in c)e.style[g]=c[g]}};})();(function(){a._loaders=[],a._loadNotifying=!1,a._onto=function(a,b,c){if(c){if(c){var d=typeof c=="string"?b[c]:c;a.push(function(){d.call(b)})}}else a.push(b)},a.ready=a.addOnLoad=function(b,c){a._onto(a._loaders,b,c),(document.readyState==="complete"||a._postLoad&&!a._loadNotifying)&&a._callLoaded()},a._callLoaded=function(){setTimeout("embed.loaded();",0)},a.loaded=function(){a._loadNotifying=!0,a._postLoad=!0;var b=a._loaders;a._loaders=[];for(var c=0;c<b.length;c++)b[c]();a._loadNotifying=!1,a._postLoad&&b.length&&a._callLoaded()},a._initFired=!1,a._loadInit=function(){a._initFired||(a._initFired=!0,document.removeEventListener("DOMContentLoaded",a._loadInit,!1),a._callLoaded())},a.doc.addEventListener("DOMContentLoaded",a._loadInit,!1),a.global.addEventListener("load",a._loadInit,!1);})();(function(){a.byId=function(a,b){return typeof a=="string"?(b||document).getElementById(a):a};})();(function(){var b=null,c;a.destroy=function(d){d=a.byId(d);try{var e=d.ownerDocument;if(!b||c!=e)b=e.createElement("div"),c=e;b.appendChild(d.parentNode?d.parentNode.removeChild(d):d),b.innerHTML=""}catch(f){}};})();(function(){embed.fromJson=function(json){return eval("("+json+")")},embed._escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},embed.toJson=function(a){if(a===undefined)return"undefined";var b=typeof a;if(b=="number"||b=="boolean")return a+"";if(a===null)return"null";if(embed.isString(a))return embed._escapeString(a);var c=arguments.callee,d,e=a.__json__||a.json;if(embed.isFunction(e)){d=e.call(a);if(a!==d)return c(d)}if(a.nodeType&&a.cloneNode)throw new Error("Can't serialize DOM nodes");if(embed.isArray(a)){var f=embed.map(a,function(a){var b=c(a);typeof b!="string"&&(b="undefined");return b});return"["+f.join(",")+"]"}if(b=="function")return null;var g=[],h;for(h in a){var i,j;if(typeof h=="number")i='"'+h+'"';else if(typeof h=="string")i=embed._escapeString(h);else continue;j=c(a[h]);if(typeof j!="string")continue;g.push(i+":"+j)}return"{"+g.join(",")+"}"};})();(function(){var b=a.config;a._xhrObj=function(){return new XMLHttpRequest},a._isDocumentOk=function(a){var b=a.status||0,c=location.protocol;return b>=200&&b<300||b==304||b==1223||!b&&(c=="file:"||c=="chrome:"||c=="app:")},a._getText=function(b,c){var d=a._xhrObj();d.open("GET",b,!1);try{d.send(null);if(!a._isDocumentOk(d)){var e=Error("Unable to load "+b+" status:"+d.status);e.status=d.status,e.responseText=d.responseText;throw e}}catch(f){if(c)return null;throw f}return d.responseText},a._blockAsync=!1;var c=a._contentHandlers=a.contentHandlers={text:function(a){return a.responseText},json:function(b){return a.fromJson(b.responseText||null,!0)}};a._ioSetArgs=function(b,c,d,e){var f={args:b,url:b.url},g=[{}];b.content&&g.push(b.content),b.preventCache&&g.push({"embed.preventCache":(new Date).valueOf()}),f.query=a.objectToQuery(a.mixin.apply(null,g)),f.handleAs=b.handleAs||"text";var h=new a.Deferred(c);h.addCallbacks(d,function(a){return e(a,h)});var i=b.load;i&&a.isFunction(i)&&h.addCallback(function(a){return i.call(b,a,f)});var j=b.error;j&&a.isFunction(j)&&h.addErrback(function(a){return j.call(b,a,f)});var k=b.handle;k&&a.isFunction(k)&&h.addBoth(function(a){return k.call(b,a,f)}),h.ioArgs=f;return h};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c=="function"||c=="object"||c=="unknown")&&b.abort();var d=a.ioArgs.error;d||(d=new Error("xhr cancelled"),d.dojoType="cancel");return d},e=function(a){var b=c[a.ioArgs.handleAs](a.ioArgs.xhr);return b===undefined?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0)},k=function(){var b=(new Date).getTime();if(!a._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var e=d.dfd,f=function(){if(e&&!e.canceled&&d.validCheck(e)){if(d.ioCheck(e))h.splice(c--,1),d.resHandle(e),i-=1;else if(e.startTime)if(e.startTime+(e.ioArgs.args.timeout||0)<b){h.splice(c--,1);var a=new Error("timeout exceeded");a.embedType="timeout",e.errback(a),e.cancel(),i-=1}}else h.splice(c--,1),i-=1};if(a.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};a._ioCancelAll=function(){try{a.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(b){}},a._ioNotifyStart=function(a){},a._ioWatch=function(a,b,c,d){var e=a.ioArgs.args;e.timeout&&(a.startTime=(new Date).getTime()),h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d}),g||(g=setInterval(k,50)),e.sync&&k()};var l="application/x-www-form-urlencoded",m=function(a){return a.ioArgs.xhr.readyState},n=function(a){return 4==a.ioArgs.xhr.readyState},o=function(b){var c=b.ioArgs.xhr;if(a._isDocumentOk(c))b.callback(b);else{var d=new Error("Unable to load "+b.ioArgs.url+" status:"+c.status);d.status=c.status,d.responseText=c.responseText,b.errback(d)}};a._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null)},a.xhr=function(b,c,g){var h=a._ioSetArgs(c,d,e,f),i=h.ioArgs,j=i.xhr=a._xhrObj(i.args);if(!j){h.cancel();return h}"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>2&&!g||"POST|PUT".indexOf(b.toUpperCase())==-1)&&a._ioAddQueryToUrl(i),j.open(b,i.url,c.sync!==!0,c.user||undefined,c.password||undefined);if(c.headers)for(var k in c.headers)k.toLowerCase()!=="content-type"||c.contentType?c.headers[k]&&j.setRequestHeader(k,c.headers[k]):c.contentType=c.headers[k];j.setRequestHeader("Content-Type",c.contentType||l),(!c.headers||!("X-Requested-With"in c.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.overrideMimeType&&j.overrideMimeType&&j.overrideMimeType(c.overrideMimeType),a._ioNotifyStart(h);if(a.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(p){i.error=p,h.cancel()}a._ioWatch(h,m,n,o),j=null;return h},a.xhrGet=function(b){return a.xhr("GET",b)},a.rawXhrPost=a.xhrPost=function(b){return a.xhr("POST",b,!0)},a.rawXhrPut=a.xhrPut=function(b){return a.xhr("PUT",b,!0)},a.xhrDelete=function(b){return a.xhr("DELETE",b)};})();(function(){a.attachScript=function(b){var c=a.doc,d=c.createElement("script");d.type="text/javascript",d.src=b.url,d.charset="utf-8";return c.getElementsByTagName("head")[0].appendChild(d)};})();(function(){var b=0,c={};a.jsonp=function(d){if(!d.url)throw new Error("embed.jsonp: No URL specified.");if(!d.jsonp)throw new Error("embed.jsonp: No callback param specified.");b++;var e="jsonp_callback_"+b,f=d.timeout||3e3;c[b]=setTimeout(function(){a.jsonp[e]=function(){},clearTimeout(c[b]),d.error&&d.error(null,{}),d.handle&&d.handle(null,{})},f),d.url+="?"+d.jsonp+"=embed.jsonp."+e,a.jsonp[e]=function(a){clearTimeout(c[b]);try{d.load&&d.load(a,{})}catch(e){d.error&&d.error(null,{})}d.handle&&d.handle(a,{})},d.content&&(d.url+="&"+a.objectToQuery(d.content));return a.attachScript(d)};})();(function(){var b={trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array},c=navigator,d=c.userAgent,e=c.appVersion,f=parseFloat(e);b.isOpera=d.indexOf("Opera")>=0?f:undefined,b.isKhtml=e.indexOf("Konqueror")>=0?f:undefined,b.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined,b.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;var g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0);if(g&&!b.isChrome){b.isSafari=parseFloat(e.split("Version/")[1]);if(!b.isSafari||parseFloat(e.substr(g+7))<=419.3)b.isSafari=2}document.all&&!b.isOpera&&(b.isIE=parseFloat(e.split("MSIE ")[1])||undefined),Array._wrap=function(a){return a},function(a){var b=a.trim,c=a.forEach,d=a._NodeListCtor=a.NodeList,e=function(){return a.doc},f=(a.isWebKit||a.isMozilla)&&e().compatMode=="BackCompat",g=!e().firstChild.children?"childNodes":"children",h=">~+",i=!1,j=function(){return!0},k=function(a){h.indexOf(a.slice(-1))<0?a+=" ":a+=" * ";var c=function(c,d){return b(a.slice(c,d))},d=[],e=-1,f=-1,g=-1,j=-1,k=-1,l=-1,m=-1,n="",o="",p,q=0,r=a.length,s=null,t=null,u=function(){if(m>=0){var a=m==q?null:c(m,q);s[h.indexOf(a)<0?"tag":"oper"]=a,m=-1}},v=function(){l>=0&&(s.id=c(l,q).replace(/\\/g,""),l=-1)},w=function(){k>=0&&(s.classes.push(c(k+1,q).replace(/\\/g,"")),k=-1)},x=function(){v(),u(),w()},y=function(){x(),j>=0&&s.pseudos.push({name:c(j+1,q)}),s.loops=s.pseudos.length||s.attrs.length||s.classes.length,s.oquery=s.query=c(p,q),s.otag=s.tag=s.oper?null:s.tag||"*",s.tag&&(s.tag=s.tag.toUpperCase()),d.length&&d[d.length-1].oper&&(s.infixOper=d.pop(),s.query=s.infixOper.query+" "+s.query),d.push(s),s=null};for(;n=o,o=a.charAt(q),q<r;q++){if(n=="\\")continue;s||(p=q,s={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=q);if(e<0)f<0?o=="#"?(x(),l=q+1):o=="."?(x(),k=q):o==":"?(x(),j=q):o=="["?(x(),e=q,t={}):o=="("?(j>=0&&(t={name:c(j+1,q),value:null},s.pseudos.push(t)),f=q):o==" "&&n!=o&&y():o==")"&&(j>=0&&(t.value=c(f+1,q)),j=f=-1);else if(o=="]"){t.attr?t.matchFor=c(g||e+1,q):t.attr=c(e+1,q);var z=t.matchFor;if(z)if(z.charAt(0)=='"'||z.charAt(0)=="'")t.matchFor=z.slice(1,-1);s.attrs.push(t),t=null,e=g=-1}else if(o=="="){var A="|~^$*".indexOf(n)>=0?n:"";t.type=A+o,t.attr=c(e+1,q-A.length),g=q+1}}return d},l=function(a,b){if(!a)return b;if(!b)return a;return function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o="",p=function(a,b){if(!a)return o;if(b=="class")return a.className||o;if(b=="for")return a.htmlFor||o;if(b=="style")return a.style.cssText||o;return(i?a.getAttribute(b):a.getAttribute(b,2))||o},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,a).indexOf(b)==0}},"$=":function(a,b){var c=" "+b;return function(c){var d=" "+p(c,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){var d=" "+p(b,a)+" ";return d.indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){var e=" "+p(d,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof e().firstChild.nextElementSibling=="undefined",s=r?"nextSibling":"nextElementSibling",t=r?"previousSibling":"previousElementSibling",u=r?n:j,v=function(a){while(a=a[t])if(u(a))return!1;return!0},w=function(a){while(a=a[s])if(u(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[g],e=a._i||-1,f=b._l||-1;if(!d)return-1;var h=d.length;if(f==h&&e>=0&&f>=0)return e;b._l=h,e=-1;for(var i=b.firstElementChild||b.firstChild;i;i=i[s])u(i)&&(i._i=++c,a===i&&(e=c));return e},y=function(a){return!(x(a)%2)},z=function(a){return x(a)%2},A={checked:function(a,b){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(a,b){return function(a){if(!v(a))return!1;if(!w(a))return!1;return!0}},empty:function(a,b){return function(a){var b=a.childNodes,c=a.childNodes.length;for(var d=c-1;d>=0;d--){var e=b[d].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],d={el:1};c.tag!="*"&&(d.tag=1),c.classes.length||(d.classes=1);var e=C(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;if(b=="even")return y;if(b.indexOf("n")!=-1){var d=b.split("n",2),e=d[0]?d[0]=="-"?-1:c(d[0]):1,f=d[1]?c(d[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f=f%e):e<0&&(e*=-1,f>0&&(h=f,f=f%e));if(e>0)return function(a){var b=x(a);return b>=g&&(h<0||b<=h)&&b%e==f};b=f}var i=c(b);return function(a){return x(a)==i}}},B=a.isIE?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},C=function(a,b){if(!a)return j;b=b||{};var d=null;"el"in b||(d=l(d,n)),"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()})),"classes"in b||c(a.classes,function(a,b,c){var e=new RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return e.test(a.className)}),d.count=b}),"pseudos"in b||c(a.pseudos,function(a){var b=a.name;A[b]&&(d=l(d,A[b](b,a.value)))}),"attrs"in b||c(a.attrs,function(a){var b,c=a.attr;a.type&&q[a.type]?b=q[a.type](c,a.matchFor):c.length&&(b=B(c)),b&&(d=l(d,b))}),"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id})),d||("default"in b||(d=j));return d},D=function(a){return function(b,c,d){while(b=b[s]){if(r&&!n(b))continue;(!d||Y(b,d))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,d){var e=b[s];while(e){if(u(e)){if(d&&!Y(e,d))break;a(e)&&c.push(e)}e=e[s]}return c}},F=function(a){a=a||j;return function(b,c,d){var e,f=0,h=b[g];while(e=h[f++])u(e)&&(!d||Y(e,d))&&a(e,f)&&c.push(e);return c}},G=function(a,b){var c=a.parentNode;while(c){if(c==b)break;c=c.parentNode}return!!c},H={},I=function(b){var c=H[b.query];if(c)return c;var d=b.infixOper,g=d?d.oper:"",h=C(b,{el:1}),i=b.tag,k="*"==i,l=e().getElementsByClassName;if(g){var o={el:1};k&&(o.tag=1),h=C(b,o),"+"==g?c=D(h):"~"==g?c=E(h):">"==g&&(c=F(h))}else if(b.id)h=!b.loops&&k?j:C(b,{el:1,id:1}),c=function(c,d){var e=a.byId(b.id,c.ownerDocument||c);if(e&&h(e)){if(9==c.nodeType)return m(e,d);if(G(e,c))return m(e,d)}};else if(l&&/\{\s*\[native code\]\s*\}/.test(String(l))&&b.classes.length&&!f){h=C(b,{el:1,classes:1,id:1});var n=b.classes.join(" ");c=function(a,b,c){var d=m(0,b),e,f=0,g=a.getElementsByClassName(n);while(e=g[f++])h(e,a)&&Y(e,c)&&d.push(e);return d}}else k||b.loops?(h=C(b,{el:1,tag:1,id:1}),c=function(a,c,d){var e=m(0,c),f,g=0,i=a.getElementsByTagName(b.getTag());while(f=i[g++])h(f,a)&&Y(f,d)&&e.push(f);return e}):c=function(a,c,d){var e=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());while(f=h[g++])Y(f,d)&&e.push(f);return e};return H[b.query]=c},J=function(a,b){var c=m(a),d,e,f,g=b.length,h,i;for(var j=0;j<g;j++){i=[],d=b[j],e=c.length-1,e>0&&(h={},i.nozip=!0);var k=I(d);for(var l=0;f=c[l];l++)k(f,i,h);if(!i.length)break;c=i}return i},K={},L={},M=function(a){var c=k(b(a));if(c.length==1){var e=I(c[0]);return function(a){var b=e(a,new d);b&&(b.nozip=!0);return b}}return function(a){return J(a,c)}},N=navigator.userAgent,O="WebKit/",P=a.isWebKit&&N.indexOf(O)>0&&parseFloat(N.split(O)[1])>528,Q=a.isIE?"commentStrip":"nozip",R="querySelectorAll",S=!!e()[R]&&(!a.isSafari||a.isSafari>3.1||P),T=/n\+\d|([^ ])?([>~+])([^ =])?/g,U=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},V=function(b,c){b=b.replace(T,U);if(S){var d=L[b];if(d&&!c)return d}var e=K[b];if(e)return e;var g=b.charAt(0),i=-1==b.indexOf(" ");b.indexOf("#")>=0&&i&&(c=!0);var j=S&&!c&&h.indexOf(g)==-1&&(!a.isIE||b.indexOf(":")==-1)&&(!f||b.indexOf(".")<0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1;if(j){var k=h.indexOf(b.charAt(b.length-1))>=0?b+" *":b;return L[b]=function(a){try{if(9!=a.nodeType&&!i)throw"";var c=a[R](k);c[Q]=!0;return c}catch(d){return V(b,!0)(a)}}}var l=b.split(/\s*,\s*/);return K[b]=l.length<2?M(b):function(a){var b=0,c=[],d;while(d=l[b++])c=c.concat(M(d)(a));return c}},W=0,X=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++W)||W:a.uniqueID}:function(a){return a._uid||(a._uid=++W)},Y=function(a,b){if(!b)return 1;var c=X(a);if(!b[c])return b[c]=1;return 0},Z="_zipIdx",$=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<2)return c;W++;if(a.isIE&&i){var e=W+"";b[0].setAttribute(Z,e);for(var f=1,g;g=b[f];f++)b[f].getAttribute(Z)!=e&&c.push(g),g.setAttribute(Z,e)}else if(a.isIE&&b.commentStrip)try{for(var f=1,g;g=b[f];f++)n(g)&&c.push(g)}catch(h){}else{b[0]&&(b[0][Z]=W);for(var f=1,g;g=b[f];f++)b[f][Z]!=W&&c.push(g),g[Z]=W}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"){c=a.byId(c);if(!c)return new d}c=c||e();var f=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||f.toString()=="[object XMLDocument]")||!!f&&(a.isIE?f.xml:c.xmlVersion||f.xmlVersion);var g=V(b)(c);if(g&&g.nozip&&!d._wrap)return g;return $(g)},a.query.pseudos=A,a._filterQueryResult=function(b,c){var d=new a._NodeListCtor,e=C(k(c)[0]);for(var f=0,g;g=b[f];f++)e(g)&&d.push(g);return d}}(b),a.query=a._query=b.query;})();(function(){function e(d){a.forEach(["attr","addClass","connect","removeAttr","removeClass","style","toggleClass","place"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(null);for(var e=0,f=this.length;e<f;e++)d[0]=this[e],a[c].apply(a,d);return this}},d),a.forEach(["forEach","map","some","every","filter"],function(c){this[c]=function(){var d=b.call(arguments);d.unshift(this);var e=a[c].apply(a,d);if(e&&"length"in Object(e))return new a.ChainableNodeArray(e);return e}},d),d.query=function(d){var f=[];a.forEach(this,function(e){c.apply(f,b.call(a.query(d,e)))}),e(f);return f}}var b=[].slice,c=[].push,d=a.query;a.query=function(b,c){return new a.ChainableNodeArray(d.apply(a,arguments))},a.ChainableNodeArray=function(a){var c=b.call(a);e(c);return c};})();(function(){a.objectToQuery=function(b){var c=encodeURIComponent,d=[],e={};for(var f in b){var g=b[f];if(g!=e[f]){var h=c(f)+"=";if(a.isArray(g))for(var i=0;i<g.length;i++)d.push(h+c(g[i]));else d.push(h+c(g))}}return d.join("&")};})();(function(){a.global.embed=a;})();})();

0 comments on commit bc20811

Please sign in to comment.
Something went wrong with that request. Please try again.