| 9856 | } |
| 9857 | class Ad extends $c { |
| 9858 | constructor(e) { |
| 9859 | let t; |
| 9860 | if ( |
| 9861 | (super(null), |
| 9862 | (e ??= { name: "source" }), |
| 9863 | gc(e) || (t = e.format ? { ...f(e.format, ["parse"]) } : {}), |
| 9864 | mc(e)) |
| 9865 | ) |
| 9866 | this._data = { values: e.values }; |
| 9867 | else if (dc(e)) { |
| 9868 | if (((this._data = { url: e.url }), !t.type)) { |
| 9869 | let n = /(?:\.([^.]+))?$/.exec(e.url)[1]; |
| 9870 | (p(["json", "csv", "tsv", "dsv", "topojson"], n) || (n = "json"), |
| 9871 | (t.type = n)); |
| 9872 | } |
| 9873 | } else |
| 9874 | yc(e) |
| 9875 | ? (this._data = { values: [{ type: "Sphere" }] }) |
| 9876 | : (pc(e) || gc(e)) && (this._data = {}); |
| 9877 | ((this._generator = gc(e)), |
| 9878 | e.name && (this._name = e.name), |
| 9879 | t && !S(t) && (this._data.format = t)); |
| 9880 | } |
| 9881 | dependentFields() { |
| 9882 | return new Set(); |
| 9883 | } |