{"version":3,"sources":["node_modules/@arcgis/core/core/accessorSupport/decorators/cast.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 { ensureType as t } from \"../ensureType.js\";\nimport { getPropertyMetadata as n } from \"../metadata.js\";\nconst r = Object.prototype.toString;\nfunction o(n) {\n const r = \"__accessorMetadata__\" in n ? t(n) : n;\n return function (...t) {\n if (t.push(r), \"number\" == typeof t[2]) throw new Error(\"Using @cast has parameter decorator is not supported since 4.16\");\n return e.apply(this, t);\n };\n}\nfunction e(t, r, o, e) {\n n(t, r).cast = e;\n}\nfunction i(t) {\n return (r, o) => {\n n(r, t).cast = r[o];\n };\n}\nfunction s(...t) {\n if (3 !== t.length || \"string\" != typeof t[1]) return 1 === t.length && \"[object Function]\" === r.call(t[0]) ? o(t[0]) : 1 === t.length && \"string\" == typeof t[0] ? i(t[0]) : void 0;\n}\nexport { s as cast };"],"mappings":";;;;;;AAMA,IAAM,IAAI,OAAO,UAAU;AAC3B,SAASA,GAAE,GAAG;AACZ,QAAMC,KAAI,0BAA0B,IAAI,EAAE,CAAC,IAAI;AAC/C,SAAO,YAAa,GAAG;AACrB,QAAI,EAAE,KAAKA,EAAC,GAAG,YAAY,OAAO,EAAE,CAAC;AAAG,YAAM,IAAI,MAAM,iEAAiE;AACzH,WAAO,EAAE,MAAM,MAAM,CAAC;AAAA,EACxB;AACF;AACA,SAAS,EAAE,GAAGA,IAAGD,IAAGE,IAAG;AACrB,IAAE,GAAGD,EAAC,EAAE,OAAOC;AACjB;AACA,SAAS,EAAE,GAAG;AACZ,SAAO,CAACD,IAAGD,OAAM;AACf,MAAEC,IAAG,CAAC,EAAE,OAAOA,GAAED,EAAC;AAAA,EACpB;AACF;AACA,SAAS,KAAK,GAAG;AACf,MAAI,MAAM,EAAE,UAAU,YAAY,OAAO,EAAE,CAAC;AAAG,WAAO,MAAM,EAAE,UAAU,wBAAwB,EAAE,KAAK,EAAE,CAAC,CAAC,IAAIA,GAAE,EAAE,CAAC,CAAC,IAAI,MAAM,EAAE,UAAU,YAAY,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI;AACjL;","names":["o","r","e"],"x_google_ignoreList":[0]}