@antimatter-audio/antimatter-ui 14.5.0 → 14.6.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
@@ -177,13 +177,13 @@ function useObservable(param) {
177
177
  };
178
178
  }
179
179
 
180
- function _array_like_to_array$m(arr, len) {
180
+ function _array_like_to_array$l(arr, len) {
181
181
  if (len == null || len > arr.length) len = arr.length;
182
182
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
183
183
  return arr2;
184
184
  }
185
185
  function _array_without_holes$3(arr) {
186
- if (Array.isArray(arr)) return _array_like_to_array$m(arr);
186
+ if (Array.isArray(arr)) return _array_like_to_array$l(arr);
187
187
  }
188
188
  function _iterable_to_array$3(iter) {
189
189
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -192,15 +192,15 @@ function _non_iterable_spread$3() {
192
192
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
193
193
  }
194
194
  function _to_consumable_array$3(arr) {
195
- return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$m(arr) || _non_iterable_spread$3();
195
+ return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$l(arr) || _non_iterable_spread$3();
196
196
  }
197
- function _unsupported_iterable_to_array$m(o, minLen) {
197
+ function _unsupported_iterable_to_array$l(o, minLen) {
198
198
  if (!o) return;
199
- if (typeof o === "string") return _array_like_to_array$m(o, minLen);
199
+ if (typeof o === "string") return _array_like_to_array$l(o, minLen);
200
200
  var n = Object.prototype.toString.call(o).slice(8, -1);
201
201
  if (n === "Object" && o.constructor) n = o.constructor.name;
202
202
  if (n === "Map" || n === "Set") return Array.from(n);
203
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
203
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen);
204
204
  }
205
205
  // export const roundUpToTwoDecimals = (val: number) => Math.ceil(val * 100) / 100;
206
206
  // mocks the `normalisedToScaledValue` internal method from JUCE
@@ -351,16 +351,16 @@ function throttle(mainFunction, delay) {
351
351
  };
352
352
  }
353
353
 
354
- function _array_like_to_array$l(arr, len) {
354
+ function _array_like_to_array$k(arr, len) {
355
355
  if (len == null || len > arr.length) len = arr.length;
356
356
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
357
357
  return arr2;
358
358
  }
359
- function _array_with_holes$k(arr) {
359
+ function _array_with_holes$j(arr) {
360
360
  if (Array.isArray(arr)) return arr;
361
361
  }
362
362
  function _array_without_holes$2(arr) {
363
- if (Array.isArray(arr)) return _array_like_to_array$l(arr);
363
+ if (Array.isArray(arr)) return _array_like_to_array$k(arr);
364
364
  }
365
365
  function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
366
366
  try {
@@ -407,7 +407,7 @@ function _define_property$m(obj, key, value) {
407
407
  function _iterable_to_array$2(iter) {
408
408
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
409
409
  }
410
- function _iterable_to_array_limit$k(arr, i) {
410
+ function _iterable_to_array_limit$j(arr, i) {
411
411
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
412
412
  if (_i == null) return;
413
413
  var _arr = [];
@@ -431,7 +431,7 @@ function _iterable_to_array_limit$k(arr, i) {
431
431
  }
432
432
  return _arr;
433
433
  }
434
- function _non_iterable_rest$k() {
434
+ function _non_iterable_rest$j() {
435
435
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
436
436
  }
437
437
  function _non_iterable_spread$2() {
@@ -471,19 +471,19 @@ function _object_spread_props$4(target, source) {
471
471
  }
472
472
  return target;
473
473
  }
474
- function _sliced_to_array$k(arr, i) {
475
- return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$k();
474
+ function _sliced_to_array$j(arr, i) {
475
+ return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$j();
476
476
  }
477
477
  function _to_consumable_array$2(arr) {
478
- return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$l(arr) || _non_iterable_spread$2();
478
+ return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$k(arr) || _non_iterable_spread$2();
479
479
  }
480
- function _unsupported_iterable_to_array$l(o, minLen) {
480
+ function _unsupported_iterable_to_array$k(o, minLen) {
481
481
  if (!o) return;
482
- if (typeof o === "string") return _array_like_to_array$l(o, minLen);
482
+ if (typeof o === "string") return _array_like_to_array$k(o, minLen);
483
483
  var n = Object.prototype.toString.call(o).slice(8, -1);
484
484
  if (n === "Object" && o.constructor) n = o.constructor.name;
485
485
  if (n === "Map" || n === "Set") return Array.from(n);
486
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen);
486
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen);
487
487
  }
488
488
  function _ts_generator$4(thisArg, body) {
489
489
  var f, y, t, _ = {
@@ -725,7 +725,7 @@ function useGlobalContext(selector) {
725
725
  // Context provider
726
726
  function GlobalContextProvider(param) {
727
727
  var children = param.children;
728
- var _useReducer = _sliced_to_array$k(useReducer(reducer, defaultGlobalStateValue), 2), state = _useReducer[0], dispatch = _useReducer[1];
728
+ var _useReducer = _sliced_to_array$j(useReducer(reducer, defaultGlobalStateValue), 2), state = _useReducer[0], dispatch = _useReducer[1];
729
729
  var highlightedItemChanged = useCallback(function(highlightedItem) {
730
730
  dispatch({
731
731
  type: 'HIGHLIGHTED_ITEM_CHANGED',
@@ -993,12 +993,12 @@ function GlobalContextProvider(param) {
993
993
  }, children);
994
994
  }
995
995
 
996
- function _array_like_to_array$k(arr, len) {
996
+ function _array_like_to_array$j(arr, len) {
997
997
  if (len == null || len > arr.length) len = arr.length;
998
998
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
999
999
  return arr2;
1000
1000
  }
1001
- function _array_with_holes$j(arr) {
1001
+ function _array_with_holes$i(arr) {
1002
1002
  if (Array.isArray(arr)) return arr;
1003
1003
  }
1004
1004
  function _define_property$l(obj, key, value) {
@@ -1014,7 +1014,7 @@ function _define_property$l(obj, key, value) {
1014
1014
  }
1015
1015
  return obj;
1016
1016
  }
1017
- function _iterable_to_array_limit$j(arr, i) {
1017
+ function _iterable_to_array_limit$i(arr, i) {
1018
1018
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1019
1019
  if (_i == null) return;
1020
1020
  var _arr = [];
@@ -1038,7 +1038,7 @@ function _iterable_to_array_limit$j(arr, i) {
1038
1038
  }
1039
1039
  return _arr;
1040
1040
  }
1041
- function _non_iterable_rest$j() {
1041
+ function _non_iterable_rest$i() {
1042
1042
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1043
1043
  }
1044
1044
  function _object_spread$k(target) {
@@ -1056,16 +1056,16 @@ function _object_spread$k(target) {
1056
1056
  }
1057
1057
  return target;
1058
1058
  }
1059
- function _sliced_to_array$j(arr, i) {
1060
- return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$j();
1059
+ function _sliced_to_array$i(arr, i) {
1060
+ return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$i();
1061
1061
  }
1062
- function _unsupported_iterable_to_array$k(o, minLen) {
1062
+ function _unsupported_iterable_to_array$j(o, minLen) {
1063
1063
  if (!o) return;
1064
- if (typeof o === "string") return _array_like_to_array$k(o, minLen);
1064
+ if (typeof o === "string") return _array_like_to_array$j(o, minLen);
1065
1065
  var n = Object.prototype.toString.call(o).slice(8, -1);
1066
1066
  if (n === "Object" && o.constructor) n = o.constructor.name;
1067
1067
  if (n === "Map" || n === "Set") return Array.from(n);
1068
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen);
1068
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
1069
1069
  }
1070
1070
  function Button(param) {
1071
1071
  var disabled = param.disabled, text = param.text, id = param.id, className = param.className, style = param.style, onClick = param.onClick, children = param.children, _param_padding = param.padding, padding = _param_padding === void 0 ? [
@@ -1073,7 +1073,7 @@ function Button(param) {
1073
1073
  ] : _param_padding, _param_margin = param.margin, margin = _param_margin === void 0 ? [
1074
1074
  Spacing.none
1075
1075
  ] : _param_margin, _param_type = param.type, type = _param_type === void 0 ? ButtonType.latch : _param_type, size = param.size;
1076
- var _React_useState = _sliced_to_array$j(React__default.useState(false), 2), isSelected = _React_useState[0], setIsSelected = _React_useState[1];
1076
+ var _React_useState = _sliced_to_array$i(React__default.useState(false), 2), isSelected = _React_useState[0], setIsSelected = _React_useState[1];
1077
1077
  var buttonState = Juce.getToggleState(id);
1078
1078
  var isLocalhost = window.location.hostname === 'localhost';
1079
1079
  var setModSlotRowTargetAsPreview = useGlobalContext().setModSlotRowTargetAsPreview;
@@ -1852,15 +1852,15 @@ IconButton.icon = Icons;
1852
1852
  IconButton.padding = Spacing;
1853
1853
  IconButton.margin = Spacing;
1854
1854
 
1855
- function _array_like_to_array$j(arr, len) {
1855
+ function _array_like_to_array$i(arr, len) {
1856
1856
  if (len == null || len > arr.length) len = arr.length;
1857
1857
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1858
1858
  return arr2;
1859
1859
  }
1860
- function _array_with_holes$i(arr) {
1860
+ function _array_with_holes$h(arr) {
1861
1861
  if (Array.isArray(arr)) return arr;
1862
1862
  }
1863
- function _iterable_to_array_limit$i(arr, i) {
1863
+ function _iterable_to_array_limit$h(arr, i) {
1864
1864
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1865
1865
  if (_i == null) return;
1866
1866
  var _arr = [];
@@ -1884,27 +1884,27 @@ function _iterable_to_array_limit$i(arr, i) {
1884
1884
  }
1885
1885
  return _arr;
1886
1886
  }
1887
- function _non_iterable_rest$i() {
1887
+ function _non_iterable_rest$h() {
1888
1888
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1889
1889
  }
1890
- function _sliced_to_array$i(arr, i) {
1891
- return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$i();
1890
+ function _sliced_to_array$h(arr, i) {
1891
+ return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$h();
1892
1892
  }
1893
- function _unsupported_iterable_to_array$j(o, minLen) {
1893
+ function _unsupported_iterable_to_array$i(o, minLen) {
1894
1894
  if (!o) return;
1895
- if (typeof o === "string") return _array_like_to_array$j(o, minLen);
1895
+ if (typeof o === "string") return _array_like_to_array$i(o, minLen);
1896
1896
  var n = Object.prototype.toString.call(o).slice(8, -1);
1897
1897
  if (n === "Object" && o.constructor) n = o.constructor.name;
1898
1898
  if (n === "Map" || n === "Set") return Array.from(n);
1899
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
1899
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
1900
1900
  }
1901
1901
  var useDropdown = function(param) {
1902
1902
  var id = param.id, // TODO: Is there a better way to handle mod matrix dropdowns?
1903
1903
  rowId = param.rowId, label = param.label, _param_items = param.items, items = _param_items === void 0 ? [] : _param_items, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, filter = param.filter, onChange = param.onChange, _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader;
1904
1904
  var _properties_choices;
1905
1905
  var comboBoxState = Juce.getComboBoxState(id);
1906
- var _useState = _sliced_to_array$i(useState(comboBoxState.getChoiceIndex()), 2), index = _useState[0], setIndex = _useState[1];
1907
- var _useState1 = _sliced_to_array$i(useState(comboBoxState.properties), 2), properties = _useState1[0], setProperties = _useState1[1];
1906
+ var _useState = _sliced_to_array$h(useState(comboBoxState.getChoiceIndex()), 2), index = _useState[0], setIndex = _useState[1];
1907
+ var _useState1 = _sliced_to_array$h(useState(comboBoxState.properties), 2), properties = _useState1[0], setProperties = _useState1[1];
1908
1908
  var _useGlobalContext = useGlobalContext(), highlightedItemChanged = _useGlobalContext.highlightedItemChanged, setModSlotRowTargetAsPreview = _useGlobalContext.setModSlotRowTargetAsPreview;
1909
1909
  var choices = items.length ? items : (properties === null || properties === void 0 ? void 0 : (_properties_choices = properties.choices) === null || _properties_choices === void 0 ? void 0 : _properties_choices.length) ? properties === null || properties === void 0 ? void 0 : properties.choices : [];
1910
1910
  var filteredChoices = filter ? choices === null || choices === void 0 ? void 0 : choices.filter(function(item) {
@@ -2000,15 +2000,15 @@ var useDropdown = function(param) {
2000
2000
  };
2001
2001
  };
2002
2002
 
2003
- function _array_like_to_array$i(arr, len) {
2003
+ function _array_like_to_array$h(arr, len) {
2004
2004
  if (len == null || len > arr.length) len = arr.length;
2005
2005
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2006
2006
  return arr2;
2007
2007
  }
2008
- function _array_with_holes$h(arr) {
2008
+ function _array_with_holes$g(arr) {
2009
2009
  if (Array.isArray(arr)) return arr;
2010
2010
  }
2011
- function _iterable_to_array_limit$h(arr, i) {
2011
+ function _iterable_to_array_limit$g(arr, i) {
2012
2012
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2013
2013
  if (_i == null) return;
2014
2014
  var _arr = [];
@@ -2032,19 +2032,19 @@ function _iterable_to_array_limit$h(arr, i) {
2032
2032
  }
2033
2033
  return _arr;
2034
2034
  }
2035
- function _non_iterable_rest$h() {
2035
+ function _non_iterable_rest$g() {
2036
2036
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2037
2037
  }
2038
- function _sliced_to_array$h(arr, i) {
2039
- return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$h();
2038
+ function _sliced_to_array$g(arr, i) {
2039
+ return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$g();
2040
2040
  }
2041
- function _unsupported_iterable_to_array$i(o, minLen) {
2041
+ function _unsupported_iterable_to_array$h(o, minLen) {
2042
2042
  if (!o) return;
2043
- if (typeof o === "string") return _array_like_to_array$i(o, minLen);
2043
+ if (typeof o === "string") return _array_like_to_array$h(o, minLen);
2044
2044
  var n = Object.prototype.toString.call(o).slice(8, -1);
2045
2045
  if (n === "Object" && o.constructor) n = o.constructor.name;
2046
2046
  if (n === "Map" || n === "Set") return Array.from(n);
2047
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
2047
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
2048
2048
  }
2049
2049
  function Tabs(param) {
2050
2050
  var items = param.items, _param_id = param.id, id = _param_id === void 0 ? '' : _param_id, className = param.className, _param_padding = param.padding, padding = _param_padding === void 0 ? [
@@ -2052,7 +2052,7 @@ function Tabs(param) {
2052
2052
  ] : _param_padding, _param_margin = param.margin, margin = _param_margin === void 0 ? [
2053
2053
  Spacing.none
2054
2054
  ] : _param_margin, _param_gap = param.gap, gap = _param_gap === void 0 ? Spacing.small : _param_gap, width = param.width, height = param.height, tabWidth = param.tabWidth, tabHeight = param.tabHeight, _param_orientation = param.orientation, orientation = _param_orientation === void 0 ? Orientation.horizontal : _param_orientation, _param_justifyContent = param.justifyContent, justifyContent = _param_justifyContent === void 0 ? JustifyContent$1.stretch : _param_justifyContent, _param_alignItems = param.alignItems, alignItems = _param_alignItems === void 0 ? AlignItems$1.stretch : _param_alignItems, _param_color = param.color, color = _param_color === void 0 ? 'var(--bg-lv11)' : _param_color, _param_selectedColor = param.selectedColor, selectedColor = _param_selectedColor === void 0 ? 'var(--color-brand)' : _param_selectedColor, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'transparent' : _param_backgroundColor, _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.small : _param_fontSize, selectedBackgroundColor = param.selectedBackgroundColor, icons = param.icons, onChange = param.onChange;
2055
- var _useState = _sliced_to_array$h(useState(0), 2), selectedIndex = _useState[0], setSelectedIndex = _useState[1];
2055
+ var _useState = _sliced_to_array$g(useState(0), 2), selectedIndex = _useState[0], setSelectedIndex = _useState[1];
2056
2056
  var _useDropdown = useDropdown({
2057
2057
  id: id,
2058
2058
  onChange: onChange
@@ -2276,12 +2276,12 @@ function Dropdown(param) {
2276
2276
  var css_248z$9 = ".TextInput {\n pointer-events: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.TextInput::-moz-selection {\n background: transparent;\n}\n.TextInput::selection {\n background: transparent;\n}\n\n.TextInput:disabled {\n -webkit-user-select: none;\n user-select: none;\n}\n\n.isActive .TextInput {\n -webkit-user-select: auto;\n -moz-user-select: auto;\n -ms-user-select: auto;\n user-select: auto;\n}\n";
2277
2277
  styleInject(css_248z$9);
2278
2278
 
2279
- function _array_like_to_array$h(arr, len) {
2279
+ function _array_like_to_array$g(arr, len) {
2280
2280
  if (len == null || len > arr.length) len = arr.length;
2281
2281
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2282
2282
  return arr2;
2283
2283
  }
2284
- function _array_with_holes$g(arr) {
2284
+ function _array_with_holes$f(arr) {
2285
2285
  if (Array.isArray(arr)) return arr;
2286
2286
  }
2287
2287
  function _define_property$f(obj, key, value) {
@@ -2297,7 +2297,7 @@ function _define_property$f(obj, key, value) {
2297
2297
  }
2298
2298
  return obj;
2299
2299
  }
2300
- function _iterable_to_array_limit$g(arr, i) {
2300
+ function _iterable_to_array_limit$f(arr, i) {
2301
2301
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2302
2302
  if (_i == null) return;
2303
2303
  var _arr = [];
@@ -2321,7 +2321,7 @@ function _iterable_to_array_limit$g(arr, i) {
2321
2321
  }
2322
2322
  return _arr;
2323
2323
  }
2324
- function _non_iterable_rest$g() {
2324
+ function _non_iterable_rest$f() {
2325
2325
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2326
2326
  }
2327
2327
  function _object_spread$e(target) {
@@ -2339,16 +2339,16 @@ function _object_spread$e(target) {
2339
2339
  }
2340
2340
  return target;
2341
2341
  }
2342
- function _sliced_to_array$g(arr, i) {
2343
- return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$g();
2342
+ function _sliced_to_array$f(arr, i) {
2343
+ return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$f();
2344
2344
  }
2345
- function _unsupported_iterable_to_array$h(o, minLen) {
2345
+ function _unsupported_iterable_to_array$g(o, minLen) {
2346
2346
  if (!o) return;
2347
- if (typeof o === "string") return _array_like_to_array$h(o, minLen);
2347
+ if (typeof o === "string") return _array_like_to_array$g(o, minLen);
2348
2348
  var n = Object.prototype.toString.call(o).slice(8, -1);
2349
2349
  if (n === "Object" && o.constructor) n = o.constructor.name;
2350
2350
  if (n === "Map" || n === "Set") return Array.from(n);
2351
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
2351
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
2352
2352
  }
2353
2353
  // import { decimalToPercent, percentToDecimal } from '../../common/utils';
2354
2354
  // import debounce from 'lodash.debounce';
@@ -2360,9 +2360,9 @@ var InputTypes = /*#__PURE__*/ function(InputTypes) {
2360
2360
  function Input(param) {
2361
2361
  var onComplete = param.onComplete, value = param.value; param.min; param.max; var _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.xSmall : _param_fontSize, style = param.style, className = param.className, isDisabled = param.isDisabled, id = param.id, _param_textColor = param.textColor, textColor = _param_textColor === void 0 ? 'var(--color-text)' : _param_textColor, _param_textAlign = param.textAlign, textAlign = _param_textAlign === void 0 ? TextAlign.center : _param_textAlign;
2362
2362
  var _inputRef_current;
2363
- var _useState = _sliced_to_array$g(useState(value), 2), internalValue = _useState[0], setInternalValue = _useState[1];
2363
+ var _useState = _sliced_to_array$f(useState(value), 2), internalValue = _useState[0], setInternalValue = _useState[1];
2364
2364
  // const [hasError, setHasError] = useState<boolean>(false);
2365
- var _useState1 = _sliced_to_array$g(useState(false), 2), isHighlighted = _useState1[0], setIsHighlighted = _useState1[1];
2365
+ var _useState1 = _sliced_to_array$f(useState(false), 2), isHighlighted = _useState1[0], setIsHighlighted = _useState1[1];
2366
2366
  var valueRef = useRef(null);
2367
2367
  var isLocalhost = window.location.hostname === 'localhost';
2368
2368
  // Sets up listeners to handle changes on the backend
@@ -2546,15 +2546,15 @@ var GradientStyles = /*#__PURE__*/ function(GradientStyles) {
2546
2546
  return GradientStyles;
2547
2547
  }({});
2548
2548
 
2549
- function _array_like_to_array$g(arr, len) {
2549
+ function _array_like_to_array$f(arr, len) {
2550
2550
  if (len == null || len > arr.length) len = arr.length;
2551
2551
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2552
2552
  return arr2;
2553
2553
  }
2554
- function _array_with_holes$f(arr) {
2554
+ function _array_with_holes$e(arr) {
2555
2555
  if (Array.isArray(arr)) return arr;
2556
2556
  }
2557
- function _iterable_to_array_limit$f(arr, i) {
2557
+ function _iterable_to_array_limit$e(arr, i) {
2558
2558
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2559
2559
  if (_i == null) return;
2560
2560
  var _arr = [];
@@ -2578,19 +2578,19 @@ function _iterable_to_array_limit$f(arr, i) {
2578
2578
  }
2579
2579
  return _arr;
2580
2580
  }
2581
- function _non_iterable_rest$f() {
2581
+ function _non_iterable_rest$e() {
2582
2582
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2583
2583
  }
2584
- function _sliced_to_array$f(arr, i) {
2585
- return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$f();
2584
+ function _sliced_to_array$e(arr, i) {
2585
+ return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$e();
2586
2586
  }
2587
- function _unsupported_iterable_to_array$g(o, minLen) {
2587
+ function _unsupported_iterable_to_array$f(o, minLen) {
2588
2588
  if (!o) return;
2589
- if (typeof o === "string") return _array_like_to_array$g(o, minLen);
2589
+ if (typeof o === "string") return _array_like_to_array$f(o, minLen);
2590
2590
  var n = Object.prototype.toString.call(o).slice(8, -1);
2591
2591
  if (n === "Object" && o.constructor) n = o.constructor.name;
2592
2592
  if (n === "Map" || n === "Set") return Array.from(n);
2593
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
2593
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
2594
2594
  }
2595
2595
  // 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
2596
2596
  // ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
@@ -2613,9 +2613,9 @@ var useSlider = function(param) {
2613
2613
  * AudioProcessorParameter::getValue() (C++).
2614
2614
  */ // See https://github.com/juce-framework/JUCE/blob/51d11a2be6d5c97ccf12b4e5e827006e19f0555a/modules/juce_gui_extra/native/javascript/index.js#L230C1-L238C6
2615
2615
  // NOTE: We can think of this as a percentage value, in 0 to 1 format
2616
- var _useState = _sliced_to_array$f(useState(0), 2), scaledValue = _useState[0], setScaledValue = _useState[1];
2616
+ var _useState = _sliced_to_array$e(useState(0), 2), scaledValue = _useState[0], setScaledValue = _useState[1];
2617
2617
  // const [normalisedValue, setNormalisedValue] = useState(0);
2618
- var _useState1 = _sliced_to_array$f(useState(), 2), properties = _useState1[0], setProperties = _useState1[1];
2618
+ var _useState1 = _sliced_to_array$e(useState(), 2), properties = _useState1[0], setProperties = _useState1[1];
2619
2619
  var scaledValueRef = useRef(null);
2620
2620
  var normalisedValueRef = useRef(null);
2621
2621
  var sliderState = Juce.getSliderState(id);
@@ -2858,15 +2858,15 @@ styleInject(css_248z$8);
2858
2858
  var css_248z$7 = "";
2859
2859
  styleInject(css_248z$7);
2860
2860
 
2861
- function _array_like_to_array$f(arr, len) {
2861
+ function _array_like_to_array$e(arr, len) {
2862
2862
  if (len == null || len > arr.length) len = arr.length;
2863
2863
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2864
2864
  return arr2;
2865
2865
  }
2866
- function _array_with_holes$e(arr) {
2866
+ function _array_with_holes$d(arr) {
2867
2867
  if (Array.isArray(arr)) return arr;
2868
2868
  }
2869
- function _iterable_to_array_limit$e(arr, i) {
2869
+ function _iterable_to_array_limit$d(arr, i) {
2870
2870
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2871
2871
  if (_i == null) return;
2872
2872
  var _arr = [];
@@ -2890,19 +2890,19 @@ function _iterable_to_array_limit$e(arr, i) {
2890
2890
  }
2891
2891
  return _arr;
2892
2892
  }
2893
- function _non_iterable_rest$e() {
2893
+ function _non_iterable_rest$d() {
2894
2894
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2895
2895
  }
2896
- function _sliced_to_array$e(arr, i) {
2897
- return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$e();
2896
+ function _sliced_to_array$d(arr, i) {
2897
+ return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$d();
2898
2898
  }
2899
- function _unsupported_iterable_to_array$f(o, minLen) {
2899
+ function _unsupported_iterable_to_array$e(o, minLen) {
2900
2900
  if (!o) return;
2901
- if (typeof o === "string") return _array_like_to_array$f(o, minLen);
2901
+ if (typeof o === "string") return _array_like_to_array$e(o, minLen);
2902
2902
  var n = Object.prototype.toString.call(o).slice(8, -1);
2903
2903
  if (n === "Object" && o.constructor) n = o.constructor.name;
2904
2904
  if (n === "Map" || n === "Set") return Array.from(n);
2905
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
2905
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
2906
2906
  }
2907
2907
  function ControlGroup(param) {
2908
2908
  var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, className = param.className, onChangeActiveState = param.onChangeActiveState, children = param.children, width = param.width;
@@ -2912,7 +2912,7 @@ function ControlGroup(param) {
2912
2912
  // <Input id={id-input}></Input>
2913
2913
  // </ControlGroup>
2914
2914
  var groupId = "".concat(id, "-control-group");
2915
- var _useState = _sliced_to_array$e(useState(false), 2), isActive = _useState[0], setIsActive = _useState[1];
2915
+ var _useState = _sliced_to_array$d(useState(false), 2), isActive = _useState[0], setIsActive = _useState[1];
2916
2916
  var sliderState = Juce.getSliderState(id);
2917
2917
  var clickListener = function(event) {
2918
2918
  if (!isDisabled) {
@@ -2985,8 +2985,8 @@ function ControlGroup(param) {
2985
2985
  }
2986
2986
 
2987
2987
  var ProgressCircle = function(param) {
2988
- var width = param.width, height = param.height, _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, _param_strokeWidth = param.strokeWidth, strokeWidth = _param_strokeWidth === void 0 ? 5 : _param_strokeWidth; // trackOffset = 0,
2989
- param.indicatorLineColor; var indicatorLineGradient = param.indicatorLineGradient, trackColor = param.trackColor, radius = param.radius, circ = param.circ, activeZone = param.activeZone, normalisedValue = param.normalisedValue;
2988
+ var width = param.width, height = param.height, _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, _param_strokeWidth = param.strokeWidth, strokeWidth = _param_strokeWidth === void 0 ? 5 : _param_strokeWidth, // trackOffset = 0,
2989
+ indicatorLineColor = param.indicatorLineColor, indicatorLineGradient = param.indicatorLineGradient, trackColor = param.trackColor, radius = param.radius, circ = param.circ, activeZone = param.activeZone, normalisedValue = param.normalisedValue;
2990
2990
  var cx = '50%';
2991
2991
  var cy = '50%';
2992
2992
  var unipolarOffset = circ - activeZone * (normalisedValue * 100) / 100;
@@ -3015,7 +3015,7 @@ var ProgressCircle = function(param) {
3015
3015
  cy: cy,
3016
3016
  r: radius,
3017
3017
  style: {
3018
- stroke: indicatorLineGradient === GradientStyles.unicolor ? 'url(#unicolorGradient)' : 'url(#multicolorGradient)',
3018
+ stroke: indicatorLineColor ? indicatorLineColor : indicatorLineGradient === GradientStyles.unicolor ? 'url(#unicolorGradient)' : 'url(#multicolorGradient)',
3019
3019
  strokeWidth: strokeWidth,
3020
3020
  strokeDasharray: circ,
3021
3021
  // transform: `rotate(${polarity === Polarity.unipolar ? '135deg' : '270deg'})`,
@@ -3265,6 +3265,7 @@ function RotaryCircle(param) {
3265
3265
  var radius = (width - trackWidth * 2) / 2;
3266
3266
  var circ = 2 * 3.14 * radius;
3267
3267
  var activeZone = circ - circ * 0.25;
3268
+ console.log(markerShape, 'MARKERSHAPE');
3268
3269
  return /*#__PURE__*/ React__default.createElement(Box, _object_spread_props$2(_object_spread$d({
3269
3270
  id: id,
3270
3271
  key: "RotaryCircle-".concat(id),
@@ -3373,15 +3374,15 @@ function PositioningWrapper(param) {
3373
3374
  }, positionedElement ? positionedElement : null));
3374
3375
  }
3375
3376
 
3376
- function _array_like_to_array$e(arr, len) {
3377
+ function _array_like_to_array$d(arr, len) {
3377
3378
  if (len == null || len > arr.length) len = arr.length;
3378
3379
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3379
3380
  return arr2;
3380
3381
  }
3381
- function _array_with_holes$d(arr) {
3382
+ function _array_with_holes$c(arr) {
3382
3383
  if (Array.isArray(arr)) return arr;
3383
3384
  }
3384
- function _iterable_to_array_limit$d(arr, i) {
3385
+ function _iterable_to_array_limit$c(arr, i) {
3385
3386
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3386
3387
  if (_i == null) return;
3387
3388
  var _arr = [];
@@ -3405,19 +3406,19 @@ function _iterable_to_array_limit$d(arr, i) {
3405
3406
  }
3406
3407
  return _arr;
3407
3408
  }
3408
- function _non_iterable_rest$d() {
3409
+ function _non_iterable_rest$c() {
3409
3410
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3410
3411
  }
3411
- function _sliced_to_array$d(arr, i) {
3412
- return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$d();
3412
+ function _sliced_to_array$c(arr, i) {
3413
+ return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$c();
3413
3414
  }
3414
- function _unsupported_iterable_to_array$e(o, minLen) {
3415
+ function _unsupported_iterable_to_array$d(o, minLen) {
3415
3416
  if (!o) return;
3416
- if (typeof o === "string") return _array_like_to_array$e(o, minLen);
3417
+ if (typeof o === "string") return _array_like_to_array$d(o, minLen);
3417
3418
  var n = Object.prototype.toString.call(o).slice(8, -1);
3418
3419
  if (n === "Object" && o.constructor) n = o.constructor.name;
3419
3420
  if (n === "Map" || n === "Set") return Array.from(n);
3420
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
3421
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
3421
3422
  }
3422
3423
  // 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
3423
3424
  // ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
@@ -3431,7 +3432,7 @@ var useIndicator = function(param) {
3431
3432
  var id = param.id, _param_dataSource = param.dataSource, dataSource = _param_dataSource === void 0 ? "buttonAttachment" : _param_dataSource;
3432
3433
  var isLocalhost = window.location.hostname === 'localhost';
3433
3434
  // This value should be a range from 0 to 1
3434
- var _useState = _sliced_to_array$d(useState(0), 2), brightness = _useState[0], setBrightness = _useState[1];
3435
+ var _useState = _sliced_to_array$c(useState(0), 2), brightness = _useState[0], setBrightness = _useState[1];
3435
3436
  var updateState = function() {
3436
3437
  if (!isLocalhost && dataSource === "buttonAttachment") {
3437
3438
  var _Juce_getToggleState;
@@ -3576,7 +3577,7 @@ IndicatorLight.dataSource = DataSource;
3576
3577
  // Connects to Juce's Slider element
3577
3578
  function RotarySlider(param) {
3578
3579
  var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, className = param.className, id = param.id, onChange = param.onChange, trackWidth = param.trackWidth, // trackOffset,
3579
- indicatorId = param.indicatorId, indicatorLineColor = param.indicatorLineColor, indicatorLineGradient = param.indicatorLineGradient, trackColor = param.trackColor, trackStrokeColor = param.trackStrokeColor, knobStrokeColor = param.knobStrokeColor, knobFillColor = param.knobFillColor, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, width = param.width, markerShape = param.markerShape, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, _param_mockProperties = param.mockProperties, mockProperties = _param_mockProperties === void 0 ? {
3580
+ indicatorId = param.indicatorId, indicatorLineColor = param.indicatorLineColor, _param_indicatorLineGradient = param.indicatorLineGradient; _param_indicatorLineGradient === void 0 ? GradientStyles.unicolor : _param_indicatorLineGradient; var _param_trackColor = param.trackColor, trackColor = _param_trackColor === void 0 ? 'var(--color-brand-900)' : _param_trackColor, trackStrokeColor = param.trackStrokeColor, _param_knobStrokeColor = param.knobStrokeColor, knobStrokeColor = _param_knobStrokeColor === void 0 ? 'var(--color-brand)' : _param_knobStrokeColor, knobFillColor = param.knobFillColor, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, width = param.width, markerShape = param.markerShape, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, _param_mockProperties = param.mockProperties, mockProperties = _param_mockProperties === void 0 ? {
3580
3581
  start: 20.0,
3581
3582
  end: 15000.0,
3582
3583
  interval: 0.1,
@@ -3591,6 +3592,9 @@ function RotarySlider(param) {
3591
3592
  onChange: onChange,
3592
3593
  isRandomizable: isRandomizable
3593
3594
  }), bindDrag = _useSlider.bindDrag, normalisedValue = _useSlider.normalisedValue, scaledValue = _useSlider.scaledValue, setToDefaultState = _useSlider.setToDefaultState, setNormalisedState = _useSlider.setNormalisedState, properties = _useSlider.properties;
3595
+ var defaultGradientColor = size === RotarySliderSizes.large ? GradientStyles.multicolor : GradientStyles.unicolor;
3596
+ var defaultTrackWidth = size === RotarySliderSizes.large ? 5 : 3;
3597
+ var defaultMarkerShape = size === RotarySliderSizes.large ? RotarySliderMarkerShapes.circle : RotarySliderMarkerShapes.rectangle;
3594
3598
  return /*#__PURE__*/ React__default.createElement(ControlGroup, {
3595
3599
  id: id,
3596
3600
  width: width
@@ -3622,15 +3626,15 @@ function RotarySlider(param) {
3622
3626
  polarity: polarity,
3623
3627
  className: className,
3624
3628
  id: id,
3625
- trackWidth: trackWidth,
3626
- markerShape: markerShape,
3629
+ trackWidth: trackWidth !== null && trackWidth !== void 0 ? trackWidth : defaultTrackWidth,
3630
+ markerShape: markerShape !== null && markerShape !== void 0 ? markerShape : defaultMarkerShape,
3627
3631
  // trackOffset={trackOffset}
3628
3632
  sliderValue: normalisedValue,
3629
3633
  bindDrag: bindDrag,
3630
3634
  onDoubleClick: setToDefaultState,
3631
3635
  size: size,
3632
3636
  indicatorLineColor: indicatorLineColor,
3633
- indicatorLineGradient: indicatorLineGradient,
3637
+ indicatorLineGradient: defaultGradientColor,
3634
3638
  trackColor: trackColor,
3635
3639
  trackStrokeColor: trackStrokeColor,
3636
3640
  knobStrokeColor: knobStrokeColor,
@@ -3663,7 +3667,7 @@ RotarySlider.polarity = Polarity;
3663
3667
  RotarySlider.size = RotarySliderSizes;
3664
3668
  RotarySlider.markerShape = RotarySliderMarkerShapes;
3665
3669
 
3666
- var css_248z$6 = ".BarSlider {\n --maxNarrowTrackIndicatorWidth: 6px;\n --maxNarrowTrackWidth: 20px;\n --minHorizontalWidth: 75px;\n --minVerticalHeight: 75px;\n --narrowTrackMargin: 8px;\n --narrowTrackBorderRadius: 20px;\n}\n\n.BarSlider:hover {\n cursor: pointer;\n}\n\n.BarSlider-Track {\n touch-action: none;\n position: relative;\n width: 100%;\n height: 100%;\n max-height: 100%;\n max-width: 100%;\n background-color: var(--bg-lv5);\n}\n\n.BarSlider-Track.isHighlighted {\n background-color: var(--bg-lv6);\n}\n.Barslider-IndicatorLineWrapper,\n.BarSlider-MarkerWrapper {\n width: 100%;\n height: 100%;\n position: absolute;\n pointer-events: none;\n}\n\n.BarSlider-IndicatorLine {\n position: absolute;\n top: 0;\n /* left: 0; */\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.BarSlider-Marker {\n position: absolute;\n pointer-events: none;\n}\n\n/* Narrow variant */\n.BarSlider--narrowTrack .BarSlider-Track {\n border-radius: var(--narrowTrackBorderRadius);\n background-color: var(--bg-lv3);\n box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.25);\n}\n\n/* .BarSlider--narrowTrack .BarSlider-IndicatorLine {\n border-radius: var(--narrowTrackBorderRadius);\n} */\n\n.BarSlider--narrowTrack .BarSlider-Marker {\n border-radius: var(--narrowTrackBorderRadius);\n}\n\n.BarSlider--narrowTrack .Barslider-IndicatorLineWrapper {\n border-radius: var(--narrowTrackBorderRadius);\n overflow: hidden;\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .Barslider-IndicatorLineWrapper,\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-MarkerWrapper {\n bottom: var(--maxNarrowTrackIndicatorWidth);\n left: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n width: var(--maxNarrowTrackIndicatorWidth);\n height: calc(100% - (var(--narrowTrackMargin) * 2));\n margin-left: var(--narrowTrackMargin);\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .Barslider-IndicatorLineWrapper,\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-MarkerWrapper {\n top: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n left: var(--maxNarrowTrackIndicatorWidth);\n height: var(--maxNarrowTrackIndicatorWidth);\n width: calc(100% - (var(--narrowTrackMargin) * 2));\n margin-bottom: var(--narrowTrackMargin);\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-Track {\n height: 100%;\n max-height: 100%;\n width: var(--maxNarrowTrackWidth);\n min-height: var(--minVerticalHeight);\n max-width: var(--maxNarrowTrackWidth);\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-Track {\n width: 100%;\n max-width: 100%;\n height: var(--maxNarrowTrackWidth);\n max-height: var(--maxNarrowTrackWidth);\n min-width: var(--minHorizontalWidth);\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-IndicatorLine {\n max-width: var(--maxNarrowTrackIndicatorWidth);\n max-height: 100%;\n left: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-IndicatorLine {\n width: 100%;\n max-width: 100%;\n max-height: var(--maxNarrowTrackIndicatorWidth);\n top: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n /* left: var(--narrowTrackMargin);\n right: calc(100% - var(--narrowTrackMargin)); */\n}\n/* Wide variant */\n\n.BarSlider--wideTrack .BarSlider-Track {\n border-radius: 2px;\n}\n\n.BarSlider--wideTrack.BarSlider--isVertical .BarSlider-Track {\n min-height: var(--minVerticalHeight);\n}\n\n.BarSlider-Input {\n font-weight: bold;\n width: 100%;\n}\n.BarSlider-Input.includeValueInHeightIsTrue {\n}\n\n.BarSlider-Input.includeValueInHeightIsFalse {\n position: absolute;\n bottom: -1.7em;\n left: 0;\n right: 0;\n z-index: 10;\n}\n";
3670
+ var css_248z$6 = ".BarSlider {\n --maxNarrowTrackIndicatorWidth: 6px;\n --maxNarrowTrackWidth: 20px;\n --minHorizontalWidth: 75px;\n --minVerticalHeight: 75px;\n --narrowTrackMargin: 8px;\n --narrowTrackBorderRadius: 20px;\n}\n\n.BarSlider:hover {\n cursor: pointer;\n}\n\n.BarSlider-Track {\n touch-action: none;\n position: relative;\n width: 100%;\n height: 100%;\n max-height: 100%;\n max-width: 100%;\n background-color: var(--bg-lv5);\n}\n\n.BarSlider-Track.isHighlighted {\n background-color: var(--bg-lv6);\n}\n.Barslider-IndicatorLineWrapper,\n.BarSlider-MarkerWrapper {\n width: 100%;\n height: 100%;\n position: absolute;\n pointer-events: none;\n}\n\n.BarSlider-IndicatorLine {\n position: absolute;\n top: 0;\n /* left: 0; */\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.BarSlider-Marker {\n position: absolute;\n pointer-events: none;\n}\n\n/* Narrow variant */\n.BarSlider--narrowTrack .BarSlider-Track {\n border-radius: var(--narrowTrackBorderRadius);\n background-color: var(--bg-lv3);\n box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.25);\n}\n\n/* .BarSlider--narrowTrack .BarSlider-IndicatorLine {\n border-radius: var(--narrowTrackBorderRadius);\n} */\n\n.BarSlider--narrowTrack .BarSlider-Marker {\n border-radius: var(--narrowTrackBorderRadius);\n}\n\n.BarSlider--narrowTrack .Barslider-IndicatorLineWrapper {\n border-radius: var(--narrowTrackBorderRadius);\n overflow: hidden;\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .Barslider-IndicatorLineWrapper,\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-MarkerWrapper {\n bottom: var(--maxNarrowTrackIndicatorWidth);\n left: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n width: var(--maxNarrowTrackIndicatorWidth);\n height: calc(100% - (var(--narrowTrackMargin) * 2));\n /* margin-left: var(--narrowTrackMargin); */\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .Barslider-IndicatorLineWrapper,\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-MarkerWrapper {\n top: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n left: var(--maxNarrowTrackIndicatorWidth);\n height: var(--maxNarrowTrackIndicatorWidth);\n width: calc(100% - (var(--narrowTrackMargin) * 2));\n margin-bottom: var(--narrowTrackMargin);\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-Track {\n height: 100%;\n max-height: 100%;\n width: var(--maxNarrowTrackWidth);\n min-height: var(--minVerticalHeight);\n max-width: var(--maxNarrowTrackWidth);\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-Track {\n width: 100%;\n max-width: 100%;\n height: var(--maxNarrowTrackWidth);\n max-height: var(--maxNarrowTrackWidth);\n min-width: var(--minHorizontalWidth);\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-IndicatorLine {\n max-width: var(--maxNarrowTrackIndicatorWidth);\n max-height: 100%;\n left: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-IndicatorLine {\n width: 100%;\n max-width: 100%;\n max-height: var(--maxNarrowTrackIndicatorWidth);\n top: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n /* left: var(--narrowTrackMargin);\n right: calc(100% - var(--narrowTrackMargin)); */\n}\n/* Wide variant */\n\n.BarSlider--wideTrack .BarSlider-Track {\n border-radius: 2px;\n}\n\n.BarSlider--wideTrack.BarSlider--isVertical .BarSlider-Track {\n min-height: var(--minVerticalHeight);\n}\n\n.BarSlider-Input {\n font-weight: bold;\n width: 100%;\n}\n.BarSlider-Input.includeValueInHeightIsTrue {\n}\n\n.BarSlider-Input.includeValueInHeightIsFalse {\n position: absolute;\n bottom: -1.7em;\n left: 0;\n right: 0;\n z-index: 10;\n}\n";
3667
3671
  styleInject(css_248z$6);
3668
3672
 
3669
3673
  function _define_property$a(obj, key, value) {
@@ -3841,15 +3845,15 @@ Slider$1.sliderType = SliderType;
3841
3845
  Slider$1.polarity = Polarity;
3842
3846
  Slider$1.orientation = Orientation;
3843
3847
 
3844
- function _array_like_to_array$d(arr, len) {
3848
+ function _array_like_to_array$c(arr, len) {
3845
3849
  if (len == null || len > arr.length) len = arr.length;
3846
3850
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3847
3851
  return arr2;
3848
3852
  }
3849
- function _array_with_holes$c(arr) {
3853
+ function _array_with_holes$b(arr) {
3850
3854
  if (Array.isArray(arr)) return arr;
3851
3855
  }
3852
- function _iterable_to_array_limit$c(arr, i) {
3856
+ function _iterable_to_array_limit$b(arr, i) {
3853
3857
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3854
3858
  if (_i == null) return;
3855
3859
  var _arr = [];
@@ -3873,26 +3877,26 @@ function _iterable_to_array_limit$c(arr, i) {
3873
3877
  }
3874
3878
  return _arr;
3875
3879
  }
3876
- function _non_iterable_rest$c() {
3880
+ function _non_iterable_rest$b() {
3877
3881
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3878
3882
  }
3879
- function _sliced_to_array$c(arr, i) {
3880
- return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$c();
3883
+ function _sliced_to_array$b(arr, i) {
3884
+ return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$b();
3881
3885
  }
3882
- function _unsupported_iterable_to_array$d(o, minLen) {
3886
+ function _unsupported_iterable_to_array$c(o, minLen) {
3883
3887
  if (!o) return;
3884
- if (typeof o === "string") return _array_like_to_array$d(o, minLen);
3888
+ if (typeof o === "string") return _array_like_to_array$c(o, minLen);
3885
3889
  var n = Object.prototype.toString.call(o).slice(8, -1);
3886
3890
  if (n === "Object" && o.constructor) n = o.constructor.name;
3887
3891
  if (n === "Map" || n === "Set") return Array.from(n);
3888
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
3892
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
3889
3893
  }
3890
3894
  var useCombobox = function(param) {
3891
3895
  var id = param.id, label = param.label, filter = param.filter; param.onChange; var _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader, isDisabled = param.isDisabled;
3892
3896
  var _Object_values, _properties_choices;
3893
3897
  var comboBoxState = Juce.getComboBoxState(id);
3894
- var _useState = _sliced_to_array$c(useState(comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.properties), 2), properties = _useState[0], setProperties = _useState[1];
3895
- var _useState1 = _sliced_to_array$c(useState(0), 2), index = _useState1[0], setIndex = _useState1[1];
3898
+ var _useState = _sliced_to_array$b(useState(comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.properties), 2), properties = _useState[0], setProperties = _useState[1];
3899
+ var _useState1 = _sliced_to_array$b(useState(0), 2), index = _useState1[0], setIndex = _useState1[1];
3896
3900
  var prevIndex = useRef(null);
3897
3901
  var nextIndex = useRef(null);
3898
3902
  var prevDragDirection = useRef(null);
@@ -4403,12 +4407,12 @@ function LinePlot(param) {
4403
4407
  var css_248z$5 = ".Oscilloscope {\n background: #0EAC8B;\n box-shadow: inset 0 0 20px #086350;\n height: 200px;\n };";
4404
4408
  styleInject(css_248z$5);
4405
4409
 
4406
- function _array_like_to_array$c(arr, len) {
4410
+ function _array_like_to_array$b(arr, len) {
4407
4411
  if (len == null || len > arr.length) len = arr.length;
4408
4412
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4409
4413
  return arr2;
4410
4414
  }
4411
- function _array_with_holes$b(arr) {
4415
+ function _array_with_holes$a(arr) {
4412
4416
  if (Array.isArray(arr)) return arr;
4413
4417
  }
4414
4418
  function _define_property$7(obj, key, value) {
@@ -4424,7 +4428,7 @@ function _define_property$7(obj, key, value) {
4424
4428
  }
4425
4429
  return obj;
4426
4430
  }
4427
- function _iterable_to_array_limit$b(arr, i) {
4431
+ function _iterable_to_array_limit$a(arr, i) {
4428
4432
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
4429
4433
  if (_i == null) return;
4430
4434
  var _arr = [];
@@ -4448,7 +4452,7 @@ function _iterable_to_array_limit$b(arr, i) {
4448
4452
  }
4449
4453
  return _arr;
4450
4454
  }
4451
- function _non_iterable_rest$b() {
4455
+ function _non_iterable_rest$a() {
4452
4456
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4453
4457
  }
4454
4458
  function _object_spread$7(target) {
@@ -4466,20 +4470,20 @@ function _object_spread$7(target) {
4466
4470
  }
4467
4471
  return target;
4468
4472
  }
4469
- function _sliced_to_array$b(arr, i) {
4470
- return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$b();
4473
+ function _sliced_to_array$a(arr, i) {
4474
+ return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$a();
4471
4475
  }
4472
- function _unsupported_iterable_to_array$c(o, minLen) {
4476
+ function _unsupported_iterable_to_array$b(o, minLen) {
4473
4477
  if (!o) return;
4474
- if (typeof o === "string") return _array_like_to_array$c(o, minLen);
4478
+ if (typeof o === "string") return _array_like_to_array$b(o, minLen);
4475
4479
  var n = Object.prototype.toString.call(o).slice(8, -1);
4476
4480
  if (n === "Object" && o.constructor) n = o.constructor.name;
4477
4481
  if (n === "Map" || n === "Set") return Array.from(n);
4478
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
4482
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
4479
4483
  }
4480
4484
  function Oscilloscope(param) {
4481
4485
  var width = param.width, height = param.height, className = param.className, style = param.style, id = param.id;
4482
- var _useState = _sliced_to_array$b(useState([]), 2), viewData = _useState[0], setViewData = _useState[1];
4486
+ var _useState = _sliced_to_array$a(useState([]), 2), viewData = _useState[0], setViewData = _useState[1];
4483
4487
  var cycleLength = useRef(0);
4484
4488
  useEffect(function() {
4485
4489
  //@ts-expect-error
@@ -4523,12 +4527,12 @@ styleInject(css_248z$4);
4523
4527
  var css_248z$3 = ".PresetManagerContainer {\n width: 100%;\n height: 100%;\n background-color: var(--bg-lv1);\n color: var(--color-text);\n}\n\n.PresetManagerButton {\n width: 100%;\n height: 100%;\n max-width: 300px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n cursor: pointer;\n font-family: var(--font-leagueSpartan);\n}\n.PresetManagerButtonLabel {\n cursor: pointer;\n text-align: center;\n font-family: var(--font-leagueSpartan);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 225px;\n display: inline-block;\n vertical-align: middle;\n height: 1rem;\n line-height: 1.25;\n /* position: relative; */\n &:hover,\n &:active {\n background: var(--color-gray-900);\n }\n /* &.isDirty {\n &::after {\n content: '*';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n }\n } */\n}\n\n.PresetManagerButtonLabelContainer.isDirty::after {\n content: '*';\n position: absolute;\n height: 1rem;\n width: 1rem;\n right: -0.75rem;\n top: 0;\n}\n\n.PresetManagerButtonLabelOuterContainer {\n position: relative;\n width: auto;\n}\n\n[data-headlessui-state='open active'] .PresetManagerButtonLabel {\n background: var(--color-gray-900);\n}\n.PresetManagerPanel {\n position: absolute;\n font-family: var(--font-leagueSpartan);\n right: 0px;\n left: 0px;\n width: 100%;\n max-width: 400px !important;\n color: var(--color-text);\n background: var(--bg-lv5);\n}\n\n.PresetManagerPanel:focus,\n.PresetManagerPanel:focus-visible {\n outline: none;\n}\n\n.PresetManagerListItem {\n cursor: pointer;\n background: var(--color-gray-800);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n}\n\n.PresetManagerListItem:hover,\n.PresetManagerListItem.isSelected {\n background: var(--bg-selected);\n}\n\n.PresetManagerListItemText {\n display: inline-block;\n vertical-align: middle;\n height: 1.5rem;\n line-height: 1.75;\n}\n";
4524
4528
  styleInject(css_248z$3);
4525
4529
 
4526
- function _array_like_to_array$b(arr, len) {
4530
+ function _array_like_to_array$a(arr, len) {
4527
4531
  if (len == null || len > arr.length) len = arr.length;
4528
4532
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4529
4533
  return arr2;
4530
4534
  }
4531
- function _array_with_holes$a(arr) {
4535
+ function _array_with_holes$9(arr) {
4532
4536
  if (Array.isArray(arr)) return arr;
4533
4537
  }
4534
4538
  function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
@@ -4560,7 +4564,7 @@ function _async_to_generator$3(fn) {
4560
4564
  });
4561
4565
  };
4562
4566
  }
4563
- function _iterable_to_array_limit$a(arr, i) {
4567
+ function _iterable_to_array_limit$9(arr, i) {
4564
4568
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
4565
4569
  if (_i == null) return;
4566
4570
  var _arr = [];
@@ -4584,23 +4588,23 @@ function _iterable_to_array_limit$a(arr, i) {
4584
4588
  }
4585
4589
  return _arr;
4586
4590
  }
4587
- function _non_iterable_rest$a() {
4591
+ function _non_iterable_rest$9() {
4588
4592
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4589
4593
  }
4590
4594
  function _object_destructuring_empty(o) {
4591
4595
  if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
4592
4596
  return o;
4593
4597
  }
4594
- function _sliced_to_array$a(arr, i) {
4595
- return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$a();
4598
+ function _sliced_to_array$9(arr, i) {
4599
+ return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$9();
4596
4600
  }
4597
- function _unsupported_iterable_to_array$b(o, minLen) {
4601
+ function _unsupported_iterable_to_array$a(o, minLen) {
4598
4602
  if (!o) return;
4599
- if (typeof o === "string") return _array_like_to_array$b(o, minLen);
4603
+ if (typeof o === "string") return _array_like_to_array$a(o, minLen);
4600
4604
  var n = Object.prototype.toString.call(o).slice(8, -1);
4601
4605
  if (n === "Object" && o.constructor) n = o.constructor.name;
4602
4606
  if (n === "Map" || n === "Set") return Array.from(n);
4603
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
4607
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
4604
4608
  }
4605
4609
  function _ts_generator$3(thisArg, body) {
4606
4610
  var f, y, t, _ = {
@@ -4695,16 +4699,16 @@ function _ts_generator$3(thisArg, body) {
4695
4699
  }
4696
4700
  function PresetManager(param) {
4697
4701
  _object_destructuring_empty(param);
4698
- var _useState = _sliced_to_array$a(useState([]), 2), presetList = _useState[0], setPresetList = _useState[1];
4699
- var _useState1 = _sliced_to_array$a(useState(false), 2); _useState1[0]; var setIsSaving = _useState1[1];
4702
+ var _useState = _sliced_to_array$9(useState([]), 2), presetList = _useState[0], setPresetList = _useState[1];
4703
+ var _useState1 = _sliced_to_array$9(useState(false), 2); _useState1[0]; var setIsSaving = _useState1[1];
4700
4704
  var savePresetFunc = Juce.getNativeFunction('savePreset');
4701
4705
  var loadPresetFunc = Juce.getNativeFunction('loadPreset');
4702
4706
  var getAllPresetsFunc = Juce.getNativeFunction('getAllPresets');
4703
4707
  var getCurrentPresetFunc = Juce.getNativeFunction('getCurrentPreset');
4704
4708
  var isDirtyFunc = Juce.getNativeFunction('canUndo');
4705
- var _useState2 = _sliced_to_array$a(useState(), 2), selectedPreset = _useState2[0], setSelectedPreset = _useState2[1];
4709
+ var _useState2 = _sliced_to_array$9(useState(), 2), selectedPreset = _useState2[0], setSelectedPreset = _useState2[1];
4706
4710
  var isLocalhost = window.location.hostname === 'localhost';
4707
- var _useState3 = _sliced_to_array$a(useState(false), 2), isDirty = _useState3[0], setIsDirty = _useState3[1];
4711
+ var _useState3 = _sliced_to_array$9(useState(false), 2), isDirty = _useState3[0], setIsDirty = _useState3[1];
4708
4712
  useEffect(function() {
4709
4713
  if (!isLocalhost) {
4710
4714
  var isDirtyListenerId = //@ts-expect-error
@@ -4982,12 +4986,12 @@ function PresetManager(param) {
4982
4986
  }))))));
4983
4987
  }
4984
4988
 
4985
- function _array_like_to_array$a(arr, len) {
4989
+ function _array_like_to_array$9(arr, len) {
4986
4990
  if (len == null || len > arr.length) len = arr.length;
4987
4991
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4988
4992
  return arr2;
4989
4993
  }
4990
- function _array_with_holes$9(arr) {
4994
+ function _array_with_holes$8(arr) {
4991
4995
  if (Array.isArray(arr)) return arr;
4992
4996
  }
4993
4997
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
@@ -5032,7 +5036,7 @@ function _define_property$6(obj, key, value) {
5032
5036
  }
5033
5037
  return obj;
5034
5038
  }
5035
- function _iterable_to_array_limit$9(arr, i) {
5039
+ function _iterable_to_array_limit$8(arr, i) {
5036
5040
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
5037
5041
  if (_i == null) return;
5038
5042
  var _arr = [];
@@ -5056,7 +5060,7 @@ function _iterable_to_array_limit$9(arr, i) {
5056
5060
  }
5057
5061
  return _arr;
5058
5062
  }
5059
- function _non_iterable_rest$9() {
5063
+ function _non_iterable_rest$8() {
5060
5064
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5061
5065
  }
5062
5066
  function _object_spread$6(target) {
@@ -5074,16 +5078,16 @@ function _object_spread$6(target) {
5074
5078
  }
5075
5079
  return target;
5076
5080
  }
5077
- function _sliced_to_array$9(arr, i) {
5078
- return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$9();
5081
+ function _sliced_to_array$8(arr, i) {
5082
+ return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$8();
5079
5083
  }
5080
- function _unsupported_iterable_to_array$a(o, minLen) {
5084
+ function _unsupported_iterable_to_array$9(o, minLen) {
5081
5085
  if (!o) return;
5082
- if (typeof o === "string") return _array_like_to_array$a(o, minLen);
5086
+ if (typeof o === "string") return _array_like_to_array$9(o, minLen);
5083
5087
  var n = Object.prototype.toString.call(o).slice(8, -1);
5084
5088
  if (n === "Object" && o.constructor) n = o.constructor.name;
5085
5089
  if (n === "Map" || n === "Set") return Array.from(n);
5086
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
5090
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
5087
5091
  }
5088
5092
  function _ts_generator$2(thisArg, body) {
5089
5093
  var f, y, t, _ = {
@@ -5266,8 +5270,8 @@ function ModuleHeader(param) {
5266
5270
  }, [
5267
5271
  window
5268
5272
  ]);
5269
- var _useState = _sliced_to_array$9(useState(false), 2), canUndo = _useState[0], setCanUndo = _useState[1];
5270
- var _useState1 = _sliced_to_array$9(useState(false), 2), canRedo = _useState1[0], setCanRedo = _useState1[1];
5273
+ var _useState = _sliced_to_array$8(useState(false), 2), canUndo = _useState[0], setCanUndo = _useState[1];
5274
+ var _useState1 = _sliced_to_array$8(useState(false), 2), canRedo = _useState1[0], setCanRedo = _useState1[1];
5271
5275
  var handleUndo = function() {
5272
5276
  undo();
5273
5277
  };
@@ -5520,12 +5524,12 @@ var targetColors = [
5520
5524
  var ComboboxCellWidth = '217px';
5521
5525
  var DeleteButtonCellWidth = '50px';
5522
5526
 
5523
- function _array_like_to_array$9(arr, len) {
5527
+ function _array_like_to_array$8(arr, len) {
5524
5528
  if (len == null || len > arr.length) len = arr.length;
5525
5529
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5526
5530
  return arr2;
5527
5531
  }
5528
- function _array_with_holes$8(arr) {
5532
+ function _array_with_holes$7(arr) {
5529
5533
  if (Array.isArray(arr)) return arr;
5530
5534
  }
5531
5535
  function _define_property$5(obj, key, value) {
@@ -5541,7 +5545,7 @@ function _define_property$5(obj, key, value) {
5541
5545
  }
5542
5546
  return obj;
5543
5547
  }
5544
- function _iterable_to_array_limit$8(arr, i) {
5548
+ function _iterable_to_array_limit$7(arr, i) {
5545
5549
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
5546
5550
  if (_i == null) return;
5547
5551
  var _arr = [];
@@ -5565,7 +5569,7 @@ function _iterable_to_array_limit$8(arr, i) {
5565
5569
  }
5566
5570
  return _arr;
5567
5571
  }
5568
- function _non_iterable_rest$8() {
5572
+ function _non_iterable_rest$7() {
5569
5573
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5570
5574
  }
5571
5575
  function _object_spread$5(target) {
@@ -5583,20 +5587,20 @@ function _object_spread$5(target) {
5583
5587
  }
5584
5588
  return target;
5585
5589
  }
5586
- function _sliced_to_array$8(arr, i) {
5587
- return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$8();
5590
+ function _sliced_to_array$7(arr, i) {
5591
+ return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$7();
5588
5592
  }
5589
- function _unsupported_iterable_to_array$9(o, minLen) {
5593
+ function _unsupported_iterable_to_array$8(o, minLen) {
5590
5594
  if (!o) return;
5591
- if (typeof o === "string") return _array_like_to_array$9(o, minLen);
5595
+ if (typeof o === "string") return _array_like_to_array$8(o, minLen);
5592
5596
  var n = Object.prototype.toString.call(o).slice(8, -1);
5593
5597
  if (n === "Object" && o.constructor) n = o.constructor.name;
5594
5598
  if (n === "Map" || n === "Set") return Array.from(n);
5595
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
5599
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
5596
5600
  }
5597
5601
  function ModMatrixComboboxCell(param) {
5598
5602
  var rowId = param.rowId, key = param.key, color = param.color, style = param.style;
5599
- var _useState = _sliced_to_array$8(useState(''), 2), filterString = _useState[0], setFilterString = _useState[1];
5603
+ var _useState = _sliced_to_array$7(useState(''), 2), filterString = _useState[0], setFilterString = _useState[1];
5600
5604
  var _useGlobalContext = useGlobalContext(), updateModSlotRowTarget = _useGlobalContext.updateModSlotRowTarget, setModSlotRowTargetAsPreview = _useGlobalContext.setModSlotRowTargetAsPreview, clearModSlotPreview = _useGlobalContext.clearModSlotPreview, setNewModSlotPreview = _useGlobalContext.setNewModSlotPreview, _useGlobalContext_globalState = _useGlobalContext.globalState, modSlotPreview = _useGlobalContext_globalState.modSlotPreview, automatableParamLabels = _useGlobalContext_globalState.automatableParamLabels;
5601
5605
  var _useCombobox = useCombobox({
5602
5606
  id: rowId,
@@ -5797,12 +5801,12 @@ function SingleBarViz(param) {
5797
5801
  }
5798
5802
  SingleBarViz.polarity = Polarity;
5799
5803
 
5800
- function _array_like_to_array$8(arr, len) {
5804
+ function _array_like_to_array$7(arr, len) {
5801
5805
  if (len == null || len > arr.length) len = arr.length;
5802
5806
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5803
5807
  return arr2;
5804
5808
  }
5805
- function _array_with_holes$7(arr) {
5809
+ function _array_with_holes$6(arr) {
5806
5810
  if (Array.isArray(arr)) return arr;
5807
5811
  }
5808
5812
  function _define_property$2(obj, key, value) {
@@ -5818,7 +5822,7 @@ function _define_property$2(obj, key, value) {
5818
5822
  }
5819
5823
  return obj;
5820
5824
  }
5821
- function _iterable_to_array_limit$7(arr, i) {
5825
+ function _iterable_to_array_limit$6(arr, i) {
5822
5826
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
5823
5827
  if (_i == null) return;
5824
5828
  var _arr = [];
@@ -5842,7 +5846,7 @@ function _iterable_to_array_limit$7(arr, i) {
5842
5846
  }
5843
5847
  return _arr;
5844
5848
  }
5845
- function _non_iterable_rest$7() {
5849
+ function _non_iterable_rest$6() {
5846
5850
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5847
5851
  }
5848
5852
  function _object_spread$2(target) {
@@ -5879,22 +5883,22 @@ function _object_spread_props(target, source) {
5879
5883
  }
5880
5884
  return target;
5881
5885
  }
5882
- function _sliced_to_array$7(arr, i) {
5883
- return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$7();
5886
+ function _sliced_to_array$6(arr, i) {
5887
+ return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$6();
5884
5888
  }
5885
- function _unsupported_iterable_to_array$8(o, minLen) {
5889
+ function _unsupported_iterable_to_array$7(o, minLen) {
5886
5890
  if (!o) return;
5887
- if (typeof o === "string") return _array_like_to_array$8(o, minLen);
5891
+ if (typeof o === "string") return _array_like_to_array$7(o, minLen);
5888
5892
  var n = Object.prototype.toString.call(o).slice(8, -1);
5889
5893
  if (n === "Object" && o.constructor) n = o.constructor.name;
5890
5894
  if (n === "Map" || n === "Set") return Array.from(n);
5891
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
5895
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
5892
5896
  }
5893
5897
  function ModMatrixCell(param) {
5894
5898
  var modifier = param.modifier, rowId = param.rowId, isDisabled = param.isDisabled, color = param.color, style = param.style;
5895
5899
  var _SingleBarViz_polarity;
5896
5900
  var _useGlobalContext = useGlobalContext(), setDefaultParameter = _useGlobalContext.setDefaultParameter, saveModSlotPreviewRowTargetToBackend = _useGlobalContext.saveModSlotPreviewRowTargetToBackend;
5897
- var _useState = _sliced_to_array$7(useState(false), 2); _useState[0]; var setIsActive = _useState[1];
5901
+ var _useState = _sliced_to_array$6(useState(false), 2); _useState[0]; var setIsActive = _useState[1];
5898
5902
  var _useSlider = useSlider({
5899
5903
  id: modifier,
5900
5904
  rowId: rowId,
@@ -6037,16 +6041,16 @@ function ModMatrixRow(param) {
6037
6041
  })));
6038
6042
  }
6039
6043
 
6040
- function _array_like_to_array$7(arr, len) {
6044
+ function _array_like_to_array$6(arr, len) {
6041
6045
  if (len == null || len > arr.length) len = arr.length;
6042
6046
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
6043
6047
  return arr2;
6044
6048
  }
6045
- function _array_with_holes$6(arr) {
6049
+ function _array_with_holes$5(arr) {
6046
6050
  if (Array.isArray(arr)) return arr;
6047
6051
  }
6048
6052
  function _array_without_holes$1(arr) {
6049
- if (Array.isArray(arr)) return _array_like_to_array$7(arr);
6053
+ if (Array.isArray(arr)) return _array_like_to_array$6(arr);
6050
6054
  }
6051
6055
  function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
6052
6056
  try {
@@ -6093,7 +6097,7 @@ function _define_property$1(obj, key, value) {
6093
6097
  function _iterable_to_array$1(iter) {
6094
6098
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
6095
6099
  }
6096
- function _iterable_to_array_limit$6(arr, i) {
6100
+ function _iterable_to_array_limit$5(arr, i) {
6097
6101
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
6098
6102
  if (_i == null) return;
6099
6103
  var _arr = [];
@@ -6117,7 +6121,7 @@ function _iterable_to_array_limit$6(arr, i) {
6117
6121
  }
6118
6122
  return _arr;
6119
6123
  }
6120
- function _non_iterable_rest$6() {
6124
+ function _non_iterable_rest$5() {
6121
6125
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6122
6126
  }
6123
6127
  function _non_iterable_spread$1() {
@@ -6138,19 +6142,19 @@ function _object_spread$1(target) {
6138
6142
  }
6139
6143
  return target;
6140
6144
  }
6141
- function _sliced_to_array$6(arr, i) {
6142
- return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$6();
6145
+ function _sliced_to_array$5(arr, i) {
6146
+ return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$5();
6143
6147
  }
6144
6148
  function _to_consumable_array$1(arr) {
6145
- return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$1();
6149
+ return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$1();
6146
6150
  }
6147
- function _unsupported_iterable_to_array$7(o, minLen) {
6151
+ function _unsupported_iterable_to_array$6(o, minLen) {
6148
6152
  if (!o) return;
6149
- if (typeof o === "string") return _array_like_to_array$7(o, minLen);
6153
+ if (typeof o === "string") return _array_like_to_array$6(o, minLen);
6150
6154
  var n = Object.prototype.toString.call(o).slice(8, -1);
6151
6155
  if (n === "Object" && o.constructor) n = o.constructor.name;
6152
6156
  if (n === "Map" || n === "Set") return Array.from(n);
6153
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
6157
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
6154
6158
  }
6155
6159
  function _ts_generator$1(thisArg, body) {
6156
6160
  var f, y, t, _ = {
@@ -6249,7 +6253,7 @@ function ModMatrix(param) {
6249
6253
  var getAutomatableParamsListFunc = Juce.getNativeFunction('getAutomatableParamsList');
6250
6254
  var getAllModSlotsFunc = Juce.getNativeFunction('getAllModSlots');
6251
6255
  var getModSlotParamsFunc = Juce.getNativeFunction('getModSlotParams');
6252
- var _useState = _sliced_to_array$6(useState([]), 2), displayedModSlots = _useState[0], setDisplayedModSlots = _useState[1];
6256
+ var _useState = _sliced_to_array$5(useState([]), 2), displayedModSlots = _useState[0], setDisplayedModSlots = _useState[1];
6253
6257
  var _useGlobalContext = useGlobalContext(), automatableParamsListReceived = _useGlobalContext.automatableParamsListReceived, automatableParamLabelsReceived = _useGlobalContext.automatableParamLabelsReceived, modSlotsReceived = _useGlobalContext.modSlotsReceived, modSlotRowTargetsReceived = _useGlobalContext.modSlotRowTargetsReceived, setNewModSlotPreview = _useGlobalContext.setNewModSlotPreview, modSlotParamsListReceived = _useGlobalContext.modSlotParamsListReceived, modSlotParamLabelsReceived = _useGlobalContext.modSlotParamLabelsReceived, _useGlobalContext_globalState = _useGlobalContext.globalState, modSlotParamLabels = _useGlobalContext_globalState.modSlotParamLabels, modSlotTargets = _useGlobalContext_globalState.modSlotTargets, modSlotIds = _useGlobalContext_globalState.modSlotIds, modSlotPreview = _useGlobalContext_globalState.modSlotPreview;
6254
6258
  // Empty state preview row
6255
6259
  useEffect(function() {
@@ -6411,13 +6415,13 @@ var WaveTypes = /*#__PURE__*/ function(WaveTypes) {
6411
6415
  return WaveTypes;
6412
6416
  }({});
6413
6417
 
6414
- function _array_like_to_array$6(arr, len) {
6418
+ function _array_like_to_array$5(arr, len) {
6415
6419
  if (len == null || len > arr.length) len = arr.length;
6416
6420
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
6417
6421
  return arr2;
6418
6422
  }
6419
6423
  function _array_without_holes(arr) {
6420
- if (Array.isArray(arr)) return _array_like_to_array$6(arr);
6424
+ if (Array.isArray(arr)) return _array_like_to_array$5(arr);
6421
6425
  }
6422
6426
  function _iterable_to_array(iter) {
6423
6427
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
@@ -6426,15 +6430,15 @@ function _non_iterable_spread() {
6426
6430
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6427
6431
  }
6428
6432
  function _to_consumable_array(arr) {
6429
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread();
6433
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread();
6430
6434
  }
6431
- function _unsupported_iterable_to_array$6(o, minLen) {
6435
+ function _unsupported_iterable_to_array$5(o, minLen) {
6432
6436
  if (!o) return;
6433
- if (typeof o === "string") return _array_like_to_array$6(o, minLen);
6437
+ if (typeof o === "string") return _array_like_to_array$5(o, minLen);
6434
6438
  var n = Object.prototype.toString.call(o).slice(8, -1);
6435
6439
  if (n === "Object" && o.constructor) n = o.constructor.name;
6436
6440
  if (n === "Map" || n === "Set") return Array.from(n);
6437
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
6441
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
6438
6442
  }
6439
6443
  var getPointArray = function(param) {
6440
6444
  var waveType = param.waveType, hz = param.hz, phaseValue = param.phaseValue, _param_pulseWidth = param.pulseWidth, pulseWidth = _param_pulseWidth === void 0 ? 1 : _param_pulseWidth, _param_ampValue = param.ampValue, ampValue = _param_ampValue === void 0 ? 0.5 : _param_ampValue, _param_randValue = param.randValue, randValue = _param_randValue === void 0 ? 1 : _param_randValue, _param_maxArrayLength = param.maxArrayLength, maxArrayLength = _param_maxArrayLength;
@@ -6761,15 +6765,15 @@ function LineChart(param) {
6761
6765
  }
6762
6766
  LineChart.fillGradient = GradientStyles;
6763
6767
 
6764
- function _array_like_to_array$5(arr, len) {
6768
+ function _array_like_to_array$4(arr, len) {
6765
6769
  if (len == null || len > arr.length) len = arr.length;
6766
6770
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
6767
6771
  return arr2;
6768
6772
  }
6769
- function _array_with_holes$5(arr) {
6773
+ function _array_with_holes$4(arr) {
6770
6774
  if (Array.isArray(arr)) return arr;
6771
6775
  }
6772
- function _iterable_to_array_limit$5(arr, i) {
6776
+ function _iterable_to_array_limit$4(arr, i) {
6773
6777
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
6774
6778
  if (_i == null) return;
6775
6779
  var _arr = [];
@@ -6793,41 +6797,41 @@ function _iterable_to_array_limit$5(arr, i) {
6793
6797
  }
6794
6798
  return _arr;
6795
6799
  }
6796
- function _non_iterable_rest$5() {
6800
+ function _non_iterable_rest$4() {
6797
6801
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6798
6802
  }
6799
- function _sliced_to_array$5(arr, i) {
6800
- return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$5();
6803
+ function _sliced_to_array$4(arr, i) {
6804
+ return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$4();
6801
6805
  }
6802
- function _unsupported_iterable_to_array$5(o, minLen) {
6806
+ function _unsupported_iterable_to_array$4(o, minLen) {
6803
6807
  if (!o) return;
6804
- if (typeof o === "string") return _array_like_to_array$5(o, minLen);
6808
+ if (typeof o === "string") return _array_like_to_array$4(o, minLen);
6805
6809
  var n = Object.prototype.toString.call(o).slice(8, -1);
6806
6810
  if (n === "Object" && o.constructor) n = o.constructor.name;
6807
6811
  if (n === "Map" || n === "Set") return Array.from(n);
6808
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
6812
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
6809
6813
  }
6810
6814
  function LFOVisualizer(param) {
6811
6815
  var id = param.id, _param_width = param.width, width = _param_width === void 0 ? 365 : _param_width, _param_height = param.height, height = _param_height === void 0 ? 160 : _param_height;
6812
6816
  // const svgRef = useRef(null);
6813
6817
  var isLocalhost = window.location.hostname === 'localhost';
6814
- var _useState = _sliced_to_array$5(useState(0), 2), waveValue = _useState[0], setWaveValue = _useState[1];
6815
- var _useState1 = _sliced_to_array$5(useState(0), 2), hzValue = _useState1[0], setHzValue = _useState1[1];
6816
- var _useState2 = _sliced_to_array$5(useState(0), 2), hzHiValue = _useState2[0], setHzHiValue = _useState2[1];
6818
+ var _useState = _sliced_to_array$4(useState(0), 2), waveValue = _useState[0], setWaveValue = _useState[1];
6819
+ var _useState1 = _sliced_to_array$4(useState(0), 2), hzValue = _useState1[0], setHzValue = _useState1[1];
6820
+ var _useState2 = _sliced_to_array$4(useState(0), 2), hzHiValue = _useState2[0], setHzHiValue = _useState2[1];
6817
6821
  //@ts-expect-error
6818
- var _useState3 = _sliced_to_array$5(useState(0), 2); _useState3[0]; var setSyncRateValue = _useState3[1];
6819
- var _useState4 = _sliced_to_array$5(useState(0), 2), syncTypeValue = _useState4[0], setSyncTypeValue = _useState4[1];
6822
+ var _useState3 = _sliced_to_array$4(useState(0), 2); _useState3[0]; var setSyncRateValue = _useState3[1];
6823
+ var _useState4 = _sliced_to_array$4(useState(0), 2), syncTypeValue = _useState4[0], setSyncTypeValue = _useState4[1];
6820
6824
  //@ts-expect-error
6821
- var _useState5 = _sliced_to_array$5(useState(0), 2); _useState5[0]; var setSixteenthsValue = _useState5[1];
6825
+ var _useState5 = _sliced_to_array$4(useState(0), 2); _useState5[0]; var setSixteenthsValue = _useState5[1];
6822
6826
  //@ts-expect-error
6823
- var _useState6 = _sliced_to_array$5(useState(0), 2); _useState6[0]; var setThirdsValue = _useState6[1];
6827
+ var _useState6 = _sliced_to_array$4(useState(0), 2); _useState6[0]; var setThirdsValue = _useState6[1];
6824
6828
  //@ts-expect-error
6825
- var _useState7 = _sliced_to_array$5(useState(0), 2); _useState7[0]; var setSyncOffsetValue = _useState7[1];
6826
- var _useState8 = _sliced_to_array$5(useState(0), 2), phaseValue = _useState8[0], setPhaseValue = _useState8[1];
6827
- var _useState9 = _sliced_to_array$5(useState(0), 2), widthValue = _useState9[0], setWidthValue = _useState9[1];
6828
- var _useState10 = _sliced_to_array$5(useState(0), 2), ampValue = _useState10[0], setAmpValue = _useState10[1];
6829
- var _useState11 = _sliced_to_array$5(useState(0), 2), randValue = _useState11[0], setRandValue = _useState11[1];
6830
- var _useState12 = _sliced_to_array$5(useState([]), 2), points = _useState12[0], setPoints = _useState12[1];
6829
+ var _useState7 = _sliced_to_array$4(useState(0), 2); _useState7[0]; var setSyncOffsetValue = _useState7[1];
6830
+ var _useState8 = _sliced_to_array$4(useState(0), 2), phaseValue = _useState8[0], setPhaseValue = _useState8[1];
6831
+ var _useState9 = _sliced_to_array$4(useState(0), 2), widthValue = _useState9[0], setWidthValue = _useState9[1];
6832
+ var _useState10 = _sliced_to_array$4(useState(0), 2), ampValue = _useState10[0], setAmpValue = _useState10[1];
6833
+ var _useState11 = _sliced_to_array$4(useState(0), 2), randValue = _useState11[0], setRandValue = _useState11[1];
6834
+ var _useState12 = _sliced_to_array$4(useState([]), 2), points = _useState12[0], setPoints = _useState12[1];
6831
6835
  // const [numLoops, setNumLoops] = useState(1);
6832
6836
  var maxArrayLength = 512;
6833
6837
  // useEffect(() => {
@@ -7125,15 +7129,15 @@ function LFOVisualizer(param) {
7125
7129
  })));
7126
7130
  }
7127
7131
 
7128
- function _array_like_to_array$4(arr, len) {
7132
+ function _array_like_to_array$3(arr, len) {
7129
7133
  if (len == null || len > arr.length) len = arr.length;
7130
7134
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7131
7135
  return arr2;
7132
7136
  }
7133
- function _array_with_holes$4(arr) {
7137
+ function _array_with_holes$3(arr) {
7134
7138
  if (Array.isArray(arr)) return arr;
7135
7139
  }
7136
- function _iterable_to_array_limit$4(arr, i) {
7140
+ function _iterable_to_array_limit$3(arr, i) {
7137
7141
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
7138
7142
  if (_i == null) return;
7139
7143
  var _arr = [];
@@ -7157,23 +7161,23 @@ function _iterable_to_array_limit$4(arr, i) {
7157
7161
  }
7158
7162
  return _arr;
7159
7163
  }
7160
- function _non_iterable_rest$4() {
7164
+ function _non_iterable_rest$3() {
7161
7165
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7162
7166
  }
7163
- function _sliced_to_array$4(arr, i) {
7164
- return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$4();
7167
+ function _sliced_to_array$3(arr, i) {
7168
+ return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
7165
7169
  }
7166
- function _unsupported_iterable_to_array$4(o, minLen) {
7170
+ function _unsupported_iterable_to_array$3(o, minLen) {
7167
7171
  if (!o) return;
7168
- if (typeof o === "string") return _array_like_to_array$4(o, minLen);
7172
+ if (typeof o === "string") return _array_like_to_array$3(o, minLen);
7169
7173
  var n = Object.prototype.toString.call(o).slice(8, -1);
7170
7174
  if (n === "Object" && o.constructor) n = o.constructor.name;
7171
7175
  if (n === "Map" || n === "Set") return Array.from(n);
7172
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
7176
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
7173
7177
  }
7174
7178
  function LFOBox(param) {
7175
7179
  var id = param.id;
7176
- var _useState = _sliced_to_array$4(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
7180
+ var _useState = _sliced_to_array$3(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
7177
7181
  useEffect(function() {
7178
7182
  var _Juce_getComboBoxState;
7179
7183
  var syncType = (_Juce_getComboBoxState = Juce.getComboBoxState("LFO".concat(id, "_SyncType"))) === null || _Juce_getComboBoxState === void 0 ? void 0 : _Juce_getComboBoxState.getChoiceIndex();
@@ -7363,15 +7367,15 @@ function LFOTab() {
7363
7367
  }));
7364
7368
  }
7365
7369
 
7366
- function _array_like_to_array$3(arr, len) {
7370
+ function _array_like_to_array$2(arr, len) {
7367
7371
  if (len == null || len > arr.length) len = arr.length;
7368
7372
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7369
7373
  return arr2;
7370
7374
  }
7371
- function _array_with_holes$3(arr) {
7375
+ function _array_with_holes$2(arr) {
7372
7376
  if (Array.isArray(arr)) return arr;
7373
7377
  }
7374
- function _iterable_to_array_limit$3(arr, i) {
7378
+ function _iterable_to_array_limit$2(arr, i) {
7375
7379
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
7376
7380
  if (_i == null) return;
7377
7381
  var _arr = [];
@@ -7395,24 +7399,24 @@ function _iterable_to_array_limit$3(arr, i) {
7395
7399
  }
7396
7400
  return _arr;
7397
7401
  }
7398
- function _non_iterable_rest$3() {
7402
+ function _non_iterable_rest$2() {
7399
7403
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7400
7404
  }
7401
- function _sliced_to_array$3(arr, i) {
7402
- return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
7405
+ function _sliced_to_array$2(arr, i) {
7406
+ return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
7403
7407
  }
7404
- function _unsupported_iterable_to_array$3(o, minLen) {
7408
+ function _unsupported_iterable_to_array$2(o, minLen) {
7405
7409
  if (!o) return;
7406
- if (typeof o === "string") return _array_like_to_array$3(o, minLen);
7410
+ if (typeof o === "string") return _array_like_to_array$2(o, minLen);
7407
7411
  var n = Object.prototype.toString.call(o).slice(8, -1);
7408
7412
  if (n === "Object" && o.constructor) n = o.constructor.name;
7409
7413
  if (n === "Map" || n === "Set") return Array.from(n);
7410
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
7414
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
7411
7415
  }
7412
7416
  function StepSequencer(param) {
7413
7417
  var seqId = param.seqId, _param_numSteps = param.numSteps, numSteps = _param_numSteps === void 0 ? 16 : _param_numSteps;
7414
7418
  var isLocalhost = window.location.hostname === 'localhost';
7415
- var _useState = _sliced_to_array$3(useState(1), 2), currentSeqStep = _useState[0], setCurrentSeqStep = _useState[1];
7419
+ var _useState = _sliced_to_array$2(useState(1), 2), currentSeqStep = _useState[0], setCurrentSeqStep = _useState[1];
7416
7420
  var steps = new Array(numSteps).fill(0);
7417
7421
  // const currentElementRef = useRef<string>(null);
7418
7422
  // const isMouseDownRef = useRef<boolean>(false);
@@ -7493,15 +7497,15 @@ function StepSequencer(param) {
7493
7497
  }));
7494
7498
  }
7495
7499
 
7496
- function _array_like_to_array$2(arr, len) {
7500
+ function _array_like_to_array$1(arr, len) {
7497
7501
  if (len == null || len > arr.length) len = arr.length;
7498
7502
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7499
7503
  return arr2;
7500
7504
  }
7501
- function _array_with_holes$2(arr) {
7505
+ function _array_with_holes$1(arr) {
7502
7506
  if (Array.isArray(arr)) return arr;
7503
7507
  }
7504
- function _iterable_to_array_limit$2(arr, i) {
7508
+ function _iterable_to_array_limit$1(arr, i) {
7505
7509
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
7506
7510
  if (_i == null) return;
7507
7511
  var _arr = [];
@@ -7525,23 +7529,23 @@ function _iterable_to_array_limit$2(arr, i) {
7525
7529
  }
7526
7530
  return _arr;
7527
7531
  }
7528
- function _non_iterable_rest$2() {
7532
+ function _non_iterable_rest$1() {
7529
7533
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7530
7534
  }
7531
- function _sliced_to_array$2(arr, i) {
7532
- return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
7535
+ function _sliced_to_array$1(arr, i) {
7536
+ return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
7533
7537
  }
7534
- function _unsupported_iterable_to_array$2(o, minLen) {
7538
+ function _unsupported_iterable_to_array$1(o, minLen) {
7535
7539
  if (!o) return;
7536
- if (typeof o === "string") return _array_like_to_array$2(o, minLen);
7540
+ if (typeof o === "string") return _array_like_to_array$1(o, minLen);
7537
7541
  var n = Object.prototype.toString.call(o).slice(8, -1);
7538
7542
  if (n === "Object" && o.constructor) n = o.constructor.name;
7539
7543
  if (n === "Map" || n === "Set") return Array.from(n);
7540
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
7544
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
7541
7545
  }
7542
7546
  function SeqTab$1(param) {
7543
7547
  var seqId = param.seqId;
7544
- var _useState = _sliced_to_array$2(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
7548
+ var _useState = _sliced_to_array$1(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
7545
7549
  useEffect(function() {
7546
7550
  var _Juce_getSliderState;
7547
7551
  var syncType = (_Juce_getSliderState = Juce.getSliderState("seq".concat(seqId, "_syncType"))) === null || _Juce_getSliderState === void 0 ? void 0 : _Juce_getSliderState.scaledValue;
@@ -7831,86 +7835,7 @@ function Chart(param) {
7831
7835
  Chart.fillGradient = GradientStyles;
7832
7836
  Chart.chartType = ChartTypes;
7833
7837
 
7834
- function _array_like_to_array$1(arr, len) {
7835
- if (len == null || len > arr.length) len = arr.length;
7836
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7837
- return arr2;
7838
- }
7839
- function _array_with_holes$1(arr) {
7840
- if (Array.isArray(arr)) return arr;
7841
- }
7842
- function _iterable_to_array_limit$1(arr, i) {
7843
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
7844
- if (_i == null) return;
7845
- var _arr = [];
7846
- var _n = true;
7847
- var _d = false;
7848
- var _s, _e;
7849
- try {
7850
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
7851
- _arr.push(_s.value);
7852
- if (i && _arr.length === i) break;
7853
- }
7854
- } catch (err) {
7855
- _d = true;
7856
- _e = err;
7857
- } finally{
7858
- try {
7859
- if (!_n && _i["return"] != null) _i["return"]();
7860
- } finally{
7861
- if (_d) throw _e;
7862
- }
7863
- }
7864
- return _arr;
7865
- }
7866
- function _non_iterable_rest$1() {
7867
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7868
- }
7869
- function _sliced_to_array$1(arr, i) {
7870
- return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
7871
- }
7872
- function _unsupported_iterable_to_array$1(o, minLen) {
7873
- if (!o) return;
7874
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
7875
- var n = Object.prototype.toString.call(o).slice(8, -1);
7876
- if (n === "Object" && o.constructor) n = o.constructor.name;
7877
- if (n === "Map" || n === "Set") return Array.from(n);
7878
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
7879
- }
7880
7838
  function InputModTab$1() {
7881
- var _useState = _sliced_to_array$1(useState(0), 2), val = _useState[0], setVal = _useState[1];
7882
- var numbers = [
7883
- 0.1,
7884
- 0.15,
7885
- 0.2,
7886
- 0.3,
7887
- 0.4,
7888
- 0.4,
7889
- 0.4,
7890
- 0.5,
7891
- 0.95,
7892
- 0.8,
7893
- 0.7,
7894
- 0.7,
7895
- 0.8,
7896
- 0.95,
7897
- 0.95,
7898
- 0.8,
7899
- 0.75,
7900
- 0.6
7901
- ];
7902
- useEffect(function() {
7903
- var index = 0;
7904
- setInterval(function() {
7905
- setVal(numbers[index]);
7906
- if (index < numbers.length) {
7907
- index += 1;
7908
- } else {
7909
- index = 0;
7910
- }
7911
- }, 50);
7912
- console.log(val, 'vallll');
7913
- });
7914
7839
  return /*#__PURE__*/ React__default.createElement(Box, {
7915
7840
  className: "InputModTab",
7916
7841
  gap: Box.gap.xLarge,
@@ -7926,13 +7851,7 @@ function InputModTab$1() {
7926
7851
  ]
7927
7852
  }, /*#__PURE__*/ React__default.createElement(Slider, {
7928
7853
  id: "inputLevel",
7929
- label: "Input level",
7930
- indicatorLineColor: "var(--color-brand)",
7931
- knobStrokeColor: "var(--color-brand)",
7932
- trackColor: "var(--color-brand-900)",
7933
- trackWidth: 3,
7934
- indicatorLineGradient: Slider.gradientStyles.unicolor,
7935
- markerShape: Slider.markerShape.rectangle
7854
+ label: "Input level"
7936
7855
  })), /*#__PURE__*/ React__default.createElement(Box, {
7937
7856
  width: Box.width.auto,
7938
7857
  padding: [
@@ -7942,12 +7861,12 @@ function InputModTab$1() {
7942
7861
  chartType: Chart.chartType.stacked,
7943
7862
  width: 15,
7944
7863
  height: 100,
7945
- value: val
7864
+ value: 0.96
7946
7865
  }), /*#__PURE__*/ React__default.createElement(Chart, {
7947
7866
  chartType: Chart.chartType.stacked,
7948
7867
  width: 15,
7949
7868
  height: 100,
7950
- value: val
7869
+ value: 0.82
7951
7870
  })));
7952
7871
  }
7953
7872