{"version":3,"sources":["node_modules/@arcgis/core/core/Clonable.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 o } from \"../chunks/tslib.es6.js\";\nimport s from \"./Accessor.js\";\nimport \"./has.js\";\nimport { tryClone as t } from \"./lang.js\";\nimport \"./Logger.js\";\nimport { assertIsSome as r } from \"./maybe.js\";\nimport { OriginId as e } from \"./accessorSupport/PropertyOrigin.js\";\nimport { getProperties as n } from \"./accessorSupport/utils.js\";\nimport { subclass as c } from \"./accessorSupport/decorators/subclass.js\";\nconst i = s => {\n let i = class extends s {\n clone() {\n const o = n(this);\n r(o, \"unable to clone instance of non-accessor class\");\n const s = o.metadatas,\n c = o.store,\n i = {},\n l = new Map();\n for (const r in s) {\n const o = s[r],\n n = c?.originOf(r),\n a = o.clonable;\n if (o.readOnly || !1 === a || n !== e.USER && n !== e.DEFAULTS && n !== e.WEB_MAP && n !== e.WEB_SCENE) continue;\n const p = this[r];\n let f = null;\n f = \"function\" == typeof a ? a(p) : \"reference\" === a ? p : t(p), null != p && null == f || (n === e.DEFAULTS ? l.set(r, f) : i[r] = f);\n }\n const a = new (0, Object.getPrototypeOf(this).constructor)(i);\n if (l.size) {\n const o = n(a)?.store;\n if (o) for (const [s, t] of l) o.set(s, t, e.DEFAULTS);\n }\n return a;\n }\n };\n return i = o([c(\"esri.core.Clonable\")], i), i;\n};\nlet l = class extends i(s) {};\nl = o([c(\"esri.core.Clonable\")], l);\nexport { l as Clonable, i as ClonableMixin };"],"mappings":";;;;;;;;;;;;;;;;;;;AAaA,IAAM,IAAI,OAAK;AACb,MAAIA,KAAI,cAAc,EAAE;AAAA,IACtB,QAAQ;AACN,YAAM,IAAI,EAAE,IAAI;AAChB,QAAE,GAAG,gDAAgD;AACrD,YAAMC,KAAI,EAAE,WACVC,KAAI,EAAE,OACNF,KAAI,CAAC,GACLG,KAAI,oBAAI,IAAI;AACd,i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