diff --git a/bower.json b/bower.json index 1134b55..7ce38fd 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "json-api-store", - "version": "0.4.0", + "version": "0.4.1", "homepage": "https://github.com/haydn/json-api-store", "authors": [ "Haydn Ewers " diff --git a/dist/store.js b/dist/store.js index 13051b3..4567218 100644 --- a/dist/store.js +++ b/dist/store.js @@ -1 +1 @@ -(function(global,factory){if(typeof define === "function" && define.amd){define("Store",["exports","module","array.prototype.find"],factory);}else if(typeof exports !== "undefined" && typeof module !== "undefined"){factory(exports,module,require("array.prototype.find"));}else {var mod={exports:{}};factory(mod.exports,mod,global.arrayPrototype);global.Store = mod.exports;}})(this,function(exports,module,_arrayPrototypeFind){"use strict";var _createClass=(function(){function defineProperties(target,props){for(var i=0;i < props.length;i++) {var descriptor=props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if("value" in descriptor)descriptor.writable = true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};})();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}var Store=(function(){_createClass(Store,null,[{key:"attr",value:function attr(name,options){if(name && typeof name === 'object'){return Store.attr(null,name);}else {return {type:"attr","default":options && options["default"],deserialize:function deserialize(data,key){return data.attributes && data.attributes[name || key];}};}}},{key:"hasOne",value:function hasOne(name,options){if(name && typeof name === 'object'){return Store.hasOne(null,name);}else {return {type:"has-one",inverse:options && options.inverse,deserialize:function deserialize(data,key){name = name || key;if(data.relationships && data.relationships[name]){if(data.relationships[name].data === null){return null;}else if(data.relationships[name].data){return this.find(data.relationships[name].data.type,data.relationships[name].data.id);}}}};}}},{key:"hasMany",value:function hasMany(name,options){if(name && typeof name === 'object'){return Store.hasMany(null,name);}else {return {type:"has-many","default":[],inverse:options && options.inverse,deserialize:function deserialize(data,key){var _this=this;name = name || key;if(data.relationships && data.relationships[name]){if(data.relationships[name].data === null){return [];}else if(data.relationships[name].data){return data.relationships[name].data.map(function(c){return _this.find(c.type,c.id);});}}}};}}}]);function Store(){_classCallCheck(this,Store);this._collectionListeners = {"added":{},"updated":{},"removed":{}};this._data = {};this._resourceListeners = {"added":{},"updated":{},"removed":{}};this._types = {};}_createClass(Store,[{key:"add",value:function add(object){var _this2=this;if(object){if(object.type && object.id){(function(){var event=_this2._data[object.type] && _this2._data[object.type][object.id]?"updated":"added";var resource=_this2.find(object.type,object.id);var definition=_this2._types[object.type];Object.keys(definition).forEach(function(fieldName){if(fieldName[0] !== "_"){_this2._addField(object,resource,definition,fieldName);}});if(_this2._resourceListeners[event][object.type] && _this2._resourceListeners[event][object.type][object.id]){_this2._resourceListeners[event][object.type][object.id].forEach(function(x){return x[0].call(x[1],resource);});}if(_this2._collectionListeners[event][object.type]){_this2._collectionListeners[event][object.type].forEach(function(x){return x[0].call(x[1],resource);});}})();}else {throw new TypeError("The data must have a type and id");}}else {throw new TypeError("You must provide data to add");}}},{key:"define",value:function define(names,definition){var _this3=this;names = names.constructor === Array?names:[names];definition._names = names;names.forEach(function(name){if(!_this3._types[name]){_this3._types[name] = definition;}else {throw new Error("The type '" + name + "' has already been defined.");}});}},{key:"find",value:function find(type,id){var _this4=this;if(type){var _ret2=(function(){var definition=_this4._types[type];if(definition){if(!_this4._data[type]){(function(){var collection={};definition._names.forEach(function(t){return _this4._data[t] = collection;});})();}if(id){if(!_this4._data[type][id]){_this4._data[type][id] = {_dependents:[],type:type,id:id};Object.keys(definition).forEach(function(key){if(key[0] !== "_"){_this4._data[type][id][key] = definition[key]["default"];}});}return {v:_this4._data[type][id]};}else {return {v:Object.keys(_this4._data[type]).map(function(x){return _this4._data[type][x];})};}}else {throw new TypeError("Unknown type '" + type + "'");}})();if(typeof _ret2 === "object")return _ret2.v;}else {throw new TypeError("You must provide a type");}}},{key:"off",value:function off(event,type,id,callback){if(this._resourceListeners[event] && this._collectionListeners[event]){if(this._types[type]){if(id && ({}).toString.call(id) === '[object Function]'){this.off.call(this,event,type,null,id,callback);}else {if(id){if(this._resourceListeners[event][type] && this._resourceListeners[event][type][id]){this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(function(x){return x[0] !== callback;});}}else if(this._collectionListeners[event][type]){this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(function(x){return x[0] !== callback;});}}}else {throw new Error("Unknown type '" + type + "'");}}else {throw new Error("Unknown event '" + event + "'");}}},{key:"on",value:function on(event,type,id,callback,context){if(this._resourceListeners[event] && this._collectionListeners[event]){if(this._types[type]){if(id && ({}).toString.call(id) === '[object Function]'){this.on.call(this,event,type,null,id,callback);}else {if(id){this._resourceListeners[event][type] = this._resourceListeners[event][type] || {};this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || [];this._resourceListeners[event][type][id].push([callback,context]);}else {this._collectionListeners[event][type] = this._collectionListeners[event][type] || [];this._collectionListeners[event][type].push([callback,context]);}}}else {throw new Error("Unknown type '" + type + "'");}}else {throw new Error("Unknown event '" + event + "'");}}},{key:"push",value:function push(root){var _this5=this;if(root.data.constructor === Array){root.data.forEach(function(x){return _this5.add(x);});}else {this.add(root.data);}if(root.included){root.included.forEach(function(x){return _this5.add(x);});}}},{key:"remove",value:function remove(type,id){var _this6=this;if(type){if(this._types[type]){if(id){(function(){var resource=_this6._data[type][id];if(resource){_this6._remove(resource);if(_this6._resourceListeners["removed"][type] && _this6._resourceListeners["removed"][type][id]){_this6._resourceListeners["removed"][type][id].forEach(function(x){return x[0].call(x[1],resource);});}if(_this6._collectionListeners["removed"][type]){_this6._collectionListeners["removed"][type].forEach(function(x){return x[0].call(x[1],resource);});}}})();}else {Object.keys(this._data[type]).forEach(function(id){return _this6.remove(type,id);});}}else {throw new TypeError("Unknown type '" + type + "'");}}else {throw new TypeError("You must provide a type to remove");}}},{key:"_addField",value:function _addField(object,resource,definition,fieldName){var _this7=this;var field=definition[fieldName];var newValue=field.deserialize.call(this,object,fieldName);if(typeof newValue !== "undefined"){if(field.type === "has-one"){if(resource[fieldName]){this._removeInverseRelationship(resource,fieldName,resource[fieldName],field);}if(newValue){this._addInverseRelationship(resource,fieldName,newValue,field);}}else if(field.type === "has-many"){resource[fieldName].forEach(function(r){if(resource[fieldName].indexOf(r) !== -1){_this7._removeInverseRelationship(resource,fieldName,r,field);}});newValue.forEach(function(r){_this7._addInverseRelationship(resource,fieldName,r,field);});}resource[fieldName] = newValue;}}},{key:"_addInverseRelationship",value:function _addInverseRelationship(sourceResource,sourceFieldName,targetResource,sourceField){var targetDefinition=this._types[targetResource.type];var sourceDefinition=this._types[sourceResource.type];if(targetDefinition){var targetFieldName=[sourceField.inverse].concat(sourceDefinition._names).find(function(x){return targetDefinition[x];});var targetField=targetDefinition && targetDefinition[targetFieldName];targetResource._dependents.push({type:sourceResource.type,id:sourceResource.id,fieldName:sourceFieldName});if(targetField){if(targetField.type === "has-one"){sourceResource._dependents.push({type:targetResource.type,id:targetResource.id,fieldName:targetFieldName});targetResource[targetFieldName] = sourceResource;}else if(targetField.type === "has-many"){sourceResource._dependents.push({type:targetResource.type,id:targetResource.id,fieldName:targetFieldName});if(targetResource[targetFieldName].indexOf(sourceResource) === -1){targetResource[targetFieldName].push(sourceResource);}}else if(targetField.type === "attr"){throw new Error("The the inverse relationship for '" + sourceFieldName + "' is an attribute ('" + targetFieldName + "')");}}else if(sourceField.inverse){throw new Error("The the inverse relationship for '" + sourceFieldName + "' is missing ('" + sourceField.inverse + "')");}}}},{key:"_remove",value:function _remove(resource){var _this8=this;resource._dependents.forEach(function(dependent){var dependentResource=_this8._data[dependent.type][dependent.id];switch(_this8._types[dependent.type][dependent.fieldName].type){case "has-one":{dependentResource[dependent.fieldName] = null;break;}case "has-many":{var index=dependentResource[dependent.fieldName].indexOf(resource);if(index !== -1){dependentResource[dependent.fieldName].splice(index,1);}break;}default:{break;}}dependentResource._dependents = dependentResource._dependents.filter(function(d){return !(d.type === resource.type && d.id === resource.id);});});delete this._data[resource.type][resource.id];}},{key:"_removeInverseRelationship",value:function _removeInverseRelationship(sourceResource,sourceFieldName,targetResource,sourceField){var targetDefinition=this._types[targetResource.type];var targetFieldName=sourceField.inverse || sourceResource.type;var targetField=targetDefinition && targetDefinition[targetFieldName];targetResource._dependents = targetResource._dependents.filter(function(r){return !(r.type === sourceResource.type && r.id === sourceResource.id && r.fieldName === sourceFieldName);});if(targetField){if(targetField.type === "has-one"){sourceResource._dependents = sourceResource._dependents.filter(function(r){return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);});targetResource[targetFieldName] = null;}else if(targetField.type === "has-many"){sourceResource._dependents = sourceResource._dependents.filter(function(r){return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);});targetResource[targetFieldName] = targetResource[targetFieldName].filter(function(r){return r !== sourceResource;});}else if(targetField.type === "attr"){throw new Error("The the inverse relationship for '" + sourceFieldName + "' is an attribute ('" + targetFieldName + "')");}}else if(sourceField.inverse){throw new Error("The the inverse relationship for '" + sourceFieldName + "' is missing ('" + sourceField.inverse + "')");}}}]);return Store;})();module.exports = Store;}); +(function(global,factory){if(typeof define === "function" && define.amd){define("Store",["exports","module","array.prototype.find"],factory);}else if(typeof exports !== "undefined" && typeof module !== "undefined"){factory(exports,module,require("array.prototype.find"));}else {var mod={exports:{}};factory(mod.exports,mod,global.arrayPrototype);global.Store = mod.exports;}})(this,function(exports,module,_arrayPrototypeFind){"use strict";var _createClass=(function(){function defineProperties(target,props){for(var i=0;i < props.length;i++) {var descriptor=props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if("value" in descriptor)descriptor.writable = true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};})();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}var Store=(function(){_createClass(Store,null,[{key:"attr",value:function attr(name,options){if(name && typeof name === 'object'){return Store.attr(null,name);}else {return {type:"attr","default":options && options["default"],deserialize:function deserialize(data,key){return data.attributes && data.attributes[name || key];}};}}},{key:"hasOne",value:function hasOne(name,options){if(name && typeof name === 'object'){return Store.hasOne(null,name);}else {return {type:"has-one",inverse:options && options.inverse,deserialize:function deserialize(data,key){name = name || key;if(data.relationships && data.relationships[name]){if(data.relationships[name].data === null){return null;}else if(data.relationships[name].data){return this.find(data.relationships[name].data.type,data.relationships[name].data.id);}}}};}}},{key:"hasMany",value:function hasMany(name,options){if(name && typeof name === 'object'){return Store.hasMany(null,name);}else {return {type:"has-many","default":[],inverse:options && options.inverse,deserialize:function deserialize(data,key){var _this=this;name = name || key;if(data.relationships && data.relationships[name]){if(data.relationships[name].data === null){return [];}else if(data.relationships[name].data){return data.relationships[name].data.map(function(c){return _this.find(c.type,c.id);});}}}};}}}]);function Store(){_classCallCheck(this,Store);this._collectionListeners = {"added":{},"updated":{},"removed":{}};this._data = {};this._resourceListeners = {"added":{},"updated":{},"removed":{}};this._types = {};}_createClass(Store,[{key:"add",value:function add(object){var _this2=this;if(object){if(object.type && object.id){(function(){var event=_this2._data[object.type] && _this2._data[object.type][object.id]?"updated":"added";var resource=_this2.find(object.type,object.id);var definition=_this2._types[object.type];Object.keys(definition).forEach(function(fieldName){if(fieldName[0] !== "_"){_this2._addField(object,resource,definition,fieldName);}});if(_this2._resourceListeners[event][object.type] && _this2._resourceListeners[event][object.type][object.id]){_this2._resourceListeners[event][object.type][object.id].forEach(function(x){return x[0].call(x[1],resource);});}if(_this2._collectionListeners[event][object.type]){_this2._collectionListeners[event][object.type].forEach(function(x){return x[0].call(x[1],resource);});}})();}else {throw new TypeError("The data must have a type and id");}}else {throw new TypeError("You must provide data to add");}}},{key:"define",value:function define(names,definition){var _this3=this;names = names.constructor === Array?names:[names];definition._names = names;names.forEach(function(name){if(!_this3._types[name]){_this3._types[name] = definition;}else {throw new Error("The type '" + name + "' has already been defined.");}});}},{key:"find",value:function find(type,id){var _this4=this;if(type){var _ret2=(function(){var definition=_this4._types[type];if(definition){if(!_this4._data[type]){(function(){var collection={};definition._names.forEach(function(t){return _this4._data[t] = collection;});})();}if(id){if(!_this4._data[type][id]){_this4._data[type][id] = {_dependents:[],type:type,id:id};Object.keys(definition).forEach(function(key){if(key[0] !== "_"){_this4._data[type][id][key] = definition[key]["default"];}});}return {v:_this4._data[type][id]};}else {return {v:Object.keys(_this4._data[type]).map(function(x){return _this4._data[type][x];})};}}else {throw new TypeError("Unknown type '" + type + "'");}})();if(typeof _ret2 === "object")return _ret2.v;}else {throw new TypeError("You must provide a type");}}},{key:"off",value:function off(event,type,id,callback){var _this5=this;if(this._resourceListeners[event] && this._collectionListeners[event]){if(this._types[type]){if(id && ({}).toString.call(id) === '[object Function]'){this.off.call(this,event,type,null,id,callback);}else {this._types[type]._names.forEach(function(type){if(id){if(_this5._resourceListeners[event][type] && _this5._resourceListeners[event][type][id]){_this5._resourceListeners[event][type][id] = _this5._resourceListeners[event][type][id].filter(function(x){return x[0] !== callback;});}}else if(_this5._collectionListeners[event][type]){_this5._collectionListeners[event][type] = _this5._collectionListeners[event][type].filter(function(x){return x[0] !== callback;});}});}}else {throw new Error("Unknown type '" + type + "'");}}else {throw new Error("Unknown event '" + event + "'");}}},{key:"on",value:function on(event,type,id,callback,context){var _this6=this;if(this._resourceListeners[event] && this._collectionListeners[event]){if(this._types[type]){if(id && ({}).toString.call(id) === '[object Function]'){this.on.call(this,event,type,null,id,callback);}else {this._types[type]._names.forEach(function(type){if(id){_this6._resourceListeners[event][type] = _this6._resourceListeners[event][type] || {};_this6._resourceListeners[event][type][id] = _this6._resourceListeners[event][type][id] || [];if(!_this6._resourceListeners[event][type][id].find(function(x){return x[0] === callback;})){_this6._resourceListeners[event][type][id].push([callback,context]);}}else {_this6._collectionListeners[event][type] = _this6._collectionListeners[event][type] || [];if(!_this6._collectionListeners[event][type].find(function(x){return x[0] === callback;})){_this6._collectionListeners[event][type].push([callback,context]);}}});}}else {throw new Error("Unknown type '" + type + "'");}}else {throw new Error("Unknown event '" + event + "'");}}},{key:"push",value:function push(root){var _this7=this;if(root.data.constructor === Array){root.data.forEach(function(x){return _this7.add(x);});}else {this.add(root.data);}if(root.included){root.included.forEach(function(x){return _this7.add(x);});}}},{key:"remove",value:function remove(type,id){var _this8=this;if(type){if(this._types[type]){if(id){(function(){var resource=_this8._data[type][id];if(resource){_this8._remove(resource);if(_this8._resourceListeners["removed"][type] && _this8._resourceListeners["removed"][type][id]){_this8._resourceListeners["removed"][type][id].forEach(function(x){return x[0].call(x[1],resource);});}if(_this8._collectionListeners["removed"][type]){_this8._collectionListeners["removed"][type].forEach(function(x){return x[0].call(x[1],resource);});}}})();}else {Object.keys(this._data[type]).forEach(function(id){return _this8.remove(type,id);});}}else {throw new TypeError("Unknown type '" + type + "'");}}else {throw new TypeError("You must provide a type to remove");}}},{key:"_addField",value:function _addField(object,resource,definition,fieldName){var _this9=this;var field=definition[fieldName];var newValue=field.deserialize.call(this,object,fieldName);if(typeof newValue !== "undefined"){if(field.type === "has-one"){if(resource[fieldName]){this._removeInverseRelationship(resource,fieldName,resource[fieldName],field);}if(newValue){this._addInverseRelationship(resource,fieldName,newValue,field);}}else if(field.type === "has-many"){resource[fieldName].forEach(function(r){if(resource[fieldName].indexOf(r) !== -1){_this9._removeInverseRelationship(resource,fieldName,r,field);}});newValue.forEach(function(r){_this9._addInverseRelationship(resource,fieldName,r,field);});}resource[fieldName] = newValue;}}},{key:"_addInverseRelationship",value:function _addInverseRelationship(sourceResource,sourceFieldName,targetResource,sourceField){var targetDefinition=this._types[targetResource.type];var sourceDefinition=this._types[sourceResource.type];if(targetDefinition){var targetFieldName=[sourceField.inverse].concat(sourceDefinition._names).find(function(x){return targetDefinition[x];});var targetField=targetDefinition && targetDefinition[targetFieldName];targetResource._dependents.push({type:sourceResource.type,id:sourceResource.id,fieldName:sourceFieldName});if(targetField){if(targetField.type === "has-one"){sourceResource._dependents.push({type:targetResource.type,id:targetResource.id,fieldName:targetFieldName});targetResource[targetFieldName] = sourceResource;}else if(targetField.type === "has-many"){sourceResource._dependents.push({type:targetResource.type,id:targetResource.id,fieldName:targetFieldName});if(targetResource[targetFieldName].indexOf(sourceResource) === -1){targetResource[targetFieldName].push(sourceResource);}}else if(targetField.type === "attr"){throw new Error("The the inverse relationship for '" + sourceFieldName + "' is an attribute ('" + targetFieldName + "')");}}else if(sourceField.inverse){throw new Error("The the inverse relationship for '" + sourceFieldName + "' is missing ('" + sourceField.inverse + "')");}}}},{key:"_remove",value:function _remove(resource){var _this10=this;resource._dependents.forEach(function(dependent){var dependentResource=_this10._data[dependent.type][dependent.id];switch(_this10._types[dependent.type][dependent.fieldName].type){case "has-one":{dependentResource[dependent.fieldName] = null;break;}case "has-many":{var index=dependentResource[dependent.fieldName].indexOf(resource);if(index !== -1){dependentResource[dependent.fieldName].splice(index,1);}break;}default:{break;}}dependentResource._dependents = dependentResource._dependents.filter(function(d){return !(d.type === resource.type && d.id === resource.id);});});delete this._data[resource.type][resource.id];}},{key:"_removeInverseRelationship",value:function _removeInverseRelationship(sourceResource,sourceFieldName,targetResource,sourceField){var targetDefinition=this._types[targetResource.type];var targetFieldName=sourceField.inverse || sourceResource.type;var targetField=targetDefinition && targetDefinition[targetFieldName];targetResource._dependents = targetResource._dependents.filter(function(r){return !(r.type === sourceResource.type && r.id === sourceResource.id && r.fieldName === sourceFieldName);});if(targetField){if(targetField.type === "has-one"){sourceResource._dependents = sourceResource._dependents.filter(function(r){return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);});targetResource[targetFieldName] = null;}else if(targetField.type === "has-many"){sourceResource._dependents = sourceResource._dependents.filter(function(r){return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);});targetResource[targetFieldName] = targetResource[targetFieldName].filter(function(r){return r !== sourceResource;});}else if(targetField.type === "attr"){throw new Error("The the inverse relationship for '" + sourceFieldName + "' is an attribute ('" + targetFieldName + "')");}}else if(sourceField.inverse){throw new Error("The the inverse relationship for '" + sourceFieldName + "' is missing ('" + sourceField.inverse + "')");}}}]);return Store;})();module.exports = Store;}); diff --git a/docs/ast/source/src/store.js.json b/docs/ast/source/src/store.js.json index 6c1dec2..7f50f93 100644 --- a/docs/ast/source/src/store.js.json +++ b/docs/ast/source/src/store.js.json @@ -14301,512 +14301,226 @@ "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { - "type": "Identifier", - "name": "id", - "range": [ - 7052, - 7054 - ], - "loc": { - "start": { - "line": 213, - "column": 14 - }, - "end": { - "line": 213, - "column": 16 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "&&", - "left": { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { "type": "MemberExpression", - "computed": true, + "computed": false, "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7074, - 7078 - ], - "loc": { - "start": { - "line": 214, - "column": 16 - }, - "end": { - "line": 214, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "name": "_resourceListeners", - "range": [ - 7079, - 7097 - ], - "loc": { - "start": { - "line": 214, - "column": 21 - }, - "end": { - "line": 214, - "column": 39 - } - } - }, - "range": [ - 7074, - 7097 - ], - "loc": { - "start": { - "line": 214, - "column": 16 - }, - "end": { - "line": 214, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 7098, - 7103 - ], - "loc": { - "start": { - "line": 214, - "column": 40 - }, - "end": { - "line": 214, - "column": 45 - } - } - }, + "type": "ThisExpression", "range": [ - 7074, - 7104 + 7168, + 7172 ], "loc": { "start": { "line": 214, - "column": 16 + "column": 10 }, "end": { "line": 214, - "column": 46 + "column": 14 } } }, "property": { "type": "Identifier", - "name": "type", + "name": "_types", "range": [ - 7105, - 7109 + 7173, + 7179 ], "loc": { "start": { "line": 214, - "column": 47 + "column": 15 }, "end": { "line": 214, - "column": 51 + "column": 21 } } }, "range": [ - 7074, - 7110 + 7168, + 7179 ], "loc": { "start": { "line": 214, - "column": 16 + "column": 10 }, "end": { "line": 214, - "column": 52 + "column": 21 } } }, - "right": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7114, - 7118 - ], - "loc": { - "start": { - "line": 214, - "column": 56 - }, - "end": { - "line": 214, - "column": 60 - } - } - }, - "property": { - "type": "Identifier", - "name": "_resourceListeners", - "range": [ - 7119, - 7137 - ], - "loc": { - "start": { - "line": 214, - "column": 61 - }, - "end": { - "line": 214, - "column": 79 - } - } - }, - "range": [ - 7114, - 7137 - ], - "loc": { - "start": { - "line": 214, - "column": 56 - }, - "end": { - "line": 214, - "column": 79 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 7138, - 7143 - ], - "loc": { - "start": { - "line": 214, - "column": 80 - }, - "end": { - "line": 214, - "column": 85 - } - } - }, - "range": [ - 7114, - 7144 - ], - "loc": { - "start": { - "line": 214, - "column": 56 - }, - "end": { - "line": 214, - "column": 86 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", - "range": [ - 7145, - 7149 - ], - "loc": { - "start": { - "line": 214, - "column": 87 - }, - "end": { - "line": 214, - "column": 91 - } - } - }, - "range": [ - 7114, - 7150 - ], - "loc": { - "start": { - "line": 214, - "column": 56 - }, - "end": { - "line": 214, - "column": 92 - } - } - }, - "property": { - "type": "Identifier", - "name": "id", - "range": [ - 7151, - 7153 - ], - "loc": { - "start": { - "line": 214, - "column": 93 - }, - "end": { - "line": 214, - "column": 95 - } - } - }, + "property": { + "type": "Identifier", + "name": "type", "range": [ - 7114, - 7154 + 7180, + 7184 ], "loc": { "start": { "line": 214, - "column": 56 + "column": 22 }, "end": { "line": 214, - "column": 96 + "column": 26 } } }, "range": [ - 7074, - 7154 + 7168, + 7185 ], "loc": { "start": { "line": 214, - "column": 16 + "column": 10 }, "end": { "line": 214, - "column": 96 + "column": 27 } } }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7172, - 7176 - ], - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "name": "_resourceListeners", - "range": [ - 7177, - 7195 - ], - "loc": { - "start": { - "line": 215, - "column": 19 - }, - "end": { - "line": 215, - "column": 37 - } - } - }, - "range": [ - 7172, - 7195 - ], - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 37 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 7196, - 7201 - ], - "loc": { - "start": { - "line": 215, - "column": 38 - }, - "end": { - "line": 215, - "column": 43 - } - } - }, - "range": [ - 7172, - 7202 - ], - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 44 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", - "range": [ - 7203, - 7207 - ], - "loc": { - "start": { - "line": 215, - "column": 45 - }, - "end": { - "line": 215, - "column": 49 - } - } - }, - "range": [ - 7172, - 7208 - ], - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "name": "id", - "range": [ - 7209, - 7211 - ], - "loc": { - "start": { - "line": 215, - "column": 51 - }, - "end": { - "line": 215, - "column": 53 - } - } + "property": { + "type": "Identifier", + "name": "_names", + "range": [ + 7186, + 7192 + ], + "loc": { + "start": { + "line": 214, + "column": 28 + }, + "end": { + "line": 214, + "column": 34 + } + } + }, + "range": [ + 7168, + 7192 + ], + "loc": { + "start": { + "line": 214, + "column": 10 + }, + "end": { + "line": 214, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "forEach", + "range": [ + 7193, + 7200 + ], + "loc": { + "start": { + "line": 214, + "column": 35 + }, + "end": { + "line": 214, + "column": 42 + } + } + }, + "range": [ + 7168, + 7200 + ], + "loc": { + "start": { + "line": 214, + "column": 10 + }, + "end": { + "line": 214, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "type", + "range": [ + 7201, + 7205 + ], + "loc": { + "start": { + "line": 214, + "column": 43 + }, + "end": { + "line": 214, + "column": 47 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "id", + "range": [ + 7227, + 7229 + ], + "loc": { + "start": { + "line": 215, + "column": 16 }, - "range": [ - 7172, - 7212 - ], - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 215, - "column": 54 - } + "end": { + "line": 215, + "column": 18 } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { "type": "MemberExpression", "computed": true, "object": { @@ -14818,17 +14532,17 @@ "object": { "type": "ThisExpression", "range": [ - 7215, - 7219 + 7251, + 7255 ], "loc": { "start": { - "line": 215, - "column": 57 + "line": 216, + "column": 18 }, "end": { - "line": 215, - "column": 61 + "line": 216, + "column": 22 } } }, @@ -14836,32 +14550,32 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 7220, - 7238 + 7256, + 7274 ], "loc": { "start": { - "line": 215, - "column": 62 + "line": 216, + "column": 23 }, "end": { - "line": 215, - "column": 80 + "line": 216, + "column": 41 } } }, "range": [ - 7215, - 7238 + 7251, + 7274 ], "loc": { "start": { - "line": 215, - "column": 57 + "line": 216, + "column": 18 }, "end": { - "line": 215, - "column": 80 + "line": 216, + "column": 41 } } }, @@ -14869,32 +14583,32 @@ "type": "Identifier", "name": "event", "range": [ - 7239, - 7244 + 7275, + 7280 ], "loc": { "start": { - "line": 215, - "column": 81 + "line": 216, + "column": 42 }, "end": { - "line": 215, - "column": 86 + "line": 216, + "column": 47 } } }, "range": [ - 7215, - 7245 + 7251, + 7281 ], "loc": { "start": { - "line": 215, - "column": 57 + "line": 216, + "column": 18 }, "end": { - "line": 215, - "column": 87 + "line": 216, + "column": 48 } } }, @@ -14902,629 +14616,844 @@ "type": "Identifier", "name": "type", "range": [ - 7246, - 7250 + 7282, + 7286 ], "loc": { "start": { - "line": 215, - "column": 88 + "line": 216, + "column": 49 }, "end": { - "line": 215, - "column": 92 + "line": 216, + "column": 53 } } }, "range": [ - 7215, - 7251 - ], - "loc": { - "start": { - "line": 215, - "column": 57 - }, - "end": { - "line": 215, - "column": 93 - } - } - }, - "property": { - "type": "Identifier", - "name": "id", - "range": [ - 7252, - 7254 + 7251, + 7287 ], "loc": { "start": { - "line": 215, - "column": 94 + "line": 216, + "column": 18 }, "end": { - "line": 215, - "column": 96 + "line": 216, + "column": 54 } } }, - "range": [ - 7215, - 7255 - ], - "loc": { - "start": { - "line": 215, - "column": 57 - }, - "end": { - "line": 215, - "column": 97 - } - } - }, - "property": { - "type": "Identifier", - "name": "filter", - "range": [ - 7256, - 7262 - ], - "loc": { - "start": { - "line": 215, - "column": 98 - }, - "end": { - "line": 215, - "column": 104 - } - } - }, - "range": [ - 7215, - 7262 - ], - "loc": { - "start": { - "line": 215, - "column": 57 - }, - "end": { - "line": 215, - "column": 104 - } - } - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "id": null, - "params": [ - { - "type": "Identifier", - "name": "x", - "range": [ - 7263, - 7264 - ], - "loc": { - "start": { - "line": 215, - "column": 105 - }, - "end": { - "line": 215, - "column": 106 - } - } - } - ], - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "BinaryExpression", - "operator": "!==", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "x", - "range": [ - 7293, - 7294 - ], - "loc": { - "start": { - "line": 216, - "column": 23 - }, - "end": { - "line": 216, - "column": 24 - } - } - }, - "property": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 7295, - 7296 - ], - "loc": { - "start": { - "line": 216, - "column": 25 - }, - "end": { - "line": 216, - "column": 26 - } - } - }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", "range": [ - 7293, - 7297 + 7291, + 7295 ], "loc": { "start": { "line": 216, - "column": 23 + "column": 58 }, "end": { "line": 216, - "column": 27 + "column": 62 } } }, - "right": { + "property": { "type": "Identifier", - "name": "callback", + "name": "_resourceListeners", "range": [ - 7302, - 7310 + 7296, + 7314 ], "loc": { "start": { "line": 216, - "column": 32 + "column": 63 }, "end": { "line": 216, - "column": 40 + "column": 81 } } }, "range": [ - 7293, - 7310 + 7291, + 7314 ], "loc": { "start": { "line": 216, - "column": 23 + "column": 58 }, "end": { "line": 216, - "column": 40 + "column": 81 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 7315, + 7320 + ], + "loc": { + "start": { + "line": 216, + "column": 82 + }, + "end": { + "line": 216, + "column": 87 } } }, "range": [ - 7286, - 7311 + 7291, + 7321 ], "loc": { "start": { "line": 216, - "column": 16 + "column": 58 }, "end": { "line": 216, - "column": 41 + "column": 88 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 7322, + 7326 + ], + "loc": { + "start": { + "line": 216, + "column": 89 + }, + "end": { + "line": 216, + "column": 93 } } + }, + "range": [ + 7291, + 7327 + ], + "loc": { + "start": { + "line": 216, + "column": 58 + }, + "end": { + "line": 216, + "column": 94 + } } - ], + }, + "property": { + "type": "Identifier", + "name": "id", + "range": [ + 7328, + 7330 + ], + "loc": { + "start": { + "line": 216, + "column": 95 + }, + "end": { + "line": 216, + "column": 97 + } + } + }, "range": [ - 7268, - 7327 + 7291, + 7331 ], "loc": { "start": { - "line": 215, - "column": 110 + "line": 216, + "column": 58 }, "end": { - "line": 217, - "column": 15 + "line": 216, + "column": 98 } } }, - "generator": false, - "expression": false, "range": [ - 7263, - 7327 + 7251, + 7331 ], "loc": { "start": { - "line": 215, - "column": 105 + "line": 216, + "column": 18 }, "end": { - "line": 217, - "column": 15 + "line": 216, + "column": 98 } } - } - ], - "range": [ - 7215, - 7328 - ], - "loc": { - "start": { - "line": 215, - "column": 57 }, - "end": { - "line": 217, - "column": 16 - } - } - }, - "range": [ - 7172, - 7328 - ], - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 217, - "column": 16 - } - } - }, - "range": [ - 7172, - 7329 - ], - "loc": { - "start": { - "line": 215, - "column": 14 - }, - "end": { - "line": 217, - "column": 17 - } - } - } - ], - "range": [ - 7156, - 7343 - ], - "loc": { - "start": { - "line": 214, - "column": 98 - }, - "end": { - "line": 218, - "column": 13 - } - } - }, - "alternate": null, - "range": [ - 7070, - 7343 - ], - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 218, - "column": 13 - } - } - } - ], - "range": [ - 7056, - 7355 - ], - "loc": { - "start": { - "line": 213, - "column": 18 - }, - "end": { - "line": 219, - "column": 11 - } - } - }, - "alternate": { - "type": "IfStatement", - "test": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7365, - 7369 - ], - "loc": { - "start": { - "line": 219, - "column": 21 - }, - "end": { - "line": 219, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "name": "_collectionListeners", - "range": [ - 7370, - 7390 - ], - "loc": { - "start": { - "line": 219, - "column": 26 - }, - "end": { - "line": 219, - "column": 46 - } - } - }, - "range": [ - 7365, - 7390 - ], - "loc": { - "start": { - "line": 219, - "column": 21 - }, - "end": { - "line": 219, - "column": 46 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 7391, - 7396 - ], - "loc": { - "start": { - "line": 219, - "column": 47 - }, - "end": { - "line": 219, - "column": 52 - } - } - }, - "range": [ - 7365, - 7397 - ], - "loc": { - "start": { - "line": 219, - "column": 21 - }, - "end": { - "line": 219, - "column": 53 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", - "range": [ - 7398, - 7402 - ], - "loc": { - "start": { - "line": 219, - "column": 54 - }, - "end": { - "line": 219, - "column": 58 - } - } - }, - "range": [ - 7365, - 7403 - ], - "loc": { - "start": { - "line": 219, - "column": 21 - }, - "end": { - "line": 219, - "column": 59 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7419, - 7423 - ], - "loc": { - "start": { - "line": 220, - "column": 12 - }, - "end": { - "line": 220, - "column": 16 + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7351, + 7355 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 217, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resourceListeners", + "range": [ + 7356, + 7374 + ], + "loc": { + "start": { + "line": 217, + "column": 21 + }, + "end": { + "line": 217, + "column": 39 + } + } + }, + "range": [ + 7351, + 7374 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 217, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 7375, + 7380 + ], + "loc": { + "start": { + "line": 217, + "column": 40 + }, + "end": { + "line": 217, + "column": 45 + } + } + }, + "range": [ + 7351, + 7381 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 217, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 7382, + 7386 + ], + "loc": { + "start": { + "line": 217, + "column": 47 + }, + "end": { + "line": 217, + "column": 51 + } + } + }, + "range": [ + 7351, + 7387 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 217, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "name": "id", + "range": [ + 7388, + 7390 + ], + "loc": { + "start": { + "line": 217, + "column": 53 + }, + "end": { + "line": 217, + "column": 55 + } + } + }, + "range": [ + 7351, + 7391 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 217, + "column": 56 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7394, + 7398 + ], + "loc": { + "start": { + "line": 217, + "column": 59 + }, + "end": { + "line": 217, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resourceListeners", + "range": [ + 7399, + 7417 + ], + "loc": { + "start": { + "line": 217, + "column": 64 + }, + "end": { + "line": 217, + "column": 82 + } + } + }, + "range": [ + 7394, + 7417 + ], + "loc": { + "start": { + "line": 217, + "column": 59 + }, + "end": { + "line": 217, + "column": 82 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 7418, + 7423 + ], + "loc": { + "start": { + "line": 217, + "column": 83 + }, + "end": { + "line": 217, + "column": 88 + } + } + }, + "range": [ + 7394, + 7424 + ], + "loc": { + "start": { + "line": 217, + "column": 59 + }, + "end": { + "line": 217, + "column": 89 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 7425, + 7429 + ], + "loc": { + "start": { + "line": 217, + "column": 90 + }, + "end": { + "line": 217, + "column": 94 + } + } + }, + "range": [ + 7394, + 7430 + ], + "loc": { + "start": { + "line": 217, + "column": 59 + }, + "end": { + "line": 217, + "column": 95 + } + } + }, + "property": { + "type": "Identifier", + "name": "id", + "range": [ + 7431, + 7433 + ], + "loc": { + "start": { + "line": 217, + "column": 96 + }, + "end": { + "line": 217, + "column": 98 + } + } + }, + "range": [ + 7394, + 7434 + ], + "loc": { + "start": { + "line": 217, + "column": 59 + }, + "end": { + "line": 217, + "column": 99 + } + } + }, + "property": { + "type": "Identifier", + "name": "filter", + "range": [ + 7435, + 7441 + ], + "loc": { + "start": { + "line": 217, + "column": 100 + }, + "end": { + "line": 217, + "column": 106 + } + } + }, + "range": [ + 7394, + 7441 + ], + "loc": { + "start": { + "line": 217, + "column": 59 + }, + "end": { + "line": 217, + "column": 106 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "x", + "range": [ + 7442, + 7443 + ], + "loc": { + "start": { + "line": 217, + "column": 107 + }, + "end": { + "line": 217, + "column": 108 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "x", + "range": [ + 7474, + 7475 + ], + "loc": { + "start": { + "line": 218, + "column": 25 + }, + "end": { + "line": 218, + "column": 26 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 7476, + 7477 + ], + "loc": { + "start": { + "line": 218, + "column": 27 + }, + "end": { + "line": 218, + "column": 28 + } + } + }, + "range": [ + 7474, + 7478 + ], + "loc": { + "start": { + "line": 218, + "column": 25 + }, + "end": { + "line": 218, + "column": 29 + } + } + }, + "right": { + "type": "Identifier", + "name": "callback", + "range": [ + 7483, + 7491 + ], + "loc": { + "start": { + "line": 218, + "column": 34 + }, + "end": { + "line": 218, + "column": 42 + } + } + }, + "range": [ + 7474, + 7491 + ], + "loc": { + "start": { + "line": 218, + "column": 25 + }, + "end": { + "line": 218, + "column": 42 + } + } + }, + "range": [ + 7467, + 7492 + ], + "loc": { + "start": { + "line": 218, + "column": 18 + }, + "end": { + "line": 218, + "column": 43 + } + } + } + ], + "range": [ + 7447, + 7510 + ], + "loc": { + "start": { + "line": 217, + "column": 112 + }, + "end": { + "line": 219, + "column": 17 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7442, + 7510 + ], + "loc": { + "start": { + "line": 217, + "column": 107 + }, + "end": { + "line": 219, + "column": 17 + } + } + } + ], + "range": [ + 7394, + 7511 + ], + "loc": { + "start": { + "line": 217, + "column": 59 + }, + "end": { + "line": 219, + "column": 18 + } + } + }, + "range": [ + 7351, + 7511 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 219, + "column": 18 + } + } + }, + "range": [ + 7351, + 7512 + ], + "loc": { + "start": { + "line": 217, + "column": 16 + }, + "end": { + "line": 219, + "column": 19 + } + } + } + ], + "range": [ + 7333, + 7528 + ], + "loc": { + "start": { + "line": 216, + "column": 100 + }, + "end": { + "line": 220, + "column": 15 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_collectionListeners", + }, + "alternate": null, "range": [ - 7424, - 7444 + 7247, + 7528 ], "loc": { "start": { - "line": 220, - "column": 17 + "line": 216, + "column": 14 }, "end": { "line": 220, - "column": 37 + "column": 15 } } - }, - "range": [ - 7419, - 7444 - ], - "loc": { - "start": { - "line": 220, - "column": 12 - }, - "end": { - "line": 220, - "column": 37 - } } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 7445, - 7450 - ], - "loc": { - "start": { - "line": 220, - "column": 38 - }, - "end": { - "line": 220, - "column": 43 - } - } - }, - "range": [ - 7419, - 7451 ], - "loc": { - "start": { - "line": 220, - "column": 12 - }, - "end": { - "line": 220, - "column": 44 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", "range": [ - 7452, - 7456 + 7231, + 7542 ], "loc": { "start": { - "line": 220, - "column": 45 + "line": 215, + "column": 20 }, "end": { - "line": 220, - "column": 49 + "line": 221, + "column": 13 } } }, - "range": [ - 7419, - 7457 - ], - "loc": { - "start": { - "line": 220, - "column": 12 - }, - "end": { - "line": 220, - "column": 50 - } - } - }, - "right": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { + "alternate": { + "type": "IfStatement", + "test": { "type": "MemberExpression", "computed": true, "object": { @@ -15536,17 +15465,17 @@ "object": { "type": "ThisExpression", "range": [ - 7460, - 7464 + 7552, + 7556 ], "loc": { "start": { - "line": 220, - "column": 53 + "line": 221, + "column": 23 }, "end": { - "line": 220, - "column": 57 + "line": 221, + "column": 27 } } }, @@ -15554,32 +15483,32 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 7465, - 7485 + 7557, + 7577 ], "loc": { "start": { - "line": 220, - "column": 58 + "line": 221, + "column": 28 }, "end": { - "line": 220, - "column": 78 + "line": 221, + "column": 48 } } }, "range": [ - 7460, - 7485 + 7552, + 7577 ], "loc": { "start": { - "line": 220, - "column": 53 + "line": 221, + "column": 23 }, "end": { - "line": 220, - "column": 78 + "line": 221, + "column": 48 } } }, @@ -15587,32 +15516,32 @@ "type": "Identifier", "name": "event", "range": [ - 7486, - 7491 + 7578, + 7583 ], "loc": { "start": { - "line": 220, - "column": 79 + "line": 221, + "column": 49 }, "end": { - "line": 220, - "column": 84 + "line": 221, + "column": 54 } } }, "range": [ - 7460, - 7492 + 7552, + 7584 ], "loc": { "start": { - "line": 220, - "column": 53 + "line": 221, + "column": 23 }, "end": { - "line": 220, - "column": 85 + "line": 221, + "column": 55 } } }, @@ -15620,333 +15549,680 @@ "type": "Identifier", "name": "type", "range": [ - 7493, - 7497 + 7585, + 7589 ], "loc": { "start": { - "line": 220, - "column": 86 + "line": 221, + "column": 56 }, "end": { - "line": 220, - "column": 90 + "line": 221, + "column": 60 } - } - }, - "range": [ - 7460, - 7498 - ], - "loc": { - "start": { - "line": 220, - "column": 53 - }, - "end": { - "line": 220, - "column": 91 - } - } - }, - "property": { - "type": "Identifier", - "name": "filter", + } + }, "range": [ - 7499, - 7505 + 7552, + 7590 ], "loc": { "start": { - "line": 220, - "column": 92 + "line": 221, + "column": 23 }, "end": { - "line": 220, - "column": 98 + "line": 221, + "column": 61 } } }, - "range": [ - 7460, - 7505 - ], - "loc": { - "start": { - "line": 220, - "column": 53 - }, - "end": { - "line": 220, - "column": 98 - } - } - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "id": null, - "params": [ + "consequent": { + "type": "BlockStatement", + "body": [ { - "type": "Identifier", - "name": "x", - "range": [ - 7506, - 7507 - ], - "loc": { - "start": { - "line": 220, - "column": 99 - }, - "end": { - "line": 220, - "column": 100 - } - } - } - ], - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "BinaryExpression", - "operator": "!==", - "left": { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { "type": "MemberExpression", "computed": true, "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7608, + 7612 + ], + "loc": { + "start": { + "line": 222, + "column": 14 + }, + "end": { + "line": 222, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_collectionListeners", + "range": [ + 7613, + 7633 + ], + "loc": { + "start": { + "line": 222, + "column": 19 + }, + "end": { + "line": 222, + "column": 39 + } + } + }, + "range": [ + 7608, + 7633 + ], + "loc": { + "start": { + "line": 222, + "column": 14 + }, + "end": { + "line": 222, + "column": 39 + } + } + }, + "property": { "type": "Identifier", - "name": "x", + "name": "event", "range": [ - 7534, - 7535 + 7634, + 7639 ], "loc": { "start": { - "line": 221, - "column": 21 + "line": 222, + "column": 40 }, "end": { - "line": 221, - "column": 22 + "line": 222, + "column": 45 + } + } + }, + "range": [ + 7608, + 7640 + ], + "loc": { + "start": { + "line": 222, + "column": 14 + }, + "end": { + "line": 222, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 7641, + 7645 + ], + "loc": { + "start": { + "line": 222, + "column": 47 + }, + "end": { + "line": 222, + "column": 51 + } + } + }, + "range": [ + 7608, + 7646 + ], + "loc": { + "start": { + "line": 222, + "column": 14 + }, + "end": { + "line": 222, + "column": 52 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7649, + 7653 + ], + "loc": { + "start": { + "line": 222, + "column": 55 + }, + "end": { + "line": 222, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "name": "_collectionListeners", + "range": [ + 7654, + 7674 + ], + "loc": { + "start": { + "line": 222, + "column": 60 + }, + "end": { + "line": 222, + "column": 80 + } + } + }, + "range": [ + 7649, + 7674 + ], + "loc": { + "start": { + "line": 222, + "column": 55 + }, + "end": { + "line": 222, + "column": 80 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 7675, + 7680 + ], + "loc": { + "start": { + "line": 222, + "column": 81 + }, + "end": { + "line": 222, + "column": 86 + } + } + }, + "range": [ + 7649, + 7681 + ], + "loc": { + "start": { + "line": 222, + "column": 55 + }, + "end": { + "line": 222, + "column": 87 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 7682, + 7686 + ], + "loc": { + "start": { + "line": 222, + "column": 88 + }, + "end": { + "line": 222, + "column": 92 + } + } + }, + "range": [ + 7649, + 7687 + ], + "loc": { + "start": { + "line": 222, + "column": 55 + }, + "end": { + "line": 222, + "column": 93 } } }, "property": { - "type": "Literal", - "value": 0, - "raw": "0", + "type": "Identifier", + "name": "filter", "range": [ - 7536, - 7537 + 7688, + 7694 ], "loc": { "start": { - "line": 221, - "column": 23 + "line": 222, + "column": 94 + }, + "end": { + "line": 222, + "column": 100 + } + } + }, + "range": [ + 7649, + 7694 + ], + "loc": { + "start": { + "line": 222, + "column": 55 + }, + "end": { + "line": 222, + "column": 100 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "x", + "range": [ + 7695, + 7696 + ], + "loc": { + "start": { + "line": 222, + "column": 101 + }, + "end": { + "line": 222, + "column": 102 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "x", + "range": [ + 7725, + 7726 + ], + "loc": { + "start": { + "line": 223, + "column": 23 + }, + "end": { + "line": 223, + "column": 24 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 7727, + 7728 + ], + "loc": { + "start": { + "line": 223, + "column": 25 + }, + "end": { + "line": 223, + "column": 26 + } + } + }, + "range": [ + 7725, + 7729 + ], + "loc": { + "start": { + "line": 223, + "column": 23 + }, + "end": { + "line": 223, + "column": 27 + } + } + }, + "right": { + "type": "Identifier", + "name": "callback", + "range": [ + 7734, + 7742 + ], + "loc": { + "start": { + "line": 223, + "column": 32 + }, + "end": { + "line": 223, + "column": 40 + } + } + }, + "range": [ + 7725, + 7742 + ], + "loc": { + "start": { + "line": 223, + "column": 23 + }, + "end": { + "line": 223, + "column": 40 + } + } + }, + "range": [ + 7718, + 7743 + ], + "loc": { + "start": { + "line": 223, + "column": 16 + }, + "end": { + "line": 223, + "column": 41 + } + } + } + ], + "range": [ + 7700, + 7759 + ], + "loc": { + "start": { + "line": 222, + "column": 106 + }, + "end": { + "line": 224, + "column": 15 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7695, + 7759 + ], + "loc": { + "start": { + "line": 222, + "column": 101 }, "end": { - "line": 221, - "column": 24 + "line": 224, + "column": 15 } } - }, - "range": [ - 7534, - 7538 - ], - "loc": { - "start": { - "line": 221, - "column": 21 - }, - "end": { - "line": 221, - "column": 25 - } - } - }, - "right": { - "type": "Identifier", - "name": "callback", - "range": [ - 7543, - 7551 - ], - "loc": { - "start": { - "line": 221, - "column": 30 - }, - "end": { - "line": 221, - "column": 38 - } } - }, + ], "range": [ - 7534, - 7551 + 7649, + 7760 ], "loc": { "start": { - "line": 221, - "column": 21 + "line": 222, + "column": 55 }, "end": { - "line": 221, - "column": 38 + "line": 224, + "column": 16 } } }, "range": [ - 7527, - 7552 + 7608, + 7760 ], "loc": { "start": { - "line": 221, + "line": 222, "column": 14 }, "end": { - "line": 221, - "column": 39 + "line": 224, + "column": 16 } } - } - ], - "range": [ - 7511, - 7566 - ], - "loc": { - "start": { - "line": 220, - "column": 104 }, - "end": { - "line": 222, - "column": 13 + "range": [ + 7608, + 7761 + ], + "loc": { + "start": { + "line": 222, + "column": 14 + }, + "end": { + "line": 224, + "column": 17 + } } } - }, - "generator": false, - "expression": false, + ], "range": [ - 7506, - 7566 + 7592, + 7775 ], "loc": { "start": { - "line": 220, - "column": 99 + "line": 221, + "column": 63 }, "end": { - "line": 222, + "line": 225, "column": 13 } } + }, + "alternate": null, + "range": [ + 7548, + 7775 + ], + "loc": { + "start": { + "line": 221, + "column": 19 + }, + "end": { + "line": 225, + "column": 13 + } } - ], + }, "range": [ - 7460, - 7567 + 7223, + 7775 ], "loc": { "start": { - "line": 220, - "column": 53 + "line": 215, + "column": 12 }, "end": { - "line": 222, - "column": 14 + "line": 225, + "column": 13 } } - }, - "range": [ - 7419, - 7567 - ], - "loc": { - "start": { - "line": 220, - "column": 12 - }, - "end": { - "line": 222, - "column": 14 - } } - }, + ], "range": [ - 7419, - 7568 + 7209, + 7787 ], "loc": { "start": { - "line": 220, - "column": 12 + "line": 214, + "column": 51 }, "end": { - "line": 222, - "column": 15 + "line": 226, + "column": 11 } } - } - ], - "range": [ - 7405, - 7580 - ], - "loc": { - "start": { - "line": 219, - "column": 61 }, - "end": { - "line": 223, - "column": 11 + "generator": false, + "expression": false, + "range": [ + 7201, + 7787 + ], + "loc": { + "start": { + "line": 214, + "column": 43 + }, + "end": { + "line": 226, + "column": 11 + } } } - }, - "alternate": null, + ], "range": [ - 7361, - 7580 + 7168, + 7788 ], "loc": { "start": { - "line": 219, - "column": 17 + "line": 214, + "column": 10 }, "end": { - "line": 223, - "column": 11 + "line": 226, + "column": 12 } } }, "range": [ - 7048, - 7580 + 7168, + 7789 ], "loc": { "start": { - "line": 213, + "line": 214, "column": 10 }, "end": { - "line": 223, - "column": 11 + "line": 226, + "column": 13 } - } + }, + "leadingComments": [ + { + "type": "Line", + "value": " TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.", + "range": [ + 7048, + 7157 + ], + "loc": { + "start": { + "line": 213, + "column": 10 + }, + "end": { + "line": 213, + "column": 119 + } + } + } + ] } ], "range": [ 7036, - 7590 + 7799 ], "loc": { "start": { @@ -15954,14 +16230,14 @@ "column": 15 }, "end": { - "line": 224, + "line": 227, "column": 9 } } }, "range": [ 6897, - 7590 + 7799 ], "loc": { "start": { @@ -15969,7 +16245,7 @@ "column": 8 }, "end": { - "line": 224, + "line": 227, "column": 9 } } @@ -15977,7 +16253,7 @@ ], "range": [ 6887, - 7598 + 7807 ], "loc": { "start": { @@ -15985,7 +16261,7 @@ "column": 29 }, "end": { - "line": 225, + "line": 228, "column": 7 } } @@ -16001,16 +16277,16 @@ "type": "Identifier", "name": "Error", "range": [ - 7624, - 7629 + 7833, + 7838 ], "loc": { "start": { - "line": 226, + "line": 229, "column": 18 }, "end": { - "line": 226, + "line": 229, "column": 23 } } @@ -16027,16 +16303,16 @@ }, "tail": false, "range": [ - 7630, - 7647 + 7839, + 7856 ], "loc": { "start": { - "line": 226, + "line": 229, "column": 24 }, "end": { - "line": 226, + "line": 229, "column": 41 } } @@ -16049,16 +16325,16 @@ }, "tail": true, "range": [ - 7651, - 7654 + 7860, + 7863 ], "loc": { "start": { - "line": 226, + "line": 229, "column": 45 }, "end": { - "line": 226, + "line": 229, "column": 48 } } @@ -16069,86 +16345,86 @@ "type": "Identifier", "name": "type", "range": [ - 7647, - 7651 + 7856, + 7860 ], "loc": { "start": { - "line": 226, + "line": 229, "column": 41 }, "end": { - "line": 226, + "line": 229, "column": 45 } } } ], "range": [ - 7630, - 7654 + 7839, + 7863 ], "loc": { "start": { - "line": 226, + "line": 229, "column": 24 }, "end": { - "line": 226, + "line": 229, "column": 48 } } } ], "range": [ - 7620, - 7655 + 7829, + 7864 ], "loc": { "start": { - "line": 226, + "line": 229, "column": 14 }, "end": { - "line": 226, + "line": 229, "column": 49 } } }, "range": [ - 7614, - 7656 + 7823, + 7865 ], "loc": { "start": { - "line": 226, + "line": 229, "column": 8 }, "end": { - "line": 226, + "line": 229, "column": 50 } } } ], "range": [ - 7604, - 7664 + 7813, + 7873 ], "loc": { "start": { - "line": 225, + "line": 228, "column": 13 }, "end": { - "line": 227, + "line": 230, "column": 7 } } }, "range": [ 6864, - 7664 + 7873 ], "loc": { "start": { @@ -16156,7 +16432,7 @@ "column": 6 }, "end": { - "line": 227, + "line": 230, "column": 7 } } @@ -16164,7 +16440,7 @@ ], "range": [ 6856, - 7670 + 7879 ], "loc": { "start": { @@ -16172,7 +16448,7 @@ "column": 76 }, "end": { - "line": 228, + "line": 231, "column": 5 } } @@ -16188,16 +16464,16 @@ "type": "Identifier", "name": "Error", "range": [ - 7694, - 7699 + 7903, + 7908 ], "loc": { "start": { - "line": 229, + "line": 232, "column": 16 }, "end": { - "line": 229, + "line": 232, "column": 21 } } @@ -16214,16 +16490,16 @@ }, "tail": false, "range": [ - 7700, - 7718 + 7909, + 7927 ], "loc": { "start": { - "line": 229, + "line": 232, "column": 22 }, "end": { - "line": 229, + "line": 232, "column": 40 } } @@ -16236,16 +16512,16 @@ }, "tail": true, "range": [ - 7723, - 7726 + 7932, + 7935 ], "loc": { "start": { - "line": 229, + "line": 232, "column": 45 }, "end": { - "line": 229, + "line": 232, "column": 48 } } @@ -16256,86 +16532,86 @@ "type": "Identifier", "name": "event", "range": [ - 7718, - 7723 + 7927, + 7932 ], "loc": { "start": { - "line": 229, + "line": 232, "column": 40 }, "end": { - "line": 229, + "line": 232, "column": 45 } } } ], "range": [ - 7700, - 7726 + 7909, + 7935 ], "loc": { "start": { - "line": 229, + "line": 232, "column": 22 }, "end": { - "line": 229, + "line": 232, "column": 48 } } } ], "range": [ - 7690, - 7727 + 7899, + 7936 ], "loc": { "start": { - "line": 229, + "line": 232, "column": 12 }, "end": { - "line": 229, + "line": 232, "column": 49 } } }, "range": [ - 7684, - 7728 + 7893, + 7937 ], "loc": { "start": { - "line": 229, + "line": 232, "column": 6 }, "end": { - "line": 229, + "line": 232, "column": 50 } } } ], "range": [ - 7676, - 7734 + 7885, + 7943 ], "loc": { "start": { - "line": 228, + "line": 231, "column": 11 }, "end": { - "line": 230, + "line": 233, "column": 5 } } }, "range": [ 6784, - 7734 + 7943 ], "loc": { "start": { @@ -16343,7 +16619,7 @@ "column": 4 }, "end": { - "line": 230, + "line": 233, "column": 5 } } @@ -16351,7 +16627,7 @@ ], "range": [ 6778, - 7738 + 7947 ], "loc": { "start": { @@ -16359,7 +16635,7 @@ "column": 33 }, "end": { - "line": 231, + "line": 234, "column": 3 } } @@ -16368,7 +16644,7 @@ "expression": false, "range": [ 6750, - 7738 + 7947 ], "loc": { "start": { @@ -16376,7 +16652,7 @@ "column": 5 }, "end": { - "line": 231, + "line": 234, "column": 3 } } @@ -16385,7 +16661,7 @@ "computed": false, "range": [ 6747, - 7738 + 7947 ], "loc": { "start": { @@ -16393,7 +16669,7 @@ "column": 2 }, "end": { - "line": 231, + "line": 234, "column": 3 } }, @@ -16422,16 +16698,16 @@ "type": "Block", "value": "*\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n ", "range": [ - 7742, - 8182 + 7951, + 8391 ], "loc": { "start": { - "line": 233, + "line": 236, "column": 2 }, "end": { - "line": 243, + "line": 246, "column": 5 } } @@ -16445,16 +16721,16 @@ "type": "Identifier", "name": "on", "range": [ - 8185, - 8187 + 8394, + 8396 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 2 }, "end": { - "line": 244, + "line": 247, "column": 4 } } @@ -16467,16 +16743,16 @@ "type": "Identifier", "name": "event", "range": [ - 8188, - 8193 + 8397, + 8402 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 5 }, "end": { - "line": 244, + "line": 247, "column": 10 } } @@ -16485,16 +16761,16 @@ "type": "Identifier", "name": "type", "range": [ - 8195, - 8199 + 8404, + 8408 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 12 }, "end": { - "line": 244, + "line": 247, "column": 16 } } @@ -16503,16 +16779,16 @@ "type": "Identifier", "name": "id", "range": [ - 8201, - 8203 + 8410, + 8412 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 18 }, "end": { - "line": 244, + "line": 247, "column": 20 } } @@ -16521,16 +16797,16 @@ "type": "Identifier", "name": "callback", "range": [ - 8205, - 8213 + 8414, + 8422 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 22 }, "end": { - "line": 244, + "line": 247, "column": 30 } } @@ -16539,16 +16815,16 @@ "type": "Identifier", "name": "context", "range": [ - 8215, - 8222 + 8424, + 8431 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 32 }, "end": { - "line": 244, + "line": 247, "column": 39 } } @@ -16571,16 +16847,16 @@ "object": { "type": "ThisExpression", "range": [ - 8234, - 8238 + 8443, + 8447 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 8 }, "end": { - "line": 245, + "line": 248, "column": 12 } } @@ -16589,31 +16865,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 8239, - 8257 + 8448, + 8466 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 13 }, "end": { - "line": 245, + "line": 248, "column": 31 } } }, "range": [ - 8234, - 8257 + 8443, + 8466 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 8 }, "end": { - "line": 245, + "line": 248, "column": 31 } } @@ -16622,31 +16898,31 @@ "type": "Identifier", "name": "event", "range": [ - 8258, - 8263 + 8467, + 8472 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 32 }, "end": { - "line": 245, + "line": 248, "column": 37 } } }, "range": [ - 8234, - 8264 + 8443, + 8473 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 8 }, "end": { - "line": 245, + "line": 248, "column": 38 } } @@ -16660,16 +16936,16 @@ "object": { "type": "ThisExpression", "range": [ - 8268, - 8272 + 8477, + 8481 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 42 }, "end": { - "line": 245, + "line": 248, "column": 46 } } @@ -16678,31 +16954,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 8273, - 8293 + 8482, + 8502 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 47 }, "end": { - "line": 245, + "line": 248, "column": 67 } } }, "range": [ - 8268, - 8293 + 8477, + 8502 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 42 }, "end": { - "line": 245, + "line": 248, "column": 67 } } @@ -16711,46 +16987,46 @@ "type": "Identifier", "name": "event", "range": [ - 8294, - 8299 + 8503, + 8508 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 68 }, "end": { - "line": 245, + "line": 248, "column": 73 } } }, "range": [ - 8268, - 8300 + 8477, + 8509 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 42 }, "end": { - "line": 245, + "line": 248, "column": 74 } } }, "range": [ - 8234, - 8300 + 8443, + 8509 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 8 }, "end": { - "line": 245, + "line": 248, "column": 74 } } @@ -16769,16 +17045,16 @@ "object": { "type": "ThisExpression", "range": [ - 8314, - 8318 + 8523, + 8527 ], "loc": { "start": { - "line": 246, + "line": 249, "column": 10 }, "end": { - "line": 246, + "line": 249, "column": 14 } } @@ -16787,31 +17063,31 @@ "type": "Identifier", "name": "_types", "range": [ - 8319, - 8325 + 8528, + 8534 ], "loc": { "start": { - "line": 246, + "line": 249, "column": 15 }, "end": { - "line": 246, + "line": 249, "column": 21 } } }, "range": [ - 8314, - 8325 + 8523, + 8534 ], "loc": { "start": { - "line": 246, + "line": 249, "column": 10 }, "end": { - "line": 246, + "line": 249, "column": 21 } } @@ -16820,31 +17096,31 @@ "type": "Identifier", "name": "type", "range": [ - 8326, - 8330 + 8535, + 8539 ], "loc": { "start": { - "line": 246, + "line": 249, "column": 22 }, "end": { - "line": 246, + "line": 249, "column": 26 } } }, "range": [ - 8314, - 8331 + 8523, + 8540 ], "loc": { "start": { - "line": 246, + "line": 249, "column": 10 }, "end": { - "line": 246, + "line": 249, "column": 27 } } @@ -16861,16 +17137,16 @@ "type": "Identifier", "name": "id", "range": [ - 8347, - 8349 + 8556, + 8558 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 12 }, "end": { - "line": 247, + "line": 250, "column": 14 } } @@ -16890,16 +17166,16 @@ "type": "ObjectExpression", "properties": [], "range": [ - 8354, - 8356 + 8563, + 8565 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 19 }, "end": { - "line": 247, + "line": 250, "column": 21 } } @@ -16908,31 +17184,31 @@ "type": "Identifier", "name": "toString", "range": [ - 8358, - 8366 + 8567, + 8575 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 23 }, "end": { - "line": 247, + "line": 250, "column": 31 } } }, "range": [ - 8353, - 8366 + 8562, + 8575 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 18 }, "end": { - "line": 247, + "line": 250, "column": 31 } } @@ -16941,31 +17217,31 @@ "type": "Identifier", "name": "call", "range": [ - 8367, - 8371 + 8576, + 8580 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 32 }, "end": { - "line": 247, + "line": 250, "column": 36 } } }, "range": [ - 8353, - 8371 + 8562, + 8580 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 18 }, "end": { - "line": 247, + "line": 250, "column": 36 } } @@ -16975,32 +17251,32 @@ "type": "Identifier", "name": "id", "range": [ - 8372, - 8374 + 8581, + 8583 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 37 }, "end": { - "line": 247, + "line": 250, "column": 39 } } } ], "range": [ - 8353, - 8375 + 8562, + 8584 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 18 }, "end": { - "line": 247, + "line": 250, "column": 40 } } @@ -17010,46 +17286,46 @@ "value": "[object Function]", "raw": "'[object Function]'", "range": [ - 8380, - 8399 + 8589, + 8608 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 45 }, "end": { - "line": 247, + "line": 250, "column": 64 } } }, "range": [ - 8353, - 8399 + 8562, + 8608 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 18 }, "end": { - "line": 247, + "line": 250, "column": 64 } } }, "range": [ - 8347, - 8399 + 8556, + 8608 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 12 }, "end": { - "line": 247, + "line": 250, "column": 64 } } @@ -17070,16 +17346,16 @@ "object": { "type": "ThisExpression", "range": [ - 8413, - 8417 + 8622, + 8626 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 10 }, "end": { - "line": 248, + "line": 251, "column": 14 } } @@ -17088,31 +17364,31 @@ "type": "Identifier", "name": "on", "range": [ - 8418, - 8420 + 8627, + 8629 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 15 }, "end": { - "line": 248, + "line": 251, "column": 17 } } }, "range": [ - 8413, - 8420 + 8622, + 8629 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 10 }, "end": { - "line": 248, + "line": 251, "column": 17 } } @@ -17121,31 +17397,31 @@ "type": "Identifier", "name": "call", "range": [ - 8421, - 8425 + 8630, + 8634 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 18 }, "end": { - "line": 248, + "line": 251, "column": 22 } } }, "range": [ - 8413, - 8425 + 8622, + 8634 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 10 }, "end": { - "line": 248, + "line": 251, "column": 22 } } @@ -17154,16 +17430,16 @@ { "type": "ThisExpression", "range": [ - 8426, - 8430 + 8635, + 8639 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 23 }, "end": { - "line": 248, + "line": 251, "column": 27 } } @@ -17172,16 +17448,16 @@ "type": "Identifier", "name": "event", "range": [ - 8432, - 8437 + 8641, + 8646 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 29 }, "end": { - "line": 248, + "line": 251, "column": 34 } } @@ -17190,16 +17466,16 @@ "type": "Identifier", "name": "type", "range": [ - 8439, - 8443 + 8648, + 8652 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 36 }, "end": { - "line": 248, + "line": 251, "column": 40 } } @@ -17209,16 +17485,16 @@ "value": null, "raw": "null", "range": [ - 8445, - 8449 + 8654, + 8658 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 42 }, "end": { - "line": 248, + "line": 251, "column": 46 } } @@ -17227,16 +17503,16 @@ "type": "Identifier", "name": "id", "range": [ - 8451, - 8453 + 8660, + 8662 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 48 }, "end": { - "line": 248, + "line": 251, "column": 50 } } @@ -17245,63 +17521,63 @@ "type": "Identifier", "name": "callback", "range": [ - 8455, - 8463 + 8664, + 8672 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 52 }, "end": { - "line": 248, + "line": 251, "column": 60 } } } ], "range": [ - 8413, - 8464 + 8622, + 8673 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 10 }, "end": { - "line": 248, + "line": 251, "column": 61 } } }, "range": [ - 8413, - 8465 + 8622, + 8674 ], "loc": { "start": { - "line": 248, + "line": 251, "column": 10 }, "end": { - "line": 248, + "line": 251, "column": 62 } } } ], "range": [ - 8401, - 8475 + 8610, + 8684 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 66 }, "end": { - "line": 249, + "line": 252, "column": 9 } } @@ -17310,1696 +17586,2742 @@ "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { - "type": "Identifier", - "name": "id", - "range": [ - 8497, - 8499 - ], - "loc": { - "start": { - "line": 250, - "column": 14 - }, - "end": { - "line": 250, - "column": 16 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 8515, - 8519 - ], - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "name": "_resourceListeners", - "range": [ - 8520, - 8538 - ], - "loc": { - "start": { - "line": 251, - "column": 17 - }, - "end": { - "line": 251, - "column": 35 - } - } - }, - "range": [ - 8515, - 8538 - ], - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 8539, - 8544 - ], - "loc": { - "start": { - "line": 251, - "column": 36 - }, - "end": { - "line": 251, - "column": 41 - } - } - }, + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", "range": [ - 8515, - 8545 + 8822, + 8826 ], "loc": { "start": { - "line": 251, - "column": 12 + "line": 254, + "column": 10 }, "end": { - "line": 251, - "column": 42 + "line": 254, + "column": 14 } } }, "property": { "type": "Identifier", - "name": "type", + "name": "_types", "range": [ - 8546, - 8550 + 8827, + 8833 ], "loc": { "start": { - "line": 251, - "column": 43 + "line": 254, + "column": 15 }, "end": { - "line": 251, - "column": 47 + "line": 254, + "column": 21 } } }, "range": [ - 8515, - 8551 + 8822, + 8833 ], "loc": { "start": { - "line": 251, - "column": 12 + "line": 254, + "column": 10 }, "end": { - "line": 251, - "column": 48 + "line": 254, + "column": 21 } } }, - "right": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 8554, - 8558 - ], - "loc": { - "start": { - "line": 251, - "column": 51 - }, - "end": { - "line": 251, - "column": 55 - } - } - }, - "property": { - "type": "Identifier", - "name": "_resourceListeners", - "range": [ - 8559, - 8577 - ], - "loc": { - "start": { - "line": 251, - "column": 56 - }, - "end": { - "line": 251, - "column": 74 - } - } - }, - "range": [ - 8554, - 8577 - ], - "loc": { - "start": { - "line": 251, - "column": 51 - }, - "end": { - "line": 251, - "column": 74 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 8578, - 8583 - ], - "loc": { - "start": { - "line": 251, - "column": 75 - }, - "end": { - "line": 251, - "column": 80 - } - } - }, - "range": [ - 8554, - 8584 - ], - "loc": { - "start": { - "line": 251, - "column": 51 - }, - "end": { - "line": 251, - "column": 81 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", - "range": [ - 8585, - 8589 - ], - "loc": { - "start": { - "line": 251, - "column": 82 - }, - "end": { - "line": 251, - "column": 86 - } - } - }, - "range": [ - 8554, - 8590 - ], - "loc": { - "start": { - "line": 251, - "column": 51 - }, - "end": { - "line": 251, - "column": 87 - } - } - }, - "right": { - "type": "ObjectExpression", - "properties": [], - "range": [ - 8594, - 8596 - ], - "loc": { - "start": { - "line": 251, - "column": 91 - }, - "end": { - "line": 251, - "column": 93 - } - } - }, + "property": { + "type": "Identifier", + "name": "type", "range": [ - 8554, - 8596 + 8834, + 8838 ], "loc": { "start": { - "line": 251, - "column": 51 + "line": 254, + "column": 22 }, "end": { - "line": 251, - "column": 93 + "line": 254, + "column": 26 } } }, "range": [ - 8515, - 8596 + 8822, + 8839 ], "loc": { "start": { - "line": 251, - "column": 12 + "line": 254, + "column": 10 }, "end": { - "line": 251, - "column": 93 + "line": 254, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "_names", + "range": [ + 8840, + 8846 + ], + "loc": { + "start": { + "line": 254, + "column": 28 + }, + "end": { + "line": 254, + "column": 34 } } }, "range": [ - 8515, - 8597 + 8822, + 8846 ], "loc": { "start": { - "line": 251, - "column": 12 + "line": 254, + "column": 10 }, "end": { - "line": 251, - "column": 94 + "line": 254, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "forEach", + "range": [ + 8847, + 8854 + ], + "loc": { + "start": { + "line": 254, + "column": 35 + }, + "end": { + "line": 254, + "column": 42 } } }, + "range": [ + 8822, + 8854 + ], + "loc": { + "start": { + "line": 254, + "column": 10 + }, + "end": { + "line": 254, + "column": 42 + } + } + }, + "arguments": [ { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 8610, - 8614 - ], - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "name": "_resourceListeners", - "range": [ - 8615, - 8633 - ], - "loc": { - "start": { - "line": 252, - "column": 17 - }, - "end": { - "line": 252, - "column": 35 - } - } - }, - "range": [ - 8610, - 8633 - ], - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 8634, - 8639 - ], - "loc": { - "start": { - "line": 252, - "column": 36 - }, - "end": { - "line": 252, - "column": 41 - } - } - }, - "range": [ - 8610, - 8640 - ], - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 42 - } - } + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "type", + "range": [ + 8855, + 8859 + ], + "loc": { + "start": { + "line": 254, + "column": 43 }, - "property": { + "end": { + "line": 254, + "column": 47 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { "type": "Identifier", - "name": "type", + "name": "id", "range": [ - 8641, - 8645 + 8881, + 8883 ], "loc": { "start": { - "line": 252, - "column": 43 + "line": 255, + "column": 16 }, "end": { - "line": 252, - "column": 47 + "line": 255, + "column": 18 } } }, - "range": [ - 8610, - 8646 - ], - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 48 - } - } - }, - "property": { - "type": "Identifier", - "name": "id", - "range": [ - 8647, - 8649 - ], - "loc": { - "start": { - "line": 252, - "column": 49 - }, - "end": { - "line": 252, - "column": 51 - } - } - }, - "range": [ - 8610, - 8650 - ], - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 52 - } - } - }, - "right": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 8653, - 8657 - ], - "loc": { - "start": { - "line": 252, - "column": 55 + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8901, + 8905 + ], + "loc": { + "start": { + "line": 256, + "column": 14 + }, + "end": { + "line": 256, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resourceListeners", + "range": [ + 8906, + 8924 + ], + "loc": { + "start": { + "line": 256, + "column": 19 + }, + "end": { + "line": 256, + "column": 37 + } + } + }, + "range": [ + 8901, + 8924 + ], + "loc": { + "start": { + "line": 256, + "column": 14 + }, + "end": { + "line": 256, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 8925, + 8930 + ], + "loc": { + "start": { + "line": 256, + "column": 38 + }, + "end": { + "line": 256, + "column": 43 + } + } + }, + "range": [ + 8901, + 8931 + ], + "loc": { + "start": { + "line": 256, + "column": 14 + }, + "end": { + "line": 256, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 8932, + 8936 + ], + "loc": { + "start": { + "line": 256, + "column": 45 + }, + "end": { + "line": 256, + "column": 49 + } + } + }, + "range": [ + 8901, + 8937 + ], + "loc": { + "start": { + "line": 256, + "column": 14 + }, + "end": { + "line": 256, + "column": 50 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8940, + 8944 + ], + "loc": { + "start": { + "line": 256, + "column": 53 + }, + "end": { + "line": 256, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resourceListeners", + "range": [ + 8945, + 8963 + ], + "loc": { + "start": { + "line": 256, + "column": 58 + }, + "end": { + "line": 256, + "column": 76 + } + } + }, + "range": [ + 8940, + 8963 + ], + "loc": { + "start": { + "line": 256, + "column": 53 + }, + "end": { + "line": 256, + "column": 76 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 8964, + 8969 + ], + "loc": { + "start": { + "line": 256, + "column": 77 + }, + "end": { + "line": 256, + "column": 82 + } + } + }, + "range": [ + 8940, + 8970 + ], + "loc": { + "start": { + "line": 256, + "column": 53 + }, + "end": { + "line": 256, + "column": 83 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 8971, + 8975 + ], + "loc": { + "start": { + "line": 256, + "column": 84 + }, + "end": { + "line": 256, + "column": 88 + } + } + }, + "range": [ + 8940, + 8976 + ], + "loc": { + "start": { + "line": 256, + "column": 53 + }, + "end": { + "line": 256, + "column": 89 + } + } }, - "end": { - "line": 252, - "column": 59 + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 8980, + 8982 + ], + "loc": { + "start": { + "line": 256, + "column": 93 + }, + "end": { + "line": 256, + "column": 95 + } + } + }, + "range": [ + 8940, + 8982 + ], + "loc": { + "start": { + "line": 256, + "column": 53 + }, + "end": { + "line": 256, + "column": 95 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_resourceListeners", + }, "range": [ - 8658, - 8676 + 8901, + 8982 ], "loc": { "start": { - "line": 252, - "column": 60 + "line": 256, + "column": 14 }, "end": { - "line": 252, - "column": 78 + "line": 256, + "column": 95 } } }, "range": [ - 8653, - 8676 - ], - "loc": { - "start": { - "line": 252, - "column": 55 - }, - "end": { - "line": 252, - "column": 78 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 8677, - 8682 + 8901, + 8983 ], "loc": { "start": { - "line": 252, - "column": 79 + "line": 256, + "column": 14 }, "end": { - "line": 252, - "column": 84 + "line": 256, + "column": 96 } } }, - "range": [ - 8653, - 8683 - ], - "loc": { - "start": { - "line": 252, - "column": 55 - }, - "end": { - "line": 252, - "column": 85 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", - "range": [ - 8684, - 8688 - ], - "loc": { - "start": { - "line": 252, - "column": 86 - }, - "end": { - "line": 252, - "column": 90 - } - } - }, - "range": [ - 8653, - 8689 - ], - "loc": { - "start": { - "line": 252, - "column": 55 - }, - "end": { - "line": 252, - "column": 91 - } - } - }, - "property": { - "type": "Identifier", - "name": "id", - "range": [ - 8690, - 8692 - ], - "loc": { - "start": { - "line": 252, - "column": 92 - }, - "end": { - "line": 252, - "column": 94 - } - } - }, - "range": [ - 8653, - 8693 - ], - "loc": { - "start": { - "line": 252, - "column": 55 - }, - "end": { - "line": 252, - "column": 95 - } - } - }, - "right": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 8697, - 8699 - ], - "loc": { - "start": { - "line": 252, - "column": 99 - }, - "end": { - "line": 252, - "column": 101 - } - } - }, - "range": [ - 8653, - 8699 - ], - "loc": { - "start": { - "line": 252, - "column": 55 - }, - "end": { - "line": 252, - "column": 101 - } - } - }, - "range": [ - 8610, - 8699 - ], - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 101 - } - } - }, - "range": [ - 8610, - 8700 - ], - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 102 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 8713, - 8717 - ], - "loc": { - "start": { - "line": 253, - "column": 12 + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8998, + 9002 + ], + "loc": { + "start": { + "line": 257, + "column": 14 + }, + "end": { + "line": 257, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resourceListeners", + "range": [ + 9003, + 9021 + ], + "loc": { + "start": { + "line": 257, + "column": 19 + }, + "end": { + "line": 257, + "column": 37 + } + } + }, + "range": [ + 8998, + 9021 + ], + "loc": { + "start": { + "line": 257, + "column": 14 + }, + "end": { + "line": 257, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 9022, + 9027 + ], + "loc": { + "start": { + "line": 257, + "column": 38 + }, + "end": { + "line": 257, + "column": 43 + } + } + }, + "range": [ + 8998, + 9028 + ], + "loc": { + "start": { + "line": 257, + "column": 14 + }, + "end": { + "line": 257, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 9029, + 9033 + ], + "loc": { + "start": { + "line": 257, + "column": 45 + }, + "end": { + "line": 257, + "column": 49 + } + } + }, + "range": [ + 8998, + 9034 + ], + "loc": { + "start": { + "line": 257, + "column": 14 + }, + "end": { + "line": 257, + "column": 50 + } + } }, - "end": { - "line": 253, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "name": "_resourceListeners", - "range": [ - 8718, - 8736 - ], - "loc": { - "start": { - "line": 253, - "column": 17 + "property": { + "type": "Identifier", + "name": "id", + "range": [ + 9035, + 9037 + ], + "loc": { + "start": { + "line": 257, + "column": 51 + }, + "end": { + "line": 257, + "column": 53 + } + } }, - "end": { - "line": 253, - "column": 35 + "range": [ + 8998, + 9038 + ], + "loc": { + "start": { + "line": 257, + "column": 14 + }, + "end": { + "line": 257, + "column": 54 + } } - } - }, - "range": [ - 8713, - 8736 - ], - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 8737, - 8742 - ], - "loc": { - "start": { - "line": 253, - "column": 36 }, - "end": { - "line": 253, - "column": 41 - } - } - }, - "range": [ - 8713, - 8743 - ], - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", - "range": [ - 8744, - 8748 - ], - "loc": { - "start": { - "line": 253, - "column": 43 - }, - "end": { - "line": 253, - "column": 47 - } - } - }, - "range": [ - 8713, - 8749 - ], - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 48 - } - } - }, - "property": { - "type": "Identifier", - "name": "id", - "range": [ - 8750, - 8752 - ], - "loc": { - "start": { - "line": 253, - "column": 49 - }, - "end": { - "line": 253, - "column": 51 - } - } - }, - "range": [ - 8713, - 8753 - ], - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 52 - } - } - }, - "property": { - "type": "Identifier", - "name": "push", - "range": [ - 8754, - 8758 - ], - "loc": { - "start": { - "line": 253, - "column": 53 - }, - "end": { - "line": 253, - "column": 57 - } - } - }, - "range": [ - 8713, - 8758 - ], - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 57 - } - } - }, - "arguments": [ - { - "type": "ArrayExpression", - "elements": [ - { - "type": "Identifier", - "name": "callback", - "range": [ - 8761, - 8769 - ], - "loc": { - "start": { - "line": 253, - "column": 60 + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9041, + 9045 + ], + "loc": { + "start": { + "line": 257, + "column": 57 + }, + "end": { + "line": 257, + "column": 61 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resourceListeners", + "range": [ + 9046, + 9064 + ], + "loc": { + "start": { + "line": 257, + "column": 62 + }, + "end": { + "line": 257, + "column": 80 + } + } + }, + "range": [ + 9041, + 9064 + ], + "loc": { + "start": { + "line": 257, + "column": 57 + }, + "end": { + "line": 257, + "column": 80 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 9065, + 9070 + ], + "loc": { + "start": { + "line": 257, + "column": 81 + }, + "end": { + "line": 257, + "column": 86 + } + } + }, + "range": [ + 9041, + 9071 + ], + "loc": { + "start": { + "line": 257, + "column": 57 + }, + "end": { + "line": 257, + "column": 87 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 9072, + 9076 + ], + "loc": { + "start": { + "line": 257, + "column": 88 + }, + "end": { + "line": 257, + "column": 92 + } + } + }, + "range": [ + 9041, + 9077 + ], + "loc": { + "start": { + "line": 257, + "column": 57 + }, + "end": { + "line": 257, + "column": 93 + } + } + }, + "property": { + "type": "Identifier", + "name": "id", + "range": [ + 9078, + 9080 + ], + "loc": { + "start": { + "line": 257, + "column": 94 + }, + "end": { + "line": 257, + "column": 96 + } + } + }, + "range": [ + 9041, + 9081 + ], + "loc": { + "start": { + "line": 257, + "column": 57 + }, + "end": { + "line": 257, + "column": 97 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 9085, + 9087 + ], + "loc": { + "start": { + "line": 257, + "column": 101 + }, + "end": { + "line": 257, + "column": 103 + } + } + }, + "range": [ + 9041, + 9087 + ], + "loc": { + "start": { + "line": 257, + "column": 57 + }, + "end": { + "line": 257, + "column": 103 + } + } + }, + "range": [ + 8998, + 9087 + ], + "loc": { + "start": { + "line": 257, + "column": 14 + }, + "end": { + "line": 257, + "column": 103 + } + } }, - "end": { - "line": 253, - "column": 68 + "range": [ + 8998, + 9088 + ], + "loc": { + "start": { + "line": 257, + "column": 14 + }, + "end": { + "line": 257, + "column": 104 + } } - } - }, - { - "type": "Identifier", - "name": "context", - "range": [ - 8771, - 8778 - ], - "loc": { - "start": { - "line": 253, - "column": 70 + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9108, + 9112 + ], + "loc": { + "start": { + "line": 258, + "column": 19 + }, + "end": { + "line": 258, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resourceListeners", + "range": [ + 9113, + 9131 + ], + "loc": { + "start": { + "line": 258, + "column": 24 + }, + "end": { + "line": 258, + "column": 42 + } + } + }, + "range": [ + 9108, + 9131 + ], + "loc": { + "start": { + "line": 258, + "column": 19 + }, + "end": { + "line": 258, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 9132, + 9137 + ], + "loc": { + "start": { + "line": 258, + "column": 43 + }, + "end": { + "line": 258, + "column": 48 + } + } + }, + "range": [ + 9108, + 9138 + ], + "loc": { + "start": { + "line": 258, + "column": 19 + }, + "end": { + "line": 258, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 9139, + 9143 + ], + "loc": { + "start": { + "line": 258, + "column": 50 + }, + "end": { + "line": 258, + "column": 54 + } + } + }, + "range": [ + 9108, + 9144 + ], + "loc": { + "start": { + "line": 258, + "column": 19 + }, + "end": { + "line": 258, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "id", + "range": [ + 9145, + 9147 + ], + "loc": { + "start": { + "line": 258, + "column": 56 + }, + "end": { + "line": 258, + "column": 58 + } + } + }, + "range": [ + 9108, + 9148 + ], + "loc": { + "start": { + "line": 258, + "column": 19 + }, + "end": { + "line": 258, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "name": "find", + "range": [ + 9149, + 9153 + ], + "loc": { + "start": { + "line": 258, + "column": 60 + }, + "end": { + "line": 258, + "column": 64 + } + } + }, + "range": [ + 9108, + 9153 + ], + "loc": { + "start": { + "line": 258, + "column": 19 + }, + "end": { + "line": 258, + "column": 64 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "x", + "range": [ + 9154, + 9155 + ], + "loc": { + "start": { + "line": 258, + "column": 65 + }, + "end": { + "line": 258, + "column": 66 + } + } + } + ], + "body": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "x", + "range": [ + 9159, + 9160 + ], + "loc": { + "start": { + "line": 258, + "column": 70 + }, + "end": { + "line": 258, + "column": 71 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 9161, + 9162 + ], + "loc": { + "start": { + "line": 258, + "column": 72 + }, + "end": { + "line": 258, + "column": 73 + } + } + }, + "range": [ + 9159, + 9163 + ], + "loc": { + "start": { + "line": 258, + "column": 70 + }, + "end": { + "line": 258, + "column": 74 + } + } + }, + "right": { + "type": "Identifier", + "name": "callback", + "range": [ + 9168, + 9176 + ], + "loc": { + "start": { + "line": 258, + "column": 79 + }, + "end": { + "line": 258, + "column": 87 + } + } + }, + "range": [ + 9159, + 9176 + ], + "loc": { + "start": { + "line": 258, + "column": 70 + }, + "end": { + "line": 258, + "column": 87 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 9154, + 9176 + ], + "loc": { + "start": { + "line": 258, + "column": 65 + }, + "end": { + "line": 258, + "column": 87 + } + } + } + ], + "range": [ + 9108, + 9177 + ], + "loc": { + "start": { + "line": 258, + "column": 19 + }, + "end": { + "line": 258, + "column": 88 + } + } + }, + "prefix": true, + "range": [ + 9107, + 9177 + ], + "loc": { + "start": { + "line": 258, + "column": 18 + }, + "end": { + "line": 258, + "column": 88 + } + } }, - "end": { - "line": 253, - "column": 77 - } - } - } - ], - "range": [ - 8759, - 8780 - ], - "loc": { - "start": { - "line": 253, - "column": 58 - }, - "end": { - "line": 253, - "column": 79 - } - } - } - ], - "range": [ - 8713, - 8781 - ], - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 80 - } - } - }, - "range": [ - 8713, - 8782 - ], - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 81 - } - } - } - ], - "range": [ - 8501, - 8794 - ], - "loc": { - "start": { - "line": 250, - "column": 18 - }, - "end": { - "line": 254, - "column": 11 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 8814, - 8818 - ], - "loc": { - "start": { - "line": 255, - "column": 12 + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9197, + 9201 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resourceListeners", + "range": [ + 9202, + 9220 + ], + "loc": { + "start": { + "line": 259, + "column": 21 + }, + "end": { + "line": 259, + "column": 39 + } + } + }, + "range": [ + 9197, + 9220 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 9221, + 9226 + ], + "loc": { + "start": { + "line": 259, + "column": 40 + }, + "end": { + "line": 259, + "column": 45 + } + } + }, + "range": [ + 9197, + 9227 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 9228, + 9232 + ], + "loc": { + "start": { + "line": 259, + "column": 47 + }, + "end": { + "line": 259, + "column": 51 + } + } + }, + "range": [ + 9197, + 9233 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "name": "id", + "range": [ + 9234, + 9236 + ], + "loc": { + "start": { + "line": 259, + "column": 53 + }, + "end": { + "line": 259, + "column": 55 + } + } + }, + "range": [ + 9197, + 9237 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 9238, + 9242 + ], + "loc": { + "start": { + "line": 259, + "column": 57 + }, + "end": { + "line": 259, + "column": 61 + } + } + }, + "range": [ + 9197, + 9242 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 61 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 9245, + 9253 + ], + "loc": { + "start": { + "line": 259, + "column": 64 + }, + "end": { + "line": 259, + "column": 72 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 9255, + 9262 + ], + "loc": { + "start": { + "line": 259, + "column": 74 + }, + "end": { + "line": 259, + "column": 81 + } + } + } + ], + "range": [ + 9243, + 9264 + ], + "loc": { + "start": { + "line": 259, + "column": 62 + }, + "end": { + "line": 259, + "column": 83 + } + } + } + ], + "range": [ + 9197, + 9265 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 84 + } + } + }, + "range": [ + 9197, + 9266 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 85 + } + } + } + ], + "range": [ + 9179, + 9282 + ], + "loc": { + "start": { + "line": 258, + "column": 90 + }, + "end": { + "line": 260, + "column": 15 + } + } }, - "end": { - "line": 255, - "column": 16 + "alternate": null, + "range": [ + 9103, + 9282 + ], + "loc": { + "start": { + "line": 258, + "column": 14 + }, + "end": { + "line": 260, + "column": 15 + } } } - }, - "property": { - "type": "Identifier", - "name": "_collectionListeners", - "range": [ - 8819, - 8839 - ], - "loc": { - "start": { - "line": 255, - "column": 17 + ], + "range": [ + 8885, + 9296 + ], + "loc": { + "start": { + "line": 255, + "column": 20 + }, + "end": { + "line": 261, + "column": 13 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9318, + 9322 + ], + "loc": { + "start": { + "line": 262, + "column": 14 + }, + "end": { + "line": 262, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_collectionListeners", + "range": [ + 9323, + 9343 + ], + "loc": { + "start": { + "line": 262, + "column": 19 + }, + "end": { + "line": 262, + "column": 39 + } + } + }, + "range": [ + 9318, + 9343 + ], + "loc": { + "start": { + "line": 262, + "column": 14 + }, + "end": { + "line": 262, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 9344, + 9349 + ], + "loc": { + "start": { + "line": 262, + "column": 40 + }, + "end": { + "line": 262, + "column": 45 + } + } + }, + "range": [ + 9318, + 9350 + ], + "loc": { + "start": { + "line": 262, + "column": 14 + }, + "end": { + "line": 262, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 9351, + 9355 + ], + "loc": { + "start": { + "line": 262, + "column": 47 + }, + "end": { + "line": 262, + "column": 51 + } + } + }, + "range": [ + 9318, + 9356 + ], + "loc": { + "start": { + "line": 262, + "column": 14 + }, + "end": { + "line": 262, + "column": 52 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9359, + 9363 + ], + "loc": { + "start": { + "line": 262, + "column": 55 + }, + "end": { + "line": 262, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "name": "_collectionListeners", + "range": [ + 9364, + 9384 + ], + "loc": { + "start": { + "line": 262, + "column": 60 + }, + "end": { + "line": 262, + "column": 80 + } + } + }, + "range": [ + 9359, + 9384 + ], + "loc": { + "start": { + "line": 262, + "column": 55 + }, + "end": { + "line": 262, + "column": 80 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 9385, + 9390 + ], + "loc": { + "start": { + "line": 262, + "column": 81 + }, + "end": { + "line": 262, + "column": 86 + } + } + }, + "range": [ + 9359, + 9391 + ], + "loc": { + "start": { + "line": 262, + "column": 55 + }, + "end": { + "line": 262, + "column": 87 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 9392, + 9396 + ], + "loc": { + "start": { + "line": 262, + "column": 88 + }, + "end": { + "line": 262, + "column": 92 + } + } + }, + "range": [ + 9359, + 9397 + ], + "loc": { + "start": { + "line": 262, + "column": 55 + }, + "end": { + "line": 262, + "column": 93 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 9401, + 9403 + ], + "loc": { + "start": { + "line": 262, + "column": 97 + }, + "end": { + "line": 262, + "column": 99 + } + } + }, + "range": [ + 9359, + 9403 + ], + "loc": { + "start": { + "line": 262, + "column": 55 + }, + "end": { + "line": 262, + "column": 99 + } + } + }, + "range": [ + 9318, + 9403 + ], + "loc": { + "start": { + "line": 262, + "column": 14 + }, + "end": { + "line": 262, + "column": 99 + } + } }, - "end": { - "line": 255, - "column": 37 - } - } - }, - "range": [ - 8814, - 8839 - ], - "loc": { - "start": { - "line": 255, - "column": 12 - }, - "end": { - "line": 255, - "column": 37 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 8840, - 8845 - ], - "loc": { - "start": { - "line": 255, - "column": 38 - }, - "end": { - "line": 255, - "column": 43 - } - } - }, - "range": [ - 8814, - 8846 - ], - "loc": { - "start": { - "line": 255, - "column": 12 - }, - "end": { - "line": 255, - "column": 44 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", - "range": [ - 8847, - 8851 - ], - "loc": { - "start": { - "line": 255, - "column": 45 - }, - "end": { - "line": 255, - "column": 49 - } - } - }, - "range": [ - 8814, - 8852 - ], - "loc": { - "start": { - "line": 255, - "column": 12 - }, - "end": { - "line": 255, - "column": 50 - } - } - }, - "right": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", "range": [ - 8855, - 8859 + 9318, + 9404 ], "loc": { "start": { - "line": 255, - "column": 53 + "line": 262, + "column": 14 + }, + "end": { + "line": 262, + "column": 100 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9424, + 9428 + ], + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_collectionListeners", + "range": [ + 9429, + 9449 + ], + "loc": { + "start": { + "line": 263, + "column": 24 + }, + "end": { + "line": 263, + "column": 44 + } + } + }, + "range": [ + 9424, + 9449 + ], + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 9450, + 9455 + ], + "loc": { + "start": { + "line": 263, + "column": 45 + }, + "end": { + "line": 263, + "column": 50 + } + } + }, + "range": [ + 9424, + 9456 + ], + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 9457, + 9461 + ], + "loc": { + "start": { + "line": 263, + "column": 52 + }, + "end": { + "line": 263, + "column": 56 + } + } + }, + "range": [ + 9424, + 9462 + ], + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "find", + "range": [ + 9463, + 9467 + ], + "loc": { + "start": { + "line": 263, + "column": 58 + }, + "end": { + "line": 263, + "column": 62 + } + } + }, + "range": [ + 9424, + 9467 + ], + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 62 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "x", + "range": [ + 9468, + 9469 + ], + "loc": { + "start": { + "line": 263, + "column": 63 + }, + "end": { + "line": 263, + "column": 64 + } + } + } + ], + "body": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "x", + "range": [ + 9473, + 9474 + ], + "loc": { + "start": { + "line": 263, + "column": 68 + }, + "end": { + "line": 263, + "column": 69 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 9475, + 9476 + ], + "loc": { + "start": { + "line": 263, + "column": 70 + }, + "end": { + "line": 263, + "column": 71 + } + } + }, + "range": [ + 9473, + 9477 + ], + "loc": { + "start": { + "line": 263, + "column": 68 + }, + "end": { + "line": 263, + "column": 72 + } + } + }, + "right": { + "type": "Identifier", + "name": "callback", + "range": [ + 9482, + 9490 + ], + "loc": { + "start": { + "line": 263, + "column": 77 + }, + "end": { + "line": 263, + "column": 85 + } + } + }, + "range": [ + 9473, + 9490 + ], + "loc": { + "start": { + "line": 263, + "column": 68 + }, + "end": { + "line": 263, + "column": 85 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 9468, + 9490 + ], + "loc": { + "start": { + "line": 263, + "column": 63 + }, + "end": { + "line": 263, + "column": 85 + } + } + } + ], + "range": [ + 9424, + 9491 + ], + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 86 + } + } }, - "end": { - "line": 255, - "column": 57 + "prefix": true, + "range": [ + 9423, + 9491 + ], + "loc": { + "start": { + "line": 263, + "column": 18 + }, + "end": { + "line": 263, + "column": 86 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_collectionListeners", - "range": [ - 8860, - 8880 - ], - "loc": { - "start": { - "line": 255, - "column": 58 - }, - "end": { - "line": 255, - "column": 78 + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9511, + 9515 + ], + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_collectionListeners", + "range": [ + 9516, + 9536 + ], + "loc": { + "start": { + "line": 264, + "column": 21 + }, + "end": { + "line": 264, + "column": 41 + } + } + }, + "range": [ + 9511, + 9536 + ], + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "event", + "range": [ + 9537, + 9542 + ], + "loc": { + "start": { + "line": 264, + "column": 42 + }, + "end": { + "line": 264, + "column": 47 + } + } + }, + "range": [ + 9511, + 9543 + ], + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 9544, + 9548 + ], + "loc": { + "start": { + "line": 264, + "column": 49 + }, + "end": { + "line": 264, + "column": 53 + } + } + }, + "range": [ + 9511, + 9549 + ], + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 54 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 9550, + 9554 + ], + "loc": { + "start": { + "line": 264, + "column": 55 + }, + "end": { + "line": 264, + "column": 59 + } + } + }, + "range": [ + 9511, + 9554 + ], + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 59 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 9557, + 9565 + ], + "loc": { + "start": { + "line": 264, + "column": 62 + }, + "end": { + "line": 264, + "column": 70 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 9567, + 9574 + ], + "loc": { + "start": { + "line": 264, + "column": 72 + }, + "end": { + "line": 264, + "column": 79 + } + } + } + ], + "range": [ + 9555, + 9576 + ], + "loc": { + "start": { + "line": 264, + "column": 60 + }, + "end": { + "line": 264, + "column": 81 + } + } + } + ], + "range": [ + 9511, + 9577 + ], + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 82 + } + } + }, + "range": [ + 9511, + 9578 + ], + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 83 + } + } + } + ], + "range": [ + 9493, + 9594 + ], + "loc": { + "start": { + "line": 263, + "column": 88 + }, + "end": { + "line": 265, + "column": 15 + } } - } - }, - "range": [ - 8855, - 8880 - ], - "loc": { - "start": { - "line": 255, - "column": 53 - }, - "end": { - "line": 255, - "column": 78 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 8881, - 8886 - ], - "loc": { - "start": { - "line": 255, - "column": 79 }, - "end": { - "line": 255, - "column": 84 - } - } - }, - "range": [ - 8855, - 8887 - ], - "loc": { - "start": { - "line": 255, - "column": 53 - }, - "end": { - "line": 255, - "column": 85 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", - "range": [ - 8888, - 8892 - ], - "loc": { - "start": { - "line": 255, - "column": 86 - }, - "end": { - "line": 255, - "column": 90 - } - } - }, - "range": [ - 8855, - 8893 - ], - "loc": { - "start": { - "line": 255, - "column": 53 - }, - "end": { - "line": 255, - "column": 91 - } - } - }, - "right": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 8897, - 8899 - ], - "loc": { - "start": { - "line": 255, - "column": 95 - }, - "end": { - "line": 255, - "column": 97 - } - } - }, - "range": [ - 8855, - 8899 - ], - "loc": { - "start": { - "line": 255, - "column": 53 - }, - "end": { - "line": 255, - "column": 97 - } - } - }, - "range": [ - 8814, - 8899 - ], - "loc": { - "start": { - "line": 255, - "column": 12 - }, - "end": { - "line": 255, - "column": 97 - } - } - }, - "range": [ - 8814, - 8900 - ], - "loc": { - "start": { - "line": 255, - "column": 12 - }, - "end": { - "line": 255, - "column": 98 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 8913, - 8917 - ], - "loc": { - "start": { - "line": 256, - "column": 12 - }, - "end": { - "line": 256, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "name": "_collectionListeners", + "alternate": null, "range": [ - 8918, - 8938 + 9419, + 9594 ], "loc": { "start": { - "line": 256, - "column": 17 + "line": 263, + "column": 14 }, "end": { - "line": 256, - "column": 37 + "line": 265, + "column": 15 } } - }, - "range": [ - 8913, - 8938 - ], - "loc": { - "start": { - "line": 256, - "column": 12 - }, - "end": { - "line": 256, - "column": 37 - } - } - }, - "property": { - "type": "Identifier", - "name": "event", - "range": [ - 8939, - 8944 - ], - "loc": { - "start": { - "line": 256, - "column": 38 - }, - "end": { - "line": 256, - "column": 43 - } } - }, - "range": [ - 8913, - 8945 ], - "loc": { - "start": { - "line": 256, - "column": 12 - }, - "end": { - "line": 256, - "column": 44 - } - } - }, - "property": { - "type": "Identifier", - "name": "type", "range": [ - 8946, - 8950 + 9302, + 9608 ], "loc": { "start": { - "line": 256, - "column": 45 - }, - "end": { - "line": 256, - "column": 49 - } - } - }, - "range": [ - 8913, - 8951 - ], - "loc": { - "start": { - "line": 256, - "column": 12 - }, - "end": { - "line": 256, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "name": "push", - "range": [ - 8952, - 8956 - ], - "loc": { - "start": { - "line": 256, - "column": 51 - }, - "end": { - "line": 256, - "column": 55 - } - } - }, - "range": [ - 8913, - 8956 - ], - "loc": { - "start": { - "line": 256, - "column": 12 - }, - "end": { - "line": 256, - "column": 55 - } - } - }, - "arguments": [ - { - "type": "ArrayExpression", - "elements": [ - { - "type": "Identifier", - "name": "callback", - "range": [ - 8959, - 8967 - ], - "loc": { - "start": { - "line": 256, - "column": 58 - }, - "end": { - "line": 256, - "column": 66 - } - } - }, - { - "type": "Identifier", - "name": "context", - "range": [ - 8969, - 8976 - ], - "loc": { - "start": { - "line": 256, - "column": 68 - }, - "end": { - "line": 256, - "column": 75 - } + "line": 261, + "column": 19 + }, + "end": { + "line": 266, + "column": 13 } } - ], + }, "range": [ - 8957, - 8978 + 8877, + 9608 ], "loc": { "start": { - "line": 256, - "column": 56 + "line": 255, + "column": 12 }, "end": { - "line": 256, - "column": 77 + "line": 266, + "column": 13 } } } ], "range": [ - 8913, - 8979 + 8863, + 9620 ], "loc": { "start": { - "line": 256, - "column": 12 + "line": 254, + "column": 51 }, "end": { - "line": 256, - "column": 78 + "line": 267, + "column": 11 } } }, + "generator": false, + "expression": false, "range": [ - 8913, - 8980 + 8855, + 9620 ], "loc": { "start": { - "line": 256, - "column": 12 + "line": 254, + "column": 43 }, "end": { - "line": 256, - "column": 79 + "line": 267, + "column": 11 } } } ], "range": [ - 8800, - 8992 + 8822, + 9621 ], "loc": { "start": { "line": 254, - "column": 17 + "column": 10 }, "end": { - "line": 257, - "column": 11 + "line": 267, + "column": 12 } } }, "range": [ - 8493, - 8992 + 8822, + 9622 ], "loc": { "start": { - "line": 250, + "line": 254, "column": 10 }, "end": { - "line": 257, - "column": 11 + "line": 267, + "column": 13 } - } + }, + "leadingComments": [ + { + "type": "Line", + "value": " TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.", + "range": [ + 8702, + 8811 + ], + "loc": { + "start": { + "line": 253, + "column": 10 + }, + "end": { + "line": 253, + "column": 119 + } + } + } + ] } ], "range": [ - 8481, - 9002 + 8690, + 9632 ], "loc": { "start": { - "line": 249, + "line": 252, "column": 15 }, "end": { - "line": 258, + "line": 268, "column": 9 } } }, "range": [ - 8343, - 9002 + 8552, + 9632 ], "loc": { "start": { - "line": 247, + "line": 250, "column": 8 }, "end": { - "line": 258, + "line": 268, "column": 9 } } } ], "range": [ - 8333, - 9010 + 8542, + 9640 ], "loc": { "start": { - "line": 246, + "line": 249, "column": 29 }, "end": { - "line": 259, + "line": 269, "column": 7 } } @@ -19015,16 +20337,16 @@ "type": "Identifier", "name": "Error", "range": [ - 9036, - 9041 + 9666, + 9671 ], "loc": { "start": { - "line": 260, + "line": 270, "column": 18 }, "end": { - "line": 260, + "line": 270, "column": 23 } } @@ -19041,16 +20363,16 @@ }, "tail": false, "range": [ - 9042, - 9059 + 9672, + 9689 ], "loc": { "start": { - "line": 260, + "line": 270, "column": 24 }, "end": { - "line": 260, + "line": 270, "column": 41 } } @@ -19063,16 +20385,16 @@ }, "tail": true, "range": [ - 9063, - 9066 + 9693, + 9696 ], "loc": { "start": { - "line": 260, + "line": 270, "column": 45 }, "end": { - "line": 260, + "line": 270, "column": 48 } } @@ -19083,110 +20405,110 @@ "type": "Identifier", "name": "type", "range": [ - 9059, - 9063 + 9689, + 9693 ], "loc": { "start": { - "line": 260, + "line": 270, "column": 41 }, "end": { - "line": 260, + "line": 270, "column": 45 } } } ], "range": [ - 9042, - 9066 + 9672, + 9696 ], "loc": { "start": { - "line": 260, + "line": 270, "column": 24 }, "end": { - "line": 260, + "line": 270, "column": 48 } } } ], "range": [ - 9032, - 9067 + 9662, + 9697 ], "loc": { "start": { - "line": 260, + "line": 270, "column": 14 }, "end": { - "line": 260, + "line": 270, "column": 49 } } }, "range": [ - 9026, - 9068 + 9656, + 9698 ], "loc": { "start": { - "line": 260, + "line": 270, "column": 8 }, "end": { - "line": 260, + "line": 270, "column": 50 } } } ], "range": [ - 9016, - 9076 + 9646, + 9706 ], "loc": { "start": { - "line": 259, + "line": 269, "column": 13 }, "end": { - "line": 261, + "line": 271, "column": 7 } } }, "range": [ - 8310, - 9076 + 8519, + 9706 ], "loc": { "start": { - "line": 246, + "line": 249, "column": 6 }, "end": { - "line": 261, + "line": 271, "column": 7 } } } ], "range": [ - 8302, - 9082 + 8511, + 9712 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 76 }, "end": { - "line": 262, + "line": 272, "column": 5 } } @@ -19202,16 +20524,16 @@ "type": "Identifier", "name": "Error", "range": [ - 9106, - 9111 + 9736, + 9741 ], "loc": { "start": { - "line": 263, + "line": 273, "column": 16 }, "end": { - "line": 263, + "line": 273, "column": 21 } } @@ -19228,16 +20550,16 @@ }, "tail": false, "range": [ - 9112, - 9130 + 9742, + 9760 ], "loc": { "start": { - "line": 263, + "line": 273, "column": 22 }, "end": { - "line": 263, + "line": 273, "column": 40 } } @@ -19250,16 +20572,16 @@ }, "tail": true, "range": [ - 9135, - 9138 + 9765, + 9768 ], "loc": { "start": { - "line": 263, + "line": 273, "column": 45 }, "end": { - "line": 263, + "line": 273, "column": 48 } } @@ -19270,110 +20592,110 @@ "type": "Identifier", "name": "event", "range": [ - 9130, - 9135 + 9760, + 9765 ], "loc": { "start": { - "line": 263, + "line": 273, "column": 40 }, "end": { - "line": 263, + "line": 273, "column": 45 } } } ], "range": [ - 9112, - 9138 + 9742, + 9768 ], "loc": { "start": { - "line": 263, + "line": 273, "column": 22 }, "end": { - "line": 263, + "line": 273, "column": 48 } } } ], "range": [ - 9102, - 9139 + 9732, + 9769 ], "loc": { "start": { - "line": 263, + "line": 273, "column": 12 }, "end": { - "line": 263, + "line": 273, "column": 49 } } }, "range": [ - 9096, - 9140 + 9726, + 9770 ], "loc": { "start": { - "line": 263, + "line": 273, "column": 6 }, "end": { - "line": 263, + "line": 273, "column": 50 } } } ], "range": [ - 9088, - 9146 + 9718, + 9776 ], "loc": { "start": { - "line": 262, + "line": 272, "column": 11 }, "end": { - "line": 264, + "line": 274, "column": 5 } } }, "range": [ - 8230, - 9146 + 8439, + 9776 ], "loc": { "start": { - "line": 245, + "line": 248, "column": 4 }, "end": { - "line": 264, + "line": 274, "column": 5 } } } ], "range": [ - 8224, - 9150 + 8433, + 9780 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 41 }, "end": { - "line": 265, + "line": 275, "column": 3 } } @@ -19381,16 +20703,16 @@ "generator": false, "expression": false, "range": [ - 8187, - 9150 + 8396, + 9780 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 4 }, "end": { - "line": 265, + "line": 275, "column": 3 } } @@ -19398,16 +20720,16 @@ "kind": "method", "computed": false, "range": [ - 8185, - 9150 + 8394, + 9780 ], "loc": { "start": { - "line": 244, + "line": 247, "column": 2 }, "end": { - "line": 265, + "line": 275, "column": 3 } }, @@ -19416,16 +20738,16 @@ "type": "Block", "value": "*\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n ", "range": [ - 7742, - 8182 + 7951, + 8391 ], "loc": { "start": { - "line": 233, + "line": 236, "column": 2 }, "end": { - "line": 243, + "line": 246, "column": 5 } } @@ -19436,16 +20758,16 @@ "type": "Block", "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @since 0.1.0\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 9154, - 9488 + 9784, + 10118 ], "loc": { "start": { - "line": 267, + "line": 277, "column": 2 }, "end": { - "line": 275, + "line": 285, "column": 5 } } @@ -19459,16 +20781,16 @@ "type": "Identifier", "name": "push", "range": [ - 9491, - 9495 + 10121, + 10125 ], "loc": { "start": { - "line": 276, + "line": 286, "column": 2 }, "end": { - "line": 276, + "line": 286, "column": 6 } } @@ -19481,16 +20803,16 @@ "type": "Identifier", "name": "root", "range": [ - 9496, - 9500 + 10126, + 10130 ], "loc": { "start": { - "line": 276, + "line": 286, "column": 7 }, "end": { - "line": 276, + "line": 286, "column": 11 } } @@ -19514,16 +20836,16 @@ "type": "Identifier", "name": "root", "range": [ - 9512, - 9516 + 10142, + 10146 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 8 }, "end": { - "line": 277, + "line": 287, "column": 12 } } @@ -19532,31 +20854,31 @@ "type": "Identifier", "name": "data", "range": [ - 9517, - 9521 + 10147, + 10151 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 13 }, "end": { - "line": 277, + "line": 287, "column": 17 } } }, "range": [ - 9512, - 9521 + 10142, + 10151 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 8 }, "end": { - "line": 277, + "line": 287, "column": 17 } } @@ -19565,31 +20887,31 @@ "type": "Identifier", "name": "constructor", "range": [ - 9522, - 9533 + 10152, + 10163 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 18 }, "end": { - "line": 277, + "line": 287, "column": 29 } } }, "range": [ - 9512, - 9533 + 10142, + 10163 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 8 }, "end": { - "line": 277, + "line": 287, "column": 29 } } @@ -19598,31 +20920,31 @@ "type": "Identifier", "name": "Array", "range": [ - 9538, - 9543 + 10168, + 10173 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 34 }, "end": { - "line": 277, + "line": 287, "column": 39 } } }, "range": [ - 9512, - 9543 + 10142, + 10173 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 8 }, "end": { - "line": 277, + "line": 287, "column": 39 } } @@ -19644,16 +20966,16 @@ "type": "Identifier", "name": "root", "range": [ - 9553, - 9557 + 10183, + 10187 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 6 }, "end": { - "line": 278, + "line": 288, "column": 10 } } @@ -19662,31 +20984,31 @@ "type": "Identifier", "name": "data", "range": [ - 9558, - 9562 + 10188, + 10192 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 11 }, "end": { - "line": 278, + "line": 288, "column": 15 } } }, "range": [ - 9553, - 9562 + 10183, + 10192 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 6 }, "end": { - "line": 278, + "line": 288, "column": 15 } } @@ -19695,31 +21017,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 9563, - 9570 + 10193, + 10200 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 16 }, "end": { - "line": 278, + "line": 288, "column": 23 } } }, "range": [ - 9553, - 9570 + 10183, + 10200 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 6 }, "end": { - "line": 278, + "line": 288, "column": 23 } } @@ -19733,16 +21055,16 @@ "type": "Identifier", "name": "x", "range": [ - 9571, - 9572 + 10201, + 10202 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 24 }, "end": { - "line": 278, + "line": 288, "column": 25 } } @@ -19756,16 +21078,16 @@ "object": { "type": "ThisExpression", "range": [ - 9576, - 9580 + 10206, + 10210 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 29 }, "end": { - "line": 278, + "line": 288, "column": 33 } } @@ -19774,31 +21096,31 @@ "type": "Identifier", "name": "add", "range": [ - 9581, - 9584 + 10211, + 10214 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 34 }, "end": { - "line": 278, + "line": 288, "column": 37 } } }, "range": [ - 9576, - 9584 + 10206, + 10214 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 29 }, "end": { - "line": 278, + "line": 288, "column": 37 } } @@ -19808,32 +21130,32 @@ "type": "Identifier", "name": "x", "range": [ - 9585, - 9586 + 10215, + 10216 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 38 }, "end": { - "line": 278, + "line": 288, "column": 39 } } } ], "range": [ - 9576, - 9587 + 10206, + 10217 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 29 }, "end": { - "line": 278, + "line": 288, "column": 40 } } @@ -19841,63 +21163,63 @@ "generator": false, "expression": true, "range": [ - 9571, - 9587 + 10201, + 10217 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 24 }, "end": { - "line": 278, + "line": 288, "column": 40 } } } ], "range": [ - 9553, - 9588 + 10183, + 10218 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 6 }, "end": { - "line": 278, + "line": 288, "column": 41 } } }, "range": [ - 9553, - 9589 + 10183, + 10219 ], "loc": { "start": { - "line": 278, + "line": 288, "column": 6 }, "end": { - "line": 278, + "line": 288, "column": 42 } } } ], "range": [ - 9545, - 9595 + 10175, + 10225 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 41 }, "end": { - "line": 279, + "line": 289, "column": 5 } } @@ -19915,16 +21237,16 @@ "object": { "type": "ThisExpression", "range": [ - 9609, - 9613 + 10239, + 10243 ], "loc": { "start": { - "line": 280, + "line": 290, "column": 6 }, "end": { - "line": 280, + "line": 290, "column": 10 } } @@ -19933,31 +21255,31 @@ "type": "Identifier", "name": "add", "range": [ - 9614, - 9617 + 10244, + 10247 ], "loc": { "start": { - "line": 280, + "line": 290, "column": 11 }, "end": { - "line": 280, + "line": 290, "column": 14 } } }, "range": [ - 9609, - 9617 + 10239, + 10247 ], "loc": { "start": { - "line": 280, + "line": 290, "column": 6 }, "end": { - "line": 280, + "line": 290, "column": 14 } } @@ -19970,16 +21292,16 @@ "type": "Identifier", "name": "root", "range": [ - 9618, - 9622 + 10248, + 10252 ], "loc": { "start": { - "line": 280, + "line": 290, "column": 15 }, "end": { - "line": 280, + "line": 290, "column": 19 } } @@ -19988,93 +21310,93 @@ "type": "Identifier", "name": "data", "range": [ - 9623, - 9627 + 10253, + 10257 ], "loc": { "start": { - "line": 280, + "line": 290, "column": 20 }, "end": { - "line": 280, + "line": 290, "column": 24 } } }, "range": [ - 9618, - 9627 + 10248, + 10257 ], "loc": { "start": { - "line": 280, + "line": 290, "column": 15 }, "end": { - "line": 280, + "line": 290, "column": 24 } } } ], "range": [ - 9609, - 9628 + 10239, + 10258 ], "loc": { "start": { - "line": 280, + "line": 290, "column": 6 }, "end": { - "line": 280, + "line": 290, "column": 25 } } }, "range": [ - 9609, - 9629 + 10239, + 10259 ], "loc": { "start": { - "line": 280, + "line": 290, "column": 6 }, "end": { - "line": 280, + "line": 290, "column": 26 } } } ], "range": [ - 9601, - 9635 + 10231, + 10265 ], "loc": { "start": { - "line": 279, + "line": 289, "column": 11 }, "end": { - "line": 281, + "line": 291, "column": 5 } } }, "range": [ - 9508, - 9635 + 10138, + 10265 ], "loc": { "start": { - "line": 277, + "line": 287, "column": 4 }, "end": { - "line": 281, + "line": 291, "column": 5 } } @@ -20088,16 +21410,16 @@ "type": "Identifier", "name": "root", "range": [ - 9644, - 9648 + 10274, + 10278 ], "loc": { "start": { - "line": 282, + "line": 292, "column": 8 }, "end": { - "line": 282, + "line": 292, "column": 12 } } @@ -20106,31 +21428,31 @@ "type": "Identifier", "name": "included", "range": [ - 9649, - 9657 + 10279, + 10287 ], "loc": { "start": { - "line": 282, + "line": 292, "column": 13 }, "end": { - "line": 282, + "line": 292, "column": 21 } } }, "range": [ - 9644, - 9657 + 10274, + 10287 ], "loc": { "start": { - "line": 282, + "line": 292, "column": 8 }, "end": { - "line": 282, + "line": 292, "column": 21 } } @@ -20152,16 +21474,16 @@ "type": "Identifier", "name": "root", "range": [ - 9667, - 9671 + 10297, + 10301 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 6 }, "end": { - "line": 283, + "line": 293, "column": 10 } } @@ -20170,31 +21492,31 @@ "type": "Identifier", "name": "included", "range": [ - 9672, - 9680 + 10302, + 10310 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 11 }, "end": { - "line": 283, + "line": 293, "column": 19 } } }, "range": [ - 9667, - 9680 + 10297, + 10310 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 6 }, "end": { - "line": 283, + "line": 293, "column": 19 } } @@ -20203,31 +21525,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 9681, - 9688 + 10311, + 10318 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 20 }, "end": { - "line": 283, + "line": 293, "column": 27 } } }, "range": [ - 9667, - 9688 + 10297, + 10318 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 6 }, "end": { - "line": 283, + "line": 293, "column": 27 } } @@ -20241,16 +21563,16 @@ "type": "Identifier", "name": "x", "range": [ - 9689, - 9690 + 10319, + 10320 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 28 }, "end": { - "line": 283, + "line": 293, "column": 29 } } @@ -20264,16 +21586,16 @@ "object": { "type": "ThisExpression", "range": [ - 9694, - 9698 + 10324, + 10328 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 33 }, "end": { - "line": 283, + "line": 293, "column": 37 } } @@ -20282,31 +21604,31 @@ "type": "Identifier", "name": "add", "range": [ - 9699, - 9702 + 10329, + 10332 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 38 }, "end": { - "line": 283, + "line": 293, "column": 41 } } }, "range": [ - 9694, - 9702 + 10324, + 10332 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 33 }, "end": { - "line": 283, + "line": 293, "column": 41 } } @@ -20316,32 +21638,32 @@ "type": "Identifier", "name": "x", "range": [ - 9703, - 9704 + 10333, + 10334 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 42 }, "end": { - "line": 283, + "line": 293, "column": 43 } } } ], "range": [ - 9694, - 9705 + 10324, + 10335 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 33 }, "end": { - "line": 283, + "line": 293, "column": 44 } } @@ -20349,95 +21671,95 @@ "generator": false, "expression": true, "range": [ - 9689, - 9705 + 10319, + 10335 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 28 }, "end": { - "line": 283, + "line": 293, "column": 44 } } } ], "range": [ - 9667, - 9706 + 10297, + 10336 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 6 }, "end": { - "line": 283, + "line": 293, "column": 45 } } }, "range": [ - 9667, - 9707 + 10297, + 10337 ], "loc": { "start": { - "line": 283, + "line": 293, "column": 6 }, "end": { - "line": 283, + "line": 293, "column": 46 } } } ], "range": [ - 9659, - 9713 + 10289, + 10343 ], "loc": { "start": { - "line": 282, + "line": 292, "column": 23 }, "end": { - "line": 284, + "line": 294, "column": 5 } } }, "alternate": null, "range": [ - 9640, - 9713 + 10270, + 10343 ], "loc": { "start": { - "line": 282, + "line": 292, "column": 4 }, "end": { - "line": 284, + "line": 294, "column": 5 } } } ], "range": [ - 9502, - 9717 + 10132, + 10347 ], "loc": { "start": { - "line": 276, + "line": 286, "column": 13 }, "end": { - "line": 285, + "line": 295, "column": 3 } } @@ -20445,16 +21767,16 @@ "generator": false, "expression": false, "range": [ - 9495, - 9717 + 10125, + 10347 ], "loc": { "start": { - "line": 276, + "line": 286, "column": 6 }, "end": { - "line": 285, + "line": 295, "column": 3 } } @@ -20462,16 +21784,16 @@ "kind": "method", "computed": false, "range": [ - 9491, - 9717 + 10121, + 10347 ], "loc": { "start": { - "line": 276, + "line": 286, "column": 2 }, "end": { - "line": 285, + "line": 295, "column": 3 } }, @@ -20480,16 +21802,16 @@ "type": "Block", "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @since 0.1.0\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 9154, - 9488 + 9784, + 10118 ], "loc": { "start": { - "line": 267, + "line": 277, "column": 2 }, "end": { - "line": 275, + "line": 285, "column": 5 } } @@ -20500,16 +21822,16 @@ "type": "Block", "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @since 0.1.0\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n ", "range": [ - 9721, - 10063 + 10351, + 10693 ], "loc": { "start": { - "line": 287, + "line": 297, "column": 2 }, "end": { - "line": 295, + "line": 305, "column": 5 } } @@ -20523,16 +21845,16 @@ "type": "Identifier", "name": "remove", "range": [ - 10066, - 10072 + 10696, + 10702 ], "loc": { "start": { - "line": 296, + "line": 306, "column": 2 }, "end": { - "line": 296, + "line": 306, "column": 8 } } @@ -20545,16 +21867,16 @@ "type": "Identifier", "name": "type", "range": [ - 10073, - 10077 + 10703, + 10707 ], "loc": { "start": { - "line": 296, + "line": 306, "column": 9 }, "end": { - "line": 296, + "line": 306, "column": 13 } } @@ -20563,16 +21885,16 @@ "type": "Identifier", "name": "id", "range": [ - 10079, - 10081 + 10709, + 10711 ], "loc": { "start": { - "line": 296, + "line": 306, "column": 15 }, "end": { - "line": 296, + "line": 306, "column": 17 } } @@ -20587,16 +21909,16 @@ "type": "Identifier", "name": "type", "range": [ - 10093, - 10097 + 10723, + 10727 ], "loc": { "start": { - "line": 297, + "line": 307, "column": 8 }, "end": { - "line": 297, + "line": 307, "column": 12 } } @@ -20615,16 +21937,16 @@ "object": { "type": "ThisExpression", "range": [ - 10111, - 10115 + 10741, + 10745 ], "loc": { "start": { - "line": 298, + "line": 308, "column": 10 }, "end": { - "line": 298, + "line": 308, "column": 14 } } @@ -20633,31 +21955,31 @@ "type": "Identifier", "name": "_types", "range": [ - 10116, - 10122 + 10746, + 10752 ], "loc": { "start": { - "line": 298, + "line": 308, "column": 15 }, "end": { - "line": 298, + "line": 308, "column": 21 } } }, "range": [ - 10111, - 10122 + 10741, + 10752 ], "loc": { "start": { - "line": 298, + "line": 308, "column": 10 }, "end": { - "line": 298, + "line": 308, "column": 21 } } @@ -20666,31 +21988,31 @@ "type": "Identifier", "name": "type", "range": [ - 10123, - 10127 + 10753, + 10757 ], "loc": { "start": { - "line": 298, + "line": 308, "column": 22 }, "end": { - "line": 298, + "line": 308, "column": 26 } } }, "range": [ - 10111, - 10128 + 10741, + 10758 ], "loc": { "start": { - "line": 298, + "line": 308, "column": 10 }, "end": { - "line": 298, + "line": 308, "column": 27 } } @@ -20704,16 +22026,16 @@ "type": "Identifier", "name": "id", "range": [ - 10144, - 10146 + 10774, + 10776 ], "loc": { "start": { - "line": 299, + "line": 309, "column": 12 }, "end": { - "line": 299, + "line": 309, "column": 14 } } @@ -20730,16 +22052,16 @@ "type": "Identifier", "name": "resource", "range": [ - 10164, - 10172 + 10794, + 10802 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 14 }, "end": { - "line": 300, + "line": 310, "column": 22 } } @@ -20756,16 +22078,16 @@ "object": { "type": "ThisExpression", "range": [ - 10175, - 10179 + 10805, + 10809 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 25 }, "end": { - "line": 300, + "line": 310, "column": 29 } } @@ -20774,31 +22096,31 @@ "type": "Identifier", "name": "_data", "range": [ - 10180, - 10185 + 10810, + 10815 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 30 }, "end": { - "line": 300, + "line": 310, "column": 35 } } }, "range": [ - 10175, - 10185 + 10805, + 10815 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 25 }, "end": { - "line": 300, + "line": 310, "column": 35 } } @@ -20807,31 +22129,31 @@ "type": "Identifier", "name": "type", "range": [ - 10186, - 10190 + 10816, + 10820 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 36 }, "end": { - "line": 300, + "line": 310, "column": 40 } } }, "range": [ - 10175, - 10191 + 10805, + 10821 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 25 }, "end": { - "line": 300, + "line": 310, "column": 41 } } @@ -20840,46 +22162,46 @@ "type": "Identifier", "name": "id", "range": [ - 10192, - 10194 + 10822, + 10824 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 42 }, "end": { - "line": 300, + "line": 310, "column": 44 } } }, "range": [ - 10175, - 10195 + 10805, + 10825 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 25 }, "end": { - "line": 300, + "line": 310, "column": 45 } } }, "range": [ - 10164, - 10195 + 10794, + 10825 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 14 }, "end": { - "line": 300, + "line": 310, "column": 45 } } @@ -20887,16 +22209,16 @@ ], "kind": "let", "range": [ - 10160, - 10196 + 10790, + 10826 ], "loc": { "start": { - "line": 300, + "line": 310, "column": 10 }, "end": { - "line": 300, + "line": 310, "column": 46 } } @@ -20907,16 +22229,16 @@ "type": "Identifier", "name": "resource", "range": [ - 10211, - 10219 + 10841, + 10849 ], "loc": { "start": { - "line": 301, + "line": 311, "column": 14 }, "end": { - "line": 301, + "line": 311, "column": 22 } } @@ -20934,16 +22256,16 @@ "object": { "type": "ThisExpression", "range": [ - 10235, - 10239 + 10865, + 10869 ], "loc": { "start": { - "line": 302, + "line": 312, "column": 12 }, "end": { - "line": 302, + "line": 312, "column": 16 } } @@ -20952,31 +22274,31 @@ "type": "Identifier", "name": "_remove", "range": [ - 10240, - 10247 + 10870, + 10877 ], "loc": { "start": { - "line": 302, + "line": 312, "column": 17 }, "end": { - "line": 302, + "line": 312, "column": 24 } } }, "range": [ - 10235, - 10247 + 10865, + 10877 ], "loc": { "start": { - "line": 302, + "line": 312, "column": 12 }, "end": { - "line": 302, + "line": 312, "column": 24 } } @@ -20986,47 +22308,47 @@ "type": "Identifier", "name": "resource", "range": [ - 10248, - 10256 + 10878, + 10886 ], "loc": { "start": { - "line": 302, + "line": 312, "column": 25 }, "end": { - "line": 302, + "line": 312, "column": 33 } } } ], "range": [ - 10235, - 10257 + 10865, + 10887 ], "loc": { "start": { - "line": 302, + "line": 312, "column": 12 }, "end": { - "line": 302, + "line": 312, "column": 34 } } }, "range": [ - 10235, - 10258 + 10865, + 10888 ], "loc": { "start": { - "line": 302, + "line": 312, "column": 12 }, "end": { - "line": 302, + "line": 312, "column": 35 } } @@ -21048,16 +22370,16 @@ "object": { "type": "ThisExpression", "range": [ - 10275, - 10279 + 10905, + 10909 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 16 }, "end": { - "line": 303, + "line": 313, "column": 20 } } @@ -21066,31 +22388,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 10280, - 10298 + 10910, + 10928 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 21 }, "end": { - "line": 303, + "line": 313, "column": 39 } } }, "range": [ - 10275, - 10298 + 10905, + 10928 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 16 }, "end": { - "line": 303, + "line": 313, "column": 39 } } @@ -21100,31 +22422,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 10299, - 10308 + 10929, + 10938 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 40 }, "end": { - "line": 303, + "line": 313, "column": 49 } } }, "range": [ - 10275, - 10309 + 10905, + 10939 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 16 }, "end": { - "line": 303, + "line": 313, "column": 50 } } @@ -21133,31 +22455,31 @@ "type": "Identifier", "name": "type", "range": [ - 10310, - 10314 + 10940, + 10944 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 51 }, "end": { - "line": 303, + "line": 313, "column": 55 } } }, "range": [ - 10275, - 10315 + 10905, + 10945 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 16 }, "end": { - "line": 303, + "line": 313, "column": 56 } } @@ -21177,16 +22499,16 @@ "object": { "type": "ThisExpression", "range": [ - 10319, - 10323 + 10949, + 10953 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 60 }, "end": { - "line": 303, + "line": 313, "column": 64 } } @@ -21195,31 +22517,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 10324, - 10342 + 10954, + 10972 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 65 }, "end": { - "line": 303, + "line": 313, "column": 83 } } }, "range": [ - 10319, - 10342 + 10949, + 10972 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 60 }, "end": { - "line": 303, + "line": 313, "column": 83 } } @@ -21229,31 +22551,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 10343, - 10352 + 10973, + 10982 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 84 }, "end": { - "line": 303, + "line": 313, "column": 93 } } }, "range": [ - 10319, - 10353 + 10949, + 10983 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 60 }, "end": { - "line": 303, + "line": 313, "column": 94 } } @@ -21262,31 +22584,31 @@ "type": "Identifier", "name": "type", "range": [ - 10354, - 10358 + 10984, + 10988 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 95 }, "end": { - "line": 303, + "line": 313, "column": 99 } } }, "range": [ - 10319, - 10359 + 10949, + 10989 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 60 }, "end": { - "line": 303, + "line": 313, "column": 100 } } @@ -21295,46 +22617,46 @@ "type": "Identifier", "name": "id", "range": [ - 10360, - 10362 + 10990, + 10992 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 101 }, "end": { - "line": 303, + "line": 313, "column": 103 } } }, "range": [ - 10319, - 10363 + 10949, + 10993 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 60 }, "end": { - "line": 303, + "line": 313, "column": 104 } } }, "range": [ - 10275, - 10363 + 10905, + 10993 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 16 }, "end": { - "line": 303, + "line": 313, "column": 104 } } @@ -21364,16 +22686,16 @@ "object": { "type": "ThisExpression", "range": [ - 10382, - 10386 + 11012, + 11016 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 15 }, "end": { - "line": 304, + "line": 314, "column": 19 } } @@ -21382,31 +22704,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 10387, - 10405 + 11017, + 11035 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 20 }, "end": { - "line": 304, + "line": 314, "column": 38 } } }, "range": [ - 10382, - 10405 + 11012, + 11035 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 15 }, "end": { - "line": 304, + "line": 314, "column": 38 } } @@ -21416,31 +22738,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 10406, - 10415 + 11036, + 11045 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 39 }, "end": { - "line": 304, + "line": 314, "column": 48 } } }, "range": [ - 10382, - 10416 + 11012, + 11046 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 15 }, "end": { - "line": 304, + "line": 314, "column": 49 } } @@ -21449,31 +22771,31 @@ "type": "Identifier", "name": "type", "range": [ - 10417, - 10421 + 11047, + 11051 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 50 }, "end": { - "line": 304, + "line": 314, "column": 54 } } }, "range": [ - 10382, - 10422 + 11012, + 11052 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 15 }, "end": { - "line": 304, + "line": 314, "column": 55 } } @@ -21482,31 +22804,31 @@ "type": "Identifier", "name": "id", "range": [ - 10423, - 10425 + 11053, + 11055 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 56 }, "end": { - "line": 304, + "line": 314, "column": 58 } } }, "range": [ - 10382, - 10426 + 11012, + 11056 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 15 }, "end": { - "line": 304, + "line": 314, "column": 59 } } @@ -21515,31 +22837,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 10427, - 10434 + 11057, + 11064 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 60 }, "end": { - "line": 304, + "line": 314, "column": 67 } } }, "range": [ - 10382, - 10434 + 11012, + 11064 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 15 }, "end": { - "line": 304, + "line": 314, "column": 67 } } @@ -21553,16 +22875,16 @@ "type": "Identifier", "name": "x", "range": [ - 10435, - 10436 + 11065, + 11066 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 68 }, "end": { - "line": 304, + "line": 314, "column": 69 } } @@ -21580,16 +22902,16 @@ "type": "Identifier", "name": "x", "range": [ - 10440, - 10441 + 11070, + 11071 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 73 }, "end": { - "line": 304, + "line": 314, "column": 74 } } @@ -21599,31 +22921,31 @@ "value": 0, "raw": "0", "range": [ - 10442, - 10443 + 11072, + 11073 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 75 }, "end": { - "line": 304, + "line": 314, "column": 76 } } }, "range": [ - 10440, - 10444 + 11070, + 11074 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 73 }, "end": { - "line": 304, + "line": 314, "column": 77 } } @@ -21632,31 +22954,31 @@ "type": "Identifier", "name": "call", "range": [ - 10445, - 10449 + 11075, + 11079 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 78 }, "end": { - "line": 304, + "line": 314, "column": 82 } } }, "range": [ - 10440, - 10449 + 11070, + 11079 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 73 }, "end": { - "line": 304, + "line": 314, "column": 82 } } @@ -21669,16 +22991,16 @@ "type": "Identifier", "name": "x", "range": [ - 10450, - 10451 + 11080, + 11081 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 83 }, "end": { - "line": 304, + "line": 314, "column": 84 } } @@ -21688,31 +23010,31 @@ "value": 1, "raw": "1", "range": [ - 10452, - 10453 + 11082, + 11083 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 85 }, "end": { - "line": 304, + "line": 314, "column": 86 } } }, "range": [ - 10450, - 10454 + 11080, + 11084 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 83 }, "end": { - "line": 304, + "line": 314, "column": 87 } } @@ -21721,32 +23043,32 @@ "type": "Identifier", "name": "resource", "range": [ - 10456, - 10464 + 11086, + 11094 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 89 }, "end": { - "line": 304, + "line": 314, "column": 97 } } } ], "range": [ - 10440, - 10465 + 11070, + 11095 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 73 }, "end": { - "line": 304, + "line": 314, "column": 98 } } @@ -21754,79 +23076,79 @@ "generator": false, "expression": true, "range": [ - 10435, - 10465 + 11065, + 11095 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 68 }, "end": { - "line": 304, + "line": 314, "column": 98 } } } ], "range": [ - 10382, - 10466 + 11012, + 11096 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 15 }, "end": { - "line": 304, + "line": 314, "column": 99 } } }, "range": [ - 10382, - 10467 + 11012, + 11097 ], "loc": { "start": { - "line": 304, + "line": 314, "column": 15 }, "end": { - "line": 304, + "line": 314, "column": 100 } } } ], "range": [ - 10365, - 10481 + 10995, + 11111 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 106 }, "end": { - "line": 305, + "line": 315, "column": 13 } } }, "alternate": null, "range": [ - 10271, - 10481 + 10901, + 11111 ], "loc": { "start": { - "line": 303, + "line": 313, "column": 12 }, "end": { - "line": 305, + "line": 315, "column": 13 } } @@ -21845,16 +23167,16 @@ "object": { "type": "ThisExpression", "range": [ - 10498, - 10502 + 11128, + 11132 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 16 }, "end": { - "line": 306, + "line": 316, "column": 20 } } @@ -21863,31 +23185,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 10503, - 10523 + 11133, + 11153 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 21 }, "end": { - "line": 306, + "line": 316, "column": 41 } } }, "range": [ - 10498, - 10523 + 11128, + 11153 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 16 }, "end": { - "line": 306, + "line": 316, "column": 41 } } @@ -21897,31 +23219,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 10524, - 10533 + 11154, + 11163 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 42 }, "end": { - "line": 306, + "line": 316, "column": 51 } } }, "range": [ - 10498, - 10534 + 11128, + 11164 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 16 }, "end": { - "line": 306, + "line": 316, "column": 52 } } @@ -21930,31 +23252,31 @@ "type": "Identifier", "name": "type", "range": [ - 10535, - 10539 + 11165, + 11169 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 53 }, "end": { - "line": 306, + "line": 316, "column": 57 } } }, "range": [ - 10498, - 10540 + 11128, + 11170 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 16 }, "end": { - "line": 306, + "line": 316, "column": 58 } } @@ -21981,16 +23303,16 @@ "object": { "type": "ThisExpression", "range": [ - 10558, - 10562 + 11188, + 11192 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 14 }, "end": { - "line": 307, + "line": 317, "column": 18 } } @@ -21999,31 +23321,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 10563, - 10583 + 11193, + 11213 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 19 }, "end": { - "line": 307, + "line": 317, "column": 39 } } }, "range": [ - 10558, - 10583 + 11188, + 11213 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 14 }, "end": { - "line": 307, + "line": 317, "column": 39 } } @@ -22033,31 +23355,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 10584, - 10593 + 11214, + 11223 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 40 }, "end": { - "line": 307, + "line": 317, "column": 49 } } }, "range": [ - 10558, - 10594 + 11188, + 11224 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 14 }, "end": { - "line": 307, + "line": 317, "column": 50 } } @@ -22066,31 +23388,31 @@ "type": "Identifier", "name": "type", "range": [ - 10595, - 10599 + 11225, + 11229 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 51 }, "end": { - "line": 307, + "line": 317, "column": 55 } } }, "range": [ - 10558, - 10600 + 11188, + 11230 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 14 }, "end": { - "line": 307, + "line": 317, "column": 56 } } @@ -22099,31 +23421,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 10601, - 10608 + 11231, + 11238 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 57 }, "end": { - "line": 307, + "line": 317, "column": 64 } } }, "range": [ - 10558, - 10608 + 11188, + 11238 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 14 }, "end": { - "line": 307, + "line": 317, "column": 64 } } @@ -22137,16 +23459,16 @@ "type": "Identifier", "name": "x", "range": [ - 10609, - 10610 + 11239, + 11240 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 65 }, "end": { - "line": 307, + "line": 317, "column": 66 } } @@ -22164,16 +23486,16 @@ "type": "Identifier", "name": "x", "range": [ - 10614, - 10615 + 11244, + 11245 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 70 }, "end": { - "line": 307, + "line": 317, "column": 71 } } @@ -22183,31 +23505,31 @@ "value": 0, "raw": "0", "range": [ - 10616, - 10617 + 11246, + 11247 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 72 }, "end": { - "line": 307, + "line": 317, "column": 73 } } }, "range": [ - 10614, - 10618 + 11244, + 11248 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 70 }, "end": { - "line": 307, + "line": 317, "column": 74 } } @@ -22216,31 +23538,31 @@ "type": "Identifier", "name": "call", "range": [ - 10619, - 10623 + 11249, + 11253 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 75 }, "end": { - "line": 307, + "line": 317, "column": 79 } } }, "range": [ - 10614, - 10623 + 11244, + 11253 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 70 }, "end": { - "line": 307, + "line": 317, "column": 79 } } @@ -22253,16 +23575,16 @@ "type": "Identifier", "name": "x", "range": [ - 10624, - 10625 + 11254, + 11255 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 80 }, "end": { - "line": 307, + "line": 317, "column": 81 } } @@ -22272,31 +23594,31 @@ "value": 1, "raw": "1", "range": [ - 10626, - 10627 + 11256, + 11257 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 82 }, "end": { - "line": 307, + "line": 317, "column": 83 } } }, "range": [ - 10624, - 10628 + 11254, + 11258 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 80 }, "end": { - "line": 307, + "line": 317, "column": 84 } } @@ -22305,32 +23627,32 @@ "type": "Identifier", "name": "resource", "range": [ - 10630, - 10638 + 11260, + 11268 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 86 }, "end": { - "line": 307, + "line": 317, "column": 94 } } } ], "range": [ - 10614, - 10639 + 11244, + 11269 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 70 }, "end": { - "line": 307, + "line": 317, "column": 95 } } @@ -22338,127 +23660,127 @@ "generator": false, "expression": true, "range": [ - 10609, - 10639 + 11239, + 11269 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 65 }, "end": { - "line": 307, + "line": 317, "column": 95 } } } ], "range": [ - 10558, - 10640 + 11188, + 11270 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 14 }, "end": { - "line": 307, + "line": 317, "column": 96 } } }, "range": [ - 10558, - 10641 + 11188, + 11271 ], "loc": { "start": { - "line": 307, + "line": 317, "column": 14 }, "end": { - "line": 307, + "line": 317, "column": 97 } } } ], "range": [ - 10542, - 10655 + 11172, + 11285 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 60 }, "end": { - "line": 308, + "line": 318, "column": 13 } } }, "alternate": null, "range": [ - 10494, - 10655 + 11124, + 11285 ], "loc": { "start": { - "line": 306, + "line": 316, "column": 12 }, "end": { - "line": 308, + "line": 318, "column": 13 } } } ], "range": [ - 10221, - 10667 + 10851, + 11297 ], "loc": { "start": { - "line": 301, + "line": 311, "column": 24 }, "end": { - "line": 309, + "line": 319, "column": 11 } } }, "alternate": null, "range": [ - 10207, - 10667 + 10837, + 11297 ], "loc": { "start": { - "line": 301, + "line": 311, "column": 10 }, "end": { - "line": 309, + "line": 319, "column": 11 } } } ], "range": [ - 10148, - 10677 + 10778, + 11307 ], "loc": { "start": { - "line": 299, + "line": 309, "column": 16 }, "end": { - "line": 310, + "line": 320, "column": 9 } } @@ -22482,16 +23804,16 @@ "type": "Identifier", "name": "Object", "range": [ - 10695, - 10701 + 11325, + 11331 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 10 }, "end": { - "line": 311, + "line": 321, "column": 16 } } @@ -22500,31 +23822,31 @@ "type": "Identifier", "name": "keys", "range": [ - 10702, - 10706 + 11332, + 11336 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 17 }, "end": { - "line": 311, + "line": 321, "column": 21 } } }, "range": [ - 10695, - 10706 + 11325, + 11336 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 10 }, "end": { - "line": 311, + "line": 321, "column": 21 } } @@ -22539,16 +23861,16 @@ "object": { "type": "ThisExpression", "range": [ - 10707, - 10711 + 11337, + 11341 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 22 }, "end": { - "line": 311, + "line": 321, "column": 26 } } @@ -22557,31 +23879,31 @@ "type": "Identifier", "name": "_data", "range": [ - 10712, - 10717 + 11342, + 11347 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 27 }, "end": { - "line": 311, + "line": 321, "column": 32 } } }, "range": [ - 10707, - 10717 + 11337, + 11347 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 22 }, "end": { - "line": 311, + "line": 321, "column": 32 } } @@ -22590,47 +23912,47 @@ "type": "Identifier", "name": "type", "range": [ - 10718, - 10722 + 11348, + 11352 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 33 }, "end": { - "line": 311, + "line": 321, "column": 37 } } }, "range": [ - 10707, - 10723 + 11337, + 11353 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 22 }, "end": { - "line": 311, + "line": 321, "column": 38 } } } ], "range": [ - 10695, - 10724 + 11325, + 11354 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 10 }, "end": { - "line": 311, + "line": 321, "column": 39 } } @@ -22639,31 +23961,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 10725, - 10732 + 11355, + 11362 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 40 }, "end": { - "line": 311, + "line": 321, "column": 47 } } }, "range": [ - 10695, - 10732 + 11325, + 11362 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 10 }, "end": { - "line": 311, + "line": 321, "column": 47 } } @@ -22677,16 +23999,16 @@ "type": "Identifier", "name": "id", "range": [ - 10733, - 10735 + 11363, + 11365 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 48 }, "end": { - "line": 311, + "line": 321, "column": 50 } } @@ -22700,16 +24022,16 @@ "object": { "type": "ThisExpression", "range": [ - 10739, - 10743 + 11369, + 11373 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 54 }, "end": { - "line": 311, + "line": 321, "column": 58 } } @@ -22718,31 +24040,31 @@ "type": "Identifier", "name": "remove", "range": [ - 10744, - 10750 + 11374, + 11380 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 59 }, "end": { - "line": 311, + "line": 321, "column": 65 } } }, "range": [ - 10739, - 10750 + 11369, + 11380 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 54 }, "end": { - "line": 311, + "line": 321, "column": 65 } } @@ -22752,16 +24074,16 @@ "type": "Identifier", "name": "type", "range": [ - 10751, - 10755 + 11381, + 11385 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 66 }, "end": { - "line": 311, + "line": 321, "column": 70 } } @@ -22770,32 +24092,32 @@ "type": "Identifier", "name": "id", "range": [ - 10757, - 10759 + 11387, + 11389 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 72 }, "end": { - "line": 311, + "line": 321, "column": 74 } } } ], "range": [ - 10739, - 10760 + 11369, + 11390 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 54 }, "end": { - "line": 311, + "line": 321, "column": 75 } } @@ -22803,94 +24125,94 @@ "generator": false, "expression": true, "range": [ - 10733, - 10760 + 11363, + 11390 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 48 }, "end": { - "line": 311, + "line": 321, "column": 75 } } } ], "range": [ - 10695, - 10761 + 11325, + 11391 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 10 }, "end": { - "line": 311, + "line": 321, "column": 76 } } }, "range": [ - 10695, - 10762 + 11325, + 11392 ], "loc": { "start": { - "line": 311, + "line": 321, "column": 10 }, "end": { - "line": 311, + "line": 321, "column": 77 } } } ], "range": [ - 10683, - 10772 + 11313, + 11402 ], "loc": { "start": { - "line": 310, + "line": 320, "column": 15 }, "end": { - "line": 312, + "line": 322, "column": 9 } } }, "range": [ - 10140, - 10772 + 10770, + 11402 ], "loc": { "start": { - "line": 299, + "line": 309, "column": 8 }, "end": { - "line": 312, + "line": 322, "column": 9 } } } ], "range": [ - 10130, - 10780 + 10760, + 11410 ], "loc": { "start": { - "line": 298, + "line": 308, "column": 29 }, "end": { - "line": 313, + "line": 323, "column": 7 } } @@ -22906,16 +24228,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 10806, - 10815 + 11436, + 11445 ], "loc": { "start": { - "line": 314, + "line": 324, "column": 18 }, "end": { - "line": 314, + "line": 324, "column": 27 } } @@ -22932,16 +24254,16 @@ }, "tail": false, "range": [ - 10816, - 10833 + 11446, + 11463 ], "loc": { "start": { - "line": 314, + "line": 324, "column": 28 }, "end": { - "line": 314, + "line": 324, "column": 45 } } @@ -22954,16 +24276,16 @@ }, "tail": true, "range": [ - 10837, - 10840 + 11467, + 11470 ], "loc": { "start": { - "line": 314, + "line": 324, "column": 49 }, "end": { - "line": 314, + "line": 324, "column": 52 } } @@ -22974,110 +24296,110 @@ "type": "Identifier", "name": "type", "range": [ - 10833, - 10837 + 11463, + 11467 ], "loc": { "start": { - "line": 314, + "line": 324, "column": 45 }, "end": { - "line": 314, + "line": 324, "column": 49 } } } ], "range": [ - 10816, - 10840 + 11446, + 11470 ], "loc": { "start": { - "line": 314, + "line": 324, "column": 28 }, "end": { - "line": 314, + "line": 324, "column": 52 } } } ], "range": [ - 10802, - 10841 + 11432, + 11471 ], "loc": { "start": { - "line": 314, + "line": 324, "column": 14 }, "end": { - "line": 314, + "line": 324, "column": 53 } } }, "range": [ - 10796, - 10842 + 11426, + 11472 ], "loc": { "start": { - "line": 314, + "line": 324, "column": 8 }, "end": { - "line": 314, + "line": 324, "column": 54 } } } ], "range": [ - 10786, - 10850 + 11416, + 11480 ], "loc": { "start": { - "line": 313, + "line": 323, "column": 13 }, "end": { - "line": 315, + "line": 325, "column": 7 } } }, "range": [ - 10107, - 10850 + 10737, + 11480 ], "loc": { "start": { - "line": 298, + "line": 308, "column": 6 }, "end": { - "line": 315, + "line": 325, "column": 7 } } } ], "range": [ - 10099, - 10856 + 10729, + 11486 ], "loc": { "start": { - "line": 297, + "line": 307, "column": 14 }, "end": { - "line": 316, + "line": 326, "column": 5 } } @@ -23093,16 +24415,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 10880, - 10889 + 11510, + 11519 ], "loc": { "start": { - "line": 317, + "line": 327, "column": 16 }, "end": { - "line": 317, + "line": 327, "column": 25 } } @@ -23119,16 +24441,16 @@ }, "tail": true, "range": [ - 10890, - 10925 + 11520, + 11555 ], "loc": { "start": { - "line": 317, + "line": 327, "column": 26 }, "end": { - "line": 317, + "line": 327, "column": 61 } } @@ -23136,94 +24458,94 @@ ], "expressions": [], "range": [ - 10890, - 10925 + 11520, + 11555 ], "loc": { "start": { - "line": 317, + "line": 327, "column": 26 }, "end": { - "line": 317, + "line": 327, "column": 61 } } } ], "range": [ - 10876, - 10926 + 11506, + 11556 ], "loc": { "start": { - "line": 317, + "line": 327, "column": 12 }, "end": { - "line": 317, + "line": 327, "column": 62 } } }, "range": [ - 10870, - 10927 + 11500, + 11557 ], "loc": { "start": { - "line": 317, + "line": 327, "column": 6 }, "end": { - "line": 317, + "line": 327, "column": 63 } } } ], "range": [ - 10862, - 10933 + 11492, + 11563 ], "loc": { "start": { - "line": 316, + "line": 326, "column": 11 }, "end": { - "line": 318, + "line": 328, "column": 5 } } }, "range": [ - 10089, - 10933 + 10719, + 11563 ], "loc": { "start": { - "line": 297, + "line": 307, "column": 4 }, "end": { - "line": 318, + "line": 328, "column": 5 } } } ], "range": [ - 10083, - 10937 + 10713, + 11567 ], "loc": { "start": { - "line": 296, + "line": 306, "column": 19 }, "end": { - "line": 319, + "line": 329, "column": 3 } } @@ -23231,16 +24553,16 @@ "generator": false, "expression": false, "range": [ - 10072, - 10937 + 10702, + 11567 ], "loc": { "start": { - "line": 296, + "line": 306, "column": 8 }, "end": { - "line": 319, + "line": 329, "column": 3 } } @@ -23248,16 +24570,16 @@ "kind": "method", "computed": false, "range": [ - 10066, - 10937 + 10696, + 11567 ], "loc": { "start": { - "line": 296, + "line": 306, "column": 2 }, "end": { - "line": 319, + "line": 329, "column": 3 } }, @@ -23266,16 +24588,16 @@ "type": "Block", "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @since 0.1.0\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n ", "range": [ - 9721, - 10063 + 10351, + 10693 ], "loc": { "start": { - "line": 287, + "line": 297, "column": 2 }, "end": { - "line": 295, + "line": 305, "column": 5 } } @@ -23289,16 +24611,16 @@ "type": "Identifier", "name": "_addField", "range": [ - 10941, - 10950 + 11571, + 11580 ], "loc": { "start": { - "line": 321, + "line": 331, "column": 2 }, "end": { - "line": 321, + "line": 331, "column": 11 } } @@ -23311,16 +24633,16 @@ "type": "Identifier", "name": "object", "range": [ - 10951, - 10957 + 11581, + 11587 ], "loc": { "start": { - "line": 321, + "line": 331, "column": 12 }, "end": { - "line": 321, + "line": 331, "column": 18 } } @@ -23329,16 +24651,16 @@ "type": "Identifier", "name": "resource", "range": [ - 10959, - 10967 + 11589, + 11597 ], "loc": { "start": { - "line": 321, + "line": 331, "column": 20 }, "end": { - "line": 321, + "line": 331, "column": 28 } } @@ -23347,16 +24669,16 @@ "type": "Identifier", "name": "definition", "range": [ - 10969, - 10979 + 11599, + 11609 ], "loc": { "start": { - "line": 321, + "line": 331, "column": 30 }, "end": { - "line": 321, + "line": 331, "column": 40 } } @@ -23365,16 +24687,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 10981, - 10990 + 11611, + 11620 ], "loc": { "start": { - "line": 321, + "line": 331, "column": 42 }, "end": { - "line": 321, + "line": 331, "column": 51 } } @@ -23392,16 +24714,16 @@ "type": "Identifier", "name": "field", "range": [ - 11002, - 11007 + 11632, + 11637 ], "loc": { "start": { - "line": 322, + "line": 332, "column": 8 }, "end": { - "line": 322, + "line": 332, "column": 13 } } @@ -23413,16 +24735,16 @@ "type": "Identifier", "name": "definition", "range": [ - 11010, - 11020 + 11640, + 11650 ], "loc": { "start": { - "line": 322, + "line": 332, "column": 16 }, "end": { - "line": 322, + "line": 332, "column": 26 } } @@ -23431,46 +24753,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11021, - 11030 + 11651, + 11660 ], "loc": { "start": { - "line": 322, + "line": 332, "column": 27 }, "end": { - "line": 322, + "line": 332, "column": 36 } } }, "range": [ - 11010, - 11031 + 11640, + 11661 ], "loc": { "start": { - "line": 322, + "line": 332, "column": 16 }, "end": { - "line": 322, + "line": 332, "column": 37 } } }, "range": [ - 11002, - 11031 + 11632, + 11661 ], "loc": { "start": { - "line": 322, + "line": 332, "column": 8 }, "end": { - "line": 322, + "line": 332, "column": 37 } } @@ -23478,16 +24800,16 @@ ], "kind": "var", "range": [ - 10998, - 11032 + 11628, + 11662 ], "loc": { "start": { - "line": 322, + "line": 332, "column": 4 }, "end": { - "line": 322, + "line": 332, "column": 38 } } @@ -23501,16 +24823,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 11041, - 11049 + 11671, + 11679 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 8 }, "end": { - "line": 323, + "line": 333, "column": 16 } } @@ -23527,16 +24849,16 @@ "type": "Identifier", "name": "field", "range": [ - 11052, - 11057 + 11682, + 11687 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 19 }, "end": { - "line": 323, + "line": 333, "column": 24 } } @@ -23545,31 +24867,31 @@ "type": "Identifier", "name": "deserialize", "range": [ - 11058, - 11069 + 11688, + 11699 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 25 }, "end": { - "line": 323, + "line": 333, "column": 36 } } }, "range": [ - 11052, - 11069 + 11682, + 11699 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 19 }, "end": { - "line": 323, + "line": 333, "column": 36 } } @@ -23578,31 +24900,31 @@ "type": "Identifier", "name": "call", "range": [ - 11070, - 11074 + 11700, + 11704 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 37 }, "end": { - "line": 323, + "line": 333, "column": 41 } } }, "range": [ - 11052, - 11074 + 11682, + 11704 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 19 }, "end": { - "line": 323, + "line": 333, "column": 41 } } @@ -23611,16 +24933,16 @@ { "type": "ThisExpression", "range": [ - 11075, - 11079 + 11705, + 11709 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 42 }, "end": { - "line": 323, + "line": 333, "column": 46 } } @@ -23629,16 +24951,16 @@ "type": "Identifier", "name": "object", "range": [ - 11081, - 11087 + 11711, + 11717 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 48 }, "end": { - "line": 323, + "line": 333, "column": 54 } } @@ -23647,47 +24969,47 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11089, - 11098 + 11719, + 11728 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 56 }, "end": { - "line": 323, + "line": 333, "column": 65 } } } ], "range": [ - 11052, - 11099 + 11682, + 11729 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 19 }, "end": { - "line": 323, + "line": 333, "column": 66 } } }, "range": [ - 11041, - 11099 + 11671, + 11729 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 8 }, "end": { - "line": 323, + "line": 333, "column": 66 } } @@ -23695,16 +25017,16 @@ ], "kind": "var", "range": [ - 11037, - 11100 + 11667, + 11730 ], "loc": { "start": { - "line": 323, + "line": 333, "column": 4 }, "end": { - "line": 323, + "line": 333, "column": 67 } } @@ -23721,32 +25043,32 @@ "type": "Identifier", "name": "newValue", "range": [ - 11116, - 11124 + 11746, + 11754 ], "loc": { "start": { - "line": 324, + "line": 334, "column": 15 }, "end": { - "line": 324, + "line": 334, "column": 23 } } }, "prefix": true, "range": [ - 11109, - 11124 + 11739, + 11754 ], "loc": { "start": { - "line": 324, + "line": 334, "column": 8 }, "end": { - "line": 324, + "line": 334, "column": 23 } } @@ -23756,31 +25078,31 @@ "value": "undefined", "raw": "\"undefined\"", "range": [ - 11129, - 11140 + 11759, + 11770 ], "loc": { "start": { - "line": 324, + "line": 334, "column": 28 }, "end": { - "line": 324, + "line": 334, "column": 39 } } }, "range": [ - 11109, - 11140 + 11739, + 11770 ], "loc": { "start": { - "line": 324, + "line": 334, "column": 8 }, "end": { - "line": 324, + "line": 334, "column": 39 } } @@ -23800,16 +25122,16 @@ "type": "Identifier", "name": "field", "range": [ - 11154, - 11159 + 11784, + 11789 ], "loc": { "start": { - "line": 325, + "line": 335, "column": 10 }, "end": { - "line": 325, + "line": 335, "column": 15 } } @@ -23818,31 +25140,31 @@ "type": "Identifier", "name": "type", "range": [ - 11160, - 11164 + 11790, + 11794 ], "loc": { "start": { - "line": 325, + "line": 335, "column": 16 }, "end": { - "line": 325, + "line": 335, "column": 20 } } }, "range": [ - 11154, - 11164 + 11784, + 11794 ], "loc": { "start": { - "line": 325, + "line": 335, "column": 10 }, "end": { - "line": 325, + "line": 335, "column": 20 } } @@ -23852,31 +25174,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 11169, - 11178 + 11799, + 11808 ], "loc": { "start": { - "line": 325, + "line": 335, "column": 25 }, "end": { - "line": 325, + "line": 335, "column": 34 } } }, "range": [ - 11154, - 11178 + 11784, + 11808 ], "loc": { "start": { - "line": 325, + "line": 335, "column": 10 }, "end": { - "line": 325, + "line": 335, "column": 34 } } @@ -23893,16 +25215,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11194, - 11202 + 11824, + 11832 ], "loc": { "start": { - "line": 326, + "line": 336, "column": 12 }, "end": { - "line": 326, + "line": 336, "column": 20 } } @@ -23911,31 +25233,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11203, - 11212 + 11833, + 11842 ], "loc": { "start": { - "line": 326, + "line": 336, "column": 21 }, "end": { - "line": 326, + "line": 336, "column": 30 } } }, "range": [ - 11194, - 11213 + 11824, + 11843 ], "loc": { "start": { - "line": 326, + "line": 336, "column": 12 }, "end": { - "line": 326, + "line": 336, "column": 31 } } @@ -23953,16 +25275,16 @@ "object": { "type": "ThisExpression", "range": [ - 11227, - 11231 + 11857, + 11861 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 10 }, "end": { - "line": 327, + "line": 337, "column": 14 } } @@ -23971,31 +25293,31 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 11232, - 11258 + 11862, + 11888 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 15 }, "end": { - "line": 327, + "line": 337, "column": 41 } } }, "range": [ - 11227, - 11258 + 11857, + 11888 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 10 }, "end": { - "line": 327, + "line": 337, "column": 41 } } @@ -24005,16 +25327,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11259, - 11267 + 11889, + 11897 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 42 }, "end": { - "line": 327, + "line": 337, "column": 50 } } @@ -24023,16 +25345,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11269, - 11278 + 11899, + 11908 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 52 }, "end": { - "line": 327, + "line": 337, "column": 61 } } @@ -24044,16 +25366,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11280, - 11288 + 11910, + 11918 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 63 }, "end": { - "line": 327, + "line": 337, "column": 71 } } @@ -24062,31 +25384,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11289, - 11298 + 11919, + 11928 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 72 }, "end": { - "line": 327, + "line": 337, "column": 81 } } }, "range": [ - 11280, - 11299 + 11910, + 11929 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 63 }, "end": { - "line": 327, + "line": 337, "column": 82 } } @@ -24095,79 +25417,79 @@ "type": "Identifier", "name": "field", "range": [ - 11301, - 11306 + 11931, + 11936 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 84 }, "end": { - "line": 327, + "line": 337, "column": 89 } } } ], "range": [ - 11227, - 11307 + 11857, + 11937 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 10 }, "end": { - "line": 327, + "line": 337, "column": 90 } } }, "range": [ - 11227, - 11308 + 11857, + 11938 ], "loc": { "start": { - "line": 327, + "line": 337, "column": 10 }, "end": { - "line": 327, + "line": 337, "column": 91 } } } ], "range": [ - 11215, - 11318 + 11845, + 11948 ], "loc": { "start": { - "line": 326, + "line": 336, "column": 33 }, "end": { - "line": 328, + "line": 338, "column": 9 } } }, "alternate": null, "range": [ - 11190, - 11318 + 11820, + 11948 ], "loc": { "start": { - "line": 326, + "line": 336, "column": 8 }, "end": { - "line": 328, + "line": 338, "column": 9 } } @@ -24178,16 +25500,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 11331, - 11339 + 11961, + 11969 ], "loc": { "start": { - "line": 329, + "line": 339, "column": 12 }, "end": { - "line": 329, + "line": 339, "column": 20 } } @@ -24205,16 +25527,16 @@ "object": { "type": "ThisExpression", "range": [ - 11353, - 11357 + 11983, + 11987 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 10 }, "end": { - "line": 330, + "line": 340, "column": 14 } } @@ -24223,31 +25545,31 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 11358, - 11381 + 11988, + 12011 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 15 }, "end": { - "line": 330, + "line": 340, "column": 38 } } }, "range": [ - 11353, - 11381 + 11983, + 12011 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 10 }, "end": { - "line": 330, + "line": 340, "column": 38 } } @@ -24257,16 +25579,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11382, - 11390 + 12012, + 12020 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 39 }, "end": { - "line": 330, + "line": 340, "column": 47 } } @@ -24275,16 +25597,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11392, - 11401 + 12022, + 12031 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 49 }, "end": { - "line": 330, + "line": 340, "column": 58 } } @@ -24293,16 +25615,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 11403, - 11411 + 12033, + 12041 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 60 }, "end": { - "line": 330, + "line": 340, "column": 68 } } @@ -24311,95 +25633,95 @@ "type": "Identifier", "name": "field", "range": [ - 11413, - 11418 + 12043, + 12048 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 70 }, "end": { - "line": 330, + "line": 340, "column": 75 } } } ], "range": [ - 11353, - 11419 + 11983, + 12049 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 10 }, "end": { - "line": 330, + "line": 340, "column": 76 } } }, "range": [ - 11353, - 11420 + 11983, + 12050 ], "loc": { "start": { - "line": 330, + "line": 340, "column": 10 }, "end": { - "line": 330, + "line": 340, "column": 77 } } } ], "range": [ - 11341, - 11430 + 11971, + 12060 ], "loc": { "start": { - "line": 329, + "line": 339, "column": 22 }, "end": { - "line": 331, + "line": 341, "column": 9 } } }, "alternate": null, "range": [ - 11327, - 11430 + 11957, + 12060 ], "loc": { "start": { - "line": 329, + "line": 339, "column": 8 }, "end": { - "line": 331, + "line": 341, "column": 9 } } } ], "range": [ - 11180, - 11438 + 11810, + 12068 ], "loc": { "start": { - "line": 325, + "line": 335, "column": 36 }, "end": { - "line": 332, + "line": 342, "column": 7 } } @@ -24416,16 +25738,16 @@ "type": "Identifier", "name": "field", "range": [ - 11448, - 11453 + 12078, + 12083 ], "loc": { "start": { - "line": 332, + "line": 342, "column": 17 }, "end": { - "line": 332, + "line": 342, "column": 22 } } @@ -24434,31 +25756,31 @@ "type": "Identifier", "name": "type", "range": [ - 11454, - 11458 + 12084, + 12088 ], "loc": { "start": { - "line": 332, + "line": 342, "column": 23 }, "end": { - "line": 332, + "line": 342, "column": 27 } } }, "range": [ - 11448, - 11458 + 12078, + 12088 ], "loc": { "start": { - "line": 332, + "line": 342, "column": 17 }, "end": { - "line": 332, + "line": 342, "column": 27 } } @@ -24468,31 +25790,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 11463, - 11473 + 12093, + 12103 ], "loc": { "start": { - "line": 332, + "line": 342, "column": 32 }, "end": { - "line": 332, + "line": 342, "column": 42 } } }, "range": [ - 11448, - 11473 + 12078, + 12103 ], "loc": { "start": { - "line": 332, + "line": 342, "column": 17 }, "end": { - "line": 332, + "line": 342, "column": 42 } } @@ -24514,16 +25836,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11485, - 11493 + 12115, + 12123 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 8 }, "end": { - "line": 333, + "line": 343, "column": 16 } } @@ -24532,31 +25854,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11494, - 11503 + 12124, + 12133 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 17 }, "end": { - "line": 333, + "line": 343, "column": 26 } } }, "range": [ - 11485, - 11504 + 12115, + 12134 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 8 }, "end": { - "line": 333, + "line": 343, "column": 27 } } @@ -24565,31 +25887,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 11505, - 11512 + 12135, + 12142 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 28 }, "end": { - "line": 333, + "line": 343, "column": 35 } } }, "range": [ - 11485, - 11512 + 12115, + 12142 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 8 }, "end": { - "line": 333, + "line": 343, "column": 35 } } @@ -24603,16 +25925,16 @@ "type": "Identifier", "name": "r", "range": [ - 11513, - 11514 + 12143, + 12144 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 36 }, "end": { - "line": 333, + "line": 343, "column": 37 } } @@ -24638,16 +25960,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11534, - 11542 + 12164, + 12172 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 14 }, "end": { - "line": 334, + "line": 344, "column": 22 } } @@ -24656,31 +25978,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11543, - 11552 + 12173, + 12182 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 23 }, "end": { - "line": 334, + "line": 344, "column": 32 } } }, "range": [ - 11534, - 11553 + 12164, + 12183 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 14 }, "end": { - "line": 334, + "line": 344, "column": 33 } } @@ -24689,31 +26011,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 11554, - 11561 + 12184, + 12191 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 34 }, "end": { - "line": 334, + "line": 344, "column": 41 } } }, "range": [ - 11534, - 11561 + 12164, + 12191 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 14 }, "end": { - "line": 334, + "line": 344, "column": 41 } } @@ -24723,32 +26045,32 @@ "type": "Identifier", "name": "r", "range": [ - 11562, - 11563 + 12192, + 12193 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 42 }, "end": { - "line": 334, + "line": 344, "column": 43 } } } ], "range": [ - 11534, - 11564 + 12164, + 12194 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 14 }, "end": { - "line": 334, + "line": 344, "column": 44 } } @@ -24761,47 +26083,47 @@ "value": 1, "raw": "1", "range": [ - 11570, - 11571 + 12200, + 12201 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 50 }, "end": { - "line": 334, + "line": 344, "column": 51 } } }, "prefix": true, "range": [ - 11569, - 11571 + 12199, + 12201 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 49 }, "end": { - "line": 334, + "line": 344, "column": 51 } } }, "range": [ - 11534, - 11571 + 12164, + 12201 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 14 }, "end": { - "line": 334, + "line": 344, "column": 51 } } @@ -24819,16 +26141,16 @@ "object": { "type": "ThisExpression", "range": [ - 11587, - 11591 + 12217, + 12221 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 12 }, "end": { - "line": 335, + "line": 345, "column": 16 } } @@ -24837,31 +26159,31 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 11592, - 11618 + 12222, + 12248 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 17 }, "end": { - "line": 335, + "line": 345, "column": 43 } } }, "range": [ - 11587, - 11618 + 12217, + 12248 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 12 }, "end": { - "line": 335, + "line": 345, "column": 43 } } @@ -24871,16 +26193,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11619, - 11627 + 12249, + 12257 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 44 }, "end": { - "line": 335, + "line": 345, "column": 52 } } @@ -24889,16 +26211,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11629, - 11638 + 12259, + 12268 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 54 }, "end": { - "line": 335, + "line": 345, "column": 63 } } @@ -24907,16 +26229,16 @@ "type": "Identifier", "name": "r", "range": [ - 11640, - 11641 + 12270, + 12271 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 65 }, "end": { - "line": 335, + "line": 345, "column": 66 } } @@ -24925,95 +26247,95 @@ "type": "Identifier", "name": "field", "range": [ - 11643, - 11648 + 12273, + 12278 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 68 }, "end": { - "line": 335, + "line": 345, "column": 73 } } } ], "range": [ - 11587, - 11649 + 12217, + 12279 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 12 }, "end": { - "line": 335, + "line": 345, "column": 74 } } }, "range": [ - 11587, - 11650 + 12217, + 12280 ], "loc": { "start": { - "line": 335, + "line": 345, "column": 12 }, "end": { - "line": 335, + "line": 345, "column": 75 } } } ], "range": [ - 11573, - 11662 + 12203, + 12292 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 53 }, "end": { - "line": 336, + "line": 346, "column": 11 } } }, "alternate": null, "range": [ - 11530, - 11662 + 12160, + 12292 ], "loc": { "start": { - "line": 334, + "line": 344, "column": 10 }, "end": { - "line": 336, + "line": 346, "column": 11 } } } ], "range": [ - 11518, - 11672 + 12148, + 12302 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 41 }, "end": { - "line": 337, + "line": 347, "column": 9 } } @@ -25021,47 +26343,47 @@ "generator": false, "expression": false, "range": [ - 11513, - 11672 + 12143, + 12302 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 36 }, "end": { - "line": 337, + "line": 347, "column": 9 } } } ], "range": [ - 11485, - 11673 + 12115, + 12303 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 8 }, "end": { - "line": 337, + "line": 347, "column": 10 } } }, "range": [ - 11485, - 11674 + 12115, + 12304 ], "loc": { "start": { - "line": 333, + "line": 343, "column": 8 }, "end": { - "line": 337, + "line": 347, "column": 11 } } @@ -25077,16 +26399,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 11683, - 11691 + 12313, + 12321 ], "loc": { "start": { - "line": 338, + "line": 348, "column": 8 }, "end": { - "line": 338, + "line": 348, "column": 16 } } @@ -25095,31 +26417,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 11692, - 11699 + 12322, + 12329 ], "loc": { "start": { - "line": 338, + "line": 348, "column": 17 }, "end": { - "line": 338, + "line": 348, "column": 24 } } }, "range": [ - 11683, - 11699 + 12313, + 12329 ], "loc": { "start": { - "line": 338, + "line": 348, "column": 8 }, "end": { - "line": 338, + "line": 348, "column": 24 } } @@ -25133,16 +26455,16 @@ "type": "Identifier", "name": "r", "range": [ - 11700, - 11701 + 12330, + 12331 ], "loc": { "start": { - "line": 338, + "line": 348, "column": 25 }, "end": { - "line": 338, + "line": 348, "column": 26 } } @@ -25161,16 +26483,16 @@ "object": { "type": "ThisExpression", "range": [ - 11717, - 11721 + 12347, + 12351 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 10 }, "end": { - "line": 339, + "line": 349, "column": 14 } } @@ -25179,31 +26501,31 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 11722, - 11745 + 12352, + 12375 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 15 }, "end": { - "line": 339, + "line": 349, "column": 38 } } }, "range": [ - 11717, - 11745 + 12347, + 12375 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 10 }, "end": { - "line": 339, + "line": 349, "column": 38 } } @@ -25213,16 +26535,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11746, - 11754 + 12376, + 12384 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 39 }, "end": { - "line": 339, + "line": 349, "column": 47 } } @@ -25231,16 +26553,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11756, - 11765 + 12386, + 12395 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 49 }, "end": { - "line": 339, + "line": 349, "column": 58 } } @@ -25249,16 +26571,16 @@ "type": "Identifier", "name": "r", "range": [ - 11767, - 11768 + 12397, + 12398 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 60 }, "end": { - "line": 339, + "line": 349, "column": 61 } } @@ -25267,63 +26589,63 @@ "type": "Identifier", "name": "field", "range": [ - 11770, - 11775 + 12400, + 12405 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 63 }, "end": { - "line": 339, + "line": 349, "column": 68 } } } ], "range": [ - 11717, - 11776 + 12347, + 12406 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 10 }, "end": { - "line": 339, + "line": 349, "column": 69 } } }, "range": [ - 11717, - 11777 + 12347, + 12407 ], "loc": { "start": { - "line": 339, + "line": 349, "column": 10 }, "end": { - "line": 339, + "line": 349, "column": 70 } } } ], "range": [ - 11705, - 11787 + 12335, + 12417 ], "loc": { "start": { - "line": 338, + "line": 348, "column": 30 }, "end": { - "line": 340, + "line": 350, "column": 9 } } @@ -25331,94 +26653,94 @@ "generator": false, "expression": false, "range": [ - 11700, - 11787 + 12330, + 12417 ], "loc": { "start": { - "line": 338, + "line": 348, "column": 25 }, "end": { - "line": 340, + "line": 350, "column": 9 } } } ], "range": [ - 11683, - 11788 + 12313, + 12418 ], "loc": { "start": { - "line": 338, + "line": 348, "column": 8 }, "end": { - "line": 340, + "line": 350, "column": 10 } } }, "range": [ - 11683, - 11789 + 12313, + 12419 ], "loc": { "start": { - "line": 338, + "line": 348, "column": 8 }, "end": { - "line": 340, + "line": 350, "column": 11 } } } ], "range": [ - 11475, - 11797 + 12105, + 12427 ], "loc": { "start": { - "line": 332, + "line": 342, "column": 44 }, "end": { - "line": 341, + "line": 351, "column": 7 } } }, "alternate": null, "range": [ - 11444, - 11797 + 12074, + 12427 ], "loc": { "start": { - "line": 332, + "line": 342, "column": 13 }, "end": { - "line": 341, + "line": 351, "column": 7 } } }, "range": [ - 11150, - 11797 + 11780, + 12427 ], "loc": { "start": { - "line": 325, + "line": 335, "column": 6 }, "end": { - "line": 341, + "line": 351, "column": 7 } } @@ -25435,16 +26757,16 @@ "type": "Identifier", "name": "resource", "range": [ - 11804, - 11812 + 12434, + 12442 ], "loc": { "start": { - "line": 342, + "line": 352, "column": 6 }, "end": { - "line": 342, + "line": 352, "column": 14 } } @@ -25453,31 +26775,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 11813, - 11822 + 12443, + 12452 ], "loc": { "start": { - "line": 342, + "line": 352, "column": 15 }, "end": { - "line": 342, + "line": 352, "column": 24 } } }, "range": [ - 11804, - 11823 + 12434, + 12453 ], "loc": { "start": { - "line": 342, + "line": 352, "column": 6 }, "end": { - "line": 342, + "line": 352, "column": 25 } } @@ -25486,94 +26808,94 @@ "type": "Identifier", "name": "newValue", "range": [ - 11826, - 11834 + 12456, + 12464 ], "loc": { "start": { - "line": 342, + "line": 352, "column": 28 }, "end": { - "line": 342, + "line": 352, "column": 36 } } }, "range": [ - 11804, - 11834 + 12434, + 12464 ], "loc": { "start": { - "line": 342, + "line": 352, "column": 6 }, "end": { - "line": 342, + "line": 352, "column": 36 } } }, "range": [ - 11804, - 11835 + 12434, + 12465 ], "loc": { "start": { - "line": 342, + "line": 352, "column": 6 }, "end": { - "line": 342, + "line": 352, "column": 37 } } } ], "range": [ - 11142, - 11841 + 11772, + 12471 ], "loc": { "start": { - "line": 324, + "line": 334, "column": 41 }, "end": { - "line": 343, + "line": 353, "column": 5 } } }, "alternate": null, "range": [ - 11105, - 11841 + 11735, + 12471 ], "loc": { "start": { - "line": 324, + "line": 334, "column": 4 }, "end": { - "line": 343, + "line": 353, "column": 5 } } } ], "range": [ - 10992, - 11845 + 11622, + 12475 ], "loc": { "start": { - "line": 321, + "line": 331, "column": 53 }, "end": { - "line": 344, + "line": 354, "column": 3 } } @@ -25581,16 +26903,16 @@ "generator": false, "expression": false, "range": [ - 10950, - 11845 + 11580, + 12475 ], "loc": { "start": { - "line": 321, + "line": 331, "column": 11 }, "end": { - "line": 344, + "line": 354, "column": 3 } } @@ -25598,16 +26920,16 @@ "kind": "method", "computed": false, "range": [ - 10941, - 11845 + 11571, + 12475 ], "loc": { "start": { - "line": 321, + "line": 331, "column": 2 }, "end": { - "line": 344, + "line": 354, "column": 3 } }, @@ -25619,16 +26941,16 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 11849, - 11872 + 12479, + 12502 ], "loc": { "start": { - "line": 346, + "line": 356, "column": 2 }, "end": { - "line": 346, + "line": 356, "column": 25 } } @@ -25641,16 +26963,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 11873, - 11887 + 12503, + 12517 ], "loc": { "start": { - "line": 346, + "line": 356, "column": 26 }, "end": { - "line": 346, + "line": 356, "column": 40 } } @@ -25659,16 +26981,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 11889, - 11904 + 12519, + 12534 ], "loc": { "start": { - "line": 346, + "line": 356, "column": 42 }, "end": { - "line": 346, + "line": 356, "column": 57 } } @@ -25677,16 +26999,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 11906, - 11920 + 12536, + 12550 ], "loc": { "start": { - "line": 346, + "line": 356, "column": 59 }, "end": { - "line": 346, + "line": 356, "column": 73 } } @@ -25695,16 +27017,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 11922, - 11933 + 12552, + 12563 ], "loc": { "start": { - "line": 346, + "line": 356, "column": 75 }, "end": { - "line": 346, + "line": 356, "column": 86 } } @@ -25722,16 +27044,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 11945, - 11961 + 12575, + 12591 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 8 }, "end": { - "line": 347, + "line": 357, "column": 24 } } @@ -25745,16 +27067,16 @@ "object": { "type": "ThisExpression", "range": [ - 11964, - 11968 + 12594, + 12598 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 27 }, "end": { - "line": 347, + "line": 357, "column": 31 } } @@ -25763,31 +27085,31 @@ "type": "Identifier", "name": "_types", "range": [ - 11969, - 11975 + 12599, + 12605 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 32 }, "end": { - "line": 347, + "line": 357, "column": 38 } } }, "range": [ - 11964, - 11975 + 12594, + 12605 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 27 }, "end": { - "line": 347, + "line": 357, "column": 38 } } @@ -25799,16 +27121,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 11976, - 11990 + 12606, + 12620 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 39 }, "end": { - "line": 347, + "line": 357, "column": 53 } } @@ -25817,61 +27139,61 @@ "type": "Identifier", "name": "type", "range": [ - 11991, - 11995 + 12621, + 12625 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 54 }, "end": { - "line": 347, + "line": 357, "column": 58 } } }, "range": [ - 11976, - 11995 + 12606, + 12625 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 39 }, "end": { - "line": 347, + "line": 357, "column": 58 } } }, "range": [ - 11964, - 11996 + 12594, + 12626 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 27 }, "end": { - "line": 347, + "line": 357, "column": 59 } } }, "range": [ - 11945, - 11996 + 12575, + 12626 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 8 }, "end": { - "line": 347, + "line": 357, "column": 59 } } @@ -25879,16 +27201,16 @@ ], "kind": "var", "range": [ - 11941, - 11997 + 12571, + 12627 ], "loc": { "start": { - "line": 347, + "line": 357, "column": 4 }, "end": { - "line": 347, + "line": 357, "column": 60 } } @@ -25902,16 +27224,16 @@ "type": "Identifier", "name": "sourceDefinition", "range": [ - 12006, - 12022 + 12636, + 12652 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 8 }, "end": { - "line": 348, + "line": 358, "column": 24 } } @@ -25925,16 +27247,16 @@ "object": { "type": "ThisExpression", "range": [ - 12025, - 12029 + 12655, + 12659 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 27 }, "end": { - "line": 348, + "line": 358, "column": 31 } } @@ -25943,31 +27265,31 @@ "type": "Identifier", "name": "_types", "range": [ - 12030, - 12036 + 12660, + 12666 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 32 }, "end": { - "line": 348, + "line": 358, "column": 38 } } }, "range": [ - 12025, - 12036 + 12655, + 12666 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 27 }, "end": { - "line": 348, + "line": 358, "column": 38 } } @@ -25979,16 +27301,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 12037, - 12051 + 12667, + 12681 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 39 }, "end": { - "line": 348, + "line": 358, "column": 53 } } @@ -25997,61 +27319,61 @@ "type": "Identifier", "name": "type", "range": [ - 12052, - 12056 + 12682, + 12686 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 54 }, "end": { - "line": 348, + "line": 358, "column": 58 } } }, "range": [ - 12037, - 12056 + 12667, + 12686 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 39 }, "end": { - "line": 348, + "line": 358, "column": 58 } } }, "range": [ - 12025, - 12057 + 12655, + 12687 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 27 }, "end": { - "line": 348, + "line": 358, "column": 59 } } }, "range": [ - 12006, - 12057 + 12636, + 12687 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 8 }, "end": { - "line": 348, + "line": 358, "column": 59 } } @@ -26059,16 +27381,16 @@ ], "kind": "var", "range": [ - 12002, - 12058 + 12632, + 12688 ], "loc": { "start": { - "line": 348, + "line": 358, "column": 4 }, "end": { - "line": 348, + "line": 358, "column": 60 } } @@ -26079,16 +27401,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 12067, - 12083 + 12697, + 12713 ], "loc": { "start": { - "line": 349, + "line": 359, "column": 8 }, "end": { - "line": 349, + "line": 359, "column": 24 } } @@ -26105,16 +27427,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 12097, - 12112 + 12727, + 12742 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 10 }, "end": { - "line": 350, + "line": 360, "column": 25 } } @@ -26139,16 +27461,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 12117, - 12128 + 12747, + 12758 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 30 }, "end": { - "line": 350, + "line": 360, "column": 41 } } @@ -26157,47 +27479,47 @@ "type": "Identifier", "name": "inverse", "range": [ - 12129, - 12136 + 12759, + 12766 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 42 }, "end": { - "line": 350, + "line": 360, "column": 49 } } }, "range": [ - 12117, - 12136 + 12747, + 12766 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 30 }, "end": { - "line": 350, + "line": 360, "column": 49 } } } ], "range": [ - 12115, - 12138 + 12745, + 12768 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 28 }, "end": { - "line": 350, + "line": 360, "column": 51 } } @@ -26206,31 +27528,31 @@ "type": "Identifier", "name": "concat", "range": [ - 12139, - 12145 + 12769, + 12775 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 52 }, "end": { - "line": 350, + "line": 360, "column": 58 } } }, "range": [ - 12115, - 12145 + 12745, + 12775 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 28 }, "end": { - "line": 350, + "line": 360, "column": 58 } } @@ -26243,16 +27565,16 @@ "type": "Identifier", "name": "sourceDefinition", "range": [ - 12146, - 12162 + 12776, + 12792 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 59 }, "end": { - "line": 350, + "line": 360, "column": 75 } } @@ -26261,47 +27583,47 @@ "type": "Identifier", "name": "_names", "range": [ - 12163, - 12169 + 12793, + 12799 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 76 }, "end": { - "line": 350, + "line": 360, "column": 82 } } }, "range": [ - 12146, - 12169 + 12776, + 12799 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 59 }, "end": { - "line": 350, + "line": 360, "column": 82 } } } ], "range": [ - 12115, - 12170 + 12745, + 12800 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 28 }, "end": { - "line": 350, + "line": 360, "column": 83 } } @@ -26310,31 +27632,31 @@ "type": "Identifier", "name": "find", "range": [ - 12171, - 12175 + 12801, + 12805 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 84 }, "end": { - "line": 350, + "line": 360, "column": 88 } } }, "range": [ - 12115, - 12175 + 12745, + 12805 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 28 }, "end": { - "line": 350, + "line": 360, "column": 88 } } @@ -26348,16 +27670,16 @@ "type": "Identifier", "name": "x", "range": [ - 12176, - 12177 + 12806, + 12807 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 89 }, "end": { - "line": 350, + "line": 360, "column": 90 } } @@ -26370,16 +27692,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 12181, - 12197 + 12811, + 12827 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 94 }, "end": { - "line": 350, + "line": 360, "column": 110 } } @@ -26388,31 +27710,31 @@ "type": "Identifier", "name": "x", "range": [ - 12198, - 12199 + 12828, + 12829 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 111 }, "end": { - "line": 350, + "line": 360, "column": 112 } } }, "range": [ - 12181, - 12200 + 12811, + 12830 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 94 }, "end": { - "line": 350, + "line": 360, "column": 113 } } @@ -26420,47 +27742,47 @@ "generator": false, "expression": true, "range": [ - 12176, - 12200 + 12806, + 12830 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 89 }, "end": { - "line": 350, + "line": 360, "column": 113 } } } ], "range": [ - 12115, - 12201 + 12745, + 12831 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 28 }, "end": { - "line": 350, + "line": 360, "column": 114 } } }, "range": [ - 12097, - 12201 + 12727, + 12831 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 10 }, "end": { - "line": 350, + "line": 360, "column": 114 } } @@ -26468,16 +27790,16 @@ ], "kind": "let", "range": [ - 12093, - 12202 + 12723, + 12832 ], "loc": { "start": { - "line": 350, + "line": 360, "column": 6 }, "end": { - "line": 350, + "line": 360, "column": 115 } } @@ -26491,16 +27813,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 12213, - 12224 + 12843, + 12854 ], "loc": { "start": { - "line": 351, + "line": 361, "column": 10 }, "end": { - "line": 351, + "line": 361, "column": 21 } } @@ -26512,16 +27834,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 12227, - 12243 + 12857, + 12873 ], "loc": { "start": { - "line": 351, + "line": 361, "column": 24 }, "end": { - "line": 351, + "line": 361, "column": 40 } } @@ -26533,16 +27855,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 12247, - 12263 + 12877, + 12893 ], "loc": { "start": { - "line": 351, + "line": 361, "column": 44 }, "end": { - "line": 351, + "line": 361, "column": 60 } } @@ -26551,61 +27873,61 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 12264, - 12279 + 12894, + 12909 ], "loc": { "start": { - "line": 351, + "line": 361, "column": 61 }, "end": { - "line": 351, + "line": 361, "column": 76 } } }, "range": [ - 12247, - 12280 + 12877, + 12910 ], "loc": { "start": { - "line": 351, + "line": 361, "column": 44 }, "end": { - "line": 351, + "line": 361, "column": 77 } } }, "range": [ - 12227, - 12280 + 12857, + 12910 ], "loc": { "start": { - "line": 351, + "line": 361, "column": 24 }, "end": { - "line": 351, + "line": 361, "column": 77 } } }, "range": [ - 12213, - 12280 + 12843, + 12910 ], "loc": { "start": { - "line": 351, + "line": 361, "column": 10 }, "end": { - "line": 351, + "line": 361, "column": 77 } } @@ -26613,16 +27935,16 @@ ], "kind": "let", "range": [ - 12209, - 12281 + 12839, + 12911 ], "loc": { "start": { - "line": 351, + "line": 361, "column": 6 }, "end": { - "line": 351, + "line": 361, "column": 78 } } @@ -26641,16 +27963,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 12288, - 12302 + 12918, + 12932 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 6 }, "end": { - "line": 352, + "line": 362, "column": 20 } } @@ -26659,31 +27981,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 12303, - 12314 + 12933, + 12944 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 21 }, "end": { - "line": 352, + "line": 362, "column": 32 } } }, "range": [ - 12288, - 12314 + 12918, + 12944 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 6 }, "end": { - "line": 352, + "line": 362, "column": 32 } } @@ -26692,31 +28014,31 @@ "type": "Identifier", "name": "push", "range": [ - 12315, - 12319 + 12945, + 12949 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 33 }, "end": { - "line": 352, + "line": 362, "column": 37 } } }, "range": [ - 12288, - 12319 + 12918, + 12949 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 6 }, "end": { - "line": 352, + "line": 362, "column": 37 } } @@ -26731,16 +28053,16 @@ "type": "Identifier", "name": "type", "range": [ - 12322, - 12326 + 12952, + 12956 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 40 }, "end": { - "line": 352, + "line": 362, "column": 44 } } @@ -26752,16 +28074,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 12328, - 12342 + 12958, + 12972 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 46 }, "end": { - "line": 352, + "line": 362, "column": 60 } } @@ -26770,31 +28092,31 @@ "type": "Identifier", "name": "type", "range": [ - 12343, - 12347 + 12973, + 12977 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 61 }, "end": { - "line": 352, + "line": 362, "column": 65 } } }, "range": [ - 12328, - 12347 + 12958, + 12977 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 46 }, "end": { - "line": 352, + "line": 362, "column": 65 } } @@ -26804,16 +28126,16 @@ "shorthand": false, "computed": false, "range": [ - 12322, - 12347 + 12952, + 12977 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 40 }, "end": { - "line": 352, + "line": 362, "column": 65 } } @@ -26824,16 +28146,16 @@ "type": "Identifier", "name": "id", "range": [ - 12349, - 12351 + 12979, + 12981 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 67 }, "end": { - "line": 352, + "line": 362, "column": 69 } } @@ -26845,16 +28167,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 12353, - 12367 + 12983, + 12997 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 71 }, "end": { - "line": 352, + "line": 362, "column": 85 } } @@ -26863,31 +28185,31 @@ "type": "Identifier", "name": "id", "range": [ - 12368, - 12370 + 12998, + 13000 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 86 }, "end": { - "line": 352, + "line": 362, "column": 88 } } }, "range": [ - 12353, - 12370 + 12983, + 13000 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 71 }, "end": { - "line": 352, + "line": 362, "column": 88 } } @@ -26897,16 +28219,16 @@ "shorthand": false, "computed": false, "range": [ - 12349, - 12370 + 12979, + 13000 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 67 }, "end": { - "line": 352, + "line": 362, "column": 88 } } @@ -26917,16 +28239,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 12372, - 12381 + 13002, + 13011 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 90 }, "end": { - "line": 352, + "line": 362, "column": 99 } } @@ -26935,16 +28257,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 12383, - 12398 + 13013, + 13028 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 101 }, "end": { - "line": 352, + "line": 362, "column": 116 } } @@ -26954,63 +28276,63 @@ "shorthand": false, "computed": false, "range": [ - 12372, - 12398 + 13002, + 13028 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 90 }, "end": { - "line": 352, + "line": 362, "column": 116 } } } ], "range": [ - 12320, - 12400 + 12950, + 13030 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 38 }, "end": { - "line": 352, + "line": 362, "column": 118 } } } ], "range": [ - 12288, - 12401 + 12918, + 13031 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 6 }, "end": { - "line": 352, + "line": 362, "column": 119 } } }, "range": [ - 12288, - 12402 + 12918, + 13032 ], "loc": { "start": { - "line": 352, + "line": 362, "column": 6 }, "end": { - "line": 352, + "line": 362, "column": 120 } } @@ -27021,16 +28343,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 12413, - 12424 + 13043, + 13054 ], "loc": { "start": { - "line": 353, + "line": 363, "column": 10 }, "end": { - "line": 353, + "line": 363, "column": 21 } } @@ -27050,16 +28372,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 12440, - 12451 + 13070, + 13081 ], "loc": { "start": { - "line": 354, + "line": 364, "column": 12 }, "end": { - "line": 354, + "line": 364, "column": 23 } } @@ -27068,31 +28390,31 @@ "type": "Identifier", "name": "type", "range": [ - 12452, - 12456 + 13082, + 13086 ], "loc": { "start": { - "line": 354, + "line": 364, "column": 24 }, "end": { - "line": 354, + "line": 364, "column": 28 } } }, "range": [ - 12440, - 12456 + 13070, + 13086 ], "loc": { "start": { - "line": 354, + "line": 364, "column": 12 }, "end": { - "line": 354, + "line": 364, "column": 28 } } @@ -27102,31 +28424,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 12461, - 12470 + 13091, + 13100 ], "loc": { "start": { - "line": 354, + "line": 364, "column": 33 }, "end": { - "line": 354, + "line": 364, "column": 42 } } }, "range": [ - 12440, - 12470 + 13070, + 13100 ], "loc": { "start": { - "line": 354, + "line": 364, "column": 12 }, "end": { - "line": 354, + "line": 364, "column": 42 } } @@ -27148,16 +28470,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 12484, - 12498 + 13114, + 13128 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 10 }, "end": { - "line": 355, + "line": 365, "column": 24 } } @@ -27166,31 +28488,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 12499, - 12510 + 13129, + 13140 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 25 }, "end": { - "line": 355, + "line": 365, "column": 36 } } }, "range": [ - 12484, - 12510 + 13114, + 13140 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 10 }, "end": { - "line": 355, + "line": 365, "column": 36 } } @@ -27199,31 +28521,31 @@ "type": "Identifier", "name": "push", "range": [ - 12511, - 12515 + 13141, + 13145 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 37 }, "end": { - "line": 355, + "line": 365, "column": 41 } } }, "range": [ - 12484, - 12515 + 13114, + 13145 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 10 }, "end": { - "line": 355, + "line": 365, "column": 41 } } @@ -27238,16 +28560,16 @@ "type": "Identifier", "name": "type", "range": [ - 12518, - 12522 + 13148, + 13152 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 44 }, "end": { - "line": 355, + "line": 365, "column": 48 } } @@ -27259,16 +28581,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 12524, - 12538 + 13154, + 13168 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 50 }, "end": { - "line": 355, + "line": 365, "column": 64 } } @@ -27277,31 +28599,31 @@ "type": "Identifier", "name": "type", "range": [ - 12539, - 12543 + 13169, + 13173 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 65 }, "end": { - "line": 355, + "line": 365, "column": 69 } } }, "range": [ - 12524, - 12543 + 13154, + 13173 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 50 }, "end": { - "line": 355, + "line": 365, "column": 69 } } @@ -27311,16 +28633,16 @@ "shorthand": false, "computed": false, "range": [ - 12518, - 12543 + 13148, + 13173 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 44 }, "end": { - "line": 355, + "line": 365, "column": 69 } } @@ -27331,16 +28653,16 @@ "type": "Identifier", "name": "id", "range": [ - 12545, - 12547 + 13175, + 13177 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 71 }, "end": { - "line": 355, + "line": 365, "column": 73 } } @@ -27352,16 +28674,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 12549, - 12563 + 13179, + 13193 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 75 }, "end": { - "line": 355, + "line": 365, "column": 89 } } @@ -27370,31 +28692,31 @@ "type": "Identifier", "name": "id", "range": [ - 12564, - 12566 + 13194, + 13196 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 90 }, "end": { - "line": 355, + "line": 365, "column": 92 } } }, "range": [ - 12549, - 12566 + 13179, + 13196 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 75 }, "end": { - "line": 355, + "line": 365, "column": 92 } } @@ -27404,16 +28726,16 @@ "shorthand": false, "computed": false, "range": [ - 12545, - 12566 + 13175, + 13196 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 71 }, "end": { - "line": 355, + "line": 365, "column": 92 } } @@ -27424,16 +28746,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 12568, - 12577 + 13198, + 13207 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 94 }, "end": { - "line": 355, + "line": 365, "column": 103 } } @@ -27442,16 +28764,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 12579, - 12594 + 13209, + 13224 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 105 }, "end": { - "line": 355, + "line": 365, "column": 120 } } @@ -27461,63 +28783,63 @@ "shorthand": false, "computed": false, "range": [ - 12568, - 12594 + 13198, + 13224 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 94 }, "end": { - "line": 355, + "line": 365, "column": 120 } } } ], "range": [ - 12516, - 12596 + 13146, + 13226 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 42 }, "end": { - "line": 355, + "line": 365, "column": 122 } } } ], "range": [ - 12484, - 12597 + 13114, + 13227 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 10 }, "end": { - "line": 355, + "line": 365, "column": 123 } } }, "range": [ - 12484, - 12598 + 13114, + 13228 ], "loc": { "start": { - "line": 355, + "line": 365, "column": 10 }, "end": { - "line": 355, + "line": 365, "column": 124 } } @@ -27534,16 +28856,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 12609, - 12623 + 13239, + 13253 ], "loc": { "start": { - "line": 356, + "line": 366, "column": 10 }, "end": { - "line": 356, + "line": 366, "column": 24 } } @@ -27552,31 +28874,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 12624, - 12639 + 13254, + 13269 ], "loc": { "start": { - "line": 356, + "line": 366, "column": 25 }, "end": { - "line": 356, + "line": 366, "column": 40 } } }, "range": [ - 12609, - 12640 + 13239, + 13270 ], "loc": { "start": { - "line": 356, + "line": 366, "column": 10 }, "end": { - "line": 356, + "line": 366, "column": 41 } } @@ -27585,62 +28907,62 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 12643, - 12657 + 13273, + 13287 ], "loc": { "start": { - "line": 356, + "line": 366, "column": 44 }, "end": { - "line": 356, + "line": 366, "column": 58 } } }, "range": [ - 12609, - 12657 + 13239, + 13287 ], "loc": { "start": { - "line": 356, + "line": 366, "column": 10 }, "end": { - "line": 356, + "line": 366, "column": 58 } } }, "range": [ - 12609, - 12658 + 13239, + 13288 ], "loc": { "start": { - "line": 356, + "line": 366, "column": 10 }, "end": { - "line": 356, + "line": 366, "column": 59 } } } ], "range": [ - 12472, - 12668 + 13102, + 13298 ], "loc": { "start": { - "line": 354, + "line": 364, "column": 44 }, "end": { - "line": 357, + "line": 367, "column": 9 } } @@ -27657,16 +28979,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 12678, - 12689 + 13308, + 13319 ], "loc": { "start": { - "line": 357, + "line": 367, "column": 19 }, "end": { - "line": 357, + "line": 367, "column": 30 } } @@ -27675,31 +28997,31 @@ "type": "Identifier", "name": "type", "range": [ - 12690, - 12694 + 13320, + 13324 ], "loc": { "start": { - "line": 357, + "line": 367, "column": 31 }, "end": { - "line": 357, + "line": 367, "column": 35 } } }, "range": [ - 12678, - 12694 + 13308, + 13324 ], "loc": { "start": { - "line": 357, + "line": 367, "column": 19 }, "end": { - "line": 357, + "line": 367, "column": 35 } } @@ -27709,31 +29031,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 12699, - 12709 + 13329, + 13339 ], "loc": { "start": { - "line": 357, + "line": 367, "column": 40 }, "end": { - "line": 357, + "line": 367, "column": 50 } } }, "range": [ - 12678, - 12709 + 13308, + 13339 ], "loc": { "start": { - "line": 357, + "line": 367, "column": 19 }, "end": { - "line": 357, + "line": 367, "column": 50 } } @@ -27755,16 +29077,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 12723, - 12737 + 13353, + 13367 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 10 }, "end": { - "line": 358, + "line": 368, "column": 24 } } @@ -27773,31 +29095,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 12738, - 12749 + 13368, + 13379 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 25 }, "end": { - "line": 358, + "line": 368, "column": 36 } } }, "range": [ - 12723, - 12749 + 13353, + 13379 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 10 }, "end": { - "line": 358, + "line": 368, "column": 36 } } @@ -27806,31 +29128,31 @@ "type": "Identifier", "name": "push", "range": [ - 12750, - 12754 + 13380, + 13384 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 37 }, "end": { - "line": 358, + "line": 368, "column": 41 } } }, "range": [ - 12723, - 12754 + 13353, + 13384 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 10 }, "end": { - "line": 358, + "line": 368, "column": 41 } } @@ -27845,16 +29167,16 @@ "type": "Identifier", "name": "type", "range": [ - 12757, - 12761 + 13387, + 13391 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 44 }, "end": { - "line": 358, + "line": 368, "column": 48 } } @@ -27866,16 +29188,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 12763, - 12777 + 13393, + 13407 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 50 }, "end": { - "line": 358, + "line": 368, "column": 64 } } @@ -27884,31 +29206,31 @@ "type": "Identifier", "name": "type", "range": [ - 12778, - 12782 + 13408, + 13412 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 65 }, "end": { - "line": 358, + "line": 368, "column": 69 } } }, "range": [ - 12763, - 12782 + 13393, + 13412 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 50 }, "end": { - "line": 358, + "line": 368, "column": 69 } } @@ -27918,16 +29240,16 @@ "shorthand": false, "computed": false, "range": [ - 12757, - 12782 + 13387, + 13412 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 44 }, "end": { - "line": 358, + "line": 368, "column": 69 } } @@ -27938,16 +29260,16 @@ "type": "Identifier", "name": "id", "range": [ - 12784, - 12786 + 13414, + 13416 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 71 }, "end": { - "line": 358, + "line": 368, "column": 73 } } @@ -27959,16 +29281,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 12788, - 12802 + 13418, + 13432 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 75 }, "end": { - "line": 358, + "line": 368, "column": 89 } } @@ -27977,31 +29299,31 @@ "type": "Identifier", "name": "id", "range": [ - 12803, - 12805 + 13433, + 13435 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 90 }, "end": { - "line": 358, + "line": 368, "column": 92 } } }, "range": [ - 12788, - 12805 + 13418, + 13435 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 75 }, "end": { - "line": 358, + "line": 368, "column": 92 } } @@ -28011,16 +29333,16 @@ "shorthand": false, "computed": false, "range": [ - 12784, - 12805 + 13414, + 13435 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 71 }, "end": { - "line": 358, + "line": 368, "column": 92 } } @@ -28031,16 +29353,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 12807, - 12816 + 13437, + 13446 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 94 }, "end": { - "line": 358, + "line": 368, "column": 103 } } @@ -28049,16 +29371,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 12818, - 12833 + 13448, + 13463 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 105 }, "end": { - "line": 358, + "line": 368, "column": 120 } } @@ -28068,63 +29390,63 @@ "shorthand": false, "computed": false, "range": [ - 12807, - 12833 + 13437, + 13463 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 94 }, "end": { - "line": 358, + "line": 368, "column": 120 } } } ], "range": [ - 12755, - 12835 + 13385, + 13465 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 42 }, "end": { - "line": 358, + "line": 368, "column": 122 } } } ], "range": [ - 12723, - 12836 + 13353, + 13466 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 10 }, "end": { - "line": 358, + "line": 368, "column": 123 } } }, "range": [ - 12723, - 12837 + 13353, + 13467 ], "loc": { "start": { - "line": 358, + "line": 368, "column": 10 }, "end": { - "line": 358, + "line": 368, "column": 124 } } @@ -28146,16 +29468,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 12852, - 12866 + 13482, + 13496 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 14 }, "end": { - "line": 359, + "line": 369, "column": 28 } } @@ -28164,31 +29486,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 12867, - 12882 + 13497, + 13512 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 29 }, "end": { - "line": 359, + "line": 369, "column": 44 } } }, "range": [ - 12852, - 12883 + 13482, + 13513 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 14 }, "end": { - "line": 359, + "line": 369, "column": 45 } } @@ -28197,31 +29519,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 12884, - 12891 + 13514, + 13521 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 46 }, "end": { - "line": 359, + "line": 369, "column": 53 } } }, "range": [ - 12852, - 12891 + 13482, + 13521 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 14 }, "end": { - "line": 359, + "line": 369, "column": 53 } } @@ -28231,32 +29553,32 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 12892, - 12906 + 13522, + 13536 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 54 }, "end": { - "line": 359, + "line": 369, "column": 68 } } } ], "range": [ - 12852, - 12907 + 13482, + 13537 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 14 }, "end": { - "line": 359, + "line": 369, "column": 69 } } @@ -28269,47 +29591,47 @@ "value": 1, "raw": "1", "range": [ - 12913, - 12914 + 13543, + 13544 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 75 }, "end": { - "line": 359, + "line": 369, "column": 76 } } }, "prefix": true, "range": [ - 12912, - 12914 + 13542, + 13544 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 74 }, "end": { - "line": 359, + "line": 369, "column": 76 } } }, "range": [ - 12852, - 12914 + 13482, + 13544 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 14 }, "end": { - "line": 359, + "line": 369, "column": 76 } } @@ -28331,16 +29653,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 12930, - 12944 + 13560, + 13574 ], "loc": { "start": { - "line": 360, + "line": 370, "column": 12 }, "end": { - "line": 360, + "line": 370, "column": 26 } } @@ -28349,31 +29671,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 12945, - 12960 + 13575, + 13590 ], "loc": { "start": { - "line": 360, + "line": 370, "column": 27 }, "end": { - "line": 360, + "line": 370, "column": 42 } } }, "range": [ - 12930, - 12961 + 13560, + 13591 ], "loc": { "start": { - "line": 360, + "line": 370, "column": 12 }, "end": { - "line": 360, + "line": 370, "column": 43 } } @@ -28382,31 +29704,31 @@ "type": "Identifier", "name": "push", "range": [ - 12962, - 12966 + 13592, + 13596 ], "loc": { "start": { - "line": 360, + "line": 370, "column": 44 }, "end": { - "line": 360, + "line": 370, "column": 48 } } }, "range": [ - 12930, - 12966 + 13560, + 13596 ], "loc": { "start": { - "line": 360, + "line": 370, "column": 12 }, "end": { - "line": 360, + "line": 370, "column": 48 } } @@ -28416,95 +29738,95 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 12967, - 12981 + 13597, + 13611 ], "loc": { "start": { - "line": 360, + "line": 370, "column": 49 }, "end": { - "line": 360, + "line": 370, "column": 63 } } } ], "range": [ - 12930, - 12982 + 13560, + 13612 ], "loc": { "start": { - "line": 360, + "line": 370, "column": 12 }, "end": { - "line": 360, + "line": 370, "column": 64 } } }, "range": [ - 12930, - 12983 + 13560, + 13613 ], "loc": { "start": { - "line": 360, + "line": 370, "column": 12 }, "end": { - "line": 360, + "line": 370, "column": 65 } } } ], "range": [ - 12916, - 12995 + 13546, + 13625 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 78 }, "end": { - "line": 361, + "line": 371, "column": 11 } } }, "alternate": null, "range": [ - 12848, - 12995 + 13478, + 13625 ], "loc": { "start": { - "line": 359, + "line": 369, "column": 10 }, "end": { - "line": 361, + "line": 371, "column": 11 } } } ], "range": [ - 12711, - 13005 + 13341, + 13635 ], "loc": { "start": { - "line": 357, + "line": 367, "column": 52 }, "end": { - "line": 362, + "line": 372, "column": 9 } } @@ -28521,16 +29843,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 13015, - 13026 + 13645, + 13656 ], "loc": { "start": { - "line": 362, + "line": 372, "column": 19 }, "end": { - "line": 362, + "line": 372, "column": 30 } } @@ -28539,31 +29861,31 @@ "type": "Identifier", "name": "type", "range": [ - 13027, - 13031 + 13657, + 13661 ], "loc": { "start": { - "line": 362, + "line": 372, "column": 31 }, "end": { - "line": 362, + "line": 372, "column": 35 } } }, "range": [ - 13015, - 13031 + 13645, + 13661 ], "loc": { "start": { - "line": 362, + "line": 372, "column": 19 }, "end": { - "line": 362, + "line": 372, "column": 35 } } @@ -28573,31 +29895,31 @@ "value": "attr", "raw": "\"attr\"", "range": [ - 13036, - 13042 + 13666, + 13672 ], "loc": { "start": { - "line": 362, + "line": 372, "column": 40 }, "end": { - "line": 362, + "line": 372, "column": 46 } } }, "range": [ - 13015, - 13042 + 13645, + 13672 ], "loc": { "start": { - "line": 362, + "line": 372, "column": 19 }, "end": { - "line": 362, + "line": 372, "column": 46 } } @@ -28613,16 +29935,16 @@ "type": "Identifier", "name": "Error", "range": [ - 13066, - 13071 + 13696, + 13701 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 20 }, "end": { - "line": 363, + "line": 373, "column": 25 } } @@ -28639,16 +29961,16 @@ }, "tail": false, "range": [ - 13072, - 13109 + 13702, + 13739 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 26 }, "end": { - "line": 363, + "line": 373, "column": 63 } } @@ -28661,16 +29983,16 @@ }, "tail": false, "range": [ - 13124, - 13147 + 13754, + 13777 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 78 }, "end": { - "line": 363, + "line": 373, "column": 101 } } @@ -28683,16 +30005,16 @@ }, "tail": true, "range": [ - 13162, - 13166 + 13792, + 13796 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 116 }, "end": { - "line": 363, + "line": 373, "column": 120 } } @@ -28703,16 +30025,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 13109, - 13124 + 13739, + 13754 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 63 }, "end": { - "line": 363, + "line": 373, "column": 78 } } @@ -28721,141 +30043,141 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 13147, - 13162 + 13777, + 13792 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 101 }, "end": { - "line": 363, + "line": 373, "column": 116 } } } ], "range": [ - 13072, - 13166 + 13702, + 13796 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 26 }, "end": { - "line": 363, + "line": 373, "column": 120 } } } ], "range": [ - 13062, - 13167 + 13692, + 13797 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 16 }, "end": { - "line": 363, + "line": 373, "column": 121 } } }, "range": [ - 13056, - 13168 + 13686, + 13798 ], "loc": { "start": { - "line": 363, + "line": 373, "column": 10 }, "end": { - "line": 363, + "line": 373, "column": 122 } } } ], "range": [ - 13044, - 13178 + 13674, + 13808 ], "loc": { "start": { - "line": 362, + "line": 372, "column": 48 }, "end": { - "line": 364, + "line": 374, "column": 9 } } }, "alternate": null, "range": [ - 13011, - 13178 + 13641, + 13808 ], "loc": { "start": { - "line": 362, + "line": 372, "column": 15 }, "end": { - "line": 364, + "line": 374, "column": 9 } } }, "range": [ - 12674, - 13178 + 13304, + 13808 ], "loc": { "start": { - "line": 357, + "line": 367, "column": 15 }, "end": { - "line": 364, + "line": 374, "column": 9 } } }, "range": [ - 12436, - 13178 + 13066, + 13808 ], "loc": { "start": { - "line": 354, + "line": 364, "column": 8 }, "end": { - "line": 364, + "line": 374, "column": 9 } } } ], "range": [ - 12426, - 13186 + 13056, + 13816 ], "loc": { "start": { - "line": 353, + "line": 363, "column": 23 }, "end": { - "line": 365, + "line": 375, "column": 7 } } @@ -28869,16 +30191,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 13196, - 13207 + 13826, + 13837 ], "loc": { "start": { - "line": 365, + "line": 375, "column": 17 }, "end": { - "line": 365, + "line": 375, "column": 28 } } @@ -28887,31 +30209,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 13208, - 13215 + 13838, + 13845 ], "loc": { "start": { - "line": 365, + "line": 375, "column": 29 }, "end": { - "line": 365, + "line": 375, "column": 36 } } }, "range": [ - 13196, - 13215 + 13826, + 13845 ], "loc": { "start": { - "line": 365, + "line": 375, "column": 17 }, "end": { - "line": 365, + "line": 375, "column": 36 } } @@ -28927,16 +30249,16 @@ "type": "Identifier", "name": "Error", "range": [ - 13237, - 13242 + 13867, + 13872 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 18 }, "end": { - "line": 366, + "line": 376, "column": 23 } } @@ -28953,16 +30275,16 @@ }, "tail": false, "range": [ - 13243, - 13280 + 13873, + 13910 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 24 }, "end": { - "line": 366, + "line": 376, "column": 61 } } @@ -28975,16 +30297,16 @@ }, "tail": false, "range": [ - 13295, - 13313 + 13925, + 13943 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 76 }, "end": { - "line": 366, + "line": 376, "column": 94 } } @@ -28997,16 +30319,16 @@ }, "tail": true, "range": [ - 13332, - 13336 + 13962, + 13966 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 113 }, "end": { - "line": 366, + "line": 376, "column": 117 } } @@ -29017,16 +30339,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 13280, - 13295 + 13910, + 13925 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 61 }, "end": { - "line": 366, + "line": 376, "column": 76 } } @@ -29038,16 +30360,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 13313, - 13324 + 13943, + 13954 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 94 }, "end": { - "line": 366, + "line": 376, "column": 105 } } @@ -29056,173 +30378,173 @@ "type": "Identifier", "name": "inverse", "range": [ - 13325, - 13332 + 13955, + 13962 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 106 }, "end": { - "line": 366, + "line": 376, "column": 113 } } }, "range": [ - 13313, - 13332 + 13943, + 13962 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 94 }, "end": { - "line": 366, + "line": 376, "column": 113 } } } ], "range": [ - 13243, - 13336 + 13873, + 13966 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 24 }, "end": { - "line": 366, + "line": 376, "column": 117 } } } ], "range": [ - 13233, - 13337 + 13863, + 13967 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 14 }, "end": { - "line": 366, + "line": 376, "column": 118 } } }, "range": [ - 13227, - 13338 + 13857, + 13968 ], "loc": { "start": { - "line": 366, + "line": 376, "column": 8 }, "end": { - "line": 366, + "line": 376, "column": 119 } } } ], "range": [ - 13217, - 13346 + 13847, + 13976 ], "loc": { "start": { - "line": 365, + "line": 375, "column": 38 }, "end": { - "line": 367, + "line": 377, "column": 7 } } }, "alternate": null, "range": [ - 13192, - 13346 + 13822, + 13976 ], "loc": { "start": { - "line": 365, + "line": 375, "column": 13 }, "end": { - "line": 367, + "line": 377, "column": 7 } } }, "range": [ - 12409, - 13346 + 13039, + 13976 ], "loc": { "start": { - "line": 353, + "line": 363, "column": 6 }, "end": { - "line": 367, + "line": 377, "column": 7 } } } ], "range": [ - 12085, - 13352 + 12715, + 13982 ], "loc": { "start": { - "line": 349, + "line": 359, "column": 26 }, "end": { - "line": 368, + "line": 378, "column": 5 } } }, "alternate": null, "range": [ - 12063, - 13352 + 12693, + 13982 ], "loc": { "start": { - "line": 349, + "line": 359, "column": 4 }, "end": { - "line": 368, + "line": 378, "column": 5 } } } ], "range": [ - 11935, - 13356 + 12565, + 13986 ], "loc": { "start": { - "line": 346, + "line": 356, "column": 88 }, "end": { - "line": 369, + "line": 379, "column": 3 } } @@ -29230,16 +30552,16 @@ "generator": false, "expression": false, "range": [ - 11872, - 13356 + 12502, + 13986 ], "loc": { "start": { - "line": 346, + "line": 356, "column": 25 }, "end": { - "line": 369, + "line": 379, "column": 3 } } @@ -29247,16 +30569,16 @@ "kind": "method", "computed": false, "range": [ - 11849, - 13356 + 12479, + 13986 ], "loc": { "start": { - "line": 346, + "line": 356, "column": 2 }, "end": { - "line": 369, + "line": 379, "column": 3 } }, @@ -29268,16 +30590,16 @@ "type": "Identifier", "name": "_remove", "range": [ - 13360, - 13367 + 13990, + 13997 ], "loc": { "start": { - "line": 371, + "line": 381, "column": 2 }, "end": { - "line": 371, + "line": 381, "column": 9 } } @@ -29290,16 +30612,16 @@ "type": "Identifier", "name": "resource", "range": [ - 13368, - 13376 + 13998, + 14006 ], "loc": { "start": { - "line": 371, + "line": 381, "column": 10 }, "end": { - "line": 371, + "line": 381, "column": 18 } } @@ -29322,16 +30644,16 @@ "type": "Identifier", "name": "resource", "range": [ - 13384, - 13392 + 14014, + 14022 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 4 }, "end": { - "line": 372, + "line": 382, "column": 12 } } @@ -29340,31 +30662,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 13393, - 13404 + 14023, + 14034 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 13 }, "end": { - "line": 372, + "line": 382, "column": 24 } } }, "range": [ - 13384, - 13404 + 14014, + 14034 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 4 }, "end": { - "line": 372, + "line": 382, "column": 24 } } @@ -29373,31 +30695,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 13405, - 13412 + 14035, + 14042 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 25 }, "end": { - "line": 372, + "line": 382, "column": 32 } } }, "range": [ - 13384, - 13412 + 14014, + 14042 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 4 }, "end": { - "line": 372, + "line": 382, "column": 32 } } @@ -29411,16 +30733,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 13413, - 13422 + 14043, + 14052 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 33 }, "end": { - "line": 372, + "line": 382, "column": 42 } } @@ -29438,16 +30760,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 13438, - 13455 + 14068, + 14085 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 10 }, "end": { - "line": 373, + "line": 383, "column": 27 } } @@ -29464,16 +30786,16 @@ "object": { "type": "ThisExpression", "range": [ - 13458, - 13462 + 14088, + 14092 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 30 }, "end": { - "line": 373, + "line": 383, "column": 34 } } @@ -29482,31 +30804,31 @@ "type": "Identifier", "name": "_data", "range": [ - 13463, - 13468 + 14093, + 14098 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 35 }, "end": { - "line": 373, + "line": 383, "column": 40 } } }, "range": [ - 13458, - 13468 + 14088, + 14098 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 30 }, "end": { - "line": 373, + "line": 383, "column": 40 } } @@ -29518,16 +30840,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 13469, - 13478 + 14099, + 14108 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 41 }, "end": { - "line": 373, + "line": 383, "column": 50 } } @@ -29536,46 +30858,46 @@ "type": "Identifier", "name": "type", "range": [ - 13479, - 13483 + 14109, + 14113 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 51 }, "end": { - "line": 373, + "line": 383, "column": 55 } } }, "range": [ - 13469, - 13483 + 14099, + 14113 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 41 }, "end": { - "line": 373, + "line": 383, "column": 55 } } }, "range": [ - 13458, - 13484 + 14088, + 14114 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 30 }, "end": { - "line": 373, + "line": 383, "column": 56 } } @@ -29587,16 +30909,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 13485, - 13494 + 14115, + 14124 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 57 }, "end": { - "line": 373, + "line": 383, "column": 66 } } @@ -29605,61 +30927,61 @@ "type": "Identifier", "name": "id", "range": [ - 13495, - 13497 + 14125, + 14127 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 67 }, "end": { - "line": 373, + "line": 383, "column": 69 } } }, "range": [ - 13485, - 13497 + 14115, + 14127 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 57 }, "end": { - "line": 373, + "line": 383, "column": 69 } } }, "range": [ - 13458, - 13498 + 14088, + 14128 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 30 }, "end": { - "line": 373, + "line": 383, "column": 70 } } }, "range": [ - 13438, - 13498 + 14068, + 14128 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 10 }, "end": { - "line": 373, + "line": 383, "column": 70 } } @@ -29667,16 +30989,16 @@ ], "kind": "let", "range": [ - 13434, - 13499 + 14064, + 14129 ], "loc": { "start": { - "line": 373, + "line": 383, "column": 6 }, "end": { - "line": 373, + "line": 383, "column": 71 } } @@ -29698,16 +31020,16 @@ "object": { "type": "ThisExpression", "range": [ - 13514, - 13518 + 14144, + 14148 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 14 }, "end": { - "line": 374, + "line": 384, "column": 18 } } @@ -29716,31 +31038,31 @@ "type": "Identifier", "name": "_types", "range": [ - 13519, - 13525 + 14149, + 14155 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 19 }, "end": { - "line": 374, + "line": 384, "column": 25 } } }, "range": [ - 13514, - 13525 + 14144, + 14155 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 14 }, "end": { - "line": 374, + "line": 384, "column": 25 } } @@ -29752,16 +31074,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 13526, - 13535 + 14156, + 14165 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 26 }, "end": { - "line": 374, + "line": 384, "column": 35 } } @@ -29770,46 +31092,46 @@ "type": "Identifier", "name": "type", "range": [ - 13536, - 13540 + 14166, + 14170 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 36 }, "end": { - "line": 374, + "line": 384, "column": 40 } } }, "range": [ - 13526, - 13540 + 14156, + 14170 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 26 }, "end": { - "line": 374, + "line": 384, "column": 40 } } }, "range": [ - 13514, - 13541 + 14144, + 14171 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 14 }, "end": { - "line": 374, + "line": 384, "column": 41 } } @@ -29821,16 +31143,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 13542, - 13551 + 14172, + 14181 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 42 }, "end": { - "line": 374, + "line": 384, "column": 51 } } @@ -29839,46 +31161,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 13552, - 13561 + 14182, + 14191 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 52 }, "end": { - "line": 374, + "line": 384, "column": 61 } } }, "range": [ - 13542, - 13561 + 14172, + 14191 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 42 }, "end": { - "line": 374, + "line": 384, "column": 61 } } }, "range": [ - 13514, - 13562 + 14144, + 14192 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 14 }, "end": { - "line": 374, + "line": 384, "column": 62 } } @@ -29887,31 +31209,31 @@ "type": "Identifier", "name": "type", "range": [ - 13563, - 13567 + 14193, + 14197 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 63 }, "end": { - "line": 374, + "line": 384, "column": 67 } } }, "range": [ - 13514, - 13567 + 14144, + 14197 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 14 }, "end": { - "line": 374, + "line": 384, "column": 67 } } @@ -29924,16 +31246,16 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 13584, - 13593 + 14214, + 14223 ], "loc": { "start": { - "line": 375, + "line": 385, "column": 13 }, "end": { - "line": 375, + "line": 385, "column": 22 } } @@ -29954,16 +31276,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 13607, - 13624 + 14237, + 14254 ], "loc": { "start": { - "line": 376, + "line": 386, "column": 10 }, "end": { - "line": 376, + "line": 386, "column": 27 } } @@ -29975,16 +31297,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 13625, - 13634 + 14255, + 14264 ], "loc": { "start": { - "line": 376, + "line": 386, "column": 28 }, "end": { - "line": 376, + "line": 386, "column": 37 } } @@ -29993,46 +31315,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 13635, - 13644 + 14265, + 14274 ], "loc": { "start": { - "line": 376, + "line": 386, "column": 38 }, "end": { - "line": 376, + "line": 386, "column": 47 } } }, "range": [ - 13625, - 13644 + 14255, + 14274 ], "loc": { "start": { - "line": 376, + "line": 386, "column": 28 }, "end": { - "line": 376, + "line": 386, "column": 47 } } }, "range": [ - 13607, - 13645 + 14237, + 14275 ], "loc": { "start": { - "line": 376, + "line": 386, "column": 10 }, "end": { - "line": 376, + "line": 386, "column": 48 } } @@ -30042,46 +31364,46 @@ "value": null, "raw": "null", "range": [ - 13648, - 13652 + 14278, + 14282 ], "loc": { "start": { - "line": 376, + "line": 386, "column": 51 }, "end": { - "line": 376, + "line": 386, "column": 55 } } }, "range": [ - 13607, - 13652 + 14237, + 14282 ], "loc": { "start": { - "line": 376, + "line": 386, "column": 10 }, "end": { - "line": 376, + "line": 386, "column": 55 } } }, "range": [ - 13607, - 13653 + 14237, + 14283 ], "loc": { "start": { - "line": 376, + "line": 386, "column": 10 }, "end": { - "line": 376, + "line": 386, "column": 56 } } @@ -30090,48 +31412,48 @@ "type": "BreakStatement", "label": null, "range": [ - 13664, - 13670 + 14294, + 14300 ], "loc": { "start": { - "line": 377, + "line": 387, "column": 10 }, "end": { - "line": 377, + "line": 387, "column": 16 } } } ], "range": [ - 13595, - 13680 + 14225, + 14310 ], "loc": { "start": { - "line": 375, + "line": 385, "column": 24 }, "end": { - "line": 378, + "line": 388, "column": 9 } } } ], "range": [ - 13579, - 13680 + 14209, + 14310 ], "loc": { "start": { - "line": 375, + "line": 385, "column": 8 }, "end": { - "line": 378, + "line": 388, "column": 9 } } @@ -30143,16 +31465,16 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 13694, - 13704 + 14324, + 14334 ], "loc": { "start": { - "line": 379, + "line": 389, "column": 13 }, "end": { - "line": 379, + "line": 389, "column": 23 } } @@ -30170,16 +31492,16 @@ "type": "Identifier", "name": "index", "range": [ - 13722, - 13727 + 14352, + 14357 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 14 }, "end": { - "line": 380, + "line": 390, "column": 19 } } @@ -30196,16 +31518,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 13730, - 13747 + 14360, + 14377 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 22 }, "end": { - "line": 380, + "line": 390, "column": 39 } } @@ -30217,16 +31539,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 13748, - 13757 + 14378, + 14387 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 40 }, "end": { - "line": 380, + "line": 390, "column": 49 } } @@ -30235,46 +31557,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 13758, - 13767 + 14388, + 14397 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 50 }, "end": { - "line": 380, + "line": 390, "column": 59 } } }, "range": [ - 13748, - 13767 + 14378, + 14397 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 40 }, "end": { - "line": 380, + "line": 390, "column": 59 } } }, "range": [ - 13730, - 13768 + 14360, + 14398 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 22 }, "end": { - "line": 380, + "line": 390, "column": 60 } } @@ -30283,31 +31605,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 13769, - 13776 + 14399, + 14406 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 61 }, "end": { - "line": 380, + "line": 390, "column": 68 } } }, "range": [ - 13730, - 13776 + 14360, + 14406 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 22 }, "end": { - "line": 380, + "line": 390, "column": 68 } } @@ -30317,47 +31639,47 @@ "type": "Identifier", "name": "resource", "range": [ - 13777, - 13785 + 14407, + 14415 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 69 }, "end": { - "line": 380, + "line": 390, "column": 77 } } } ], "range": [ - 13730, - 13786 + 14360, + 14416 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 22 }, "end": { - "line": 380, + "line": 390, "column": 78 } } }, "range": [ - 13722, - 13786 + 14352, + 14416 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 14 }, "end": { - "line": 380, + "line": 390, "column": 78 } } @@ -30365,16 +31687,16 @@ ], "kind": "let", "range": [ - 13718, - 13787 + 14348, + 14417 ], "loc": { "start": { - "line": 380, + "line": 390, "column": 10 }, "end": { - "line": 380, + "line": 390, "column": 79 } } @@ -30388,16 +31710,16 @@ "type": "Identifier", "name": "index", "range": [ - 13802, - 13807 + 14432, + 14437 ], "loc": { "start": { - "line": 381, + "line": 391, "column": 14 }, "end": { - "line": 381, + "line": 391, "column": 19 } } @@ -30410,47 +31732,47 @@ "value": 1, "raw": "1", "range": [ - 13813, - 13814 + 14443, + 14444 ], "loc": { "start": { - "line": 381, + "line": 391, "column": 25 }, "end": { - "line": 381, + "line": 391, "column": 26 } } }, "prefix": true, "range": [ - 13812, - 13814 + 14442, + 14444 ], "loc": { "start": { - "line": 381, + "line": 391, "column": 24 }, "end": { - "line": 381, + "line": 391, "column": 26 } } }, "range": [ - 13802, - 13814 + 14432, + 14444 ], "loc": { "start": { - "line": 381, + "line": 391, "column": 14 }, "end": { - "line": 381, + "line": 391, "column": 26 } } @@ -30472,16 +31794,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 13830, - 13847 + 14460, + 14477 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 12 }, "end": { - "line": 382, + "line": 392, "column": 29 } } @@ -30493,16 +31815,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 13848, - 13857 + 14478, + 14487 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 30 }, "end": { - "line": 382, + "line": 392, "column": 39 } } @@ -30511,46 +31833,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 13858, - 13867 + 14488, + 14497 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 40 }, "end": { - "line": 382, + "line": 392, "column": 49 } } }, "range": [ - 13848, - 13867 + 14478, + 14497 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 30 }, "end": { - "line": 382, + "line": 392, "column": 49 } } }, "range": [ - 13830, - 13868 + 14460, + 14498 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 12 }, "end": { - "line": 382, + "line": 392, "column": 50 } } @@ -30559,31 +31881,31 @@ "type": "Identifier", "name": "splice", "range": [ - 13869, - 13875 + 14499, + 14505 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 51 }, "end": { - "line": 382, + "line": 392, "column": 57 } } }, "range": [ - 13830, - 13875 + 14460, + 14505 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 12 }, "end": { - "line": 382, + "line": 392, "column": 57 } } @@ -30593,16 +31915,16 @@ "type": "Identifier", "name": "index", "range": [ - 13876, - 13881 + 14506, + 14511 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 58 }, "end": { - "line": 382, + "line": 392, "column": 63 } } @@ -30612,79 +31934,79 @@ "value": 1, "raw": "1", "range": [ - 13883, - 13884 + 14513, + 14514 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 65 }, "end": { - "line": 382, + "line": 392, "column": 66 } } } ], "range": [ - 13830, - 13885 + 14460, + 14515 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 12 }, "end": { - "line": 382, + "line": 392, "column": 67 } } }, "range": [ - 13830, - 13886 + 14460, + 14516 ], "loc": { "start": { - "line": 382, + "line": 392, "column": 12 }, "end": { - "line": 382, + "line": 392, "column": 68 } } } ], "range": [ - 13816, - 13898 + 14446, + 14528 ], "loc": { "start": { - "line": 381, + "line": 391, "column": 28 }, "end": { - "line": 383, + "line": 393, "column": 11 } } }, "alternate": null, "range": [ - 13798, - 13898 + 14428, + 14528 ], "loc": { "start": { - "line": 381, + "line": 391, "column": 10 }, "end": { - "line": 383, + "line": 393, "column": 11 } } @@ -30693,48 +32015,48 @@ "type": "BreakStatement", "label": null, "range": [ - 13909, - 13915 + 14539, + 14545 ], "loc": { "start": { - "line": 384, + "line": 394, "column": 10 }, "end": { - "line": 384, + "line": 394, "column": 16 } } } ], "range": [ - 13706, - 13925 + 14336, + 14555 ], "loc": { "start": { - "line": 379, + "line": 389, "column": 25 }, "end": { - "line": 385, + "line": 395, "column": 9 } } } ], "range": [ - 13689, - 13925 + 14319, + 14555 ], "loc": { "start": { - "line": 379, + "line": 389, "column": 8 }, "end": { - "line": 385, + "line": 395, "column": 9 } } @@ -30750,64 +32072,64 @@ "type": "BreakStatement", "label": null, "range": [ - 13955, - 13961 + 14585, + 14591 ], "loc": { "start": { - "line": 387, + "line": 397, "column": 10 }, "end": { - "line": 387, + "line": 397, "column": 16 } } } ], "range": [ - 13943, - 13971 + 14573, + 14601 ], "loc": { "start": { - "line": 386, + "line": 396, "column": 17 }, "end": { - "line": 388, + "line": 398, "column": 9 } } } ], "range": [ - 13934, - 13971 + 14564, + 14601 ], "loc": { "start": { - "line": 386, + "line": 396, "column": 8 }, "end": { - "line": 388, + "line": 398, "column": 9 } } } ], "range": [ - 13506, - 13979 + 14136, + 14609 ], "loc": { "start": { - "line": 374, + "line": 384, "column": 6 }, "end": { - "line": 389, + "line": 399, "column": 7 } }, @@ -30816,16 +32138,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 13986, - 14045 + 14616, + 14675 ], "loc": { "start": { - "line": 390, + "line": 400, "column": 6 }, "end": { - "line": 390, + "line": 400, "column": 65 } } @@ -30844,16 +32166,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 14052, - 14069 + 14682, + 14699 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 6 }, "end": { - "line": 391, + "line": 401, "column": 23 } } @@ -30862,31 +32184,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 14070, - 14081 + 14700, + 14711 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 24 }, "end": { - "line": 391, + "line": 401, "column": 35 } } }, "range": [ - 14052, - 14081 + 14682, + 14711 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 6 }, "end": { - "line": 391, + "line": 401, "column": 35 } } @@ -30903,16 +32225,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 14084, - 14101 + 14714, + 14731 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 38 }, "end": { - "line": 391, + "line": 401, "column": 55 } } @@ -30921,31 +32243,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 14102, - 14113 + 14732, + 14743 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 56 }, "end": { - "line": 391, + "line": 401, "column": 67 } } }, "range": [ - 14084, - 14113 + 14714, + 14743 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 38 }, "end": { - "line": 391, + "line": 401, "column": 67 } } @@ -30954,31 +32276,31 @@ "type": "Identifier", "name": "filter", "range": [ - 14114, - 14120 + 14744, + 14750 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 68 }, "end": { - "line": 391, + "line": 401, "column": 74 } } }, "range": [ - 14084, - 14120 + 14714, + 14750 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 38 }, "end": { - "line": 391, + "line": 401, "column": 74 } } @@ -30992,16 +32314,16 @@ "type": "Identifier", "name": "d", "range": [ - 14121, - 14122 + 14751, + 14752 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 75 }, "end": { - "line": 391, + "line": 401, "column": 76 } } @@ -31028,16 +32350,16 @@ "type": "Identifier", "name": "d", "range": [ - 14145, - 14146 + 14775, + 14776 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 17 }, "end": { - "line": 392, + "line": 402, "column": 18 } } @@ -31046,31 +32368,31 @@ "type": "Identifier", "name": "type", "range": [ - 14147, - 14151 + 14777, + 14781 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 19 }, "end": { - "line": 392, + "line": 402, "column": 23 } } }, "range": [ - 14145, - 14151 + 14775, + 14781 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 17 }, "end": { - "line": 392, + "line": 402, "column": 23 } } @@ -31082,16 +32404,16 @@ "type": "Identifier", "name": "resource", "range": [ - 14156, - 14164 + 14786, + 14794 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 28 }, "end": { - "line": 392, + "line": 402, "column": 36 } } @@ -31100,46 +32422,46 @@ "type": "Identifier", "name": "type", "range": [ - 14165, - 14169 + 14795, + 14799 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 37 }, "end": { - "line": 392, + "line": 402, "column": 41 } } }, "range": [ - 14156, - 14169 + 14786, + 14799 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 28 }, "end": { - "line": 392, + "line": 402, "column": 41 } } }, "range": [ - 14145, - 14169 + 14775, + 14799 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 17 }, "end": { - "line": 392, + "line": 402, "column": 41 } } @@ -31154,16 +32476,16 @@ "type": "Identifier", "name": "d", "range": [ - 14173, - 14174 + 14803, + 14804 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 45 }, "end": { - "line": 392, + "line": 402, "column": 46 } } @@ -31172,31 +32494,31 @@ "type": "Identifier", "name": "id", "range": [ - 14175, - 14177 + 14805, + 14807 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 47 }, "end": { - "line": 392, + "line": 402, "column": 49 } } }, "range": [ - 14173, - 14177 + 14803, + 14807 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 45 }, "end": { - "line": 392, + "line": 402, "column": 49 } } @@ -31208,16 +32530,16 @@ "type": "Identifier", "name": "resource", "range": [ - 14182, - 14190 + 14812, + 14820 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 54 }, "end": { - "line": 392, + "line": 402, "column": 62 } } @@ -31226,108 +32548,108 @@ "type": "Identifier", "name": "id", "range": [ - 14191, - 14193 + 14821, + 14823 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 63 }, "end": { - "line": 392, + "line": 402, "column": 65 } } }, "range": [ - 14182, - 14193 + 14812, + 14823 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 54 }, "end": { - "line": 392, + "line": 402, "column": 65 } } }, "range": [ - 14173, - 14193 + 14803, + 14823 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 45 }, "end": { - "line": 392, + "line": 402, "column": 65 } } }, "range": [ - 14145, - 14193 + 14775, + 14823 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 17 }, "end": { - "line": 392, + "line": 402, "column": 65 } } }, "prefix": true, "range": [ - 14143, - 14194 + 14773, + 14824 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 15 }, "end": { - "line": 392, + "line": 402, "column": 66 } } }, "range": [ - 14136, - 14195 + 14766, + 14825 ], "loc": { "start": { - "line": 392, + "line": 402, "column": 8 }, "end": { - "line": 392, + "line": 402, "column": 67 } } } ], "range": [ - 14126, - 14203 + 14756, + 14833 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 80 }, "end": { - "line": 393, + "line": 403, "column": 7 } } @@ -31335,62 +32657,62 @@ "generator": false, "expression": false, "range": [ - 14121, - 14203 + 14751, + 14833 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 75 }, "end": { - "line": 393, + "line": 403, "column": 7 } } } ], "range": [ - 14084, - 14204 + 14714, + 14834 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 38 }, "end": { - "line": 393, + "line": 403, "column": 8 } } }, "range": [ - 14052, - 14204 + 14682, + 14834 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 6 }, "end": { - "line": 393, + "line": 403, "column": 8 } } }, "range": [ - 14052, - 14205 + 14682, + 14835 ], "loc": { "start": { - "line": 391, + "line": 401, "column": 6 }, "end": { - "line": 393, + "line": 403, "column": 9 } }, @@ -31399,16 +32721,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 13986, - 14045 + 14616, + 14675 ], "loc": { "start": { - "line": 390, + "line": 400, "column": 6 }, "end": { - "line": 390, + "line": 400, "column": 65 } } @@ -31417,16 +32739,16 @@ } ], "range": [ - 13426, - 14211 + 14056, + 14841 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 46 }, "end": { - "line": 394, + "line": 404, "column": 5 } } @@ -31434,47 +32756,47 @@ "generator": false, "expression": false, "range": [ - 13413, - 14211 + 14043, + 14841 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 33 }, "end": { - "line": 394, + "line": 404, "column": 5 } } } ], "range": [ - 13384, - 14212 + 14014, + 14842 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 4 }, "end": { - "line": 394, + "line": 404, "column": 6 } } }, "range": [ - 13384, - 14213 + 14014, + 14843 ], "loc": { "start": { - "line": 372, + "line": 382, "column": 4 }, "end": { - "line": 394, + "line": 404, "column": 7 } } @@ -31496,16 +32818,16 @@ "object": { "type": "ThisExpression", "range": [ - 14225, - 14229 + 14855, + 14859 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 11 }, "end": { - "line": 395, + "line": 405, "column": 15 } } @@ -31514,31 +32836,31 @@ "type": "Identifier", "name": "_data", "range": [ - 14230, - 14235 + 14860, + 14865 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 16 }, "end": { - "line": 395, + "line": 405, "column": 21 } } }, "range": [ - 14225, - 14235 + 14855, + 14865 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 11 }, "end": { - "line": 395, + "line": 405, "column": 21 } } @@ -31550,16 +32872,16 @@ "type": "Identifier", "name": "resource", "range": [ - 14236, - 14244 + 14866, + 14874 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 22 }, "end": { - "line": 395, + "line": 405, "column": 30 } } @@ -31568,46 +32890,46 @@ "type": "Identifier", "name": "type", "range": [ - 14245, - 14249 + 14875, + 14879 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 31 }, "end": { - "line": 395, + "line": 405, "column": 35 } } }, "range": [ - 14236, - 14249 + 14866, + 14879 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 22 }, "end": { - "line": 395, + "line": 405, "column": 35 } } }, "range": [ - 14225, - 14250 + 14855, + 14880 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 11 }, "end": { - "line": 395, + "line": 405, "column": 36 } } @@ -31619,16 +32941,16 @@ "type": "Identifier", "name": "resource", "range": [ - 14251, - 14259 + 14881, + 14889 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 37 }, "end": { - "line": 395, + "line": 405, "column": 45 } } @@ -31637,93 +32959,93 @@ "type": "Identifier", "name": "id", "range": [ - 14260, - 14262 + 14890, + 14892 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 46 }, "end": { - "line": 395, + "line": 405, "column": 48 } } }, "range": [ - 14251, - 14262 + 14881, + 14892 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 37 }, "end": { - "line": 395, + "line": 405, "column": 48 } } }, "range": [ - 14225, - 14263 + 14855, + 14893 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 11 }, "end": { - "line": 395, + "line": 405, "column": 49 } } }, "prefix": true, "range": [ - 14218, - 14263 + 14848, + 14893 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 4 }, "end": { - "line": 395, + "line": 405, "column": 49 } } }, "range": [ - 14218, - 14264 + 14848, + 14894 ], "loc": { "start": { - "line": 395, + "line": 405, "column": 4 }, "end": { - "line": 395, + "line": 405, "column": 50 } } } ], "range": [ - 13378, - 14268 + 14008, + 14898 ], "loc": { "start": { - "line": 371, + "line": 381, "column": 20 }, "end": { - "line": 396, + "line": 406, "column": 3 } } @@ -31731,16 +33053,16 @@ "generator": false, "expression": false, "range": [ - 13367, - 14268 + 13997, + 14898 ], "loc": { "start": { - "line": 371, + "line": 381, "column": 9 }, "end": { - "line": 396, + "line": 406, "column": 3 } } @@ -31748,16 +33070,16 @@ "kind": "method", "computed": false, "range": [ - 13360, - 14268 + 13990, + 14898 ], "loc": { "start": { - "line": 371, + "line": 381, "column": 2 }, "end": { - "line": 396, + "line": 406, "column": 3 } }, @@ -31769,16 +33091,16 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 14272, - 14298 + 14902, + 14928 ], "loc": { "start": { - "line": 398, + "line": 408, "column": 2 }, "end": { - "line": 398, + "line": 408, "column": 28 } } @@ -31791,16 +33113,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 14299, - 14313 + 14929, + 14943 ], "loc": { "start": { - "line": 398, + "line": 408, "column": 29 }, "end": { - "line": 398, + "line": 408, "column": 43 } } @@ -31809,16 +33131,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 14315, - 14330 + 14945, + 14960 ], "loc": { "start": { - "line": 398, + "line": 408, "column": 45 }, "end": { - "line": 398, + "line": 408, "column": 60 } } @@ -31827,16 +33149,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 14332, - 14346 + 14962, + 14976 ], "loc": { "start": { - "line": 398, + "line": 408, "column": 62 }, "end": { - "line": 398, + "line": 408, "column": 76 } } @@ -31845,16 +33167,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 14348, - 14359 + 14978, + 14989 ], "loc": { "start": { - "line": 398, + "line": 408, "column": 78 }, "end": { - "line": 398, + "line": 408, "column": 89 } } @@ -31872,16 +33194,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 14371, - 14387 + 15001, + 15017 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 8 }, "end": { - "line": 399, + "line": 409, "column": 24 } } @@ -31895,16 +33217,16 @@ "object": { "type": "ThisExpression", "range": [ - 14390, - 14394 + 15020, + 15024 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 27 }, "end": { - "line": 399, + "line": 409, "column": 31 } } @@ -31913,31 +33235,31 @@ "type": "Identifier", "name": "_types", "range": [ - 14395, - 14401 + 15025, + 15031 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 32 }, "end": { - "line": 399, + "line": 409, "column": 38 } } }, "range": [ - 14390, - 14401 + 15020, + 15031 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 27 }, "end": { - "line": 399, + "line": 409, "column": 38 } } @@ -31949,16 +33271,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 14402, - 14416 + 15032, + 15046 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 39 }, "end": { - "line": 399, + "line": 409, "column": 53 } } @@ -31967,61 +33289,61 @@ "type": "Identifier", "name": "type", "range": [ - 14417, - 14421 + 15047, + 15051 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 54 }, "end": { - "line": 399, + "line": 409, "column": 58 } } }, "range": [ - 14402, - 14421 + 15032, + 15051 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 39 }, "end": { - "line": 399, + "line": 409, "column": 58 } } }, "range": [ - 14390, - 14422 + 15020, + 15052 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 27 }, "end": { - "line": 399, + "line": 409, "column": 59 } } }, "range": [ - 14371, - 14422 + 15001, + 15052 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 8 }, "end": { - "line": 399, + "line": 409, "column": 59 } } @@ -32029,16 +33351,16 @@ ], "kind": "var", "range": [ - 14367, - 14423 + 14997, + 15053 ], "loc": { "start": { - "line": 399, + "line": 409, "column": 4 }, "end": { - "line": 399, + "line": 409, "column": 60 } } @@ -32052,16 +33374,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 14432, - 14447 + 15062, + 15077 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 8 }, "end": { - "line": 400, + "line": 410, "column": 23 } } @@ -32076,16 +33398,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 14450, - 14461 + 15080, + 15091 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 26 }, "end": { - "line": 400, + "line": 410, "column": 37 } } @@ -32094,31 +33416,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 14462, - 14469 + 15092, + 15099 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 38 }, "end": { - "line": 400, + "line": 410, "column": 45 } } }, "range": [ - 14450, - 14469 + 15080, + 15099 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 26 }, "end": { - "line": 400, + "line": 410, "column": 45 } } @@ -32130,16 +33452,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 14473, - 14487 + 15103, + 15117 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 49 }, "end": { - "line": 400, + "line": 410, "column": 63 } } @@ -32148,61 +33470,61 @@ "type": "Identifier", "name": "type", "range": [ - 14488, - 14492 + 15118, + 15122 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 64 }, "end": { - "line": 400, + "line": 410, "column": 68 } } }, "range": [ - 14473, - 14492 + 15103, + 15122 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 49 }, "end": { - "line": 400, + "line": 410, "column": 68 } } }, "range": [ - 14450, - 14492 + 15080, + 15122 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 26 }, "end": { - "line": 400, + "line": 410, "column": 68 } } }, "range": [ - 14432, - 14492 + 15062, + 15122 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 8 }, "end": { - "line": 400, + "line": 410, "column": 68 } } @@ -32210,16 +33532,16 @@ ], "kind": "var", "range": [ - 14428, - 14493 + 15058, + 15123 ], "loc": { "start": { - "line": 400, + "line": 410, "column": 4 }, "end": { - "line": 400, + "line": 410, "column": 69 } } @@ -32233,16 +33555,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 14502, - 14513 + 15132, + 15143 ], "loc": { "start": { - "line": 401, + "line": 411, "column": 8 }, "end": { - "line": 401, + "line": 411, "column": 19 } } @@ -32254,16 +33576,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 14516, - 14532 + 15146, + 15162 ], "loc": { "start": { - "line": 401, + "line": 411, "column": 22 }, "end": { - "line": 401, + "line": 411, "column": 38 } } @@ -32275,16 +33597,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 14536, - 14552 + 15166, + 15182 ], "loc": { "start": { - "line": 401, + "line": 411, "column": 42 }, "end": { - "line": 401, + "line": 411, "column": 58 } } @@ -32293,61 +33615,61 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 14553, - 14568 + 15183, + 15198 ], "loc": { "start": { - "line": 401, + "line": 411, "column": 59 }, "end": { - "line": 401, + "line": 411, "column": 74 } } }, "range": [ - 14536, - 14569 + 15166, + 15199 ], "loc": { "start": { - "line": 401, + "line": 411, "column": 42 }, "end": { - "line": 401, + "line": 411, "column": 75 } } }, "range": [ - 14516, - 14569 + 15146, + 15199 ], "loc": { "start": { - "line": 401, + "line": 411, "column": 22 }, "end": { - "line": 401, + "line": 411, "column": 75 } } }, "range": [ - 14502, - 14569 + 15132, + 15199 ], "loc": { "start": { - "line": 401, + "line": 411, "column": 8 }, "end": { - "line": 401, + "line": 411, "column": 75 } } @@ -32355,16 +33677,16 @@ ], "kind": "var", "range": [ - 14498, - 14570 + 15128, + 15200 ], "loc": { "start": { - "line": 401, + "line": 411, "column": 4 }, "end": { - "line": 401, + "line": 411, "column": 76 } } @@ -32381,16 +33703,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 14575, - 14589 + 15205, + 15219 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 4 }, "end": { - "line": 402, + "line": 412, "column": 18 } } @@ -32399,31 +33721,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 14590, - 14601 + 15220, + 15231 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 19 }, "end": { - "line": 402, + "line": 412, "column": 30 } } }, "range": [ - 14575, - 14601 + 15205, + 15231 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 4 }, "end": { - "line": 402, + "line": 412, "column": 30 } } @@ -32440,16 +33762,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 14604, - 14618 + 15234, + 15248 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 33 }, "end": { - "line": 402, + "line": 412, "column": 47 } } @@ -32458,31 +33780,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 14619, - 14630 + 15249, + 15260 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 48 }, "end": { - "line": 402, + "line": 412, "column": 59 } } }, "range": [ - 14604, - 14630 + 15234, + 15260 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 33 }, "end": { - "line": 402, + "line": 412, "column": 59 } } @@ -32491,31 +33813,31 @@ "type": "Identifier", "name": "filter", "range": [ - 14631, - 14637 + 15261, + 15267 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 60 }, "end": { - "line": 402, + "line": 412, "column": 66 } } }, "range": [ - 14604, - 14637 + 15234, + 15267 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 33 }, "end": { - "line": 402, + "line": 412, "column": 66 } } @@ -32529,16 +33851,16 @@ "type": "Identifier", "name": "r", "range": [ - 14638, - 14639 + 15268, + 15269 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 67 }, "end": { - "line": 402, + "line": 412, "column": 68 } } @@ -32568,16 +33890,16 @@ "type": "Identifier", "name": "r", "range": [ - 14660, - 14661 + 15290, + 15291 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 15 }, "end": { - "line": 403, + "line": 413, "column": 16 } } @@ -32586,31 +33908,31 @@ "type": "Identifier", "name": "type", "range": [ - 14662, - 14666 + 15292, + 15296 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 17 }, "end": { - "line": 403, + "line": 413, "column": 21 } } }, "range": [ - 14660, - 14666 + 15290, + 15296 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 15 }, "end": { - "line": 403, + "line": 413, "column": 21 } } @@ -32622,16 +33944,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 14671, - 14685 + 15301, + 15315 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 26 }, "end": { - "line": 403, + "line": 413, "column": 40 } } @@ -32640,46 +33962,46 @@ "type": "Identifier", "name": "type", "range": [ - 14686, - 14690 + 15316, + 15320 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 41 }, "end": { - "line": 403, + "line": 413, "column": 45 } } }, "range": [ - 14671, - 14690 + 15301, + 15320 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 26 }, "end": { - "line": 403, + "line": 413, "column": 45 } } }, "range": [ - 14660, - 14690 + 15290, + 15320 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 15 }, "end": { - "line": 403, + "line": 413, "column": 45 } } @@ -32694,16 +34016,16 @@ "type": "Identifier", "name": "r", "range": [ - 14694, - 14695 + 15324, + 15325 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 49 }, "end": { - "line": 403, + "line": 413, "column": 50 } } @@ -32712,31 +34034,31 @@ "type": "Identifier", "name": "id", "range": [ - 14696, - 14698 + 15326, + 15328 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 51 }, "end": { - "line": 403, + "line": 413, "column": 53 } } }, "range": [ - 14694, - 14698 + 15324, + 15328 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 49 }, "end": { - "line": 403, + "line": 413, "column": 53 } } @@ -32748,16 +34070,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 14703, - 14717 + 15333, + 15347 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 58 }, "end": { - "line": 403, + "line": 413, "column": 72 } } @@ -32766,61 +34088,61 @@ "type": "Identifier", "name": "id", "range": [ - 14718, - 14720 + 15348, + 15350 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 73 }, "end": { - "line": 403, + "line": 413, "column": 75 } } }, "range": [ - 14703, - 14720 + 15333, + 15350 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 58 }, "end": { - "line": 403, + "line": 413, "column": 75 } } }, "range": [ - 14694, - 14720 + 15324, + 15350 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 49 }, "end": { - "line": 403, + "line": 413, "column": 75 } } }, "range": [ - 14660, - 14720 + 15290, + 15350 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 15 }, "end": { - "line": 403, + "line": 413, "column": 75 } } @@ -32835,16 +34157,16 @@ "type": "Identifier", "name": "r", "range": [ - 14724, - 14725 + 15354, + 15355 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 79 }, "end": { - "line": 403, + "line": 413, "column": 80 } } @@ -32853,31 +34175,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 14726, - 14735 + 15356, + 15365 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 81 }, "end": { - "line": 403, + "line": 413, "column": 90 } } }, "range": [ - 14724, - 14735 + 15354, + 15365 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 79 }, "end": { - "line": 403, + "line": 413, "column": 90 } } @@ -32886,93 +34208,93 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 14740, - 14755 + 15370, + 15385 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 95 }, "end": { - "line": 403, + "line": 413, "column": 110 } } }, "range": [ - 14724, - 14755 + 15354, + 15385 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 79 }, "end": { - "line": 403, + "line": 413, "column": 110 } } }, "range": [ - 14660, - 14755 + 15290, + 15385 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 15 }, "end": { - "line": 403, + "line": 413, "column": 110 } } }, "prefix": true, "range": [ - 14658, - 14756 + 15288, + 15386 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 13 }, "end": { - "line": 403, + "line": 413, "column": 111 } } }, "range": [ - 14651, - 14757 + 15281, + 15387 ], "loc": { "start": { - "line": 403, + "line": 413, "column": 6 }, "end": { - "line": 403, + "line": 413, "column": 112 } } } ], "range": [ - 14643, - 14763 + 15273, + 15393 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 72 }, "end": { - "line": 404, + "line": 414, "column": 5 } } @@ -32980,62 +34302,62 @@ "generator": false, "expression": false, "range": [ - 14638, - 14763 + 15268, + 15393 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 67 }, "end": { - "line": 404, + "line": 414, "column": 5 } } } ], "range": [ - 14604, - 14764 + 15234, + 15394 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 33 }, "end": { - "line": 404, + "line": 414, "column": 6 } } }, "range": [ - 14575, - 14764 + 15205, + 15394 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 4 }, "end": { - "line": 404, + "line": 414, "column": 6 } } }, "range": [ - 14575, - 14765 + 15205, + 15395 ], "loc": { "start": { - "line": 402, + "line": 412, "column": 4 }, "end": { - "line": 404, + "line": 414, "column": 7 } } @@ -33046,16 +34368,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 14774, - 14785 + 15404, + 15415 ], "loc": { "start": { - "line": 405, + "line": 415, "column": 8 }, "end": { - "line": 405, + "line": 415, "column": 19 } } @@ -33075,16 +34397,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 14799, - 14810 + 15429, + 15440 ], "loc": { "start": { - "line": 406, + "line": 416, "column": 10 }, "end": { - "line": 406, + "line": 416, "column": 21 } } @@ -33093,31 +34415,31 @@ "type": "Identifier", "name": "type", "range": [ - 14811, - 14815 + 15441, + 15445 ], "loc": { "start": { - "line": 406, + "line": 416, "column": 22 }, "end": { - "line": 406, + "line": 416, "column": 26 } } }, "range": [ - 14799, - 14815 + 15429, + 15445 ], "loc": { "start": { - "line": 406, + "line": 416, "column": 10 }, "end": { - "line": 406, + "line": 416, "column": 26 } } @@ -33127,31 +34449,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 14820, - 14829 + 15450, + 15459 ], "loc": { "start": { - "line": 406, + "line": 416, "column": 31 }, "end": { - "line": 406, + "line": 416, "column": 40 } } }, "range": [ - 14799, - 14829 + 15429, + 15459 ], "loc": { "start": { - "line": 406, + "line": 416, "column": 10 }, "end": { - "line": 406, + "line": 416, "column": 40 } } @@ -33171,16 +34493,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 14841, - 14855 + 15471, + 15485 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 8 }, "end": { - "line": 407, + "line": 417, "column": 22 } } @@ -33189,31 +34511,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 14856, - 14867 + 15486, + 15497 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 23 }, "end": { - "line": 407, + "line": 417, "column": 34 } } }, "range": [ - 14841, - 14867 + 15471, + 15497 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 8 }, "end": { - "line": 407, + "line": 417, "column": 34 } } @@ -33230,16 +34552,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 14870, - 14884 + 15500, + 15514 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 37 }, "end": { - "line": 407, + "line": 417, "column": 51 } } @@ -33248,31 +34570,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 14885, - 14896 + 15515, + 15526 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 52 }, "end": { - "line": 407, + "line": 417, "column": 63 } } }, "range": [ - 14870, - 14896 + 15500, + 15526 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 37 }, "end": { - "line": 407, + "line": 417, "column": 63 } } @@ -33281,31 +34603,31 @@ "type": "Identifier", "name": "filter", "range": [ - 14897, - 14903 + 15527, + 15533 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 64 }, "end": { - "line": 407, + "line": 417, "column": 70 } } }, "range": [ - 14870, - 14903 + 15500, + 15533 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 37 }, "end": { - "line": 407, + "line": 417, "column": 70 } } @@ -33319,16 +34641,16 @@ "type": "Identifier", "name": "r", "range": [ - 14904, - 14905 + 15534, + 15535 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 71 }, "end": { - "line": 407, + "line": 417, "column": 72 } } @@ -33358,16 +34680,16 @@ "type": "Identifier", "name": "r", "range": [ - 14930, - 14931 + 15560, + 15561 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 19 }, "end": { - "line": 408, + "line": 418, "column": 20 } } @@ -33376,31 +34698,31 @@ "type": "Identifier", "name": "type", "range": [ - 14932, - 14936 + 15562, + 15566 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 21 }, "end": { - "line": 408, + "line": 418, "column": 25 } } }, "range": [ - 14930, - 14936 + 15560, + 15566 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 19 }, "end": { - "line": 408, + "line": 418, "column": 25 } } @@ -33412,16 +34734,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 14941, - 14955 + 15571, + 15585 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 30 }, "end": { - "line": 408, + "line": 418, "column": 44 } } @@ -33430,46 +34752,46 @@ "type": "Identifier", "name": "type", "range": [ - 14956, - 14960 + 15586, + 15590 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 45 }, "end": { - "line": 408, + "line": 418, "column": 49 } } }, "range": [ - 14941, - 14960 + 15571, + 15590 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 30 }, "end": { - "line": 408, + "line": 418, "column": 49 } } }, "range": [ - 14930, - 14960 + 15560, + 15590 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 19 }, "end": { - "line": 408, + "line": 418, "column": 49 } } @@ -33484,16 +34806,16 @@ "type": "Identifier", "name": "r", "range": [ - 14964, - 14965 + 15594, + 15595 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 53 }, "end": { - "line": 408, + "line": 418, "column": 54 } } @@ -33502,31 +34824,31 @@ "type": "Identifier", "name": "id", "range": [ - 14966, - 14968 + 15596, + 15598 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 55 }, "end": { - "line": 408, + "line": 418, "column": 57 } } }, "range": [ - 14964, - 14968 + 15594, + 15598 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 53 }, "end": { - "line": 408, + "line": 418, "column": 57 } } @@ -33538,16 +34860,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 14973, - 14987 + 15603, + 15617 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 62 }, "end": { - "line": 408, + "line": 418, "column": 76 } } @@ -33556,61 +34878,61 @@ "type": "Identifier", "name": "id", "range": [ - 14988, - 14990 + 15618, + 15620 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 77 }, "end": { - "line": 408, + "line": 418, "column": 79 } } }, "range": [ - 14973, - 14990 + 15603, + 15620 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 62 }, "end": { - "line": 408, + "line": 418, "column": 79 } } }, "range": [ - 14964, - 14990 + 15594, + 15620 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 53 }, "end": { - "line": 408, + "line": 418, "column": 79 } } }, "range": [ - 14930, - 14990 + 15560, + 15620 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 19 }, "end": { - "line": 408, + "line": 418, "column": 79 } } @@ -33625,16 +34947,16 @@ "type": "Identifier", "name": "r", "range": [ - 14994, - 14995 + 15624, + 15625 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 83 }, "end": { - "line": 408, + "line": 418, "column": 84 } } @@ -33643,31 +34965,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 14996, - 15005 + 15626, + 15635 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 85 }, "end": { - "line": 408, + "line": 418, "column": 94 } } }, "range": [ - 14994, - 15005 + 15624, + 15635 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 83 }, "end": { - "line": 408, + "line": 418, "column": 94 } } @@ -33676,93 +34998,93 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 15010, - 15025 + 15640, + 15655 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 99 }, "end": { - "line": 408, + "line": 418, "column": 114 } } }, "range": [ - 14994, - 15025 + 15624, + 15655 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 83 }, "end": { - "line": 408, + "line": 418, "column": 114 } } }, "range": [ - 14930, - 15025 + 15560, + 15655 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 19 }, "end": { - "line": 408, + "line": 418, "column": 114 } } }, "prefix": true, "range": [ - 14928, - 15026 + 15558, + 15656 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 17 }, "end": { - "line": 408, + "line": 418, "column": 115 } } }, "range": [ - 14921, - 15027 + 15551, + 15657 ], "loc": { "start": { - "line": 408, + "line": 418, "column": 10 }, "end": { - "line": 408, + "line": 418, "column": 116 } } } ], "range": [ - 14909, - 15037 + 15539, + 15667 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 76 }, "end": { - "line": 409, + "line": 419, "column": 9 } } @@ -33770,62 +35092,62 @@ "generator": false, "expression": false, "range": [ - 14904, - 15037 + 15534, + 15667 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 71 }, "end": { - "line": 409, + "line": 419, "column": 9 } } } ], "range": [ - 14870, - 15038 + 15500, + 15668 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 37 }, "end": { - "line": 409, + "line": 419, "column": 10 } } }, "range": [ - 14841, - 15038 + 15471, + 15668 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 8 }, "end": { - "line": 409, + "line": 419, "column": 10 } } }, "range": [ - 14841, - 15039 + 15471, + 15669 ], "loc": { "start": { - "line": 407, + "line": 417, "column": 8 }, "end": { - "line": 409, + "line": 419, "column": 11 } } @@ -33842,16 +35164,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 15048, - 15062 + 15678, + 15692 ], "loc": { "start": { - "line": 410, + "line": 420, "column": 8 }, "end": { - "line": 410, + "line": 420, "column": 22 } } @@ -33860,31 +35182,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 15063, - 15078 + 15693, + 15708 ], "loc": { "start": { - "line": 410, + "line": 420, "column": 23 }, "end": { - "line": 410, + "line": 420, "column": 38 } } }, "range": [ - 15048, - 15079 + 15678, + 15709 ], "loc": { "start": { - "line": 410, + "line": 420, "column": 8 }, "end": { - "line": 410, + "line": 420, "column": 39 } } @@ -33894,62 +35216,62 @@ "value": null, "raw": "null", "range": [ - 15082, - 15086 + 15712, + 15716 ], "loc": { "start": { - "line": 410, + "line": 420, "column": 42 }, "end": { - "line": 410, + "line": 420, "column": 46 } } }, "range": [ - 15048, - 15086 + 15678, + 15716 ], "loc": { "start": { - "line": 410, + "line": 420, "column": 8 }, "end": { - "line": 410, + "line": 420, "column": 46 } } }, "range": [ - 15048, - 15087 + 15678, + 15717 ], "loc": { "start": { - "line": 410, + "line": 420, "column": 8 }, "end": { - "line": 410, + "line": 420, "column": 47 } } } ], "range": [ - 14831, - 15095 + 15461, + 15725 ], "loc": { "start": { - "line": 406, + "line": 416, "column": 42 }, "end": { - "line": 411, + "line": 421, "column": 7 } } @@ -33966,16 +35288,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 15105, - 15116 + 15735, + 15746 ], "loc": { "start": { - "line": 411, + "line": 421, "column": 17 }, "end": { - "line": 411, + "line": 421, "column": 28 } } @@ -33984,31 +35306,31 @@ "type": "Identifier", "name": "type", "range": [ - 15117, - 15121 + 15747, + 15751 ], "loc": { "start": { - "line": 411, + "line": 421, "column": 29 }, "end": { - "line": 411, + "line": 421, "column": 33 } } }, "range": [ - 15105, - 15121 + 15735, + 15751 ], "loc": { "start": { - "line": 411, + "line": 421, "column": 17 }, "end": { - "line": 411, + "line": 421, "column": 33 } } @@ -34018,31 +35340,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 15126, - 15136 + 15756, + 15766 ], "loc": { "start": { - "line": 411, + "line": 421, "column": 38 }, "end": { - "line": 411, + "line": 421, "column": 48 } } }, "range": [ - 15105, - 15136 + 15735, + 15766 ], "loc": { "start": { - "line": 411, + "line": 421, "column": 17 }, "end": { - "line": 411, + "line": 421, "column": 48 } } @@ -34062,16 +35384,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 15148, - 15162 + 15778, + 15792 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 8 }, "end": { - "line": 412, + "line": 422, "column": 22 } } @@ -34080,31 +35402,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 15163, - 15174 + 15793, + 15804 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 23 }, "end": { - "line": 412, + "line": 422, "column": 34 } } }, "range": [ - 15148, - 15174 + 15778, + 15804 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 8 }, "end": { - "line": 412, + "line": 422, "column": 34 } } @@ -34121,16 +35443,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 15177, - 15191 + 15807, + 15821 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 37 }, "end": { - "line": 412, + "line": 422, "column": 51 } } @@ -34139,31 +35461,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 15192, - 15203 + 15822, + 15833 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 52 }, "end": { - "line": 412, + "line": 422, "column": 63 } } }, "range": [ - 15177, - 15203 + 15807, + 15833 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 37 }, "end": { - "line": 412, + "line": 422, "column": 63 } } @@ -34172,31 +35494,31 @@ "type": "Identifier", "name": "filter", "range": [ - 15204, - 15210 + 15834, + 15840 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 64 }, "end": { - "line": 412, + "line": 422, "column": 70 } } }, "range": [ - 15177, - 15210 + 15807, + 15840 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 37 }, "end": { - "line": 412, + "line": 422, "column": 70 } } @@ -34210,16 +35532,16 @@ "type": "Identifier", "name": "r", "range": [ - 15211, - 15212 + 15841, + 15842 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 71 }, "end": { - "line": 412, + "line": 422, "column": 72 } } @@ -34249,16 +35571,16 @@ "type": "Identifier", "name": "r", "range": [ - 15237, - 15238 + 15867, + 15868 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 19 }, "end": { - "line": 413, + "line": 423, "column": 20 } } @@ -34267,31 +35589,31 @@ "type": "Identifier", "name": "type", "range": [ - 15239, - 15243 + 15869, + 15873 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 21 }, "end": { - "line": 413, + "line": 423, "column": 25 } } }, "range": [ - 15237, - 15243 + 15867, + 15873 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 19 }, "end": { - "line": 413, + "line": 423, "column": 25 } } @@ -34303,16 +35625,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 15248, - 15262 + 15878, + 15892 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 30 }, "end": { - "line": 413, + "line": 423, "column": 44 } } @@ -34321,46 +35643,46 @@ "type": "Identifier", "name": "type", "range": [ - 15263, - 15267 + 15893, + 15897 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 45 }, "end": { - "line": 413, + "line": 423, "column": 49 } } }, "range": [ - 15248, - 15267 + 15878, + 15897 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 30 }, "end": { - "line": 413, + "line": 423, "column": 49 } } }, "range": [ - 15237, - 15267 + 15867, + 15897 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 19 }, "end": { - "line": 413, + "line": 423, "column": 49 } } @@ -34375,16 +35697,16 @@ "type": "Identifier", "name": "r", "range": [ - 15271, - 15272 + 15901, + 15902 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 53 }, "end": { - "line": 413, + "line": 423, "column": 54 } } @@ -34393,31 +35715,31 @@ "type": "Identifier", "name": "id", "range": [ - 15273, - 15275 + 15903, + 15905 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 55 }, "end": { - "line": 413, + "line": 423, "column": 57 } } }, "range": [ - 15271, - 15275 + 15901, + 15905 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 53 }, "end": { - "line": 413, + "line": 423, "column": 57 } } @@ -34429,16 +35751,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 15280, - 15294 + 15910, + 15924 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 62 }, "end": { - "line": 413, + "line": 423, "column": 76 } } @@ -34447,61 +35769,61 @@ "type": "Identifier", "name": "id", "range": [ - 15295, - 15297 + 15925, + 15927 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 77 }, "end": { - "line": 413, + "line": 423, "column": 79 } } }, "range": [ - 15280, - 15297 + 15910, + 15927 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 62 }, "end": { - "line": 413, + "line": 423, "column": 79 } } }, "range": [ - 15271, - 15297 + 15901, + 15927 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 53 }, "end": { - "line": 413, + "line": 423, "column": 79 } } }, "range": [ - 15237, - 15297 + 15867, + 15927 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 19 }, "end": { - "line": 413, + "line": 423, "column": 79 } } @@ -34516,16 +35838,16 @@ "type": "Identifier", "name": "r", "range": [ - 15301, - 15302 + 15931, + 15932 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 83 }, "end": { - "line": 413, + "line": 423, "column": 84 } } @@ -34534,31 +35856,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 15303, - 15312 + 15933, + 15942 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 85 }, "end": { - "line": 413, + "line": 423, "column": 94 } } }, "range": [ - 15301, - 15312 + 15931, + 15942 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 83 }, "end": { - "line": 413, + "line": 423, "column": 94 } } @@ -34567,93 +35889,93 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 15317, - 15332 + 15947, + 15962 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 99 }, "end": { - "line": 413, + "line": 423, "column": 114 } } }, "range": [ - 15301, - 15332 + 15931, + 15962 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 83 }, "end": { - "line": 413, + "line": 423, "column": 114 } } }, "range": [ - 15237, - 15332 + 15867, + 15962 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 19 }, "end": { - "line": 413, + "line": 423, "column": 114 } } }, "prefix": true, "range": [ - 15235, - 15333 + 15865, + 15963 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 17 }, "end": { - "line": 413, + "line": 423, "column": 115 } } }, "range": [ - 15228, - 15334 + 15858, + 15964 ], "loc": { "start": { - "line": 413, + "line": 423, "column": 10 }, "end": { - "line": 413, + "line": 423, "column": 116 } } } ], "range": [ - 15216, - 15344 + 15846, + 15974 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 76 }, "end": { - "line": 414, + "line": 424, "column": 9 } } @@ -34661,62 +35983,62 @@ "generator": false, "expression": false, "range": [ - 15211, - 15344 + 15841, + 15974 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 71 }, "end": { - "line": 414, + "line": 424, "column": 9 } } } ], "range": [ - 15177, - 15345 + 15807, + 15975 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 37 }, "end": { - "line": 414, + "line": 424, "column": 10 } } }, "range": [ - 15148, - 15345 + 15778, + 15975 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 8 }, "end": { - "line": 414, + "line": 424, "column": 10 } } }, "range": [ - 15148, - 15346 + 15778, + 15976 ], "loc": { "start": { - "line": 412, + "line": 422, "column": 8 }, "end": { - "line": 414, + "line": 424, "column": 11 } } @@ -34733,16 +36055,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 15355, - 15369 + 15985, + 15999 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 8 }, "end": { - "line": 415, + "line": 425, "column": 22 } } @@ -34751,31 +36073,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 15370, - 15385 + 16000, + 16015 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 23 }, "end": { - "line": 415, + "line": 425, "column": 38 } } }, "range": [ - 15355, - 15386 + 15985, + 16016 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 8 }, "end": { - "line": 415, + "line": 425, "column": 39 } } @@ -34792,16 +36114,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 15389, - 15403 + 16019, + 16033 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 42 }, "end": { - "line": 415, + "line": 425, "column": 56 } } @@ -34810,31 +36132,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 15404, - 15419 + 16034, + 16049 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 57 }, "end": { - "line": 415, + "line": 425, "column": 72 } } }, "range": [ - 15389, - 15420 + 16019, + 16050 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 42 }, "end": { - "line": 415, + "line": 425, "column": 73 } } @@ -34843,31 +36165,31 @@ "type": "Identifier", "name": "filter", "range": [ - 15421, - 15427 + 16051, + 16057 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 74 }, "end": { - "line": 415, + "line": 425, "column": 80 } } }, "range": [ - 15389, - 15427 + 16019, + 16057 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 42 }, "end": { - "line": 415, + "line": 425, "column": 80 } } @@ -34881,16 +36203,16 @@ "type": "Identifier", "name": "r", "range": [ - 15428, - 15429 + 16058, + 16059 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 81 }, "end": { - "line": 415, + "line": 425, "column": 82 } } @@ -34908,16 +36230,16 @@ "type": "Identifier", "name": "r", "range": [ - 15452, - 15453 + 16082, + 16083 ], "loc": { "start": { - "line": 416, + "line": 426, "column": 17 }, "end": { - "line": 416, + "line": 426, "column": 18 } } @@ -34926,62 +36248,62 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 15458, - 15472 + 16088, + 16102 ], "loc": { "start": { - "line": 416, + "line": 426, "column": 23 }, "end": { - "line": 416, + "line": 426, "column": 37 } } }, "range": [ - 15452, - 15472 + 16082, + 16102 ], "loc": { "start": { - "line": 416, + "line": 426, "column": 17 }, "end": { - "line": 416, + "line": 426, "column": 37 } } }, "range": [ - 15445, - 15473 + 16075, + 16103 ], "loc": { "start": { - "line": 416, + "line": 426, "column": 10 }, "end": { - "line": 416, + "line": 426, "column": 38 } } } ], "range": [ - 15433, - 15483 + 16063, + 16113 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 86 }, "end": { - "line": 417, + "line": 427, "column": 9 } } @@ -34989,78 +36311,78 @@ "generator": false, "expression": false, "range": [ - 15428, - 15483 + 16058, + 16113 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 81 }, "end": { - "line": 417, + "line": 427, "column": 9 } } } ], "range": [ - 15389, - 15484 + 16019, + 16114 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 42 }, "end": { - "line": 417, + "line": 427, "column": 10 } } }, "range": [ - 15355, - 15484 + 15985, + 16114 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 8 }, "end": { - "line": 417, + "line": 427, "column": 10 } } }, "range": [ - 15355, - 15485 + 15985, + 16115 ], "loc": { "start": { - "line": 415, + "line": 425, "column": 8 }, "end": { - "line": 417, + "line": 427, "column": 11 } } } ], "range": [ - 15138, - 15493 + 15768, + 16123 ], "loc": { "start": { - "line": 411, + "line": 421, "column": 50 }, "end": { - "line": 418, + "line": 428, "column": 7 } } @@ -35077,16 +36399,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 15503, - 15514 + 16133, + 16144 ], "loc": { "start": { - "line": 418, + "line": 428, "column": 17 }, "end": { - "line": 418, + "line": 428, "column": 28 } } @@ -35095,31 +36417,31 @@ "type": "Identifier", "name": "type", "range": [ - 15515, - 15519 + 16145, + 16149 ], "loc": { "start": { - "line": 418, + "line": 428, "column": 29 }, "end": { - "line": 418, + "line": 428, "column": 33 } } }, "range": [ - 15503, - 15519 + 16133, + 16149 ], "loc": { "start": { - "line": 418, + "line": 428, "column": 17 }, "end": { - "line": 418, + "line": 428, "column": 33 } } @@ -35129,31 +36451,31 @@ "value": "attr", "raw": "\"attr\"", "range": [ - 15524, - 15530 + 16154, + 16160 ], "loc": { "start": { - "line": 418, + "line": 428, "column": 38 }, "end": { - "line": 418, + "line": 428, "column": 44 } } }, "range": [ - 15503, - 15530 + 16133, + 16160 ], "loc": { "start": { - "line": 418, + "line": 428, "column": 17 }, "end": { - "line": 418, + "line": 428, "column": 44 } } @@ -35169,16 +36491,16 @@ "type": "Identifier", "name": "Error", "range": [ - 15552, - 15557 + 16182, + 16187 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 18 }, "end": { - "line": 419, + "line": 429, "column": 23 } } @@ -35195,16 +36517,16 @@ }, "tail": false, "range": [ - 15558, - 15595 + 16188, + 16225 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 24 }, "end": { - "line": 419, + "line": 429, "column": 61 } } @@ -35217,16 +36539,16 @@ }, "tail": false, "range": [ - 15610, - 15633 + 16240, + 16263 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 76 }, "end": { - "line": 419, + "line": 429, "column": 99 } } @@ -35239,16 +36561,16 @@ }, "tail": true, "range": [ - 15648, - 15652 + 16278, + 16282 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 114 }, "end": { - "line": 419, + "line": 429, "column": 118 } } @@ -35259,16 +36581,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 15595, - 15610 + 16225, + 16240 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 61 }, "end": { - "line": 419, + "line": 429, "column": 76 } } @@ -35277,141 +36599,141 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 15633, - 15648 + 16263, + 16278 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 99 }, "end": { - "line": 419, + "line": 429, "column": 114 } } } ], "range": [ - 15558, - 15652 + 16188, + 16282 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 24 }, "end": { - "line": 419, + "line": 429, "column": 118 } } } ], "range": [ - 15548, - 15653 + 16178, + 16283 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 14 }, "end": { - "line": 419, + "line": 429, "column": 119 } } }, "range": [ - 15542, - 15654 + 16172, + 16284 ], "loc": { "start": { - "line": 419, + "line": 429, "column": 8 }, "end": { - "line": 419, + "line": 429, "column": 120 } } } ], "range": [ - 15532, - 15662 + 16162, + 16292 ], "loc": { "start": { - "line": 418, + "line": 428, "column": 46 }, "end": { - "line": 420, + "line": 430, "column": 7 } } }, "alternate": null, "range": [ - 15499, - 15662 + 16129, + 16292 ], "loc": { "start": { - "line": 418, + "line": 428, "column": 13 }, "end": { - "line": 420, + "line": 430, "column": 7 } } }, "range": [ - 15101, - 15662 + 15731, + 16292 ], "loc": { "start": { - "line": 411, + "line": 421, "column": 13 }, "end": { - "line": 420, + "line": 430, "column": 7 } } }, "range": [ - 14795, - 15662 + 15425, + 16292 ], "loc": { "start": { - "line": 406, + "line": 416, "column": 6 }, "end": { - "line": 420, + "line": 430, "column": 7 } } } ], "range": [ - 14787, - 15668 + 15417, + 16298 ], "loc": { "start": { - "line": 405, + "line": 415, "column": 21 }, "end": { - "line": 421, + "line": 431, "column": 5 } } @@ -35425,16 +36747,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 15678, - 15689 + 16308, + 16319 ], "loc": { "start": { - "line": 421, + "line": 431, "column": 15 }, "end": { - "line": 421, + "line": 431, "column": 26 } } @@ -35443,31 +36765,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 15690, - 15697 + 16320, + 16327 ], "loc": { "start": { - "line": 421, + "line": 431, "column": 27 }, "end": { - "line": 421, + "line": 431, "column": 34 } } }, "range": [ - 15678, - 15697 + 16308, + 16327 ], "loc": { "start": { - "line": 421, + "line": 431, "column": 15 }, "end": { - "line": 421, + "line": 431, "column": 34 } } @@ -35483,16 +36805,16 @@ "type": "Identifier", "name": "Error", "range": [ - 15717, - 15722 + 16347, + 16352 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 16 }, "end": { - "line": 422, + "line": 432, "column": 21 } } @@ -35509,16 +36831,16 @@ }, "tail": false, "range": [ - 15723, - 15760 + 16353, + 16390 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 22 }, "end": { - "line": 422, + "line": 432, "column": 59 } } @@ -35531,16 +36853,16 @@ }, "tail": false, "range": [ - 15775, - 15793 + 16405, + 16423 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 74 }, "end": { - "line": 422, + "line": 432, "column": 92 } } @@ -35553,16 +36875,16 @@ }, "tail": true, "range": [ - 15812, - 15816 + 16442, + 16446 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 111 }, "end": { - "line": 422, + "line": 432, "column": 115 } } @@ -35573,16 +36895,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 15760, - 15775 + 16390, + 16405 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 59 }, "end": { - "line": 422, + "line": 432, "column": 74 } } @@ -35594,16 +36916,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 15793, - 15804 + 16423, + 16434 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 92 }, "end": { - "line": 422, + "line": 432, "column": 103 } } @@ -35612,141 +36934,141 @@ "type": "Identifier", "name": "inverse", "range": [ - 15805, - 15812 + 16435, + 16442 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 104 }, "end": { - "line": 422, + "line": 432, "column": 111 } } }, "range": [ - 15793, - 15812 + 16423, + 16442 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 92 }, "end": { - "line": 422, + "line": 432, "column": 111 } } } ], "range": [ - 15723, - 15816 + 16353, + 16446 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 22 }, "end": { - "line": 422, + "line": 432, "column": 115 } } } ], "range": [ - 15713, - 15817 + 16343, + 16447 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 12 }, "end": { - "line": 422, + "line": 432, "column": 116 } } }, "range": [ - 15707, - 15818 + 16337, + 16448 ], "loc": { "start": { - "line": 422, + "line": 432, "column": 6 }, "end": { - "line": 422, + "line": 432, "column": 117 } } } ], "range": [ - 15699, - 15824 + 16329, + 16454 ], "loc": { "start": { - "line": 421, + "line": 431, "column": 36 }, "end": { - "line": 423, + "line": 433, "column": 5 } } }, "alternate": null, "range": [ - 15674, - 15824 + 16304, + 16454 ], "loc": { "start": { - "line": 421, + "line": 431, "column": 11 }, "end": { - "line": 423, + "line": 433, "column": 5 } } }, "range": [ - 14770, - 15824 + 15400, + 16454 ], "loc": { "start": { - "line": 405, + "line": 415, "column": 4 }, "end": { - "line": 423, + "line": 433, "column": 5 } } } ], "range": [ - 14361, - 15828 + 14991, + 16458 ], "loc": { "start": { - "line": 398, + "line": 408, "column": 91 }, "end": { - "line": 424, + "line": 434, "column": 3 } } @@ -35754,16 +37076,16 @@ "generator": false, "expression": false, "range": [ - 14298, - 15828 + 14928, + 16458 ], "loc": { "start": { - "line": 398, + "line": 408, "column": 28 }, "end": { - "line": 424, + "line": 434, "column": 3 } } @@ -35771,16 +37093,16 @@ "kind": "method", "computed": false, "range": [ - 14272, - 15828 + 14902, + 16458 ], "loc": { "start": { - "line": 398, + "line": 408, "column": 2 }, "end": { - "line": 424, + "line": 434, "column": 3 } }, @@ -35789,7 +37111,7 @@ ], "range": [ 59, - 15831 + 16461 ], "loc": { "start": { @@ -35797,14 +37119,14 @@ "column": 27 }, "end": { - "line": 426, + "line": 436, "column": 1 } } }, "range": [ 47, - 15831 + 16461 ], "loc": { "start": { @@ -35812,7 +37134,7 @@ "column": 15 }, "end": { - "line": 426, + "line": 436, "column": 1 } }, @@ -35821,7 +37143,7 @@ }, "range": [ 32, - 15831 + 16461 ], "loc": { "start": { @@ -35829,7 +37151,7 @@ "column": 0 }, "end": { - "line": 426, + "line": 436, "column": 1 } } @@ -35838,7 +37160,7 @@ "sourceType": "module", "range": [ 0, - 15831 + 16461 ], "loc": { "start": { @@ -35846,7 +37168,7 @@ "column": 0 }, "end": { - "line": 426, + "line": 436, "column": 1 } }, @@ -35977,38 +37299,74 @@ } } }, + { + "type": "Line", + "value": " TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.", + "range": [ + 7048, + 7157 + ], + "loc": { + "start": { + "line": 213, + "column": 10 + }, + "end": { + "line": 213, + "column": 119 + } + } + }, { "type": "Block", "value": "*\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n ", "range": [ - 7742, - 8182 + 7951, + 8391 ], "loc": { "start": { - "line": 233, + "line": 236, "column": 2 }, "end": { - "line": 243, + "line": 246, "column": 5 } } }, + { + "type": "Line", + "value": " TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.", + "range": [ + 8702, + 8811 + ], + "loc": { + "start": { + "line": 253, + "column": 10 + }, + "end": { + "line": 253, + "column": 119 + } + } + }, { "type": "Block", "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @since 0.1.0\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 9154, - 9488 + 9784, + 10118 ], "loc": { "start": { - "line": 267, + "line": 277, "column": 2 }, "end": { - "line": 275, + "line": 285, "column": 5 } } @@ -36017,16 +37375,16 @@ "type": "Block", "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @since 0.1.0\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n ", "range": [ - 9721, - 10063 + 10351, + 10693 ], "loc": { "start": { - "line": 287, + "line": 297, "column": 2 }, "end": { - "line": 295, + "line": 305, "column": 5 } } @@ -36035,16 +37393,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 13986, - 14045 + 14616, + 14675 ], "loc": { "start": { - "line": 390, + "line": 400, "column": 6 }, "end": { - "line": 390, + "line": 400, "column": 65 } } diff --git a/docs/class/src/store.js~Store.html b/docs/class/src/store.js~Store.html index fcbd4dc..58b3711 100644 --- a/docs/class/src/store.js~Store.html +++ b/docs/class/src/store.js~Store.html @@ -1011,7 +1011,7 @@ will be automatically created when find is called.

since 0.4.0 - source + source @@ -1108,7 +1108,7 @@ will be automatically created when find is called.

since 0.1.0 - source + source @@ -1179,7 +1179,7 @@ successful GET or POST response from the server.

since 0.1.0 - source + source diff --git a/docs/dump.json b/docs/dump.json index a940f4b..032b812 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -9,7 +9,7 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import \"array.prototype.find\";\n\nexport default class Store {\n\n /**\n * Creates a field definition for an attribute.\n *\n * @since 0.1.0\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.default] - Default value for this field.\n * @return {Object} - Field definition.\n */\n static attr(name, options) {\n if (name && typeof name === 'object') {\n return Store.attr(null, name);\n } else {\n return {\n type: \"attr\",\n default: options && options.default,\n deserialize: function (data, key) {\n return data.attributes && data.attributes[name || key];\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-one relationship.\n *\n * @since 0.1.0\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.inverse] - Name of the inverse relationship.\n * @return {Object} - Field definition.\n */\n static hasOne(name, options) {\n if (name && typeof name === 'object') {\n return Store.hasOne(null, name);\n } else {\n return {\n type: \"has-one\",\n inverse: options && options.inverse,\n deserialize: function (data, key) {\n name = name || key;\n if (data.relationships && data.relationships[name]) {\n if (data.relationships[name].data === null) {\n return null;\n } else if (data.relationships[name].data) {\n return this.find(data.relationships[name].data.type, data.relationships[name].data.id);\n }\n }\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-many relationship.\n *\n * @since 0.1.0\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.inverse] - Name of the inverse relationship.\n * @return {Object} - Field definition.\n */\n static hasMany(name, options) {\n if (name && typeof name === 'object') {\n return Store.hasMany(null, name);\n } else {\n return {\n type: \"has-many\",\n default: [],\n inverse: options && options.inverse,\n deserialize: function (data, key) {\n name = name || key;\n if (data.relationships && data.relationships[name]) {\n if (data.relationships[name].data === null) {\n return [];\n } else if (data.relationships[name].data) {\n return data.relationships[name].data.map((c) => {\n return this.find(c.type, c.id);\n });\n }\n }\n }\n };\n }\n }\n\n constructor() {\n this._collectionListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\n this._data = {};\n this._resourceListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\n this._types = {};\n }\n\n /**\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @since 0.1.0\n * @param {!Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Nothing.\n */\n add(object) {\n if (object) {\n if (object.type && object.id) {\n let event = this._data[object.type] && this._data[object.type][object.id] ? \"updated\" : \"added\";\n let resource = this.find(object.type, object.id);\n let definition = this._types[object.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n this._addField(object, resource, definition, fieldName);\n }\n });\n if (this._resourceListeners[event][object.type] && this._resourceListeners[event][object.type][object.id]) {\n this._resourceListeners[event][object.type][object.id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[event][object.type]) {\n this._collectionListeners[event][object.type].forEach(x => x[0].call(x[1], resource));\n }\n } else {\n throw new TypeError(`The data must have a type and id`);\n }\n } else {\n throw new TypeError(`You must provide data to add`);\n }\n }\n\n /**\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n */\n define(names, definition) {\n names = (names.constructor === Array) ? names : [ names ];\n definition._names = names;\n names.forEach(name => {\n if (!this._types[name]) {\n this._types[name] = definition;\n } else {\n throw new Error(`The type '${name}' has already been defined.`);\n }\n });\n }\n\n /**\n * Find a resource or entire collection of resources.\n *\n * NOTE: If the resource hasn't been loaded via an add() or push() call it\n * will be automatically created when find is called.\n *\n * @since 0.1.0\n * @param {!string} type - Type of the resource(s) to find.\n * @param {string} [id] - The id of the resource to find. If omitted all\n * resources of the type will be returned.\n * @return {Object|Object[]} - Either the resource or an array of resources.\n */\n find(type, id) {\n if (type) {\n let definition = this._types[type];\n if (definition) {\n if (!this._data[type]) {\n let collection = {};\n definition._names.forEach(t => this._data[t] = collection);\n }\n if (id) {\n if (!this._data[type][id]) {\n this._data[type][id] = {\n _dependents: [],\n type: type,\n id: id\n };\n Object.keys(definition).forEach(key => {\n if (key[0] !== \"_\") {\n this._data[type][id][key] = definition[key].default;\n }\n });\n }\n return this._data[type][id];\n } else {\n return Object.keys(this._data[type]).map(x => this._data[type][x]);\n }\n } else {\n throw new TypeError(`Unknown type '${type}'`);\n }\n } else {\n throw new TypeError(`You must provide a type`);\n }\n }\n\n /**\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n */\n off(event, type, id, callback) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.off.call(this, event, type, null, id, callback);\n } else {\n if (id) {\n if (this._resourceListeners[event][type] && this._resourceListeners[event][type][id]) {\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(x => {\n return x[0] !== callback;\n });\n }\n } else if (this._collectionListeners[event][type]) {\n this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(x => {\n return x[0] !== callback;\n });\n }\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\n }\n }\n\n /**\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n */\n on(event, type, id, callback, context) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.on.call(this, event, type, null, id, callback);\n } else {\n if (id) {\n this._resourceListeners[event][type] = this._resourceListeners[event][type] || {};\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || [];\n this._resourceListeners[event][type][id].push([ callback, context ]);\n } else {\n this._collectionListeners[event][type] = this._collectionListeners[event][type] || [];\n this._collectionListeners[event][type].push([ callback, context ]);\n }\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\n }\n }\n\n /**\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @since 0.1.0\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n */\n push(root) {\n if (root.data.constructor === Array) {\n root.data.forEach(x => this.add(x));\n } else {\n this.add(root.data);\n }\n if (root.included) {\n root.included.forEach(x => this.add(x));\n }\n }\n\n /**\n * Remove a resource or collection of resources from the store.\n *\n * @since 0.1.0\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n */\n remove(type, id) {\n if (type) {\n if (this._types[type]) {\n if (id) {\n let resource = this._data[type][id];\n if (resource) {\n this._remove(resource);\n if (this._resourceListeners[\"removed\"][type] && this._resourceListeners[\"removed\"][type][id]) {\n this._resourceListeners[\"removed\"][type][id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[\"removed\"][type]) {\n this._collectionListeners[\"removed\"][type].forEach(x => x[0].call(x[1], resource));\n }\n }\n } else {\n Object.keys(this._data[type]).forEach(id => this.remove(type, id));\n }\n } else {\n throw new TypeError(`Unknown type '${type}'`);\n }\n } else {\n throw new TypeError(`You must provide a type to remove`);\n }\n }\n\n _addField(object, resource, definition, fieldName) {\n var field = definition[fieldName];\n var newValue = field.deserialize.call(this, object, fieldName);\n if (typeof newValue !== \"undefined\") {\n if (field.type === \"has-one\") {\n if (resource[fieldName]) {\n this._removeInverseRelationship(resource, fieldName, resource[fieldName], field);\n }\n if (newValue) {\n this._addInverseRelationship(resource, fieldName, newValue, field);\n }\n } else if (field.type === \"has-many\") {\n resource[fieldName].forEach(r => {\n if (resource[fieldName].indexOf(r) !== -1) {\n this._removeInverseRelationship(resource, fieldName, r, field);\n }\n });\n newValue.forEach(r => {\n this._addInverseRelationship(resource, fieldName, r, field);\n });\n }\n resource[fieldName] = newValue;\n }\n }\n\n _addInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) {\n var targetDefinition = this._types[targetResource.type];\n var sourceDefinition = this._types[sourceResource.type];\n if (targetDefinition) {\n let targetFieldName = [ sourceField.inverse ].concat(sourceDefinition._names).find(x => targetDefinition[x]);\n let targetField = targetDefinition && targetDefinition[targetFieldName];\n targetResource._dependents.push({ type: sourceResource.type, id: sourceResource.id, fieldName: sourceFieldName });\n if (targetField) {\n if (targetField.type === \"has-one\") {\n sourceResource._dependents.push({ type: targetResource.type, id: targetResource.id, fieldName: targetFieldName });\n targetResource[targetFieldName] = sourceResource;\n } else if (targetField.type === \"has-many\") {\n sourceResource._dependents.push({ type: targetResource.type, id: targetResource.id, fieldName: targetFieldName });\n if (targetResource[targetFieldName].indexOf(sourceResource) === -1) {\n targetResource[targetFieldName].push(sourceResource);\n }\n } else if (targetField.type === \"attr\") {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is an attribute ('${targetFieldName}')`);\n }\n } else if (sourceField.inverse) {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is missing ('${sourceField.inverse}')`);\n }\n }\n }\n\n _remove(resource) {\n resource._dependents.forEach(dependent => {\n let dependentResource = this._data[dependent.type][dependent.id];\n switch (this._types[dependent.type][dependent.fieldName].type) {\n case \"has-one\": {\n dependentResource[dependent.fieldName] = null;\n break;\n }\n case \"has-many\": {\n let index = dependentResource[dependent.fieldName].indexOf(resource);\n if (index !== -1) {\n dependentResource[dependent.fieldName].splice(index, 1);\n }\n break;\n }\n default: {\n break;\n }\n }\n // TODO: This only needs to be run once for each dependent.\n dependentResource._dependents = dependentResource._dependents.filter(d => {\n return !(d.type === resource.type && d.id === resource.id);\n });\n });\n delete this._data[resource.type][resource.id];\n }\n\n _removeInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) {\n var targetDefinition = this._types[targetResource.type];\n var targetFieldName = sourceField.inverse || sourceResource.type;\n var targetField = targetDefinition && targetDefinition[targetFieldName];\n targetResource._dependents = targetResource._dependents.filter(r => {\n return !(r.type === sourceResource.type && r.id === sourceResource.id && r.fieldName === sourceFieldName);\n });\n if (targetField) {\n if (targetField.type === \"has-one\") {\n sourceResource._dependents = sourceResource._dependents.filter(r => {\n return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);\n });\n targetResource[targetFieldName] = null;\n } else if (targetField.type === \"has-many\") {\n sourceResource._dependents = sourceResource._dependents.filter(r => {\n return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);\n });\n targetResource[targetFieldName] = targetResource[targetFieldName].filter(r => {\n return r !== sourceResource;\n });\n } else if (targetField.type === \"attr\") {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is an attribute ('${targetFieldName}')`);\n }\n } else if (sourceField.inverse) {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is missing ('${sourceField.inverse}')`);\n }\n }\n\n}\n" + "content": "import \"array.prototype.find\";\n\nexport default class Store {\n\n /**\n * Creates a field definition for an attribute.\n *\n * @since 0.1.0\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.default] - Default value for this field.\n * @return {Object} - Field definition.\n */\n static attr(name, options) {\n if (name && typeof name === 'object') {\n return Store.attr(null, name);\n } else {\n return {\n type: \"attr\",\n default: options && options.default,\n deserialize: function (data, key) {\n return data.attributes && data.attributes[name || key];\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-one relationship.\n *\n * @since 0.1.0\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.inverse] - Name of the inverse relationship.\n * @return {Object} - Field definition.\n */\n static hasOne(name, options) {\n if (name && typeof name === 'object') {\n return Store.hasOne(null, name);\n } else {\n return {\n type: \"has-one\",\n inverse: options && options.inverse,\n deserialize: function (data, key) {\n name = name || key;\n if (data.relationships && data.relationships[name]) {\n if (data.relationships[name].data === null) {\n return null;\n } else if (data.relationships[name].data) {\n return this.find(data.relationships[name].data.type, data.relationships[name].data.id);\n }\n }\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-many relationship.\n *\n * @since 0.1.0\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.inverse] - Name of the inverse relationship.\n * @return {Object} - Field definition.\n */\n static hasMany(name, options) {\n if (name && typeof name === 'object') {\n return Store.hasMany(null, name);\n } else {\n return {\n type: \"has-many\",\n default: [],\n inverse: options && options.inverse,\n deserialize: function (data, key) {\n name = name || key;\n if (data.relationships && data.relationships[name]) {\n if (data.relationships[name].data === null) {\n return [];\n } else if (data.relationships[name].data) {\n return data.relationships[name].data.map((c) => {\n return this.find(c.type, c.id);\n });\n }\n }\n }\n };\n }\n }\n\n constructor() {\n this._collectionListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\n this._data = {};\n this._resourceListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\n this._types = {};\n }\n\n /**\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @since 0.1.0\n * @param {!Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Nothing.\n */\n add(object) {\n if (object) {\n if (object.type && object.id) {\n let event = this._data[object.type] && this._data[object.type][object.id] ? \"updated\" : \"added\";\n let resource = this.find(object.type, object.id);\n let definition = this._types[object.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n this._addField(object, resource, definition, fieldName);\n }\n });\n if (this._resourceListeners[event][object.type] && this._resourceListeners[event][object.type][object.id]) {\n this._resourceListeners[event][object.type][object.id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[event][object.type]) {\n this._collectionListeners[event][object.type].forEach(x => x[0].call(x[1], resource));\n }\n } else {\n throw new TypeError(`The data must have a type and id`);\n }\n } else {\n throw new TypeError(`You must provide data to add`);\n }\n }\n\n /**\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n */\n define(names, definition) {\n names = (names.constructor === Array) ? names : [ names ];\n definition._names = names;\n names.forEach(name => {\n if (!this._types[name]) {\n this._types[name] = definition;\n } else {\n throw new Error(`The type '${name}' has already been defined.`);\n }\n });\n }\n\n /**\n * Find a resource or entire collection of resources.\n *\n * NOTE: If the resource hasn't been loaded via an add() or push() call it\n * will be automatically created when find is called.\n *\n * @since 0.1.0\n * @param {!string} type - Type of the resource(s) to find.\n * @param {string} [id] - The id of the resource to find. If omitted all\n * resources of the type will be returned.\n * @return {Object|Object[]} - Either the resource or an array of resources.\n */\n find(type, id) {\n if (type) {\n let definition = this._types[type];\n if (definition) {\n if (!this._data[type]) {\n let collection = {};\n definition._names.forEach(t => this._data[t] = collection);\n }\n if (id) {\n if (!this._data[type][id]) {\n this._data[type][id] = {\n _dependents: [],\n type: type,\n id: id\n };\n Object.keys(definition).forEach(key => {\n if (key[0] !== \"_\") {\n this._data[type][id][key] = definition[key].default;\n }\n });\n }\n return this._data[type][id];\n } else {\n return Object.keys(this._data[type]).map(x => this._data[type][x]);\n }\n } else {\n throw new TypeError(`Unknown type '${type}'`);\n }\n } else {\n throw new TypeError(`You must provide a type`);\n }\n }\n\n /**\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n */\n off(event, type, id, callback) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.off.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n if (this._resourceListeners[event][type] && this._resourceListeners[event][type][id]) {\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(x => {\n return x[0] !== callback;\n });\n }\n } else if (this._collectionListeners[event][type]) {\n this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(x => {\n return x[0] !== callback;\n });\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\n }\n }\n\n /**\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n */\n on(event, type, id, callback, context) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.on.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n this._resourceListeners[event][type] = this._resourceListeners[event][type] || {};\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || [];\n if (!this._resourceListeners[event][type][id].find(x => x[0] === callback)) {\n this._resourceListeners[event][type][id].push([ callback, context ]);\n }\n } else {\n this._collectionListeners[event][type] = this._collectionListeners[event][type] || [];\n if (!this._collectionListeners[event][type].find(x => x[0] === callback)) {\n this._collectionListeners[event][type].push([ callback, context ]);\n }\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\n }\n }\n\n /**\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @since 0.1.0\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n */\n push(root) {\n if (root.data.constructor === Array) {\n root.data.forEach(x => this.add(x));\n } else {\n this.add(root.data);\n }\n if (root.included) {\n root.included.forEach(x => this.add(x));\n }\n }\n\n /**\n * Remove a resource or collection of resources from the store.\n *\n * @since 0.1.0\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n */\n remove(type, id) {\n if (type) {\n if (this._types[type]) {\n if (id) {\n let resource = this._data[type][id];\n if (resource) {\n this._remove(resource);\n if (this._resourceListeners[\"removed\"][type] && this._resourceListeners[\"removed\"][type][id]) {\n this._resourceListeners[\"removed\"][type][id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[\"removed\"][type]) {\n this._collectionListeners[\"removed\"][type].forEach(x => x[0].call(x[1], resource));\n }\n }\n } else {\n Object.keys(this._data[type]).forEach(id => this.remove(type, id));\n }\n } else {\n throw new TypeError(`Unknown type '${type}'`);\n }\n } else {\n throw new TypeError(`You must provide a type to remove`);\n }\n }\n\n _addField(object, resource, definition, fieldName) {\n var field = definition[fieldName];\n var newValue = field.deserialize.call(this, object, fieldName);\n if (typeof newValue !== \"undefined\") {\n if (field.type === \"has-one\") {\n if (resource[fieldName]) {\n this._removeInverseRelationship(resource, fieldName, resource[fieldName], field);\n }\n if (newValue) {\n this._addInverseRelationship(resource, fieldName, newValue, field);\n }\n } else if (field.type === \"has-many\") {\n resource[fieldName].forEach(r => {\n if (resource[fieldName].indexOf(r) !== -1) {\n this._removeInverseRelationship(resource, fieldName, r, field);\n }\n });\n newValue.forEach(r => {\n this._addInverseRelationship(resource, fieldName, r, field);\n });\n }\n resource[fieldName] = newValue;\n }\n }\n\n _addInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) {\n var targetDefinition = this._types[targetResource.type];\n var sourceDefinition = this._types[sourceResource.type];\n if (targetDefinition) {\n let targetFieldName = [ sourceField.inverse ].concat(sourceDefinition._names).find(x => targetDefinition[x]);\n let targetField = targetDefinition && targetDefinition[targetFieldName];\n targetResource._dependents.push({ type: sourceResource.type, id: sourceResource.id, fieldName: sourceFieldName });\n if (targetField) {\n if (targetField.type === \"has-one\") {\n sourceResource._dependents.push({ type: targetResource.type, id: targetResource.id, fieldName: targetFieldName });\n targetResource[targetFieldName] = sourceResource;\n } else if (targetField.type === \"has-many\") {\n sourceResource._dependents.push({ type: targetResource.type, id: targetResource.id, fieldName: targetFieldName });\n if (targetResource[targetFieldName].indexOf(sourceResource) === -1) {\n targetResource[targetFieldName].push(sourceResource);\n }\n } else if (targetField.type === \"attr\") {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is an attribute ('${targetFieldName}')`);\n }\n } else if (sourceField.inverse) {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is missing ('${sourceField.inverse}')`);\n }\n }\n }\n\n _remove(resource) {\n resource._dependents.forEach(dependent => {\n let dependentResource = this._data[dependent.type][dependent.id];\n switch (this._types[dependent.type][dependent.fieldName].type) {\n case \"has-one\": {\n dependentResource[dependent.fieldName] = null;\n break;\n }\n case \"has-many\": {\n let index = dependentResource[dependent.fieldName].indexOf(resource);\n if (index !== -1) {\n dependentResource[dependent.fieldName].splice(index, 1);\n }\n break;\n }\n default: {\n break;\n }\n }\n // TODO: This only needs to be run once for each dependent.\n dependentResource._dependents = dependentResource._dependents.filter(d => {\n return !(d.type === resource.type && d.id === resource.id);\n });\n });\n delete this._data[resource.type][resource.id];\n }\n\n _removeInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) {\n var targetDefinition = this._types[targetResource.type];\n var targetFieldName = sourceField.inverse || sourceResource.type;\n var targetField = targetDefinition && targetDefinition[targetFieldName];\n targetResource._dependents = targetResource._dependents.filter(r => {\n return !(r.type === sourceResource.type && r.id === sourceResource.id && r.fieldName === sourceFieldName);\n });\n if (targetField) {\n if (targetField.type === \"has-one\") {\n sourceResource._dependents = sourceResource._dependents.filter(r => {\n return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);\n });\n targetResource[targetFieldName] = null;\n } else if (targetField.type === \"has-many\") {\n sourceResource._dependents = sourceResource._dependents.filter(r => {\n return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);\n });\n targetResource[targetFieldName] = targetResource[targetFieldName].filter(r => {\n return r !== sourceResource;\n });\n } else if (targetField.type === \"attr\") {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is an attribute ('${targetFieldName}')`);\n }\n } else if (sourceField.inverse) {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is missing ('${sourceField.inverse}')`);\n }\n }\n\n}\n" }, { "kind": "class", @@ -461,7 +461,7 @@ "longname": "src/store.js~Store#on", "access": null, "description": "Register an event listener: \"added\", \"updated\" or \"removed\".", - "lineNumber": 244, + "lineNumber": 247, "since": "0.4.0", "params": [ { @@ -534,7 +534,7 @@ "longname": "src/store.js~Store#push", "access": null, "description": "Add a JSON API response to the store. This method can be used to handle a\nsuccessful GET or POST response from the server.", - "lineNumber": 276, + "lineNumber": 286, "since": "0.1.0", "params": [ { @@ -567,7 +567,7 @@ "longname": "src/store.js~Store#remove", "access": null, "description": "Remove a resource or collection of resources from the store.", - "lineNumber": 296, + "lineNumber": 306, "since": "0.1.0", "params": [ { @@ -610,7 +610,7 @@ "longname": "src/store.js~Store#_addField", "access": null, "description": null, - "lineNumber": 321, + "lineNumber": 331, "undocument": true, "params": [ { @@ -649,7 +649,7 @@ "longname": "src/store.js~Store#_addInverseRelationship", "access": null, "description": null, - "lineNumber": 346, + "lineNumber": 356, "undocument": true, "params": [ { @@ -688,7 +688,7 @@ "longname": "src/store.js~Store#_remove", "access": null, "description": null, - "lineNumber": 371, + "lineNumber": 381, "undocument": true, "params": [ { @@ -709,7 +709,7 @@ "longname": "src/store.js~Store#_removeInverseRelationship", "access": null, "description": null, - "lineNumber": 398, + "lineNumber": 408, "undocument": true, "params": [ { diff --git a/docs/file/src/store.js.html b/docs/file/src/store.js.html index bee62d3..72a0c66 100644 --- a/docs/file/src/store.js.html +++ b/docs/file/src/store.js.html @@ -259,17 +259,20 @@ export default class Store { if (id && ({}).toString.call(id) === '[object Function]') { this.off.call(this, event, type, null, id, callback); } else { - if (id) { - if (this._resourceListeners[event][type] && this._resourceListeners[event][type][id]) { - this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(x => { + // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists. + this._types[type]._names.forEach(type => { + if (id) { + if (this._resourceListeners[event][type] && this._resourceListeners[event][type][id]) { + this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(x => { + return x[0] !== callback; + }); + } + } else if (this._collectionListeners[event][type]) { + this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(x => { return x[0] !== callback; }); } - } else if (this._collectionListeners[event][type]) { - this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(x => { - return x[0] !== callback; - }); - } + }); } } else { throw new Error(`Unknown type '${type}'`); @@ -296,14 +299,21 @@ export default class Store { if (id && ({}).toString.call(id) === '[object Function]') { this.on.call(this, event, type, null, id, callback); } else { - if (id) { - this._resourceListeners[event][type] = this._resourceListeners[event][type] || {}; - this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || []; - this._resourceListeners[event][type][id].push([ callback, context ]); - } else { - this._collectionListeners[event][type] = this._collectionListeners[event][type] || []; - this._collectionListeners[event][type].push([ callback, context ]); - } + // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists. + this._types[type]._names.forEach(type => { + if (id) { + this._resourceListeners[event][type] = this._resourceListeners[event][type] || {}; + this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || []; + if (!this._resourceListeners[event][type][id].find(x => x[0] === callback)) { + this._resourceListeners[event][type][id].push([ callback, context ]); + } + } else { + this._collectionListeners[event][type] = this._collectionListeners[event][type] || []; + if (!this._collectionListeners[event][type].find(x => x[0] === callback)) { + this._collectionListeners[event][type].push([ callback, context ]); + } + } + }); } } else { throw new Error(`Unknown type '${type}'`); diff --git a/docs/source.html b/docs/source.html index 9485d1e..47ed750 100644 --- a/docs/source.html +++ b/docs/source.html @@ -65,9 +65,9 @@ src/store.js Store 83 %10/12 - 15832 byte - 426 - 2015-08-04 03:51:03 (UTC) + 16462 byte + 436 + 2015-08-04 06:18:22 (UTC) diff --git a/package.json b/package.json index b7412a9..eed276d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-api-store", - "version": "0.4.0", + "version": "0.4.1", "description": "A lightweight library for using JSON API in the browser.", "repository": "haydn/json-api-store", "main": "dist/store.js",