@vitessce/scatterplot-gating 3.8.10 → 3.9.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/{deflate-cHZ5BtL4.js → deflate-DFvh3sRR.js} +1 -1
- package/dist/{index-3JLSEmls.js → index-Cw0c_snb.js} +487 -480
- package/dist/index.js +1 -1
- package/dist/{jpeg-CmWYaDwo.js → jpeg-BLK-iI82.js} +1 -1
- package/dist/{lerc-xs2XgP1_.js → lerc-az5V_idT.js} +1 -1
- package/dist/{lzw-DWJkCyJc.js → lzw-BK56vC2q.js} +1 -1
- package/dist/{packbits-FBcM5Pu3.js → packbits-BcOtODLZ.js} +1 -1
- package/dist/{raw-CKB_LRT8.js → raw-CAGWrnbF.js} +1 -1
- package/dist/{webimage-lagAsDWD.js → webimage-B2OUU2hP.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-Cw0c_snb.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -9736,6 +9736,7 @@ const CoordinationType$1 = {
|
|
|
9736
9736
|
OBS_SET_HIGHLIGHT: "obsSetHighlight",
|
|
9737
9737
|
OBS_SET_EXPANSION: "obsSetExpansion",
|
|
9738
9738
|
OBS_SET_COLOR: "obsSetColor",
|
|
9739
|
+
FEATURE_COLOR: "featureColor",
|
|
9739
9740
|
FEATURE_HIGHLIGHT: "featureHighlight",
|
|
9740
9741
|
FEATURE_SELECTION: "featureSelection",
|
|
9741
9742
|
FEATURE_SET_SELECTION: "featureSetSelection",
|
|
@@ -9791,6 +9792,8 @@ const CoordinationType$1 = {
|
|
|
9791
9792
|
// Per-spatial-layer
|
|
9792
9793
|
SPATIAL_MAX_RESOLUTION: "spatialMaxResolution",
|
|
9793
9794
|
// Per-image-channel (for spatial-accelerated)
|
|
9795
|
+
SPATIAL_LOD_FACTOR: "spatialLodFactor",
|
|
9796
|
+
// LOD factor for 3D volume rendering
|
|
9794
9797
|
// For clipping plane sliders
|
|
9795
9798
|
SPATIAL_SLICE_X: "spatialSliceX",
|
|
9796
9799
|
SPATIAL_SLICE_Y: "spatialSliceY",
|
|
@@ -10311,6 +10314,8 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10311
10314
|
CoordinationType$1.OBS_SET_FILTER,
|
|
10312
10315
|
CoordinationType$1.OBS_SET_HIGHLIGHT,
|
|
10313
10316
|
CoordinationType$1.OBS_SET_COLOR,
|
|
10317
|
+
CoordinationType$1.FEATURE_COLOR,
|
|
10318
|
+
CoordinationType$1.FEATURE_FILTER_MODE,
|
|
10314
10319
|
CoordinationType$1.FEATURE_HIGHLIGHT,
|
|
10315
10320
|
CoordinationType$1.FEATURE_SELECTION,
|
|
10316
10321
|
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
|
@@ -10525,6 +10530,8 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10525
10530
|
CoordinationType$1.SPATIAL_SPOT_STROKE_WIDTH,
|
|
10526
10531
|
CoordinationType$1.SPATIAL_LAYER_COLOR,
|
|
10527
10532
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
10533
|
+
CoordinationType$1.FEATURE_COLOR,
|
|
10534
|
+
CoordinationType$1.FEATURE_FILTER_MODE,
|
|
10528
10535
|
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
|
10529
10536
|
CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
|
|
10530
10537
|
CoordinationType$1.FEATURE_SELECTION,
|
|
@@ -123149,22 +123156,22 @@ function addDecoder(cases, importFn) {
|
|
|
123149
123156
|
}
|
|
123150
123157
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
123151
123158
|
}
|
|
123152
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
123153
|
-
addDecoder(5, () => import("./lzw-
|
|
123159
|
+
addDecoder([void 0, 1], () => import("./raw-CAGWrnbF.js").then((m2) => m2.default));
|
|
123160
|
+
addDecoder(5, () => import("./lzw-BK56vC2q.js").then((m2) => m2.default));
|
|
123154
123161
|
addDecoder(6, () => {
|
|
123155
123162
|
throw new Error("old style JPEG compression is not supported.");
|
|
123156
123163
|
});
|
|
123157
|
-
addDecoder(7, () => import("./jpeg-
|
|
123158
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
123159
|
-
addDecoder(32773, () => import("./packbits-
|
|
123164
|
+
addDecoder(7, () => import("./jpeg-BLK-iI82.js").then((m2) => m2.default));
|
|
123165
|
+
addDecoder([8, 32946], () => import("./deflate-DFvh3sRR.js").then((m2) => m2.default));
|
|
123166
|
+
addDecoder(32773, () => import("./packbits-BcOtODLZ.js").then((m2) => m2.default));
|
|
123160
123167
|
addDecoder(
|
|
123161
123168
|
34887,
|
|
123162
|
-
() => import("./lerc-
|
|
123169
|
+
() => import("./lerc-az5V_idT.js").then(async (m2) => {
|
|
123163
123170
|
await m2.zstd.init();
|
|
123164
123171
|
return m2;
|
|
123165
123172
|
}).then((m2) => m2.default)
|
|
123166
123173
|
);
|
|
123167
|
-
addDecoder(50001, () => import("./webimage-
|
|
123174
|
+
addDecoder(50001, () => import("./webimage-B2OUU2hP.js").then((m2) => m2.default));
|
|
123168
123175
|
function decodeRowAcc(row, stride) {
|
|
123169
123176
|
let length2 = row.length - stride;
|
|
123170
123177
|
let offset2 = 0;
|
|
@@ -143316,10 +143323,17 @@ const { tss } = createTss({
|
|
|
143316
143323
|
"usePlugin": useMuiThemeStyleOverridesPlugin
|
|
143317
143324
|
});
|
|
143318
143325
|
const useStyles$3 = tss.create({});
|
|
143319
|
-
function
|
|
143320
|
-
return
|
|
143321
|
-
|
|
143322
|
-
|
|
143326
|
+
function createChainedFunction$1(...funcs) {
|
|
143327
|
+
return funcs.reduce((acc, func) => {
|
|
143328
|
+
if (func == null) {
|
|
143329
|
+
return acc;
|
|
143330
|
+
}
|
|
143331
|
+
return function chainedFunction(...args) {
|
|
143332
|
+
acc.apply(this, args);
|
|
143333
|
+
func.apply(this, args);
|
|
143334
|
+
};
|
|
143335
|
+
}, () => {
|
|
143336
|
+
});
|
|
143323
143337
|
}
|
|
143324
143338
|
function GlobalStyles(props) {
|
|
143325
143339
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalStyles$1, {
|
|
@@ -143369,6 +143383,468 @@ const memoTheme = unstable_memoTheme;
|
|
|
143369
143383
|
function useDefaultProps(params) {
|
|
143370
143384
|
return useDefaultProps$1(params);
|
|
143371
143385
|
}
|
|
143386
|
+
function getSvgIconUtilityClass(slot) {
|
|
143387
|
+
return generateUtilityClass("MuiSvgIcon", slot);
|
|
143388
|
+
}
|
|
143389
|
+
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
143390
|
+
const useUtilityClasses$o = (ownerState) => {
|
|
143391
|
+
const {
|
|
143392
|
+
color: color2,
|
|
143393
|
+
fontSize,
|
|
143394
|
+
classes
|
|
143395
|
+
} = ownerState;
|
|
143396
|
+
const slots = {
|
|
143397
|
+
root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`]
|
|
143398
|
+
};
|
|
143399
|
+
return composeClasses(slots, getSvgIconUtilityClass, classes);
|
|
143400
|
+
};
|
|
143401
|
+
const SvgIconRoot = styled("svg", {
|
|
143402
|
+
name: "MuiSvgIcon",
|
|
143403
|
+
slot: "Root",
|
|
143404
|
+
overridesResolver: (props, styles2) => {
|
|
143405
|
+
const {
|
|
143406
|
+
ownerState
|
|
143407
|
+
} = props;
|
|
143408
|
+
return [styles2.root, ownerState.color !== "inherit" && styles2[`color${capitalize(ownerState.color)}`], styles2[`fontSize${capitalize(ownerState.fontSize)}`]];
|
|
143409
|
+
}
|
|
143410
|
+
})(memoTheme(({
|
|
143411
|
+
theme
|
|
143412
|
+
}) => {
|
|
143413
|
+
var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
143414
|
+
return {
|
|
143415
|
+
userSelect: "none",
|
|
143416
|
+
width: "1em",
|
|
143417
|
+
height: "1em",
|
|
143418
|
+
display: "inline-block",
|
|
143419
|
+
flexShrink: 0,
|
|
143420
|
+
transition: (_d = (_a3 = theme.transitions) == null ? void 0 : _a3.create) == null ? void 0 : _d.call(_a3, "fill", {
|
|
143421
|
+
duration: (_c = (_b2 = (theme.vars ?? theme).transitions) == null ? void 0 : _b2.duration) == null ? void 0 : _c.shorter
|
|
143422
|
+
}),
|
|
143423
|
+
variants: [
|
|
143424
|
+
{
|
|
143425
|
+
props: (props) => !props.hasSvgAsChild,
|
|
143426
|
+
style: {
|
|
143427
|
+
// the <svg> will define the property that has `currentColor`
|
|
143428
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
143429
|
+
fill: "currentColor"
|
|
143430
|
+
}
|
|
143431
|
+
},
|
|
143432
|
+
{
|
|
143433
|
+
props: {
|
|
143434
|
+
fontSize: "inherit"
|
|
143435
|
+
},
|
|
143436
|
+
style: {
|
|
143437
|
+
fontSize: "inherit"
|
|
143438
|
+
}
|
|
143439
|
+
},
|
|
143440
|
+
{
|
|
143441
|
+
props: {
|
|
143442
|
+
fontSize: "small"
|
|
143443
|
+
},
|
|
143444
|
+
style: {
|
|
143445
|
+
fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
|
|
143446
|
+
}
|
|
143447
|
+
},
|
|
143448
|
+
{
|
|
143449
|
+
props: {
|
|
143450
|
+
fontSize: "medium"
|
|
143451
|
+
},
|
|
143452
|
+
style: {
|
|
143453
|
+
fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
|
|
143454
|
+
}
|
|
143455
|
+
},
|
|
143456
|
+
{
|
|
143457
|
+
props: {
|
|
143458
|
+
fontSize: "large"
|
|
143459
|
+
},
|
|
143460
|
+
style: {
|
|
143461
|
+
fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
|
|
143462
|
+
}
|
|
143463
|
+
},
|
|
143464
|
+
// TODO v5 deprecate color prop, v6 remove for sx
|
|
143465
|
+
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
|
|
143466
|
+
var _a4, _b3;
|
|
143467
|
+
return {
|
|
143468
|
+
props: {
|
|
143469
|
+
color: color2
|
|
143470
|
+
},
|
|
143471
|
+
style: {
|
|
143472
|
+
color: (_b3 = (_a4 = (theme.vars ?? theme).palette) == null ? void 0 : _a4[color2]) == null ? void 0 : _b3.main
|
|
143473
|
+
}
|
|
143474
|
+
};
|
|
143475
|
+
}),
|
|
143476
|
+
{
|
|
143477
|
+
props: {
|
|
143478
|
+
color: "action"
|
|
143479
|
+
},
|
|
143480
|
+
style: {
|
|
143481
|
+
color: (_l = (_k = (theme.vars ?? theme).palette) == null ? void 0 : _k.action) == null ? void 0 : _l.active
|
|
143482
|
+
}
|
|
143483
|
+
},
|
|
143484
|
+
{
|
|
143485
|
+
props: {
|
|
143486
|
+
color: "disabled"
|
|
143487
|
+
},
|
|
143488
|
+
style: {
|
|
143489
|
+
color: (_n = (_m = (theme.vars ?? theme).palette) == null ? void 0 : _m.action) == null ? void 0 : _n.disabled
|
|
143490
|
+
}
|
|
143491
|
+
},
|
|
143492
|
+
{
|
|
143493
|
+
props: {
|
|
143494
|
+
color: "inherit"
|
|
143495
|
+
},
|
|
143496
|
+
style: {
|
|
143497
|
+
color: void 0
|
|
143498
|
+
}
|
|
143499
|
+
}
|
|
143500
|
+
]
|
|
143501
|
+
};
|
|
143502
|
+
}));
|
|
143503
|
+
const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref) {
|
|
143504
|
+
const props = useDefaultProps({
|
|
143505
|
+
props: inProps,
|
|
143506
|
+
name: "MuiSvgIcon"
|
|
143507
|
+
});
|
|
143508
|
+
const {
|
|
143509
|
+
children,
|
|
143510
|
+
className,
|
|
143511
|
+
color: color2 = "inherit",
|
|
143512
|
+
component = "svg",
|
|
143513
|
+
fontSize = "medium",
|
|
143514
|
+
htmlColor,
|
|
143515
|
+
inheritViewBox = false,
|
|
143516
|
+
titleAccess,
|
|
143517
|
+
viewBox = "0 0 24 24",
|
|
143518
|
+
...other
|
|
143519
|
+
} = props;
|
|
143520
|
+
const hasSvgAsChild = /* @__PURE__ */ React.isValidElement(children) && children.type === "svg";
|
|
143521
|
+
const ownerState = {
|
|
143522
|
+
...props,
|
|
143523
|
+
color: color2,
|
|
143524
|
+
component,
|
|
143525
|
+
fontSize,
|
|
143526
|
+
instanceFontSize: inProps.fontSize,
|
|
143527
|
+
inheritViewBox,
|
|
143528
|
+
viewBox,
|
|
143529
|
+
hasSvgAsChild
|
|
143530
|
+
};
|
|
143531
|
+
const more = {};
|
|
143532
|
+
if (!inheritViewBox) {
|
|
143533
|
+
more.viewBox = viewBox;
|
|
143534
|
+
}
|
|
143535
|
+
const classes = useUtilityClasses$o(ownerState);
|
|
143536
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
|
|
143537
|
+
as: component,
|
|
143538
|
+
className: clsx(classes.root, className),
|
|
143539
|
+
focusable: "false",
|
|
143540
|
+
color: htmlColor,
|
|
143541
|
+
"aria-hidden": titleAccess ? void 0 : true,
|
|
143542
|
+
role: titleAccess ? "img" : void 0,
|
|
143543
|
+
ref,
|
|
143544
|
+
...more,
|
|
143545
|
+
...other,
|
|
143546
|
+
...hasSvgAsChild && children.props,
|
|
143547
|
+
ownerState,
|
|
143548
|
+
children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", {
|
|
143549
|
+
children: titleAccess
|
|
143550
|
+
}) : null]
|
|
143551
|
+
});
|
|
143552
|
+
});
|
|
143553
|
+
SvgIcon.propTypes = {
|
|
143554
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
143555
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
143556
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
143557
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
143558
|
+
/**
|
|
143559
|
+
* Node passed into the SVG element.
|
|
143560
|
+
*/
|
|
143561
|
+
children: PropTypes.node,
|
|
143562
|
+
/**
|
|
143563
|
+
* Override or extend the styles applied to the component.
|
|
143564
|
+
*/
|
|
143565
|
+
classes: PropTypes.object,
|
|
143566
|
+
/**
|
|
143567
|
+
* @ignore
|
|
143568
|
+
*/
|
|
143569
|
+
className: PropTypes.string,
|
|
143570
|
+
/**
|
|
143571
|
+
* The color of the component.
|
|
143572
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
143573
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
143574
|
+
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
143575
|
+
* @default 'inherit'
|
|
143576
|
+
*/
|
|
143577
|
+
color: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), PropTypes.string]),
|
|
143578
|
+
/**
|
|
143579
|
+
* The component used for the root node.
|
|
143580
|
+
* Either a string to use a HTML element or a component.
|
|
143581
|
+
*/
|
|
143582
|
+
component: PropTypes.elementType,
|
|
143583
|
+
/**
|
|
143584
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
143585
|
+
* @default 'medium'
|
|
143586
|
+
*/
|
|
143587
|
+
fontSize: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "large", "medium", "small"]), PropTypes.string]),
|
|
143588
|
+
/**
|
|
143589
|
+
* Applies a color attribute to the SVG element.
|
|
143590
|
+
*/
|
|
143591
|
+
htmlColor: PropTypes.string,
|
|
143592
|
+
/**
|
|
143593
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
143594
|
+
* prop will be ignored.
|
|
143595
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
143596
|
+
* `component`'s viewBox to the root node.
|
|
143597
|
+
* @default false
|
|
143598
|
+
*/
|
|
143599
|
+
inheritViewBox: PropTypes.bool,
|
|
143600
|
+
/**
|
|
143601
|
+
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
143602
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
|
|
143603
|
+
* If you are having issues with blurry icons you should investigate this prop.
|
|
143604
|
+
*/
|
|
143605
|
+
shapeRendering: PropTypes.string,
|
|
143606
|
+
/**
|
|
143607
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
143608
|
+
*/
|
|
143609
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
143610
|
+
/**
|
|
143611
|
+
* Provides a human-readable title for the element that contains it.
|
|
143612
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
143613
|
+
*/
|
|
143614
|
+
titleAccess: PropTypes.string,
|
|
143615
|
+
/**
|
|
143616
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
143617
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
143618
|
+
* and you pass viewBox="0 0 50 20",
|
|
143619
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
143620
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
|
143621
|
+
* @default '0 0 24 24'
|
|
143622
|
+
*/
|
|
143623
|
+
viewBox: PropTypes.string
|
|
143624
|
+
};
|
|
143625
|
+
SvgIcon.muiName = "SvgIcon";
|
|
143626
|
+
function createSvgIcon(path, displayName) {
|
|
143627
|
+
function Component2(props, ref) {
|
|
143628
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgIcon, {
|
|
143629
|
+
"data-testid": `${displayName}Icon`,
|
|
143630
|
+
ref,
|
|
143631
|
+
...props,
|
|
143632
|
+
children: path
|
|
143633
|
+
});
|
|
143634
|
+
}
|
|
143635
|
+
{
|
|
143636
|
+
Component2.displayName = `${displayName}Icon`;
|
|
143637
|
+
}
|
|
143638
|
+
Component2.muiName = SvgIcon.muiName;
|
|
143639
|
+
return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component2));
|
|
143640
|
+
}
|
|
143641
|
+
function debounce$1(func, wait = 166) {
|
|
143642
|
+
let timeout3;
|
|
143643
|
+
function debounced(...args) {
|
|
143644
|
+
const later = () => {
|
|
143645
|
+
func.apply(this, args);
|
|
143646
|
+
};
|
|
143647
|
+
clearTimeout(timeout3);
|
|
143648
|
+
timeout3 = setTimeout(later, wait);
|
|
143649
|
+
}
|
|
143650
|
+
debounced.clear = () => {
|
|
143651
|
+
clearTimeout(timeout3);
|
|
143652
|
+
};
|
|
143653
|
+
return debounced;
|
|
143654
|
+
}
|
|
143655
|
+
function ownerDocument(node2) {
|
|
143656
|
+
return node2 && node2.ownerDocument || document;
|
|
143657
|
+
}
|
|
143658
|
+
function ownerWindow(node2) {
|
|
143659
|
+
const doc = ownerDocument(node2);
|
|
143660
|
+
return doc.defaultView || window;
|
|
143661
|
+
}
|
|
143662
|
+
function setRef$1(ref, value) {
|
|
143663
|
+
if (typeof ref === "function") {
|
|
143664
|
+
ref(value);
|
|
143665
|
+
} else if (ref) {
|
|
143666
|
+
ref.current = value;
|
|
143667
|
+
}
|
|
143668
|
+
}
|
|
143669
|
+
let globalId = 0;
|
|
143670
|
+
function useGlobalId(idOverride) {
|
|
143671
|
+
const [defaultId, setDefaultId] = React.useState(idOverride);
|
|
143672
|
+
const id = idOverride || defaultId;
|
|
143673
|
+
React.useEffect(() => {
|
|
143674
|
+
if (defaultId == null) {
|
|
143675
|
+
globalId += 1;
|
|
143676
|
+
setDefaultId(`mui-${globalId}`);
|
|
143677
|
+
}
|
|
143678
|
+
}, [defaultId]);
|
|
143679
|
+
return id;
|
|
143680
|
+
}
|
|
143681
|
+
const safeReact = {
|
|
143682
|
+
...React
|
|
143683
|
+
};
|
|
143684
|
+
const maybeReactUseId = safeReact.useId;
|
|
143685
|
+
function useId(idOverride) {
|
|
143686
|
+
if (maybeReactUseId !== void 0) {
|
|
143687
|
+
const reactId = maybeReactUseId();
|
|
143688
|
+
return idOverride ?? reactId;
|
|
143689
|
+
}
|
|
143690
|
+
return useGlobalId(idOverride);
|
|
143691
|
+
}
|
|
143692
|
+
function useControlled(props) {
|
|
143693
|
+
const {
|
|
143694
|
+
controlled,
|
|
143695
|
+
default: defaultProp,
|
|
143696
|
+
name: name2,
|
|
143697
|
+
state = "value"
|
|
143698
|
+
} = props;
|
|
143699
|
+
const {
|
|
143700
|
+
current: isControlled
|
|
143701
|
+
} = React.useRef(controlled !== void 0);
|
|
143702
|
+
const [valueState, setValue] = React.useState(defaultProp);
|
|
143703
|
+
const value = isControlled ? controlled : valueState;
|
|
143704
|
+
{
|
|
143705
|
+
React.useEffect(() => {
|
|
143706
|
+
if (isControlled !== (controlled !== void 0)) {
|
|
143707
|
+
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"));
|
|
143708
|
+
}
|
|
143709
|
+
}, [state, name2, controlled]);
|
|
143710
|
+
const {
|
|
143711
|
+
current: defaultValue2
|
|
143712
|
+
} = React.useRef(defaultProp);
|
|
143713
|
+
React.useEffect(() => {
|
|
143714
|
+
if (!isControlled && !Object.is(defaultValue2, defaultProp)) {
|
|
143715
|
+
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"));
|
|
143716
|
+
}
|
|
143717
|
+
}, [JSON.stringify(defaultProp)]);
|
|
143718
|
+
}
|
|
143719
|
+
const setValueIfUncontrolled = React.useCallback((newValue) => {
|
|
143720
|
+
if (!isControlled) {
|
|
143721
|
+
setValue(newValue);
|
|
143722
|
+
}
|
|
143723
|
+
}, []);
|
|
143724
|
+
return [value, setValueIfUncontrolled];
|
|
143725
|
+
}
|
|
143726
|
+
function useEventCallback(fn) {
|
|
143727
|
+
const ref = React.useRef(fn);
|
|
143728
|
+
useEnhancedEffect$1(() => {
|
|
143729
|
+
ref.current = fn;
|
|
143730
|
+
});
|
|
143731
|
+
return React.useRef((...args) => (
|
|
143732
|
+
// @ts-expect-error hide `this`
|
|
143733
|
+
(0, ref.current)(...args)
|
|
143734
|
+
)).current;
|
|
143735
|
+
}
|
|
143736
|
+
function useForkRef$1(...refs) {
|
|
143737
|
+
const cleanupRef = React.useRef(void 0);
|
|
143738
|
+
const refEffect = React.useCallback((instance) => {
|
|
143739
|
+
const cleanups = refs.map((ref) => {
|
|
143740
|
+
if (ref == null) {
|
|
143741
|
+
return null;
|
|
143742
|
+
}
|
|
143743
|
+
if (typeof ref === "function") {
|
|
143744
|
+
const refCallback = ref;
|
|
143745
|
+
const refCleanup = refCallback(instance);
|
|
143746
|
+
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
143747
|
+
refCallback(null);
|
|
143748
|
+
};
|
|
143749
|
+
}
|
|
143750
|
+
ref.current = instance;
|
|
143751
|
+
return () => {
|
|
143752
|
+
ref.current = null;
|
|
143753
|
+
};
|
|
143754
|
+
});
|
|
143755
|
+
return () => {
|
|
143756
|
+
cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
|
|
143757
|
+
};
|
|
143758
|
+
}, refs);
|
|
143759
|
+
return React.useMemo(() => {
|
|
143760
|
+
if (refs.every((ref) => ref == null)) {
|
|
143761
|
+
return null;
|
|
143762
|
+
}
|
|
143763
|
+
return (value) => {
|
|
143764
|
+
if (cleanupRef.current) {
|
|
143765
|
+
cleanupRef.current();
|
|
143766
|
+
cleanupRef.current = void 0;
|
|
143767
|
+
}
|
|
143768
|
+
if (value != null) {
|
|
143769
|
+
cleanupRef.current = refEffect(value);
|
|
143770
|
+
}
|
|
143771
|
+
};
|
|
143772
|
+
}, refs);
|
|
143773
|
+
}
|
|
143774
|
+
function isEventHandler(key, value) {
|
|
143775
|
+
const thirdCharCode = key.charCodeAt(2);
|
|
143776
|
+
return key[0] === "o" && key[1] === "n" && thirdCharCode >= 65 && thirdCharCode <= 90 && typeof value === "function";
|
|
143777
|
+
}
|
|
143778
|
+
function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
143779
|
+
if (!externalSlotProps) {
|
|
143780
|
+
return defaultSlotProps;
|
|
143781
|
+
}
|
|
143782
|
+
function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {
|
|
143783
|
+
const handlers2 = {};
|
|
143784
|
+
Object.keys(defaultSlotPropsValue).forEach((key) => {
|
|
143785
|
+
if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === "function") {
|
|
143786
|
+
handlers2[key] = (...args) => {
|
|
143787
|
+
externalSlotPropsValue[key](...args);
|
|
143788
|
+
defaultSlotPropsValue[key](...args);
|
|
143789
|
+
};
|
|
143790
|
+
}
|
|
143791
|
+
});
|
|
143792
|
+
return handlers2;
|
|
143793
|
+
}
|
|
143794
|
+
if (typeof externalSlotProps === "function" || typeof defaultSlotProps === "function") {
|
|
143795
|
+
return (ownerState) => {
|
|
143796
|
+
const defaultSlotPropsValue = typeof defaultSlotProps === "function" ? defaultSlotProps(ownerState) : defaultSlotProps;
|
|
143797
|
+
const externalSlotPropsValue = typeof externalSlotProps === "function" ? externalSlotProps({
|
|
143798
|
+
...ownerState,
|
|
143799
|
+
...defaultSlotPropsValue
|
|
143800
|
+
}) : externalSlotProps;
|
|
143801
|
+
const className2 = clsx(ownerState == null ? void 0 : ownerState.className, defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.className, externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.className);
|
|
143802
|
+
const handlers2 = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
|
|
143803
|
+
return {
|
|
143804
|
+
...defaultSlotPropsValue,
|
|
143805
|
+
...externalSlotPropsValue,
|
|
143806
|
+
...handlers2,
|
|
143807
|
+
...!!className2 && {
|
|
143808
|
+
className: className2
|
|
143809
|
+
},
|
|
143810
|
+
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.style) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.style) && {
|
|
143811
|
+
style: {
|
|
143812
|
+
...defaultSlotPropsValue.style,
|
|
143813
|
+
...externalSlotPropsValue.style
|
|
143814
|
+
}
|
|
143815
|
+
},
|
|
143816
|
+
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.sx) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.sx) && {
|
|
143817
|
+
sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]]
|
|
143818
|
+
}
|
|
143819
|
+
};
|
|
143820
|
+
};
|
|
143821
|
+
}
|
|
143822
|
+
const typedDefaultSlotProps = defaultSlotProps;
|
|
143823
|
+
const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
|
|
143824
|
+
const className = clsx(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
143825
|
+
return {
|
|
143826
|
+
...defaultSlotProps,
|
|
143827
|
+
...externalSlotProps,
|
|
143828
|
+
...handlers,
|
|
143829
|
+
...!!className && {
|
|
143830
|
+
className
|
|
143831
|
+
},
|
|
143832
|
+
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.style) && (externalSlotProps == null ? void 0 : externalSlotProps.style) && {
|
|
143833
|
+
style: {
|
|
143834
|
+
...typedDefaultSlotProps.style,
|
|
143835
|
+
...externalSlotProps.style
|
|
143836
|
+
}
|
|
143837
|
+
},
|
|
143838
|
+
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.sx) && (externalSlotProps == null ? void 0 : externalSlotProps.sx) && {
|
|
143839
|
+
sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]]
|
|
143840
|
+
}
|
|
143841
|
+
};
|
|
143842
|
+
}
|
|
143843
|
+
function chainPropTypes(propType1, propType2) {
|
|
143844
|
+
return function validate2(...args) {
|
|
143845
|
+
return propType1(...args) || propType2(...args);
|
|
143846
|
+
};
|
|
143847
|
+
}
|
|
143372
143848
|
function _extends$1() {
|
|
143373
143849
|
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
143374
143850
|
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
@@ -144153,475 +144629,6 @@ function getTransitionProps(props, options) {
|
|
|
144153
144629
|
delay: style2.transitionDelay
|
|
144154
144630
|
};
|
|
144155
144631
|
}
|
|
144156
|
-
function createChainedFunction$1(...funcs) {
|
|
144157
|
-
return funcs.reduce((acc, func) => {
|
|
144158
|
-
if (func == null) {
|
|
144159
|
-
return acc;
|
|
144160
|
-
}
|
|
144161
|
-
return function chainedFunction(...args) {
|
|
144162
|
-
acc.apply(this, args);
|
|
144163
|
-
func.apply(this, args);
|
|
144164
|
-
};
|
|
144165
|
-
}, () => {
|
|
144166
|
-
});
|
|
144167
|
-
}
|
|
144168
|
-
function getSvgIconUtilityClass(slot) {
|
|
144169
|
-
return generateUtilityClass("MuiSvgIcon", slot);
|
|
144170
|
-
}
|
|
144171
|
-
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
144172
|
-
const useUtilityClasses$o = (ownerState) => {
|
|
144173
|
-
const {
|
|
144174
|
-
color: color2,
|
|
144175
|
-
fontSize,
|
|
144176
|
-
classes
|
|
144177
|
-
} = ownerState;
|
|
144178
|
-
const slots = {
|
|
144179
|
-
root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`]
|
|
144180
|
-
};
|
|
144181
|
-
return composeClasses(slots, getSvgIconUtilityClass, classes);
|
|
144182
|
-
};
|
|
144183
|
-
const SvgIconRoot = styled("svg", {
|
|
144184
|
-
name: "MuiSvgIcon",
|
|
144185
|
-
slot: "Root",
|
|
144186
|
-
overridesResolver: (props, styles2) => {
|
|
144187
|
-
const {
|
|
144188
|
-
ownerState
|
|
144189
|
-
} = props;
|
|
144190
|
-
return [styles2.root, ownerState.color !== "inherit" && styles2[`color${capitalize(ownerState.color)}`], styles2[`fontSize${capitalize(ownerState.fontSize)}`]];
|
|
144191
|
-
}
|
|
144192
|
-
})(memoTheme(({
|
|
144193
|
-
theme
|
|
144194
|
-
}) => {
|
|
144195
|
-
var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
144196
|
-
return {
|
|
144197
|
-
userSelect: "none",
|
|
144198
|
-
width: "1em",
|
|
144199
|
-
height: "1em",
|
|
144200
|
-
display: "inline-block",
|
|
144201
|
-
flexShrink: 0,
|
|
144202
|
-
transition: (_d = (_a3 = theme.transitions) == null ? void 0 : _a3.create) == null ? void 0 : _d.call(_a3, "fill", {
|
|
144203
|
-
duration: (_c = (_b2 = (theme.vars ?? theme).transitions) == null ? void 0 : _b2.duration) == null ? void 0 : _c.shorter
|
|
144204
|
-
}),
|
|
144205
|
-
variants: [
|
|
144206
|
-
{
|
|
144207
|
-
props: (props) => !props.hasSvgAsChild,
|
|
144208
|
-
style: {
|
|
144209
|
-
// the <svg> will define the property that has `currentColor`
|
|
144210
|
-
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
144211
|
-
fill: "currentColor"
|
|
144212
|
-
}
|
|
144213
|
-
},
|
|
144214
|
-
{
|
|
144215
|
-
props: {
|
|
144216
|
-
fontSize: "inherit"
|
|
144217
|
-
},
|
|
144218
|
-
style: {
|
|
144219
|
-
fontSize: "inherit"
|
|
144220
|
-
}
|
|
144221
|
-
},
|
|
144222
|
-
{
|
|
144223
|
-
props: {
|
|
144224
|
-
fontSize: "small"
|
|
144225
|
-
},
|
|
144226
|
-
style: {
|
|
144227
|
-
fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
|
|
144228
|
-
}
|
|
144229
|
-
},
|
|
144230
|
-
{
|
|
144231
|
-
props: {
|
|
144232
|
-
fontSize: "medium"
|
|
144233
|
-
},
|
|
144234
|
-
style: {
|
|
144235
|
-
fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
|
|
144236
|
-
}
|
|
144237
|
-
},
|
|
144238
|
-
{
|
|
144239
|
-
props: {
|
|
144240
|
-
fontSize: "large"
|
|
144241
|
-
},
|
|
144242
|
-
style: {
|
|
144243
|
-
fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
|
|
144244
|
-
}
|
|
144245
|
-
},
|
|
144246
|
-
// TODO v5 deprecate color prop, v6 remove for sx
|
|
144247
|
-
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
|
|
144248
|
-
var _a4, _b3;
|
|
144249
|
-
return {
|
|
144250
|
-
props: {
|
|
144251
|
-
color: color2
|
|
144252
|
-
},
|
|
144253
|
-
style: {
|
|
144254
|
-
color: (_b3 = (_a4 = (theme.vars ?? theme).palette) == null ? void 0 : _a4[color2]) == null ? void 0 : _b3.main
|
|
144255
|
-
}
|
|
144256
|
-
};
|
|
144257
|
-
}),
|
|
144258
|
-
{
|
|
144259
|
-
props: {
|
|
144260
|
-
color: "action"
|
|
144261
|
-
},
|
|
144262
|
-
style: {
|
|
144263
|
-
color: (_l = (_k = (theme.vars ?? theme).palette) == null ? void 0 : _k.action) == null ? void 0 : _l.active
|
|
144264
|
-
}
|
|
144265
|
-
},
|
|
144266
|
-
{
|
|
144267
|
-
props: {
|
|
144268
|
-
color: "disabled"
|
|
144269
|
-
},
|
|
144270
|
-
style: {
|
|
144271
|
-
color: (_n = (_m = (theme.vars ?? theme).palette) == null ? void 0 : _m.action) == null ? void 0 : _n.disabled
|
|
144272
|
-
}
|
|
144273
|
-
},
|
|
144274
|
-
{
|
|
144275
|
-
props: {
|
|
144276
|
-
color: "inherit"
|
|
144277
|
-
},
|
|
144278
|
-
style: {
|
|
144279
|
-
color: void 0
|
|
144280
|
-
}
|
|
144281
|
-
}
|
|
144282
|
-
]
|
|
144283
|
-
};
|
|
144284
|
-
}));
|
|
144285
|
-
const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref) {
|
|
144286
|
-
const props = useDefaultProps({
|
|
144287
|
-
props: inProps,
|
|
144288
|
-
name: "MuiSvgIcon"
|
|
144289
|
-
});
|
|
144290
|
-
const {
|
|
144291
|
-
children,
|
|
144292
|
-
className,
|
|
144293
|
-
color: color2 = "inherit",
|
|
144294
|
-
component = "svg",
|
|
144295
|
-
fontSize = "medium",
|
|
144296
|
-
htmlColor,
|
|
144297
|
-
inheritViewBox = false,
|
|
144298
|
-
titleAccess,
|
|
144299
|
-
viewBox = "0 0 24 24",
|
|
144300
|
-
...other
|
|
144301
|
-
} = props;
|
|
144302
|
-
const hasSvgAsChild = /* @__PURE__ */ React.isValidElement(children) && children.type === "svg";
|
|
144303
|
-
const ownerState = {
|
|
144304
|
-
...props,
|
|
144305
|
-
color: color2,
|
|
144306
|
-
component,
|
|
144307
|
-
fontSize,
|
|
144308
|
-
instanceFontSize: inProps.fontSize,
|
|
144309
|
-
inheritViewBox,
|
|
144310
|
-
viewBox,
|
|
144311
|
-
hasSvgAsChild
|
|
144312
|
-
};
|
|
144313
|
-
const more = {};
|
|
144314
|
-
if (!inheritViewBox) {
|
|
144315
|
-
more.viewBox = viewBox;
|
|
144316
|
-
}
|
|
144317
|
-
const classes = useUtilityClasses$o(ownerState);
|
|
144318
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
|
|
144319
|
-
as: component,
|
|
144320
|
-
className: clsx(classes.root, className),
|
|
144321
|
-
focusable: "false",
|
|
144322
|
-
color: htmlColor,
|
|
144323
|
-
"aria-hidden": titleAccess ? void 0 : true,
|
|
144324
|
-
role: titleAccess ? "img" : void 0,
|
|
144325
|
-
ref,
|
|
144326
|
-
...more,
|
|
144327
|
-
...other,
|
|
144328
|
-
...hasSvgAsChild && children.props,
|
|
144329
|
-
ownerState,
|
|
144330
|
-
children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", {
|
|
144331
|
-
children: titleAccess
|
|
144332
|
-
}) : null]
|
|
144333
|
-
});
|
|
144334
|
-
});
|
|
144335
|
-
SvgIcon.propTypes = {
|
|
144336
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
144337
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
144338
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
144339
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
144340
|
-
/**
|
|
144341
|
-
* Node passed into the SVG element.
|
|
144342
|
-
*/
|
|
144343
|
-
children: PropTypes.node,
|
|
144344
|
-
/**
|
|
144345
|
-
* Override or extend the styles applied to the component.
|
|
144346
|
-
*/
|
|
144347
|
-
classes: PropTypes.object,
|
|
144348
|
-
/**
|
|
144349
|
-
* @ignore
|
|
144350
|
-
*/
|
|
144351
|
-
className: PropTypes.string,
|
|
144352
|
-
/**
|
|
144353
|
-
* The color of the component.
|
|
144354
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
144355
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
144356
|
-
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
144357
|
-
* @default 'inherit'
|
|
144358
|
-
*/
|
|
144359
|
-
color: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), PropTypes.string]),
|
|
144360
|
-
/**
|
|
144361
|
-
* The component used for the root node.
|
|
144362
|
-
* Either a string to use a HTML element or a component.
|
|
144363
|
-
*/
|
|
144364
|
-
component: PropTypes.elementType,
|
|
144365
|
-
/**
|
|
144366
|
-
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
144367
|
-
* @default 'medium'
|
|
144368
|
-
*/
|
|
144369
|
-
fontSize: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "large", "medium", "small"]), PropTypes.string]),
|
|
144370
|
-
/**
|
|
144371
|
-
* Applies a color attribute to the SVG element.
|
|
144372
|
-
*/
|
|
144373
|
-
htmlColor: PropTypes.string,
|
|
144374
|
-
/**
|
|
144375
|
-
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
144376
|
-
* prop will be ignored.
|
|
144377
|
-
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
144378
|
-
* `component`'s viewBox to the root node.
|
|
144379
|
-
* @default false
|
|
144380
|
-
*/
|
|
144381
|
-
inheritViewBox: PropTypes.bool,
|
|
144382
|
-
/**
|
|
144383
|
-
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
144384
|
-
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
|
|
144385
|
-
* If you are having issues with blurry icons you should investigate this prop.
|
|
144386
|
-
*/
|
|
144387
|
-
shapeRendering: PropTypes.string,
|
|
144388
|
-
/**
|
|
144389
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
144390
|
-
*/
|
|
144391
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
144392
|
-
/**
|
|
144393
|
-
* Provides a human-readable title for the element that contains it.
|
|
144394
|
-
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
144395
|
-
*/
|
|
144396
|
-
titleAccess: PropTypes.string,
|
|
144397
|
-
/**
|
|
144398
|
-
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
144399
|
-
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
144400
|
-
* and you pass viewBox="0 0 50 20",
|
|
144401
|
-
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
144402
|
-
* to bottom right (50,20) and each unit will be worth 10px.
|
|
144403
|
-
* @default '0 0 24 24'
|
|
144404
|
-
*/
|
|
144405
|
-
viewBox: PropTypes.string
|
|
144406
|
-
};
|
|
144407
|
-
SvgIcon.muiName = "SvgIcon";
|
|
144408
|
-
function createSvgIcon(path, displayName) {
|
|
144409
|
-
function Component2(props, ref) {
|
|
144410
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgIcon, {
|
|
144411
|
-
"data-testid": `${displayName}Icon`,
|
|
144412
|
-
ref,
|
|
144413
|
-
...props,
|
|
144414
|
-
children: path
|
|
144415
|
-
});
|
|
144416
|
-
}
|
|
144417
|
-
{
|
|
144418
|
-
Component2.displayName = `${displayName}Icon`;
|
|
144419
|
-
}
|
|
144420
|
-
Component2.muiName = SvgIcon.muiName;
|
|
144421
|
-
return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component2));
|
|
144422
|
-
}
|
|
144423
|
-
function debounce$1(func, wait = 166) {
|
|
144424
|
-
let timeout3;
|
|
144425
|
-
function debounced(...args) {
|
|
144426
|
-
const later = () => {
|
|
144427
|
-
func.apply(this, args);
|
|
144428
|
-
};
|
|
144429
|
-
clearTimeout(timeout3);
|
|
144430
|
-
timeout3 = setTimeout(later, wait);
|
|
144431
|
-
}
|
|
144432
|
-
debounced.clear = () => {
|
|
144433
|
-
clearTimeout(timeout3);
|
|
144434
|
-
};
|
|
144435
|
-
return debounced;
|
|
144436
|
-
}
|
|
144437
|
-
function ownerDocument(node2) {
|
|
144438
|
-
return node2 && node2.ownerDocument || document;
|
|
144439
|
-
}
|
|
144440
|
-
function ownerWindow(node2) {
|
|
144441
|
-
const doc = ownerDocument(node2);
|
|
144442
|
-
return doc.defaultView || window;
|
|
144443
|
-
}
|
|
144444
|
-
function setRef$1(ref, value) {
|
|
144445
|
-
if (typeof ref === "function") {
|
|
144446
|
-
ref(value);
|
|
144447
|
-
} else if (ref) {
|
|
144448
|
-
ref.current = value;
|
|
144449
|
-
}
|
|
144450
|
-
}
|
|
144451
|
-
let globalId = 0;
|
|
144452
|
-
function useGlobalId(idOverride) {
|
|
144453
|
-
const [defaultId, setDefaultId] = React.useState(idOverride);
|
|
144454
|
-
const id = idOverride || defaultId;
|
|
144455
|
-
React.useEffect(() => {
|
|
144456
|
-
if (defaultId == null) {
|
|
144457
|
-
globalId += 1;
|
|
144458
|
-
setDefaultId(`mui-${globalId}`);
|
|
144459
|
-
}
|
|
144460
|
-
}, [defaultId]);
|
|
144461
|
-
return id;
|
|
144462
|
-
}
|
|
144463
|
-
const safeReact = {
|
|
144464
|
-
...React
|
|
144465
|
-
};
|
|
144466
|
-
const maybeReactUseId = safeReact.useId;
|
|
144467
|
-
function useId(idOverride) {
|
|
144468
|
-
if (maybeReactUseId !== void 0) {
|
|
144469
|
-
const reactId = maybeReactUseId();
|
|
144470
|
-
return idOverride ?? reactId;
|
|
144471
|
-
}
|
|
144472
|
-
return useGlobalId(idOverride);
|
|
144473
|
-
}
|
|
144474
|
-
function useControlled(props) {
|
|
144475
|
-
const {
|
|
144476
|
-
controlled,
|
|
144477
|
-
default: defaultProp,
|
|
144478
|
-
name: name2,
|
|
144479
|
-
state = "value"
|
|
144480
|
-
} = props;
|
|
144481
|
-
const {
|
|
144482
|
-
current: isControlled
|
|
144483
|
-
} = React.useRef(controlled !== void 0);
|
|
144484
|
-
const [valueState, setValue] = React.useState(defaultProp);
|
|
144485
|
-
const value = isControlled ? controlled : valueState;
|
|
144486
|
-
{
|
|
144487
|
-
React.useEffect(() => {
|
|
144488
|
-
if (isControlled !== (controlled !== void 0)) {
|
|
144489
|
-
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"));
|
|
144490
|
-
}
|
|
144491
|
-
}, [state, name2, controlled]);
|
|
144492
|
-
const {
|
|
144493
|
-
current: defaultValue2
|
|
144494
|
-
} = React.useRef(defaultProp);
|
|
144495
|
-
React.useEffect(() => {
|
|
144496
|
-
if (!isControlled && !Object.is(defaultValue2, defaultProp)) {
|
|
144497
|
-
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"));
|
|
144498
|
-
}
|
|
144499
|
-
}, [JSON.stringify(defaultProp)]);
|
|
144500
|
-
}
|
|
144501
|
-
const setValueIfUncontrolled = React.useCallback((newValue) => {
|
|
144502
|
-
if (!isControlled) {
|
|
144503
|
-
setValue(newValue);
|
|
144504
|
-
}
|
|
144505
|
-
}, []);
|
|
144506
|
-
return [value, setValueIfUncontrolled];
|
|
144507
|
-
}
|
|
144508
|
-
function useEventCallback(fn) {
|
|
144509
|
-
const ref = React.useRef(fn);
|
|
144510
|
-
useEnhancedEffect$1(() => {
|
|
144511
|
-
ref.current = fn;
|
|
144512
|
-
});
|
|
144513
|
-
return React.useRef((...args) => (
|
|
144514
|
-
// @ts-expect-error hide `this`
|
|
144515
|
-
(0, ref.current)(...args)
|
|
144516
|
-
)).current;
|
|
144517
|
-
}
|
|
144518
|
-
function useForkRef$1(...refs) {
|
|
144519
|
-
const cleanupRef = React.useRef(void 0);
|
|
144520
|
-
const refEffect = React.useCallback((instance) => {
|
|
144521
|
-
const cleanups = refs.map((ref) => {
|
|
144522
|
-
if (ref == null) {
|
|
144523
|
-
return null;
|
|
144524
|
-
}
|
|
144525
|
-
if (typeof ref === "function") {
|
|
144526
|
-
const refCallback = ref;
|
|
144527
|
-
const refCleanup = refCallback(instance);
|
|
144528
|
-
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
144529
|
-
refCallback(null);
|
|
144530
|
-
};
|
|
144531
|
-
}
|
|
144532
|
-
ref.current = instance;
|
|
144533
|
-
return () => {
|
|
144534
|
-
ref.current = null;
|
|
144535
|
-
};
|
|
144536
|
-
});
|
|
144537
|
-
return () => {
|
|
144538
|
-
cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
|
|
144539
|
-
};
|
|
144540
|
-
}, refs);
|
|
144541
|
-
return React.useMemo(() => {
|
|
144542
|
-
if (refs.every((ref) => ref == null)) {
|
|
144543
|
-
return null;
|
|
144544
|
-
}
|
|
144545
|
-
return (value) => {
|
|
144546
|
-
if (cleanupRef.current) {
|
|
144547
|
-
cleanupRef.current();
|
|
144548
|
-
cleanupRef.current = void 0;
|
|
144549
|
-
}
|
|
144550
|
-
if (value != null) {
|
|
144551
|
-
cleanupRef.current = refEffect(value);
|
|
144552
|
-
}
|
|
144553
|
-
};
|
|
144554
|
-
}, refs);
|
|
144555
|
-
}
|
|
144556
|
-
function isEventHandler(key, value) {
|
|
144557
|
-
const thirdCharCode = key.charCodeAt(2);
|
|
144558
|
-
return key[0] === "o" && key[1] === "n" && thirdCharCode >= 65 && thirdCharCode <= 90 && typeof value === "function";
|
|
144559
|
-
}
|
|
144560
|
-
function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
144561
|
-
if (!externalSlotProps) {
|
|
144562
|
-
return defaultSlotProps;
|
|
144563
|
-
}
|
|
144564
|
-
function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {
|
|
144565
|
-
const handlers2 = {};
|
|
144566
|
-
Object.keys(defaultSlotPropsValue).forEach((key) => {
|
|
144567
|
-
if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === "function") {
|
|
144568
|
-
handlers2[key] = (...args) => {
|
|
144569
|
-
externalSlotPropsValue[key](...args);
|
|
144570
|
-
defaultSlotPropsValue[key](...args);
|
|
144571
|
-
};
|
|
144572
|
-
}
|
|
144573
|
-
});
|
|
144574
|
-
return handlers2;
|
|
144575
|
-
}
|
|
144576
|
-
if (typeof externalSlotProps === "function" || typeof defaultSlotProps === "function") {
|
|
144577
|
-
return (ownerState) => {
|
|
144578
|
-
const defaultSlotPropsValue = typeof defaultSlotProps === "function" ? defaultSlotProps(ownerState) : defaultSlotProps;
|
|
144579
|
-
const externalSlotPropsValue = typeof externalSlotProps === "function" ? externalSlotProps({
|
|
144580
|
-
...ownerState,
|
|
144581
|
-
...defaultSlotPropsValue
|
|
144582
|
-
}) : externalSlotProps;
|
|
144583
|
-
const className2 = clsx(ownerState == null ? void 0 : ownerState.className, defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.className, externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.className);
|
|
144584
|
-
const handlers2 = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
|
|
144585
|
-
return {
|
|
144586
|
-
...defaultSlotPropsValue,
|
|
144587
|
-
...externalSlotPropsValue,
|
|
144588
|
-
...handlers2,
|
|
144589
|
-
...!!className2 && {
|
|
144590
|
-
className: className2
|
|
144591
|
-
},
|
|
144592
|
-
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.style) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.style) && {
|
|
144593
|
-
style: {
|
|
144594
|
-
...defaultSlotPropsValue.style,
|
|
144595
|
-
...externalSlotPropsValue.style
|
|
144596
|
-
}
|
|
144597
|
-
},
|
|
144598
|
-
...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.sx) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.sx) && {
|
|
144599
|
-
sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]]
|
|
144600
|
-
}
|
|
144601
|
-
};
|
|
144602
|
-
};
|
|
144603
|
-
}
|
|
144604
|
-
const typedDefaultSlotProps = defaultSlotProps;
|
|
144605
|
-
const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
|
|
144606
|
-
const className = clsx(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
144607
|
-
return {
|
|
144608
|
-
...defaultSlotProps,
|
|
144609
|
-
...externalSlotProps,
|
|
144610
|
-
...handlers,
|
|
144611
|
-
...!!className && {
|
|
144612
|
-
className
|
|
144613
|
-
},
|
|
144614
|
-
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.style) && (externalSlotProps == null ? void 0 : externalSlotProps.style) && {
|
|
144615
|
-
style: {
|
|
144616
|
-
...typedDefaultSlotProps.style,
|
|
144617
|
-
...externalSlotProps.style
|
|
144618
|
-
}
|
|
144619
|
-
},
|
|
144620
|
-
...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.sx) && (externalSlotProps == null ? void 0 : externalSlotProps.sx) && {
|
|
144621
|
-
sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]]
|
|
144622
|
-
}
|
|
144623
|
-
};
|
|
144624
|
-
}
|
|
144625
144632
|
function getTypeByValue(value) {
|
|
144626
144633
|
const valueType = typeof value;
|
|
144627
144634
|
switch (valueType) {
|
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-Cw0c_snb.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/scatterplot-gating",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"react-aria": "^3.28.0",
|
|
22
|
-
"@vitessce/styles": "3.
|
|
23
|
-
"@vitessce/constants-internal": "3.
|
|
24
|
-
"@vitessce/scatterplot": "3.
|
|
25
|
-
"@vitessce/sets-utils": "3.
|
|
26
|
-
"@vitessce/utils": "3.
|
|
27
|
-
"@vitessce/vit-s": "3.
|
|
22
|
+
"@vitessce/styles": "3.9.0",
|
|
23
|
+
"@vitessce/constants-internal": "3.9.0",
|
|
24
|
+
"@vitessce/scatterplot": "3.9.0",
|
|
25
|
+
"@vitessce/sets-utils": "3.9.0",
|
|
26
|
+
"@vitessce/utils": "3.9.0",
|
|
27
|
+
"@vitessce/vit-s": "3.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "18.3.1",
|