var __hasProp={}.hasOwnProperty,__extends=function(e,t){function r(){this.constructor=e}for(var n in t)__hasProp.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};define(["environ","mediator","channels","underscore","backbone"],function(e,t,n,r,i){var s,o;return s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return __extends(t,e),t.prototype.defaults={xAxis:null,yAxis:null,series:null,expanded:!1},t.prototype.sync=function(e,t,n){},t}(i.Model),o=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return __extends(i,e),i.prototype.model=s,i.prototype.comparator=function(e){return e.get("order")},i.prototype.initialize=function(){var e,s=this;return i.__super__.initialize.apply(this,arguments),e=r.template(n.SESSION_LOAD,{key:"distributions"}),t.subscribe(e,function(e){return s.add(e,{silent:!0}),s.resolve()}),this.on("all",r.debounce(function(){return t.publish(n.SESSION_SET,"distributions",s.toJSON())}))},i.prototype.sync=function(e,t,n){},i}(i.Collection),{Distribution:s,Distributions:o}})