System.register([],(function(t){"use strict";return{execute:function(){var n=function(){function t(){this.errors={};this.loading=false;this.errorsAdded=new CustomEvent("errorsAdded")}t.prototype.setLoading=function(t){this.loading=t};t.prototype.get=function(t){if(this.errors[t]===undefined){return[]}if(typeof this.errors[t]==="string"){return[this.errors[t]]}return this.errors[t]||[]};t.prototype.remove=function(t){var n=this;if(Array.isArray(t)){t.forEach((function(t){delete n.errors[t]}))}else{delete this.errors[t]}};t.prototype.fill=function(t){this.errors=t||{};document.dispatchEvent(this.errorsAdded)};t.prototype.all=function(){return this.errors};t.prototype.clear=function(){this.errors={}};t.create=function(){var n=new t;return Object.assign((function(t){return n.fill(t)}),{setLoading:function(t){return n.setLoading(t)},get:function(t){return n.get(t)},remove:function(t){return n.remove(t)},fill:function(t){return n.fill(t)},all:function(){return n.all()},clear:function(){return n.clear()}})};return t}();var e=t("E",n.create())}}}));