{"version":3,"sources":["node_modules/@arcgis/core/core/support/OwningCollection.js","node_modules/@arcgis/core/support/GraphicsCollection.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport t from \"../Collection.js\";\nimport { castForReferenceSetter as s, referenceSetter as o } from \"../collectionUtils.js\";\nimport \"../has.js\";\nimport \"../Logger.js\";\nimport { property as r } from \"../accessorSupport/decorators/property.js\";\nimport \"../accessorSupport/ensureType.js\";\nimport \"../arrayUtils.js\";\nimport { subclass as i } from \"../accessorSupport/decorators/subclass.js\";\nlet n = class extends t {\n constructor(e) {\n super(e), this.addHandles([this.on(\"before-add\", e => {\n null == e.item && e.preventDefault();\n }), this.on(\"after-add\", e => this._own(e.item)), this.on(\"after-remove\", e => this._release(e.item))]);\n }\n get owner() {\n return this._get(\"owner\");\n }\n set owner(e) {\n e !== this._get(\"owner\") && (this._releaseAll(), this._set(\"owner\", e), this._ownAll());\n }\n _ownAll() {\n for (const e of this.items) this._own(e);\n }\n _releaseAll() {\n for (const e of this.items) this._release(e);\n }\n _createNewInstance(e) {\n return this.itemType ? new (t.ofType(this.itemType.Type))(e) : new t(e);\n }\n};\nfunction l(e, t) {\n return {\n type: e,\n cast: s,\n set(s) {\n const r = o(s, this._get(t), e);\n r.owner = this, this._set(t, r);\n }\n };\n}\ne([r()], n.prototype, \"owner\", null), n = e([i(\"esri.core.support.OwningCollection\")], n);\nexport { n as OwningCollection, l as owningCollectionProperty };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../chunks/tslib.es6.js\";\nimport o from \"../Graphic.js\";\nimport \"../core/Logger.js\";\nimport { ensureType as e } from \"../core/accessorSupport/ensureType.js\";\nimport \"../core/arrayUtils.js\";\nimport \"../core/has.js\";\nimport \"../core/Error.js\";\nimport { shared as s } from \"../core/accessorSupport/decorators/shared.js\";\nimport { subclass as t } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { OwningCollection as p } from \"../core/support/OwningCollection.js\";\nlet i = class extends p {\n _own(r) {\n r.layer && \"remove\" in r.layer && r.layer !== this.owner && r.layer.remove(r), r.layer = this.owner;\n }\n _release(r) {\n r.layer === this.owner && (r.layer = null);\n }\n};\nr([s({\n Type: o,\n ensureType: e(o)\n})], i.prototype, \"itemType\", void 0), i = r([t(\"esri.support.GraphicsCollection\")], i);\nexport { i as GraphicsCollection };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAIA,KAAI,cAAc,EAAE;AAAA,EACtB,YAAYC,IAAG;AACb,UAAMA,EAAC,GAAG,KAAK,WAAW,CAAC,KAAK,GAAG,cAAc,CAAAA,OAAK;AACpD,cAAQA,GAAE,QAAQA,GAAE,eAAe;AAAA,IACrC,CAAC,GAAG,KAAK,GAAG,aAAa,CAAAA,OAAK,KAAK,KAAKA,GAAE,IAAI,CAAC,GAAG,KAAK,GAAG,gBAAgB,CAAAA,OAAK,KAAK,SAASA,GAAE,IAAI,CAAC,CAAC,CAAC;AAAA,EACxG;AAAA,EACA,IAAI,QAAQ;AACV,WAAO,KAAK,KAAK,OAAO;AAAA,EAC1B;AAAA,EACA,IAAI,MAAMA,IAAG;AACX,IAAAA,OAAM,KAAK,KAAK,OAAO,MAAM,KAAK,YAAY,GAAG,KAAK,KAAK,SAASA,EAAC,GAAG,KAAK,QAAQ;AAAA,EACvF;AAAA,EACA,UAAU;AACR,eAAWA,MAAK,KAAK;AAAO,WAAK,KAAKA,EAAC;AAAA,EACzC;AAAA,EACA,cAAc;AACZ,eAAWA,MAAK,KAAK;AAAO,WAAK,SAASA,EAAC;AAAA,EAC7C;AAAA,EACA,mBAAmBA,IAAG;AACpB,WAAO,KAAK,WAAW,KAAK,EAAE,OAAO,KAAK,SAAS,IAAI,GAAGA,EAAC,IAAI,IAAI,EAAEA,EAA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