var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var a=0,n=e.length,i;a<n;a++){if(i||!(a in e)){if(!i)i=Array.prototype.slice.call(e,0,a);i[a]=e[a]}}return t.concat(i||Array.prototype.slice.call(e))};System.register(["./p-cb044807.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.D}],execute:function(){var r=function(){function t(r,a,n,i){var s=this;if(n===void 0){n=false}this.beforeFetch=function(){return new t(s.data,s.meta,true,undefined)};this.afterFetch=function(r,a){if(a===void 0){a=true}var n;var i=s.data&&a?__spreadArray(__spreadArray([],s.data,true),e.decodeList(r.results),true):e.decodeList(r.results);var u=s.meta;if((n=r.meta)===null||n===void 0?void 0:n.total){u=r.meta}else if(!u&&r.results.length===0){u={total:i.length}}return new t(i,u,false,undefined)};this.afterFetchError=function(e){return new t(s.data,s.meta,false,e)};this.afterUpdateItem=function(e,r){return new t(s.data?__spreadArray([],s.data,true).map((function(t){if(t._id===e){return Object.assign(Object.assign({},t),r)}return t})):s.data,s.meta,false,undefined)};this.isEndReached=function(){return s.data&&s.meta?s.data.length>=s.meta.total:false};this.data=r;this.error=i;this.isPending=n;this.meta=a}return t}();t("L",r);r.init=function(){return new r}}}}));