| 1958 | } |
| 1959 | const Fo = " – "; |
| 1960 | function Oo(e) { |
| 1961 | let { |
| 1962 | fieldOrDatumDef: n, |
| 1963 | format: i, |
| 1964 | formatType: r, |
| 1965 | expr: o, |
| 1966 | normalizeStack: a, |
| 1967 | config: s, |
| 1968 | } = e; |
| 1969 | if (So(r)) |
| 1970 | return Co({ |
| 1971 | fieldOrDatumDef: n, |
| 1972 | format: i, |
| 1973 | formatType: r, |
| 1974 | expr: o, |
| 1975 | config: s, |
| 1976 | }); |
| 1977 | const l = zo(n, o, a), |
| 1978 | c = ea(n); |
| 1979 | if (void 0 === i && void 0 === r && s.customFormatTypes) { |
| 1980 | if ("quantitative" === c) { |
| 1981 | if (a && s.normalizedNumberFormatType) |
| 1982 | return Co({ |
| 1983 | fieldOrDatumDef: n, |
| 1984 | format: s.normalizedNumberFormat, |
| 1985 | formatType: s.normalizedNumberFormatType, |
| 1986 | expr: o, |
| 1987 | config: s, |
| 1988 | }); |
| 1989 | if (s.numberFormatType) |
| 1990 | return Co({ |
| 1991 | fieldOrDatumDef: n, |
| 1992 | format: s.numberFormat, |
| 1993 | formatType: s.numberFormatType, |
| 1994 | expr: o, |
| 1995 | config: s, |
| 1996 | }); |
| 1997 | } |
| 1998 | if ( |
| 1999 | "temporal" === c && |
| 2000 | s.timeFormatType && |
| 2001 | Zo(n) && |
| 2002 | void 0 === n.timeUnit |
| 2003 | ) |
| 2004 | return Co({ |
| 2005 | fieldOrDatumDef: n, |
| 2006 | format: s.timeFormat, |
| 2007 | formatType: s.timeFormatType, |
| 2008 | expr: o, |
| 2009 | config: s, |
| 2010 | }); |
| 2011 | } |
| 2012 | if (Ca(n)) { |
| 2013 | const e = (function (e) { |
| 2014 | let { |
| 2015 | field: n, |
| 2016 | timeUnit: i, |
| 2017 | format: r, |