@vitessce/vega 3.9.5 → 4.0.0-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, PureComponent, useEffect, Suspense } from "react";
3
+ import { jsx as jsx$1 } from "react/jsx-runtime";
3
4
  import * as ReactDOM from "react-dom";
4
5
  import "@vitessce/vit-s";
5
6
  function accessor(fn, fields, name) {
@@ -883,8 +884,8 @@ function pad$1(value2, width2) {
883
884
  var s = value2 + "", length2 = s.length;
884
885
  return length2 < width2 ? new Array(width2 - length2 + 1).join(0) + s : s;
885
886
  }
886
- function formatYear$1(year2) {
887
- return year2 < 0 ? "-" + pad$1(-year2, 6) : year2 > 9999 ? "+" + pad$1(year2, 6) : pad$1(year2, 4);
887
+ function formatYear$1(year) {
888
+ return year < 0 ? "-" + pad$1(-year, 6) : year > 9999 ? "+" + pad$1(year, 6) : pad$1(year, 4);
888
889
  }
889
890
  function formatDate(date2) {
890
891
  var hours = date2.getUTCHours(), minutes = date2.getUTCMinutes(), seconds = date2.getUTCSeconds(), milliseconds = date2.getUTCMilliseconds();
@@ -1772,38 +1773,39 @@ function precisionRound(step, max2) {
1772
1773
  step = Math.abs(step), max2 = Math.abs(max2) - step;
1773
1774
  return Math.max(0, exponent(max2) - exponent(step)) + 1;
1774
1775
  }
1775
- var t0$2 = /* @__PURE__ */ new Date(), t1$1 = /* @__PURE__ */ new Date();
1776
- function newInterval(floori, offseti, count2, field2) {
1776
+ const t0$2 = /* @__PURE__ */ new Date(), t1$1 = /* @__PURE__ */ new Date();
1777
+ function timeInterval$1(floori, offseti, count2, field2) {
1777
1778
  function interval2(date2) {
1778
1779
  return floori(date2 = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+date2)), date2;
1779
1780
  }
1780
- interval2.floor = function(date2) {
1781
+ interval2.floor = (date2) => {
1781
1782
  return floori(date2 = /* @__PURE__ */ new Date(+date2)), date2;
1782
1783
  };
1783
- interval2.ceil = function(date2) {
1784
+ interval2.ceil = (date2) => {
1784
1785
  return floori(date2 = new Date(date2 - 1)), offseti(date2, 1), floori(date2), date2;
1785
1786
  };
1786
- interval2.round = function(date2) {
1787
- var d0 = interval2(date2), d1 = interval2.ceil(date2);
1787
+ interval2.round = (date2) => {
1788
+ const d0 = interval2(date2), d1 = interval2.ceil(date2);
1788
1789
  return date2 - d0 < d1 - date2 ? d0 : d1;
1789
1790
  };
1790
- interval2.offset = function(date2, step) {
1791
+ interval2.offset = (date2, step) => {
1791
1792
  return offseti(date2 = /* @__PURE__ */ new Date(+date2), step == null ? 1 : Math.floor(step)), date2;
1792
1793
  };
1793
- interval2.range = function(start, stop3, step) {
1794
- var range2 = [], previous;
1794
+ interval2.range = (start, stop3, step) => {
1795
+ const range2 = [];
1795
1796
  start = interval2.ceil(start);
1796
1797
  step = step == null ? 1 : Math.floor(step);
1797
1798
  if (!(start < stop3) || !(step > 0)) return range2;
1799
+ let previous;
1798
1800
  do
1799
1801
  range2.push(previous = /* @__PURE__ */ new Date(+start)), offseti(start, step), floori(start);
1800
1802
  while (previous < start && start < stop3);
1801
1803
  return range2;
1802
1804
  };
1803
- interval2.filter = function(test2) {
1804
- return newInterval(function(date2) {
1805
+ interval2.filter = (test2) => {
1806
+ return timeInterval$1((date2) => {
1805
1807
  if (date2 >= date2) while (floori(date2), !test2(date2)) date2.setTime(date2 - 1);
1806
- }, function(date2, step) {
1808
+ }, (date2, step) => {
1807
1809
  if (date2 >= date2) {
1808
1810
  if (step < 0) while (++step <= 0) {
1809
1811
  while (offseti(date2, -1), !test2(date2)) {
@@ -1817,37 +1819,33 @@ function newInterval(floori, offseti, count2, field2) {
1817
1819
  });
1818
1820
  };
1819
1821
  if (count2) {
1820
- interval2.count = function(start, end) {
1822
+ interval2.count = (start, end) => {
1821
1823
  t0$2.setTime(+start), t1$1.setTime(+end);
1822
1824
  floori(t0$2), floori(t1$1);
1823
1825
  return Math.floor(count2(t0$2, t1$1));
1824
1826
  };
1825
- interval2.every = function(step) {
1827
+ interval2.every = (step) => {
1826
1828
  step = Math.floor(step);
1827
- return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval2 : interval2.filter(field2 ? function(d) {
1828
- return field2(d) % step === 0;
1829
- } : function(d) {
1830
- return interval2.count(0, d) % step === 0;
1831
- });
1829
+ return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval2 : interval2.filter(field2 ? (d) => field2(d) % step === 0 : (d) => interval2.count(0, d) % step === 0);
1832
1830
  };
1833
1831
  }
1834
1832
  return interval2;
1835
1833
  }
1836
- var millisecond = newInterval(function() {
1837
- }, function(date2, step) {
1834
+ const millisecond = timeInterval$1(() => {
1835
+ }, (date2, step) => {
1838
1836
  date2.setTime(+date2 + step);
1839
- }, function(start, end) {
1837
+ }, (start, end) => {
1840
1838
  return end - start;
1841
1839
  });
1842
- millisecond.every = function(k) {
1840
+ millisecond.every = (k) => {
1843
1841
  k = Math.floor(k);
1844
1842
  if (!isFinite(k) || !(k > 0)) return null;
1845
1843
  if (!(k > 1)) return millisecond;
1846
- return newInterval(function(date2) {
1844
+ return timeInterval$1((date2) => {
1847
1845
  date2.setTime(Math.floor(date2 / k) * k);
1848
- }, function(date2, step) {
1846
+ }, (date2, step) => {
1849
1847
  date2.setTime(+date2 + step * k);
1850
- }, function(start, end) {
1848
+ }, (start, end) => {
1851
1849
  return (end - start) / k;
1852
1850
  });
1853
1851
  };
@@ -1859,145 +1857,124 @@ const durationDay$1 = durationHour$1 * 24;
1859
1857
  const durationWeek$1 = durationDay$1 * 7;
1860
1858
  const durationMonth$1 = durationDay$1 * 30;
1861
1859
  const durationYear$1 = durationDay$1 * 365;
1862
- var second = newInterval(function(date2) {
1860
+ const second = timeInterval$1((date2) => {
1863
1861
  date2.setTime(date2 - date2.getMilliseconds());
1864
- }, function(date2, step) {
1862
+ }, (date2, step) => {
1865
1863
  date2.setTime(+date2 + step * durationSecond$1);
1866
- }, function(start, end) {
1864
+ }, (start, end) => {
1867
1865
  return (end - start) / durationSecond$1;
1868
- }, function(date2) {
1866
+ }, (date2) => {
1869
1867
  return date2.getUTCSeconds();
1870
1868
  });
1871
1869
  second.range;
1872
- var minute = newInterval(function(date2) {
1870
+ const timeMinute = timeInterval$1((date2) => {
1873
1871
  date2.setTime(date2 - date2.getMilliseconds() - date2.getSeconds() * durationSecond$1);
1874
- }, function(date2, step) {
1872
+ }, (date2, step) => {
1875
1873
  date2.setTime(+date2 + step * durationMinute$1);
1876
- }, function(start, end) {
1874
+ }, (start, end) => {
1877
1875
  return (end - start) / durationMinute$1;
1878
- }, function(date2) {
1876
+ }, (date2) => {
1879
1877
  return date2.getMinutes();
1880
1878
  });
1881
- minute.range;
1882
- var hour = newInterval(function(date2) {
1883
- date2.setTime(date2 - date2.getMilliseconds() - date2.getSeconds() * durationSecond$1 - date2.getMinutes() * durationMinute$1);
1884
- }, function(date2, step) {
1885
- date2.setTime(+date2 + step * durationHour$1);
1886
- }, function(start, end) {
1887
- return (end - start) / durationHour$1;
1888
- }, function(date2) {
1889
- return date2.getHours();
1890
- });
1891
- hour.range;
1892
- var day = newInterval(
1893
- (date2) => date2.setHours(0, 0, 0, 0),
1894
- (date2, step) => date2.setDate(date2.getDate() + step),
1895
- (start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute$1) / durationDay$1,
1896
- (date2) => date2.getDate() - 1
1897
- );
1898
- day.range;
1899
- function weekday$1(i) {
1900
- return newInterval(function(date2) {
1901
- date2.setDate(date2.getDate() - (date2.getDay() + 7 - i) % 7);
1902
- date2.setHours(0, 0, 0, 0);
1903
- }, function(date2, step) {
1904
- date2.setDate(date2.getDate() + step * 7);
1905
- }, function(start, end) {
1906
- return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute$1) / durationWeek$1;
1907
- });
1908
- }
1909
- var sunday = weekday$1(0);
1910
- var monday = weekday$1(1);
1911
- var tuesday = weekday$1(2);
1912
- var wednesday = weekday$1(3);
1913
- var thursday = weekday$1(4);
1914
- var friday = weekday$1(5);
1915
- var saturday = weekday$1(6);
1916
- sunday.range;
1917
- monday.range;
1918
- tuesday.range;
1919
- wednesday.range;
1920
- thursday.range;
1921
- friday.range;
1922
- saturday.range;
1923
- var month = newInterval(function(date2) {
1924
- date2.setDate(1);
1925
- date2.setHours(0, 0, 0, 0);
1926
- }, function(date2, step) {
1927
- date2.setMonth(date2.getMonth() + step);
1928
- }, function(start, end) {
1929
- return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
1930
- }, function(date2) {
1931
- return date2.getMonth();
1932
- });
1933
- month.range;
1934
- var year = newInterval(function(date2) {
1935
- date2.setMonth(0, 1);
1936
- date2.setHours(0, 0, 0, 0);
1937
- }, function(date2, step) {
1938
- date2.setFullYear(date2.getFullYear() + step);
1939
- }, function(start, end) {
1940
- return end.getFullYear() - start.getFullYear();
1941
- }, function(date2) {
1942
- return date2.getFullYear();
1943
- });
1944
- year.every = function(k) {
1945
- return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date2) {
1946
- date2.setFullYear(Math.floor(date2.getFullYear() / k) * k);
1947
- date2.setMonth(0, 1);
1948
- date2.setHours(0, 0, 0, 0);
1949
- }, function(date2, step) {
1950
- date2.setFullYear(date2.getFullYear() + step * k);
1951
- });
1952
- };
1953
- year.range;
1954
- var utcMinute = newInterval(function(date2) {
1879
+ timeMinute.range;
1880
+ const utcMinute = timeInterval$1((date2) => {
1955
1881
  date2.setUTCSeconds(0, 0);
1956
- }, function(date2, step) {
1882
+ }, (date2, step) => {
1957
1883
  date2.setTime(+date2 + step * durationMinute$1);
1958
- }, function(start, end) {
1884
+ }, (start, end) => {
1959
1885
  return (end - start) / durationMinute$1;
1960
- }, function(date2) {
1886
+ }, (date2) => {
1961
1887
  return date2.getUTCMinutes();
1962
1888
  });
1963
1889
  utcMinute.range;
1964
- var utcHour = newInterval(function(date2) {
1890
+ const timeHour = timeInterval$1((date2) => {
1891
+ date2.setTime(date2 - date2.getMilliseconds() - date2.getSeconds() * durationSecond$1 - date2.getMinutes() * durationMinute$1);
1892
+ }, (date2, step) => {
1893
+ date2.setTime(+date2 + step * durationHour$1);
1894
+ }, (start, end) => {
1895
+ return (end - start) / durationHour$1;
1896
+ }, (date2) => {
1897
+ return date2.getHours();
1898
+ });
1899
+ timeHour.range;
1900
+ const utcHour = timeInterval$1((date2) => {
1965
1901
  date2.setUTCMinutes(0, 0, 0);
1966
- }, function(date2, step) {
1902
+ }, (date2, step) => {
1967
1903
  date2.setTime(+date2 + step * durationHour$1);
1968
- }, function(start, end) {
1904
+ }, (start, end) => {
1969
1905
  return (end - start) / durationHour$1;
1970
- }, function(date2) {
1906
+ }, (date2) => {
1971
1907
  return date2.getUTCHours();
1972
1908
  });
1973
1909
  utcHour.range;
1974
- var utcDay = newInterval(function(date2) {
1910
+ const timeDay = timeInterval$1(
1911
+ (date2) => date2.setHours(0, 0, 0, 0),
1912
+ (date2, step) => date2.setDate(date2.getDate() + step),
1913
+ (start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute$1) / durationDay$1,
1914
+ (date2) => date2.getDate() - 1
1915
+ );
1916
+ timeDay.range;
1917
+ const utcDay = timeInterval$1((date2) => {
1975
1918
  date2.setUTCHours(0, 0, 0, 0);
1976
- }, function(date2, step) {
1919
+ }, (date2, step) => {
1977
1920
  date2.setUTCDate(date2.getUTCDate() + step);
1978
- }, function(start, end) {
1921
+ }, (start, end) => {
1979
1922
  return (end - start) / durationDay$1;
1980
- }, function(date2) {
1923
+ }, (date2) => {
1981
1924
  return date2.getUTCDate() - 1;
1982
1925
  });
1983
1926
  utcDay.range;
1927
+ const unixDay = timeInterval$1((date2) => {
1928
+ date2.setUTCHours(0, 0, 0, 0);
1929
+ }, (date2, step) => {
1930
+ date2.setUTCDate(date2.getUTCDate() + step);
1931
+ }, (start, end) => {
1932
+ return (end - start) / durationDay$1;
1933
+ }, (date2) => {
1934
+ return Math.floor(date2 / durationDay$1);
1935
+ });
1936
+ unixDay.range;
1937
+ function timeWeekday(i) {
1938
+ return timeInterval$1((date2) => {
1939
+ date2.setDate(date2.getDate() - (date2.getDay() + 7 - i) % 7);
1940
+ date2.setHours(0, 0, 0, 0);
1941
+ }, (date2, step) => {
1942
+ date2.setDate(date2.getDate() + step * 7);
1943
+ }, (start, end) => {
1944
+ return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute$1) / durationWeek$1;
1945
+ });
1946
+ }
1947
+ const timeSunday = timeWeekday(0);
1948
+ const timeMonday = timeWeekday(1);
1949
+ const timeTuesday = timeWeekday(2);
1950
+ const timeWednesday = timeWeekday(3);
1951
+ const timeThursday = timeWeekday(4);
1952
+ const timeFriday = timeWeekday(5);
1953
+ const timeSaturday = timeWeekday(6);
1954
+ timeSunday.range;
1955
+ timeMonday.range;
1956
+ timeTuesday.range;
1957
+ timeWednesday.range;
1958
+ timeThursday.range;
1959
+ timeFriday.range;
1960
+ timeSaturday.range;
1984
1961
  function utcWeekday(i) {
1985
- return newInterval(function(date2) {
1962
+ return timeInterval$1((date2) => {
1986
1963
  date2.setUTCDate(date2.getUTCDate() - (date2.getUTCDay() + 7 - i) % 7);
1987
1964
  date2.setUTCHours(0, 0, 0, 0);
1988
- }, function(date2, step) {
1965
+ }, (date2, step) => {
1989
1966
  date2.setUTCDate(date2.getUTCDate() + step * 7);
1990
- }, function(start, end) {
1967
+ }, (start, end) => {
1991
1968
  return (end - start) / durationWeek$1;
1992
1969
  });
1993
1970
  }
1994
- var utcSunday = utcWeekday(0);
1995
- var utcMonday = utcWeekday(1);
1996
- var utcTuesday = utcWeekday(2);
1997
- var utcWednesday = utcWeekday(3);
1998
- var utcThursday = utcWeekday(4);
1999
- var utcFriday = utcWeekday(5);
2000
- var utcSaturday = utcWeekday(6);
1971
+ const utcSunday = utcWeekday(0);
1972
+ const utcMonday = utcWeekday(1);
1973
+ const utcTuesday = utcWeekday(2);
1974
+ const utcWednesday = utcWeekday(3);
1975
+ const utcThursday = utcWeekday(4);
1976
+ const utcFriday = utcWeekday(5);
1977
+ const utcSaturday = utcWeekday(6);
2001
1978
  utcSunday.range;
2002
1979
  utcMonday.range;
2003
1980
  utcTuesday.range;
@@ -2005,57 +1982,88 @@ utcWednesday.range;
2005
1982
  utcThursday.range;
2006
1983
  utcFriday.range;
2007
1984
  utcSaturday.range;
2008
- var utcMonth = newInterval(function(date2) {
1985
+ const timeMonth = timeInterval$1((date2) => {
1986
+ date2.setDate(1);
1987
+ date2.setHours(0, 0, 0, 0);
1988
+ }, (date2, step) => {
1989
+ date2.setMonth(date2.getMonth() + step);
1990
+ }, (start, end) => {
1991
+ return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
1992
+ }, (date2) => {
1993
+ return date2.getMonth();
1994
+ });
1995
+ timeMonth.range;
1996
+ const utcMonth = timeInterval$1((date2) => {
2009
1997
  date2.setUTCDate(1);
2010
1998
  date2.setUTCHours(0, 0, 0, 0);
2011
- }, function(date2, step) {
1999
+ }, (date2, step) => {
2012
2000
  date2.setUTCMonth(date2.getUTCMonth() + step);
2013
- }, function(start, end) {
2001
+ }, (start, end) => {
2014
2002
  return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
2015
- }, function(date2) {
2003
+ }, (date2) => {
2016
2004
  return date2.getUTCMonth();
2017
2005
  });
2018
2006
  utcMonth.range;
2019
- var utcYear = newInterval(function(date2) {
2007
+ const timeYear = timeInterval$1((date2) => {
2008
+ date2.setMonth(0, 1);
2009
+ date2.setHours(0, 0, 0, 0);
2010
+ }, (date2, step) => {
2011
+ date2.setFullYear(date2.getFullYear() + step);
2012
+ }, (start, end) => {
2013
+ return end.getFullYear() - start.getFullYear();
2014
+ }, (date2) => {
2015
+ return date2.getFullYear();
2016
+ });
2017
+ timeYear.every = (k) => {
2018
+ return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval$1((date2) => {
2019
+ date2.setFullYear(Math.floor(date2.getFullYear() / k) * k);
2020
+ date2.setMonth(0, 1);
2021
+ date2.setHours(0, 0, 0, 0);
2022
+ }, (date2, step) => {
2023
+ date2.setFullYear(date2.getFullYear() + step * k);
2024
+ });
2025
+ };
2026
+ timeYear.range;
2027
+ const utcYear = timeInterval$1((date2) => {
2020
2028
  date2.setUTCMonth(0, 1);
2021
2029
  date2.setUTCHours(0, 0, 0, 0);
2022
- }, function(date2, step) {
2030
+ }, (date2, step) => {
2023
2031
  date2.setUTCFullYear(date2.getUTCFullYear() + step);
2024
- }, function(start, end) {
2032
+ }, (start, end) => {
2025
2033
  return end.getUTCFullYear() - start.getUTCFullYear();
2026
- }, function(date2) {
2034
+ }, (date2) => {
2027
2035
  return date2.getUTCFullYear();
2028
2036
  });
2029
- utcYear.every = function(k) {
2030
- return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date2) {
2037
+ utcYear.every = (k) => {
2038
+ return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval$1((date2) => {
2031
2039
  date2.setUTCFullYear(Math.floor(date2.getUTCFullYear() / k) * k);
2032
2040
  date2.setUTCMonth(0, 1);
2033
2041
  date2.setUTCHours(0, 0, 0, 0);
2034
- }, function(date2, step) {
2042
+ }, (date2, step) => {
2035
2043
  date2.setUTCFullYear(date2.getUTCFullYear() + step * k);
2036
2044
  });
2037
2045
  };
2038
2046
  utcYear.range;
2039
- function ticker(year2, month2, week2, day2, hour2, minute2) {
2047
+ function ticker(year, month, week2, day, hour, minute) {
2040
2048
  const tickIntervals = [
2041
2049
  [second, 1, durationSecond$1],
2042
2050
  [second, 5, 5 * durationSecond$1],
2043
2051
  [second, 15, 15 * durationSecond$1],
2044
2052
  [second, 30, 30 * durationSecond$1],
2045
- [minute2, 1, durationMinute$1],
2046
- [minute2, 5, 5 * durationMinute$1],
2047
- [minute2, 15, 15 * durationMinute$1],
2048
- [minute2, 30, 30 * durationMinute$1],
2049
- [hour2, 1, durationHour$1],
2050
- [hour2, 3, 3 * durationHour$1],
2051
- [hour2, 6, 6 * durationHour$1],
2052
- [hour2, 12, 12 * durationHour$1],
2053
- [day2, 1, durationDay$1],
2054
- [day2, 2, 2 * durationDay$1],
2053
+ [minute, 1, durationMinute$1],
2054
+ [minute, 5, 5 * durationMinute$1],
2055
+ [minute, 15, 15 * durationMinute$1],
2056
+ [minute, 30, 30 * durationMinute$1],
2057
+ [hour, 1, durationHour$1],
2058
+ [hour, 3, 3 * durationHour$1],
2059
+ [hour, 6, 6 * durationHour$1],
2060
+ [hour, 12, 12 * durationHour$1],
2061
+ [day, 1, durationDay$1],
2062
+ [day, 2, 2 * durationDay$1],
2055
2063
  [week2, 1, durationWeek$1],
2056
- [month2, 1, durationMonth$1],
2057
- [month2, 3, 3 * durationMonth$1],
2058
- [year2, 1, durationYear$1]
2064
+ [month, 1, durationMonth$1],
2065
+ [month, 3, 3 * durationMonth$1],
2066
+ [year, 1, durationYear$1]
2059
2067
  ];
2060
2068
  function ticks2(start, stop3, count2) {
2061
2069
  const reverse2 = stop3 < start;
@@ -2067,15 +2075,15 @@ function ticker(year2, month2, week2, day2, hour2, minute2) {
2067
2075
  function tickInterval(start, stop3, count2) {
2068
2076
  const target2 = Math.abs(stop3 - start) / count2;
2069
2077
  const i = bisector$1(([, , step2]) => step2).right(tickIntervals, target2);
2070
- if (i === tickIntervals.length) return year2.every(tickStep(start / durationYear$1, stop3 / durationYear$1, count2));
2078
+ if (i === tickIntervals.length) return year.every(tickStep(start / durationYear$1, stop3 / durationYear$1, count2));
2071
2079
  if (i === 0) return millisecond.every(Math.max(tickStep(start, stop3, count2), 1));
2072
2080
  const [t4, step] = tickIntervals[target2 / tickIntervals[i - 1][2] < tickIntervals[i][2] / target2 ? i - 1 : i];
2073
2081
  return t4.every(step);
2074
2082
  }
2075
2083
  return [ticks2, tickInterval];
2076
2084
  }
2077
- const [utcTicks, utcTickInterval] = ticker(utcYear, utcMonth, utcSunday, utcDay, utcHour, utcMinute);
2078
- const [timeTicks, timeTickInterval] = ticker(year, month, sunday, day, hour, minute);
2085
+ const [utcTicks, utcTickInterval] = ticker(utcYear, utcMonth, utcSunday, unixDay, utcHour, utcMinute);
2086
+ const [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute);
2079
2087
  const YEAR = "year";
2080
2088
  const QUARTER = "quarter";
2081
2089
  const MONTH = "month";
@@ -2152,10 +2160,10 @@ function week(d) {
2152
2160
  return localWeekNum(new Date(d));
2153
2161
  }
2154
2162
  function localDayOfYear(d) {
2155
- return day.count(localYear(d.getFullYear()) - 1, d);
2163
+ return timeDay.count(localYear(d.getFullYear()) - 1, d);
2156
2164
  }
2157
2165
  function localWeekNum(d) {
2158
- return sunday.count(localYear(d.getFullYear()) - 1, d);
2166
+ return timeSunday.count(localYear(d.getFullYear()) - 1, d);
2159
2167
  }
2160
2168
  function localFirst(y2) {
2161
2169
  return localYear(y2).getDay();
@@ -2202,16 +2210,16 @@ function floor(units, step, get2, inv, newDate2) {
2202
2210
  const t4 = /* @__PURE__ */ new Date(), u2 = toSet(units), y2 = u2[YEAR] ? _(YEAR) : constant$4(2012), m2 = u2[MONTH] ? _(MONTH) : u2[QUARTER] ? _(QUARTER) : zero$4, d = u2[WEEK] && u2[DAY] ? _(DAY, 1, WEEK + DAY) : u2[WEEK] ? _(WEEK, 1) : u2[DAY] ? _(DAY, 1) : u2[DATE] ? _(DATE, 1) : u2[DAYOFYEAR] ? _(DAYOFYEAR, 1) : one$2, H = u2[HOURS] ? _(HOURS) : zero$4, M2 = u2[MINUTES] ? _(MINUTES) : zero$4, S = u2[SECONDS] ? _(SECONDS) : zero$4, L = u2[MILLISECONDS] ? _(MILLISECONDS) : zero$4;
2203
2211
  return function(v) {
2204
2212
  t4.setTime(+v);
2205
- const year2 = y2(t4);
2206
- return newDate2(year2, m2(t4), d(t4, year2), H(t4), M2(t4), S(t4), L(t4));
2213
+ const year = y2(t4);
2214
+ return newDate2(year, m2(t4), d(t4, year), H(t4), M2(t4), S(t4), L(t4));
2207
2215
  };
2208
2216
  }
2209
2217
  function getUnit(f, inv, step, phase) {
2210
2218
  const u2 = step <= 1 ? f : phase ? (d, y2) => phase + step * Math.floor((f(d, y2) - phase) / step) : (d, y2) => step * Math.floor(f(d, y2) / step);
2211
2219
  return inv ? (d, y2) => inv(u2(d, y2), y2) : u2;
2212
2220
  }
2213
- function weekday(week2, day2, firstDay) {
2214
- return day2 + week2 * 7 - (firstDay + 6) % 7;
2221
+ function weekday(week2, day, firstDay) {
2222
+ return day + week2 * 7 - (firstDay + 6) % 7;
2215
2223
  }
2216
2224
  const localGet = {
2217
2225
  [YEAR]: (d) => d.getFullYear(),
@@ -2256,15 +2264,15 @@ function utcFloor(units, step) {
2256
2264
  return floor(units, step || 1, utcGet, utcInv, utcDate$1);
2257
2265
  }
2258
2266
  const timeIntervals = {
2259
- [YEAR]: year,
2260
- [QUARTER]: month.every(3),
2261
- [MONTH]: month,
2262
- [WEEK]: sunday,
2263
- [DATE]: day,
2264
- [DAY]: day,
2265
- [DAYOFYEAR]: day,
2266
- [HOURS]: hour,
2267
- [MINUTES]: minute,
2267
+ [YEAR]: timeYear,
2268
+ [QUARTER]: timeMonth.every(3),
2269
+ [MONTH]: timeMonth,
2270
+ [WEEK]: timeSunday,
2271
+ [DATE]: timeDay,
2272
+ [DAY]: timeDay,
2273
+ [DAYOFYEAR]: timeDay,
2274
+ [HOURS]: timeHour,
2275
+ [MINUTES]: timeMinute,
2268
2276
  [SECONDS]: second,
2269
2277
  [MILLISECONDS]: millisecond
2270
2278
  };
@@ -2476,7 +2484,7 @@ function formatLocale(locale2) {
2476
2484
  }
2477
2485
  function newParse(specifier, Z) {
2478
2486
  return function(string2) {
2479
- var d = newDate(1900, void 0, 1), i = parseSpecifier(d, specifier, string2 += "", 0), week2, day$1;
2487
+ var d = newDate(1900, void 0, 1), i = parseSpecifier(d, specifier, string2 += "", 0), week2, day;
2480
2488
  if (i != string2.length) return null;
2481
2489
  if ("Q" in d) return new Date(d.Q);
2482
2490
  if ("s" in d) return new Date(d.s * 1e3 + ("L" in d ? d.L : 0));
@@ -2487,25 +2495,25 @@ function formatLocale(locale2) {
2487
2495
  if (d.V < 1 || d.V > 53) return null;
2488
2496
  if (!("w" in d)) d.w = 1;
2489
2497
  if ("Z" in d) {
2490
- week2 = utcDate(newDate(d.y, 0, 1)), day$1 = week2.getUTCDay();
2491
- week2 = day$1 > 4 || day$1 === 0 ? utcMonday.ceil(week2) : utcMonday(week2);
2498
+ week2 = utcDate(newDate(d.y, 0, 1)), day = week2.getUTCDay();
2499
+ week2 = day > 4 || day === 0 ? utcMonday.ceil(week2) : utcMonday(week2);
2492
2500
  week2 = utcDay.offset(week2, (d.V - 1) * 7);
2493
2501
  d.y = week2.getUTCFullYear();
2494
2502
  d.m = week2.getUTCMonth();
2495
2503
  d.d = week2.getUTCDate() + (d.w + 6) % 7;
2496
2504
  } else {
2497
- week2 = localDate(newDate(d.y, 0, 1)), day$1 = week2.getDay();
2498
- week2 = day$1 > 4 || day$1 === 0 ? monday.ceil(week2) : monday(week2);
2499
- week2 = day.offset(week2, (d.V - 1) * 7);
2505
+ week2 = localDate(newDate(d.y, 0, 1)), day = week2.getDay();
2506
+ week2 = day > 4 || day === 0 ? timeMonday.ceil(week2) : timeMonday(week2);
2507
+ week2 = timeDay.offset(week2, (d.V - 1) * 7);
2500
2508
  d.y = week2.getFullYear();
2501
2509
  d.m = week2.getMonth();
2502
2510
  d.d = week2.getDate() + (d.w + 6) % 7;
2503
2511
  }
2504
2512
  } else if ("W" in d || "U" in d) {
2505
2513
  if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
2506
- day$1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
2514
+ day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
2507
2515
  d.m = 0;
2508
- d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day$1 + 5) % 7 : d.w + d.U * 7 - (day$1 + 6) % 7;
2516
+ d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
2509
2517
  }
2510
2518
  if ("Z" in d) {
2511
2519
  d.H += d.Z / 100 | 0;
@@ -2730,7 +2738,7 @@ function formatHour12(d, p) {
2730
2738
  return pad(d.getHours() % 12 || 12, p, 2);
2731
2739
  }
2732
2740
  function formatDayOfYear(d, p) {
2733
- return pad(1 + day.count(year(d), d), p, 3);
2741
+ return pad(1 + timeDay.count(timeYear(d), d), p, 3);
2734
2742
  }
2735
2743
  function formatMilliseconds(d, p) {
2736
2744
  return pad(d.getMilliseconds(), p, 3);
@@ -2748,25 +2756,25 @@ function formatSeconds(d, p) {
2748
2756
  return pad(d.getSeconds(), p, 2);
2749
2757
  }
2750
2758
  function formatWeekdayNumberMonday(d) {
2751
- var day2 = d.getDay();
2752
- return day2 === 0 ? 7 : day2;
2759
+ var day = d.getDay();
2760
+ return day === 0 ? 7 : day;
2753
2761
  }
2754
2762
  function formatWeekNumberSunday(d, p) {
2755
- return pad(sunday.count(year(d) - 1, d), p, 2);
2763
+ return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);
2756
2764
  }
2757
2765
  function dISO(d) {
2758
- var day2 = d.getDay();
2759
- return day2 >= 4 || day2 === 0 ? thursday(d) : thursday.ceil(d);
2766
+ var day = d.getDay();
2767
+ return day >= 4 || day === 0 ? timeThursday(d) : timeThursday.ceil(d);
2760
2768
  }
2761
2769
  function formatWeekNumberISO(d, p) {
2762
2770
  d = dISO(d);
2763
- return pad(thursday.count(year(d), d) + (year(d).getDay() === 4), p, 2);
2771
+ return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
2764
2772
  }
2765
2773
  function formatWeekdayNumberSunday(d) {
2766
2774
  return d.getDay();
2767
2775
  }
2768
2776
  function formatWeekNumberMonday(d, p) {
2769
- return pad(monday.count(year(d) - 1, d), p, 2);
2777
+ return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);
2770
2778
  }
2771
2779
  function formatYear(d, p) {
2772
2780
  return pad(d.getFullYear() % 100, p, 2);
@@ -2779,8 +2787,8 @@ function formatFullYear(d, p) {
2779
2787
  return pad(d.getFullYear() % 1e4, p, 4);
2780
2788
  }
2781
2789
  function formatFullYearISO(d, p) {
2782
- var day2 = d.getDay();
2783
- d = day2 >= 4 || day2 === 0 ? thursday(d) : thursday.ceil(d);
2790
+ var day = d.getDay();
2791
+ d = day >= 4 || day === 0 ? timeThursday(d) : timeThursday.ceil(d);
2784
2792
  return pad(d.getFullYear() % 1e4, p, 4);
2785
2793
  }
2786
2794
  function formatZone(d) {
@@ -2822,8 +2830,8 @@ function formatUTCWeekNumberSunday(d, p) {
2822
2830
  return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
2823
2831
  }
2824
2832
  function UTCdISO(d) {
2825
- var day2 = d.getUTCDay();
2826
- return day2 >= 4 || day2 === 0 ? utcThursday(d) : utcThursday.ceil(d);
2833
+ var day = d.getUTCDay();
2834
+ return day >= 4 || day === 0 ? utcThursday(d) : utcThursday.ceil(d);
2827
2835
  }
2828
2836
  function formatUTCWeekNumberISO(d, p) {
2829
2837
  d = UTCdISO(d);
@@ -2846,8 +2854,8 @@ function formatUTCFullYear(d, p) {
2846
2854
  return pad(d.getUTCFullYear() % 1e4, p, 4);
2847
2855
  }
2848
2856
  function formatUTCFullYearISO(d, p) {
2849
- var day2 = d.getUTCDay();
2850
- d = day2 >= 4 || day2 === 0 ? utcThursday(d) : utcThursday.ceil(d);
2857
+ var day = d.getUTCDay();
2858
+ d = day >= 4 || day === 0 ? utcThursday(d) : utcThursday.ceil(d);
2851
2859
  return pad(d.getUTCFullYear() % 1e4, p, 4);
2852
2860
  }
2853
2861
  function formatUTCZone() {
@@ -2991,8 +2999,8 @@ function timeMultiFormat(format2, interval2, spec) {
2991
2999
  if (!isObject$1(spec)) {
2992
3000
  error("Invalid time multi-format specifier: ".concat(spec));
2993
3001
  }
2994
- const second2 = interval2(SECONDS), minute2 = interval2(MINUTES), hour2 = interval2(HOURS), day2 = interval2(DATE), week2 = interval2(WEEK), month2 = interval2(MONTH), quarter2 = interval2(QUARTER), year2 = interval2(YEAR), L = format2(spec[MILLISECONDS] || ".%L"), S = format2(spec[SECONDS] || ":%S"), M2 = format2(spec[MINUTES] || "%I:%M"), H = format2(spec[HOURS] || "%I %p"), d = format2(spec[DATE] || spec[DAY] || "%a %d"), w2 = format2(spec[WEEK] || "%b %d"), m2 = format2(spec[MONTH] || "%B"), q = format2(spec[QUARTER] || "%B"), y2 = format2(spec[YEAR] || "%Y");
2995
- return (date2) => (second2(date2) < date2 ? L : minute2(date2) < date2 ? S : hour2(date2) < date2 ? M2 : day2(date2) < date2 ? H : month2(date2) < date2 ? week2(date2) < date2 ? d : w2 : year2(date2) < date2 ? quarter2(date2) < date2 ? m2 : q : y2)(date2);
3002
+ const second2 = interval2(SECONDS), minute = interval2(MINUTES), hour = interval2(HOURS), day = interval2(DATE), week2 = interval2(WEEK), month = interval2(MONTH), quarter2 = interval2(QUARTER), year = interval2(YEAR), L = format2(spec[MILLISECONDS] || ".%L"), S = format2(spec[SECONDS] || ":%S"), M2 = format2(spec[MINUTES] || "%I:%M"), H = format2(spec[HOURS] || "%I %p"), d = format2(spec[DATE] || spec[DAY] || "%a %d"), w2 = format2(spec[WEEK] || "%b %d"), m2 = format2(spec[MONTH] || "%B"), q = format2(spec[QUARTER] || "%B"), y2 = format2(spec[YEAR] || "%Y");
3003
+ return (date2) => (second2(date2) < date2 ? L : minute(date2) < date2 ? S : hour(date2) < date2 ? M2 : day(date2) < date2 ? H : month(date2) < date2 ? week2(date2) < date2 ? d : w2 : year(date2) < date2 ? quarter2(date2) < date2 ? m2 : q : y2)(date2);
2996
3004
  }
2997
3005
  function timeLocale(locale2) {
2998
3006
  const timeFormat2 = memoize$2(locale2.format), utcFormat2 = memoize$2(locale2.utcFormat);
@@ -11197,11 +11205,11 @@ function date(t4) {
11197
11205
  function number$4(t4) {
11198
11206
  return t4 instanceof Date ? +t4 : +/* @__PURE__ */ new Date(+t4);
11199
11207
  }
11200
- function calendar(ticks2, tickInterval, year2, month2, week2, day2, hour2, minute2, second2, format2) {
11208
+ function calendar(ticks2, tickInterval, year, month, week2, day, hour, minute, second2, format2) {
11201
11209
  var scale2 = continuous$1(), invert2 = scale2.invert, domain2 = scale2.domain;
11202
11210
  var formatMillisecond = format2(".%L"), formatSecond = format2(":%S"), formatMinute = format2("%I:%M"), formatHour = format2("%I %p"), formatDay = format2("%a %d"), formatWeek = format2("%b %d"), formatMonth = format2("%B"), formatYear2 = format2("%Y");
11203
11211
  function tickFormat2(date2) {
11204
- return (second2(date2) < date2 ? formatMillisecond : minute2(date2) < date2 ? formatSecond : hour2(date2) < date2 ? formatMinute : day2(date2) < date2 ? formatHour : month2(date2) < date2 ? week2(date2) < date2 ? formatDay : formatWeek : year2(date2) < date2 ? formatMonth : formatYear2)(date2);
11212
+ return (second2(date2) < date2 ? formatMillisecond : minute(date2) < date2 ? formatSecond : hour(date2) < date2 ? formatMinute : day(date2) < date2 ? formatHour : month(date2) < date2 ? week2(date2) < date2 ? formatDay : formatWeek : year(date2) < date2 ? formatMonth : formatYear2)(date2);
11205
11213
  }
11206
11214
  scale2.invert = function(y2) {
11207
11215
  return new Date(invert2(y2));
@@ -11222,12 +11230,12 @@ function calendar(ticks2, tickInterval, year2, month2, week2, day2, hour2, minut
11222
11230
  return interval2 ? domain2(nice$1(d, interval2)) : scale2;
11223
11231
  };
11224
11232
  scale2.copy = function() {
11225
- return copy$3(scale2, calendar(ticks2, tickInterval, year2, month2, week2, day2, hour2, minute2, second2, format2));
11233
+ return copy$3(scale2, calendar(ticks2, tickInterval, year, month, week2, day, hour, minute, second2, format2));
11226
11234
  };
11227
11235
  return scale2;
11228
11236
  }
11229
11237
  function time$1() {
11230
- return initRange.apply(calendar(timeTicks, timeTickInterval, year, month, sunday, day, hour, minute, second, timeFormat$2).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
11238
+ return initRange.apply(calendar(timeTicks, timeTickInterval, timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute, second, timeFormat$2).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
11231
11239
  }
11232
11240
  function utcTime() {
11233
11241
  return initRange.apply(calendar(utcTicks, utcTickInterval, utcYear, utcMonth, utcSunday, utcDay, utcHour, utcMinute, second, utcFormat$1).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
@@ -17766,7 +17774,7 @@ var boundsStream$1 = {
17766
17774
  boundsStream$1.lineEnd = boundsLineEnd;
17767
17775
  if (areaRingSum$1 < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);
17768
17776
  else if (deltaSum > epsilon$3) phi1 = 90;
17769
- else if (deltaSum < -1e-6) phi0 = -90;
17777
+ else if (deltaSum < -epsilon$3) phi0 = -90;
17770
17778
  range$5[0] = lambda0, range$5[1] = lambda1;
17771
17779
  },
17772
17780
  sphere: function() {
@@ -18180,7 +18188,7 @@ function polygonContains(polygon, point2) {
18180
18188
  }
18181
18189
  }
18182
18190
  }
18183
- return (angle2 < -1e-6 || angle2 < epsilon$3 && sum2 < -1e-12) ^ winding & 1;
18191
+ return (angle2 < -epsilon$3 || angle2 < epsilon$3 && sum2 < -epsilon2) ^ winding & 1;
18184
18192
  }
18185
18193
  function clip$1(pointVisible, clipLine2, interpolate2, start) {
18186
18194
  return function(sink) {
@@ -18494,7 +18502,7 @@ function clipLine(a2, b2, x02, y02, x12, y12) {
18494
18502
  if (t12 < 1) b2[0] = ax + t12 * dx, b2[1] = ay + t12 * dy;
18495
18503
  return true;
18496
18504
  }
18497
- var clipMax = 1e9, clipMin = -1e9;
18505
+ var clipMax = 1e9, clipMin = -clipMax;
18498
18506
  function clipRectangle(x02, y02, x12, y12) {
18499
18507
  function visible(x2, y2) {
18500
18508
  return x02 <= x2 && x2 <= x12 && y02 <= y2 && y2 <= y12;
@@ -24277,7 +24285,6 @@ function orient2d(ax, ay, bx, by, cx, cy) {
24277
24285
  const detleft = (ay - cy) * (bx - cx);
24278
24286
  const detright = (ax - cx) * (by - cy);
24279
24287
  const det = detleft - detright;
24280
- if (detleft === 0 || detright === 0 || detleft > 0 !== detright > 0) return det;
24281
24288
  const detsum = Math.abs(detleft + detright);
24282
24289
  if (Math.abs(det) >= ccwerrboundA * detsum) return det;
24283
24290
  return -orient2dadapt(ax, ay, bx, by, cx, cy, detsum);
@@ -27778,24 +27785,24 @@ const utcFormat = wrap$1("utcFormat");
27778
27785
  const timeParse = wrap$1("timeParse");
27779
27786
  const utcParse = wrap$1("utcParse");
27780
27787
  const dateObj = new Date(2e3, 0, 1);
27781
- function time(month2, day2, specifier) {
27782
- if (!Number.isInteger(month2) || !Number.isInteger(day2)) return "";
27788
+ function time(month, day, specifier) {
27789
+ if (!Number.isInteger(month) || !Number.isInteger(day)) return "";
27783
27790
  dateObj.setYear(2e3);
27784
- dateObj.setMonth(month2);
27785
- dateObj.setDate(day2);
27791
+ dateObj.setMonth(month);
27792
+ dateObj.setDate(day);
27786
27793
  return timeFormat$1.call(this, dateObj, specifier);
27787
27794
  }
27788
- function monthFormat(month2) {
27789
- return time.call(this, month2, 1, "%B");
27795
+ function monthFormat(month) {
27796
+ return time.call(this, month, 1, "%B");
27790
27797
  }
27791
- function monthAbbrevFormat(month2) {
27792
- return time.call(this, month2, 1, "%b");
27798
+ function monthAbbrevFormat(month) {
27799
+ return time.call(this, month, 1, "%b");
27793
27800
  }
27794
- function dayFormat(day2) {
27795
- return time.call(this, 0, 2 + day2, "%A");
27801
+ function dayFormat(day) {
27802
+ return time.call(this, 0, 2 + day, "%A");
27796
27803
  }
27797
- function dayAbbrevFormat(day2) {
27798
- return time.call(this, 0, 2 + day2, "%a");
27804
+ function dayAbbrevFormat(day) {
27805
+ return time.call(this, 0, 2 + day, "%a");
27799
27806
  }
27800
27807
  const DataPrefix = ":";
27801
27808
  const IndexPrefix = "@";
@@ -33337,931 +33344,6 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
33337
33344
  zoomPow,
33338
33345
  zoomSymlog
33339
33346
  }, Symbol.toStringTag, { value: "Module" }));
33340
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
33341
- function getDefaultExportFromCjs(x2) {
33342
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
33343
- }
33344
- function getAugmentedNamespace(n) {
33345
- if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
33346
- var f = n.default;
33347
- if (typeof f == "function") {
33348
- var a2 = function a3() {
33349
- if (this instanceof a3) {
33350
- return Reflect.construct(f, arguments, this.constructor);
33351
- }
33352
- return f.apply(this, arguments);
33353
- };
33354
- a2.prototype = f.prototype;
33355
- } else a2 = {};
33356
- Object.defineProperty(a2, "__esModule", { value: true });
33357
- Object.keys(n).forEach(function(k) {
33358
- var d = Object.getOwnPropertyDescriptor(n, k);
33359
- Object.defineProperty(a2, k, d.get ? d : {
33360
- enumerable: true,
33361
- get: function() {
33362
- return n[k];
33363
- }
33364
- });
33365
- });
33366
- return a2;
33367
- }
33368
- var jsxRuntime = { exports: {} };
33369
- var reactJsxRuntime_development = {};
33370
- var hasRequiredReactJsxRuntime_development;
33371
- function requireReactJsxRuntime_development() {
33372
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
33373
- hasRequiredReactJsxRuntime_development = 1;
33374
- /**
33375
- * @license React
33376
- * react-jsx-runtime.development.js
33377
- *
33378
- * Copyright (c) Facebook, Inc. and its affiliates.
33379
- *
33380
- * This source code is licensed under the MIT license found in the
33381
- * LICENSE file in the root directory of this source tree.
33382
- */
33383
- {
33384
- (function() {
33385
- var React2 = React__default;
33386
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
33387
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
33388
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
33389
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
33390
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
33391
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
33392
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
33393
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
33394
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
33395
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
33396
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
33397
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
33398
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
33399
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
33400
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
33401
- function getIteratorFn(maybeIterable) {
33402
- if (maybeIterable === null || typeof maybeIterable !== "object") {
33403
- return null;
33404
- }
33405
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
33406
- if (typeof maybeIterator === "function") {
33407
- return maybeIterator;
33408
- }
33409
- return null;
33410
- }
33411
- var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
33412
- function error2(format2) {
33413
- {
33414
- {
33415
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
33416
- args[_key2 - 1] = arguments[_key2];
33417
- }
33418
- printWarning("error", format2, args);
33419
- }
33420
- }
33421
- }
33422
- function printWarning(level, format2, args) {
33423
- {
33424
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
33425
- var stack2 = ReactDebugCurrentFrame2.getStackAddendum();
33426
- if (stack2 !== "") {
33427
- format2 += "%s";
33428
- args = args.concat([stack2]);
33429
- }
33430
- var argsWithFormat = args.map(function(item) {
33431
- return String(item);
33432
- });
33433
- argsWithFormat.unshift("Warning: " + format2);
33434
- Function.prototype.apply.call(console[level], console, argsWithFormat);
33435
- }
33436
- }
33437
- var enableScopeAPI = false;
33438
- var enableCacheElement = false;
33439
- var enableTransitionTracing = false;
33440
- var enableLegacyHidden = false;
33441
- var enableDebugTracing = false;
33442
- var REACT_MODULE_REFERENCE;
33443
- {
33444
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
33445
- }
33446
- function isValidElementType(type2) {
33447
- if (typeof type2 === "string" || typeof type2 === "function") {
33448
- return true;
33449
- }
33450
- if (type2 === REACT_FRAGMENT_TYPE || type2 === REACT_PROFILER_TYPE || enableDebugTracing || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type2 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
33451
- return true;
33452
- }
33453
- if (typeof type2 === "object" && type2 !== null) {
33454
- if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
33455
- // types supported by any Flight configuration anywhere since
33456
- // we don't know which Flight build this will end up being used
33457
- // with.
33458
- type2.$$typeof === REACT_MODULE_REFERENCE || type2.getModuleId !== void 0) {
33459
- return true;
33460
- }
33461
- }
33462
- return false;
33463
- }
33464
- function getWrappedName2(outerType, innerType, wrapperName) {
33465
- var displayName = outerType.displayName;
33466
- if (displayName) {
33467
- return displayName;
33468
- }
33469
- var functionName = innerType.displayName || innerType.name || "";
33470
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
33471
- }
33472
- function getContextName(type2) {
33473
- return type2.displayName || "Context";
33474
- }
33475
- function getComponentNameFromType(type2) {
33476
- if (type2 == null) {
33477
- return null;
33478
- }
33479
- {
33480
- if (typeof type2.tag === "number") {
33481
- error2("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
33482
- }
33483
- }
33484
- if (typeof type2 === "function") {
33485
- return type2.displayName || type2.name || null;
33486
- }
33487
- if (typeof type2 === "string") {
33488
- return type2;
33489
- }
33490
- switch (type2) {
33491
- case REACT_FRAGMENT_TYPE:
33492
- return "Fragment";
33493
- case REACT_PORTAL_TYPE:
33494
- return "Portal";
33495
- case REACT_PROFILER_TYPE:
33496
- return "Profiler";
33497
- case REACT_STRICT_MODE_TYPE:
33498
- return "StrictMode";
33499
- case REACT_SUSPENSE_TYPE:
33500
- return "Suspense";
33501
- case REACT_SUSPENSE_LIST_TYPE:
33502
- return "SuspenseList";
33503
- }
33504
- if (typeof type2 === "object") {
33505
- switch (type2.$$typeof) {
33506
- case REACT_CONTEXT_TYPE:
33507
- var context2 = type2;
33508
- return getContextName(context2) + ".Consumer";
33509
- case REACT_PROVIDER_TYPE:
33510
- var provider = type2;
33511
- return getContextName(provider._context) + ".Provider";
33512
- case REACT_FORWARD_REF_TYPE:
33513
- return getWrappedName2(type2, type2.render, "ForwardRef");
33514
- case REACT_MEMO_TYPE:
33515
- var outerName = type2.displayName || null;
33516
- if (outerName !== null) {
33517
- return outerName;
33518
- }
33519
- return getComponentNameFromType(type2.type) || "Memo";
33520
- case REACT_LAZY_TYPE: {
33521
- var lazyComponent = type2;
33522
- var payload = lazyComponent._payload;
33523
- var init2 = lazyComponent._init;
33524
- try {
33525
- return getComponentNameFromType(init2(payload));
33526
- } catch (x2) {
33527
- return null;
33528
- }
33529
- }
33530
- }
33531
- }
33532
- return null;
33533
- }
33534
- var assign2 = Object.assign;
33535
- var disabledDepth = 0;
33536
- var prevLog;
33537
- var prevInfo;
33538
- var prevWarn;
33539
- var prevError;
33540
- var prevGroup;
33541
- var prevGroupCollapsed;
33542
- var prevGroupEnd;
33543
- function disabledLog() {
33544
- }
33545
- disabledLog.__reactDisabledLog = true;
33546
- function disableLogs() {
33547
- {
33548
- if (disabledDepth === 0) {
33549
- prevLog = console.log;
33550
- prevInfo = console.info;
33551
- prevWarn = console.warn;
33552
- prevError = console.error;
33553
- prevGroup = console.group;
33554
- prevGroupCollapsed = console.groupCollapsed;
33555
- prevGroupEnd = console.groupEnd;
33556
- var props = {
33557
- configurable: true,
33558
- enumerable: true,
33559
- value: disabledLog,
33560
- writable: true
33561
- };
33562
- Object.defineProperties(console, {
33563
- info: props,
33564
- log: props,
33565
- warn: props,
33566
- error: props,
33567
- group: props,
33568
- groupCollapsed: props,
33569
- groupEnd: props
33570
- });
33571
- }
33572
- disabledDepth++;
33573
- }
33574
- }
33575
- function reenableLogs() {
33576
- {
33577
- disabledDepth--;
33578
- if (disabledDepth === 0) {
33579
- var props = {
33580
- configurable: true,
33581
- enumerable: true,
33582
- writable: true
33583
- };
33584
- Object.defineProperties(console, {
33585
- log: assign2({}, props, {
33586
- value: prevLog
33587
- }),
33588
- info: assign2({}, props, {
33589
- value: prevInfo
33590
- }),
33591
- warn: assign2({}, props, {
33592
- value: prevWarn
33593
- }),
33594
- error: assign2({}, props, {
33595
- value: prevError
33596
- }),
33597
- group: assign2({}, props, {
33598
- value: prevGroup
33599
- }),
33600
- groupCollapsed: assign2({}, props, {
33601
- value: prevGroupCollapsed
33602
- }),
33603
- groupEnd: assign2({}, props, {
33604
- value: prevGroupEnd
33605
- })
33606
- });
33607
- }
33608
- if (disabledDepth < 0) {
33609
- error2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
33610
- }
33611
- }
33612
- }
33613
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
33614
- var prefix2;
33615
- function describeBuiltInComponentFrame(name, source2, ownerFn) {
33616
- {
33617
- if (prefix2 === void 0) {
33618
- try {
33619
- throw Error();
33620
- } catch (x2) {
33621
- var match2 = x2.stack.trim().match(/\n( *(at )?)/);
33622
- prefix2 = match2 && match2[1] || "";
33623
- }
33624
- }
33625
- return "\n" + prefix2 + name;
33626
- }
33627
- }
33628
- var reentry = false;
33629
- var componentFrameCache;
33630
- {
33631
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
33632
- componentFrameCache = new PossiblyWeakMap();
33633
- }
33634
- function describeNativeComponentFrame(fn, construct) {
33635
- if (!fn || reentry) {
33636
- return "";
33637
- }
33638
- {
33639
- var frame2 = componentFrameCache.get(fn);
33640
- if (frame2 !== void 0) {
33641
- return frame2;
33642
- }
33643
- }
33644
- var control;
33645
- reentry = true;
33646
- var previousPrepareStackTrace = Error.prepareStackTrace;
33647
- Error.prepareStackTrace = void 0;
33648
- var previousDispatcher;
33649
- {
33650
- previousDispatcher = ReactCurrentDispatcher.current;
33651
- ReactCurrentDispatcher.current = null;
33652
- disableLogs();
33653
- }
33654
- try {
33655
- if (construct) {
33656
- var Fake = function() {
33657
- throw Error();
33658
- };
33659
- Object.defineProperty(Fake.prototype, "props", {
33660
- set: function() {
33661
- throw Error();
33662
- }
33663
- });
33664
- if (typeof Reflect === "object" && Reflect.construct) {
33665
- try {
33666
- Reflect.construct(Fake, []);
33667
- } catch (x2) {
33668
- control = x2;
33669
- }
33670
- Reflect.construct(fn, [], Fake);
33671
- } else {
33672
- try {
33673
- Fake.call();
33674
- } catch (x2) {
33675
- control = x2;
33676
- }
33677
- fn.call(Fake.prototype);
33678
- }
33679
- } else {
33680
- try {
33681
- throw Error();
33682
- } catch (x2) {
33683
- control = x2;
33684
- }
33685
- fn();
33686
- }
33687
- } catch (sample) {
33688
- if (sample && control && typeof sample.stack === "string") {
33689
- var sampleLines = sample.stack.split("\n");
33690
- var controlLines = control.stack.split("\n");
33691
- var s = sampleLines.length - 1;
33692
- var c2 = controlLines.length - 1;
33693
- while (s >= 1 && c2 >= 0 && sampleLines[s] !== controlLines[c2]) {
33694
- c2--;
33695
- }
33696
- for (; s >= 1 && c2 >= 0; s--, c2--) {
33697
- if (sampleLines[s] !== controlLines[c2]) {
33698
- if (s !== 1 || c2 !== 1) {
33699
- do {
33700
- s--;
33701
- c2--;
33702
- if (c2 < 0 || sampleLines[s] !== controlLines[c2]) {
33703
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
33704
- if (fn.displayName && _frame.includes("<anonymous>")) {
33705
- _frame = _frame.replace("<anonymous>", fn.displayName);
33706
- }
33707
- {
33708
- if (typeof fn === "function") {
33709
- componentFrameCache.set(fn, _frame);
33710
- }
33711
- }
33712
- return _frame;
33713
- }
33714
- } while (s >= 1 && c2 >= 0);
33715
- }
33716
- break;
33717
- }
33718
- }
33719
- }
33720
- } finally {
33721
- reentry = false;
33722
- {
33723
- ReactCurrentDispatcher.current = previousDispatcher;
33724
- reenableLogs();
33725
- }
33726
- Error.prepareStackTrace = previousPrepareStackTrace;
33727
- }
33728
- var name = fn ? fn.displayName || fn.name : "";
33729
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
33730
- {
33731
- if (typeof fn === "function") {
33732
- componentFrameCache.set(fn, syntheticFrame);
33733
- }
33734
- }
33735
- return syntheticFrame;
33736
- }
33737
- function describeFunctionComponentFrame(fn, source2, ownerFn) {
33738
- {
33739
- return describeNativeComponentFrame(fn, false);
33740
- }
33741
- }
33742
- function shouldConstruct(Component) {
33743
- var prototype2 = Component.prototype;
33744
- return !!(prototype2 && prototype2.isReactComponent);
33745
- }
33746
- function describeUnknownElementTypeFrameInDEV(type2, source2, ownerFn) {
33747
- if (type2 == null) {
33748
- return "";
33749
- }
33750
- if (typeof type2 === "function") {
33751
- {
33752
- return describeNativeComponentFrame(type2, shouldConstruct(type2));
33753
- }
33754
- }
33755
- if (typeof type2 === "string") {
33756
- return describeBuiltInComponentFrame(type2);
33757
- }
33758
- switch (type2) {
33759
- case REACT_SUSPENSE_TYPE:
33760
- return describeBuiltInComponentFrame("Suspense");
33761
- case REACT_SUSPENSE_LIST_TYPE:
33762
- return describeBuiltInComponentFrame("SuspenseList");
33763
- }
33764
- if (typeof type2 === "object") {
33765
- switch (type2.$$typeof) {
33766
- case REACT_FORWARD_REF_TYPE:
33767
- return describeFunctionComponentFrame(type2.render);
33768
- case REACT_MEMO_TYPE:
33769
- return describeUnknownElementTypeFrameInDEV(type2.type, source2, ownerFn);
33770
- case REACT_LAZY_TYPE: {
33771
- var lazyComponent = type2;
33772
- var payload = lazyComponent._payload;
33773
- var init2 = lazyComponent._init;
33774
- try {
33775
- return describeUnknownElementTypeFrameInDEV(init2(payload), source2, ownerFn);
33776
- } catch (x2) {
33777
- }
33778
- }
33779
- }
33780
- }
33781
- return "";
33782
- }
33783
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
33784
- var loggedTypeFailures = {};
33785
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
33786
- function setCurrentlyValidatingElement(element2) {
33787
- {
33788
- if (element2) {
33789
- var owner = element2._owner;
33790
- var stack2 = describeUnknownElementTypeFrameInDEV(element2.type, element2._source, owner ? owner.type : null);
33791
- ReactDebugCurrentFrame.setExtraStackFrame(stack2);
33792
- } else {
33793
- ReactDebugCurrentFrame.setExtraStackFrame(null);
33794
- }
33795
- }
33796
- }
33797
- function checkPropTypes(typeSpecs, values2, location, componentName, element2) {
33798
- {
33799
- var has2 = Function.call.bind(hasOwnProperty2);
33800
- for (var typeSpecName in typeSpecs) {
33801
- if (has2(typeSpecs, typeSpecName)) {
33802
- var error$1 = void 0;
33803
- try {
33804
- if (typeof typeSpecs[typeSpecName] !== "function") {
33805
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
33806
- err.name = "Invariant Violation";
33807
- throw err;
33808
- }
33809
- error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
33810
- } catch (ex) {
33811
- error$1 = ex;
33812
- }
33813
- if (error$1 && !(error$1 instanceof Error)) {
33814
- setCurrentlyValidatingElement(element2);
33815
- error2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
33816
- setCurrentlyValidatingElement(null);
33817
- }
33818
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
33819
- loggedTypeFailures[error$1.message] = true;
33820
- setCurrentlyValidatingElement(element2);
33821
- error2("Failed %s type: %s", location, error$1.message);
33822
- setCurrentlyValidatingElement(null);
33823
- }
33824
- }
33825
- }
33826
- }
33827
- }
33828
- var isArrayImpl = Array.isArray;
33829
- function isArray2(a2) {
33830
- return isArrayImpl(a2);
33831
- }
33832
- function typeName(value2) {
33833
- {
33834
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
33835
- var type2 = hasToStringTag && value2[Symbol.toStringTag] || value2.constructor.name || "Object";
33836
- return type2;
33837
- }
33838
- }
33839
- function willCoercionThrow(value2) {
33840
- {
33841
- try {
33842
- testStringCoercion(value2);
33843
- return false;
33844
- } catch (e3) {
33845
- return true;
33846
- }
33847
- }
33848
- }
33849
- function testStringCoercion(value2) {
33850
- return "" + value2;
33851
- }
33852
- function checkKeyStringCoercion(value2) {
33853
- {
33854
- if (willCoercionThrow(value2)) {
33855
- error2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value2));
33856
- return testStringCoercion(value2);
33857
- }
33858
- }
33859
- }
33860
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
33861
- var RESERVED_PROPS = {
33862
- key: true,
33863
- ref: true,
33864
- __self: true,
33865
- __source: true
33866
- };
33867
- var specialPropKeyWarningShown;
33868
- var specialPropRefWarningShown;
33869
- function hasValidRef(config) {
33870
- {
33871
- if (hasOwnProperty2.call(config, "ref")) {
33872
- var getter2 = Object.getOwnPropertyDescriptor(config, "ref").get;
33873
- if (getter2 && getter2.isReactWarning) {
33874
- return false;
33875
- }
33876
- }
33877
- }
33878
- return config.ref !== void 0;
33879
- }
33880
- function hasValidKey(config) {
33881
- {
33882
- if (hasOwnProperty2.call(config, "key")) {
33883
- var getter2 = Object.getOwnPropertyDescriptor(config, "key").get;
33884
- if (getter2 && getter2.isReactWarning) {
33885
- return false;
33886
- }
33887
- }
33888
- }
33889
- return config.key !== void 0;
33890
- }
33891
- function warnIfStringRefCannotBeAutoConverted(config, self2) {
33892
- {
33893
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self2) ;
33894
- }
33895
- }
33896
- function defineKeyPropWarningGetter(props, displayName) {
33897
- {
33898
- var warnAboutAccessingKey = function() {
33899
- if (!specialPropKeyWarningShown) {
33900
- specialPropKeyWarningShown = true;
33901
- error2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
33902
- }
33903
- };
33904
- warnAboutAccessingKey.isReactWarning = true;
33905
- Object.defineProperty(props, "key", {
33906
- get: warnAboutAccessingKey,
33907
- configurable: true
33908
- });
33909
- }
33910
- }
33911
- function defineRefPropWarningGetter(props, displayName) {
33912
- {
33913
- var warnAboutAccessingRef = function() {
33914
- if (!specialPropRefWarningShown) {
33915
- specialPropRefWarningShown = true;
33916
- error2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
33917
- }
33918
- };
33919
- warnAboutAccessingRef.isReactWarning = true;
33920
- Object.defineProperty(props, "ref", {
33921
- get: warnAboutAccessingRef,
33922
- configurable: true
33923
- });
33924
- }
33925
- }
33926
- var ReactElement = function(type2, key2, ref2, self2, source2, owner, props) {
33927
- var element2 = {
33928
- // This tag allows us to uniquely identify this as a React Element
33929
- $$typeof: REACT_ELEMENT_TYPE,
33930
- // Built-in properties that belong on the element
33931
- type: type2,
33932
- key: key2,
33933
- ref: ref2,
33934
- props,
33935
- // Record the component responsible for creating this element.
33936
- _owner: owner
33937
- };
33938
- {
33939
- element2._store = {};
33940
- Object.defineProperty(element2._store, "validated", {
33941
- configurable: false,
33942
- enumerable: false,
33943
- writable: true,
33944
- value: false
33945
- });
33946
- Object.defineProperty(element2, "_self", {
33947
- configurable: false,
33948
- enumerable: false,
33949
- writable: false,
33950
- value: self2
33951
- });
33952
- Object.defineProperty(element2, "_source", {
33953
- configurable: false,
33954
- enumerable: false,
33955
- writable: false,
33956
- value: source2
33957
- });
33958
- if (Object.freeze) {
33959
- Object.freeze(element2.props);
33960
- Object.freeze(element2);
33961
- }
33962
- }
33963
- return element2;
33964
- };
33965
- function jsxDEV(type2, config, maybeKey, source2, self2) {
33966
- {
33967
- var propName;
33968
- var props = {};
33969
- var key2 = null;
33970
- var ref2 = null;
33971
- if (maybeKey !== void 0) {
33972
- {
33973
- checkKeyStringCoercion(maybeKey);
33974
- }
33975
- key2 = "" + maybeKey;
33976
- }
33977
- if (hasValidKey(config)) {
33978
- {
33979
- checkKeyStringCoercion(config.key);
33980
- }
33981
- key2 = "" + config.key;
33982
- }
33983
- if (hasValidRef(config)) {
33984
- ref2 = config.ref;
33985
- warnIfStringRefCannotBeAutoConverted(config, self2);
33986
- }
33987
- for (propName in config) {
33988
- if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
33989
- props[propName] = config[propName];
33990
- }
33991
- }
33992
- if (type2 && type2.defaultProps) {
33993
- var defaultProps = type2.defaultProps;
33994
- for (propName in defaultProps) {
33995
- if (props[propName] === void 0) {
33996
- props[propName] = defaultProps[propName];
33997
- }
33998
- }
33999
- }
34000
- if (key2 || ref2) {
34001
- var displayName = typeof type2 === "function" ? type2.displayName || type2.name || "Unknown" : type2;
34002
- if (key2) {
34003
- defineKeyPropWarningGetter(props, displayName);
34004
- }
34005
- if (ref2) {
34006
- defineRefPropWarningGetter(props, displayName);
34007
- }
34008
- }
34009
- return ReactElement(type2, key2, ref2, self2, source2, ReactCurrentOwner.current, props);
34010
- }
34011
- }
34012
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
34013
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
34014
- function setCurrentlyValidatingElement$1(element2) {
34015
- {
34016
- if (element2) {
34017
- var owner = element2._owner;
34018
- var stack2 = describeUnknownElementTypeFrameInDEV(element2.type, element2._source, owner ? owner.type : null);
34019
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack2);
34020
- } else {
34021
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
34022
- }
34023
- }
34024
- }
34025
- var propTypesMisspellWarningShown;
34026
- {
34027
- propTypesMisspellWarningShown = false;
34028
- }
34029
- function isValidElement(object2) {
34030
- {
34031
- return typeof object2 === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
34032
- }
34033
- }
34034
- function getDeclarationErrorAddendum() {
34035
- {
34036
- if (ReactCurrentOwner$1.current) {
34037
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
34038
- if (name) {
34039
- return "\n\nCheck the render method of `" + name + "`.";
34040
- }
34041
- }
34042
- return "";
34043
- }
34044
- }
34045
- function getSourceInfoErrorAddendum(source2) {
34046
- {
34047
- return "";
34048
- }
34049
- }
34050
- var ownerHasKeyUseWarning = {};
34051
- function getCurrentComponentErrorInfo(parentType) {
34052
- {
34053
- var info2 = getDeclarationErrorAddendum();
34054
- if (!info2) {
34055
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
34056
- if (parentName) {
34057
- info2 = "\n\nCheck the top-level render call using <" + parentName + ">.";
34058
- }
34059
- }
34060
- return info2;
34061
- }
34062
- }
34063
- function validateExplicitKey(element2, parentType) {
34064
- {
34065
- if (!element2._store || element2._store.validated || element2.key != null) {
34066
- return;
34067
- }
34068
- element2._store.validated = true;
34069
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
34070
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
34071
- return;
34072
- }
34073
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
34074
- var childOwner = "";
34075
- if (element2 && element2._owner && element2._owner !== ReactCurrentOwner$1.current) {
34076
- childOwner = " It was passed a child from " + getComponentNameFromType(element2._owner.type) + ".";
34077
- }
34078
- setCurrentlyValidatingElement$1(element2);
34079
- error2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
34080
- setCurrentlyValidatingElement$1(null);
34081
- }
34082
- }
34083
- function validateChildKeys(node2, parentType) {
34084
- {
34085
- if (typeof node2 !== "object") {
34086
- return;
34087
- }
34088
- if (isArray2(node2)) {
34089
- for (var i = 0; i < node2.length; i++) {
34090
- var child = node2[i];
34091
- if (isValidElement(child)) {
34092
- validateExplicitKey(child, parentType);
34093
- }
34094
- }
34095
- } else if (isValidElement(node2)) {
34096
- if (node2._store) {
34097
- node2._store.validated = true;
34098
- }
34099
- } else if (node2) {
34100
- var iteratorFn = getIteratorFn(node2);
34101
- if (typeof iteratorFn === "function") {
34102
- if (iteratorFn !== node2.entries) {
34103
- var iterator = iteratorFn.call(node2);
34104
- var step;
34105
- while (!(step = iterator.next()).done) {
34106
- if (isValidElement(step.value)) {
34107
- validateExplicitKey(step.value, parentType);
34108
- }
34109
- }
34110
- }
34111
- }
34112
- }
34113
- }
34114
- }
34115
- function validatePropTypes(element2) {
34116
- {
34117
- var type2 = element2.type;
34118
- if (type2 === null || type2 === void 0 || typeof type2 === "string") {
34119
- return;
34120
- }
34121
- var propTypes2;
34122
- if (typeof type2 === "function") {
34123
- propTypes2 = type2.propTypes;
34124
- } else if (typeof type2 === "object" && (type2.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
34125
- // Inner props are checked in the reconciler.
34126
- type2.$$typeof === REACT_MEMO_TYPE)) {
34127
- propTypes2 = type2.propTypes;
34128
- } else {
34129
- return;
34130
- }
34131
- if (propTypes2) {
34132
- var name = getComponentNameFromType(type2);
34133
- checkPropTypes(propTypes2, element2.props, "prop", name, element2);
34134
- } else if (type2.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
34135
- propTypesMisspellWarningShown = true;
34136
- var _name = getComponentNameFromType(type2);
34137
- error2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
34138
- }
34139
- if (typeof type2.getDefaultProps === "function" && !type2.getDefaultProps.isReactClassApproved) {
34140
- error2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
34141
- }
34142
- }
34143
- }
34144
- function validateFragmentProps(fragment) {
34145
- {
34146
- var keys2 = Object.keys(fragment.props);
34147
- for (var i = 0; i < keys2.length; i++) {
34148
- var key2 = keys2[i];
34149
- if (key2 !== "children" && key2 !== "key") {
34150
- setCurrentlyValidatingElement$1(fragment);
34151
- error2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key2);
34152
- setCurrentlyValidatingElement$1(null);
34153
- break;
34154
- }
34155
- }
34156
- if (fragment.ref !== null) {
34157
- setCurrentlyValidatingElement$1(fragment);
34158
- error2("Invalid attribute `ref` supplied to `React.Fragment`.");
34159
- setCurrentlyValidatingElement$1(null);
34160
- }
34161
- }
34162
- }
34163
- var didWarnAboutKeySpread = {};
34164
- function jsxWithValidation(type2, props, key2, isStaticChildren, source2, self2) {
34165
- {
34166
- var validType = isValidElementType(type2);
34167
- if (!validType) {
34168
- var info2 = "";
34169
- if (type2 === void 0 || typeof type2 === "object" && type2 !== null && Object.keys(type2).length === 0) {
34170
- info2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
34171
- }
34172
- var sourceInfo = getSourceInfoErrorAddendum();
34173
- if (sourceInfo) {
34174
- info2 += sourceInfo;
34175
- } else {
34176
- info2 += getDeclarationErrorAddendum();
34177
- }
34178
- var typeString;
34179
- if (type2 === null) {
34180
- typeString = "null";
34181
- } else if (isArray2(type2)) {
34182
- typeString = "array";
34183
- } else if (type2 !== void 0 && type2.$$typeof === REACT_ELEMENT_TYPE) {
34184
- typeString = "<" + (getComponentNameFromType(type2.type) || "Unknown") + " />";
34185
- info2 = " Did you accidentally export a JSX literal instead of a component?";
34186
- } else {
34187
- typeString = typeof type2;
34188
- }
34189
- error2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info2);
34190
- }
34191
- var element2 = jsxDEV(type2, props, key2, source2, self2);
34192
- if (element2 == null) {
34193
- return element2;
34194
- }
34195
- if (validType) {
34196
- var children2 = props.children;
34197
- if (children2 !== void 0) {
34198
- if (isStaticChildren) {
34199
- if (isArray2(children2)) {
34200
- for (var i = 0; i < children2.length; i++) {
34201
- validateChildKeys(children2[i], type2);
34202
- }
34203
- if (Object.freeze) {
34204
- Object.freeze(children2);
34205
- }
34206
- } else {
34207
- error2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
34208
- }
34209
- } else {
34210
- validateChildKeys(children2, type2);
34211
- }
34212
- }
34213
- }
34214
- {
34215
- if (hasOwnProperty2.call(props, "key")) {
34216
- var componentName = getComponentNameFromType(type2);
34217
- var keys2 = Object.keys(props).filter(function(k) {
34218
- return k !== "key";
34219
- });
34220
- var beforeExample = keys2.length > 0 ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
34221
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
34222
- var afterExample = keys2.length > 0 ? "{" + keys2.join(": ..., ") + ": ...}" : "{}";
34223
- error2('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
34224
- didWarnAboutKeySpread[componentName + beforeExample] = true;
34225
- }
34226
- }
34227
- }
34228
- if (type2 === REACT_FRAGMENT_TYPE) {
34229
- validateFragmentProps(element2);
34230
- } else {
34231
- validatePropTypes(element2);
34232
- }
34233
- return element2;
34234
- }
34235
- }
34236
- function jsxWithValidationStatic(type2, props, key2) {
34237
- {
34238
- return jsxWithValidation(type2, props, key2, true);
34239
- }
34240
- }
34241
- function jsxWithValidationDynamic(type2, props, key2) {
34242
- {
34243
- return jsxWithValidation(type2, props, key2, false);
34244
- }
34245
- }
34246
- var jsx3 = jsxWithValidationDynamic;
34247
- var jsxs = jsxWithValidationStatic;
34248
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
34249
- reactJsxRuntime_development.jsx = jsx3;
34250
- reactJsxRuntime_development.jsxs = jsxs;
34251
- })();
34252
- }
34253
- return reactJsxRuntime_development;
34254
- }
34255
- var hasRequiredJsxRuntime;
34256
- function requireJsxRuntime() {
34257
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
34258
- hasRequiredJsxRuntime = 1;
34259
- {
34260
- jsxRuntime.exports = requireReactJsxRuntime_development();
34261
- }
34262
- return jsxRuntime.exports;
34263
- }
34264
- var jsxRuntimeExports = requireJsxRuntime();
34265
33347
  function sheetForTag(tag) {
34266
33348
  if (tag.sheet) {
34267
33349
  return tag.sheet;
@@ -35050,14 +34132,47 @@ var createCache = function createCache2(options) {
35050
34132
  cache2.sheet.hydrate(nodesToHydrate);
35051
34133
  return cache2;
35052
34134
  };
35053
- function _extends$3() {
35054
- return _extends$3 = Object.assign ? Object.assign.bind() : function(n) {
34135
+ function _extends$2() {
34136
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
35055
34137
  for (var e3 = 1; e3 < arguments.length; e3++) {
35056
34138
  var t4 = arguments[e3];
35057
34139
  for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n[r3] = t4[r3]);
35058
34140
  }
35059
34141
  return n;
35060
- }, _extends$3.apply(null, arguments);
34142
+ }, _extends$2.apply(null, arguments);
34143
+ }
34144
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
34145
+ function getDefaultExportFromCjs(x2) {
34146
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
34147
+ }
34148
+ function getAugmentedNamespace(n) {
34149
+ if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
34150
+ var f = n.default;
34151
+ if (typeof f == "function") {
34152
+ var a2 = function a3() {
34153
+ var isInstance = false;
34154
+ try {
34155
+ isInstance = this instanceof a3;
34156
+ } catch {
34157
+ }
34158
+ if (isInstance) {
34159
+ return Reflect.construct(f, arguments, this.constructor);
34160
+ }
34161
+ return f.apply(this, arguments);
34162
+ };
34163
+ a2.prototype = f.prototype;
34164
+ } else a2 = {};
34165
+ Object.defineProperty(a2, "__esModule", { value: true });
34166
+ Object.keys(n).forEach(function(k) {
34167
+ var d = Object.getOwnPropertyDescriptor(n, k);
34168
+ Object.defineProperty(a2, k, d.get ? d : {
34169
+ enumerable: true,
34170
+ get: function() {
34171
+ return n[k];
34172
+ }
34173
+ });
34174
+ });
34175
+ return a2;
35061
34176
  }
35062
34177
  var reactIs$1 = { exports: {} };
35063
34178
  var reactIs_development$1 = {};
@@ -36589,7 +35704,7 @@ var createStyled$1 = function createStyled(tag, options) {
36589
35704
  }
36590
35705
  });
36591
35706
  Styled.withComponent = function(nextTag, nextOptions) {
36592
- var newStyled2 = createStyled(nextTag, _extends$3({}, options, nextOptions, {
35707
+ var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
36593
35708
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
36594
35709
  }));
36595
35710
  return newStyled2.apply(void 0, styles);
@@ -37607,9 +36722,8 @@ function sortContainerQueries(theme, css2) {
37607
36722
  return css2;
37608
36723
  }
37609
36724
  const sorted = Object.keys(css2).filter((key2) => key2.startsWith("@container")).sort((a2, b2) => {
37610
- var _a, _b;
37611
36725
  const regex = /min-width:\s*([0-9.]+)/;
37612
- return +(((_a = a2.match(regex)) == null ? void 0 : _a[1]) || 0) - +(((_b = b2.match(regex)) == null ? void 0 : _b[1]) || 0);
36726
+ return +(a2.match(regex)?.[1] || 0) - +(b2.match(regex)?.[1] || 0);
37613
36727
  });
37614
36728
  if (!sorted.length) {
37615
36729
  return css2;
@@ -37737,8 +36851,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
37737
36851
  return output2;
37738
36852
  }
37739
36853
  function createEmptyBreakpointObject(breakpointsInput = {}) {
37740
- var _a;
37741
- const breakpointsInOrder = (_a = breakpointsInput.keys) == null ? void 0 : _a.reduce((acc, key2) => {
36854
+ const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key2) => {
37742
36855
  const breakpointStyleKey = breakpointsInput.up(key2);
37743
36856
  acc[breakpointStyleKey] = {};
37744
36857
  return acc;
@@ -38158,14 +37271,13 @@ const width = style$1({
38158
37271
  const maxWidth = (props) => {
38159
37272
  if (props.maxWidth !== void 0 && props.maxWidth !== null) {
38160
37273
  const styleFromPropValue = (propValue) => {
38161
- var _a, _b, _c2, _d2, _e;
38162
- const breakpoint = ((_c2 = (_b = (_a = props.theme) == null ? void 0 : _a.breakpoints) == null ? void 0 : _b.values) == null ? void 0 : _c2[propValue]) || values$3[propValue];
37274
+ const breakpoint = props.theme?.breakpoints?.values?.[propValue] || values$3[propValue];
38163
37275
  if (!breakpoint) {
38164
37276
  return {
38165
37277
  maxWidth: sizingTransform(propValue)
38166
37278
  };
38167
37279
  }
38168
- if (((_e = (_d2 = props.theme) == null ? void 0 : _d2.breakpoints) == null ? void 0 : _e.unit) !== "px") {
37280
+ if (props.theme?.breakpoints?.unit !== "px") {
38169
37281
  return {
38170
37282
  maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
38171
37283
  };
@@ -38606,10 +37718,9 @@ function unstable_createStyleFunctionSx() {
38606
37718
  const styleFunctionSx = unstable_createStyleFunctionSx();
38607
37719
  styleFunctionSx.filterProps = ["sx"];
38608
37720
  function applyStyles(key2, styles) {
38609
- var _a;
38610
37721
  const theme = this;
38611
37722
  if (theme.vars) {
38612
- if (!((_a = theme.colorSchemes) == null ? void 0 : _a[key2]) || typeof theme.getColorSchemeSelector !== "function") {
37723
+ if (!theme.colorSchemes?.[key2] || typeof theme.getColorSchemeSelector !== "function") {
38613
37724
  return {};
38614
37725
  }
38615
37726
  let selector = theme.getColorSchemeSelector(key2);
@@ -38658,7 +37769,7 @@ function createTheme$1(options = {}, ...args) {
38658
37769
  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
38659
37770
  muiTheme.unstable_sxConfig = {
38660
37771
  ...defaultSxConfig,
38661
- ...other == null ? void 0 : other.unstable_sxConfig
37772
+ ...other?.unstable_sxConfig
38662
37773
  };
38663
37774
  muiTheme.unstable_sx = function sx(props) {
38664
37775
  return styleFunctionSx({
@@ -38680,12 +37791,11 @@ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
38680
37791
  return useTheme$2(defaultTheme2);
38681
37792
  }
38682
37793
  const splitProps = (props) => {
38683
- var _a;
38684
37794
  const result = {
38685
37795
  systemProps: {},
38686
37796
  otherProps: {}
38687
37797
  };
38688
- const config = ((_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.unstable_sxConfig) ?? defaultSxConfig;
37798
+ const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
38689
37799
  Object.keys(props).forEach((prop) => {
38690
37800
  if (config[prop]) {
38691
37801
  result.systemProps[prop] = props[prop];
@@ -38852,7 +37962,7 @@ function processStyle(props, style2) {
38852
37962
  if (Array.isArray(resolvedStyle)) {
38853
37963
  return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
38854
37964
  }
38855
- if (Array.isArray(resolvedStyle == null ? void 0 : resolvedStyle.variants)) {
37965
+ if (Array.isArray(resolvedStyle?.variants)) {
38856
37966
  let rootStyle;
38857
37967
  if (resolvedStyle.isProcessed) {
38858
37968
  rootStyle = resolvedStyle.style;
@@ -38865,38 +37975,37 @@ function processStyle(props, style2) {
38865
37975
  }
38866
37976
  return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
38867
37977
  }
38868
- if (resolvedStyle == null ? void 0 : resolvedStyle.isProcessed) {
37978
+ if (resolvedStyle?.isProcessed) {
38869
37979
  return resolvedStyle.style;
38870
37980
  }
38871
37981
  return resolvedStyle;
38872
37982
  }
38873
37983
  function processStyleVariants(props, variants, results = []) {
38874
- var _a;
38875
37984
  let mergedState;
38876
37985
  variantLoop: for (let i = 0; i < variants.length; i += 1) {
38877
37986
  const variant = variants[i];
38878
37987
  if (typeof variant.props === "function") {
38879
- mergedState ?? (mergedState = {
37988
+ mergedState ??= {
38880
37989
  ...props,
38881
37990
  ...props.ownerState,
38882
37991
  ownerState: props.ownerState
38883
- });
37992
+ };
38884
37993
  if (!variant.props(mergedState)) {
38885
37994
  continue;
38886
37995
  }
38887
37996
  } else {
38888
37997
  for (const key2 in variant.props) {
38889
- if (props[key2] !== variant.props[key2] && ((_a = props.ownerState) == null ? void 0 : _a[key2]) !== variant.props[key2]) {
37998
+ if (props[key2] !== variant.props[key2] && props.ownerState?.[key2] !== variant.props[key2]) {
38890
37999
  continue variantLoop;
38891
38000
  }
38892
38001
  }
38893
38002
  }
38894
38003
  if (typeof variant.style === "function") {
38895
- mergedState ?? (mergedState = {
38004
+ mergedState ??= {
38896
38005
  ...props,
38897
38006
  ...props.ownerState,
38898
38007
  ownerState: props.ownerState
38899
- });
38008
+ };
38900
38009
  results.push(variant.style(mergedState));
38901
38010
  } else {
38902
38011
  results.push(variant.style);
@@ -38969,9 +38078,8 @@ function createStyled2(input = {}) {
38969
38078
  expressionsHead.push(styleAttachTheme);
38970
38079
  if (componentName && overridesResolver) {
38971
38080
  expressionsTail.push(function styleThemeOverrides(props) {
38972
- var _a, _b;
38973
38081
  const theme = props.theme;
38974
- const styleOverrides = (_b = (_a = theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.styleOverrides;
38082
+ const styleOverrides = theme.components?.[componentName]?.styleOverrides;
38975
38083
  if (!styleOverrides) {
38976
38084
  return null;
38977
38085
  }
@@ -38984,9 +38092,8 @@ function createStyled2(input = {}) {
38984
38092
  }
38985
38093
  if (componentName && !skipVariantsResolver) {
38986
38094
  expressionsTail.push(function styleThemeVariants(props) {
38987
- var _a, _b;
38988
38095
  const theme = props.theme;
38989
- const themeVariants = (_b = (_a = theme == null ? void 0 : theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.variants;
38096
+ const themeVariants = theme?.components?.[componentName]?.variants;
38990
38097
  if (!themeVariants) {
38991
38098
  return null;
38992
38099
  }
@@ -39519,7 +38626,6 @@ function prepareCssVars(theme, parserConfig = {}) {
39519
38626
  };
39520
38627
  }
39521
38628
  function defaultGetSelector2(colorScheme, cssObject) {
39522
- var _a, _b;
39523
38629
  let rule2 = selector;
39524
38630
  if (selector === "class") {
39525
38631
  rule2 = ".%s";
@@ -39527,7 +38633,7 @@ function prepareCssVars(theme, parserConfig = {}) {
39527
38633
  if (selector === "data") {
39528
38634
  rule2 = "[data-%s]";
39529
38635
  }
39530
- if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) {
38636
+ if (selector?.startsWith("data-") && !selector.includes("%s")) {
39531
38637
  rule2 = `[${selector}="%s"]`;
39532
38638
  }
39533
38639
  if (colorScheme) {
@@ -39535,7 +38641,7 @@ function prepareCssVars(theme, parserConfig = {}) {
39535
38641
  if (theme.defaultColorScheme === colorScheme) {
39536
38642
  return ":root";
39537
38643
  }
39538
- const mode = ((_b = (_a = colorSchemes2[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode) || colorScheme;
38644
+ const mode = colorSchemes2[colorScheme]?.palette?.mode || colorScheme;
39539
38645
  return {
39540
38646
  [`@media (prefers-color-scheme: ${mode})`]: {
39541
38647
  ":root": cssObject
@@ -39563,7 +38669,6 @@ function prepareCssVars(theme, parserConfig = {}) {
39563
38669
  return vars;
39564
38670
  };
39565
38671
  const generateStyleSheets = () => {
39566
- var _a, _b;
39567
38672
  const stylesheets = [];
39568
38673
  const colorScheme = theme.defaultColorScheme || "light";
39569
38674
  function insertStyleSheet(key2, css2) {
@@ -39586,7 +38691,7 @@ function prepareCssVars(theme, parserConfig = {}) {
39586
38691
  const {
39587
38692
  css: css2
39588
38693
  } = defaultSchemeVal;
39589
- const cssColorSheme = (_b = (_a = colorSchemes2[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode;
38694
+ const cssColorSheme = colorSchemes2[colorScheme]?.palette?.mode;
39590
38695
  const finalCss = !disableCssColorScheme && cssColorSheme ? {
39591
38696
  colorScheme: cssColorSheme,
39592
38697
  ...css2
@@ -39600,8 +38705,7 @@ function prepareCssVars(theme, parserConfig = {}) {
39600
38705
  Object.entries(other).forEach(([key2, {
39601
38706
  css: css2
39602
38707
  }]) => {
39603
- var _a2, _b2;
39604
- const cssColorSheme = (_b2 = (_a2 = colorSchemes2[key2]) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.mode;
38708
+ const cssColorSheme = colorSchemes2[key2]?.palette?.mode;
39605
38709
  const finalCss = !disableCssColorScheme && cssColorSheme ? {
39606
38710
  colorScheme: cssColorSheme,
39607
38711
  ...css2
@@ -40333,7 +39437,7 @@ function createThemeNoVars(options = {}, ...args) {
40333
39437
  }
40334
39438
  muiTheme.unstable_sxConfig = {
40335
39439
  ...defaultSxConfig,
40336
- ...other == null ? void 0 : other.unstable_sxConfig
39440
+ ...other?.unstable_sxConfig
40337
39441
  };
40338
39442
  muiTheme.unstable_sx = function sx(props) {
40339
39443
  return styleFunctionSx({
@@ -40393,9 +39497,8 @@ function createColorScheme(options) {
40393
39497
  };
40394
39498
  }
40395
39499
  function shouldSkipGeneratingVar(keys2) {
40396
- var _a;
40397
39500
  return !!keys2[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys2[0].match(/sxConfig$/) || // ends with sxConfig
40398
- keys2[0] === "palette" && !!((_a = keys2[1]) == null ? void 0 : _a.match(/(mode|contrastThreshold|tonalOffset)/));
39501
+ keys2[0] === "palette" && !!keys2[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
40399
39502
  }
40400
39503
  const excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index2) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index2}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`];
40401
39504
  const defaultGetSelector = (theme) => (colorScheme, css2) => {
@@ -40408,7 +39511,7 @@ const defaultGetSelector = (theme) => (colorScheme, css2) => {
40408
39511
  if (selector === "data") {
40409
39512
  rule2 = "[data-%s]";
40410
39513
  }
40411
- if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) {
39514
+ if (selector?.startsWith("data-") && !selector.includes("%s")) {
40412
39515
  rule2 = `[${selector}="%s"]`;
40413
39516
  }
40414
39517
  if (theme.defaultColorScheme === colorScheme) {
@@ -40508,7 +39611,7 @@ function attachColorScheme$1(colorSchemes2, scheme2, restTheme, colorScheme) {
40508
39611
  ...scheme2,
40509
39612
  palette: {
40510
39613
  mode,
40511
- ...scheme2 == null ? void 0 : scheme2.palette
39614
+ ...scheme2?.palette
40512
39615
  }
40513
39616
  });
40514
39617
  return void 0;
@@ -40520,7 +39623,7 @@ function attachColorScheme$1(colorSchemes2, scheme2, restTheme, colorScheme) {
40520
39623
  ...restTheme,
40521
39624
  palette: {
40522
39625
  mode,
40523
- ...scheme2 == null ? void 0 : scheme2.palette
39626
+ ...scheme2?.palette
40524
39627
  }
40525
39628
  });
40526
39629
  colorSchemes2[colorScheme] = {
@@ -40528,9 +39631,9 @@ function attachColorScheme$1(colorSchemes2, scheme2, restTheme, colorScheme) {
40528
39631
  palette,
40529
39632
  opacity: {
40530
39633
  ...getOpacity(mode),
40531
- ...scheme2 == null ? void 0 : scheme2.opacity
39634
+ ...scheme2?.opacity
40532
39635
  },
40533
- overlays: (scheme2 == null ? void 0 : scheme2.overlays) || getOverlays(mode)
39636
+ overlays: scheme2?.overlays || getOverlays(mode)
40534
39637
  };
40535
39638
  return muiTheme;
40536
39639
  }
@@ -40789,7 +39892,7 @@ function createThemeWithVars(options = {}, ...args) {
40789
39892
  theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
40790
39893
  theme.unstable_sxConfig = {
40791
39894
  ...defaultSxConfig,
40792
- ...input == null ? void 0 : input.unstable_sxConfig
39895
+ ...input?.unstable_sxConfig
40793
39896
  };
40794
39897
  theme.unstable_sx = function sx(props) {
40795
39898
  return styleFunctionSx({
@@ -40822,11 +39925,11 @@ function createTheme(options = {}, ...args) {
40822
39925
  colorSchemes: initialColorSchemes = !palette ? {
40823
39926
  light: true
40824
39927
  } : void 0,
40825
- defaultColorScheme: initialDefaultColorScheme = palette == null ? void 0 : palette.mode,
39928
+ defaultColorScheme: initialDefaultColorScheme = palette?.mode,
40826
39929
  ...rest
40827
39930
  } = options;
40828
39931
  const defaultColorSchemeInput = initialDefaultColorScheme || "light";
40829
- const defaultScheme = initialColorSchemes == null ? void 0 : initialColorSchemes[defaultColorSchemeInput];
39932
+ const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
40830
39933
  const colorSchemesInput = {
40831
39934
  ...initialColorSchemes,
40832
39935
  ...palette ? {
@@ -40960,7 +40063,7 @@ function useForkRef$1(...refs) {
40960
40063
  };
40961
40064
  });
40962
40065
  return () => {
40963
- cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
40066
+ cleanups.forEach((refCleanup) => refCleanup?.());
40964
40067
  };
40965
40068
  }, refs);
40966
40069
  return React$1.useMemo(() => {
@@ -40978,15 +40081,6 @@ function useForkRef$1(...refs) {
40978
40081
  };
40979
40082
  }, refs);
40980
40083
  }
40981
- function _extends$2() {
40982
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
40983
- for (var e3 = 1; e3 < arguments.length; e3++) {
40984
- var t4 = arguments[e3];
40985
- for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n[r3] = t4[r3]);
40986
- }
40987
- return n;
40988
- }, _extends$2.apply(null, arguments);
40989
- }
40990
40084
  function _setPrototypeOf(t4, e3) {
40991
40085
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t5, e4) {
40992
40086
  return t5.__proto__ = e4, t5;
@@ -41028,11 +40122,10 @@ function HTMLElementType(props, propName, componentName, location, propFullName)
41028
40122
  return null;
41029
40123
  }
41030
40124
  function getReactElementRef(element2) {
41031
- var _a;
41032
40125
  if (parseInt(React$1.version, 10) >= 19) {
41033
- return ((_a = element2 == null ? void 0 : element2.props) == null ? void 0 : _a.ref) || null;
40126
+ return element2?.props?.ref || null;
41034
40127
  }
41035
- return (element2 == null ? void 0 : element2.ref) || null;
40128
+ return element2?.ref || null;
41036
40129
  }
41037
40130
  function getContainer(container) {
41038
40131
  return typeof container === "function" ? container() : container;
@@ -41140,72 +40233,69 @@ const TypographyRoot = styled("span", {
41140
40233
  }
41141
40234
  })(memoTheme(({
41142
40235
  theme
41143
- }) => {
41144
- var _a;
41145
- return {
41146
- margin: 0,
41147
- variants: [{
41148
- props: {
41149
- variant: "inherit"
41150
- },
41151
- style: {
41152
- // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
41153
- font: "inherit",
41154
- lineHeight: "inherit",
41155
- letterSpacing: "inherit"
41156
- }
41157
- }, ...Object.entries(theme.typography).filter(([variant, value2]) => variant !== "inherit" && value2 && typeof value2 === "object").map(([variant, value2]) => ({
41158
- props: {
41159
- variant
41160
- },
41161
- style: value2
41162
- })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
41163
- props: {
41164
- color: color2
41165
- },
41166
- style: {
41167
- color: (theme.vars || theme).palette[color2].main
41168
- }
41169
- })), ...Object.entries(((_a = theme.palette) == null ? void 0 : _a.text) || {}).filter(([, value2]) => typeof value2 === "string").map(([color2]) => ({
41170
- props: {
41171
- color: `text${capitalize$1(color2)}`
41172
- },
41173
- style: {
41174
- color: (theme.vars || theme).palette.text[color2]
41175
- }
41176
- })), {
41177
- props: ({
41178
- ownerState
41179
- }) => ownerState.align !== "inherit",
41180
- style: {
41181
- textAlign: "var(--Typography-textAlign)"
41182
- }
41183
- }, {
41184
- props: ({
41185
- ownerState
41186
- }) => ownerState.noWrap,
41187
- style: {
41188
- overflow: "hidden",
41189
- textOverflow: "ellipsis",
41190
- whiteSpace: "nowrap"
41191
- }
41192
- }, {
41193
- props: ({
41194
- ownerState
41195
- }) => ownerState.gutterBottom,
41196
- style: {
41197
- marginBottom: "0.35em"
41198
- }
41199
- }, {
41200
- props: ({
41201
- ownerState
41202
- }) => ownerState.paragraph,
41203
- style: {
41204
- marginBottom: 16
41205
- }
41206
- }]
41207
- };
41208
- }));
40236
+ }) => ({
40237
+ margin: 0,
40238
+ variants: [{
40239
+ props: {
40240
+ variant: "inherit"
40241
+ },
40242
+ style: {
40243
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
40244
+ font: "inherit",
40245
+ lineHeight: "inherit",
40246
+ letterSpacing: "inherit"
40247
+ }
40248
+ }, ...Object.entries(theme.typography).filter(([variant, value2]) => variant !== "inherit" && value2 && typeof value2 === "object").map(([variant, value2]) => ({
40249
+ props: {
40250
+ variant
40251
+ },
40252
+ style: value2
40253
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
40254
+ props: {
40255
+ color: color2
40256
+ },
40257
+ style: {
40258
+ color: (theme.vars || theme).palette[color2].main
40259
+ }
40260
+ })), ...Object.entries(theme.palette?.text || {}).filter(([, value2]) => typeof value2 === "string").map(([color2]) => ({
40261
+ props: {
40262
+ color: `text${capitalize$1(color2)}`
40263
+ },
40264
+ style: {
40265
+ color: (theme.vars || theme).palette.text[color2]
40266
+ }
40267
+ })), {
40268
+ props: ({
40269
+ ownerState
40270
+ }) => ownerState.align !== "inherit",
40271
+ style: {
40272
+ textAlign: "var(--Typography-textAlign)"
40273
+ }
40274
+ }, {
40275
+ props: ({
40276
+ ownerState
40277
+ }) => ownerState.noWrap,
40278
+ style: {
40279
+ overflow: "hidden",
40280
+ textOverflow: "ellipsis",
40281
+ whiteSpace: "nowrap"
40282
+ }
40283
+ }, {
40284
+ props: ({
40285
+ ownerState
40286
+ }) => ownerState.gutterBottom,
40287
+ style: {
40288
+ marginBottom: "0.35em"
40289
+ }
40290
+ }, {
40291
+ props: ({
40292
+ ownerState
40293
+ }) => ownerState.paragraph,
40294
+ style: {
40295
+ marginBottom: 16
40296
+ }
40297
+ }]
40298
+ })));
41209
40299
  const defaultVariantMapping = {
41210
40300
  h1: "h1",
41211
40301
  h2: "h2",
@@ -41259,7 +40349,7 @@ const Typography = /* @__PURE__ */ React$1.forwardRef(function Typography2(inPro
41259
40349
  };
41260
40350
  const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
41261
40351
  const classes = useUtilityClasses(ownerState);
41262
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
40352
+ return /* @__PURE__ */ jsx$1(TypographyRoot, {
41263
40353
  as: Component,
41264
40354
  ref: ref2,
41265
40355
  className: clsx(classes.root, className),
@@ -43051,7 +42141,7 @@ React$1.forwardRef((props, ref2) => {
43051
42141
  onExited: handleExited
43052
42142
  };
43053
42143
  }
43054
- return jsxRuntimeExports.jsx(Portal, { disablePortal, container, children: jsxRuntimeExports.jsx("div", { ref: handleRef, role: "tooltip", ...other, style: {
42144
+ return jsx$1(Portal, { disablePortal, container, children: jsx$1("div", { ref: handleRef, role: "tooltip", ...other, style: {
43055
42145
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
43056
42146
  position: "fixed",
43057
42147
  // Fix Popper.js display issue
@@ -43694,7 +42784,7 @@ makeStyles()(() => ({
43694
42784
  const OuterElementContext = React__default.createContext({});
43695
42785
  const OuterElementType = React__default.forwardRef((props, ref2) => {
43696
42786
  const outerProps = React__default.useContext(OuterElementContext);
43697
- return jsxRuntimeExports.jsx("div", { ref: ref2, ...props, ...outerProps });
42787
+ return jsx$1("div", { ref: ref2, ...props, ...outerProps });
43698
42788
  });
43699
42789
  function ListRow(props) {
43700
42790
  const { data: data2, index: index2, style: style2 } = props;
@@ -43705,7 +42795,7 @@ function ListRow(props) {
43705
42795
  };
43706
42796
  const [props0, option, getItemLabel] = dataSet;
43707
42797
  const { key: key2, ...optionProps } = props0;
43708
- return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key2);
42798
+ return jsx$1(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key2);
43709
42799
  }
43710
42800
  function useResetCache(itemCount) {
43711
42801
  const ref2 = useRef(null);
@@ -43721,7 +42811,7 @@ React__default.forwardRef((props, ref2) => {
43721
42811
  const items = children2;
43722
42812
  const itemCount = items.length;
43723
42813
  const gridRef = useResetCache(itemCount);
43724
- return jsxRuntimeExports.jsx("div", { ref: ref2, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
42814
+ return jsx$1("div", { ref: ref2, children: jsx$1(OuterElementContext.Provider, { value: other, children: jsx$1(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
43725
42815
  });
43726
42816
  const useStyles = makeStyles()((theme) => ({
43727
42817
  tooltipAnchor: {
@@ -49994,13 +49084,12 @@ function upgradeFrom0_1_0(config, datasetUid = null) {
49994
49084
  };
49995
49085
  const layout = [];
49996
49086
  config.staticLayout.forEach((componentDef) => {
49997
- var _a, _b, _c2;
49998
49087
  let newComponentDef = {
49999
49088
  ...componentDef,
50000
49089
  coordinationScopes: {}
50001
49090
  };
50002
49091
  if (componentDef.component === "scatterplot") {
50003
- if (((_a = componentDef.props) == null ? void 0 : _a.mapping) && typeof componentDef.props.mapping === "string") {
49092
+ if (componentDef.props?.mapping && typeof componentDef.props.mapping === "string") {
50004
49093
  coordinationSpace.embeddingType[componentDef.props.mapping] = componentDef.props.mapping;
50005
49094
  newComponentDef = {
50006
49095
  ...newComponentDef,
@@ -50010,7 +49099,7 @@ function upgradeFrom0_1_0(config, datasetUid = null) {
50010
49099
  }
50011
49100
  };
50012
49101
  }
50013
- if ((_b = componentDef.props) == null ? void 0 : _b.view) {
49102
+ if (componentDef.props?.view) {
50014
49103
  const newScopeValues = upgradeReplaceViewProp("embedding", componentDef.props.view, coordinationSpace);
50015
49104
  newComponentDef = {
50016
49105
  ...newComponentDef,
@@ -50022,7 +49111,7 @@ function upgradeFrom0_1_0(config, datasetUid = null) {
50022
49111
  }
50023
49112
  }
50024
49113
  if (componentDef.component === "spatial") {
50025
- if ((_c2 = componentDef == null ? void 0 : componentDef.props) == null ? void 0 : _c2.view) {
49114
+ if (componentDef?.props?.view) {
50026
49115
  const newScopeValues = upgradeReplaceViewProp("spatial", componentDef.props.view, coordinationSpace);
50027
49116
  newComponentDef = {
50028
49117
  ...newComponentDef,
@@ -50112,7 +49201,6 @@ function upgradeFrom1_0_0(config) {
50112
49201
  };
50113
49202
  }
50114
49203
  function upgradeFrom1_0_1(config) {
50115
- var _a;
50116
49204
  const layout = config.layout.map((component) => {
50117
49205
  const newComponent = { ...component };
50118
49206
  if (newComponent.component === "layerController") {
@@ -50124,9 +49212,8 @@ function upgradeFrom1_0_1(config) {
50124
49212
  return newComponent;
50125
49213
  });
50126
49214
  const newConfig = cloneDeep(config);
50127
- Object.keys(((_a = newConfig == null ? void 0 : newConfig.coordinationSpace) == null ? void 0 : _a.spatialRasterLayers) || {}).forEach((key2) => {
50128
- var _a2, _b;
50129
- if ((_b = (_a2 = newConfig.coordinationSpace) == null ? void 0 : _a2.spatialRasterLayers) == null ? void 0 : _b[key2]) {
49215
+ Object.keys(newConfig?.coordinationSpace?.spatialRasterLayers || {}).forEach((key2) => {
49216
+ if (newConfig.coordinationSpace?.spatialRasterLayers?.[key2]) {
50130
49217
  newConfig.coordinationSpace.spatialRasterLayers[key2].forEach((layer, index2) => {
50131
49218
  if (newConfig.coordinationSpace) {
50132
49219
  newConfig.coordinationSpace.spatialRasterLayers[key2][index2].type = ["bitmask", "raster"].includes(layer.type) ? layer.type : "raster";
@@ -50267,7 +49354,7 @@ function upgradeFrom1_0_10(config) {
50267
49354
  function upgradeFrom1_0_11(config) {
50268
49355
  const newConfig = cloneDeep(config);
50269
49356
  const { datasets, coordinationSpace } = newConfig;
50270
- if (coordinationSpace == null ? void 0 : coordinationSpace.embeddingType) {
49357
+ if (coordinationSpace?.embeddingType) {
50271
49358
  const embeddingTypes = Object.values(coordinationSpace.embeddingType);
50272
49359
  datasets.forEach((dataset, i) => {
50273
49360
  const { files } = dataset;
@@ -50300,7 +49387,7 @@ function upgradeFrom1_0_12(config) {
50300
49387
  if (options && "factors" in options && Array.isArray(options.factors)) {
50301
49388
  const obsLabelsTypeScopes = [];
50302
49389
  options.factors.forEach((olt) => {
50303
- const nextScope = getNextScope(Object.keys((coordinationSpace == null ? void 0 : coordinationSpace.obsLabelsType) || {}));
49390
+ const nextScope = getNextScope(Object.keys(coordinationSpace?.obsLabelsType || {}));
50304
49391
  newCoordinationSpace.obsLabelsType = {
50305
49392
  ...newCoordinationSpace.obsLabelsType,
50306
49393
  // Need to remove the obs/ prefix.
@@ -50314,8 +49401,7 @@ function upgradeFrom1_0_12(config) {
50314
49401
  });
50315
49402
  });
50316
49403
  function getDatasetUidForView(viewDef) {
50317
- var _a, _b;
50318
- if (((_a = viewDef.coordinationScopes) == null ? void 0 : _a.dataset) && typeof ((_b = viewDef.coordinationScopes) == null ? void 0 : _b.dataset) === "string") {
49404
+ if (viewDef.coordinationScopes?.dataset && typeof viewDef.coordinationScopes?.dataset === "string") {
50319
49405
  return newCoordinationSpace.dataset[viewDef.coordinationScopes.dataset];
50320
49406
  }
50321
49407
  if (datasets.length > 0) {
@@ -50378,8 +49464,7 @@ function upgradeFrom1_0_14(config) {
50378
49464
  };
50379
49465
  newLayout.forEach((viewDef) => {
50380
49466
  Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
50381
- var _a;
50382
- if ((_a = viewDef.props) == null ? void 0 : _a[oldProp]) {
49467
+ if (viewDef.props?.[oldProp]) {
50383
49468
  log.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
50384
49469
  }
50385
49470
  });
@@ -50396,7 +49481,7 @@ function upgradeFrom1_0_15(config) {
50396
49481
  const newLayout = layout.map((view) => {
50397
49482
  const { coordinationScopes } = view;
50398
49483
  const newCoordinationScopes = {};
50399
- if ((coordinationScopes == null ? void 0 : coordinationScopes.dataset) && Array.isArray(coordinationScopes.dataset)) {
49484
+ if (coordinationScopes?.dataset && Array.isArray(coordinationScopes.dataset)) {
50400
49485
  const coordinationScopesBy = {
50401
49486
  dataset: {}
50402
49487
  };
@@ -52603,6 +51688,7 @@ const FileType$1 = {
52603
51688
  // Neuroglancer
52604
51689
  // Precomputed (mesh) format
52605
51690
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
51691
+ OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
52606
51692
  // New file types to support old file types:
52607
51693
  // - cells.json
52608
51694
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -52831,6 +51917,7 @@ const CoordinationType$1 = {
52831
51917
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$1.FEATURE_LABELS,
52832
51918
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
52833
51919
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
51920
+ [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
52834
51921
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
52835
51922
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
52836
51923
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
@@ -53050,6 +52137,8 @@ const CoordinationType$1 = {
53050
52137
  ];
53051
52138
  ({
53052
52139
  [ViewType$1.NEUROGLANCER]: [
52140
+ CoordinationType$1.META_COORDINATION_SCOPES,
52141
+ CoordinationType$1.META_COORDINATION_SCOPES_BY,
53053
52142
  CoordinationType$1.DATASET,
53054
52143
  CoordinationType$1.SPATIAL_TARGET_X,
53055
52144
  CoordinationType$1.SPATIAL_TARGET_Y,
@@ -53071,7 +52160,26 @@ const CoordinationType$1 = {
53071
52160
  CoordinationType$1.OBS_COLOR_ENCODING,
53072
52161
  CoordinationType$1.EMBEDDING_TYPE,
53073
52162
  CoordinationType$1.ADDITIONAL_OBS_SETS,
53074
- CoordinationType$1.TOOLTIPS_VISIBLE
52163
+ CoordinationType$1.TOOLTIPS_VISIBLE,
52164
+ CoordinationType$1.FILE_UID,
52165
+ CoordinationType$1.IMAGE_LAYER,
52166
+ CoordinationType$1.SEGMENTATION_LAYER,
52167
+ CoordinationType$1.IMAGE_CHANNEL,
52168
+ CoordinationType$1.SEGMENTATION_CHANNEL,
52169
+ CoordinationType$1.POINT_LAYER,
52170
+ CoordinationType$1.FEATURE_COLOR,
52171
+ CoordinationType$1.FEATURE_FILTER_MODE,
52172
+ CoordinationType$1.FEATURE_HIGHLIGHT,
52173
+ CoordinationType$1.FEATURE_SELECTION,
52174
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
52175
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
52176
+ CoordinationType$1.SPATIAL_LAYER_COLOR,
52177
+ CoordinationType$1.SPATIAL_LAYER_OPACITY,
52178
+ CoordinationType$1.SPATIAL_LAYER_VISIBLE,
52179
+ CoordinationType$1.SPATIAL_CHANNEL_COLOR,
52180
+ CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
52181
+ CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
52182
+ CoordinationType$1.LEGEND_VISIBLE
53075
52183
  ],
53076
52184
  [ViewType$1.SCATTERPLOT]: [
53077
52185
  CoordinationType$1.DATASET,
@@ -54115,14 +53223,23 @@ z.object({
54115
53223
  z.object({
54116
53224
  // TODO: Should this explicitly specify sharded vs. unsharded?
54117
53225
  // Or can/should that be inferred from the data?
54118
- dimensionX: z.number(),
54119
- dimensionY: z.number(),
54120
- dimensionZ: z.number(),
54121
- dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
53226
+ // Note: None of these make sense to specify at the file level, since they
53227
+ // are global camera settings that would apply to all layers.
53228
+ // Intead, initial values should be set via the usual coordination space mechanism,
53229
+ // and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
53230
+ // dimensionX: z.number(),
53231
+ // dimensionY: z.number(),
53232
+ // dimensionZ: z.number(),
53233
+ // dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
54122
53234
  // TODO: should the following be passed via coordination types instead?
54123
- projectionScale: z.number(),
54124
- position: z.array(z.number()).length(3),
54125
- projectionOrientation: z.array(z.number()).length(4)
53235
+ // projectionScale: z.number(),
53236
+ // position: z.array(z.number()).length(3),
53237
+ // projectionOrientation: z.array(z.number()).length(4),
53238
+ }).partial().nullable();
53239
+ z.object({
53240
+ projectionAnnotationSpacing: z.number(),
53241
+ featureIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing feature IDs. For example, specify 'gene' to use prop_gene() in the Neuroglancer shader code."),
53242
+ pointIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing point IDs. For example, specify 'point_id' to use prop_point_id() in the Neuroglancer shader code.")
54126
53243
  }).partial().nullable();
54127
53244
  z.object({
54128
53245
  obsIndex: z.string(),
@@ -63300,8 +62417,8 @@ function dateTimeParts(d, normalize2) {
63300
62417
  parts.push(2012);
63301
62418
  }
63302
62419
  if (d.month !== void 0) {
63303
- const month2 = normalize2 ? normalizeMonth(d.month) : d.month;
63304
- parts.push(month2);
62420
+ const month = normalize2 ? normalizeMonth(d.month) : d.month;
62421
+ parts.push(month);
63305
62422
  } else if (d.quarter !== void 0) {
63306
62423
  const quarter2 = normalize2 ? normalizeQuarter(d.quarter) : d.quarter;
63307
62424
  parts.push(isNumber$1(quarter2) ? quarter2 * 3 : `${quarter2}*3`);
@@ -63311,8 +62428,8 @@ function dateTimeParts(d, normalize2) {
63311
62428
  if (d.date !== void 0) {
63312
62429
  parts.push(d.date);
63313
62430
  } else if (d.day !== void 0) {
63314
- const day2 = normalize2 ? normalizeDay(d.day) : d.day;
63315
- parts.push(isNumber$1(day2) ? day2 + 1 : `${day2}+1`);
62431
+ const day = normalize2 ? normalizeDay(d.day) : d.day;
62432
+ parts.push(isNumber$1(day) ? day + 1 : `${day}+1`);
63316
62433
  } else {
63317
62434
  parts.push(1);
63318
62435
  }
@@ -72795,7 +71912,7 @@ var __classPrivateFieldSet = function(receiver, state, value2, kind, f) {
72795
71912
  return state.set(receiver, value2), value2;
72796
71913
  };
72797
71914
  var __classPrivateFieldGet = function(receiver, state, kind, f) {
72798
- if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
71915
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
72799
71916
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
72800
71917
  };
72801
71918
  var _Optimizer_modified;