{"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.31/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.metadata,\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":"sNAaA,IAAMA,EAAIC,GAAK,CACb,IAAID,EAAI,cAAcC,CAAE,CACtB,OAAQ,CACN,IAAMC,EAAIC,EAAE,IAAI,EAChBC,EAAEF,EAAG,gDAAgD,EACrD,IAAMD,EAAIC,EAAE,SACVG,EAAIH,EAAE,MACNF,EAAI,CAAC,EACLM,EAAI,IAAI,IACV,QAAWC,KAAKN,EAAG,CACjB,IAAMC,EAAID,EAAEM,CAAC,EACXH,EAAIC,GAAG,SAASE,CAAC,EACjBC,EAAIN,EAAE,SACR,GAAIA,EAAE,UAAmBM,IAAP,IAAYJ,IAAM,EAAE,MAAQA,IAAM,EAAE,UAAYA,IAAM,EAAE,SAAWA,IAAM,EAAE,UAAW,SACxG,IAAMK,EAAI,KAAKF,CAAC,EACZG,EAAI,KACRA,EAAkB,OAAOF,GAArB,WAAyBA,EAAEC,CAAC,EAAoBD,IAAhB,YAAoBC,EAAIA,EAAEA,CAAC,EAAWA,GAAR,MAAqBC,GAAR,OAAcN,IAAM,EAAE,SAAWE,EAAE,IAAIC,EAAGG,CAAC,EAAIV,EAAEO,CAAC,EAAIG,EACvI,CACA,IAAMF,EAAI,IAAQ,OAAO,eAAe,IAAI,GAAE,YAAaR,CAAC,EAC5D,GAAIM,EAAE,KAAM,CACV,IAAM,EAAIH,EAAEK,CAAC,GAAG,MAChB,GAAI,EAAG,OAAW,CAAC,EAAG,CAAC,IAAKF,EAAG,EAAE,IAAI,EAAG,EAAG,EAAE,QAAQ,CACvD,CACA,OAAOE,CACT,CACF,EACA,OAAOR,EAAIO,EAAE,CAACC,EAAE,oBAAoB,CAAC,EAAGR,CAAC,EAAGA,CAC9C,EACIM,EAAI,cAAcN,EAAEW,CAAC,CAAE,CAAC,EAC5BL,EAAIC,EAAE,CAACC,EAAE,oBAAoB,CAAC,EAAGF,CAAC","names":["i","s","o","t","n","c","l","r","a","p","f","b"],"x_google_ignoreList":[0]}