| 4464 | return Zo(e) && "quantitative" === ea(e) && !e.bin; |
| 4465 | } |
| 4466 | function cl(e, t, n) { |
| 4467 | let { orient: i, type: r } = n; |
| 4468 | const o = "x" === t ? "y" : "radius", |
| 4469 | a = "x" === t && ["bar", "area"].includes(r), |
| 4470 | s = e[t], |
| 4471 | l = e[o]; |
| 4472 | if (Zo(s) && Zo(l)) |
| 4473 | if (ll(s) && ll(l)) { |
| 4474 | if (s.stack) return t; |
| 4475 | if (l.stack) return o; |
| 4476 | const e = Zo(s) && !!s.aggregate; |
| 4477 | if (e !== (Zo(l) && !!l.aggregate)) return e ? t : o; |
| 4478 | if (a) { |
| 4479 | if ("vertical" === i) return o; |
| 4480 | if ("horizontal" === i) return t; |
| 4481 | } |
| 4482 | } else { |
| 4483 | if (ll(s)) return t; |
| 4484 | if (ll(l)) return o; |
| 4485 | } |
| 4486 | else { |
| 4487 | if (ll(s)) { |
| 4488 | if (a && "vertical" === i) return; |
| 4489 | return t; |
| 4490 | } |
| 4491 | if (ll(l)) { |
| 4492 | if (a && "horizontal" === i) return; |
| 4493 | return o; |
| 4494 | } |
| 4495 | } |
| 4496 | } |
| 4497 | function ul(e, n) { |
| 4498 | const i = no(e) ? e : { type: e }, |
| 4499 | r = i.type; |