@vitessce/description 3.9.6 → 4.0.0-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
2
  import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, PureComponent, useEffect } from "react";
3
3
  import { useLoaders, useCoordinationScopes, useCoordination, useDescription, useImageData, useReady, TitleInfo } from "@vitessce/vit-s";
4
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
4
5
  import * as ReactDOM from "react-dom";
5
6
  const ViewType = {
6
7
  DESCRIPTION: "description",
@@ -1654,14 +1655,14 @@ var createCache = function createCache2(options) {
1654
1655
  cache.sheet.hydrate(nodesToHydrate);
1655
1656
  return cache;
1656
1657
  };
1657
- function _extends$2() {
1658
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
1658
+ function _extends$1() {
1659
+ return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
1659
1660
  for (var e = 1; e < arguments.length; e++) {
1660
1661
  var t = arguments[e];
1661
1662
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
1662
1663
  }
1663
1664
  return n;
1664
- }, _extends$2.apply(null, arguments);
1665
+ }, _extends$1.apply(null, arguments);
1665
1666
  }
1666
1667
  function getDefaultExportFromCjs(x) {
1667
1668
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -1744,7 +1745,7 @@ function requireReactIs_development$1() {
1744
1745
  var ContextProvider = REACT_PROVIDER_TYPE;
1745
1746
  var Element = REACT_ELEMENT_TYPE;
1746
1747
  var ForwardRef = REACT_FORWARD_REF_TYPE;
1747
- var Fragment = REACT_FRAGMENT_TYPE;
1748
+ var Fragment2 = REACT_FRAGMENT_TYPE;
1748
1749
  var Lazy = REACT_LAZY_TYPE;
1749
1750
  var Memo = REACT_MEMO_TYPE;
1750
1751
  var Portal3 = REACT_PORTAL_TYPE;
@@ -1803,7 +1804,7 @@ function requireReactIs_development$1() {
1803
1804
  reactIs_development$1.ContextProvider = ContextProvider;
1804
1805
  reactIs_development$1.Element = Element;
1805
1806
  reactIs_development$1.ForwardRef = ForwardRef;
1806
- reactIs_development$1.Fragment = Fragment;
1807
+ reactIs_development$1.Fragment = Fragment2;
1807
1808
  reactIs_development$1.Lazy = Lazy;
1808
1809
  reactIs_development$1.Memo = Memo;
1809
1810
  reactIs_development$1.Portal = Portal3;
@@ -2979,7 +2980,7 @@ var createStyled$1 = function createStyled(tag, options) {
2979
2980
  }
2980
2981
  });
2981
2982
  Styled.withComponent = function(nextTag, nextOptions) {
2982
- var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
2983
+ var newStyled2 = createStyled(nextTag, _extends$1({}, options, nextOptions, {
2983
2984
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2984
2985
  }));
2985
2986
  return newStyled2.apply(void 0, styles);
@@ -3740,903 +3741,6 @@ function requirePropTypes() {
3740
3741
  }
3741
3742
  var propTypesExports = /* @__PURE__ */ requirePropTypes();
3742
3743
  const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
3743
- var jsxRuntime = { exports: {} };
3744
- var reactJsxRuntime_development = {};
3745
- var hasRequiredReactJsxRuntime_development;
3746
- function requireReactJsxRuntime_development() {
3747
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
3748
- hasRequiredReactJsxRuntime_development = 1;
3749
- /**
3750
- * @license React
3751
- * react-jsx-runtime.development.js
3752
- *
3753
- * Copyright (c) Facebook, Inc. and its affiliates.
3754
- *
3755
- * This source code is licensed under the MIT license found in the
3756
- * LICENSE file in the root directory of this source tree.
3757
- */
3758
- {
3759
- (function() {
3760
- var React2 = React__default;
3761
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
3762
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
3763
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
3764
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
3765
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
3766
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
3767
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
3768
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
3769
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
3770
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
3771
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
3772
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
3773
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
3774
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
3775
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
3776
- function getIteratorFn(maybeIterable) {
3777
- if (maybeIterable === null || typeof maybeIterable !== "object") {
3778
- return null;
3779
- }
3780
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
3781
- if (typeof maybeIterator === "function") {
3782
- return maybeIterator;
3783
- }
3784
- return null;
3785
- }
3786
- var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3787
- function error(format) {
3788
- {
3789
- {
3790
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
3791
- args[_key2 - 1] = arguments[_key2];
3792
- }
3793
- printWarning("error", format, args);
3794
- }
3795
- }
3796
- }
3797
- function printWarning(level, format, args) {
3798
- {
3799
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
3800
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
3801
- if (stack !== "") {
3802
- format += "%s";
3803
- args = args.concat([stack]);
3804
- }
3805
- var argsWithFormat = args.map(function(item) {
3806
- return String(item);
3807
- });
3808
- argsWithFormat.unshift("Warning: " + format);
3809
- Function.prototype.apply.call(console[level], console, argsWithFormat);
3810
- }
3811
- }
3812
- var enableScopeAPI = false;
3813
- var enableCacheElement = false;
3814
- var enableTransitionTracing = false;
3815
- var enableLegacyHidden = false;
3816
- var enableDebugTracing = false;
3817
- var REACT_MODULE_REFERENCE;
3818
- {
3819
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
3820
- }
3821
- function isValidElementType(type) {
3822
- if (typeof type === "string" || typeof type === "function") {
3823
- return true;
3824
- }
3825
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
3826
- return true;
3827
- }
3828
- if (typeof type === "object" && type !== null) {
3829
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
3830
- // types supported by any Flight configuration anywhere since
3831
- // we don't know which Flight build this will end up being used
3832
- // with.
3833
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
3834
- return true;
3835
- }
3836
- }
3837
- return false;
3838
- }
3839
- function getWrappedName2(outerType, innerType, wrapperName) {
3840
- var displayName = outerType.displayName;
3841
- if (displayName) {
3842
- return displayName;
3843
- }
3844
- var functionName = innerType.displayName || innerType.name || "";
3845
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
3846
- }
3847
- function getContextName(type) {
3848
- return type.displayName || "Context";
3849
- }
3850
- function getComponentNameFromType(type) {
3851
- if (type == null) {
3852
- return null;
3853
- }
3854
- {
3855
- if (typeof type.tag === "number") {
3856
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
3857
- }
3858
- }
3859
- if (typeof type === "function") {
3860
- return type.displayName || type.name || null;
3861
- }
3862
- if (typeof type === "string") {
3863
- return type;
3864
- }
3865
- switch (type) {
3866
- case REACT_FRAGMENT_TYPE:
3867
- return "Fragment";
3868
- case REACT_PORTAL_TYPE:
3869
- return "Portal";
3870
- case REACT_PROFILER_TYPE:
3871
- return "Profiler";
3872
- case REACT_STRICT_MODE_TYPE:
3873
- return "StrictMode";
3874
- case REACT_SUSPENSE_TYPE:
3875
- return "Suspense";
3876
- case REACT_SUSPENSE_LIST_TYPE:
3877
- return "SuspenseList";
3878
- }
3879
- if (typeof type === "object") {
3880
- switch (type.$$typeof) {
3881
- case REACT_CONTEXT_TYPE:
3882
- var context = type;
3883
- return getContextName(context) + ".Consumer";
3884
- case REACT_PROVIDER_TYPE:
3885
- var provider = type;
3886
- return getContextName(provider._context) + ".Provider";
3887
- case REACT_FORWARD_REF_TYPE:
3888
- return getWrappedName2(type, type.render, "ForwardRef");
3889
- case REACT_MEMO_TYPE:
3890
- var outerName = type.displayName || null;
3891
- if (outerName !== null) {
3892
- return outerName;
3893
- }
3894
- return getComponentNameFromType(type.type) || "Memo";
3895
- case REACT_LAZY_TYPE: {
3896
- var lazyComponent = type;
3897
- var payload = lazyComponent._payload;
3898
- var init = lazyComponent._init;
3899
- try {
3900
- return getComponentNameFromType(init(payload));
3901
- } catch (x) {
3902
- return null;
3903
- }
3904
- }
3905
- }
3906
- }
3907
- return null;
3908
- }
3909
- var assign2 = Object.assign;
3910
- var disabledDepth = 0;
3911
- var prevLog;
3912
- var prevInfo;
3913
- var prevWarn;
3914
- var prevError;
3915
- var prevGroup;
3916
- var prevGroupCollapsed;
3917
- var prevGroupEnd;
3918
- function disabledLog() {
3919
- }
3920
- disabledLog.__reactDisabledLog = true;
3921
- function disableLogs() {
3922
- {
3923
- if (disabledDepth === 0) {
3924
- prevLog = console.log;
3925
- prevInfo = console.info;
3926
- prevWarn = console.warn;
3927
- prevError = console.error;
3928
- prevGroup = console.group;
3929
- prevGroupCollapsed = console.groupCollapsed;
3930
- prevGroupEnd = console.groupEnd;
3931
- var props = {
3932
- configurable: true,
3933
- enumerable: true,
3934
- value: disabledLog,
3935
- writable: true
3936
- };
3937
- Object.defineProperties(console, {
3938
- info: props,
3939
- log: props,
3940
- warn: props,
3941
- error: props,
3942
- group: props,
3943
- groupCollapsed: props,
3944
- groupEnd: props
3945
- });
3946
- }
3947
- disabledDepth++;
3948
- }
3949
- }
3950
- function reenableLogs() {
3951
- {
3952
- disabledDepth--;
3953
- if (disabledDepth === 0) {
3954
- var props = {
3955
- configurable: true,
3956
- enumerable: true,
3957
- writable: true
3958
- };
3959
- Object.defineProperties(console, {
3960
- log: assign2({}, props, {
3961
- value: prevLog
3962
- }),
3963
- info: assign2({}, props, {
3964
- value: prevInfo
3965
- }),
3966
- warn: assign2({}, props, {
3967
- value: prevWarn
3968
- }),
3969
- error: assign2({}, props, {
3970
- value: prevError
3971
- }),
3972
- group: assign2({}, props, {
3973
- value: prevGroup
3974
- }),
3975
- groupCollapsed: assign2({}, props, {
3976
- value: prevGroupCollapsed
3977
- }),
3978
- groupEnd: assign2({}, props, {
3979
- value: prevGroupEnd
3980
- })
3981
- });
3982
- }
3983
- if (disabledDepth < 0) {
3984
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
3985
- }
3986
- }
3987
- }
3988
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
3989
- var prefix2;
3990
- function describeBuiltInComponentFrame(name2, source, ownerFn) {
3991
- {
3992
- if (prefix2 === void 0) {
3993
- try {
3994
- throw Error();
3995
- } catch (x) {
3996
- var match2 = x.stack.trim().match(/\n( *(at )?)/);
3997
- prefix2 = match2 && match2[1] || "";
3998
- }
3999
- }
4000
- return "\n" + prefix2 + name2;
4001
- }
4002
- }
4003
- var reentry = false;
4004
- var componentFrameCache;
4005
- {
4006
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
4007
- componentFrameCache = new PossiblyWeakMap();
4008
- }
4009
- function describeNativeComponentFrame(fn, construct) {
4010
- if (!fn || reentry) {
4011
- return "";
4012
- }
4013
- {
4014
- var frame = componentFrameCache.get(fn);
4015
- if (frame !== void 0) {
4016
- return frame;
4017
- }
4018
- }
4019
- var control;
4020
- reentry = true;
4021
- var previousPrepareStackTrace = Error.prepareStackTrace;
4022
- Error.prepareStackTrace = void 0;
4023
- var previousDispatcher;
4024
- {
4025
- previousDispatcher = ReactCurrentDispatcher.current;
4026
- ReactCurrentDispatcher.current = null;
4027
- disableLogs();
4028
- }
4029
- try {
4030
- if (construct) {
4031
- var Fake = function() {
4032
- throw Error();
4033
- };
4034
- Object.defineProperty(Fake.prototype, "props", {
4035
- set: function() {
4036
- throw Error();
4037
- }
4038
- });
4039
- if (typeof Reflect === "object" && Reflect.construct) {
4040
- try {
4041
- Reflect.construct(Fake, []);
4042
- } catch (x) {
4043
- control = x;
4044
- }
4045
- Reflect.construct(fn, [], Fake);
4046
- } else {
4047
- try {
4048
- Fake.call();
4049
- } catch (x) {
4050
- control = x;
4051
- }
4052
- fn.call(Fake.prototype);
4053
- }
4054
- } else {
4055
- try {
4056
- throw Error();
4057
- } catch (x) {
4058
- control = x;
4059
- }
4060
- fn();
4061
- }
4062
- } catch (sample) {
4063
- if (sample && control && typeof sample.stack === "string") {
4064
- var sampleLines = sample.stack.split("\n");
4065
- var controlLines = control.stack.split("\n");
4066
- var s = sampleLines.length - 1;
4067
- var c = controlLines.length - 1;
4068
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
4069
- c--;
4070
- }
4071
- for (; s >= 1 && c >= 0; s--, c--) {
4072
- if (sampleLines[s] !== controlLines[c]) {
4073
- if (s !== 1 || c !== 1) {
4074
- do {
4075
- s--;
4076
- c--;
4077
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
4078
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
4079
- if (fn.displayName && _frame.includes("<anonymous>")) {
4080
- _frame = _frame.replace("<anonymous>", fn.displayName);
4081
- }
4082
- {
4083
- if (typeof fn === "function") {
4084
- componentFrameCache.set(fn, _frame);
4085
- }
4086
- }
4087
- return _frame;
4088
- }
4089
- } while (s >= 1 && c >= 0);
4090
- }
4091
- break;
4092
- }
4093
- }
4094
- }
4095
- } finally {
4096
- reentry = false;
4097
- {
4098
- ReactCurrentDispatcher.current = previousDispatcher;
4099
- reenableLogs();
4100
- }
4101
- Error.prepareStackTrace = previousPrepareStackTrace;
4102
- }
4103
- var name2 = fn ? fn.displayName || fn.name : "";
4104
- var syntheticFrame = name2 ? describeBuiltInComponentFrame(name2) : "";
4105
- {
4106
- if (typeof fn === "function") {
4107
- componentFrameCache.set(fn, syntheticFrame);
4108
- }
4109
- }
4110
- return syntheticFrame;
4111
- }
4112
- function describeFunctionComponentFrame(fn, source, ownerFn) {
4113
- {
4114
- return describeNativeComponentFrame(fn, false);
4115
- }
4116
- }
4117
- function shouldConstruct(Component) {
4118
- var prototype = Component.prototype;
4119
- return !!(prototype && prototype.isReactComponent);
4120
- }
4121
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
4122
- if (type == null) {
4123
- return "";
4124
- }
4125
- if (typeof type === "function") {
4126
- {
4127
- return describeNativeComponentFrame(type, shouldConstruct(type));
4128
- }
4129
- }
4130
- if (typeof type === "string") {
4131
- return describeBuiltInComponentFrame(type);
4132
- }
4133
- switch (type) {
4134
- case REACT_SUSPENSE_TYPE:
4135
- return describeBuiltInComponentFrame("Suspense");
4136
- case REACT_SUSPENSE_LIST_TYPE:
4137
- return describeBuiltInComponentFrame("SuspenseList");
4138
- }
4139
- if (typeof type === "object") {
4140
- switch (type.$$typeof) {
4141
- case REACT_FORWARD_REF_TYPE:
4142
- return describeFunctionComponentFrame(type.render);
4143
- case REACT_MEMO_TYPE:
4144
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
4145
- case REACT_LAZY_TYPE: {
4146
- var lazyComponent = type;
4147
- var payload = lazyComponent._payload;
4148
- var init = lazyComponent._init;
4149
- try {
4150
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
4151
- } catch (x) {
4152
- }
4153
- }
4154
- }
4155
- }
4156
- return "";
4157
- }
4158
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
4159
- var loggedTypeFailures = {};
4160
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
4161
- function setCurrentlyValidatingElement(element2) {
4162
- {
4163
- if (element2) {
4164
- var owner = element2._owner;
4165
- var stack = describeUnknownElementTypeFrameInDEV(element2.type, element2._source, owner ? owner.type : null);
4166
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
4167
- } else {
4168
- ReactDebugCurrentFrame.setExtraStackFrame(null);
4169
- }
4170
- }
4171
- }
4172
- function checkPropTypes(typeSpecs, values2, location, componentName, element2) {
4173
- {
4174
- var has2 = Function.call.bind(hasOwnProperty2);
4175
- for (var typeSpecName in typeSpecs) {
4176
- if (has2(typeSpecs, typeSpecName)) {
4177
- var error$1 = void 0;
4178
- try {
4179
- if (typeof typeSpecs[typeSpecName] !== "function") {
4180
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
4181
- err.name = "Invariant Violation";
4182
- throw err;
4183
- }
4184
- error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
4185
- } catch (ex) {
4186
- error$1 = ex;
4187
- }
4188
- if (error$1 && !(error$1 instanceof Error)) {
4189
- setCurrentlyValidatingElement(element2);
4190
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
4191
- setCurrentlyValidatingElement(null);
4192
- }
4193
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
4194
- loggedTypeFailures[error$1.message] = true;
4195
- setCurrentlyValidatingElement(element2);
4196
- error("Failed %s type: %s", location, error$1.message);
4197
- setCurrentlyValidatingElement(null);
4198
- }
4199
- }
4200
- }
4201
- }
4202
- }
4203
- var isArrayImpl = Array.isArray;
4204
- function isArray(a) {
4205
- return isArrayImpl(a);
4206
- }
4207
- function typeName(value) {
4208
- {
4209
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
4210
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
4211
- return type;
4212
- }
4213
- }
4214
- function willCoercionThrow(value) {
4215
- {
4216
- try {
4217
- testStringCoercion(value);
4218
- return false;
4219
- } catch (e) {
4220
- return true;
4221
- }
4222
- }
4223
- }
4224
- function testStringCoercion(value) {
4225
- return "" + value;
4226
- }
4227
- function checkKeyStringCoercion(value) {
4228
- {
4229
- if (willCoercionThrow(value)) {
4230
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
4231
- return testStringCoercion(value);
4232
- }
4233
- }
4234
- }
4235
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
4236
- var RESERVED_PROPS = {
4237
- key: true,
4238
- ref: true,
4239
- __self: true,
4240
- __source: true
4241
- };
4242
- var specialPropKeyWarningShown;
4243
- var specialPropRefWarningShown;
4244
- function hasValidRef(config) {
4245
- {
4246
- if (hasOwnProperty2.call(config, "ref")) {
4247
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
4248
- if (getter && getter.isReactWarning) {
4249
- return false;
4250
- }
4251
- }
4252
- }
4253
- return config.ref !== void 0;
4254
- }
4255
- function hasValidKey(config) {
4256
- {
4257
- if (hasOwnProperty2.call(config, "key")) {
4258
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
4259
- if (getter && getter.isReactWarning) {
4260
- return false;
4261
- }
4262
- }
4263
- }
4264
- return config.key !== void 0;
4265
- }
4266
- function warnIfStringRefCannotBeAutoConverted(config, self2) {
4267
- {
4268
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self2) ;
4269
- }
4270
- }
4271
- function defineKeyPropWarningGetter(props, displayName) {
4272
- {
4273
- var warnAboutAccessingKey = function() {
4274
- if (!specialPropKeyWarningShown) {
4275
- specialPropKeyWarningShown = true;
4276
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
4277
- }
4278
- };
4279
- warnAboutAccessingKey.isReactWarning = true;
4280
- Object.defineProperty(props, "key", {
4281
- get: warnAboutAccessingKey,
4282
- configurable: true
4283
- });
4284
- }
4285
- }
4286
- function defineRefPropWarningGetter(props, displayName) {
4287
- {
4288
- var warnAboutAccessingRef = function() {
4289
- if (!specialPropRefWarningShown) {
4290
- specialPropRefWarningShown = true;
4291
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
4292
- }
4293
- };
4294
- warnAboutAccessingRef.isReactWarning = true;
4295
- Object.defineProperty(props, "ref", {
4296
- get: warnAboutAccessingRef,
4297
- configurable: true
4298
- });
4299
- }
4300
- }
4301
- var ReactElement = function(type, key, ref, self2, source, owner, props) {
4302
- var element2 = {
4303
- // This tag allows us to uniquely identify this as a React Element
4304
- $$typeof: REACT_ELEMENT_TYPE,
4305
- // Built-in properties that belong on the element
4306
- type,
4307
- key,
4308
- ref,
4309
- props,
4310
- // Record the component responsible for creating this element.
4311
- _owner: owner
4312
- };
4313
- {
4314
- element2._store = {};
4315
- Object.defineProperty(element2._store, "validated", {
4316
- configurable: false,
4317
- enumerable: false,
4318
- writable: true,
4319
- value: false
4320
- });
4321
- Object.defineProperty(element2, "_self", {
4322
- configurable: false,
4323
- enumerable: false,
4324
- writable: false,
4325
- value: self2
4326
- });
4327
- Object.defineProperty(element2, "_source", {
4328
- configurable: false,
4329
- enumerable: false,
4330
- writable: false,
4331
- value: source
4332
- });
4333
- if (Object.freeze) {
4334
- Object.freeze(element2.props);
4335
- Object.freeze(element2);
4336
- }
4337
- }
4338
- return element2;
4339
- };
4340
- function jsxDEV(type, config, maybeKey, source, self2) {
4341
- {
4342
- var propName;
4343
- var props = {};
4344
- var key = null;
4345
- var ref = null;
4346
- if (maybeKey !== void 0) {
4347
- {
4348
- checkKeyStringCoercion(maybeKey);
4349
- }
4350
- key = "" + maybeKey;
4351
- }
4352
- if (hasValidKey(config)) {
4353
- {
4354
- checkKeyStringCoercion(config.key);
4355
- }
4356
- key = "" + config.key;
4357
- }
4358
- if (hasValidRef(config)) {
4359
- ref = config.ref;
4360
- warnIfStringRefCannotBeAutoConverted(config, self2);
4361
- }
4362
- for (propName in config) {
4363
- if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
4364
- props[propName] = config[propName];
4365
- }
4366
- }
4367
- if (type && type.defaultProps) {
4368
- var defaultProps = type.defaultProps;
4369
- for (propName in defaultProps) {
4370
- if (props[propName] === void 0) {
4371
- props[propName] = defaultProps[propName];
4372
- }
4373
- }
4374
- }
4375
- if (key || ref) {
4376
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
4377
- if (key) {
4378
- defineKeyPropWarningGetter(props, displayName);
4379
- }
4380
- if (ref) {
4381
- defineRefPropWarningGetter(props, displayName);
4382
- }
4383
- }
4384
- return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
4385
- }
4386
- }
4387
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
4388
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
4389
- function setCurrentlyValidatingElement$1(element2) {
4390
- {
4391
- if (element2) {
4392
- var owner = element2._owner;
4393
- var stack = describeUnknownElementTypeFrameInDEV(element2.type, element2._source, owner ? owner.type : null);
4394
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
4395
- } else {
4396
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
4397
- }
4398
- }
4399
- }
4400
- var propTypesMisspellWarningShown;
4401
- {
4402
- propTypesMisspellWarningShown = false;
4403
- }
4404
- function isValidElement(object) {
4405
- {
4406
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4407
- }
4408
- }
4409
- function getDeclarationErrorAddendum() {
4410
- {
4411
- if (ReactCurrentOwner$1.current) {
4412
- var name2 = getComponentNameFromType(ReactCurrentOwner$1.current.type);
4413
- if (name2) {
4414
- return "\n\nCheck the render method of `" + name2 + "`.";
4415
- }
4416
- }
4417
- return "";
4418
- }
4419
- }
4420
- function getSourceInfoErrorAddendum(source) {
4421
- {
4422
- return "";
4423
- }
4424
- }
4425
- var ownerHasKeyUseWarning = {};
4426
- function getCurrentComponentErrorInfo(parentType) {
4427
- {
4428
- var info = getDeclarationErrorAddendum();
4429
- if (!info) {
4430
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
4431
- if (parentName) {
4432
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
4433
- }
4434
- }
4435
- return info;
4436
- }
4437
- }
4438
- function validateExplicitKey(element2, parentType) {
4439
- {
4440
- if (!element2._store || element2._store.validated || element2.key != null) {
4441
- return;
4442
- }
4443
- element2._store.validated = true;
4444
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
4445
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
4446
- return;
4447
- }
4448
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
4449
- var childOwner = "";
4450
- if (element2 && element2._owner && element2._owner !== ReactCurrentOwner$1.current) {
4451
- childOwner = " It was passed a child from " + getComponentNameFromType(element2._owner.type) + ".";
4452
- }
4453
- setCurrentlyValidatingElement$1(element2);
4454
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
4455
- setCurrentlyValidatingElement$1(null);
4456
- }
4457
- }
4458
- function validateChildKeys(node2, parentType) {
4459
- {
4460
- if (typeof node2 !== "object") {
4461
- return;
4462
- }
4463
- if (isArray(node2)) {
4464
- for (var i = 0; i < node2.length; i++) {
4465
- var child = node2[i];
4466
- if (isValidElement(child)) {
4467
- validateExplicitKey(child, parentType);
4468
- }
4469
- }
4470
- } else if (isValidElement(node2)) {
4471
- if (node2._store) {
4472
- node2._store.validated = true;
4473
- }
4474
- } else if (node2) {
4475
- var iteratorFn = getIteratorFn(node2);
4476
- if (typeof iteratorFn === "function") {
4477
- if (iteratorFn !== node2.entries) {
4478
- var iterator = iteratorFn.call(node2);
4479
- var step;
4480
- while (!(step = iterator.next()).done) {
4481
- if (isValidElement(step.value)) {
4482
- validateExplicitKey(step.value, parentType);
4483
- }
4484
- }
4485
- }
4486
- }
4487
- }
4488
- }
4489
- }
4490
- function validatePropTypes(element2) {
4491
- {
4492
- var type = element2.type;
4493
- if (type === null || type === void 0 || typeof type === "string") {
4494
- return;
4495
- }
4496
- var propTypes2;
4497
- if (typeof type === "function") {
4498
- propTypes2 = type.propTypes;
4499
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
4500
- // Inner props are checked in the reconciler.
4501
- type.$$typeof === REACT_MEMO_TYPE)) {
4502
- propTypes2 = type.propTypes;
4503
- } else {
4504
- return;
4505
- }
4506
- if (propTypes2) {
4507
- var name2 = getComponentNameFromType(type);
4508
- checkPropTypes(propTypes2, element2.props, "prop", name2, element2);
4509
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
4510
- propTypesMisspellWarningShown = true;
4511
- var _name = getComponentNameFromType(type);
4512
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
4513
- }
4514
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
4515
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
4516
- }
4517
- }
4518
- }
4519
- function validateFragmentProps(fragment) {
4520
- {
4521
- var keys2 = Object.keys(fragment.props);
4522
- for (var i = 0; i < keys2.length; i++) {
4523
- var key = keys2[i];
4524
- if (key !== "children" && key !== "key") {
4525
- setCurrentlyValidatingElement$1(fragment);
4526
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
4527
- setCurrentlyValidatingElement$1(null);
4528
- break;
4529
- }
4530
- }
4531
- if (fragment.ref !== null) {
4532
- setCurrentlyValidatingElement$1(fragment);
4533
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
4534
- setCurrentlyValidatingElement$1(null);
4535
- }
4536
- }
4537
- }
4538
- var didWarnAboutKeySpread = {};
4539
- function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
4540
- {
4541
- var validType = isValidElementType(type);
4542
- if (!validType) {
4543
- var info = "";
4544
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
4545
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
4546
- }
4547
- var sourceInfo = getSourceInfoErrorAddendum();
4548
- if (sourceInfo) {
4549
- info += sourceInfo;
4550
- } else {
4551
- info += getDeclarationErrorAddendum();
4552
- }
4553
- var typeString;
4554
- if (type === null) {
4555
- typeString = "null";
4556
- } else if (isArray(type)) {
4557
- typeString = "array";
4558
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
4559
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
4560
- info = " Did you accidentally export a JSX literal instead of a component?";
4561
- } else {
4562
- typeString = typeof type;
4563
- }
4564
- error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
4565
- }
4566
- var element2 = jsxDEV(type, props, key, source, self2);
4567
- if (element2 == null) {
4568
- return element2;
4569
- }
4570
- if (validType) {
4571
- var children = props.children;
4572
- if (children !== void 0) {
4573
- if (isStaticChildren) {
4574
- if (isArray(children)) {
4575
- for (var i = 0; i < children.length; i++) {
4576
- validateChildKeys(children[i], type);
4577
- }
4578
- if (Object.freeze) {
4579
- Object.freeze(children);
4580
- }
4581
- } else {
4582
- error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
4583
- }
4584
- } else {
4585
- validateChildKeys(children, type);
4586
- }
4587
- }
4588
- }
4589
- {
4590
- if (hasOwnProperty2.call(props, "key")) {
4591
- var componentName = getComponentNameFromType(type);
4592
- var keys2 = Object.keys(props).filter(function(k) {
4593
- return k !== "key";
4594
- });
4595
- var beforeExample = keys2.length > 0 ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
4596
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
4597
- var afterExample = keys2.length > 0 ? "{" + keys2.join(": ..., ") + ": ...}" : "{}";
4598
- error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
4599
- didWarnAboutKeySpread[componentName + beforeExample] = true;
4600
- }
4601
- }
4602
- }
4603
- if (type === REACT_FRAGMENT_TYPE) {
4604
- validateFragmentProps(element2);
4605
- } else {
4606
- validatePropTypes(element2);
4607
- }
4608
- return element2;
4609
- }
4610
- }
4611
- function jsxWithValidationStatic(type, props, key) {
4612
- {
4613
- return jsxWithValidation(type, props, key, true);
4614
- }
4615
- }
4616
- function jsxWithValidationDynamic(type, props, key) {
4617
- {
4618
- return jsxWithValidation(type, props, key, false);
4619
- }
4620
- }
4621
- var jsx = jsxWithValidationDynamic;
4622
- var jsxs = jsxWithValidationStatic;
4623
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
4624
- reactJsxRuntime_development.jsx = jsx;
4625
- reactJsxRuntime_development.jsxs = jsxs;
4626
- })();
4627
- }
4628
- return reactJsxRuntime_development;
4629
- }
4630
- var hasRequiredJsxRuntime;
4631
- function requireJsxRuntime() {
4632
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
4633
- hasRequiredJsxRuntime = 1;
4634
- {
4635
- jsxRuntime.exports = requireReactJsxRuntime_development();
4636
- }
4637
- return jsxRuntime.exports;
4638
- }
4639
- var jsxRuntimeExports = requireJsxRuntime();
4640
3744
  function styled$1(tag, options) {
4641
3745
  const stylesFactory = newStyled(tag, options);
4642
3746
  {
@@ -4894,9 +3998,8 @@ function sortContainerQueries(theme, css) {
4894
3998
  return css;
4895
3999
  }
4896
4000
  const sorted = Object.keys(css).filter((key) => key.startsWith("@container")).sort((a, b) => {
4897
- var _a, _b;
4898
4001
  const regex = /min-width:\s*([0-9.]+)/;
4899
- return +(((_a = a.match(regex)) == null ? void 0 : _a[1]) || 0) - +(((_b = b.match(regex)) == null ? void 0 : _b[1]) || 0);
4002
+ return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);
4900
4003
  });
4901
4004
  if (!sorted.length) {
4902
4005
  return css;
@@ -5024,8 +4127,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
5024
4127
  return output;
5025
4128
  }
5026
4129
  function createEmptyBreakpointObject(breakpointsInput = {}) {
5027
- var _a;
5028
- const breakpointsInOrder = (_a = breakpointsInput.keys) == null ? void 0 : _a.reduce((acc, key) => {
4130
+ const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {
5029
4131
  const breakpointStyleKey = breakpointsInput.up(key);
5030
4132
  acc[breakpointStyleKey] = {};
5031
4133
  return acc;
@@ -5445,14 +4547,13 @@ const width = style$1({
5445
4547
  const maxWidth = (props) => {
5446
4548
  if (props.maxWidth !== void 0 && props.maxWidth !== null) {
5447
4549
  const styleFromPropValue = (propValue) => {
5448
- var _a, _b, _c, _d, _e;
5449
- const breakpoint = ((_c = (_b = (_a = props.theme) == null ? void 0 : _a.breakpoints) == null ? void 0 : _b.values) == null ? void 0 : _c[propValue]) || values[propValue];
4550
+ const breakpoint = props.theme?.breakpoints?.values?.[propValue] || values[propValue];
5450
4551
  if (!breakpoint) {
5451
4552
  return {
5452
4553
  maxWidth: sizingTransform(propValue)
5453
4554
  };
5454
4555
  }
5455
- if (((_e = (_d = props.theme) == null ? void 0 : _d.breakpoints) == null ? void 0 : _e.unit) !== "px") {
4556
+ if (props.theme?.breakpoints?.unit !== "px") {
5456
4557
  return {
5457
4558
  maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
5458
4559
  };
@@ -5893,10 +4994,9 @@ function unstable_createStyleFunctionSx() {
5893
4994
  const styleFunctionSx = unstable_createStyleFunctionSx();
5894
4995
  styleFunctionSx.filterProps = ["sx"];
5895
4996
  function applyStyles(key, styles) {
5896
- var _a;
5897
4997
  const theme = this;
5898
4998
  if (theme.vars) {
5899
- if (!((_a = theme.colorSchemes) == null ? void 0 : _a[key]) || typeof theme.getColorSchemeSelector !== "function") {
4999
+ if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== "function") {
5900
5000
  return {};
5901
5001
  }
5902
5002
  let selector = theme.getColorSchemeSelector(key);
@@ -5945,7 +5045,7 @@ function createTheme$1(options = {}, ...args) {
5945
5045
  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
5946
5046
  muiTheme.unstable_sxConfig = {
5947
5047
  ...defaultSxConfig,
5948
- ...other == null ? void 0 : other.unstable_sxConfig
5048
+ ...other?.unstable_sxConfig
5949
5049
  };
5950
5050
  muiTheme.unstable_sx = function sx(props) {
5951
5051
  return styleFunctionSx({
@@ -5967,12 +5067,11 @@ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
5967
5067
  return useTheme$2(defaultTheme2);
5968
5068
  }
5969
5069
  const splitProps = (props) => {
5970
- var _a;
5971
5070
  const result = {
5972
5071
  systemProps: {},
5973
5072
  otherProps: {}
5974
5073
  };
5975
- const config = ((_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.unstable_sxConfig) ?? defaultSxConfig;
5074
+ const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
5976
5075
  Object.keys(props).forEach((prop) => {
5977
5076
  if (config[prop]) {
5978
5077
  result.systemProps[prop] = props[prop];
@@ -6139,7 +5238,7 @@ function processStyle(props, style2) {
6139
5238
  if (Array.isArray(resolvedStyle)) {
6140
5239
  return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
6141
5240
  }
6142
- if (Array.isArray(resolvedStyle == null ? void 0 : resolvedStyle.variants)) {
5241
+ if (Array.isArray(resolvedStyle?.variants)) {
6143
5242
  let rootStyle;
6144
5243
  if (resolvedStyle.isProcessed) {
6145
5244
  rootStyle = resolvedStyle.style;
@@ -6152,38 +5251,37 @@ function processStyle(props, style2) {
6152
5251
  }
6153
5252
  return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
6154
5253
  }
6155
- if (resolvedStyle == null ? void 0 : resolvedStyle.isProcessed) {
5254
+ if (resolvedStyle?.isProcessed) {
6156
5255
  return resolvedStyle.style;
6157
5256
  }
6158
5257
  return resolvedStyle;
6159
5258
  }
6160
5259
  function processStyleVariants(props, variants, results = []) {
6161
- var _a;
6162
5260
  let mergedState;
6163
5261
  variantLoop: for (let i = 0; i < variants.length; i += 1) {
6164
5262
  const variant = variants[i];
6165
5263
  if (typeof variant.props === "function") {
6166
- mergedState ?? (mergedState = {
5264
+ mergedState ??= {
6167
5265
  ...props,
6168
5266
  ...props.ownerState,
6169
5267
  ownerState: props.ownerState
6170
- });
5268
+ };
6171
5269
  if (!variant.props(mergedState)) {
6172
5270
  continue;
6173
5271
  }
6174
5272
  } else {
6175
5273
  for (const key in variant.props) {
6176
- if (props[key] !== variant.props[key] && ((_a = props.ownerState) == null ? void 0 : _a[key]) !== variant.props[key]) {
5274
+ if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {
6177
5275
  continue variantLoop;
6178
5276
  }
6179
5277
  }
6180
5278
  }
6181
5279
  if (typeof variant.style === "function") {
6182
- mergedState ?? (mergedState = {
5280
+ mergedState ??= {
6183
5281
  ...props,
6184
5282
  ...props.ownerState,
6185
5283
  ownerState: props.ownerState
6186
- });
5284
+ };
6187
5285
  results.push(variant.style(mergedState));
6188
5286
  } else {
6189
5287
  results.push(variant.style);
@@ -6256,9 +5354,8 @@ function createStyled2(input = {}) {
6256
5354
  expressionsHead.push(styleAttachTheme);
6257
5355
  if (componentName && overridesResolver) {
6258
5356
  expressionsTail.push(function styleThemeOverrides(props) {
6259
- var _a, _b;
6260
5357
  const theme = props.theme;
6261
- const styleOverrides = (_b = (_a = theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.styleOverrides;
5358
+ const styleOverrides = theme.components?.[componentName]?.styleOverrides;
6262
5359
  if (!styleOverrides) {
6263
5360
  return null;
6264
5361
  }
@@ -6271,9 +5368,8 @@ function createStyled2(input = {}) {
6271
5368
  }
6272
5369
  if (componentName && !skipVariantsResolver) {
6273
5370
  expressionsTail.push(function styleThemeVariants(props) {
6274
- var _a, _b;
6275
5371
  const theme = props.theme;
6276
- const themeVariants = (_b = (_a = theme == null ? void 0 : theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.variants;
5372
+ const themeVariants = theme?.components?.[componentName]?.variants;
6277
5373
  if (!themeVariants) {
6278
5374
  return null;
6279
5375
  }
@@ -6806,7 +5902,6 @@ function prepareCssVars(theme, parserConfig = {}) {
6806
5902
  };
6807
5903
  }
6808
5904
  function defaultGetSelector2(colorScheme, cssObject) {
6809
- var _a, _b;
6810
5905
  let rule = selector;
6811
5906
  if (selector === "class") {
6812
5907
  rule = ".%s";
@@ -6814,7 +5909,7 @@ function prepareCssVars(theme, parserConfig = {}) {
6814
5909
  if (selector === "data") {
6815
5910
  rule = "[data-%s]";
6816
5911
  }
6817
- if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) {
5912
+ if (selector?.startsWith("data-") && !selector.includes("%s")) {
6818
5913
  rule = `[${selector}="%s"]`;
6819
5914
  }
6820
5915
  if (colorScheme) {
@@ -6822,7 +5917,7 @@ function prepareCssVars(theme, parserConfig = {}) {
6822
5917
  if (theme.defaultColorScheme === colorScheme) {
6823
5918
  return ":root";
6824
5919
  }
6825
- const mode = ((_b = (_a = colorSchemes[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode) || colorScheme;
5920
+ const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;
6826
5921
  return {
6827
5922
  [`@media (prefers-color-scheme: ${mode})`]: {
6828
5923
  ":root": cssObject
@@ -6850,7 +5945,6 @@ function prepareCssVars(theme, parserConfig = {}) {
6850
5945
  return vars;
6851
5946
  };
6852
5947
  const generateStyleSheets = () => {
6853
- var _a, _b;
6854
5948
  const stylesheets = [];
6855
5949
  const colorScheme = theme.defaultColorScheme || "light";
6856
5950
  function insertStyleSheet(key, css) {
@@ -6873,7 +5967,7 @@ function prepareCssVars(theme, parserConfig = {}) {
6873
5967
  const {
6874
5968
  css
6875
5969
  } = defaultSchemeVal;
6876
- const cssColorSheme = (_b = (_a = colorSchemes[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode;
5970
+ const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;
6877
5971
  const finalCss = !disableCssColorScheme && cssColorSheme ? {
6878
5972
  colorScheme: cssColorSheme,
6879
5973
  ...css
@@ -6887,8 +5981,7 @@ function prepareCssVars(theme, parserConfig = {}) {
6887
5981
  Object.entries(other).forEach(([key, {
6888
5982
  css
6889
5983
  }]) => {
6890
- var _a2, _b2;
6891
- const cssColorSheme = (_b2 = (_a2 = colorSchemes[key]) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.mode;
5984
+ const cssColorSheme = colorSchemes[key]?.palette?.mode;
6892
5985
  const finalCss = !disableCssColorScheme && cssColorSheme ? {
6893
5986
  colorScheme: cssColorSheme,
6894
5987
  ...css
@@ -7620,7 +6713,7 @@ function createThemeNoVars(options = {}, ...args) {
7620
6713
  }
7621
6714
  muiTheme.unstable_sxConfig = {
7622
6715
  ...defaultSxConfig,
7623
- ...other == null ? void 0 : other.unstable_sxConfig
6716
+ ...other?.unstable_sxConfig
7624
6717
  };
7625
6718
  muiTheme.unstable_sx = function sx(props) {
7626
6719
  return styleFunctionSx({
@@ -7680,9 +6773,8 @@ function createColorScheme(options) {
7680
6773
  };
7681
6774
  }
7682
6775
  function shouldSkipGeneratingVar(keys2) {
7683
- var _a;
7684
6776
  return !!keys2[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys2[0].match(/sxConfig$/) || // ends with sxConfig
7685
- keys2[0] === "palette" && !!((_a = keys2[1]) == null ? void 0 : _a.match(/(mode|contrastThreshold|tonalOffset)/));
6777
+ keys2[0] === "palette" && !!keys2[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
7686
6778
  }
7687
6779
  const excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index2) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index2}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`];
7688
6780
  const defaultGetSelector = (theme) => (colorScheme, css) => {
@@ -7695,7 +6787,7 @@ const defaultGetSelector = (theme) => (colorScheme, css) => {
7695
6787
  if (selector === "data") {
7696
6788
  rule = "[data-%s]";
7697
6789
  }
7698
- if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) {
6790
+ if (selector?.startsWith("data-") && !selector.includes("%s")) {
7699
6791
  rule = `[${selector}="%s"]`;
7700
6792
  }
7701
6793
  if (theme.defaultColorScheme === colorScheme) {
@@ -7795,7 +6887,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
7795
6887
  ...scheme,
7796
6888
  palette: {
7797
6889
  mode,
7798
- ...scheme == null ? void 0 : scheme.palette
6890
+ ...scheme?.palette
7799
6891
  }
7800
6892
  });
7801
6893
  return void 0;
@@ -7807,7 +6899,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
7807
6899
  ...restTheme,
7808
6900
  palette: {
7809
6901
  mode,
7810
- ...scheme == null ? void 0 : scheme.palette
6902
+ ...scheme?.palette
7811
6903
  }
7812
6904
  });
7813
6905
  colorSchemes[colorScheme] = {
@@ -7815,9 +6907,9 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
7815
6907
  palette,
7816
6908
  opacity: {
7817
6909
  ...getOpacity(mode),
7818
- ...scheme == null ? void 0 : scheme.opacity
6910
+ ...scheme?.opacity
7819
6911
  },
7820
- overlays: (scheme == null ? void 0 : scheme.overlays) || getOverlays(mode)
6912
+ overlays: scheme?.overlays || getOverlays(mode)
7821
6913
  };
7822
6914
  return muiTheme;
7823
6915
  }
@@ -8076,7 +7168,7 @@ function createThemeWithVars(options = {}, ...args) {
8076
7168
  theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
8077
7169
  theme.unstable_sxConfig = {
8078
7170
  ...defaultSxConfig,
8079
- ...input == null ? void 0 : input.unstable_sxConfig
7171
+ ...input?.unstable_sxConfig
8080
7172
  };
8081
7173
  theme.unstable_sx = function sx(props) {
8082
7174
  return styleFunctionSx({
@@ -8109,11 +7201,11 @@ function createTheme(options = {}, ...args) {
8109
7201
  colorSchemes: initialColorSchemes = !palette ? {
8110
7202
  light: true
8111
7203
  } : void 0,
8112
- defaultColorScheme: initialDefaultColorScheme = palette == null ? void 0 : palette.mode,
7204
+ defaultColorScheme: initialDefaultColorScheme = palette?.mode,
8113
7205
  ...rest
8114
7206
  } = options;
8115
7207
  const defaultColorSchemeInput = initialDefaultColorScheme || "light";
8116
- const defaultScheme = initialColorSchemes == null ? void 0 : initialColorSchemes[defaultColorSchemeInput];
7208
+ const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
8117
7209
  const colorSchemesInput = {
8118
7210
  ...initialColorSchemes,
8119
7211
  ...palette ? {
@@ -8247,7 +7339,7 @@ function useForkRef$1(...refs) {
8247
7339
  };
8248
7340
  });
8249
7341
  return () => {
8250
- cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
7342
+ cleanups.forEach((refCleanup) => refCleanup?.());
8251
7343
  };
8252
7344
  }, refs);
8253
7345
  return React.useMemo(() => {
@@ -8265,15 +7357,6 @@ function useForkRef$1(...refs) {
8265
7357
  };
8266
7358
  }, refs);
8267
7359
  }
8268
- function _extends$1() {
8269
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
8270
- for (var e = 1; e < arguments.length; e++) {
8271
- var t = arguments[e];
8272
- for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
8273
- }
8274
- return n;
8275
- }, _extends$1.apply(null, arguments);
8276
- }
8277
7360
  function _setPrototypeOf(t, e) {
8278
7361
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
8279
7362
  return t2.__proto__ = e2, t2;
@@ -8315,11 +7398,10 @@ function HTMLElementType(props, propName, componentName, location, propFullName)
8315
7398
  return null;
8316
7399
  }
8317
7400
  function getReactElementRef(element2) {
8318
- var _a;
8319
7401
  if (parseInt(React.version, 10) >= 19) {
8320
- return ((_a = element2 == null ? void 0 : element2.props) == null ? void 0 : _a.ref) || null;
7402
+ return element2?.props?.ref || null;
8321
7403
  }
8322
- return (element2 == null ? void 0 : element2.ref) || null;
7404
+ return element2?.ref || null;
8323
7405
  }
8324
7406
  function getContainer(container) {
8325
7407
  return typeof container === "function" ? container() : container;
@@ -8427,72 +7509,69 @@ const TypographyRoot = styled("span", {
8427
7509
  }
8428
7510
  })(memoTheme(({
8429
7511
  theme
8430
- }) => {
8431
- var _a;
8432
- return {
8433
- margin: 0,
8434
- variants: [{
8435
- props: {
8436
- variant: "inherit"
8437
- },
8438
- style: {
8439
- // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
8440
- font: "inherit",
8441
- lineHeight: "inherit",
8442
- letterSpacing: "inherit"
8443
- }
8444
- }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
8445
- props: {
8446
- variant
8447
- },
8448
- style: value
8449
- })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
8450
- props: {
8451
- color: color2
8452
- },
8453
- style: {
8454
- color: (theme.vars || theme).palette[color2].main
8455
- }
8456
- })), ...Object.entries(((_a = theme.palette) == null ? void 0 : _a.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
8457
- props: {
8458
- color: `text${capitalize(color2)}`
8459
- },
8460
- style: {
8461
- color: (theme.vars || theme).palette.text[color2]
8462
- }
8463
- })), {
8464
- props: ({
8465
- ownerState
8466
- }) => ownerState.align !== "inherit",
8467
- style: {
8468
- textAlign: "var(--Typography-textAlign)"
8469
- }
8470
- }, {
8471
- props: ({
8472
- ownerState
8473
- }) => ownerState.noWrap,
8474
- style: {
8475
- overflow: "hidden",
8476
- textOverflow: "ellipsis",
8477
- whiteSpace: "nowrap"
8478
- }
8479
- }, {
8480
- props: ({
8481
- ownerState
8482
- }) => ownerState.gutterBottom,
8483
- style: {
8484
- marginBottom: "0.35em"
8485
- }
8486
- }, {
8487
- props: ({
8488
- ownerState
8489
- }) => ownerState.paragraph,
8490
- style: {
8491
- marginBottom: 16
8492
- }
8493
- }]
8494
- };
8495
- }));
7512
+ }) => ({
7513
+ margin: 0,
7514
+ variants: [{
7515
+ props: {
7516
+ variant: "inherit"
7517
+ },
7518
+ style: {
7519
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
7520
+ font: "inherit",
7521
+ lineHeight: "inherit",
7522
+ letterSpacing: "inherit"
7523
+ }
7524
+ }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
7525
+ props: {
7526
+ variant
7527
+ },
7528
+ style: value
7529
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
7530
+ props: {
7531
+ color: color2
7532
+ },
7533
+ style: {
7534
+ color: (theme.vars || theme).palette[color2].main
7535
+ }
7536
+ })), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
7537
+ props: {
7538
+ color: `text${capitalize(color2)}`
7539
+ },
7540
+ style: {
7541
+ color: (theme.vars || theme).palette.text[color2]
7542
+ }
7543
+ })), {
7544
+ props: ({
7545
+ ownerState
7546
+ }) => ownerState.align !== "inherit",
7547
+ style: {
7548
+ textAlign: "var(--Typography-textAlign)"
7549
+ }
7550
+ }, {
7551
+ props: ({
7552
+ ownerState
7553
+ }) => ownerState.noWrap,
7554
+ style: {
7555
+ overflow: "hidden",
7556
+ textOverflow: "ellipsis",
7557
+ whiteSpace: "nowrap"
7558
+ }
7559
+ }, {
7560
+ props: ({
7561
+ ownerState
7562
+ }) => ownerState.gutterBottom,
7563
+ style: {
7564
+ marginBottom: "0.35em"
7565
+ }
7566
+ }, {
7567
+ props: ({
7568
+ ownerState
7569
+ }) => ownerState.paragraph,
7570
+ style: {
7571
+ marginBottom: 16
7572
+ }
7573
+ }]
7574
+ })));
8496
7575
  const defaultVariantMapping = {
8497
7576
  h1: "h1",
8498
7577
  h2: "h2",
@@ -8546,7 +7625,7 @@ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps
8546
7625
  };
8547
7626
  const Component = component || (paragraph2 ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
8548
7627
  const classes = useUtilityClasses(ownerState);
8549
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
7628
+ return /* @__PURE__ */ jsx(TypographyRoot, {
8550
7629
  as: Component,
8551
7630
  ref,
8552
7631
  className: clsx(classes.root, className),
@@ -10338,7 +9417,7 @@ React.forwardRef((props, ref) => {
10338
9417
  onExited: handleExited
10339
9418
  };
10340
9419
  }
10341
- return jsxRuntimeExports.jsx(Portal, { disablePortal, container, children: jsxRuntimeExports.jsx("div", { ref: handleRef, role: "tooltip", ...other, style: {
9420
+ return jsx(Portal, { disablePortal, container, children: jsx("div", { ref: handleRef, role: "tooltip", ...other, style: {
10342
9421
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
10343
9422
  position: "fixed",
10344
9423
  // Fix Popper.js display issue
@@ -10981,7 +10060,7 @@ makeStyles()(() => ({
10981
10060
  const OuterElementContext = React__default.createContext({});
10982
10061
  const OuterElementType = React__default.forwardRef((props, ref) => {
10983
10062
  const outerProps = React__default.useContext(OuterElementContext);
10984
- return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
10063
+ return jsx("div", { ref, ...props, ...outerProps });
10985
10064
  });
10986
10065
  function ListRow(props) {
10987
10066
  const { data, index: index2, style: style2 } = props;
@@ -10992,7 +10071,7 @@ function ListRow(props) {
10992
10071
  };
10993
10072
  const [props0, option, getItemLabel] = dataSet;
10994
10073
  const { key, ...optionProps } = props0;
10995
- return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
10074
+ return jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
10996
10075
  }
10997
10076
  function useResetCache(itemCount) {
10998
10077
  const ref = useRef(null);
@@ -11008,7 +10087,7 @@ React__default.forwardRef((props, ref) => {
11008
10087
  const items = children;
11009
10088
  const itemCount = items.length;
11010
10089
  const gridRef = useResetCache(itemCount);
11011
- return jsxRuntimeExports.jsx("div", { ref, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
10090
+ return jsx("div", { ref, children: jsx(OuterElementContext.Provider, { value: other, children: jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
11012
10091
  });
11013
10092
  function ok$1() {
11014
10093
  }
@@ -12377,6 +11456,7 @@ function requireCjs() {
12377
11456
  return mod && mod.__esModule ? mod : { "default": mod };
12378
11457
  };
12379
11458
  Object.defineProperty(cjs, "__esModule", { value: true });
11459
+ cjs.default = StyleToObject2;
12380
11460
  var inline_style_parser_1 = __importDefault(requireInlineStyleParser());
12381
11461
  function StyleToObject2(style2, iterator) {
12382
11462
  var styleObject = null;
@@ -12399,7 +11479,6 @@ function requireCjs() {
12399
11479
  });
12400
11480
  return styleObject;
12401
11481
  }
12402
- cjs.default = StyleToObject2;
12403
11482
  return cjs;
12404
11483
  }
12405
11484
  var cjsExports = requireCjs();
@@ -12741,11 +11820,11 @@ function addChildren(props, children) {
12741
11820
  }
12742
11821
  }
12743
11822
  }
12744
- function productionCreate(_, jsx, jsxs) {
11823
+ function productionCreate(_, jsx2, jsxs2) {
12745
11824
  return create2;
12746
11825
  function create2(_2, type, props, key) {
12747
11826
  const isStaticChildren = Array.isArray(props.children);
12748
- const fn = isStaticChildren ? jsxs : jsx;
11827
+ const fn = isStaticChildren ? jsxs2 : jsx2;
12749
11828
  return key ? fn(type, props, key) : fn(type, props);
12750
11829
  }
12751
11830
  }
@@ -18667,7 +17746,7 @@ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
18667
17746
  let reverse;
18668
17747
  let test;
18669
17748
  let visitor;
18670
- if (typeof testOrVisitor === "function" && true) {
17749
+ if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
18671
17750
  test = void 0;
18672
17751
  visitor = testOrVisitor;
18673
17752
  reverse = visitorOrReverse;
@@ -20484,11 +19563,11 @@ function Markdown(options) {
20484
19563
  }
20485
19564
  visit(hastTree, transform);
20486
19565
  return toJsxRuntime(hastTree, {
20487
- Fragment: jsxRuntimeExports.Fragment,
19566
+ Fragment,
20488
19567
  components,
20489
19568
  ignoreInvalidStyle: true,
20490
- jsx: jsxRuntimeExports.jsx,
20491
- jsxs: jsxRuntimeExports.jsxs,
19569
+ jsx,
19570
+ jsxs,
20492
19571
  passKeys: true,
20493
19572
  passNode: true
20494
19573
  });