window.require=function(){};window.store=require("store");(function(f){function h(b){var a={};$.extend(a,window.store);a.get=function(d){if(!b[d]){b[d]={}}if(b[d].version){var c=store.get("_"+d+"-version");if(!c||parseFloat(b[d].version)!==parseFloat(c)){return undefined}}if(b[d].expire){return storeWithExpiration.get(d)}return store.get(d)};a.set=function(d,c){if(!b[d]){b[d]={}}if(b[d].version){store.set("_"+d+"-version",b[d].version)}if(b[d].expire){return storeWithExpiration.set(d,c,b[d].expire)}return store.set(d,c)};a.remove=function(c){store.remove("_"+c+"-version");return store.remove(c)};return a}var j={},i={inject:function(b,a){if(f.DM_ENV[b]){f[b]=f[b]||{};a=a||j[b]||f[b];for(var c in f.DM_ENV[b]){if(f.DM_ENV[b].hasOwnProperty(c)){a[c]=f.DM_ENV[b][c]}}}}},g={define:function(a,c,d){var b=j[a]||f[a];if(b&&!b.__preModule){return}b=c();if(!b){return}i.inject(a,b);if(d){f[a]=b}else{j[a]=b}b.store=b.__localstorageConf?h(b.__localstorageConf):window.store;delete (b.__localstorageConf);b.__initialize&&b.__initialize();delete (b.__initialize);b.__onDomReady&&$(b.__onDomReady);delete (b.__onDomReady);delete (b.__preModule)},__debug:function(a){return j[a]||f[a]||null}};PubSub.subscribe("envs:added",function(a){i.inject(a)});f._DM=g})(window);_DM.define("DM_DispatchEvent",function(){var b={dispatch:function(i,j,h){var g={bubbles:false,cancelable:false,detail:h},a;if(typeof CustomEvent=="function"){a=new CustomEvent(j,g)}else{if(document.createEvent){a=document.createEvent("CustomEvent");a.initCustomEvent(j,g.bubbles,g.cancelable,g.detail)}else{a=document.createEventObject();a.eventType=j;event.detail=g.detail}}if(i.dispatchEvent){i.dispatchEvent(a)}else{if(i.fireEvent){i.fireEvent("on"+j,a)}}}};return b},true);