(function(){var e=function(e){var t=this;e.require().script("mvc/dom.cookie","mvc/model.list").done(function(){var n=function(){e.Model.List("Foundry/2.1.Model.List.Cookie",{days:null,retrieve:function(t){var n=e.cookie(t)||{type:null,ids:[]},r=[],i=n.type?e.String.getObject(n.type):null;for(var s=0;s<n.ids.length;s++){var o=n.ids[s],u=e.cookie(o);r.push(new i(u))}return this.push.apply(this,r),this},store:function(t){var n=[],r=this.days;return this.each(function(t,i){e.cookie(i.identity(),e.toJSON(i.attrs()),{expires:r}),n.push(i.identity())}),e.cookie(t,e.toJSON({type:this[0]&&this[0].constructor.fullName,ids:n}),{expires:this.days}),this}})};n(),t.resolveWith(n)})};dispatch("mvc/model.list.cookie").containing(e).to("Foundry/2.1 Modules")})();