@vitessce/statistical-plots 3.3.11 → 3.4.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
@@ -936,7 +936,8 @@ const ViewType$1 = {
936
936
  OBS_SETS: "obsSets",
937
937
  OBS_SET_SIZES: "obsSetSizes",
938
938
  OBS_SET_FEATURE_VALUE_DISTRIBUTION: "obsSetFeatureValueDistribution",
939
- FEATURE_VALUE_HISTOGRAM: "featureValueHistogram"
939
+ FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
940
+ FEATURE_BAR_PLOT: "featureBarPlot"
940
941
  };
941
942
  const DataType$1 = {
942
943
  OBS_LABELS: "obsLabels",
@@ -1024,6 +1025,8 @@ const FileType$1 = {
1024
1025
  // OME-TIFF
1025
1026
  IMAGE_OME_TIFF: "image.ome-tiff",
1026
1027
  OBS_SEGMENTATIONS_OME_TIFF: "obsSegmentations.ome-tiff",
1028
+ // GLB
1029
+ OBS_SEGMENTATIONS_GLB: "obsSegmentations.glb",
1027
1030
  // New file types to support old file types:
1028
1031
  // - cells.json
1029
1032
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -1542,6 +1545,21 @@ const COMPONENT_COORDINATION_TYPES = {
1542
1545
  CoordinationType$1.FEATURE_FILTER,
1543
1546
  CoordinationType$1.FEATURE_HIGHLIGHT,
1544
1547
  CoordinationType$1.FEATURE_SELECTION
1548
+ ],
1549
+ [ViewType$1.FEATURE_BAR_PLOT]: [
1550
+ CoordinationType$1.DATASET,
1551
+ CoordinationType$1.OBS_TYPE,
1552
+ CoordinationType$1.FEATURE_TYPE,
1553
+ CoordinationType$1.FEATURE_VALUE_TYPE,
1554
+ CoordinationType$1.FEATURE_SELECTION,
1555
+ CoordinationType$1.FEATURE_VALUE_TRANSFORM,
1556
+ CoordinationType$1.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
1557
+ CoordinationType$1.OBS_SET_SELECTION,
1558
+ CoordinationType$1.OBS_SET_HIGHLIGHT,
1559
+ CoordinationType$1.OBS_HIGHLIGHT,
1560
+ CoordinationType$1.OBS_SET_COLOR,
1561
+ CoordinationType$1.OBS_COLOR_ENCODING,
1562
+ CoordinationType$1.ADDITIONAL_OBS_SETS
1545
1563
  ]
1546
1564
  };
1547
1565
  function commonjsRequire(path2) {
@@ -10737,6 +10755,24 @@ const obsSetsSpatialdataSchema = z.object({
10737
10755
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
10738
10756
  obsSets: annDataObsSets
10739
10757
  });
10758
+ z.object({
10759
+ targetX: z.number(),
10760
+ targetY: z.number(),
10761
+ targetZ: z.number(),
10762
+ rotationX: z.number(),
10763
+ rotationY: z.number(),
10764
+ rotationZ: z.number(),
10765
+ scaleX: z.number(),
10766
+ scaleY: z.number(),
10767
+ scaleZ: z.number(),
10768
+ sceneRotationX: z.number(),
10769
+ sceneRotationY: z.number(),
10770
+ sceneRotationZ: z.number(),
10771
+ sceneScaleX: z.number(),
10772
+ sceneScaleY: z.number(),
10773
+ sceneScaleZ: z.number(),
10774
+ materialSide: z.enum(["front", "back"])
10775
+ }).partial().nullable();
10740
10776
  z.object({
10741
10777
  obsIndex: z.string(),
10742
10778
  obsEmbedding: z.array(z.string()).length(2)
@@ -10985,7 +11021,7 @@ var tinycolor$1 = { exports: {} };
10985
11021
  return this._a == 1 ? "hsl(" + h2 + ", " + s + "%, " + l + "%)" : "hsla(" + h2 + ", " + s + "%, " + l + "%, " + this._roundA + ")";
10986
11022
  },
10987
11023
  toHex: function(allow3Char) {
10988
- return rgbToHex(this._r, this._g, this._b, allow3Char);
11024
+ return rgbToHex2(this._r, this._g, this._b, allow3Char);
10989
11025
  },
10990
11026
  toHexString: function(allow3Char) {
10991
11027
  return "#" + this.toHex(allow3Char);
@@ -11015,7 +11051,7 @@ var tinycolor$1 = { exports: {} };
11015
11051
  if (this._a < 1) {
11016
11052
  return false;
11017
11053
  }
11018
- return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
11054
+ return hexNames[rgbToHex2(this._r, this._g, this._b, true)] || false;
11019
11055
  },
11020
11056
  toFilter: function(secondColor) {
11021
11057
  var hex8String = "#" + rgbaToArgbHex(this._r, this._g, this._b, this._a);
@@ -11276,7 +11312,7 @@ var tinycolor$1 = { exports: {} };
11276
11312
  var i = Math2.floor(h2), f = h2 - i, p = v * (1 - s), q = v * (1 - f * s), t4 = v * (1 - (1 - f) * s), mod = i % 6, r3 = [v, q, p, p, t4, v][mod], g = [t4, v, v, q, p, p][mod], b2 = [p, p, t4, v, v, q][mod];
11277
11313
  return { r: r3 * 255, g: g * 255, b: b2 * 255 };
11278
11314
  }
11279
- function rgbToHex(r3, g, b2, allow3Char) {
11315
+ function rgbToHex2(r3, g, b2, allow3Char) {
11280
11316
  var hex2 = [
11281
11317
  pad2(mathRound(r3).toString(16)),
11282
11318
  pad2(mathRound(g).toString(16)),
@@ -19143,7 +19179,7 @@ function _objectWithoutPropertiesLoose$1(source2, excluded) {
19143
19179
  }
19144
19180
  return target2;
19145
19181
  }
19146
- function _objectWithoutProperties(source2, excluded) {
19182
+ function _objectWithoutProperties$1(source2, excluded) {
19147
19183
  if (source2 == null)
19148
19184
  return {};
19149
19185
  var target2 = _objectWithoutPropertiesLoose$1(source2, excluded);
@@ -19183,7 +19219,7 @@ function createBreakpoints(breakpoints) {
19183
19219
  md: 960,
19184
19220
  lg: 1280,
19185
19221
  xl: 1920
19186
- } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit2 = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
19222
+ } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit2 = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties$1(breakpoints, ["values", "unit", "step"]);
19187
19223
  function up(key2) {
19188
19224
  var value2 = typeof values2[key2] === "number" ? values2[key2] : key2;
19189
19225
  return "@media (min-width:".concat(value2).concat(unit2, ")");
@@ -19355,7 +19391,7 @@ function createPalette(palette) {
19355
19391
  light: green$1[300],
19356
19392
  main: green$1[500],
19357
19393
  dark: green$1[700]
19358
- } : _palette$success, _palette$type = palette.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
19394
+ } : _palette$success, _palette$type = palette.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties$1(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
19359
19395
  function getContrastText(background2) {
19360
19396
  var contrastText = getContrastRatio(background2, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
19361
19397
  {
@@ -19447,7 +19483,7 @@ var caseAllCaps = {
19447
19483
  };
19448
19484
  var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
19449
19485
  function createTypography(palette, typography) {
19450
- var _ref3 = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref3.fontFamily, fontFamily2 = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref3.fontSize, fontSize2 = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref3.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref3.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref3.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref3.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref3.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref3.allVariants, pxToRem2 = _ref3.pxToRem, other = _objectWithoutProperties(_ref3, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
19486
+ var _ref3 = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref3.fontFamily, fontFamily2 = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref3.fontSize, fontSize2 = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref3.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref3.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref3.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref3.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref3.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref3.allVariants, pxToRem2 = _ref3.pxToRem, other = _objectWithoutProperties$1(_ref3, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
19451
19487
  {
19452
19488
  if (typeof fontSize2 !== "number") {
19453
19489
  console.error("Material-UI: `fontSize` is required to be a number.");
@@ -19519,9 +19555,8 @@ const responsivePropType$1 = responsivePropType;
19519
19555
  function _arrayLikeToArray$3(arr, len) {
19520
19556
  if (len == null || len > arr.length)
19521
19557
  len = arr.length;
19522
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
19558
+ for (var i = 0, arr2 = new Array(len); i < len; i++)
19523
19559
  arr2[i] = arr[i];
19524
- }
19525
19560
  return arr2;
19526
19561
  }
19527
19562
  function _arrayWithoutHoles$1(arr) {
@@ -19551,52 +19586,6 @@ function _nonIterableSpread$1() {
19551
19586
  function _toConsumableArray$1(arr) {
19552
19587
  return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$1();
19553
19588
  }
19554
- function _typeof$1(obj) {
19555
- "@babel/helpers - typeof";
19556
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
19557
- return typeof obj2;
19558
- } : function(obj2) {
19559
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
19560
- }, _typeof$1(obj);
19561
- }
19562
- function _arrayWithHoles(arr) {
19563
- if (Array.isArray(arr))
19564
- return arr;
19565
- }
19566
- function _iterableToArrayLimit(arr, i) {
19567
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
19568
- if (_i == null)
19569
- return;
19570
- var _arr = [];
19571
- var _n = true;
19572
- var _d = false;
19573
- var _s, _e;
19574
- try {
19575
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
19576
- _arr.push(_s.value);
19577
- if (i && _arr.length === i)
19578
- break;
19579
- }
19580
- } catch (err) {
19581
- _d = true;
19582
- _e = err;
19583
- } finally {
19584
- try {
19585
- if (!_n && _i["return"] != null)
19586
- _i["return"]();
19587
- } finally {
19588
- if (_d)
19589
- throw _e;
19590
- }
19591
- }
19592
- return _arr;
19593
- }
19594
- function _nonIterableRest() {
19595
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
19596
- }
19597
- function _slicedToArray(arr, i) {
19598
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest();
19599
- }
19600
19589
  var spacingKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY"];
19601
19590
  function createUnarySpacing(theme) {
19602
19591
  var themeSpacing = theme.spacing || 8;
@@ -19713,7 +19702,7 @@ const transitions = {
19713
19702
  create: function create() {
19714
19703
  var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
19715
19704
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
19716
- var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties(options, ["duration", "easing", "delay"]);
19705
+ var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties$1(options, ["duration", "easing", "delay"]);
19717
19706
  {
19718
19707
  var isString2 = function isString3(value2) {
19719
19708
  return typeof value2 === "string";
@@ -19761,7 +19750,7 @@ var zIndex = {
19761
19750
  const zIndex$1 = zIndex;
19762
19751
  function createTheme() {
19763
19752
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
19764
- var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
19753
+ var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties$1(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
19765
19754
  var palette = createPalette(paletteInput);
19766
19755
  var breakpoints = createBreakpoints(breakpointsInput);
19767
19756
  var spacing = createSpacing(spacingInput);
@@ -19880,12 +19869,12 @@ function warning(condition, message) {
19880
19869
  }
19881
19870
  }
19882
19871
  }
19883
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
19872
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
19884
19873
  return typeof obj;
19885
19874
  } : function(obj) {
19886
19875
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
19887
19876
  };
19888
- var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === "object" && document.nodeType === 9;
19877
+ var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === "object" && document.nodeType === 9;
19889
19878
  function _defineProperties$1(target2, props) {
19890
19879
  for (var i = 0; i < props.length; i++) {
19891
19880
  var descriptor = props[i];
@@ -21890,40 +21879,6 @@ function defaultUnit(options) {
21890
21879
  onChangeValue: onChangeValue2
21891
21880
  };
21892
21881
  }
21893
- function _arrayLikeToArray$2(arr, len) {
21894
- if (len == null || len > arr.length)
21895
- len = arr.length;
21896
- for (var i = 0, arr2 = new Array(len); i < len; i++)
21897
- arr2[i] = arr[i];
21898
- return arr2;
21899
- }
21900
- function _arrayWithoutHoles(arr) {
21901
- if (Array.isArray(arr))
21902
- return _arrayLikeToArray$2(arr);
21903
- }
21904
- function _iterableToArray(iter) {
21905
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
21906
- return Array.from(iter);
21907
- }
21908
- function _unsupportedIterableToArray$2(o, minLen) {
21909
- if (!o)
21910
- return;
21911
- if (typeof o === "string")
21912
- return _arrayLikeToArray$2(o, minLen);
21913
- var n = Object.prototype.toString.call(o).slice(8, -1);
21914
- if (n === "Object" && o.constructor)
21915
- n = o.constructor.name;
21916
- if (n === "Map" || n === "Set")
21917
- return Array.from(o);
21918
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
21919
- return _arrayLikeToArray$2(o, minLen);
21920
- }
21921
- function _nonIterableSpread() {
21922
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
21923
- }
21924
- function _toConsumableArray(arr) {
21925
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread();
21926
- }
21927
21882
  var js = "";
21928
21883
  var css = "";
21929
21884
  var vendor = "";
@@ -22194,7 +22149,7 @@ var propertyDetectors = plugins.filter(function(p) {
22194
22149
  var noPrefill = plugins.filter(function(p) {
22195
22150
  return p.noPrefill;
22196
22151
  }).reduce(function(a2, p) {
22197
- a2.push.apply(a2, _toConsumableArray(p.noPrefill));
22152
+ a2.push.apply(a2, _toConsumableArray$1(p.noPrefill));
22198
22153
  return a2;
22199
22154
  }, []);
22200
22155
  var el;
@@ -22370,13 +22325,31 @@ function jssPreset() {
22370
22325
  ]
22371
22326
  };
22372
22327
  }
22328
+ function _objectWithoutProperties(source2, excluded) {
22329
+ if (source2 == null)
22330
+ return {};
22331
+ var target2 = _objectWithoutPropertiesLoose(source2, excluded);
22332
+ var key2, i;
22333
+ if (Object.getOwnPropertySymbols) {
22334
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
22335
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
22336
+ key2 = sourceSymbolKeys[i];
22337
+ if (excluded.indexOf(key2) >= 0)
22338
+ continue;
22339
+ if (!Object.prototype.propertyIsEnumerable.call(source2, key2))
22340
+ continue;
22341
+ target2[key2] = source2[key2];
22342
+ }
22343
+ }
22344
+ return target2;
22345
+ }
22373
22346
  function mergeClasses() {
22374
22347
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
22375
22348
  var baseClasses = options.baseClasses, newClasses = options.newClasses, Component = options.Component;
22376
22349
  if (!newClasses) {
22377
22350
  return baseClasses;
22378
22351
  }
22379
- var nextClasses = _extends$1({}, baseClasses);
22352
+ var nextClasses = _extends$2({}, baseClasses);
22380
22353
  {
22381
22354
  if (typeof newClasses === "string") {
22382
22355
  console.error(["Material-UI: The value `".concat(newClasses, "` ") + "provided to the classes prop of ".concat(getDisplayName(Component), " is incorrect."), "You might want to use the className prop instead."].join("\n"));
@@ -22448,7 +22421,7 @@ var injectFirstNode;
22448
22421
  function StylesProvider(props) {
22449
22422
  var children2 = props.children, _props$injectFirst = props.injectFirst, injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst, _props$disableGenerat = props.disableGeneration, disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat, localOptions = _objectWithoutProperties(props, ["children", "injectFirst", "disableGeneration"]);
22450
22423
  var outerOptions = React__default.useContext(StylesContext);
22451
- var context2 = _extends$1({}, outerOptions, {
22424
+ var context2 = _extends$2({}, outerOptions, {
22452
22425
  disableGeneration
22453
22426
  }, localOptions);
22454
22427
  {
@@ -22553,7 +22526,7 @@ const noopTheme$1 = noopTheme;
22553
22526
  function getStylesCreator(stylesOrCreator) {
22554
22527
  var themingEnabled = typeof stylesOrCreator === "function";
22555
22528
  {
22556
- if (_typeof$1(stylesOrCreator) !== "object" && !themingEnabled) {
22529
+ if (_typeof$2(stylesOrCreator) !== "object" && !themingEnabled) {
22557
22530
  console.error(["Material-UI: The `styles` argument provided is invalid.", "You need to provide a function generating the styles or a styles object."].join("\n"));
22558
22531
  }
22559
22532
  }
@@ -22574,7 +22547,7 @@ function getStylesCreator(stylesOrCreator) {
22574
22547
  return styles16;
22575
22548
  }
22576
22549
  var overrides = theme.overrides[name2];
22577
- var stylesWithOverrides = _extends$1({}, styles16);
22550
+ var stylesWithOverrides = _extends$2({}, styles16);
22578
22551
  Object.keys(overrides).forEach(function(key2) {
22579
22552
  {
22580
22553
  if (!stylesWithOverrides[key2]) {
@@ -22635,7 +22608,7 @@ function attach(_ref22, props) {
22635
22608
  };
22636
22609
  multiKeyStore$1.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);
22637
22610
  }
22638
- var options = _extends$1({}, stylesCreator.options, stylesOptions, {
22611
+ var options = _extends$2({}, stylesCreator.options, stylesOptions, {
22639
22612
  theme,
22640
22613
  flip: typeof stylesOptions.flip === "boolean" ? stylesOptions.flip : theme.direction === "rtl"
22641
22614
  });
@@ -22648,7 +22621,7 @@ function attach(_ref22, props) {
22648
22621
  }
22649
22622
  var styles16 = stylesCreator.create(theme, name2);
22650
22623
  if (!staticSheet) {
22651
- staticSheet = stylesOptions.jss.createStyleSheet(styles16, _extends$1({
22624
+ staticSheet = stylesOptions.jss.createStyleSheet(styles16, _extends$2({
22652
22625
  link: false
22653
22626
  }, options));
22654
22627
  staticSheet.attach();
@@ -22663,7 +22636,7 @@ function attach(_ref22, props) {
22663
22636
  sheetManager.dynamicStyles = getDynamicStyles(styles16);
22664
22637
  }
22665
22638
  if (sheetManager.dynamicStyles) {
22666
- var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$1({
22639
+ var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$2({
22667
22640
  link: true
22668
22641
  }, options));
22669
22642
  dynamicSheet.update(props);
@@ -22745,7 +22718,7 @@ function makeStyles$1(stylesOrCreator) {
22745
22718
  var useStyles2 = function useStyles3() {
22746
22719
  var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
22747
22720
  var theme = useTheme$1() || defaultTheme2;
22748
- var stylesOptions = _extends$1({}, React__default.useContext(StylesContext), stylesOptions2);
22721
+ var stylesOptions = _extends$2({}, React__default.useContext(StylesContext), stylesOptions2);
22749
22722
  var instance = React__default.useRef();
22750
22723
  var shouldUpdate = React__default.useRef();
22751
22724
  useSynchronousEffect(function() {
@@ -22777,31 +22750,6 @@ function makeStyles$1(stylesOrCreator) {
22777
22750
  };
22778
22751
  return useStyles2;
22779
22752
  }
22780
- function _classCallCheck(instance, Constructor) {
22781
- if (!(instance instanceof Constructor)) {
22782
- throw new TypeError("Cannot call a class as a function");
22783
- }
22784
- }
22785
- function _defineProperties(target2, props) {
22786
- for (var i = 0; i < props.length; i++) {
22787
- var descriptor = props[i];
22788
- descriptor.enumerable = descriptor.enumerable || false;
22789
- descriptor.configurable = true;
22790
- if ("value" in descriptor)
22791
- descriptor.writable = true;
22792
- Object.defineProperty(target2, descriptor.key, descriptor);
22793
- }
22794
- }
22795
- function _createClass(Constructor, protoProps, staticProps) {
22796
- if (protoProps)
22797
- _defineProperties(Constructor.prototype, protoProps);
22798
- if (staticProps)
22799
- _defineProperties(Constructor, staticProps);
22800
- Object.defineProperty(Constructor, "prototype", {
22801
- writable: false
22802
- });
22803
- return Constructor;
22804
- }
22805
22753
  var reactIs = reactIsExports$1;
22806
22754
  var REACT_STATICS = {
22807
22755
  childContextTypes: true,
@@ -22902,7 +22850,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
22902
22850
  }
22903
22851
  }
22904
22852
  }
22905
- var useStyles2 = makeStyles$1(stylesOrCreator, _extends$1({
22853
+ var useStyles2 = makeStyles$1(stylesOrCreator, _extends$2({
22906
22854
  defaultTheme: defaultTheme2,
22907
22855
  Component,
22908
22856
  name: name2 || Component.displayName,
@@ -22911,7 +22859,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
22911
22859
  var WithStyles = /* @__PURE__ */ React__default.forwardRef(function WithStyles2(props, ref2) {
22912
22860
  props.classes;
22913
22861
  var innerRef = props.innerRef, other = _objectWithoutProperties(props, ["classes", "innerRef"]);
22914
- var classes = useStyles2(_extends$1({}, Component.defaultProps, props));
22862
+ var classes = useStyles2(_extends$2({}, Component.defaultProps, props));
22915
22863
  var theme;
22916
22864
  var more = other;
22917
22865
  if (typeof name2 === "string" || withTheme) {
@@ -22927,7 +22875,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
22927
22875
  more.theme = theme;
22928
22876
  }
22929
22877
  }
22930
- return /* @__PURE__ */ React__default.createElement(Component, _extends$1({
22878
+ return /* @__PURE__ */ React__default.createElement(Component, _extends$2({
22931
22879
  ref: innerRef || ref2,
22932
22880
  classes
22933
22881
  }, more));
@@ -23060,7 +23008,7 @@ var styles$n = function styles(theme) {
23060
23008
  };
23061
23009
  };
23062
23010
  var SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(props, ref2) {
23063
- var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize2 = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
23011
+ var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize2 = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties$1(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
23064
23012
  return /* @__PURE__ */ React.createElement(Component, _extends$1({
23065
23013
  className: clsx(classes.root, className, color2 !== "inherit" && classes["color".concat(capitalize$1(color2))], fontSize2 !== "default" && fontSize2 !== "medium" && classes["fontSize".concat(capitalize$1(fontSize2))]),
23066
23014
  focusable: "false",
@@ -23241,6 +23189,69 @@ function useForkRef(refA, refB) {
23241
23189
  };
23242
23190
  }, [refA, refB]);
23243
23191
  }
23192
+ function _arrayWithHoles(arr) {
23193
+ if (Array.isArray(arr))
23194
+ return arr;
23195
+ }
23196
+ function _iterableToArray(iter) {
23197
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
23198
+ return Array.from(iter);
23199
+ }
23200
+ function _arrayLikeToArray$2(arr, len) {
23201
+ if (len == null || len > arr.length)
23202
+ len = arr.length;
23203
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
23204
+ arr2[i] = arr[i];
23205
+ }
23206
+ return arr2;
23207
+ }
23208
+ function _unsupportedIterableToArray$2(o, minLen) {
23209
+ if (!o)
23210
+ return;
23211
+ if (typeof o === "string")
23212
+ return _arrayLikeToArray$2(o, minLen);
23213
+ var n = Object.prototype.toString.call(o).slice(8, -1);
23214
+ if (n === "Object" && o.constructor)
23215
+ n = o.constructor.name;
23216
+ if (n === "Map" || n === "Set")
23217
+ return Array.from(o);
23218
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23219
+ return _arrayLikeToArray$2(o, minLen);
23220
+ }
23221
+ function _nonIterableRest() {
23222
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23223
+ }
23224
+ function _iterableToArrayLimit(arr, i) {
23225
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
23226
+ if (_i == null)
23227
+ return;
23228
+ var _arr = [];
23229
+ var _n = true;
23230
+ var _d = false;
23231
+ var _s, _e;
23232
+ try {
23233
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
23234
+ _arr.push(_s.value);
23235
+ if (i && _arr.length === i)
23236
+ break;
23237
+ }
23238
+ } catch (err) {
23239
+ _d = true;
23240
+ _e = err;
23241
+ } finally {
23242
+ try {
23243
+ if (!_n && _i["return"] != null)
23244
+ _i["return"]();
23245
+ } finally {
23246
+ if (_d)
23247
+ throw _e;
23248
+ }
23249
+ }
23250
+ return _arr;
23251
+ }
23252
+ function _slicedToArray(arr, i) {
23253
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest();
23254
+ }
23244
23255
  const config = {
23245
23256
  disabled: false
23246
23257
  };
@@ -23725,7 +23736,7 @@ var styles$m = function styles2(theme) {
23725
23736
  }, elevations);
23726
23737
  };
23727
23738
  var Paper = /* @__PURE__ */ React.forwardRef(function Paper2(props, ref2) {
23728
- var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square2 = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "component", "square", "elevation", "variant"]);
23739
+ var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square2 = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties$1(props, ["classes", "className", "component", "square", "elevation", "variant"]);
23729
23740
  return /* @__PURE__ */ React.createElement(Component, _extends$1({
23730
23741
  className: clsx(classes.root, className, variant === "outlined" ? classes.outlined : classes["elevation".concat(elevation)], !square2 && classes.rounded),
23731
23742
  ref: ref2
@@ -23780,6 +23791,16 @@ Paper.propTypes = {
23780
23791
  const Paper$1 = withStyles2(styles$m, {
23781
23792
  name: "MuiPaper"
23782
23793
  })(Paper);
23794
+ function _arrayWithoutHoles(arr) {
23795
+ if (Array.isArray(arr))
23796
+ return _arrayLikeToArray$2(arr);
23797
+ }
23798
+ function _nonIterableSpread() {
23799
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23800
+ }
23801
+ function _toConsumableArray(arr) {
23802
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread();
23803
+ }
23783
23804
  var FormControlContext = React.createContext();
23784
23805
  {
23785
23806
  FormControlContext.displayName = "FormControlContext";
@@ -23863,6 +23884,31 @@ Portal.propTypes = {
23863
23884
  Portal["propTypes"] = exactProp(Portal.propTypes);
23864
23885
  }
23865
23886
  const Portal$1 = Portal;
23887
+ function _classCallCheck(instance, Constructor) {
23888
+ if (!(instance instanceof Constructor)) {
23889
+ throw new TypeError("Cannot call a class as a function");
23890
+ }
23891
+ }
23892
+ function _defineProperties(target2, props) {
23893
+ for (var i = 0; i < props.length; i++) {
23894
+ var descriptor = props[i];
23895
+ descriptor.enumerable = descriptor.enumerable || false;
23896
+ descriptor.configurable = true;
23897
+ if ("value" in descriptor)
23898
+ descriptor.writable = true;
23899
+ Object.defineProperty(target2, descriptor.key, descriptor);
23900
+ }
23901
+ }
23902
+ function _createClass(Constructor, protoProps, staticProps) {
23903
+ if (protoProps)
23904
+ _defineProperties(Constructor.prototype, protoProps);
23905
+ if (staticProps)
23906
+ _defineProperties(Constructor, staticProps);
23907
+ Object.defineProperty(Constructor, "prototype", {
23908
+ writable: false
23909
+ });
23910
+ return Constructor;
23911
+ }
23866
23912
  function getScrollbarSize() {
23867
23913
  var scrollDiv = document.createElement("div");
23868
23914
  scrollDiv.style.width = "99px";
@@ -23895,7 +23941,7 @@ function getPaddingRight(node) {
23895
23941
  function ariaHiddenSiblings(container, mountNode, currentNode) {
23896
23942
  var nodesToExclude = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : [];
23897
23943
  var show = arguments.length > 4 ? arguments[4] : void 0;
23898
- var blacklist = [mountNode, currentNode].concat(_toConsumableArray$1(nodesToExclude));
23944
+ var blacklist = [mountNode, currentNode].concat(_toConsumableArray(nodesToExclude));
23899
23945
  var blacklistTagNames = ["TEMPLATE", "SCRIPT", "STYLE"];
23900
23946
  [].forEach.call(container.children, function(node) {
23901
23947
  if (node.nodeType === 1 && blacklist.indexOf(node) === -1 && blacklistTagNames.indexOf(node.tagName) === -1) {
@@ -24210,7 +24256,7 @@ var styles$l = {
24210
24256
  }
24211
24257
  };
24212
24258
  var SimpleBackdrop = /* @__PURE__ */ React.forwardRef(function SimpleBackdrop2(props, ref2) {
24213
- var _props$invisible = props.invisible, invisible = _props$invisible === void 0 ? false : _props$invisible, open = props.open, other = _objectWithoutProperties(props, ["invisible", "open"]);
24259
+ var _props$invisible = props.invisible, invisible = _props$invisible === void 0 ? false : _props$invisible, open = props.open, other = _objectWithoutProperties$1(props, ["invisible", "open"]);
24214
24260
  return open ? /* @__PURE__ */ React.createElement("div", _extends$1({
24215
24261
  "aria-hidden": true,
24216
24262
  ref: ref2
@@ -24262,7 +24308,7 @@ var Modal = /* @__PURE__ */ React.forwardRef(function Modal2(inProps, ref2) {
24262
24308
  props: _extends$1({}, inProps),
24263
24309
  theme
24264
24310
  });
24265
- var _props$BackdropCompon = props.BackdropComponent, BackdropComponent = _props$BackdropCompon === void 0 ? SimpleBackdrop$1 : _props$BackdropCompon, BackdropProps = props.BackdropProps, children2 = props.children, _props$closeAfterTran = props.closeAfterTransition, closeAfterTransition = _props$closeAfterTran === void 0 ? false : _props$closeAfterTran, container = props.container, _props$disableAutoFoc = props.disableAutoFocus, disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$disableBackdro = props.disableBackdropClick, disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro, _props$disableEnforce = props.disableEnforceFocus, disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce, _props$disableEscapeK = props.disableEscapeKeyDown, disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$disableRestore = props.disableRestoreFocus, disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore, _props$disableScrollL = props.disableScrollLock, disableScrollLock = _props$disableScrollL === void 0 ? false : _props$disableScrollL, _props$hideBackdrop = props.hideBackdrop, hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, _props$manager = props.manager, manager = _props$manager === void 0 ? defaultManager : _props$manager, onBackdropClick = props.onBackdropClick, onClose = props.onClose, onEscapeKeyDown = props.onEscapeKeyDown, onRendered = props.onRendered, open = props.open, other = _objectWithoutProperties(props, ["BackdropComponent", "BackdropProps", "children", "closeAfterTransition", "container", "disableAutoFocus", "disableBackdropClick", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onEscapeKeyDown", "onRendered", "open"]);
24311
+ var _props$BackdropCompon = props.BackdropComponent, BackdropComponent = _props$BackdropCompon === void 0 ? SimpleBackdrop$1 : _props$BackdropCompon, BackdropProps = props.BackdropProps, children2 = props.children, _props$closeAfterTran = props.closeAfterTransition, closeAfterTransition = _props$closeAfterTran === void 0 ? false : _props$closeAfterTran, container = props.container, _props$disableAutoFoc = props.disableAutoFocus, disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$disableBackdro = props.disableBackdropClick, disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro, _props$disableEnforce = props.disableEnforceFocus, disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce, _props$disableEscapeK = props.disableEscapeKeyDown, disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$disableRestore = props.disableRestoreFocus, disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore, _props$disableScrollL = props.disableScrollLock, disableScrollLock = _props$disableScrollL === void 0 ? false : _props$disableScrollL, _props$hideBackdrop = props.hideBackdrop, hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, _props$manager = props.manager, manager = _props$manager === void 0 ? defaultManager : _props$manager, onBackdropClick = props.onBackdropClick, onClose = props.onClose, onEscapeKeyDown = props.onEscapeKeyDown, onRendered = props.onRendered, open = props.open, other = _objectWithoutProperties$1(props, ["BackdropComponent", "BackdropProps", "children", "closeAfterTransition", "container", "disableAutoFocus", "disableBackdropClick", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onEscapeKeyDown", "onRendered", "open"]);
24266
24312
  var _React$useState = React.useState(true), exited = _React$useState[0], setExited = _React$useState[1];
24267
24313
  var modal = React.useRef({});
24268
24314
  var mountNodeRef = React.useRef(null);
@@ -24532,7 +24578,7 @@ var styles$j = {
24532
24578
  }
24533
24579
  };
24534
24580
  var TextareaAutosize = /* @__PURE__ */ React.forwardRef(function TextareaAutosize2(props, ref2) {
24535
- var onChange = props.onChange, rows = props.rows, rowsMax = props.rowsMax, rowsMinProp = props.rowsMin, maxRowsProp = props.maxRows, _props$minRows = props.minRows, minRowsProp = _props$minRows === void 0 ? 1 : _props$minRows, style2 = props.style, value2 = props.value, other = _objectWithoutProperties(props, ["onChange", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "style", "value"]);
24581
+ var onChange = props.onChange, rows = props.rows, rowsMax = props.rowsMax, rowsMinProp = props.rowsMin, maxRowsProp = props.maxRows, _props$minRows = props.minRows, minRowsProp = _props$minRows === void 0 ? 1 : _props$minRows, style2 = props.style, value2 = props.value, other = _objectWithoutProperties$1(props, ["onChange", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "style", "value"]);
24536
24582
  var maxRows = maxRowsProp || rowsMax;
24537
24583
  var minRows = rows || rowsMinProp || minRowsProp;
24538
24584
  var _React$useRef = React.useRef(value2 != null), isControlled = _React$useRef.current;
@@ -24848,7 +24894,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref2
24848
24894
  props.error;
24849
24895
  var _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, id2 = props.id, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$inputProps = props.inputProps, inputPropsProp = _props$inputProps === void 0 ? {} : _props$inputProps, inputRefProp = props.inputRef;
24850
24896
  props.margin;
24851
- var _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onClick = props.onClick, onFocus = props.onFocus, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, placeholder = props.placeholder, readOnly = props.readOnly, renderSuffix = props.renderSuffix, rows = props.rows, rowsMax = props.rowsMax, rowsMin = props.rowsMin, maxRows = props.maxRows, minRows = props.minRows, startAdornment = props.startAdornment, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, valueProp = props.value, other = _objectWithoutProperties(props, ["aria-describedby", "autoComplete", "autoFocus", "classes", "className", "color", "defaultValue", "disabled", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "startAdornment", "type", "value"]);
24897
+ var _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onClick = props.onClick, onFocus = props.onFocus, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, placeholder = props.placeholder, readOnly = props.readOnly, renderSuffix = props.renderSuffix, rows = props.rows, rowsMax = props.rowsMax, rowsMin = props.rowsMin, maxRows = props.maxRows, minRows = props.minRows, startAdornment = props.startAdornment, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, valueProp = props.value, other = _objectWithoutProperties$1(props, ["aria-describedby", "autoComplete", "autoFocus", "classes", "className", "color", "defaultValue", "disabled", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "startAdornment", "type", "value"]);
24852
24898
  var value2 = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
24853
24899
  var _React$useRef = React.useRef(value2 != null), isControlled = _React$useRef.current;
24854
24900
  var inputRef = React.useRef();
@@ -25349,7 +25395,7 @@ var styles$h = function styles5(theme) {
25349
25395
  };
25350
25396
  };
25351
25397
  var FilledInput = /* @__PURE__ */ React.forwardRef(function FilledInput2(props, ref2) {
25352
- var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]);
25398
+ var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties$1(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]);
25353
25399
  return /* @__PURE__ */ React.createElement(InputBase$1, _extends$1({
25354
25400
  classes: _extends$1({}, classes, {
25355
25401
  root: clsx(classes.root, !disableUnderline && classes.underline),
@@ -25516,7 +25562,7 @@ var styles$g = {
25516
25562
  }
25517
25563
  };
25518
25564
  var FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(props, ref2) {
25519
- var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error2 = _props$error === void 0 ? false : _props$error, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, visuallyFocused = props.focused, _props$hiddenLabel = props.hiddenLabel, hiddenLabel = _props$hiddenLabel === void 0 ? false : _props$hiddenLabel, _props$margin = props.margin, margin = _props$margin === void 0 ? "none" : _props$margin, _props$required = props.required, required2 = _props$required === void 0 ? false : _props$required, size = props.size, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "disabled", "error", "fullWidth", "focused", "hiddenLabel", "margin", "required", "size", "variant"]);
25565
+ var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error2 = _props$error === void 0 ? false : _props$error, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, visuallyFocused = props.focused, _props$hiddenLabel = props.hiddenLabel, hiddenLabel = _props$hiddenLabel === void 0 ? false : _props$hiddenLabel, _props$margin = props.margin, margin = _props$margin === void 0 ? "none" : _props$margin, _props$required = props.required, required2 = _props$required === void 0 ? false : _props$required, size = props.size, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties$1(props, ["children", "classes", "className", "color", "component", "disabled", "error", "fullWidth", "focused", "hiddenLabel", "margin", "required", "size", "variant"]);
25520
25566
  var _React$useState = React.useState(function() {
25521
25567
  var initialAdornedStart = false;
25522
25568
  if (children2) {
@@ -25715,7 +25761,7 @@ var FormHelperText = /* @__PURE__ */ React.forwardRef(function FormHelperText2(p
25715
25761
  props.margin;
25716
25762
  props.required;
25717
25763
  props.variant;
25718
- var other = _objectWithoutProperties(props, ["children", "classes", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"]);
25764
+ var other = _objectWithoutProperties$1(props, ["children", "classes", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"]);
25719
25765
  var muiFormControl = useFormControl();
25720
25766
  var fcs = formControlState({
25721
25767
  props,
@@ -25843,7 +25889,7 @@ var FormLabel = /* @__PURE__ */ React.forwardRef(function FormLabel2(props, ref2
25843
25889
  props.filled;
25844
25890
  props.focused;
25845
25891
  props.required;
25846
- var other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "disabled", "error", "filled", "focused", "required"]);
25892
+ var other = _objectWithoutProperties$1(props, ["children", "classes", "className", "color", "component", "disabled", "error", "filled", "focused", "required"]);
25847
25893
  var muiFormControl = useFormControl();
25848
25894
  var fcs = formControlState({
25849
25895
  props,
@@ -25923,7 +25969,7 @@ var styles$d = {
25923
25969
  }
25924
25970
  };
25925
25971
  var Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref2) {
25926
- var children2 = props.children, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style2 = props.style, _props$timeout = props.timeout, timeout3 = _props$timeout === void 0 ? "auto" : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition$1 : _props$TransitionComp, other = _objectWithoutProperties(props, ["children", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]);
25972
+ var children2 = props.children, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style2 = props.style, _props$timeout = props.timeout, timeout3 = _props$timeout === void 0 ? "auto" : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition$1 : _props$TransitionComp, other = _objectWithoutProperties$1(props, ["children", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]);
25927
25973
  var timer2 = React.useRef();
25928
25974
  var autoTimeout = React.useRef();
25929
25975
  var theme = useTheme();
@@ -26189,7 +26235,7 @@ var styles$c = function styles8(theme) {
26189
26235
  };
26190
26236
  };
26191
26237
  var Input = /* @__PURE__ */ React.forwardRef(function Input2(props, ref2) {
26192
- var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]);
26238
+ var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties$1(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]);
26193
26239
  return /* @__PURE__ */ React.createElement(InputBase$1, _extends$1({
26194
26240
  classes: _extends$1({}, classes, {
26195
26241
  root: clsx(classes.root, !disableUnderline && classes.underline),
@@ -26407,7 +26453,7 @@ var InputLabel = /* @__PURE__ */ React.forwardRef(function InputLabel2(props, re
26407
26453
  props.margin;
26408
26454
  var shrinkProp = props.shrink;
26409
26455
  props.variant;
26410
- var other = _objectWithoutProperties(props, ["classes", "className", "disableAnimation", "margin", "shrink", "variant"]);
26456
+ var other = _objectWithoutProperties$1(props, ["classes", "className", "disableAnimation", "margin", "shrink", "variant"]);
26411
26457
  var muiFormControl = useFormControl();
26412
26458
  var shrink = shrinkProp;
26413
26459
  if (typeof shrink === "undefined" && muiFormControl) {
@@ -26519,7 +26565,7 @@ var styles$a = {
26519
26565
  }
26520
26566
  };
26521
26567
  var List = /* @__PURE__ */ React.forwardRef(function List2(props, ref2) {
26522
- var children2 = props.children, classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "ul" : _props$component, _props$dense = props.dense, dense = _props$dense === void 0 ? false : _props$dense, _props$disablePadding = props.disablePadding, disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding, subheader = props.subheader, other = _objectWithoutProperties(props, ["children", "classes", "className", "component", "dense", "disablePadding", "subheader"]);
26568
+ var children2 = props.children, classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "ul" : _props$component, _props$dense = props.dense, dense = _props$dense === void 0 ? false : _props$dense, _props$disablePadding = props.disablePadding, disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding, subheader = props.subheader, other = _objectWithoutProperties$1(props, ["children", "classes", "className", "component", "dense", "disablePadding", "subheader"]);
26523
26569
  var context2 = React.useMemo(function() {
26524
26570
  return {
26525
26571
  dense
@@ -26633,7 +26679,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref2) {
26633
26679
  } : _props$anchorOrigin, anchorPosition = props.anchorPosition, _props$anchorReferenc = props.anchorReference, anchorReference = _props$anchorReferenc === void 0 ? "anchorEl" : _props$anchorReferenc, children2 = props.children, classes = props.classes, className = props.className, containerProp = props.container, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 8 : _props$elevation, getContentAnchorEl = props.getContentAnchorEl, _props$marginThreshol = props.marginThreshold, marginThreshold = _props$marginThreshol === void 0 ? 16 : _props$marginThreshol, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, open = props.open, _props$PaperProps = props.PaperProps, PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, _props$transformOrigi = props.transformOrigin, transformOrigin = _props$transformOrigi === void 0 ? {
26634
26680
  vertical: "top",
26635
26681
  horizontal: "left"
26636
- } : _props$transformOrigi, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Grow$1 : _props$TransitionComp, _props$transitionDura = props.transitionDuration, transitionDurationProp = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps, TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp, other = _objectWithoutProperties(props, ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "classes", "className", "container", "elevation", "getContentAnchorEl", "marginThreshold", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"]);
26682
+ } : _props$transformOrigi, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Grow$1 : _props$TransitionComp, _props$transitionDura = props.transitionDuration, transitionDurationProp = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps, TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp, other = _objectWithoutProperties$1(props, ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "classes", "className", "container", "elevation", "getContentAnchorEl", "marginThreshold", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"]);
26637
26683
  var paperRef = React.useRef();
26638
26684
  var getAnchorOffset = React.useCallback(function(contentAnchorOffset) {
26639
26685
  if (anchorReference === "anchorPosition") {
@@ -27039,7 +27085,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
27039
27085
  }
27040
27086
  var useEnhancedEffect = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
27041
27087
  var MenuList = /* @__PURE__ */ React.forwardRef(function MenuList2(props, ref2) {
27042
- var actions = props.actions, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, _props$autoFocusItem = props.autoFocusItem, autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem, children2 = props.children, className = props.className, _props$disabledItemsF = props.disabledItemsFocusable, disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, _props$disableListWra = props.disableListWrap, disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, onKeyDown = props.onKeyDown, _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties(props, ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"]);
27088
+ var actions = props.actions, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, _props$autoFocusItem = props.autoFocusItem, autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem, children2 = props.children, className = props.className, _props$disabledItemsF = props.disabledItemsFocusable, disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, _props$disableListWra = props.disableListWrap, disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, onKeyDown = props.onKeyDown, _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties$1(props, ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"]);
27043
27089
  var listRef = React.useRef(null);
27044
27090
  var textCriteriaRef = React.useRef({
27045
27091
  keys: [],
@@ -27218,7 +27264,7 @@ var styles$8 = {
27218
27264
  var Menu = /* @__PURE__ */ React.forwardRef(function Menu2(props, ref2) {
27219
27265
  var _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus, children2 = props.children, classes = props.classes, _props$disableAutoFoc = props.disableAutoFocusItem, disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$MenuListProps = props.MenuListProps, MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps, onClose = props.onClose, onEnteringProp = props.onEntering, open = props.open, _props$PaperProps = props.PaperProps, PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, PopoverClasses = props.PopoverClasses, _props$transitionDura = props.transitionDuration, transitionDuration = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps;
27220
27266
  _props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp;
27221
- var onEntering = _props$TransitionProp.onEntering, TransitionProps = _objectWithoutProperties(_props$TransitionProp, ["onEntering"]), _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "onEntering", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"]);
27267
+ var onEntering = _props$TransitionProp.onEntering, TransitionProps = _objectWithoutProperties$1(_props$TransitionProp, ["onEntering"]), _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties$1(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "onEntering", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"]);
27222
27268
  var theme = useTheme();
27223
27269
  var autoFocusItem = autoFocus && !disableAutoFocusItem && open;
27224
27270
  var menuListActionsRef = React.useRef(null);
@@ -27410,7 +27456,7 @@ const Menu$1 = withStyles2(styles$8, {
27410
27456
  name: "MuiMenu"
27411
27457
  })(Menu);
27412
27458
  var NativeSelectInput = /* @__PURE__ */ React.forwardRef(function NativeSelectInput2(props, ref2) {
27413
- var classes = props.classes, className = props.className, disabled = props.disabled, IconComponent = props.IconComponent, inputRef = props.inputRef, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "disabled", "IconComponent", "inputRef", "variant"]);
27459
+ var classes = props.classes, className = props.className, disabled = props.disabled, IconComponent = props.IconComponent, inputRef = props.inputRef, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties$1(props, ["classes", "className", "disabled", "IconComponent", "inputRef", "variant"]);
27414
27460
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("select", _extends$1({
27415
27461
  className: clsx(
27416
27462
  classes.root,
@@ -27590,7 +27636,7 @@ var defaultInput = /* @__PURE__ */ React.createElement(Input$1, null);
27590
27636
  var NativeSelect = /* @__PURE__ */ React.forwardRef(function NativeSelect2(props, ref2) {
27591
27637
  var children2 = props.children, classes = props.classes, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon : _props$IconComponent, _props$input = props.input, input = _props$input === void 0 ? defaultInput : _props$input, inputProps = props.inputProps;
27592
27638
  props.variant;
27593
- var other = _objectWithoutProperties(props, ["children", "classes", "IconComponent", "input", "inputProps", "variant"]);
27639
+ var other = _objectWithoutProperties$1(props, ["children", "classes", "IconComponent", "input", "inputProps", "variant"]);
27594
27640
  var muiFormControl = useFormControl();
27595
27641
  var fcs = formControlState({
27596
27642
  props,
@@ -27720,7 +27766,7 @@ var styles$6 = function styles11(theme) {
27720
27766
  };
27721
27767
  var NotchedOutline = /* @__PURE__ */ React.forwardRef(function NotchedOutline2(props, ref2) {
27722
27768
  props.children;
27723
- var classes = props.classes, className = props.className, label2 = props.label, labelWidthProp = props.labelWidth, notched = props.notched, style2 = props.style, other = _objectWithoutProperties(props, ["children", "classes", "className", "label", "labelWidth", "notched", "style"]);
27769
+ var classes = props.classes, className = props.className, label2 = props.label, labelWidthProp = props.labelWidth, notched = props.notched, style2 = props.style, other = _objectWithoutProperties$1(props, ["children", "classes", "className", "label", "labelWidth", "notched", "style"]);
27724
27770
  var theme = useTheme();
27725
27771
  var align2 = theme.direction === "rtl" ? "right" : "left";
27726
27772
  if (label2 !== void 0) {
@@ -27882,7 +27928,7 @@ var styles$5 = function styles12(theme) {
27882
27928
  };
27883
27929
  };
27884
27930
  var OutlinedInput = /* @__PURE__ */ React.forwardRef(function OutlinedInput2(props, ref2) {
27885
- var classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, label2 = props.label, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, notched = props.notched, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["classes", "fullWidth", "inputComponent", "label", "labelWidth", "multiline", "notched", "type"]);
27931
+ var classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, label2 = props.label, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, notched = props.notched, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties$1(props, ["classes", "fullWidth", "inputComponent", "label", "labelWidth", "multiline", "notched", "type"]);
27886
27932
  return /* @__PURE__ */ React.createElement(InputBase$1, _extends$1({
27887
27933
  renderSuffix: function renderSuffix(state) {
27888
27934
  return /* @__PURE__ */ React.createElement(NotchedOutline$1, {
@@ -28037,8 +28083,16 @@ OutlinedInput.muiName = "Input";
28037
28083
  const OutlinedInput$1 = withStyles2(styles$5, {
28038
28084
  name: "MuiOutlinedInput"
28039
28085
  })(OutlinedInput);
28086
+ function _typeof(obj) {
28087
+ "@babel/helpers - typeof";
28088
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
28089
+ return typeof obj2;
28090
+ } : function(obj2) {
28091
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
28092
+ }, _typeof(obj);
28093
+ }
28040
28094
  function areEqualValues(a2, b2) {
28041
- if (_typeof$1(b2) === "object" && b2 !== null) {
28095
+ if (_typeof(b2) === "object" && b2 !== null) {
28042
28096
  return a2 === b2;
28043
28097
  }
28044
28098
  return String(a2) === String(b2);
@@ -28049,7 +28103,7 @@ function isEmpty$1(display) {
28049
28103
  var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props, ref2) {
28050
28104
  var ariaLabel2 = props["aria-label"], autoFocus = props.autoFocus, autoWidth = props.autoWidth, children2 = props.children, classes = props.classes, className = props.className, defaultValue = props.defaultValue, disabled = props.disabled, displayEmpty = props.displayEmpty, IconComponent = props.IconComponent, inputRefProp = props.inputRef, labelId = props.labelId, _props$MenuProps = props.MenuProps, MenuProps = _props$MenuProps === void 0 ? {} : _props$MenuProps, multiple = props.multiple, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onClose = props.onClose, onFocus = props.onFocus, onOpen = props.onOpen, openProp = props.open, readOnly = props.readOnly, renderValue = props.renderValue, _props$SelectDisplayP = props.SelectDisplayProps, SelectDisplayProps = _props$SelectDisplayP === void 0 ? {} : _props$SelectDisplayP, tabIndexProp = props.tabIndex;
28051
28105
  props.type;
28052
- var valueProp = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["aria-label", "autoFocus", "autoWidth", "children", "classes", "className", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"]);
28106
+ var valueProp = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties$1(props, ["aria-label", "autoFocus", "autoWidth", "children", "classes", "className", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"]);
28053
28107
  var _useControlled = useControlled({
28054
28108
  controlled: valueProp,
28055
28109
  default: defaultValue,
@@ -28486,7 +28540,7 @@ var styles$4 = styles$7;
28486
28540
  var _ref = /* @__PURE__ */ React.createElement(Input$1, null);
28487
28541
  var _ref2 = /* @__PURE__ */ React.createElement(FilledInput$1, null);
28488
28542
  var Select = /* @__PURE__ */ React.forwardRef(function Select2(props, ref2) {
28489
- var _props$autoWidth = props.autoWidth, autoWidth = _props$autoWidth === void 0 ? false : _props$autoWidth, children2 = props.children, classes = props.classes, _props$displayEmpty = props.displayEmpty, displayEmpty = _props$displayEmpty === void 0 ? false : _props$displayEmpty, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon : _props$IconComponent, id2 = props.id, input = props.input, inputProps = props.inputProps, label2 = props.label, labelId = props.labelId, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, MenuProps = props.MenuProps, _props$multiple = props.multiple, multiple = _props$multiple === void 0 ? false : _props$multiple, _props$native = props.native, native2 = _props$native === void 0 ? false : _props$native, onClose = props.onClose, onOpen = props.onOpen, open = props.open, renderValue = props.renderValue, SelectDisplayProps = props.SelectDisplayProps, _props$variant = props.variant, variantProps = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["autoWidth", "children", "classes", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "labelWidth", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"]);
28543
+ var _props$autoWidth = props.autoWidth, autoWidth = _props$autoWidth === void 0 ? false : _props$autoWidth, children2 = props.children, classes = props.classes, _props$displayEmpty = props.displayEmpty, displayEmpty = _props$displayEmpty === void 0 ? false : _props$displayEmpty, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon : _props$IconComponent, id2 = props.id, input = props.input, inputProps = props.inputProps, label2 = props.label, labelId = props.labelId, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, MenuProps = props.MenuProps, _props$multiple = props.multiple, multiple = _props$multiple === void 0 ? false : _props$multiple, _props$native = props.native, native2 = _props$native === void 0 ? false : _props$native, onClose = props.onClose, onOpen = props.onOpen, open = props.open, renderValue = props.renderValue, SelectDisplayProps = props.SelectDisplayProps, _props$variant = props.variant, variantProps = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties$1(props, ["autoWidth", "children", "classes", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "labelWidth", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"]);
28490
28544
  var inputComponent = native2 ? NativeSelectInput$1 : SelectInput$1;
28491
28545
  var muiFormControl = useFormControl();
28492
28546
  var fcs = formControlState({
@@ -28772,7 +28826,7 @@ var styles$3 = function styles13(theme) {
28772
28826
  };
28773
28827
  };
28774
28828
  var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props, ref2) {
28775
- var _props$align = props.align, align2 = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties(props, ["align", "classes", "className", "component", "padding", "scope", "size", "sortDirection", "variant"]);
28829
+ var _props$align = props.align, align2 = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties$1(props, ["align", "classes", "className", "component", "padding", "scope", "size", "sortDirection", "variant"]);
28776
28830
  var table = React.useContext(TableContext$1);
28777
28831
  var tablelvl2 = React.useContext(Tablelvl2Context$1);
28778
28832
  var isHeadCell = tablelvl2 && tablelvl2.variant === "head";
@@ -28890,7 +28944,7 @@ var styles$2 = function styles14(theme) {
28890
28944
  };
28891
28945
  var defaultComponent = "tr";
28892
28946
  var TableRow = /* @__PURE__ */ React.forwardRef(function TableRow2(props, ref2) {
28893
- var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? defaultComponent : _props$component, _props$hover = props.hover, hover2 = _props$hover === void 0 ? false : _props$hover, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties(props, ["classes", "className", "component", "hover", "selected"]);
28947
+ var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? defaultComponent : _props$component, _props$hover = props.hover, hover2 = _props$hover === void 0 ? false : _props$hover, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties$1(props, ["classes", "className", "component", "hover", "selected"]);
28894
28948
  var tablelvl2 = React.useContext(Tablelvl2Context$1);
28895
28949
  return /* @__PURE__ */ React.createElement(Component, _extends$1({
28896
28950
  ref: ref2,
@@ -28942,7 +28996,7 @@ var styles$1 = {
28942
28996
  root: {}
28943
28997
  };
28944
28998
  var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref2) {
28945
- var autoComplete = props.autoComplete, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, defaultValue = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error2 = _props$error === void 0 ? false : _props$error, FormHelperTextProps = props.FormHelperTextProps, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, helperText = props.helperText, hiddenLabel = props.hiddenLabel, id2 = props.id, InputLabelProps = props.InputLabelProps, inputProps = props.inputProps, InputProps = props.InputProps, inputRef = props.inputRef, label2 = props.label, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, placeholder = props.placeholder, _props$required = props.required, required2 = _props$required === void 0 ? false : _props$required, rows = props.rows, rowsMax = props.rowsMax, maxRows = props.maxRows, minRows = props.minRows, _props$select = props.select, select2 = _props$select === void 0 ? false : _props$select, SelectProps = props.SelectProps, type2 = props.type, value2 = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["autoComplete", "autoFocus", "children", "classes", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "hiddenLabel", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "rowsMax", "maxRows", "minRows", "select", "SelectProps", "type", "value", "variant"]);
28999
+ var autoComplete = props.autoComplete, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, defaultValue = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error2 = _props$error === void 0 ? false : _props$error, FormHelperTextProps = props.FormHelperTextProps, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, helperText = props.helperText, hiddenLabel = props.hiddenLabel, id2 = props.id, InputLabelProps = props.InputLabelProps, inputProps = props.inputProps, InputProps = props.InputProps, inputRef = props.inputRef, label2 = props.label, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, placeholder = props.placeholder, _props$required = props.required, required2 = _props$required === void 0 ? false : _props$required, rows = props.rows, rowsMax = props.rowsMax, maxRows = props.maxRows, minRows = props.minRows, _props$select = props.select, select2 = _props$select === void 0 ? false : _props$select, SelectProps = props.SelectProps, type2 = props.type, value2 = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties$1(props, ["autoComplete", "autoFocus", "children", "classes", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "hiddenLabel", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "rowsMax", "maxRows", "minRows", "select", "SelectProps", "type", "value", "variant"]);
28946
29000
  {
28947
29001
  if (select2 && !children2) {
28948
29002
  console.error("Material-UI: `children` must be passed when using the `TextField` component with `select`.");
@@ -29253,7 +29307,7 @@ function CellSetExpressionPlotOptions(props) {
29253
29307
  ] })
29254
29308
  ] });
29255
29309
  }
29256
- function d3_ascending(a2, b2) {
29310
+ function ascending$5(a2, b2) {
29257
29311
  return a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
29258
29312
  }
29259
29313
  function bisector$2(f) {
@@ -29302,12 +29356,12 @@ function bisector$2(f) {
29302
29356
  return { left: left2, center: center2, right: right2 };
29303
29357
  }
29304
29358
  function ascendingComparator(f) {
29305
- return (d, x2) => d3_ascending(f(d), x2);
29359
+ return (d, x2) => ascending$5(f(d), x2);
29306
29360
  }
29307
29361
  function number$c(x2) {
29308
29362
  return x2 === null ? NaN : +x2;
29309
29363
  }
29310
- const ascendingBisect$1 = bisector$2(d3_ascending);
29364
+ const ascendingBisect$1 = bisector$2(ascending$5);
29311
29365
  const bisectRight$2 = ascendingBisect$1.right;
29312
29366
  bisector$2(number$c).center;
29313
29367
  const bisect$2 = bisectRight$2;
@@ -31068,7 +31122,7 @@ function quantile$2() {
31068
31122
  for (let d of _)
31069
31123
  if (d != null && !isNaN(d = +d))
31070
31124
  domain2.push(d);
31071
- domain2.sort(d3_ascending);
31125
+ domain2.sort(ascending$5);
31072
31126
  return rescale();
31073
31127
  };
31074
31128
  scale2.range = function(_) {
@@ -33645,7 +33699,7 @@ function quantile$1() {
33645
33699
  for (let d of _)
33646
33700
  if (d != null && !isNaN(d = +d))
33647
33701
  domain2.push(d);
33648
- domain2.sort(d3_ascending);
33702
+ domain2.sort(ascending$5);
33649
33703
  return rescale();
33650
33704
  };
33651
33705
  scale2.range = function(_) {
@@ -37865,11 +37919,11 @@ Selection.prototype = {
37865
37919
  function select$1(selector2) {
37866
37920
  return typeof selector2 === "string" ? new Selection([[document.querySelector(selector2)]], [document.documentElement]) : new Selection([[selector2]], root);
37867
37921
  }
37868
- const scaleBand = scale$5("band");
37922
+ const scaleBand$1 = scale$5("band");
37869
37923
  const GROUP_KEY = "set";
37870
37924
  const VALUE_KEY = "value";
37871
37925
  function summarize(iterable, keepZeros) {
37872
- const values2 = map$4(iterable, (d) => d[VALUE_KEY]).filter((d) => keepZeros || d !== 0).sort(d3_ascending);
37926
+ const values2 = map$4(iterable, (d) => d[VALUE_KEY]).filter((d) => keepZeros || d !== 0).sort(ascending$5);
37873
37927
  const minVal = values2[0];
37874
37928
  const maxVal = values2[values2.length - 1];
37875
37929
  const q1 = quantileSorted$1(values2, 0.25);
@@ -37946,7 +38000,7 @@ function CellSetExpressionPlot(props) {
37946
38000
  const trimmedData = groupedData.map((kv) => kv.value).flat();
37947
38001
  const innerWidth = width2 - marginLeft;
37948
38002
  const innerHeight = height2 - autoMarginBottom;
37949
- const xGroup = scaleBand().range([marginLeft, width2 - marginRight]).domain(groupNames).padding(0.1);
38003
+ const xGroup = scaleBand$1().range([marginLeft, width2 - marginRight]).domain(groupNames).padding(0.1);
37950
38004
  const yMin = yMinProp === null ? Math.min(0, min$3(trimmedData)) : yMinProp;
37951
38005
  const y2 = linear$4().domain([yMin, max$3(trimmedData)]).range([innerHeight, marginTop]);
37952
38006
  const histogram = bin$3().thresholds(y2.ticks(16)).domain(y2.domain());
@@ -91327,11 +91381,300 @@ function ExpressionHistogramSubscriber(props) {
91327
91381
  }
91328
91382
  );
91329
91383
  }
91384
+ const scaleBand = scale$5("band");
91385
+ const OBS_KEY = "obsId";
91386
+ const FEATURE_KEY = "value";
91387
+ function componentToHex(c2) {
91388
+ const hex2 = c2.toString(16);
91389
+ return hex2.length === 1 ? `0${hex2}` : hex2;
91390
+ }
91391
+ function rgbToHex(color2) {
91392
+ return `#${componentToHex(color2[0])}${componentToHex(color2[1])}${componentToHex(color2[2])}`;
91393
+ }
91394
+ function FeatureBarPlot(props) {
91395
+ const {
91396
+ yMin,
91397
+ yMax,
91398
+ yUnits,
91399
+ jitter: jitter2,
91400
+ colors: colors2,
91401
+ data: data2,
91402
+ theme,
91403
+ width: width2,
91404
+ height: height2,
91405
+ marginTop = 5,
91406
+ marginRight = 5,
91407
+ marginLeft = 80,
91408
+ marginBottom,
91409
+ obsType,
91410
+ cellHighlight,
91411
+ cellSetSelection,
91412
+ additionalCellSets,
91413
+ cellSetColor,
91414
+ featureType,
91415
+ featureValueType,
91416
+ featureName,
91417
+ onBarSelect,
91418
+ onBarHighlight
91419
+ } = props;
91420
+ const setsSave = useMemo(() => {
91421
+ const result = /* @__PURE__ */ new Map();
91422
+ cellSetSelection.forEach((obsSetPath) => {
91423
+ const selectedElement = obsSetPath[1];
91424
+ additionalCellSets.tree[0].children.forEach((child) => {
91425
+ if (child.name === selectedElement) {
91426
+ child.set.forEach(([obsId]) => {
91427
+ const info2 = { name: "", id: "", color: [] };
91428
+ info2.name = selectedElement;
91429
+ info2.id = obsId;
91430
+ cellSetColor.forEach((color2) => {
91431
+ if (color2.path[1] === selectedElement) {
91432
+ info2.color = color2.color;
91433
+ }
91434
+ });
91435
+ result.set(info2.id, info2);
91436
+ });
91437
+ }
91438
+ });
91439
+ });
91440
+ }, [cellSetSelection, additionalCellSets, cellSetColor]);
91441
+ const svgRef = useRef();
91442
+ const maxCharactersForLabel = useMemo(() => data2.reduce((acc, val) => {
91443
+ acc = acc === void 0 || val[OBS_KEY].length > acc ? val[OBS_KEY].length : acc;
91444
+ return acc;
91445
+ }, 0), [data2]);
91446
+ useEffect(() => {
91447
+ const domElement = svgRef.current;
91448
+ const unitSuffix = yUnits ? ` (${yUnits})` : "";
91449
+ const yTitle = `${capitalize$2(featureName)}${unitSuffix}`;
91450
+ const xTitle = `${capitalize$2(obsType)}`;
91451
+ const autoMarginBottom = marginBottom || 30 + Math.sqrt(maxCharactersForLabel / 2) * 30;
91452
+ const foregroundColor = theme === "dark" ? "lightgray" : "black";
91453
+ data2.sort((a2, b2) => ascending$5(a2[FEATURE_KEY], b2[FEATURE_KEY]));
91454
+ const svg = select$1(domElement);
91455
+ svg.selectAll("g").remove();
91456
+ svg.attr("width", width2).attr("height", height2);
91457
+ const g = svg.append("g").attr("width", width2).attr("height", height2);
91458
+ const innerWidth = width2 - marginLeft;
91459
+ const innerHeight = height2 - autoMarginBottom;
91460
+ const xScale = scaleBand().range([marginLeft, width2 - marginRight]).domain(data2.map((d) => d[OBS_KEY])).padding(0.1);
91461
+ const yScale = linear$4().domain([yMin, yMax]).range([innerHeight, marginTop]);
91462
+ g.selectAll("bar").data(data2).enter().append("rect").attr("x", (d) => xScale(d[OBS_KEY])).attr("y", (d) => yScale(d[FEATURE_KEY])).attr("width", xScale.bandwidth()).attr("height", (d) => innerHeight - yScale(d[FEATURE_KEY])).style("fill", (d) => {
91463
+ if (d[OBS_KEY] === cellHighlight)
91464
+ return "orange";
91465
+ if (setsSave.has(d[OBS_KEY])) {
91466
+ const { color: color2 } = setsSave.get(d[OBS_KEY]);
91467
+ return rgbToHex(color2);
91468
+ }
91469
+ return foregroundColor;
91470
+ }).style("cursor", "pointer").on("click", (event2, d) => {
91471
+ onBarSelect(d[OBS_KEY]);
91472
+ }).on("mouseover", (event2, d) => {
91473
+ onBarHighlight(d[OBS_KEY]);
91474
+ }).on("mouseout", () => {
91475
+ onBarHighlight(null);
91476
+ });
91477
+ const axis2 = axisLeft(yScale);
91478
+ axis2.tickFormat((d) => `${Math.round(d * 1e7)} µm`);
91479
+ g.append("g").attr("transform", `translate(${marginLeft},0)`).call(axis2).selectAll("text").style("font-size", "11px");
91480
+ g.append("g").attr("transform", `translate(0,${innerHeight})`).style("font-size", "14px").call(axisBottom(xScale)).selectAll("text").style("font-size", "11px").attr("dx", "-6px").attr("dy", "6px").attr("transform", "rotate(-45)").style("text-anchor", "end");
91481
+ g.append("text").attr("text-anchor", "middle").attr("x", -innerHeight / 2).attr("y", 15).attr("transform", "rotate(-90)").text(yTitle).style("font-size", "12px").style("fill", foregroundColor);
91482
+ g.append("text").attr("text-anchor", "middle").attr("x", marginLeft + innerWidth / 2).attr("y", height2 - 10).text(xTitle).style("font-size", "12px").style("fill", foregroundColor);
91483
+ }, [
91484
+ width2,
91485
+ height2,
91486
+ data2,
91487
+ marginLeft,
91488
+ marginBottom,
91489
+ colors2,
91490
+ jitter2,
91491
+ theme,
91492
+ yMin,
91493
+ marginTop,
91494
+ marginRight,
91495
+ featureType,
91496
+ featureValueType,
91497
+ yUnits,
91498
+ obsType,
91499
+ maxCharactersForLabel,
91500
+ yMax,
91501
+ featureName,
91502
+ onBarSelect,
91503
+ onBarHighlight,
91504
+ cellHighlight,
91505
+ setsSave
91506
+ ]);
91507
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
91508
+ "svg",
91509
+ {
91510
+ ref: svgRef,
91511
+ style: {
91512
+ top: 0,
91513
+ left: 0,
91514
+ width: `${width2}px`,
91515
+ height: `${height2}px`,
91516
+ position: "relative"
91517
+ }
91518
+ }
91519
+ );
91520
+ }
91521
+ function FeatureBarPlotSubscriber(props) {
91522
+ const {
91523
+ coordinationScopes,
91524
+ removeGridComponent,
91525
+ theme,
91526
+ yMin = 0,
91527
+ yUnits = null
91528
+ } = props;
91529
+ const classes = useStyles$1();
91530
+ const loaders = useLoaders();
91531
+ const [{
91532
+ dataset,
91533
+ obsType,
91534
+ featureType,
91535
+ featureValueType,
91536
+ featureSelection: geneSelection,
91537
+ featureValueTransform,
91538
+ featureValueTransformCoefficient,
91539
+ obsHighlight: cellHighlight,
91540
+ additionalObsSets: additionalCellSets,
91541
+ obsSetSelection: cellSetSelection,
91542
+ obsSetColor: cellSetColor
91543
+ }, {
91544
+ setObsSetSelection: setCellSetSelection,
91545
+ setObsHighlight: setCellHighlight,
91546
+ setObsSetColor: setCellSetColor,
91547
+ setObsColorEncoding: setCellColorEncoding,
91548
+ setAdditionalObsSets: setAdditionalCellSets
91549
+ }] = useCoordination(
91550
+ COMPONENT_COORDINATION_TYPES[ViewType$1.FEATURE_BAR_PLOT],
91551
+ coordinationScopes
91552
+ );
91553
+ const [width2, height2, containerRef] = useGridItemSize();
91554
+ const [expressionData, loadedFeatureSelection, featureSelectionStatus] = useFeatureSelection(
91555
+ loaders,
91556
+ dataset,
91557
+ false,
91558
+ geneSelection,
91559
+ { obsType, featureType, featureValueType }
91560
+ );
91561
+ const [{ featureLabelsMap }, featureLabelsStatus, featureLabelsUrls] = useFeatureLabelsData(
91562
+ loaders,
91563
+ dataset,
91564
+ false,
91565
+ {},
91566
+ {},
91567
+ { featureType }
91568
+ );
91569
+ const [
91570
+ { obsIndex },
91571
+ matrixIndicesStatus,
91572
+ matrixIndicesUrls
91573
+ ] = useObsFeatureMatrixIndices(
91574
+ loaders,
91575
+ dataset,
91576
+ false,
91577
+ { obsType, featureType, featureValueType }
91578
+ );
91579
+ const isReady = useReady([
91580
+ featureSelectionStatus,
91581
+ matrixIndicesStatus,
91582
+ featureLabelsStatus
91583
+ ]);
91584
+ const urls = useUrls([
91585
+ featureLabelsUrls,
91586
+ matrixIndicesUrls
91587
+ ]);
91588
+ const onBarSelect = useCallback((obsId) => {
91589
+ const obsIdsToSelect = [obsId];
91590
+ setObsSelection(
91591
+ obsIdsToSelect,
91592
+ additionalCellSets,
91593
+ cellSetColor,
91594
+ setCellSetSelection,
91595
+ setAdditionalCellSets,
91596
+ setCellSetColor,
91597
+ setCellColorEncoding
91598
+ );
91599
+ }, [
91600
+ additionalCellSets,
91601
+ cellSetColor,
91602
+ setCellColorEncoding,
91603
+ setAdditionalCellSets,
91604
+ setCellSetColor,
91605
+ setCellSetSelection
91606
+ ]);
91607
+ const onBarHighlight = useCallback((obsId) => {
91608
+ setCellHighlight(obsId);
91609
+ }, []);
91610
+ const firstGeneSelected = geneSelection && geneSelection.length >= 1 ? (featureLabelsMap == null ? void 0 : featureLabelsMap.get(geneSelection[0])) || geneSelection[0] : null;
91611
+ const [expressionArr, expressionMax] = useMemo(() => {
91612
+ if (firstGeneSelected && expressionData && obsIndex) {
91613
+ let exprMax = -Infinity;
91614
+ const cellIndices = {};
91615
+ for (let i = 0; i < obsIndex.length; i += 1) {
91616
+ cellIndices[obsIndex[i]] = i;
91617
+ }
91618
+ const exprValues = obsIndex.map((obsId, cellIndex) => {
91619
+ const value2 = expressionData[0][cellIndex];
91620
+ exprMax = Math.max(value2, exprMax);
91621
+ return { obsId, value: value2, feature: firstGeneSelected };
91622
+ });
91623
+ return [exprValues, exprMax];
91624
+ }
91625
+ return [null, null];
91626
+ }, [
91627
+ expressionData,
91628
+ obsIndex,
91629
+ geneSelection,
91630
+ theme,
91631
+ featureValueTransform,
91632
+ featureValueTransformCoefficient,
91633
+ firstGeneSelected
91634
+ ]);
91635
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
91636
+ TitleInfo,
91637
+ {
91638
+ title: `Feature Values${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`,
91639
+ removeGridComponent,
91640
+ urls,
91641
+ theme,
91642
+ isReady,
91643
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? /* @__PURE__ */ jsxRuntimeExports.jsx(
91644
+ FeatureBarPlot,
91645
+ {
91646
+ yMin,
91647
+ yMax: expressionMax,
91648
+ yUnits,
91649
+ data: expressionArr,
91650
+ theme,
91651
+ width: width2,
91652
+ height: height2,
91653
+ obsType,
91654
+ cellHighlight,
91655
+ cellSetSelection,
91656
+ additionalCellSets,
91657
+ cellSetColor,
91658
+ featureType,
91659
+ featureValueType,
91660
+ featureName: firstGeneSelected,
91661
+ onBarSelect,
91662
+ onBarHighlight
91663
+ }
91664
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
91665
+ "Select a ",
91666
+ featureType,
91667
+ "."
91668
+ ] }) })
91669
+ }
91670
+ );
91671
+ }
91330
91672
  export {
91331
91673
  CellSetExpressionPlot,
91332
91674
  CellSetExpressionPlotSubscriber,
91333
91675
  CellSetSizesPlot,
91334
91676
  CellSetSizesPlotSubscriber,
91335
91677
  ExpressionHistogram,
91336
- ExpressionHistogramSubscriber
91678
+ ExpressionHistogramSubscriber,
91679
+ FeatureBarPlotSubscriber
91337
91680
  };