12345678910111213141516171819202122232425262728293031323334 |
- import {
- s
- } from "./chunk-Y3WMVFTW.js";
- import {
- b
- } from "./chunk-IHXECKQQ.js";
- // node_modules/@arcgis/core/core/accessorSupport/decorators/cast.js
- var r = Object.prototype.toString;
- function o(n) {
- const r2 = "__accessorMetadata__" in n ? b(n) : n;
- return function(...t) {
- if (t.push(r2), typeof t[2] == "number")
- throw new Error("Using @cast has parameter decorator is not supported since 4.16");
- return e.apply(this, t);
- };
- }
- function e(t, r2, o2, e2) {
- s(t, r2).cast = e2;
- }
- function i(t) {
- return (r2, o2) => {
- s(r2, t).cast = r2[o2];
- };
- }
- function s2(...t) {
- if (t.length !== 3 || typeof t[1] != "string")
- return t.length === 1 && r.call(t[0]) === "[object Function]" ? o(t[0]) : t.length === 1 && typeof t[0] == "string" ? i(t[0]) : void 0;
- }
- export {
- s2 as s
- };
- //# sourceMappingURL=chunk-GCDJLKH4.js.map
|