{"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.31/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":"+CAMA,IAAMA,EAAI,OAAO,UAAU,SAC3B,SAASC,EAAEC,EAAG,CACZ,IAAM,EAAI,yBAA0BA,EAAIC,EAAED,CAAC,EAAIA,EAC/C,OAAO,YAAaE,EAAG,CACrB,GAAIA,EAAE,KAAK,CAAC,EAAe,OAAOA,EAAE,CAAC,GAAtB,SAAyB,MAAM,IAAI,MAAM,iEAAiE,EACzH,OAAOC,EAAE,MAAM,KAAMD,CAAC,CACxB,CACF,CACA,SAASC,EAAE,EAAG,EAAG,EAAGA,EAAG,CACrBJ,EAAE,EAAG,CAAC,EAAE,KAAOI,CACjB,CACA,SAASC,EAAE,EAAG,CACZ,MAAO,CAAC,EAAG,IAAM,CACfL,EAAE,EAAG,CAAC,EAAE,KAAO,EAAE,CAAC,CACpB,CACF,CACA,SAASM,KAAK,EAAG,CACf,GAAU,EAAE,SAAR,GAA8B,OAAO,EAAE,CAAC,GAAtB,SAAyB,OAAa,EAAE,SAAR,GAA0CP,EAAE,KAAK,EAAE,CAAC,CAAC,IAAnC,oBAAuCC,EAAE,EAAE,CAAC,CAAC,EAAU,EAAE,SAAR,GAA8B,OAAO,EAAE,CAAC,GAAtB,SAA0BK,EAAE,EAAE,CAAC,CAAC,EAAI,MACjL","names":["r","o","n","w","t","e","i","s"],"x_google_ignoreList":[0]}