@vitessce/layer-controller 3.8.10 → 3.8.13
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/{deflate-CZVu35H1.js → deflate-OdfZZTZp.js} +1 -1
- package/dist/{index-CSz7BTcU.js → index-BW5Yclfb.js} +527 -527
- package/dist/index.js +1 -1
- package/dist/{jpeg-Bk0vns-T.js → jpeg-hQE-vKZx.js} +1 -1
- package/dist/{lerc-BuNPfmnB.js → lerc-D8kkwb9L.js} +1 -1
- package/dist/{lzw-DkCbY_oq.js → lzw-M_vqTVu-.js} +1 -1
- package/dist/{packbits-BAOoRIuz.js → packbits-IpNEpfj-.js} +1 -1
- package/dist/{raw-BAlDElEj.js → raw-BFPumaUX.js} +1 -1
- package/dist/{webimage-D_iexCOt.js → webimage-BMcShvoC.js} +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-BW5Yclfb.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -8125,11 +8125,6 @@ const { tss } = createTss({
|
|
|
8125
8125
|
"usePlugin": useMuiThemeStyleOverridesPlugin
|
|
8126
8126
|
});
|
|
8127
8127
|
const useStyles$3 = tss.create({});
|
|
8128
|
-
function chainPropTypes(propType1, propType2) {
|
|
8129
|
-
return function validate2(...args) {
|
|
8130
|
-
return propType1(...args) || propType2(...args);
|
|
8131
|
-
};
|
|
8132
|
-
}
|
|
8133
8128
|
function GlobalStyles(props) {
|
|
8134
8129
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalStyles$1, {
|
|
8135
8130
|
...props,
|
|
@@ -8181,6 +8176,495 @@ const memoTheme = unstable_memoTheme;
|
|
|
8181
8176
|
function useDefaultProps(params) {
|
|
8182
8177
|
return useDefaultProps$1(params);
|
|
8183
8178
|
}
|
|
8179
|
+
function getSvgIconUtilityClass(slot) {
|
|
8180
|
+
return generateUtilityClass("MuiSvgIcon", slot);
|
|
8181
|
+
}
|
|
8182
|
+
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
8183
|
+
const useUtilityClasses$o = (ownerState) => {
|
|
8184
|
+
const {
|
|
8185
|
+
color: color2,
|
|
8186
|
+
fontSize,
|
|
8187
|
+
classes
|
|
8188
|
+
} = ownerState;
|
|
8189
|
+
const slots = {
|
|
8190
|
+
root: ["root", color2 !== "inherit" && `color${capitalize$1(color2)}`, `fontSize${capitalize$1(fontSize)}`]
|
|
8191
|
+
};
|
|
8192
|
+
return composeClasses(slots, getSvgIconUtilityClass, classes);
|
|
8193
|
+
};
|
|
8194
|
+
const SvgIconRoot = styled("svg", {
|
|
8195
|
+
name: "MuiSvgIcon",
|
|
8196
|
+
slot: "Root",
|
|
8197
|
+
overridesResolver: (props, styles2) => {
|
|
8198
|
+
const {
|
|
8199
|
+
ownerState
|
|
8200
|
+
} = props;
|
|
8201
|
+
return [styles2.root, ownerState.color !== "inherit" && styles2[`color${capitalize$1(ownerState.color)}`], styles2[`fontSize${capitalize$1(ownerState.fontSize)}`]];
|
|
8202
|
+
}
|
|
8203
|
+
})(memoTheme(({
|
|
8204
|
+
theme
|
|
8205
|
+
}) => {
|
|
8206
|
+
var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
8207
|
+
return {
|
|
8208
|
+
userSelect: "none",
|
|
8209
|
+
width: "1em",
|
|
8210
|
+
height: "1em",
|
|
8211
|
+
display: "inline-block",
|
|
8212
|
+
flexShrink: 0,
|
|
8213
|
+
transition: (_d = (_a3 = theme.transitions) == null ? void 0 : _a3.create) == null ? void 0 : _d.call(_a3, "fill", {
|
|
8214
|
+
duration: (_c = (_b2 = (theme.vars ?? theme).transitions) == null ? void 0 : _b2.duration) == null ? void 0 : _c.shorter
|
|
8215
|
+
}),
|
|
8216
|
+
variants: [
|
|
8217
|
+
{
|
|
8218
|
+
props: (props) => !props.hasSvgAsChild,
|
|
8219
|
+
style: {
|
|
8220
|
+
// the <svg> will define the property that has `currentColor`
|
|
8221
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
8222
|
+
fill: "currentColor"
|
|
8223
|
+
}
|
|
8224
|
+
},
|
|
8225
|
+
{
|
|
8226
|
+
props: {
|
|
8227
|
+
fontSize: "inherit"
|
|
8228
|
+
},
|
|
8229
|
+
style: {
|
|
8230
|
+
fontSize: "inherit"
|
|
8231
|
+
}
|
|
8232
|
+
},
|
|
8233
|
+
{
|
|
8234
|
+
props: {
|
|
8235
|
+
fontSize: "small"
|
|
8236
|
+
},
|
|
8237
|
+
style: {
|
|
8238
|
+
fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
|
|
8239
|
+
}
|
|
8240
|
+
},
|
|
8241
|
+
{
|
|
8242
|
+
props: {
|
|
8243
|
+
fontSize: "medium"
|
|
8244
|
+
},
|
|
8245
|
+
style: {
|
|
8246
|
+
fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
|
|
8247
|
+
}
|
|
8248
|
+
},
|
|
8249
|
+
{
|
|
8250
|
+
props: {
|
|
8251
|
+
fontSize: "large"
|
|
8252
|
+
},
|
|
8253
|
+
style: {
|
|
8254
|
+
fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
|
|
8255
|
+
}
|
|
8256
|
+
},
|
|
8257
|
+
// TODO v5 deprecate color prop, v6 remove for sx
|
|
8258
|
+
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
|
|
8259
|
+
var _a4, _b3;
|
|
8260
|
+
return {
|
|
8261
|
+
props: {
|
|
8262
|
+
color: color2
|
|
8263
|
+
},
|
|
8264
|
+
style: {
|
|
8265
|
+
color: (_b3 = (_a4 = (theme.vars ?? theme).palette) == null ? void 0 : _a4[color2]) == null ? void 0 : _b3.main
|
|
8266
|
+
}
|
|
8267
|
+
};
|
|
8268
|
+
}),
|
|
8269
|
+
{
|
|
8270
|
+
props: {
|
|
8271
|
+
color: "action"
|
|
8272
|
+
},
|
|
8273
|
+
style: {
|
|
8274
|
+
color: (_l = (_k = (theme.vars ?? theme).palette) == null ? void 0 : _k.action) == null ? void 0 : _l.active
|
|
8275
|
+
}
|
|
8276
|
+
},
|
|
8277
|
+
{
|
|
8278
|
+
props: {
|
|
8279
|
+
color: "disabled"
|
|
8280
|
+
},
|
|
8281
|
+
style: {
|
|
8282
|
+
color: (_n = (_m = (theme.vars ?? theme).palette) == null ? void 0 : _m.action) == null ? void 0 : _n.disabled
|
|
8283
|
+
}
|
|
8284
|
+
},
|
|
8285
|
+
{
|
|
8286
|
+
props: {
|
|
8287
|
+
color: "inherit"
|
|
8288
|
+
},
|
|
8289
|
+
style: {
|
|
8290
|
+
color: void 0
|
|
8291
|
+
}
|
|
8292
|
+
}
|
|
8293
|
+
]
|
|
8294
|
+
};
|
|
8295
|
+
}));
|
|
8296
|
+
const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref) {
|
|
8297
|
+
const props = useDefaultProps({
|
|
8298
|
+
props: inProps,
|
|
8299
|
+
name: "MuiSvgIcon"
|
|
8300
|
+
});
|
|
8301
|
+
const {
|
|
8302
|
+
children,
|
|
8303
|
+
className,
|
|
8304
|
+
color: color2 = "inherit",
|
|
8305
|
+
component = "svg",
|
|
8306
|
+
fontSize = "medium",
|
|
8307
|
+
htmlColor,
|
|
8308
|
+
inheritViewBox = false,
|
|
8309
|
+
titleAccess,
|
|
8310
|
+
viewBox = "0 0 24 24",
|
|
8311
|
+
...other
|
|
8312
|
+
} = props;
|
|
8313
|
+
const hasSvgAsChild = /* @__PURE__ */ React.isValidElement(children) && children.type === "svg";
|
|
8314
|
+
const ownerState = {
|
|
8315
|
+
...props,
|
|
8316
|
+
color: color2,
|
|
8317
|
+
component,
|
|
8318
|
+
fontSize,
|
|
8319
|
+
instanceFontSize: inProps.fontSize,
|
|
8320
|
+
inheritViewBox,
|
|
8321
|
+
viewBox,
|
|
8322
|
+
hasSvgAsChild
|
|
8323
|
+
};
|
|
8324
|
+
const more = {};
|
|
8325
|
+
if (!inheritViewBox) {
|
|
8326
|
+
more.viewBox = viewBox;
|
|
8327
|
+
}
|
|
8328
|
+
const classes = useUtilityClasses$o(ownerState);
|
|
8329
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
|
|
8330
|
+
as: component,
|
|
8331
|
+
className: clsx(classes.root, className),
|
|
8332
|
+
focusable: "false",
|
|
8333
|
+
color: htmlColor,
|
|
8334
|
+
"aria-hidden": titleAccess ? void 0 : true,
|
|
8335
|
+
role: titleAccess ? "img" : void 0,
|
|
8336
|
+
ref,
|
|
8337
|
+
...more,
|
|
8338
|
+
...other,
|
|
8339
|
+
...hasSvgAsChild && children.props,
|
|
8340
|
+
ownerState,
|
|
8341
|
+
children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", {
|
|
8342
|
+
children: titleAccess
|
|
8343
|
+
}) : null]
|
|
8344
|
+
});
|
|
8345
|
+
});
|
|
8346
|
+
SvgIcon.propTypes = {
|
|
8347
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
8348
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
8349
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
8350
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
8351
|
+
/**
|
|
8352
|
+
* Node passed into the SVG element.
|
|
8353
|
+
*/
|
|
8354
|
+
children: PropTypes.node,
|
|
8355
|
+
/**
|
|
8356
|
+
* Override or extend the styles applied to the component.
|
|
8357
|
+
*/
|
|
8358
|
+
classes: PropTypes.object,
|
|
8359
|
+
/**
|
|
8360
|
+
* @ignore
|
|
8361
|
+
*/
|
|
8362
|
+
className: PropTypes.string,
|
|
8363
|
+
/**
|
|
8364
|
+
* The color of the component.
|
|
8365
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
8366
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
8367
|
+
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
8368
|
+
* @default 'inherit'
|
|
8369
|
+
*/
|
|
8370
|
+
color: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), PropTypes.string]),
|
|
8371
|
+
/**
|
|
8372
|
+
* The component used for the root node.
|
|
8373
|
+
* Either a string to use a HTML element or a component.
|
|
8374
|
+
*/
|
|
8375
|
+
component: PropTypes.elementType,
|
|
8376
|
+
/**
|
|
8377
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
8378
|
+
* @default 'medium'
|
|
8379
|
+
*/
|
|
8380
|
+
fontSize: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "large", "medium", "small"]), PropTypes.string]),
|
|
8381
|
+
/**
|
|
8382
|
+
* Applies a color attribute to the SVG element.
|
|
8383
|
+
*/
|
|
8384
|
+
htmlColor: PropTypes.string,
|
|
8385
|
+
/**
|
|
8386
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
8387
|
+
* prop will be ignored.
|
|
8388
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
8389
|
+
* `component`'s viewBox to the root node.
|
|
8390
|
+
* @default false
|
|
8391
|
+
*/
|
|
8392
|
+
inheritViewBox: PropTypes.bool,
|
|
8393
|
+
/**
|
|
8394
|
+
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
8395
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
|
|
8396
|
+
* If you are having issues with blurry icons you should investigate this prop.
|
|
8397
|
+
*/
|
|
8398
|
+
shapeRendering: PropTypes.string,
|
|
8399
|
+
/**
|
|
8400
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
8401
|
+
*/
|
|
8402
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
8403
|
+
/**
|
|
8404
|
+
* Provides a human-readable title for the element that contains it.
|
|
8405
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
8406
|
+
*/
|
|
8407
|
+
titleAccess: PropTypes.string,
|
|
8408
|
+
/**
|
|
8409
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
8410
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
8411
|
+
* and you pass viewBox="0 0 50 20",
|
|
8412
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
8413
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
|
8414
|
+
* @default '0 0 24 24'
|
|
8415
|
+
*/
|
|
8416
|
+
viewBox: PropTypes.string
|
|
8417
|
+
};
|
|
8418
|
+
SvgIcon.muiName = "SvgIcon";
|
|
8419
|
+
function createSvgIcon(path, displayName) {
|
|
8420
|
+
function Component2(props, ref) {
|
|
8421
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgIcon, {
|
|
8422
|
+
"data-testid": `${displayName}Icon`,
|
|
8423
|
+
ref,
|
|
8424
|
+
...props,
|
|
8425
|
+
children: path
|
|
8426
|
+
});
|
|
8427
|
+
}
|
|
8428
|
+
{
|
|
8429
|
+
Component2.displayName = `${displayName}Icon`;
|
|
8430
|
+
}
|
|
8431
|
+
Component2.muiName = SvgIcon.muiName;
|
|
8432
|
+
return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component2));
|
|
8433
|
+
}
|
|
8434
|
+
function debounce$2(func, wait = 166) {
|
|
8435
|
+
let timeout2;
|
|
8436
|
+
function debounced(...args) {
|
|
8437
|
+
const later = () => {
|
|
8438
|
+
func.apply(this, args);
|
|
8439
|
+
};
|
|
8440
|
+
clearTimeout(timeout2);
|
|
8441
|
+
timeout2 = setTimeout(later, wait);
|
|
8442
|
+
}
|
|
8443
|
+
debounced.clear = () => {
|
|
8444
|
+
clearTimeout(timeout2);
|
|
8445
|
+
};
|
|
8446
|
+
return debounced;
|
|
8447
|
+
}
|
|
8448
|
+
function ownerDocument(node2) {
|
|
8449
|
+
return node2 && node2.ownerDocument || document;
|
|
8450
|
+
}
|
|
8451
|
+
function ownerWindow(node2) {
|
|
8452
|
+
const doc = ownerDocument(node2);
|
|
8453
|
+
return doc.defaultView || window;
|
|
8454
|
+
}
|
|
8455
|
+
function requirePropFactory(componentNameInError, Component2) {
|
|
8456
|
+
const prevPropTypes = Component2 ? {
|
|
8457
|
+
...Component2.propTypes
|
|
8458
|
+
} : null;
|
|
8459
|
+
const requireProp = (requiredProp) => (props, propName, componentName, location, propFullName, ...args) => {
|
|
8460
|
+
const propFullNameSafe = propFullName || propName;
|
|
8461
|
+
const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];
|
|
8462
|
+
if (defaultTypeChecker) {
|
|
8463
|
+
const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);
|
|
8464
|
+
if (typeCheckerResult) {
|
|
8465
|
+
return typeCheckerResult;
|
|
8466
|
+
}
|
|
8467
|
+
}
|
|
8468
|
+
if (typeof props[propName] !== "undefined" && !props[requiredProp]) {
|
|
8469
|
+
return new Error(`The prop \`${propFullNameSafe}\` of \`${componentNameInError}\` can only be used together with the \`${requiredProp}\` prop.`);
|
|
8470
|
+
}
|
|
8471
|
+
return null;
|
|
8472
|
+
};
|
|
8473
|
+
return requireProp;
|
|
8474
|
+
}
|
|
8475
|
+
function setRef$1(ref, value) {
|
|
8476
|
+
if (typeof ref === "function") {
|
|
8477
|
+
ref(value);
|
|
8478
|
+
} else if (ref) {
|
|
8479
|
+
ref.current = value;
|
|
8480
|
+
}
|
|
8481
|
+
}
|
|
8482
|
+
let globalId = 0;
|
|
8483
|
+
function useGlobalId(idOverride) {
|
|
8484
|
+
const [defaultId, setDefaultId] = React.useState(idOverride);
|
|
8485
|
+
const id = idOverride || defaultId;
|
|
8486
|
+
React.useEffect(() => {
|
|
8487
|
+
if (defaultId == null) {
|
|
8488
|
+
globalId += 1;
|
|
8489
|
+
setDefaultId(`mui-${globalId}`);
|
|
8490
|
+
}
|
|
8491
|
+
}, [defaultId]);
|
|
8492
|
+
return id;
|
|
8493
|
+
}
|
|
8494
|
+
const safeReact = {
|
|
8495
|
+
...React
|
|
8496
|
+
};
|
|
8497
|
+
const maybeReactUseId = safeReact.useId;
|
|
8498
|
+
function useId(idOverride) {
|
|
8499
|
+
if (maybeReactUseId !== void 0) {
|
|
8500
|
+
const reactId = maybeReactUseId();
|
|
8501
|
+
return idOverride ?? reactId;
|
|
8502
|
+
}
|
|
8503
|
+
return useGlobalId(idOverride);
|
|
8504
|
+
}
|
|
8505
|
+
function unsupportedProp(props, propName, componentName, location, propFullName) {
|
|
8506
|
+
const propFullNameSafe = propFullName || propName;
|
|
8507
|
+
if (typeof props[propName] !== "undefined") {
|
|
8508
|
+
return new Error(`The prop \`${propFullNameSafe}\` is not supported. Please remove it.`);
|
|
8509
|
+
}
|
|
8510
|
+
return null;
|
|
8511
|
+
}
|
|
8512
|
+
function useControlled(props) {
|
|
8513
|
+
const {
|
|
8514
|
+
controlled,
|
|
8515
|
+
default: defaultProp,
|
|
8516
|
+
name: name2,
|
|
8517
|
+
state = "value"
|
|
8518
|
+
} = props;
|
|
8519
|
+
const {
|
|
8520
|
+
current: isControlled
|
|
8521
|
+
} = React.useRef(controlled !== void 0);
|
|
8522
|
+
const [valueState, setValue] = React.useState(defaultProp);
|
|
8523
|
+
const value = isControlled ? controlled : valueState;
|
|
8524
|
+
{
|
|
8525
|
+
React.useEffect(() => {
|
|
8526
|
+
if (isControlled !== (controlled !== void 0)) {
|
|
8527
|
+
console.error([`MUI: A component is changing the ${isControlled ? "" : "un"}controlled ${state} state of ${name2} to be ${isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${name2} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join("\n"));
|
|
8528
|
+
}
|
|
8529
|
+
}, [state, name2, controlled]);
|
|
8530
|
+
const {
|
|
8531
|
+
current: defaultValue2
|
|
8532
|
+
} = React.useRef(defaultProp);
|
|
8533
|
+
React.useEffect(() => {
|
|
8534
|
+
if (!isControlled && !Object.is(defaultValue2, defaultProp)) {
|
|
8535
|
+
console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name2} after being initialized. To suppress this warning opt to use a controlled ${name2}.`].join("\n"));
|
|
8536
|
+
}
|
|
8537
|
+
}, [JSON.stringify(defaultProp)]);
|
|
8538
|
+
}
|
|
8539
|
+
const setValueIfUncontrolled = React.useCallback((newValue) => {
|
|
8540
|
+
if (!isControlled) {
|
|
8541
|
+
setValue(newValue);
|
|
8542
|
+
}
|
|
8543
|
+
}, []);
|
|
8544
|
+
return [value, setValueIfUncontrolled];
|
|
8545
|
+
}
|
|
8546
|
+
function useEventCallback(fn) {
|
|
8547
|
+
const ref = React.useRef(fn);
|
|
8548
|
+
useEnhancedEffect$1(() => {
|
|
8549
|
+
ref.current = fn;
|
|
8550
|
+
});
|
|
8551
|
+
return React.useRef((...args) => (
|
|
8552
|
+
// @ts-expect-error hide `this`
|
|
8553
|
+
(0, ref.current)(...args)
|
|
8554
|
+
)).current;
|
|
8555
|
+
}
|
|
8556
|
+
function useForkRef$1(...refs) {
|
|
8557
|
+
const cleanupRef = React.useRef(void 0);
|
|
8558
|
+
const refEffect = React.useCallback((instance) => {
|
|
8559
|
+
const cleanups = refs.map((ref) => {
|
|
8560
|
+
if (ref == null) {
|
|
8561
|
+
return null;
|
|
8562
|
+
}
|
|
8563
|
+
if (typeof ref === "function") {
|
|
8564
|
+
const refCallback = ref;
|
|
8565
|
+
const refCleanup = refCallback(instance);
|
|
8566
|
+
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
8567
|
+
refCallback(null);
|
|
8568
|
+
};
|
|
8569
|
+
}
|
|
8570
|
+
ref.current = instance;
|
|
8571
|
+
return () => {
|
|
8572
|
+
ref.current = null;
|
|
8573
|
+
};
|
|
8574
|
+
});
|
|
8575
|
+
return () => {
|
|
8576
|
+
cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
|
|
8577
|
+
};
|
|
8578
|
+
}, refs);
|
|
8579
|
+
return React.useMemo(() => {
|
|
8580
|
+
if (refs.every((ref) => ref == null)) {
|
|
8581
|
+
return null;
|
|
8582
|
+
}
|
|
8583
|
+
return (value) => {
|
|
8584
|
+
if (cleanupRef.current) {
|
|
8585
|
+
cleanupRef.current();
|
|
8586
|
+
cleanupRef.current = void 0;
|
|
8587
|
+
}
|
|
8588
|
+
if (value != null) {
|
|
8589
|
+
cleanupRef.current = refEffect(value);
|
|
8590
|
+
}
|
|
8591
|
+
};
|
|
8592
|
+
}, refs);
|
|
8593
|
+
}
|
|
8594
|
+
function isEventHandler(key, value) {
|
|
8595
|
+
const thirdCharCode = key.charCodeAt(2);
|
|
8596
|
+
return key[0] === "o" && key[1] === "n" && thirdCharCode >= 65 && thirdCharCode <= 90 && typeof value === "function";
|
|
8597
|
+
}
|
|
8598
|
+
function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
8599
|
+
if (!externalSlotProps) {
|
|
8600
|
+
return defaultSlotProps;
|
|
8601
|
+
}
|
|
8602
|
+
function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {
|
|
8603
|
+
const handlers2 = {};
|
|
8604
|
+
Object.keys(defaultSlotPropsValue).forEach((key) => {
|
|
8605
|
+
if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === "function") {
|
|
8606
|
+
handlers2[key] = (...args) => {
|
|
8607
|
+
externalSlotPropsValue[key](...args);
|
|
8608
|
+
defaultSlotPropsValue[key](...args);
|
|
8609
|
+
};
|
|
8610
|
+
}
|
|
8611
|
+
});
|
|
8612
|
+
return handlers2;
|
|
8613
|
+
}
|
|
8614
|
+
if (typeof externalSlotProps === "function" || typeof defaultSlotProps === "function") {
|
|
8615
|
+
return (ownerState) => {
|
|
8616
|
+
const defaultSlotPropsValue = typeof defaultSlotProps === "function" ? defaultSlotProps(ownerState) : defaultSlotProps;
|
|
8617
|
+
const externalSlotPropsValue = typeof externalSlotProps === "function" ? externalSlotProps({
|
|
8618
|
+
...ownerState,
|
|
8619
|
+
...defaultSlotPropsValue
|
|
8620
|
+
}) : externalSlotProps;
|
|
8621
|
+
const className2 = clsx(ownerState == null ? void 0 : ownerState.className, defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.className, externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.className);
|
|
8622
|
+
const handlers2 = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
|
|
8623
|
+
return {
|
|
8624
|
+
...defaultSlotPropsValue,
|
|
8625
|
+
...externalSlotPropsValue,
|
|
8626
|
+
...handlers2,
|
|
8627
|
+
...!!className2 && {
|
|
8628
|
+
className: className2
|
|
8629
|
+
},
|
|
8630
|
+
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.style) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.style) && {
|
|
8631
|
+
style: {
|
|
8632
|
+
...defaultSlotPropsValue.style,
|
|
8633
|
+
...externalSlotPropsValue.style
|
|
8634
|
+
}
|
|
8635
|
+
},
|
|
8636
|
+
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.sx) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.sx) && {
|
|
8637
|
+
sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]]
|
|
8638
|
+
}
|
|
8639
|
+
};
|
|
8640
|
+
};
|
|
8641
|
+
}
|
|
8642
|
+
const typedDefaultSlotProps = defaultSlotProps;
|
|
8643
|
+
const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
|
|
8644
|
+
const className = clsx(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
8645
|
+
return {
|
|
8646
|
+
...defaultSlotProps,
|
|
8647
|
+
...externalSlotProps,
|
|
8648
|
+
...handlers,
|
|
8649
|
+
...!!className && {
|
|
8650
|
+
className
|
|
8651
|
+
},
|
|
8652
|
+
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.style) && (externalSlotProps == null ? void 0 : externalSlotProps.style) && {
|
|
8653
|
+
style: {
|
|
8654
|
+
...typedDefaultSlotProps.style,
|
|
8655
|
+
...externalSlotProps.style
|
|
8656
|
+
}
|
|
8657
|
+
},
|
|
8658
|
+
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.sx) && (externalSlotProps == null ? void 0 : externalSlotProps.sx) && {
|
|
8659
|
+
sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]]
|
|
8660
|
+
}
|
|
8661
|
+
};
|
|
8662
|
+
}
|
|
8663
|
+
function chainPropTypes(propType1, propType2) {
|
|
8664
|
+
return function validate2(...args) {
|
|
8665
|
+
return propType1(...args) || propType2(...args);
|
|
8666
|
+
};
|
|
8667
|
+
}
|
|
8184
8668
|
function _extends$1() {
|
|
8185
8669
|
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
8186
8670
|
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
@@ -8964,490 +9448,6 @@ function getTransitionProps(props, options) {
|
|
|
8964
9448
|
delay: style2.transitionDelay
|
|
8965
9449
|
};
|
|
8966
9450
|
}
|
|
8967
|
-
function getSvgIconUtilityClass(slot) {
|
|
8968
|
-
return generateUtilityClass("MuiSvgIcon", slot);
|
|
8969
|
-
}
|
|
8970
|
-
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
8971
|
-
const useUtilityClasses$o = (ownerState) => {
|
|
8972
|
-
const {
|
|
8973
|
-
color: color2,
|
|
8974
|
-
fontSize,
|
|
8975
|
-
classes
|
|
8976
|
-
} = ownerState;
|
|
8977
|
-
const slots = {
|
|
8978
|
-
root: ["root", color2 !== "inherit" && `color${capitalize$1(color2)}`, `fontSize${capitalize$1(fontSize)}`]
|
|
8979
|
-
};
|
|
8980
|
-
return composeClasses(slots, getSvgIconUtilityClass, classes);
|
|
8981
|
-
};
|
|
8982
|
-
const SvgIconRoot = styled("svg", {
|
|
8983
|
-
name: "MuiSvgIcon",
|
|
8984
|
-
slot: "Root",
|
|
8985
|
-
overridesResolver: (props, styles2) => {
|
|
8986
|
-
const {
|
|
8987
|
-
ownerState
|
|
8988
|
-
} = props;
|
|
8989
|
-
return [styles2.root, ownerState.color !== "inherit" && styles2[`color${capitalize$1(ownerState.color)}`], styles2[`fontSize${capitalize$1(ownerState.fontSize)}`]];
|
|
8990
|
-
}
|
|
8991
|
-
})(memoTheme(({
|
|
8992
|
-
theme
|
|
8993
|
-
}) => {
|
|
8994
|
-
var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
8995
|
-
return {
|
|
8996
|
-
userSelect: "none",
|
|
8997
|
-
width: "1em",
|
|
8998
|
-
height: "1em",
|
|
8999
|
-
display: "inline-block",
|
|
9000
|
-
flexShrink: 0,
|
|
9001
|
-
transition: (_d = (_a3 = theme.transitions) == null ? void 0 : _a3.create) == null ? void 0 : _d.call(_a3, "fill", {
|
|
9002
|
-
duration: (_c = (_b2 = (theme.vars ?? theme).transitions) == null ? void 0 : _b2.duration) == null ? void 0 : _c.shorter
|
|
9003
|
-
}),
|
|
9004
|
-
variants: [
|
|
9005
|
-
{
|
|
9006
|
-
props: (props) => !props.hasSvgAsChild,
|
|
9007
|
-
style: {
|
|
9008
|
-
// the <svg> will define the property that has `currentColor`
|
|
9009
|
-
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
9010
|
-
fill: "currentColor"
|
|
9011
|
-
}
|
|
9012
|
-
},
|
|
9013
|
-
{
|
|
9014
|
-
props: {
|
|
9015
|
-
fontSize: "inherit"
|
|
9016
|
-
},
|
|
9017
|
-
style: {
|
|
9018
|
-
fontSize: "inherit"
|
|
9019
|
-
}
|
|
9020
|
-
},
|
|
9021
|
-
{
|
|
9022
|
-
props: {
|
|
9023
|
-
fontSize: "small"
|
|
9024
|
-
},
|
|
9025
|
-
style: {
|
|
9026
|
-
fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
|
|
9027
|
-
}
|
|
9028
|
-
},
|
|
9029
|
-
{
|
|
9030
|
-
props: {
|
|
9031
|
-
fontSize: "medium"
|
|
9032
|
-
},
|
|
9033
|
-
style: {
|
|
9034
|
-
fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
|
|
9035
|
-
}
|
|
9036
|
-
},
|
|
9037
|
-
{
|
|
9038
|
-
props: {
|
|
9039
|
-
fontSize: "large"
|
|
9040
|
-
},
|
|
9041
|
-
style: {
|
|
9042
|
-
fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
|
|
9043
|
-
}
|
|
9044
|
-
},
|
|
9045
|
-
// TODO v5 deprecate color prop, v6 remove for sx
|
|
9046
|
-
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
|
|
9047
|
-
var _a4, _b3;
|
|
9048
|
-
return {
|
|
9049
|
-
props: {
|
|
9050
|
-
color: color2
|
|
9051
|
-
},
|
|
9052
|
-
style: {
|
|
9053
|
-
color: (_b3 = (_a4 = (theme.vars ?? theme).palette) == null ? void 0 : _a4[color2]) == null ? void 0 : _b3.main
|
|
9054
|
-
}
|
|
9055
|
-
};
|
|
9056
|
-
}),
|
|
9057
|
-
{
|
|
9058
|
-
props: {
|
|
9059
|
-
color: "action"
|
|
9060
|
-
},
|
|
9061
|
-
style: {
|
|
9062
|
-
color: (_l = (_k = (theme.vars ?? theme).palette) == null ? void 0 : _k.action) == null ? void 0 : _l.active
|
|
9063
|
-
}
|
|
9064
|
-
},
|
|
9065
|
-
{
|
|
9066
|
-
props: {
|
|
9067
|
-
color: "disabled"
|
|
9068
|
-
},
|
|
9069
|
-
style: {
|
|
9070
|
-
color: (_n = (_m = (theme.vars ?? theme).palette) == null ? void 0 : _m.action) == null ? void 0 : _n.disabled
|
|
9071
|
-
}
|
|
9072
|
-
},
|
|
9073
|
-
{
|
|
9074
|
-
props: {
|
|
9075
|
-
color: "inherit"
|
|
9076
|
-
},
|
|
9077
|
-
style: {
|
|
9078
|
-
color: void 0
|
|
9079
|
-
}
|
|
9080
|
-
}
|
|
9081
|
-
]
|
|
9082
|
-
};
|
|
9083
|
-
}));
|
|
9084
|
-
const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref) {
|
|
9085
|
-
const props = useDefaultProps({
|
|
9086
|
-
props: inProps,
|
|
9087
|
-
name: "MuiSvgIcon"
|
|
9088
|
-
});
|
|
9089
|
-
const {
|
|
9090
|
-
children,
|
|
9091
|
-
className,
|
|
9092
|
-
color: color2 = "inherit",
|
|
9093
|
-
component = "svg",
|
|
9094
|
-
fontSize = "medium",
|
|
9095
|
-
htmlColor,
|
|
9096
|
-
inheritViewBox = false,
|
|
9097
|
-
titleAccess,
|
|
9098
|
-
viewBox = "0 0 24 24",
|
|
9099
|
-
...other
|
|
9100
|
-
} = props;
|
|
9101
|
-
const hasSvgAsChild = /* @__PURE__ */ React.isValidElement(children) && children.type === "svg";
|
|
9102
|
-
const ownerState = {
|
|
9103
|
-
...props,
|
|
9104
|
-
color: color2,
|
|
9105
|
-
component,
|
|
9106
|
-
fontSize,
|
|
9107
|
-
instanceFontSize: inProps.fontSize,
|
|
9108
|
-
inheritViewBox,
|
|
9109
|
-
viewBox,
|
|
9110
|
-
hasSvgAsChild
|
|
9111
|
-
};
|
|
9112
|
-
const more = {};
|
|
9113
|
-
if (!inheritViewBox) {
|
|
9114
|
-
more.viewBox = viewBox;
|
|
9115
|
-
}
|
|
9116
|
-
const classes = useUtilityClasses$o(ownerState);
|
|
9117
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
|
|
9118
|
-
as: component,
|
|
9119
|
-
className: clsx(classes.root, className),
|
|
9120
|
-
focusable: "false",
|
|
9121
|
-
color: htmlColor,
|
|
9122
|
-
"aria-hidden": titleAccess ? void 0 : true,
|
|
9123
|
-
role: titleAccess ? "img" : void 0,
|
|
9124
|
-
ref,
|
|
9125
|
-
...more,
|
|
9126
|
-
...other,
|
|
9127
|
-
...hasSvgAsChild && children.props,
|
|
9128
|
-
ownerState,
|
|
9129
|
-
children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", {
|
|
9130
|
-
children: titleAccess
|
|
9131
|
-
}) : null]
|
|
9132
|
-
});
|
|
9133
|
-
});
|
|
9134
|
-
SvgIcon.propTypes = {
|
|
9135
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
9136
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
9137
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
9138
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
9139
|
-
/**
|
|
9140
|
-
* Node passed into the SVG element.
|
|
9141
|
-
*/
|
|
9142
|
-
children: PropTypes.node,
|
|
9143
|
-
/**
|
|
9144
|
-
* Override or extend the styles applied to the component.
|
|
9145
|
-
*/
|
|
9146
|
-
classes: PropTypes.object,
|
|
9147
|
-
/**
|
|
9148
|
-
* @ignore
|
|
9149
|
-
*/
|
|
9150
|
-
className: PropTypes.string,
|
|
9151
|
-
/**
|
|
9152
|
-
* The color of the component.
|
|
9153
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
9154
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
9155
|
-
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
9156
|
-
* @default 'inherit'
|
|
9157
|
-
*/
|
|
9158
|
-
color: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), PropTypes.string]),
|
|
9159
|
-
/**
|
|
9160
|
-
* The component used for the root node.
|
|
9161
|
-
* Either a string to use a HTML element or a component.
|
|
9162
|
-
*/
|
|
9163
|
-
component: PropTypes.elementType,
|
|
9164
|
-
/**
|
|
9165
|
-
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
9166
|
-
* @default 'medium'
|
|
9167
|
-
*/
|
|
9168
|
-
fontSize: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "large", "medium", "small"]), PropTypes.string]),
|
|
9169
|
-
/**
|
|
9170
|
-
* Applies a color attribute to the SVG element.
|
|
9171
|
-
*/
|
|
9172
|
-
htmlColor: PropTypes.string,
|
|
9173
|
-
/**
|
|
9174
|
-
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
9175
|
-
* prop will be ignored.
|
|
9176
|
-
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
9177
|
-
* `component`'s viewBox to the root node.
|
|
9178
|
-
* @default false
|
|
9179
|
-
*/
|
|
9180
|
-
inheritViewBox: PropTypes.bool,
|
|
9181
|
-
/**
|
|
9182
|
-
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
9183
|
-
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
|
|
9184
|
-
* If you are having issues with blurry icons you should investigate this prop.
|
|
9185
|
-
*/
|
|
9186
|
-
shapeRendering: PropTypes.string,
|
|
9187
|
-
/**
|
|
9188
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
9189
|
-
*/
|
|
9190
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
9191
|
-
/**
|
|
9192
|
-
* Provides a human-readable title for the element that contains it.
|
|
9193
|
-
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
9194
|
-
*/
|
|
9195
|
-
titleAccess: PropTypes.string,
|
|
9196
|
-
/**
|
|
9197
|
-
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
9198
|
-
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
9199
|
-
* and you pass viewBox="0 0 50 20",
|
|
9200
|
-
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
9201
|
-
* to bottom right (50,20) and each unit will be worth 10px.
|
|
9202
|
-
* @default '0 0 24 24'
|
|
9203
|
-
*/
|
|
9204
|
-
viewBox: PropTypes.string
|
|
9205
|
-
};
|
|
9206
|
-
SvgIcon.muiName = "SvgIcon";
|
|
9207
|
-
function createSvgIcon(path, displayName) {
|
|
9208
|
-
function Component2(props, ref) {
|
|
9209
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgIcon, {
|
|
9210
|
-
"data-testid": `${displayName}Icon`,
|
|
9211
|
-
ref,
|
|
9212
|
-
...props,
|
|
9213
|
-
children: path
|
|
9214
|
-
});
|
|
9215
|
-
}
|
|
9216
|
-
{
|
|
9217
|
-
Component2.displayName = `${displayName}Icon`;
|
|
9218
|
-
}
|
|
9219
|
-
Component2.muiName = SvgIcon.muiName;
|
|
9220
|
-
return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component2));
|
|
9221
|
-
}
|
|
9222
|
-
function debounce$2(func, wait = 166) {
|
|
9223
|
-
let timeout2;
|
|
9224
|
-
function debounced(...args) {
|
|
9225
|
-
const later = () => {
|
|
9226
|
-
func.apply(this, args);
|
|
9227
|
-
};
|
|
9228
|
-
clearTimeout(timeout2);
|
|
9229
|
-
timeout2 = setTimeout(later, wait);
|
|
9230
|
-
}
|
|
9231
|
-
debounced.clear = () => {
|
|
9232
|
-
clearTimeout(timeout2);
|
|
9233
|
-
};
|
|
9234
|
-
return debounced;
|
|
9235
|
-
}
|
|
9236
|
-
function ownerDocument(node2) {
|
|
9237
|
-
return node2 && node2.ownerDocument || document;
|
|
9238
|
-
}
|
|
9239
|
-
function ownerWindow(node2) {
|
|
9240
|
-
const doc = ownerDocument(node2);
|
|
9241
|
-
return doc.defaultView || window;
|
|
9242
|
-
}
|
|
9243
|
-
function requirePropFactory(componentNameInError, Component2) {
|
|
9244
|
-
const prevPropTypes = Component2 ? {
|
|
9245
|
-
...Component2.propTypes
|
|
9246
|
-
} : null;
|
|
9247
|
-
const requireProp = (requiredProp) => (props, propName, componentName, location, propFullName, ...args) => {
|
|
9248
|
-
const propFullNameSafe = propFullName || propName;
|
|
9249
|
-
const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];
|
|
9250
|
-
if (defaultTypeChecker) {
|
|
9251
|
-
const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);
|
|
9252
|
-
if (typeCheckerResult) {
|
|
9253
|
-
return typeCheckerResult;
|
|
9254
|
-
}
|
|
9255
|
-
}
|
|
9256
|
-
if (typeof props[propName] !== "undefined" && !props[requiredProp]) {
|
|
9257
|
-
return new Error(`The prop \`${propFullNameSafe}\` of \`${componentNameInError}\` can only be used together with the \`${requiredProp}\` prop.`);
|
|
9258
|
-
}
|
|
9259
|
-
return null;
|
|
9260
|
-
};
|
|
9261
|
-
return requireProp;
|
|
9262
|
-
}
|
|
9263
|
-
function setRef$1(ref, value) {
|
|
9264
|
-
if (typeof ref === "function") {
|
|
9265
|
-
ref(value);
|
|
9266
|
-
} else if (ref) {
|
|
9267
|
-
ref.current = value;
|
|
9268
|
-
}
|
|
9269
|
-
}
|
|
9270
|
-
let globalId = 0;
|
|
9271
|
-
function useGlobalId(idOverride) {
|
|
9272
|
-
const [defaultId, setDefaultId] = React.useState(idOverride);
|
|
9273
|
-
const id = idOverride || defaultId;
|
|
9274
|
-
React.useEffect(() => {
|
|
9275
|
-
if (defaultId == null) {
|
|
9276
|
-
globalId += 1;
|
|
9277
|
-
setDefaultId(`mui-${globalId}`);
|
|
9278
|
-
}
|
|
9279
|
-
}, [defaultId]);
|
|
9280
|
-
return id;
|
|
9281
|
-
}
|
|
9282
|
-
const safeReact = {
|
|
9283
|
-
...React
|
|
9284
|
-
};
|
|
9285
|
-
const maybeReactUseId = safeReact.useId;
|
|
9286
|
-
function useId(idOverride) {
|
|
9287
|
-
if (maybeReactUseId !== void 0) {
|
|
9288
|
-
const reactId = maybeReactUseId();
|
|
9289
|
-
return idOverride ?? reactId;
|
|
9290
|
-
}
|
|
9291
|
-
return useGlobalId(idOverride);
|
|
9292
|
-
}
|
|
9293
|
-
function unsupportedProp(props, propName, componentName, location, propFullName) {
|
|
9294
|
-
const propFullNameSafe = propFullName || propName;
|
|
9295
|
-
if (typeof props[propName] !== "undefined") {
|
|
9296
|
-
return new Error(`The prop \`${propFullNameSafe}\` is not supported. Please remove it.`);
|
|
9297
|
-
}
|
|
9298
|
-
return null;
|
|
9299
|
-
}
|
|
9300
|
-
function useControlled(props) {
|
|
9301
|
-
const {
|
|
9302
|
-
controlled,
|
|
9303
|
-
default: defaultProp,
|
|
9304
|
-
name: name2,
|
|
9305
|
-
state = "value"
|
|
9306
|
-
} = props;
|
|
9307
|
-
const {
|
|
9308
|
-
current: isControlled
|
|
9309
|
-
} = React.useRef(controlled !== void 0);
|
|
9310
|
-
const [valueState, setValue] = React.useState(defaultProp);
|
|
9311
|
-
const value = isControlled ? controlled : valueState;
|
|
9312
|
-
{
|
|
9313
|
-
React.useEffect(() => {
|
|
9314
|
-
if (isControlled !== (controlled !== void 0)) {
|
|
9315
|
-
console.error([`MUI: A component is changing the ${isControlled ? "" : "un"}controlled ${state} state of ${name2} to be ${isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${name2} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join("\n"));
|
|
9316
|
-
}
|
|
9317
|
-
}, [state, name2, controlled]);
|
|
9318
|
-
const {
|
|
9319
|
-
current: defaultValue2
|
|
9320
|
-
} = React.useRef(defaultProp);
|
|
9321
|
-
React.useEffect(() => {
|
|
9322
|
-
if (!isControlled && !Object.is(defaultValue2, defaultProp)) {
|
|
9323
|
-
console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name2} after being initialized. To suppress this warning opt to use a controlled ${name2}.`].join("\n"));
|
|
9324
|
-
}
|
|
9325
|
-
}, [JSON.stringify(defaultProp)]);
|
|
9326
|
-
}
|
|
9327
|
-
const setValueIfUncontrolled = React.useCallback((newValue) => {
|
|
9328
|
-
if (!isControlled) {
|
|
9329
|
-
setValue(newValue);
|
|
9330
|
-
}
|
|
9331
|
-
}, []);
|
|
9332
|
-
return [value, setValueIfUncontrolled];
|
|
9333
|
-
}
|
|
9334
|
-
function useEventCallback(fn) {
|
|
9335
|
-
const ref = React.useRef(fn);
|
|
9336
|
-
useEnhancedEffect$1(() => {
|
|
9337
|
-
ref.current = fn;
|
|
9338
|
-
});
|
|
9339
|
-
return React.useRef((...args) => (
|
|
9340
|
-
// @ts-expect-error hide `this`
|
|
9341
|
-
(0, ref.current)(...args)
|
|
9342
|
-
)).current;
|
|
9343
|
-
}
|
|
9344
|
-
function useForkRef$1(...refs) {
|
|
9345
|
-
const cleanupRef = React.useRef(void 0);
|
|
9346
|
-
const refEffect = React.useCallback((instance) => {
|
|
9347
|
-
const cleanups = refs.map((ref) => {
|
|
9348
|
-
if (ref == null) {
|
|
9349
|
-
return null;
|
|
9350
|
-
}
|
|
9351
|
-
if (typeof ref === "function") {
|
|
9352
|
-
const refCallback = ref;
|
|
9353
|
-
const refCleanup = refCallback(instance);
|
|
9354
|
-
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
9355
|
-
refCallback(null);
|
|
9356
|
-
};
|
|
9357
|
-
}
|
|
9358
|
-
ref.current = instance;
|
|
9359
|
-
return () => {
|
|
9360
|
-
ref.current = null;
|
|
9361
|
-
};
|
|
9362
|
-
});
|
|
9363
|
-
return () => {
|
|
9364
|
-
cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
|
|
9365
|
-
};
|
|
9366
|
-
}, refs);
|
|
9367
|
-
return React.useMemo(() => {
|
|
9368
|
-
if (refs.every((ref) => ref == null)) {
|
|
9369
|
-
return null;
|
|
9370
|
-
}
|
|
9371
|
-
return (value) => {
|
|
9372
|
-
if (cleanupRef.current) {
|
|
9373
|
-
cleanupRef.current();
|
|
9374
|
-
cleanupRef.current = void 0;
|
|
9375
|
-
}
|
|
9376
|
-
if (value != null) {
|
|
9377
|
-
cleanupRef.current = refEffect(value);
|
|
9378
|
-
}
|
|
9379
|
-
};
|
|
9380
|
-
}, refs);
|
|
9381
|
-
}
|
|
9382
|
-
function isEventHandler(key, value) {
|
|
9383
|
-
const thirdCharCode = key.charCodeAt(2);
|
|
9384
|
-
return key[0] === "o" && key[1] === "n" && thirdCharCode >= 65 && thirdCharCode <= 90 && typeof value === "function";
|
|
9385
|
-
}
|
|
9386
|
-
function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
9387
|
-
if (!externalSlotProps) {
|
|
9388
|
-
return defaultSlotProps;
|
|
9389
|
-
}
|
|
9390
|
-
function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {
|
|
9391
|
-
const handlers2 = {};
|
|
9392
|
-
Object.keys(defaultSlotPropsValue).forEach((key) => {
|
|
9393
|
-
if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === "function") {
|
|
9394
|
-
handlers2[key] = (...args) => {
|
|
9395
|
-
externalSlotPropsValue[key](...args);
|
|
9396
|
-
defaultSlotPropsValue[key](...args);
|
|
9397
|
-
};
|
|
9398
|
-
}
|
|
9399
|
-
});
|
|
9400
|
-
return handlers2;
|
|
9401
|
-
}
|
|
9402
|
-
if (typeof externalSlotProps === "function" || typeof defaultSlotProps === "function") {
|
|
9403
|
-
return (ownerState) => {
|
|
9404
|
-
const defaultSlotPropsValue = typeof defaultSlotProps === "function" ? defaultSlotProps(ownerState) : defaultSlotProps;
|
|
9405
|
-
const externalSlotPropsValue = typeof externalSlotProps === "function" ? externalSlotProps({
|
|
9406
|
-
...ownerState,
|
|
9407
|
-
...defaultSlotPropsValue
|
|
9408
|
-
}) : externalSlotProps;
|
|
9409
|
-
const className2 = clsx(ownerState == null ? void 0 : ownerState.className, defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.className, externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.className);
|
|
9410
|
-
const handlers2 = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
|
|
9411
|
-
return {
|
|
9412
|
-
...defaultSlotPropsValue,
|
|
9413
|
-
...externalSlotPropsValue,
|
|
9414
|
-
...handlers2,
|
|
9415
|
-
...!!className2 && {
|
|
9416
|
-
className: className2
|
|
9417
|
-
},
|
|
9418
|
-
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.style) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.style) && {
|
|
9419
|
-
style: {
|
|
9420
|
-
...defaultSlotPropsValue.style,
|
|
9421
|
-
...externalSlotPropsValue.style
|
|
9422
|
-
}
|
|
9423
|
-
},
|
|
9424
|
-
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.sx) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.sx) && {
|
|
9425
|
-
sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]]
|
|
9426
|
-
}
|
|
9427
|
-
};
|
|
9428
|
-
};
|
|
9429
|
-
}
|
|
9430
|
-
const typedDefaultSlotProps = defaultSlotProps;
|
|
9431
|
-
const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
|
|
9432
|
-
const className = clsx(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
9433
|
-
return {
|
|
9434
|
-
...defaultSlotProps,
|
|
9435
|
-
...externalSlotProps,
|
|
9436
|
-
...handlers,
|
|
9437
|
-
...!!className && {
|
|
9438
|
-
className
|
|
9439
|
-
},
|
|
9440
|
-
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.style) && (externalSlotProps == null ? void 0 : externalSlotProps.style) && {
|
|
9441
|
-
style: {
|
|
9442
|
-
...typedDefaultSlotProps.style,
|
|
9443
|
-
...externalSlotProps.style
|
|
9444
|
-
}
|
|
9445
|
-
},
|
|
9446
|
-
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.sx) && (externalSlotProps == null ? void 0 : externalSlotProps.sx) && {
|
|
9447
|
-
sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]]
|
|
9448
|
-
}
|
|
9449
|
-
};
|
|
9450
|
-
}
|
|
9451
9451
|
function getCollapseUtilityClass(slot) {
|
|
9452
9452
|
return generateUtilityClass("MuiCollapse", slot);
|
|
9453
9453
|
}
|
|
@@ -23159,6 +23159,34 @@ function formatBytes(bytes, decimals = 2) {
|
|
|
23159
23159
|
const i2 = Math.floor(Math.log(bytes) / Math.log(k));
|
|
23160
23160
|
return `${parseFloat((bytes / Math.pow(k, i2)).toFixed(dm))} ${sizes[i2]}`;
|
|
23161
23161
|
}
|
|
23162
|
+
function extent$1(values2, valueof) {
|
|
23163
|
+
let min;
|
|
23164
|
+
let max2;
|
|
23165
|
+
{
|
|
23166
|
+
for (const value of values2) {
|
|
23167
|
+
if (value != null) {
|
|
23168
|
+
if (min === void 0) {
|
|
23169
|
+
if (value >= value) min = max2 = value;
|
|
23170
|
+
} else {
|
|
23171
|
+
if (min > value) min = value;
|
|
23172
|
+
if (max2 < value) max2 = value;
|
|
23173
|
+
}
|
|
23174
|
+
}
|
|
23175
|
+
}
|
|
23176
|
+
}
|
|
23177
|
+
return [min, max2];
|
|
23178
|
+
}
|
|
23179
|
+
function max(values2, valueof) {
|
|
23180
|
+
let max2;
|
|
23181
|
+
{
|
|
23182
|
+
for (const value of values2) {
|
|
23183
|
+
if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
23184
|
+
max2 = value;
|
|
23185
|
+
}
|
|
23186
|
+
}
|
|
23187
|
+
}
|
|
23188
|
+
return max2;
|
|
23189
|
+
}
|
|
23162
23190
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
23163
23191
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
23164
23192
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -102927,7 +102955,7 @@ function clipExtent(x02, y02, x12, y12) {
|
|
|
102927
102955
|
return clipStream;
|
|
102928
102956
|
};
|
|
102929
102957
|
}
|
|
102930
|
-
function extent
|
|
102958
|
+
function extent() {
|
|
102931
102959
|
var x02 = 0, y02 = 0, x12 = 960, y12 = 500, cache2, cacheStream, clip2;
|
|
102932
102960
|
return clip2 = {
|
|
102933
102961
|
stream: function(stream) {
|
|
@@ -104261,7 +104289,7 @@ const d3Geo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
104261
104289
|
geoBounds: bounds,
|
|
104262
104290
|
geoCentroid: centroid,
|
|
104263
104291
|
geoCircle: circle$1,
|
|
104264
|
-
geoClipExtent: extent
|
|
104292
|
+
geoClipExtent: extent,
|
|
104265
104293
|
geoConicConformal: conicConformal,
|
|
104266
104294
|
geoConicConformalRaw: conicConformalRaw,
|
|
104267
104295
|
geoConicEqualArea: conicEqualArea,
|
|
@@ -128049,22 +128077,22 @@ function addDecoder(cases, importFn) {
|
|
|
128049
128077
|
}
|
|
128050
128078
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
128051
128079
|
}
|
|
128052
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
128053
|
-
addDecoder(5, () => import("./lzw-
|
|
128080
|
+
addDecoder([void 0, 1], () => import("./raw-BFPumaUX.js").then((m) => m.default));
|
|
128081
|
+
addDecoder(5, () => import("./lzw-M_vqTVu-.js").then((m) => m.default));
|
|
128054
128082
|
addDecoder(6, () => {
|
|
128055
128083
|
throw new Error("old style JPEG compression is not supported.");
|
|
128056
128084
|
});
|
|
128057
|
-
addDecoder(7, () => import("./jpeg-
|
|
128058
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
128059
|
-
addDecoder(32773, () => import("./packbits-
|
|
128085
|
+
addDecoder(7, () => import("./jpeg-hQE-vKZx.js").then((m) => m.default));
|
|
128086
|
+
addDecoder([8, 32946], () => import("./deflate-OdfZZTZp.js").then((m) => m.default));
|
|
128087
|
+
addDecoder(32773, () => import("./packbits-IpNEpfj-.js").then((m) => m.default));
|
|
128060
128088
|
addDecoder(
|
|
128061
128089
|
34887,
|
|
128062
|
-
() => import("./lerc-
|
|
128090
|
+
() => import("./lerc-D8kkwb9L.js").then(async (m) => {
|
|
128063
128091
|
await m.zstd.init();
|
|
128064
128092
|
return m;
|
|
128065
128093
|
}).then((m) => m.default)
|
|
128066
128094
|
);
|
|
128067
|
-
addDecoder(50001, () => import("./webimage-
|
|
128095
|
+
addDecoder(50001, () => import("./webimage-BMcShvoC.js").then((m) => m.default));
|
|
128068
128096
|
function decodeRowAcc(row, stride) {
|
|
128069
128097
|
let length2 = row.length - stride;
|
|
128070
128098
|
let offset2 = 0;
|
|
@@ -141702,36 +141730,8 @@ void main() {
|
|
|
141702
141730
|
DECKGL_FILTER_COLOR(gl_FragColor, geometry);
|
|
141703
141731
|
}
|
|
141704
141732
|
`;
|
|
141705
|
-
function extent(values2, valueof) {
|
|
141706
|
-
let min;
|
|
141707
|
-
let max2;
|
|
141708
|
-
{
|
|
141709
|
-
for (const value of values2) {
|
|
141710
|
-
if (value != null) {
|
|
141711
|
-
if (min === void 0) {
|
|
141712
|
-
if (value >= value) min = max2 = value;
|
|
141713
|
-
} else {
|
|
141714
|
-
if (min > value) min = value;
|
|
141715
|
-
if (max2 < value) max2 = value;
|
|
141716
|
-
}
|
|
141717
|
-
}
|
|
141718
|
-
}
|
|
141719
|
-
}
|
|
141720
|
-
return [min, max2];
|
|
141721
|
-
}
|
|
141722
|
-
function max(values2, valueof) {
|
|
141723
|
-
let max2;
|
|
141724
|
-
{
|
|
141725
|
-
for (const value of values2) {
|
|
141726
|
-
if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
141727
|
-
max2 = value;
|
|
141728
|
-
}
|
|
141729
|
-
}
|
|
141730
|
-
}
|
|
141731
|
-
return max2;
|
|
141732
|
-
}
|
|
141733
141733
|
function normalize(arr) {
|
|
141734
|
-
const [min, max2] = extent(arr);
|
|
141734
|
+
const [min, max2] = extent$1(arr);
|
|
141735
141735
|
const ratio = 255 / (max2 - min);
|
|
141736
141736
|
const data = new Uint8Array(arr.map((i2) => Math.floor((i2 - min) * ratio)));
|
|
141737
141737
|
return data;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-BW5Yclfb.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/layer-controller",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.13",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"math.gl": "^3.5.6",
|
|
21
21
|
"react-aria": "^3.28.0",
|
|
22
|
-
"@vitessce/
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/vit-s": "3.8.
|
|
22
|
+
"@vitessce/gl": "3.8.13",
|
|
23
|
+
"@vitessce/spatial-utils": "3.8.13",
|
|
24
|
+
"@vitessce/constants-internal": "3.8.13",
|
|
25
|
+
"@vitessce/utils": "3.8.13",
|
|
26
|
+
"@vitessce/styles": "3.8.13",
|
|
27
|
+
"@vitessce/vit-s": "3.8.13"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "18.3.1",
|