@synnaxlabs/pluto 0.23.0 → 0.25.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/{Animated-DPIV1IH6.js → Animated-BpuQZROI.js} +3 -3
- package/dist/{Animated-DjcnDVGC.cjs → Animated-DqAjXT8r.cjs} +1 -1
- package/dist/{Keyboard-BLHHROrq.js → Keyboard-BTyEk3pg.js} +3 -3
- package/dist/{Keyboard-CJLEUbYu.cjs → Keyboard-GDYsV4-x.cjs} +1 -1
- package/dist/{LinePlot-C9MVJErC.js → LinePlot-CQAK-dkX.js} +4110 -3906
- package/dist/LinePlot-DnLLplw_.cjs +66 -0
- package/dist/{Link-BsqVxj6V.js → Link-BrhOiMiE.js} +2 -2
- package/dist/Link-CpMcH9c1.cjs +1 -0
- package/dist/List-BS57aL1n.js +22 -0
- package/dist/List-Dux7qweq.cjs +1 -0
- package/dist/{Pack-mkZBsSIU.js → Pack-CCCsIeot.js} +6 -6
- package/dist/{Pack-CBNcamuh.cjs → Pack-_i2cfPYc.cjs} +1 -1
- package/dist/{Toggle-W4K3cLf7.js → Toggle-CpLFBHo7.js} +17239 -17153
- package/dist/Toggle-DlNzb7nt.cjs +143 -0
- package/dist/{Video-C2EYBKLN.js → Video-Bi9kFIHV.js} +2 -2
- package/dist/{Video-Kb-c-N69.cjs → Video-THwAEuOy.cjs} +1 -1
- package/dist/{aggregator-BZJAV5yZ.js → aggregator-CoD5WrqU.js} +5151 -5636
- package/dist/aggregator-D47lwtdn.cjs +51 -0
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/css-CC1MhhH7.cjs +1 -0
- package/dist/css-Ce6IGevn.js +1042 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +9 -9
- package/dist/{external-DjjMU4Z6.cjs → external-B7RXnD0a.cjs} +1 -1
- package/dist/external-B815mDB0.cjs +1 -0
- package/dist/external-BxBMVx6g.js +97 -0
- package/dist/{external-CduvGaPN.js → external-C6v1z0ty.js} +37 -51
- package/dist/{external-XoJlPNFB.js → external-C8CIAjMj.js} +2 -2
- package/dist/external-CLwP0eXe.cjs +1 -0
- package/dist/{external-mlV4Onnq.cjs → external-CMk1k986.cjs} +1 -1
- package/dist/external-CUJXIrxM.cjs +1 -0
- package/dist/{external-0w2SHXg_.js → external-CXrgzQf5.js} +2 -2
- package/dist/external-Cv5GChi6.js +344 -0
- package/dist/{external-BKWizK6o.cjs → external-DMYExlt2.cjs} +1 -1
- package/dist/{external-WGyRiKbb.js → external-DQ4EhNBA.js} +32 -32
- package/dist/external-DRvtVPhp.cjs +1 -0
- package/dist/external-DShO9063.js +74 -0
- package/dist/external-DU5Xqqld.cjs +1 -0
- package/dist/external-D_WKlwCh.js +231 -0
- package/dist/{external-DlCoToEB.cjs → external-DjSiwSCE.cjs} +1 -1
- package/dist/external-Dm3eiIEN.cjs +1 -0
- package/dist/external-Do75w1Zt.cjs +1 -0
- package/dist/{external-DsNtnR-y.cjs → external-DqnUE4mV.cjs} +1 -1
- package/dist/external-DyTzmzSc.js +93 -0
- package/dist/{external-BB2SaR1o.js → external-NHkWeW29.js} +1 -1
- package/dist/external-NeMo53nv.js +271 -0
- package/dist/{external-TNsi3_BK.js → external-e0OPlFyY.js} +26 -26
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4937 -4262
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/{jsx-runtime-DqxPLdyS.js → jsx-runtime-B6kdoens.js} +225 -214
- package/dist/jsx-runtime-Cek9Ww4S.cjs +30 -0
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/accordion/Accordion.d.ts +2 -2
- package/dist/src/aether/aether/aether.d.ts +5 -5
- package/dist/src/aether/main.d.ts +4 -4
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/aether/test/test.d.ts +1 -1
- package/dist/src/aether/test/test.d.ts.map +1 -1
- package/dist/src/alamos/Provider.d.ts +3 -3
- package/dist/src/alamos/aether/alamos.d.ts +2 -2
- package/dist/src/alamos/aether/alamos.d.ts.map +1 -1
- package/dist/src/align/Center.d.ts +1 -1
- package/dist/src/align/Center.d.ts.map +1 -1
- package/dist/src/align/Pack.d.ts +1 -1
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts +3 -3
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +15 -11
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Icon.d.ts +2 -2
- package/dist/src/button/Link.d.ts +3 -3
- package/dist/src/button/Link.d.ts.map +1 -1
- package/dist/src/button/Toggle.d.ts +8 -8
- package/dist/src/button/color.d.ts +2 -2
- package/dist/src/button/color.d.ts.map +1 -1
- package/dist/src/channel/AliasProvider.d.ts +2 -2
- package/dist/src/channel/AliasProvider.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +11 -8
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/channel/Select.d.ts +2 -2
- package/dist/src/color/Picker/Picker.d.ts +2 -2
- package/dist/src/color/Swatch/Swatch.d.ts +4 -4
- package/dist/src/color/core/color.d.ts +7 -0
- package/dist/src/color/core/color.d.ts.map +1 -1
- package/dist/src/css/color.d.ts.map +1 -1
- package/dist/src/css/css.d.ts +4 -4
- package/dist/src/css/css.d.ts.map +1 -1
- package/dist/src/css/vars.d.ts.map +1 -1
- package/dist/src/dialog/index.d.ts +2 -0
- package/dist/src/dialog/index.d.ts.map +1 -0
- package/dist/src/dialog/use.d.ts +28 -0
- package/dist/src/dialog/use.d.ts.map +1 -0
- package/dist/src/divider/Divider.d.ts +2 -2
- package/dist/src/divider/Divider.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts +8 -30
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/form/Field.d.ts +35 -0
- package/dist/src/form/Field.d.ts.map +1 -0
- package/dist/src/form/Form.d.ts +19 -49
- package/dist/src/form/Form.d.ts.map +1 -1
- package/dist/src/form/external.d.ts +1 -0
- package/dist/src/form/external.d.ts.map +1 -1
- package/dist/src/generic/Generic.d.ts +1 -1
- package/dist/src/generic/Generic.d.ts.map +1 -1
- package/dist/src/hardware/device/Select.d.ts +2 -2
- package/dist/src/haul/Haul.d.ts +84 -3
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/header/Actions.d.ts +1 -1
- package/dist/src/header/ButtonTitle.d.ts +1 -1
- package/dist/src/header/Header.d.ts +2 -2
- package/dist/src/header/Title.d.ts +1 -1
- package/dist/src/hooks/effect.d.ts.map +1 -1
- package/dist/src/hooks/ref.d.ts +3 -3
- package/dist/src/hooks/ref.d.ts.map +1 -1
- package/dist/src/hooks/useCursorDrag/types.d.ts +1 -1
- package/dist/src/hooks/useCursorDrag/useCursorDrag.d.ts +2 -2
- package/dist/src/hooks/useDebouncedCallback.d.ts.map +1 -1
- package/dist/src/hooks/useFilter.d.ts +1 -1
- package/dist/src/hooks/useFilter.d.ts.map +1 -1
- package/dist/src/hooks/useRequiredContext.d.ts.map +1 -1
- package/dist/src/hooks/useResize.d.ts +1 -1
- package/dist/src/hooks/useResize.d.ts.map +1 -1
- package/dist/src/hooks/useTransforms.d.ts.map +1 -1
- package/dist/src/hooks/useUniqueKey.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts +14 -0
- package/dist/src/icon/Icon.d.ts.map +1 -0
- package/dist/src/icon/index.d.ts +2 -0
- package/dist/src/icon/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Date.d.ts +1 -1
- package/dist/src/input/Date.d.ts.map +1 -1
- package/dist/src/input/DateTime.d.ts +1 -1
- package/dist/src/input/DragButton.d.ts +3 -3
- package/dist/src/input/HelpText.d.ts +2 -2
- package/dist/src/input/Item.d.ts +2 -2
- package/dist/src/input/Numeric.d.ts +3 -3
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Switch.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +2 -0
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/TextArea.d.ts +1 -1
- package/dist/src/input/Time.d.ts +2 -2
- package/dist/src/input/Time.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +2 -2
- package/dist/src/list/Column.d.ts +7 -6
- package/dist/src/list/Column.d.ts.map +1 -1
- package/dist/src/list/Core.d.ts +4 -4
- package/dist/src/list/Core.d.ts.map +1 -1
- package/dist/src/list/Data.d.ts +5 -3
- package/dist/src/list/Data.d.ts.map +1 -1
- package/dist/src/list/Filter.d.ts +4 -4
- package/dist/src/list/Filter.d.ts.map +1 -1
- package/dist/src/list/Hover.d.ts +1 -1
- package/dist/src/list/Hover.d.ts.map +1 -1
- package/dist/src/list/Item.d.ts +3 -3
- package/dist/src/list/Item.d.ts.map +1 -1
- package/dist/src/list/List.d.ts +1 -1
- package/dist/src/list/List.d.ts.map +1 -1
- package/dist/src/list/Search.d.ts +3 -3
- package/dist/src/list/Search.d.ts.map +1 -1
- package/dist/src/list/Selector.d.ts +3 -9
- package/dist/src/list/Selector.d.ts.map +1 -1
- package/dist/src/list/types.d.ts.map +1 -1
- package/dist/src/list/useSelect.d.ts +6 -2
- package/dist/src/list/useSelect.d.ts.map +1 -1
- package/dist/src/memo/useMemoCompare.d.ts +1 -1
- package/dist/src/memo/useMemoCompare.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts +2 -2
- package/dist/src/menu/Item.d.ts +7 -7
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/menu/Menu.d.ts +7 -5
- package/dist/src/menu/Menu.d.ts.map +1 -1
- package/dist/src/mock/MockGLBufferController.d.ts +1 -1
- package/dist/src/modal/Modal.d.ts +8 -0
- package/dist/src/modal/Modal.d.ts.map +1 -0
- package/dist/src/modal/index.d.ts +2 -0
- package/dist/src/modal/index.d.ts.map +1 -0
- package/dist/src/mosaic/Mosaic.d.ts +6 -5
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts +3 -2
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +63 -1
- package/dist/src/mosaic/types.d.ts.map +1 -1
- package/dist/src/mosaic/use.d.ts +1 -1
- package/dist/src/nav/Bar.d.ts +2 -2
- package/dist/src/nav/Bar.d.ts.map +1 -1
- package/dist/src/nav/Drawer.d.ts +3 -3
- package/dist/src/note/Note.d.ts +1 -1
- package/dist/src/note/Note.d.ts.map +1 -1
- package/dist/src/observe/index.d.ts +2 -0
- package/dist/src/observe/index.d.ts.map +1 -0
- package/dist/src/observe/use.d.ts +19 -0
- package/dist/src/observe/use.d.ts.map +1 -0
- package/dist/src/os/Controls/Controls.d.ts +2 -2
- package/dist/src/os/Controls/Mac.d.ts +1 -1
- package/dist/src/os/Controls/Windows.d.ts +2 -2
- package/dist/src/os/Controls/Windows.d.ts.map +1 -1
- package/dist/src/os/Controls/types.d.ts +1 -1
- package/dist/src/os/use.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts +8 -8
- package/dist/src/portal/Portal.d.ts +0 -1
- package/dist/src/portal/Portal.d.ts.map +1 -1
- package/dist/src/ranger/SelectLabel.d.ts +2 -2
- package/dist/src/ranger/TimeRangeChip.d.ts +4 -3
- package/dist/src/ranger/TimeRangeChip.d.ts.map +1 -1
- package/dist/src/resize/Core.d.ts +1 -1
- package/dist/src/resize/Multiple.d.ts +2 -2
- package/dist/src/resize/Single.d.ts +2 -2
- package/dist/src/select/Button.d.ts +8 -8
- package/dist/src/select/Button.d.ts.map +1 -1
- package/dist/src/select/ClearButton.d.ts +1 -1
- package/dist/src/select/ClearButton.d.ts.map +1 -1
- package/dist/src/select/DataType.d.ts +1 -1
- package/dist/src/select/DataType.d.ts.map +1 -1
- package/dist/src/select/Direction.d.ts +2 -2
- package/dist/src/select/List.d.ts +6 -5
- package/dist/src/select/List.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts +10 -9
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/select/Select.spec.d.ts.map +1 -1
- package/dist/src/select/Single.d.ts +9 -7
- package/dist/src/select/Single.d.ts.map +1 -1
- package/dist/src/state/state.d.ts +2 -1
- package/dist/src/state/state.d.ts.map +1 -1
- package/dist/src/status/Aggregator.d.ts +4 -4
- package/dist/src/status/Circle.d.ts +2 -2
- package/dist/src/status/Notification.d.ts +4 -4
- package/dist/src/status/Notification.d.ts.map +1 -1
- package/dist/src/status/Text.d.ts +2 -2
- package/dist/src/status/Text.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +3 -3
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/status/aether/types.d.ts +1 -1
- package/dist/src/steps/Steps.d.ts +2 -2
- package/dist/src/synnax/Provider.d.ts +2 -2
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts +14 -14
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts +6 -12
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts +8 -13
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/external.d.ts +1 -0
- package/dist/src/tabs/external.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +54 -0
- package/dist/src/tabs/types.d.ts.map +1 -0
- package/dist/src/tag/Tag.d.ts +3 -3
- package/dist/src/telem/Provider.d.ts +1 -1
- package/dist/src/telem/aether/context.d.ts +4 -4
- package/dist/src/telem/aether/context.d.ts.map +1 -1
- package/dist/src/telem/aether/factory.d.ts +1 -1
- package/dist/src/telem/aether/factory.d.ts.map +1 -1
- package/dist/src/telem/aether/noop.d.ts +1 -1
- package/dist/src/telem/aether/pipeline.d.ts +3 -3
- package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/provider.d.ts +6 -6
- package/dist/src/telem/aether/remote.d.ts +3 -3
- package/dist/src/telem/aether/remote.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +3 -3
- package/dist/src/telem/aether/telem.d.ts +3 -3
- package/dist/src/telem/aether/transformers.d.ts +3 -3
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/client/cache/cache.d.ts +3 -3
- package/dist/src/telem/client/cache/static.d.ts +1 -1
- package/dist/src/telem/client/cache/unary.d.ts +3 -3
- package/dist/src/telem/client/client.d.ts +4 -5
- package/dist/src/telem/client/client.d.ts.map +1 -1
- package/dist/src/telem/client/reader.d.ts +4 -4
- package/dist/src/telem/client/streamer.d.ts +4 -4
- package/dist/src/telem/client/types.d.ts +1 -1
- package/dist/src/telem/control/Chip.d.ts +3 -3
- package/dist/src/telem/control/Chip.d.ts.map +1 -1
- package/dist/src/telem/control/Controller.d.ts +4 -4
- package/dist/src/telem/control/Indicator.d.ts +3 -3
- package/dist/src/telem/control/Legend.d.ts +1 -1
- package/dist/src/telem/control/Legend.d.ts.map +1 -1
- package/dist/src/telem/control/StateProvider.d.ts +3 -3
- package/dist/src/telem/control/aether/chip.d.ts +3 -3
- package/dist/src/telem/control/aether/controller.d.ts +8 -8
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts +3 -3
- package/dist/src/telem/control/aether/legend.d.ts +3 -3
- package/dist/src/telem/control/aether/state.d.ts +5 -5
- package/dist/src/telem/test/mock.d.ts +2 -2
- package/dist/src/testutil/dom.d.ts.map +1 -1
- package/dist/src/text/DateTime.d.ts +5 -5
- package/dist/src/text/DateTime.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts +8 -7
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Keyboard.d.ts +3 -3
- package/dist/src/text/Keyboard.d.ts.map +1 -1
- package/dist/src/text/Link.d.ts +3 -3
- package/dist/src/text/Link.d.ts.map +1 -1
- package/dist/src/text/SelectLevel.d.ts +2 -2
- package/dist/src/text/Text.d.ts +4 -4
- package/dist/src/text/Text.d.ts.map +1 -1
- package/dist/src/text/WithIcon.d.ts +5 -5
- package/dist/src/text/WithIcon.d.ts.map +1 -1
- package/dist/src/text/core/types.d.ts +1 -1
- package/dist/src/text/dimensions.d.ts.map +1 -1
- package/dist/src/theming/Provider.d.ts +4 -4
- package/dist/src/theming/Provider.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +2 -2
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/fontString.d.ts +2 -2
- package/dist/src/theming/core/fontString.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +1 -1
- package/dist/src/theming/css.d.ts.map +1 -1
- package/dist/src/theming/font.d.ts.map +1 -1
- package/dist/src/tooltip/Config.d.ts +1 -1
- package/dist/src/tooltip/Dialog.d.ts +2 -2
- package/dist/src/tooltip/Dialog.d.ts.map +1 -1
- package/dist/src/tooltip/wrap.d.ts +1 -1
- package/dist/src/tooltip/wrap.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts +16 -11
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts +2 -1
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts +2 -2
- package/dist/src/triggers/Status.d.ts +1 -1
- package/dist/src/triggers/Text.d.ts +4 -4
- package/dist/src/triggers/Text.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +4 -4
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/triggers/triggers.d.ts +3 -2
- package/dist/src/triggers/triggers.d.ts.map +1 -1
- package/dist/src/triggers/useDrag.d.ts +2 -2
- package/dist/src/util/children.d.ts +2 -2
- package/dist/src/util/children.d.ts.map +1 -1
- package/dist/src/util/component.d.ts +1 -1
- package/dist/src/util/component.d.ts.map +1 -1
- package/dist/src/util/renderProp.d.ts +1 -1
- package/dist/src/util/renderProp.d.ts.map +1 -1
- package/dist/src/util/rootElement.d.ts +2 -0
- package/dist/src/util/rootElement.d.ts.map +1 -0
- package/dist/src/util/zod.d.ts.map +1 -1
- package/dist/src/viewport/Mask.d.ts.map +1 -1
- package/dist/src/viewport/SelectMode.d.ts +2 -2
- package/dist/src/viewport/use.d.ts +4 -2
- package/dist/src/viewport/use.d.ts.map +1 -1
- package/dist/src/vis/axis/axis.d.ts +3 -3
- package/dist/src/vis/axis/canvas.d.ts +2 -2
- package/dist/src/vis/axis/ticks.d.ts +1 -1
- package/dist/src/vis/button/aether/button.d.ts +2 -2
- package/dist/src/vis/button/use.d.ts +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts +2 -2
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts +25 -25
- package/dist/src/vis/diagram/Diagram.d.ts +6 -6
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +41 -41
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +331 -0
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -0
- package/dist/src/vis/diagram/align.d.ts +1 -1
- package/dist/src/vis/diagram/align.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/Edge.d.ts +4 -4
- package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/connector/connector.d.ts +12 -4
- package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
- package/dist/src/vis/diagram/external.d.ts +1 -1
- package/dist/src/vis/diagram/external.d.ts.map +1 -1
- package/dist/src/vis/diagram/util.d.ts +1 -1
- package/dist/src/vis/diagram/util.d.ts.map +1 -1
- package/dist/src/vis/draw2d/index.d.ts +4 -4
- package/dist/src/vis/eraser/aether/eraser.d.ts +26 -26
- package/dist/src/vis/eraser/use.d.ts +2 -2
- package/dist/src/vis/legend/Container.d.ts +101 -7
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts +2 -2
- package/dist/src/vis/line/Line.d.ts +2 -2
- package/dist/src/vis/line/Line.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +10 -9
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Axis.d.ts +5 -5
- package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts +2 -2
- package/dist/src/vis/lineplot/Line.d.ts +1 -1
- package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +7 -7
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Title.d.ts +2 -2
- package/dist/src/vis/lineplot/Title.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Viewport.d.ts +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts +57 -57
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +4 -3
- package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +5 -4
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +6 -6
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/grid.d.ts +1 -1
- package/dist/src/vis/lineplot/aether/grid.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Annotation.d.ts +2 -2
- package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts +2 -2
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts +4 -4
- package/dist/src/vis/lineplot/range/aether/provider.d.ts +19 -19
- package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts +2 -2
- package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +6 -6
- package/dist/src/vis/measure/Measure.d.ts +1 -2
- package/dist/src/vis/measure/Measure.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +7 -7
- package/dist/src/vis/render/GLProgram.d.ts +2 -2
- package/dist/src/vis/render/clear/program.d.ts +1 -1
- package/dist/src/vis/render/context.d.ts +4 -7
- package/dist/src/vis/render/context.d.ts.map +1 -1
- package/dist/src/vis/render/eraser.d.ts +3 -3
- package/dist/src/vis/render/performance.d.ts +11 -0
- package/dist/src/vis/render/performance.d.ts.map +1 -0
- package/dist/src/vis/render/util.d.ts.map +1 -1
- package/dist/src/vis/rule/Rule.d.ts +2 -2
- package/dist/src/vis/rule/Rule.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +5 -5
- package/dist/src/vis/schematic/Forms.d.ts +1 -0
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Labeled.d.ts +2 -2
- package/dist/src/vis/schematic/Labeled.d.ts.map +1 -1
- package/dist/src/vis/schematic/SelectOrientation.d.ts +3 -3
- package/dist/src/vis/schematic/Symbols.d.ts +113 -19
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +27 -3
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +5 -6
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/toggle/aether/toggle.d.ts +5 -5
- package/dist/src/vis/toggle/use.d.ts +1 -1
- package/dist/src/vis/value/aether/value.d.ts +43 -43
- package/dist/src/vis/value/use.d.ts +12 -12
- package/dist/src/worker/Context.d.ts +1 -1
- package/dist/src/worker/Context.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-BsHX82D_.cjs → units-CoE6Mywf.cjs} +1 -1
- package/dist/{units-DechjShe.js → units-DlP7zkaE.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +23 -24
- package/dist/LinePlot-DkAUE5Nq.cjs +0 -68
- package/dist/Link-C3NUk5cp.cjs +0 -1
- package/dist/List-BbB1S5Vo.cjs +0 -1
- package/dist/List-DPugi06W.js +0 -22
- package/dist/Toggle-BBGPiXIA.cjs +0 -188
- package/dist/aggregator-DueF6Q-Z.cjs +0 -45
- package/dist/css-DZx3bWkH.cjs +0 -1
- package/dist/css-TXuXKs3A.js +0 -1364
- package/dist/external-B-CtJFCn.js +0 -96
- package/dist/external-B39SmpRo.js +0 -201
- package/dist/external-BbnWD0Pc.js +0 -66
- package/dist/external-BphNoXuB.js +0 -92
- package/dist/external-CsPOXIEm.cjs +0 -1
- package/dist/external-CyiLaYmg.js +0 -322
- package/dist/external-CztU6wom.cjs +0 -1
- package/dist/external-D1NnASGa.cjs +0 -1
- package/dist/external-DrS33VU5.cjs +0 -1
- package/dist/external-WzX6JA2j.cjs +0 -1
- package/dist/external-fg-pJfZR.js +0 -260
- package/dist/external-vZfda3xX.cjs +0 -1
- package/dist/external-vgqH7hLg.cjs +0 -1
- package/dist/jsx-runtime-fmb_vB8K.cjs +0 -25
- package/dist/src/util/case.d.ts +0 -2
- package/dist/src/util/case.d.ts.map +0 -1
- package/dist/src/vis/diagram/types.d.ts +0 -73
- package/dist/src/vis/diagram/types.d.ts.map +0 -1
package/dist/css-TXuXKs3A.js
DELETED
|
@@ -1,1364 +0,0 @@
|
|
|
1
|
-
var Gt = Object.defineProperty;
|
|
2
|
-
var Jt = (t, e, r) => e in t ? Gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var N = (t, e, r) => (Jt(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
import { z as u } from "zod";
|
|
5
|
-
const ue = u.tuple([u.number(), u.number()]);
|
|
6
|
-
u.tuple([u.bigint(), u.bigint()]);
|
|
7
|
-
const _e = u.object({ width: u.number(), height: u.number() }), Qt = u.object({
|
|
8
|
-
signedWidth: u.number(),
|
|
9
|
-
signedHeight: u.number()
|
|
10
|
-
}), er = ["width", "height"];
|
|
11
|
-
u.enum(er);
|
|
12
|
-
const tr = ["start", "center", "end"], rr = ["signedWidth", "signedHeight"];
|
|
13
|
-
u.enum(rr);
|
|
14
|
-
const K = u.object({ x: u.number(), y: u.number() }), ot = u.object({ clientX: u.number(), clientY: u.number() }), ze = ["x", "y"], st = u.enum(ze), it = ["top", "right", "bottom", "left"], nr = u.enum(it), le = ["left", "right"], Se = u.enum(le), ce = ["top", "bottom"], Ee = u.enum(ce), Ie = ["center"], et = u.enum(Ie), or = [...it, ...Ie], Le = u.enum(or), So = u.enum(tr), sr = ["first", "last"], Eo = u.enum(sr), at = u.object({ lower: u.number(), upper: u.number() }), ir = u.object({ lower: u.bigint(), upper: u.bigint() });
|
|
15
|
-
u.union([at, ue]);
|
|
16
|
-
u.union([ir, ue]);
|
|
17
|
-
const ar = u.union([st, Le]), ur = u.union([st, Le, u.instanceof(String)]), Ze = (t, e) => typeof t == "bigint" ? t - BigInt(e) : t - Number(e), ut = (t, e) => typeof t == "bigint" ? t + BigInt(e) : t + Number(e), lr = (t, e, r = 1e-4) => Math.abs(t - e) < r, cr = (t) => {
|
|
18
|
-
const e = Math.pow(10, Math.floor(Math.log10(t)));
|
|
19
|
-
return Math.round(t / e) * e;
|
|
20
|
-
}, Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
|
-
__proto__: null,
|
|
22
|
-
add: ut,
|
|
23
|
-
closeTo: lr,
|
|
24
|
-
roundToNearestMagnitude: cr,
|
|
25
|
-
sub: Ze
|
|
26
|
-
}, Symbol.toStringTag, { value: "Module" })), p = (t, e) => {
|
|
27
|
-
const r = {};
|
|
28
|
-
if (typeof t == "number" || typeof t == "bigint")
|
|
29
|
-
e != null ? (r.lower = t, r.upper = e) : (r.lower = typeof t == "bigint" ? 0n : 0, r.upper = t);
|
|
30
|
-
else if (Array.isArray(t)) {
|
|
31
|
-
if (t.length !== 2)
|
|
32
|
-
throw new Error("bounds: expected array of length 2");
|
|
33
|
-
[r.lower, r.upper] = t;
|
|
34
|
-
} else
|
|
35
|
-
return ve(t);
|
|
36
|
-
return ve(r);
|
|
37
|
-
}, pr = Object.freeze({ lower: 0, upper: 0 }), dr = Object.freeze({ lower: -1 / 0, upper: 1 / 0 }), yr = Object.freeze({ lower: 0, upper: 1 }), fr = Object.freeze({ lower: -1, upper: 1 }), hr = (t, e) => {
|
|
38
|
-
if (t == null && e == null)
|
|
39
|
-
return !0;
|
|
40
|
-
if (t == null || e == null)
|
|
41
|
-
return !1;
|
|
42
|
-
const r = p(t), n = p(e);
|
|
43
|
-
return (r == null ? void 0 : r.lower) === (n == null ? void 0 : n.lower) && (r == null ? void 0 : r.upper) === (n == null ? void 0 : n.upper);
|
|
44
|
-
}, ve = (t) => t.lower > t.upper ? { lower: t.upper, upper: t.lower } : t, gr = (t, e) => {
|
|
45
|
-
const r = p(t);
|
|
46
|
-
return e < r.lower ? r.lower : e >= r.upper ? r.upper - (typeof r.upper == "number" ? 1 : 1n) : e;
|
|
47
|
-
}, L = (t, e) => {
|
|
48
|
-
const r = p(t);
|
|
49
|
-
if (typeof e == "number" || typeof e == "bigint")
|
|
50
|
-
return e >= r.lower && e < r.upper;
|
|
51
|
-
const n = p(e);
|
|
52
|
-
return n.lower >= r.lower && n.upper <= r.upper;
|
|
53
|
-
}, br = (t, e) => {
|
|
54
|
-
const r = p(t), n = p(e);
|
|
55
|
-
return r.lower === n.lower ? !0 : n.upper === r.lower || n.lower === r.upper ? !1 : L(r, n.upper) || L(r, n.lower) || L(n, r.upper) || L(n, r.lower);
|
|
56
|
-
}, pe = (t) => {
|
|
57
|
-
const e = p(t);
|
|
58
|
-
return e.upper - e.lower;
|
|
59
|
-
}, mr = (t) => {
|
|
60
|
-
const e = p(t);
|
|
61
|
-
return typeof e.lower == "bigint" ? e.lower === 0n && e.upper === 0n : e.lower === 0 && e.upper === 0;
|
|
62
|
-
}, xr = (t) => pe(t) === 0, wr = (t) => {
|
|
63
|
-
const e = p(t);
|
|
64
|
-
return Number.isFinite(e.lower) && Number.isFinite(e.upper);
|
|
65
|
-
}, vr = (t) => ({
|
|
66
|
-
lower: Math.min(...t.map((e) => p(e).lower)),
|
|
67
|
-
upper: Math.max(...t.map((e) => p(e).upper))
|
|
68
|
-
}), $r = (t) => ({
|
|
69
|
-
lower: Math.max(...t.map((e) => p(e).lower)),
|
|
70
|
-
upper: Math.min(...t.map((e) => p(e).upper))
|
|
71
|
-
}), Or = (t) => {
|
|
72
|
-
const e = p(t), r = typeof e.lower == "bigint";
|
|
73
|
-
return Array.from({ length: Number(pe(t)) }, (n, o) => r ? e.lower + BigInt(o) : e.lower + o);
|
|
74
|
-
}, $e = (t, e) => {
|
|
75
|
-
const r = t.map((s) => p(s)), n = r.findIndex(
|
|
76
|
-
(s, i) => L(s, e) || e < r[i].lower
|
|
77
|
-
);
|
|
78
|
-
if (n === -1)
|
|
79
|
-
return { index: t.length, position: 0 };
|
|
80
|
-
const o = r[n];
|
|
81
|
-
return L(o, e) ? { index: n, position: Number(e - o.lower) } : { index: n, position: 0 };
|
|
82
|
-
}, xe = {
|
|
83
|
-
removeBefore: 0,
|
|
84
|
-
removeAfter: 0,
|
|
85
|
-
insertInto: 0,
|
|
86
|
-
deleteInBetween: 0
|
|
87
|
-
}, lt = (t, e) => {
|
|
88
|
-
const r = t.map((f) => p(f)), n = p(e);
|
|
89
|
-
if (r.length === 0)
|
|
90
|
-
return xe;
|
|
91
|
-
const o = $e(r, n.lower), s = $e(r, n.upper);
|
|
92
|
-
if (o.index === t.length)
|
|
93
|
-
return { ...xe, insertInto: t.length };
|
|
94
|
-
if (s.index === 0)
|
|
95
|
-
return { ...xe, removeAfter: s.position };
|
|
96
|
-
if (o.index === s.index)
|
|
97
|
-
return o.position !== 0 && s.position !== 0 ? null : {
|
|
98
|
-
removeAfter: s.position,
|
|
99
|
-
removeBefore: o.position,
|
|
100
|
-
insertInto: o.index,
|
|
101
|
-
deleteInBetween: 0
|
|
102
|
-
};
|
|
103
|
-
let i = s.index - o.index, a = o.index, c = Ze(Number(pe(r[o.index])), o.position);
|
|
104
|
-
return o.position !== 0 ? (i -= 1, a += 1) : c = 0, {
|
|
105
|
-
removeBefore: c,
|
|
106
|
-
removeAfter: s.position,
|
|
107
|
-
insertInto: a,
|
|
108
|
-
deleteInBetween: i
|
|
109
|
-
};
|
|
110
|
-
}, jr = (t, e) => {
|
|
111
|
-
const r = lt(t, e), n = t.map((s) => p(s));
|
|
112
|
-
if (r == null)
|
|
113
|
-
return n;
|
|
114
|
-
const o = p(e);
|
|
115
|
-
return o.lower = ut(o.lower, r.removeBefore), o.upper = Ze(o.upper, r.removeAfter), n.splice(r.insertInto, r.deleteInBetween, o), n;
|
|
116
|
-
}, Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
117
|
-
__proto__: null,
|
|
118
|
-
CLIP: fr,
|
|
119
|
-
DECIMAL: yr,
|
|
120
|
-
INFINITE: dr,
|
|
121
|
-
ZERO: pr,
|
|
122
|
-
bounds: at,
|
|
123
|
-
buildInsertionPlan: lt,
|
|
124
|
-
clamp: gr,
|
|
125
|
-
construct: p,
|
|
126
|
-
contains: L,
|
|
127
|
-
equals: hr,
|
|
128
|
-
findInsertPosition: $e,
|
|
129
|
-
insert: jr,
|
|
130
|
-
isFinite: wr,
|
|
131
|
-
isZero: mr,
|
|
132
|
-
linspace: Or,
|
|
133
|
-
makeValid: ve,
|
|
134
|
-
max: vr,
|
|
135
|
-
min: $r,
|
|
136
|
-
overlapsWith: br,
|
|
137
|
-
span: pe,
|
|
138
|
-
spanIsZero: xr
|
|
139
|
-
}, Symbol.toStringTag, { value: "Module" })), ct = ar, E = (t) => ze.includes(t) ? t : ce.includes(t) ? "y" : "x", Ar = (t) => E(t) === "x" ? "y" : "x", Tr = (t) => E(t) === "x" ? "width" : "height", Mr = (t) => E(t) === "x" ? "left" : "top", Cr = (t) => ct.safeParse(t).success, _r = (t) => E(t) === "x" ? "signedWidth" : "signedHeight", zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
140
|
-
__proto__: null,
|
|
141
|
-
construct: E,
|
|
142
|
-
crude: ct,
|
|
143
|
-
dimension: Tr,
|
|
144
|
-
isDirection: Cr,
|
|
145
|
-
location: Mr,
|
|
146
|
-
signedDimension: _r,
|
|
147
|
-
swap: Ar
|
|
148
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
149
|
-
var h = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = {}, de = {};
|
|
150
|
-
Object.defineProperty(de, "__esModule", { value: !0 });
|
|
151
|
-
function Sr(t) {
|
|
152
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/[^A-Za-z0-9]+/g, "$").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
153
|
-
return r + "$" + n;
|
|
154
|
-
}).toLowerCase().replace(/(\$)(\w)/g, function(e, r, n) {
|
|
155
|
-
return n.toUpperCase();
|
|
156
|
-
}) : "";
|
|
157
|
-
}
|
|
158
|
-
de.default = Sr;
|
|
159
|
-
var ye = {};
|
|
160
|
-
Object.defineProperty(ye, "__esModule", { value: !0 });
|
|
161
|
-
function Er(t) {
|
|
162
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
163
|
-
return r + "_" + n.toLowerCase();
|
|
164
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, "_").toLowerCase() : "";
|
|
165
|
-
}
|
|
166
|
-
ye.default = Er;
|
|
167
|
-
var fe = {};
|
|
168
|
-
Object.defineProperty(fe, "__esModule", { value: !0 });
|
|
169
|
-
function Ir(t) {
|
|
170
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "$").replace(/[^A-Za-z0-9]+/g, "$").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
171
|
-
return r + "$" + n;
|
|
172
|
-
}).toLowerCase().replace(/(\$)(\w?)/g, function(e, r, n) {
|
|
173
|
-
return n.toUpperCase();
|
|
174
|
-
}) : "";
|
|
175
|
-
}
|
|
176
|
-
fe.default = Ir;
|
|
177
|
-
var ke = {};
|
|
178
|
-
Object.defineProperty(ke, "__esModule", { value: !0 });
|
|
179
|
-
function Lr(t) {
|
|
180
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
181
|
-
return r + "_" + n.toLowerCase();
|
|
182
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, ".").toLowerCase() : "";
|
|
183
|
-
}
|
|
184
|
-
ke.default = Lr;
|
|
185
|
-
var Be = {};
|
|
186
|
-
Object.defineProperty(Be, "__esModule", { value: !0 });
|
|
187
|
-
function Zr(t) {
|
|
188
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
189
|
-
return r + "_" + n.toLowerCase();
|
|
190
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, "/").toLowerCase() : "";
|
|
191
|
-
}
|
|
192
|
-
Be.default = Zr;
|
|
193
|
-
var Re = {};
|
|
194
|
-
Object.defineProperty(Re, "__esModule", { value: !0 });
|
|
195
|
-
function kr(t) {
|
|
196
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
197
|
-
return r + "_" + n.toLowerCase();
|
|
198
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, " ").toLowerCase() : "";
|
|
199
|
-
}
|
|
200
|
-
Re.default = kr;
|
|
201
|
-
var Ne = {};
|
|
202
|
-
Object.defineProperty(Ne, "__esModule", { value: !0 });
|
|
203
|
-
function Br(t) {
|
|
204
|
-
if (t === void 0 && (t = ""), !t)
|
|
205
|
-
return "";
|
|
206
|
-
var e = String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(r, n, o) {
|
|
207
|
-
return n + "_" + o.toLowerCase();
|
|
208
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, " ").toLowerCase();
|
|
209
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
210
|
-
}
|
|
211
|
-
Ne.default = Br;
|
|
212
|
-
var Pe = {};
|
|
213
|
-
Object.defineProperty(Pe, "__esModule", { value: !0 });
|
|
214
|
-
function Rr(t) {
|
|
215
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
216
|
-
return r + "_" + n.toLowerCase();
|
|
217
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, " ").toLowerCase().replace(/( ?)(\w+)( ?)/g, function(e, r, n, o) {
|
|
218
|
-
return r + n.charAt(0).toUpperCase() + n.slice(1) + o;
|
|
219
|
-
}) : "";
|
|
220
|
-
}
|
|
221
|
-
Pe.default = Rr;
|
|
222
|
-
var he = {};
|
|
223
|
-
Object.defineProperty(he, "__esModule", { value: !0 });
|
|
224
|
-
function Nr(t) {
|
|
225
|
-
return t === void 0 && (t = ""), t ? String(t).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, r, n) {
|
|
226
|
-
return r + "_" + n.toLowerCase();
|
|
227
|
-
}).replace(/[^A-Za-z0-9]+|_+/g, "-").toLowerCase() : "";
|
|
228
|
-
}
|
|
229
|
-
he.default = Nr;
|
|
230
|
-
var De = {}, R = {};
|
|
231
|
-
(function(t) {
|
|
232
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.belongToTypes = t.isValidObject = t.isArrayObject = t.validateOptions = t.DefaultOption = void 0, t.DefaultOption = {
|
|
233
|
-
recursive: !1,
|
|
234
|
-
recursiveInArray: !1,
|
|
235
|
-
keepTypesOnRecursion: []
|
|
236
|
-
}, t.validateOptions = function(e) {
|
|
237
|
-
return e === void 0 && (e = t.DefaultOption), e.recursive == null ? e = t.DefaultOption : e.recursiveInArray == null && (e.recursiveInArray = !1), e;
|
|
238
|
-
}, t.isArrayObject = function(e) {
|
|
239
|
-
return e != null && Array.isArray(e);
|
|
240
|
-
}, t.isValidObject = function(e) {
|
|
241
|
-
return e != null && typeof e == "object" && !Array.isArray(e);
|
|
242
|
-
}, t.belongToTypes = function(e, r) {
|
|
243
|
-
return (r || []).some(function(n) {
|
|
244
|
-
return e instanceof n;
|
|
245
|
-
});
|
|
246
|
-
};
|
|
247
|
-
})(R);
|
|
248
|
-
var Pr = h && h.__spreadArrays || function() {
|
|
249
|
-
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
250
|
-
t += arguments[e].length;
|
|
251
|
-
for (var n = Array(t), o = 0, e = 0; e < r; e++)
|
|
252
|
-
for (var s = arguments[e], i = 0, a = s.length; i < a; i++, o++)
|
|
253
|
-
n[o] = s[i];
|
|
254
|
-
return n;
|
|
255
|
-
};
|
|
256
|
-
Object.defineProperty(De, "__esModule", { value: !0 });
|
|
257
|
-
var m = R;
|
|
258
|
-
function G(t, e) {
|
|
259
|
-
if (e === void 0 && (e = m.DefaultOption), !m.isValidObject(t))
|
|
260
|
-
return null;
|
|
261
|
-
e = m.validateOptions(e);
|
|
262
|
-
var r = {};
|
|
263
|
-
return Object.keys(t).forEach(function(n) {
|
|
264
|
-
var o = t[n], s = n.toLowerCase();
|
|
265
|
-
e.recursive && (m.isValidObject(o) ? m.belongToTypes(o, e.keepTypesOnRecursion) || (o = G(o, e)) : e.recursiveInArray && m.isArrayObject(o) && (o = Pr(o).map(function(i) {
|
|
266
|
-
var a = i;
|
|
267
|
-
if (m.isValidObject(i))
|
|
268
|
-
m.belongToTypes(a, e.keepTypesOnRecursion) || (a = G(i, e));
|
|
269
|
-
else if (m.isArrayObject(i)) {
|
|
270
|
-
var c = G({ key: i }, e);
|
|
271
|
-
a = c.key;
|
|
272
|
-
}
|
|
273
|
-
return a;
|
|
274
|
-
}))), r[s] = o;
|
|
275
|
-
}), r;
|
|
276
|
-
}
|
|
277
|
-
De.default = G;
|
|
278
|
-
var Ve = {}, Dr = h && h.__spreadArrays || function() {
|
|
279
|
-
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
280
|
-
t += arguments[e].length;
|
|
281
|
-
for (var n = Array(t), o = 0, e = 0; e < r; e++)
|
|
282
|
-
for (var s = arguments[e], i = 0, a = s.length; i < a; i++, o++)
|
|
283
|
-
n[o] = s[i];
|
|
284
|
-
return n;
|
|
285
|
-
};
|
|
286
|
-
Object.defineProperty(Ve, "__esModule", { value: !0 });
|
|
287
|
-
var x = R;
|
|
288
|
-
function J(t, e) {
|
|
289
|
-
if (e === void 0 && (e = x.DefaultOption), !x.isValidObject(t))
|
|
290
|
-
return null;
|
|
291
|
-
e = x.validateOptions(e);
|
|
292
|
-
var r = {};
|
|
293
|
-
return Object.keys(t).forEach(function(n) {
|
|
294
|
-
var o = t[n], s = n.toUpperCase();
|
|
295
|
-
e.recursive && (x.isValidObject(o) ? x.belongToTypes(o, e.keepTypesOnRecursion) || (o = J(o, e)) : e.recursiveInArray && x.isArrayObject(o) && (o = Dr(o).map(function(i) {
|
|
296
|
-
var a = i;
|
|
297
|
-
if (x.isValidObject(i))
|
|
298
|
-
x.belongToTypes(a, e.keepTypesOnRecursion) || (a = J(i, e));
|
|
299
|
-
else if (x.isArrayObject(i)) {
|
|
300
|
-
var c = J({ key: i }, e);
|
|
301
|
-
a = c.key;
|
|
302
|
-
}
|
|
303
|
-
return a;
|
|
304
|
-
}))), r[s] = o;
|
|
305
|
-
}), r;
|
|
306
|
-
}
|
|
307
|
-
Ve.default = J;
|
|
308
|
-
var Ke = {}, Vr = h && h.__spreadArrays || function() {
|
|
309
|
-
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
310
|
-
t += arguments[e].length;
|
|
311
|
-
for (var n = Array(t), o = 0, e = 0; e < r; e++)
|
|
312
|
-
for (var s = arguments[e], i = 0, a = s.length; i < a; i++, o++)
|
|
313
|
-
n[o] = s[i];
|
|
314
|
-
return n;
|
|
315
|
-
};
|
|
316
|
-
Object.defineProperty(Ke, "__esModule", { value: !0 });
|
|
317
|
-
var w = R, Kr = de;
|
|
318
|
-
function Q(t, e) {
|
|
319
|
-
if (e === void 0 && (e = w.DefaultOption), !w.isValidObject(t))
|
|
320
|
-
return null;
|
|
321
|
-
e = w.validateOptions(e);
|
|
322
|
-
var r = {};
|
|
323
|
-
return Object.keys(t).forEach(function(n) {
|
|
324
|
-
var o = t[n], s = Kr.default(n);
|
|
325
|
-
e.recursive && (w.isValidObject(o) ? w.belongToTypes(o, e.keepTypesOnRecursion) || (o = Q(o, e)) : e.recursiveInArray && w.isArrayObject(o) && (o = Vr(o).map(function(i) {
|
|
326
|
-
var a = i;
|
|
327
|
-
if (w.isValidObject(i))
|
|
328
|
-
w.belongToTypes(a, e.keepTypesOnRecursion) || (a = Q(i, e));
|
|
329
|
-
else if (w.isArrayObject(i)) {
|
|
330
|
-
var c = Q({ key: i }, e);
|
|
331
|
-
a = c.key;
|
|
332
|
-
}
|
|
333
|
-
return a;
|
|
334
|
-
}))), r[s] = o;
|
|
335
|
-
}), r;
|
|
336
|
-
}
|
|
337
|
-
Ke.default = Q;
|
|
338
|
-
var He = {}, Hr = h && h.__spreadArrays || function() {
|
|
339
|
-
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
340
|
-
t += arguments[e].length;
|
|
341
|
-
for (var n = Array(t), o = 0, e = 0; e < r; e++)
|
|
342
|
-
for (var s = arguments[e], i = 0, a = s.length; i < a; i++, o++)
|
|
343
|
-
n[o] = s[i];
|
|
344
|
-
return n;
|
|
345
|
-
};
|
|
346
|
-
Object.defineProperty(He, "__esModule", { value: !0 });
|
|
347
|
-
var v = R, Yr = ye;
|
|
348
|
-
function ee(t, e) {
|
|
349
|
-
if (e === void 0 && (e = v.DefaultOption), !v.isValidObject(t))
|
|
350
|
-
return null;
|
|
351
|
-
e = v.validateOptions(e);
|
|
352
|
-
var r = {};
|
|
353
|
-
return Object.keys(t).forEach(function(n) {
|
|
354
|
-
var o = t[n], s = Yr.default(n);
|
|
355
|
-
e.recursive && (v.isValidObject(o) ? v.belongToTypes(o, e.keepTypesOnRecursion) || (o = ee(o, e)) : e.recursiveInArray && v.isArrayObject(o) && (o = Hr(o).map(function(i) {
|
|
356
|
-
var a = i;
|
|
357
|
-
if (v.isValidObject(i))
|
|
358
|
-
v.belongToTypes(a, e.keepTypesOnRecursion) || (a = ee(i, e));
|
|
359
|
-
else if (v.isArrayObject(i)) {
|
|
360
|
-
var c = ee({ key: i }, e);
|
|
361
|
-
a = c.key;
|
|
362
|
-
}
|
|
363
|
-
return a;
|
|
364
|
-
}))), r[s] = o;
|
|
365
|
-
}), r;
|
|
366
|
-
}
|
|
367
|
-
He.default = ee;
|
|
368
|
-
var Ye = {}, Fr = h && h.__spreadArrays || function() {
|
|
369
|
-
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
370
|
-
t += arguments[e].length;
|
|
371
|
-
for (var n = Array(t), o = 0, e = 0; e < r; e++)
|
|
372
|
-
for (var s = arguments[e], i = 0, a = s.length; i < a; i++, o++)
|
|
373
|
-
n[o] = s[i];
|
|
374
|
-
return n;
|
|
375
|
-
};
|
|
376
|
-
Object.defineProperty(Ye, "__esModule", { value: !0 });
|
|
377
|
-
var $ = R, Wr = fe;
|
|
378
|
-
function te(t, e) {
|
|
379
|
-
if (e === void 0 && (e = $.DefaultOption), !$.isValidObject(t))
|
|
380
|
-
return null;
|
|
381
|
-
e = $.validateOptions(e);
|
|
382
|
-
var r = {};
|
|
383
|
-
return Object.keys(t).forEach(function(n) {
|
|
384
|
-
var o = t[n], s = Wr.default(n);
|
|
385
|
-
e.recursive && ($.isValidObject(o) ? $.belongToTypes(o, e.keepTypesOnRecursion) || (o = te(o, e)) : e.recursiveInArray && $.isArrayObject(o) && (o = Fr(o).map(function(i) {
|
|
386
|
-
var a = i;
|
|
387
|
-
if ($.isValidObject(i))
|
|
388
|
-
$.belongToTypes(a, e.keepTypesOnRecursion) || (a = te(i, e));
|
|
389
|
-
else if ($.isArrayObject(i)) {
|
|
390
|
-
var c = te({ key: i }, e);
|
|
391
|
-
a = c.key;
|
|
392
|
-
}
|
|
393
|
-
return a;
|
|
394
|
-
}))), r[s] = o;
|
|
395
|
-
}), r;
|
|
396
|
-
}
|
|
397
|
-
Ye.default = te;
|
|
398
|
-
var Fe = {}, Xr = h && h.__spreadArrays || function() {
|
|
399
|
-
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
400
|
-
t += arguments[e].length;
|
|
401
|
-
for (var n = Array(t), o = 0, e = 0; e < r; e++)
|
|
402
|
-
for (var s = arguments[e], i = 0, a = s.length; i < a; i++, o++)
|
|
403
|
-
n[o] = s[i];
|
|
404
|
-
return n;
|
|
405
|
-
};
|
|
406
|
-
Object.defineProperty(Fe, "__esModule", { value: !0 });
|
|
407
|
-
var O = R, Ur = he;
|
|
408
|
-
function re(t, e) {
|
|
409
|
-
if (e === void 0 && (e = O.DefaultOption), !O.isValidObject(t))
|
|
410
|
-
return null;
|
|
411
|
-
e = O.validateOptions(e);
|
|
412
|
-
var r = {};
|
|
413
|
-
return Object.keys(t).forEach(function(n) {
|
|
414
|
-
var o = t[n], s = Ur.default(n);
|
|
415
|
-
e.recursive && (O.isValidObject(o) ? O.belongToTypes(o, e.keepTypesOnRecursion) || (o = re(o, e)) : e.recursiveInArray && O.isArrayObject(o) && (o = Xr(o).map(function(i) {
|
|
416
|
-
var a = i;
|
|
417
|
-
if (O.isValidObject(i))
|
|
418
|
-
O.belongToTypes(a, e.keepTypesOnRecursion) || (a = re(i, e));
|
|
419
|
-
else if (O.isArrayObject(i)) {
|
|
420
|
-
var c = re({ key: i }, e);
|
|
421
|
-
a = c.key;
|
|
422
|
-
}
|
|
423
|
-
return a;
|
|
424
|
-
}))), r[s] = o;
|
|
425
|
-
}), r;
|
|
426
|
-
}
|
|
427
|
-
Fe.default = re;
|
|
428
|
-
Object.defineProperty(l, "__esModule", { value: !0 });
|
|
429
|
-
l.kebabKeys = l.pascalKeys = l.snakeKeys = l.camelKeys = l.upperKeys = l.lowerKeys = l.toLowerCase = l.toUpperCase = l.toKebabCase = l.toHeaderCase = l.toSentenceCase = l.toTextCase = l.toPathCase = l.toDotCase = l.toPascalCase = l.toSnakeCase = l.toCamelCase = void 0;
|
|
430
|
-
var pt = de;
|
|
431
|
-
l.toCamelCase = pt.default;
|
|
432
|
-
var dt = ye;
|
|
433
|
-
l.toSnakeCase = dt.default;
|
|
434
|
-
var yt = fe;
|
|
435
|
-
l.toPascalCase = yt.default;
|
|
436
|
-
var ft = ke;
|
|
437
|
-
l.toDotCase = ft.default;
|
|
438
|
-
var ht = Be;
|
|
439
|
-
l.toPathCase = ht.default;
|
|
440
|
-
var gt = Re;
|
|
441
|
-
l.toTextCase = gt.default;
|
|
442
|
-
var bt = Ne;
|
|
443
|
-
l.toSentenceCase = bt.default;
|
|
444
|
-
var mt = Pe;
|
|
445
|
-
l.toHeaderCase = mt.default;
|
|
446
|
-
var xt = he;
|
|
447
|
-
l.toKebabCase = xt.default;
|
|
448
|
-
var wt = De;
|
|
449
|
-
l.lowerKeys = wt.default;
|
|
450
|
-
var vt = Ve;
|
|
451
|
-
l.upperKeys = vt.default;
|
|
452
|
-
var $t = Ke;
|
|
453
|
-
l.camelKeys = $t.default;
|
|
454
|
-
var Ot = He;
|
|
455
|
-
l.snakeKeys = Ot.default;
|
|
456
|
-
var jt = Ye;
|
|
457
|
-
l.pascalKeys = jt.default;
|
|
458
|
-
var At = Fe;
|
|
459
|
-
l.kebabKeys = At.default;
|
|
460
|
-
var Tt = function(t) {
|
|
461
|
-
return String(t || "").toLowerCase();
|
|
462
|
-
};
|
|
463
|
-
l.toLowerCase = Tt;
|
|
464
|
-
var Mt = function(t) {
|
|
465
|
-
return String(t || "").toUpperCase();
|
|
466
|
-
};
|
|
467
|
-
l.toUpperCase = Mt;
|
|
468
|
-
var qr = {
|
|
469
|
-
toCamelCase: pt.default,
|
|
470
|
-
toSnakeCase: dt.default,
|
|
471
|
-
toPascalCase: yt.default,
|
|
472
|
-
toDotCase: ft.default,
|
|
473
|
-
toPathCase: ht.default,
|
|
474
|
-
toTextCase: gt.default,
|
|
475
|
-
toSentenceCase: bt.default,
|
|
476
|
-
toHeaderCase: mt.default,
|
|
477
|
-
toKebabCase: xt.default,
|
|
478
|
-
toUpperCase: Mt,
|
|
479
|
-
toLowerCase: Tt,
|
|
480
|
-
lowerKeys: wt.default,
|
|
481
|
-
upperKeys: vt.default,
|
|
482
|
-
camelKeys: $t.default,
|
|
483
|
-
snakeKeys: Ot.default,
|
|
484
|
-
pascalKeys: jt.default,
|
|
485
|
-
kebabKeys: At.default
|
|
486
|
-
};
|
|
487
|
-
l.default = qr;
|
|
488
|
-
var Ct = l;
|
|
489
|
-
const _t = {
|
|
490
|
-
recursive: !0,
|
|
491
|
-
recursiveInArray: !0,
|
|
492
|
-
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
493
|
-
}, Gr = (t) => Ct.snakeKeys(t, _t), Jr = (t) => Ct.camelKeys(t, _t), zt = (t) => t[0].toUpperCase() + t.slice(1), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
494
|
-
__proto__: null,
|
|
495
|
-
capitalize: zt,
|
|
496
|
-
toCamel: Jr,
|
|
497
|
-
toSnake: Gr
|
|
498
|
-
}, Symbol.toStringTag, { value: "Module" })), Qr = Se, en = Ee, tn = {
|
|
499
|
-
top: "bottom",
|
|
500
|
-
right: "left",
|
|
501
|
-
bottom: "top",
|
|
502
|
-
left: "right",
|
|
503
|
-
center: "center"
|
|
504
|
-
}, rn = {
|
|
505
|
-
top: "left",
|
|
506
|
-
right: "top",
|
|
507
|
-
bottom: "right",
|
|
508
|
-
left: "bottom",
|
|
509
|
-
center: "center"
|
|
510
|
-
}, nn = ur, _ = (t) => t instanceof String ? t : ze.includes(t) ? t === "x" ? "left" : "top" : t, on = (t) => tn[_(t)], sn = (t) => rn[_(t)], H = (t) => {
|
|
511
|
-
const e = _(t);
|
|
512
|
-
return e === "top" || e === "bottom" ? "y" : "x";
|
|
513
|
-
}, an = u.object({
|
|
514
|
-
x: Se.or(et),
|
|
515
|
-
y: Ee.or(et)
|
|
516
|
-
}), St = u.object({ x: Se, y: Ee }), Y = Object.freeze({ x: "left", y: "top" }), We = Object.freeze({ x: "right", y: "top" }), ge = Object.freeze({ x: "left", y: "bottom" }), Xe = Object.freeze({ x: "right", y: "bottom" }), Ue = Object.freeze({ x: "center", y: "center" }), Et = Object.freeze({ x: "center", y: "top" }), It = Object.freeze({ x: "center", y: "bottom" }), Lt = Object.freeze({ x: "right", y: "center" }), Zt = Object.freeze({ x: "left", y: "center" }), un = Object.freeze([
|
|
517
|
-
Zt,
|
|
518
|
-
Lt,
|
|
519
|
-
Et,
|
|
520
|
-
It,
|
|
521
|
-
Y,
|
|
522
|
-
We,
|
|
523
|
-
ge,
|
|
524
|
-
Xe,
|
|
525
|
-
Ue
|
|
526
|
-
]), qe = (t, e) => t.x === e.x && t.y === e.y, ln = (t, e) => {
|
|
527
|
-
if (typeof e == "object") {
|
|
528
|
-
let r = !0;
|
|
529
|
-
return "x" in e && (t.x === e.x || (r = !1)), "y" in e && (t.y === e.y || (r = !1)), r;
|
|
530
|
-
}
|
|
531
|
-
return t.x === e || t.y === e;
|
|
532
|
-
}, kt = (t) => [t.x, t.y], ne = (t) => H(_(t)) === "x", cn = (t) => H(_(t)) === "y", pn = (t) => `${t.x}${zt(t.y)}`, dn = (t, e) => {
|
|
533
|
-
let r, n;
|
|
534
|
-
if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = _(t), n = _(e ?? t)), H(r) === H(n) && r !== "center" && n !== "center")
|
|
535
|
-
throw new Error(
|
|
536
|
-
`[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`
|
|
537
|
-
);
|
|
538
|
-
const o = { ...Ue };
|
|
539
|
-
return r === "center" ? ne(n) ? [o.x, o.y] = [n, r] : [o.x, o.y] = [r, n] : n === "center" ? ne(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r] : ne(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r], o;
|
|
540
|
-
}, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
541
|
-
__proto__: null,
|
|
542
|
-
BOTTOM_CENTER: It,
|
|
543
|
-
BOTTOM_LEFT: ge,
|
|
544
|
-
BOTTOM_RIGHT: Xe,
|
|
545
|
-
CENTER: Ue,
|
|
546
|
-
CENTER_LOCATIONS: Ie,
|
|
547
|
-
LEFT_CENTER: Zt,
|
|
548
|
-
RIGHT_CENTER: Lt,
|
|
549
|
-
TOP_CENTER: Et,
|
|
550
|
-
TOP_LEFT: Y,
|
|
551
|
-
TOP_RIGHT: We,
|
|
552
|
-
XY_LOCATIONS: un,
|
|
553
|
-
X_LOCATIONS: le,
|
|
554
|
-
Y_LOCATIONS: ce,
|
|
555
|
-
construct: _,
|
|
556
|
-
constructXY: dn,
|
|
557
|
-
corner: St,
|
|
558
|
-
crude: nn,
|
|
559
|
-
direction: H,
|
|
560
|
-
isX: ne,
|
|
561
|
-
isY: cn,
|
|
562
|
-
location: Le,
|
|
563
|
-
outer: nr,
|
|
564
|
-
rotate90: sn,
|
|
565
|
-
swap: on,
|
|
566
|
-
x: Qr,
|
|
567
|
-
xy: an,
|
|
568
|
-
xyCouple: kt,
|
|
569
|
-
xyEquals: qe,
|
|
570
|
-
xyMatches: ln,
|
|
571
|
-
xyToString: pn,
|
|
572
|
-
y: en
|
|
573
|
-
}, Symbol.toStringTag, { value: "Module" })), Oe = u.union([
|
|
574
|
-
u.number(),
|
|
575
|
-
K,
|
|
576
|
-
ue,
|
|
577
|
-
_e,
|
|
578
|
-
Qt,
|
|
579
|
-
ot
|
|
580
|
-
]), y = (t, e) => {
|
|
581
|
-
if (typeof t == "string") {
|
|
582
|
-
if (e === void 0)
|
|
583
|
-
throw new Error("The y coordinate must be given.");
|
|
584
|
-
return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
|
|
585
|
-
}
|
|
586
|
-
return typeof t == "number" ? { x: t, y: e ?? t } : Array.isArray(t) ? { x: t[0], y: t[1] } : "signedWidth" in t ? { x: t.signedWidth, y: t.signedHeight } : "clientX" in t ? { x: t.clientX, y: t.clientY } : "width" in t ? { x: t.width, y: t.height } : { x: t.x, y: t.y };
|
|
587
|
-
}, T = Object.freeze({ x: 0, y: 0 }), Rt = Object.freeze({ x: 1, y: 1 }), yn = Object.freeze({ x: 1 / 0, y: 1 / 0 }), fn = Object.freeze({ x: NaN, y: NaN }), ie = (t, e, r = 0) => {
|
|
588
|
-
const n = y(t), o = y(e);
|
|
589
|
-
return r === 0 ? n.x === o.x && n.y === o.y : Math.abs(n.x - o.x) <= r && Math.abs(n.y - o.y) <= r;
|
|
590
|
-
}, hn = (t) => ie(t, T), gn = (t, e, r = e) => {
|
|
591
|
-
const n = y(t);
|
|
592
|
-
return { x: n.x * e, y: n.y * r };
|
|
593
|
-
}, Nt = (t, e) => {
|
|
594
|
-
const r = y(t);
|
|
595
|
-
return { x: r.x + e, y: r.y };
|
|
596
|
-
}, Pt = (t, e) => {
|
|
597
|
-
const r = y(t);
|
|
598
|
-
return { x: r.x, y: r.y + e };
|
|
599
|
-
}, ae = (t, e, r, ...n) => typeof e == "string" && typeof r == "number" ? e === "x" ? Nt(t, r) : Pt(t, r) : [t, e, r ?? T, ...n].reduce((o, s) => {
|
|
600
|
-
const i = y(s);
|
|
601
|
-
return { x: o.x + i.x, y: o.y + i.y };
|
|
602
|
-
}, T), bn = (t, e, r) => {
|
|
603
|
-
const n = y(t);
|
|
604
|
-
return e === "x" ? { x: r, y: n.y } : { x: n.x, y: r };
|
|
605
|
-
}, mn = (t, e) => {
|
|
606
|
-
const r = y(t), n = y(e);
|
|
607
|
-
return Math.sqrt((r.x - n.x) ** 2 + (r.y - n.y) ** 2);
|
|
608
|
-
}, xn = (t, e) => {
|
|
609
|
-
const r = y(t), n = y(e);
|
|
610
|
-
return { x: n.x - r.x, y: n.y - r.y };
|
|
611
|
-
}, wn = (t) => {
|
|
612
|
-
const e = y(t);
|
|
613
|
-
return Number.isNaN(e.x) || Number.isNaN(e.y);
|
|
614
|
-
}, vn = (t) => {
|
|
615
|
-
const e = y(t);
|
|
616
|
-
return Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
617
|
-
}, $n = (t) => {
|
|
618
|
-
const e = y(t);
|
|
619
|
-
return [e.x, e.y];
|
|
620
|
-
}, On = (t) => {
|
|
621
|
-
const e = y(t);
|
|
622
|
-
return { left: e.x, top: e.y };
|
|
623
|
-
}, je = (t, e = 0) => {
|
|
624
|
-
const r = y(t);
|
|
625
|
-
return { x: Number(r.x.toFixed(e)), y: Number(r.y.toFixed(e)) };
|
|
626
|
-
}, ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
627
|
-
__proto__: null,
|
|
628
|
-
INFINITY: yn,
|
|
629
|
-
NAN: fn,
|
|
630
|
-
ONE: Rt,
|
|
631
|
-
ZERO: T,
|
|
632
|
-
clientXY: ot,
|
|
633
|
-
construct: y,
|
|
634
|
-
couple: $n,
|
|
635
|
-
crudeZ: Oe,
|
|
636
|
-
css: On,
|
|
637
|
-
distance: mn,
|
|
638
|
-
equals: ie,
|
|
639
|
-
isFinite: vn,
|
|
640
|
-
isNan: wn,
|
|
641
|
-
isZero: hn,
|
|
642
|
-
scale: gn,
|
|
643
|
-
set: bn,
|
|
644
|
-
translate: ae,
|
|
645
|
-
translateX: Nt,
|
|
646
|
-
translateY: Pt,
|
|
647
|
-
translation: xn,
|
|
648
|
-
truncate: je,
|
|
649
|
-
xy: K
|
|
650
|
-
}, Symbol.toStringTag, { value: "Module" })), W = u.union([u.number(), u.string()]);
|
|
651
|
-
u.object({
|
|
652
|
-
top: W,
|
|
653
|
-
left: W,
|
|
654
|
-
width: W,
|
|
655
|
-
height: W
|
|
656
|
-
});
|
|
657
|
-
u.object({
|
|
658
|
-
left: u.number(),
|
|
659
|
-
top: u.number(),
|
|
660
|
-
right: u.number(),
|
|
661
|
-
bottom: u.number()
|
|
662
|
-
});
|
|
663
|
-
const jn = u.object({
|
|
664
|
-
one: K,
|
|
665
|
-
two: K,
|
|
666
|
-
root: St
|
|
667
|
-
}), Dt = { one: T, two: T, root: Y }, An = { one: T, two: Rt, root: ge }, Vt = (t, e) => ({
|
|
668
|
-
one: t.one,
|
|
669
|
-
two: t.two,
|
|
670
|
-
root: e ?? t.root
|
|
671
|
-
}), d = (t, e, r = 0, n = 0, o) => {
|
|
672
|
-
const s = {
|
|
673
|
-
one: { ...T },
|
|
674
|
-
two: { ...T },
|
|
675
|
-
root: o ?? Y
|
|
676
|
-
};
|
|
677
|
-
if (typeof t == "number") {
|
|
678
|
-
if (typeof e != "number")
|
|
679
|
-
throw new Error("Box constructor called with invalid arguments");
|
|
680
|
-
return s.one = { x: t, y: e }, s.two = { x: s.one.x + r, y: s.one.y + n }, s;
|
|
681
|
-
}
|
|
682
|
-
return "one" in t && "two" in t && "root" in t ? { ...t, root: o ?? t.root } : ("getBoundingClientRect" in t && (t = t.getBoundingClientRect()), "left" in t ? (s.one = { x: t.left, y: t.top }, s.two = { x: t.right, y: t.bottom }, s) : (s.one = t, e == null ? s.two = { x: s.one.x + r, y: s.one.y + n } : typeof e == "number" ? s.two = { x: s.one.x + e, y: s.one.y + r } : "width" in e ? s.two = {
|
|
683
|
-
x: s.one.x + e.width,
|
|
684
|
-
y: s.one.y + e.height
|
|
685
|
-
} : "signedWidth" in e ? s.two = {
|
|
686
|
-
x: s.one.x + e.signedWidth,
|
|
687
|
-
y: s.one.y + e.signedHeight
|
|
688
|
-
} : s.two = e, s));
|
|
689
|
-
}, Tn = (t, e, r) => {
|
|
690
|
-
const n = d(t);
|
|
691
|
-
if (typeof e == "string") {
|
|
692
|
-
if (r == null)
|
|
693
|
-
throw new Error("Invalid arguments for resize");
|
|
694
|
-
const o = E(e);
|
|
695
|
-
return d(
|
|
696
|
-
n.one,
|
|
697
|
-
void 0,
|
|
698
|
-
o === "x" ? r : z(n),
|
|
699
|
-
o === "y" ? r : S(n),
|
|
700
|
-
n.root
|
|
701
|
-
);
|
|
702
|
-
}
|
|
703
|
-
return d(n.one, e, void 0, void 0, n.root);
|
|
704
|
-
}, Mn = (t, e) => {
|
|
705
|
-
const r = d(t);
|
|
706
|
-
return "one" in e ? M(e) >= M(r) && Z(e) <= Z(r) && C(e) >= C(r) && k(e) <= k(r) : e.x >= M(r) && e.x <= Z(r) && e.y >= C(r) && e.y <= k(r);
|
|
707
|
-
}, Cn = (t, e) => ie(t.one, e.one) && ie(t.two, e.two) && qe(t.root, e.root), Kt = (t) => ({
|
|
708
|
-
width: z(t),
|
|
709
|
-
height: S(t)
|
|
710
|
-
}), _n = (t) => ({
|
|
711
|
-
signedWidth: be(t),
|
|
712
|
-
signedHeight: me(t)
|
|
713
|
-
}), zn = (t) => ({
|
|
714
|
-
top: C(t),
|
|
715
|
-
left: M(t),
|
|
716
|
-
width: z(t),
|
|
717
|
-
height: S(t)
|
|
718
|
-
}), Ge = (t, e, r = !1) => {
|
|
719
|
-
const n = E(e) === "y" ? me(t) : be(t);
|
|
720
|
-
return r ? n : Math.abs(n);
|
|
721
|
-
}, F = (t, e) => {
|
|
722
|
-
const r = d(t);
|
|
723
|
-
return {
|
|
724
|
-
x: e.x === "center" ? Ae(r).x : B(r, e.x),
|
|
725
|
-
y: e.y === "center" ? Ae(r).y : B(r, e.y)
|
|
726
|
-
};
|
|
727
|
-
}, B = (t, e) => {
|
|
728
|
-
const r = d(t), n = kt(r.root).includes(e) ? Math.min : Math.max;
|
|
729
|
-
return le.includes(e) ? n(r.one.x, r.two.x) : n(r.one.y, r.two.y);
|
|
730
|
-
}, Sn = (t) => t.one.x === t.two.x && t.one.y === t.two.y, z = (t) => Ge(t, "x"), S = (t) => Ge(t, "y"), be = (t) => {
|
|
731
|
-
const e = d(t);
|
|
732
|
-
return e.two.x - e.one.x;
|
|
733
|
-
}, me = (t) => {
|
|
734
|
-
const e = d(t);
|
|
735
|
-
return e.two.y - e.one.y;
|
|
736
|
-
}, Ht = (t) => F(t, Y), En = (t) => F(t, We), In = (t) => F(t, ge), Ln = (t) => F(t, Xe), Z = (t) => B(t, "right"), k = (t) => B(t, "bottom"), M = (t) => B(t, "left"), C = (t) => B(t, "top"), Ae = (t) => ae(Ht(t), {
|
|
737
|
-
x: be(t) / 2,
|
|
738
|
-
y: me(t) / 2
|
|
739
|
-
}), Je = (t) => {
|
|
740
|
-
const e = d(t);
|
|
741
|
-
return e.root.x === "left" ? M(e) : Z(e);
|
|
742
|
-
}, Qe = (t) => {
|
|
743
|
-
const e = d(t);
|
|
744
|
-
return e.root.y === "top" ? C(e) : k(e);
|
|
745
|
-
}, Zn = (t) => ({ x: Je(t), y: Qe(t) }), oe = (t) => {
|
|
746
|
-
const e = d(t);
|
|
747
|
-
return { lower: e.one.x, upper: e.two.x };
|
|
748
|
-
}, se = (t) => {
|
|
749
|
-
const e = d(t);
|
|
750
|
-
return { lower: e.one.y, upper: e.two.y };
|
|
751
|
-
}, kn = (t, e) => Vt(t, e), Bn = (t, e) => {
|
|
752
|
-
const r = d(t), n = le.includes(e) ? "x" : ce.includes(e) ? "y" : null;
|
|
753
|
-
if (n === null)
|
|
754
|
-
throw new Error(`Invalid location: ${Bt}`);
|
|
755
|
-
const o = e === "top" || e === "left" ? Math.min : Math.max, s = { ...r.one }, i = { ...r.two };
|
|
756
|
-
return s[n] = o(r.one[n], r.two[n]), i[n] = o(r.one[n], r.two[n]), [s, i];
|
|
757
|
-
}, Rn = (t, e) => {
|
|
758
|
-
const r = d(t), n = d(e), o = Je(n) + (z(n) - z(r)) / 2, s = Qe(n) + (S(n) - S(r)) / 2;
|
|
759
|
-
return d({ x: o, y: s }, Kt(r));
|
|
760
|
-
}, Yt = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, Nn = (t) => z(t) / S(t), Pn = (t, e, r) => {
|
|
761
|
-
if (typeof e == "string") {
|
|
762
|
-
if (r == null)
|
|
763
|
-
throw new Error("Undefined amount passed into box.translate");
|
|
764
|
-
const o = E(e);
|
|
765
|
-
e = y(o, r);
|
|
766
|
-
}
|
|
767
|
-
const n = d(t);
|
|
768
|
-
return d(
|
|
769
|
-
ae(n.one, e),
|
|
770
|
-
ae(n.two, e),
|
|
771
|
-
void 0,
|
|
772
|
-
void 0,
|
|
773
|
-
n.root
|
|
774
|
-
);
|
|
775
|
-
}, Dn = (t, e) => {
|
|
776
|
-
const r = Math.max(M(t), M(e)), n = Math.max(C(t), C(e)), o = Math.min(Z(t), Z(e)), s = Math.min(k(t), k(e));
|
|
777
|
-
return r > o || n > s ? Dt : d({ x: r, y: n }, { x: o, y: s }, void 0, void 0, t.root);
|
|
778
|
-
}, Vn = (t) => z(t) * S(t), Kn = (t, e) => {
|
|
779
|
-
const r = d(t);
|
|
780
|
-
return d(
|
|
781
|
-
je(r.one, e),
|
|
782
|
-
je(r.two, e),
|
|
783
|
-
void 0,
|
|
784
|
-
void 0,
|
|
785
|
-
r.root
|
|
786
|
-
);
|
|
787
|
-
}, Hn = (t, e, r, n, o, s) => {
|
|
788
|
-
const i = { x: t, y: e }, a = { x: t + r, y: e + n };
|
|
789
|
-
return o.x !== s.x && (o.x === "center" ? (i.x -= r / 2, a.x -= r / 2) : (i.x -= r, a.x -= r)), o.y !== s.y && (o.y === "center" ? (i.y -= n / 2, a.y -= n / 2) : (i.y -= n, a.y -= n)), d(i, a, void 0, void 0, s);
|
|
790
|
-
}, Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
791
|
-
__proto__: null,
|
|
792
|
-
DECIMAL: An,
|
|
793
|
-
ZERO: Dt,
|
|
794
|
-
area: Vn,
|
|
795
|
-
areaIsZero: Sn,
|
|
796
|
-
aspect: Nn,
|
|
797
|
-
bottom: k,
|
|
798
|
-
bottomLeft: In,
|
|
799
|
-
bottomRight: Ln,
|
|
800
|
-
box: jn,
|
|
801
|
-
center: Ae,
|
|
802
|
-
construct: d,
|
|
803
|
-
constructWithAlternateRoot: Hn,
|
|
804
|
-
contains: Mn,
|
|
805
|
-
copy: Vt,
|
|
806
|
-
css: zn,
|
|
807
|
-
dim: Ge,
|
|
808
|
-
dims: Kt,
|
|
809
|
-
edgePoints: Bn,
|
|
810
|
-
equals: Cn,
|
|
811
|
-
height: S,
|
|
812
|
-
intersection: Dn,
|
|
813
|
-
isBox: Yt,
|
|
814
|
-
left: M,
|
|
815
|
-
loc: B,
|
|
816
|
-
positionInCenter: Rn,
|
|
817
|
-
reRoot: kn,
|
|
818
|
-
resize: Tn,
|
|
819
|
-
right: Z,
|
|
820
|
-
root: Zn,
|
|
821
|
-
signedDims: _n,
|
|
822
|
-
signedHeight: me,
|
|
823
|
-
signedWidth: be,
|
|
824
|
-
top: C,
|
|
825
|
-
topLeft: Ht,
|
|
826
|
-
topRight: En,
|
|
827
|
-
translate: Pn,
|
|
828
|
-
truncate: Kn,
|
|
829
|
-
width: z,
|
|
830
|
-
x: Je,
|
|
831
|
-
xBounds: oe,
|
|
832
|
-
xyLoc: F,
|
|
833
|
-
y: Qe,
|
|
834
|
-
yBounds: se
|
|
835
|
-
}, Symbol.toStringTag, { value: "Module" })), Ft = u.object({ signedWidth: u.number(), signedHeight: u.number() }), Yn = u.union([_e, Ft, K, ue]), Fn = { width: 0, height: 0 }, Wn = { width: 1, height: 1 }, g = (t, e) => typeof t == "number" ? { width: t, height: e ?? t } : Array.isArray(t) ? { width: t[0], height: t[1] } : "x" in t ? { width: t.x, height: t.y } : "signedWidth" in t ? { width: t.signedWidth, height: t.signedHeight } : { ...t }, Xn = (t, e) => {
|
|
836
|
-
if (e == null)
|
|
837
|
-
return !1;
|
|
838
|
-
const r = g(t), n = g(e);
|
|
839
|
-
return r.width === n.width && r.height === n.height;
|
|
840
|
-
}, Un = (t) => {
|
|
841
|
-
const e = g(t);
|
|
842
|
-
return { width: e.height, height: e.width };
|
|
843
|
-
}, qn = (t) => {
|
|
844
|
-
const e = g(t);
|
|
845
|
-
return `0 0 ${e.width} ${e.height}`;
|
|
846
|
-
}, Gn = (t) => {
|
|
847
|
-
const e = g(t);
|
|
848
|
-
return [e.width, e.height];
|
|
849
|
-
}, Jn = (t) => ({
|
|
850
|
-
width: Math.max(...t.map((e) => g(e).width)),
|
|
851
|
-
height: Math.max(...t.map((e) => g(e).height))
|
|
852
|
-
}), Qn = (t) => ({
|
|
853
|
-
width: Math.min(...t.map((e) => g(e).width)),
|
|
854
|
-
height: Math.min(...t.map((e) => g(e).height))
|
|
855
|
-
}), eo = (t, e) => {
|
|
856
|
-
const r = g(t);
|
|
857
|
-
return { width: r.width * e, height: r.height * e };
|
|
858
|
-
}, Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
859
|
-
__proto__: null,
|
|
860
|
-
DECIMAL: Wn,
|
|
861
|
-
ZERO: Fn,
|
|
862
|
-
construct: g,
|
|
863
|
-
couple: Gn,
|
|
864
|
-
crude: Yn,
|
|
865
|
-
dimensions: _e,
|
|
866
|
-
equals: Xn,
|
|
867
|
-
max: Jn,
|
|
868
|
-
min: Qn,
|
|
869
|
-
scale: eo,
|
|
870
|
-
signed: Ft,
|
|
871
|
-
svgViewBox: qn,
|
|
872
|
-
swap: Un
|
|
873
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
874
|
-
var to = Object.defineProperty, ro = (t, e, r) => e in t ? to(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, A = (t, e, r) => (ro(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
875
|
-
const no = (t, e, r) => (e != null && (t = Math.max(t, e)), r != null && (t = Math.min(t, r)), t), oo = u.object({ offset: Oe, scale: Oe }), so = (t) => (e, r, n, o) => r === "dimension" ? [e, n] : [e, o ? n - t : n + t], io = (t) => (e, r, n, o) => [e, o ? n / t : n * t], ao = (t) => (e, r, n) => {
|
|
876
|
-
if (e === null)
|
|
877
|
-
return [t, n];
|
|
878
|
-
const { lower: o, upper: s } = e, { lower: i, upper: a } = t, c = s - o, f = a - i;
|
|
879
|
-
if (r === "dimension")
|
|
880
|
-
return [t, n * (f / c)];
|
|
881
|
-
const I = (n - o) * (f / c) + i;
|
|
882
|
-
return [t, I];
|
|
883
|
-
}, uo = (t) => (e, r, n) => [t, n], lo = () => (t, e, r) => {
|
|
884
|
-
if (t === null)
|
|
885
|
-
throw new Error("cannot invert without bounds");
|
|
886
|
-
if (e === "dimension")
|
|
887
|
-
return [t, r];
|
|
888
|
-
const { lower: n, upper: o } = t;
|
|
889
|
-
return [t, o - (r - n)];
|
|
890
|
-
}, co = (t) => (e, r, n) => {
|
|
891
|
-
const { lower: o, upper: s } = t;
|
|
892
|
-
return n = no(n, o, s), [e, n];
|
|
893
|
-
}, Te = class V {
|
|
894
|
-
constructor() {
|
|
895
|
-
A(this, "ops", []), A(this, "currBounds", null), A(this, "currType", null), A(this, "reversed", !1), this.ops = [];
|
|
896
|
-
}
|
|
897
|
-
static translate(e) {
|
|
898
|
-
return new V().translate(e);
|
|
899
|
-
}
|
|
900
|
-
static magnify(e) {
|
|
901
|
-
return new V().magnify(e);
|
|
902
|
-
}
|
|
903
|
-
static scale(e, r) {
|
|
904
|
-
return new V().scale(e, r);
|
|
905
|
-
}
|
|
906
|
-
translate(e) {
|
|
907
|
-
const r = this.new(), n = so(e);
|
|
908
|
-
return n.type = "translate", r.ops.push(n), r;
|
|
909
|
-
}
|
|
910
|
-
magnify(e) {
|
|
911
|
-
const r = this.new(), n = io(e);
|
|
912
|
-
return n.type = "magnify", r.ops.push(n), r;
|
|
913
|
-
}
|
|
914
|
-
scale(e, r) {
|
|
915
|
-
const n = p(e, r), o = this.new(), s = ao(n);
|
|
916
|
-
return s.type = "scale", o.ops.push(s), o;
|
|
917
|
-
}
|
|
918
|
-
clamp(e, r) {
|
|
919
|
-
const n = p(e, r), o = this.new(), s = co(n);
|
|
920
|
-
return s.type = "clamp", o.ops.push(s), o;
|
|
921
|
-
}
|
|
922
|
-
reBound(e, r) {
|
|
923
|
-
const n = p(e, r), o = this.new(), s = uo(n);
|
|
924
|
-
return s.type = "re-bound", o.ops.push(s), o;
|
|
925
|
-
}
|
|
926
|
-
invert() {
|
|
927
|
-
const e = lo();
|
|
928
|
-
e.type = "invert";
|
|
929
|
-
const r = this.new();
|
|
930
|
-
return r.ops.push(e), r;
|
|
931
|
-
}
|
|
932
|
-
pos(e) {
|
|
933
|
-
return this.exec("position", e);
|
|
934
|
-
}
|
|
935
|
-
dim(e) {
|
|
936
|
-
return this.exec("dimension", e);
|
|
937
|
-
}
|
|
938
|
-
new() {
|
|
939
|
-
const e = new V();
|
|
940
|
-
return e.ops = this.ops.slice(), e.reversed = this.reversed, e;
|
|
941
|
-
}
|
|
942
|
-
exec(e, r) {
|
|
943
|
-
return this.currBounds = null, this.ops.reduce(
|
|
944
|
-
([n, o], s) => s(n, e, o, this.reversed),
|
|
945
|
-
[null, r]
|
|
946
|
-
)[1];
|
|
947
|
-
}
|
|
948
|
-
reverse() {
|
|
949
|
-
const e = this.new();
|
|
950
|
-
e.ops.reverse();
|
|
951
|
-
const r = [];
|
|
952
|
-
return e.ops.forEach((n, o) => {
|
|
953
|
-
if (n.type === "scale" || r.some(([i, a]) => o >= i && o <= a))
|
|
954
|
-
return;
|
|
955
|
-
const s = e.ops.findIndex((i, a) => i.type === "scale" && a > o);
|
|
956
|
-
s !== -1 && r.push([o, s]);
|
|
957
|
-
}), r.forEach(([n, o]) => {
|
|
958
|
-
const s = e.ops.slice(n, o);
|
|
959
|
-
s.unshift(e.ops[o]), e.ops.splice(n, o - n + 1, ...s);
|
|
960
|
-
}), e.reversed = !e.reversed, e;
|
|
961
|
-
}
|
|
962
|
-
};
|
|
963
|
-
A(Te, "IDENTITY", new Te());
|
|
964
|
-
let Me = Te;
|
|
965
|
-
const po = (t) => ({
|
|
966
|
-
scale: {
|
|
967
|
-
x: t.x.dim(1),
|
|
968
|
-
y: t.y.dim(1)
|
|
969
|
-
},
|
|
970
|
-
offset: {
|
|
971
|
-
x: t.x.pos(0),
|
|
972
|
-
y: t.y.pos(0)
|
|
973
|
-
}
|
|
974
|
-
}), Ce = class j {
|
|
975
|
-
constructor(e = new Me(), r = new Me(), n = null) {
|
|
976
|
-
A(this, "x"), A(this, "y"), A(this, "currRoot"), this.x = e, this.y = r, this.currRoot = n;
|
|
977
|
-
}
|
|
978
|
-
static translate(e, r) {
|
|
979
|
-
return new j().translate(e, r);
|
|
980
|
-
}
|
|
981
|
-
static translateX(e) {
|
|
982
|
-
return new j().translateX(e);
|
|
983
|
-
}
|
|
984
|
-
static translateY(e) {
|
|
985
|
-
return new j().translateY(e);
|
|
986
|
-
}
|
|
987
|
-
static clamp(e) {
|
|
988
|
-
return new j().clamp(e);
|
|
989
|
-
}
|
|
990
|
-
static magnify(e) {
|
|
991
|
-
return new j().magnify(e);
|
|
992
|
-
}
|
|
993
|
-
static scale(e) {
|
|
994
|
-
return new j().scale(e);
|
|
995
|
-
}
|
|
996
|
-
static reBound(e) {
|
|
997
|
-
return new j().reBound(e);
|
|
998
|
-
}
|
|
999
|
-
translate(e, r) {
|
|
1000
|
-
const n = y(e, r), o = this.copy();
|
|
1001
|
-
return o.x = this.x.translate(n.x), o.y = this.y.translate(n.y), o;
|
|
1002
|
-
}
|
|
1003
|
-
translateX(e) {
|
|
1004
|
-
const r = this.copy();
|
|
1005
|
-
return r.x = this.x.translate(e), r;
|
|
1006
|
-
}
|
|
1007
|
-
translateY(e) {
|
|
1008
|
-
const r = this.copy();
|
|
1009
|
-
return r.y = this.y.translate(e), r;
|
|
1010
|
-
}
|
|
1011
|
-
magnify(e) {
|
|
1012
|
-
const r = this.copy();
|
|
1013
|
-
return r.x = this.x.magnify(e.x), r.y = this.y.magnify(e.y), r;
|
|
1014
|
-
}
|
|
1015
|
-
scale(e) {
|
|
1016
|
-
const r = this.copy();
|
|
1017
|
-
if (Yt(e)) {
|
|
1018
|
-
const n = this.currRoot;
|
|
1019
|
-
return r.currRoot = e.root, n != null && !qe(n, e.root) && (n.x !== e.root.x && (r.x = r.x.invert()), n.y !== e.root.y && (r.y = r.y.invert())), r.x = r.x.scale(oe(e)), r.y = r.y.scale(se(e)), r;
|
|
1020
|
-
}
|
|
1021
|
-
return r.x = r.x.scale(e.width), r.y = r.y.scale(e.height), r;
|
|
1022
|
-
}
|
|
1023
|
-
reBound(e) {
|
|
1024
|
-
const r = this.copy();
|
|
1025
|
-
return r.x = this.x.reBound(oe(e)), r.y = this.y.reBound(se(e)), r;
|
|
1026
|
-
}
|
|
1027
|
-
clamp(e) {
|
|
1028
|
-
const r = this.copy();
|
|
1029
|
-
return r.x = this.x.clamp(oe(e)), r.y = this.y.clamp(se(e)), r;
|
|
1030
|
-
}
|
|
1031
|
-
copy() {
|
|
1032
|
-
const e = new j();
|
|
1033
|
-
return e.currRoot = this.currRoot, e.x = this.x, e.y = this.y, e;
|
|
1034
|
-
}
|
|
1035
|
-
reverse() {
|
|
1036
|
-
const e = this.copy();
|
|
1037
|
-
return e.x = this.x.reverse(), e.y = this.y.reverse(), e;
|
|
1038
|
-
}
|
|
1039
|
-
pos(e) {
|
|
1040
|
-
return { x: this.x.pos(e.x), y: this.y.pos(e.y) };
|
|
1041
|
-
}
|
|
1042
|
-
box(e) {
|
|
1043
|
-
return d(
|
|
1044
|
-
this.pos(e.one),
|
|
1045
|
-
this.pos(e.two),
|
|
1046
|
-
0,
|
|
1047
|
-
0,
|
|
1048
|
-
this.currRoot ?? e.root
|
|
1049
|
-
);
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
A(Ce, "IDENTITY", new Ce());
|
|
1053
|
-
let yo = Ce;
|
|
1054
|
-
const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1055
|
-
__proto__: null,
|
|
1056
|
-
Scale: Me,
|
|
1057
|
-
XY: yo,
|
|
1058
|
-
crudeXYTransform: oo,
|
|
1059
|
-
xyScaleToTransform: po
|
|
1060
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1061
|
-
function Wt(t) {
|
|
1062
|
-
var e, r, n = "";
|
|
1063
|
-
if (typeof t == "string" || typeof t == "number")
|
|
1064
|
-
n += t;
|
|
1065
|
-
else if (typeof t == "object")
|
|
1066
|
-
if (Array.isArray(t)) {
|
|
1067
|
-
var o = t.length;
|
|
1068
|
-
for (e = 0; e < o; e++)
|
|
1069
|
-
t[e] && (r = Wt(t[e])) && (n && (n += " "), n += r);
|
|
1070
|
-
} else
|
|
1071
|
-
for (r in t)
|
|
1072
|
-
t[r] && (n && (n += " "), n += r);
|
|
1073
|
-
return n;
|
|
1074
|
-
}
|
|
1075
|
-
function fo() {
|
|
1076
|
-
for (var t, e, r = 0, n = "", o = arguments.length; r < o; r++)
|
|
1077
|
-
(t = arguments[r]) && (e = Wt(t)) && (n && (n += " "), n += e);
|
|
1078
|
-
return n;
|
|
1079
|
-
}
|
|
1080
|
-
const ho = fo, tt = "-", rt = "__", X = "--", Xt = (t) => {
|
|
1081
|
-
const e = (...r) => ho(...r);
|
|
1082
|
-
return e.B = (r) => t + tt + r, e.E = (r) => t + rt + r, e.M = (r) => t + X + r, e.BM = (r, n) => e.B(r) + X + n, e.BE = (r, n) => e.B(r) + rt + n, e.BEM = (r, n, o) => e.BE(r, n) + X + o, e.extend = (r) => Xt(e.B(r)), e.var = (r) => X + t + tt + r, e;
|
|
1083
|
-
}, go = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, nt = u.string().regex(go), P = u.number().min(0).max(255), bo = u.number().min(0).max(1), Ut = u.tuple([P, P, P, bo]), mo = u.tuple([P, P, P]), xo = u.object({ rgba255: Ut }), wo = (t) => t == null ? void 0 : new D(t).hex, vo = (t) => {
|
|
1084
|
-
if (t == null)
|
|
1085
|
-
return;
|
|
1086
|
-
const e = D.z.safeParse(t);
|
|
1087
|
-
if (e.success)
|
|
1088
|
-
return e.data.rgbaCSS;
|
|
1089
|
-
if (typeof t == "string")
|
|
1090
|
-
return t;
|
|
1091
|
-
throw e.error;
|
|
1092
|
-
}, b = class b {
|
|
1093
|
-
/**
|
|
1094
|
-
* @constructor Creates a new color from the given color value. The color value can be
|
|
1095
|
-
* a hex string, an array of RGB or RGBA values, or another color.
|
|
1096
|
-
*
|
|
1097
|
-
* @param color - The color value to create the color from. If the color value is a
|
|
1098
|
-
* string, it must be a valid hex color (with or without the '#') with a hasheless
|
|
1099
|
-
* length 6 or 8. If the hex color is 8 characters long, the last twoc haracters are
|
|
1100
|
-
* used as the alpha value. If the color value is an array, it must be an array of
|
|
1101
|
-
* length 3 or 4, with each value between 0 and 255. If the color value is another
|
|
1102
|
-
* color, the color will be copied.
|
|
1103
|
-
*
|
|
1104
|
-
* @param alpha - An optional alpha value to set. If the color value carries its own
|
|
1105
|
-
* alpha value, this value will be ignored. Defaults to 1.
|
|
1106
|
-
*/
|
|
1107
|
-
constructor(e, r = 1) {
|
|
1108
|
-
/**
|
|
1109
|
-
* @property the color as an RGBA tuple, with each color value between 0 and 255,
|
|
1110
|
-
* and the alpha value between 0 and 1.
|
|
1111
|
-
*/
|
|
1112
|
-
N(this, "rgba255");
|
|
1113
|
-
if (typeof e == "string")
|
|
1114
|
-
this.rgba255 = b.fromHex(e, r);
|
|
1115
|
-
else if (Array.isArray(e)) {
|
|
1116
|
-
if (e.length < 3 || e.length > 4)
|
|
1117
|
-
throw new Error(`Invalid color: [${e.join(", ")}]`);
|
|
1118
|
-
this.rgba255 = e.length === 3 ? [...e, r ?? 1] : e;
|
|
1119
|
-
} else
|
|
1120
|
-
this.rgba255 = e.rgba255;
|
|
1121
|
-
}
|
|
1122
|
-
/**
|
|
1123
|
-
* @returns true if the given color is semantically equal to this color. Different
|
|
1124
|
-
* representations of the same color are considered equal (e.g. hex and rgba).
|
|
1125
|
-
*/
|
|
1126
|
-
equals(e) {
|
|
1127
|
-
if (e == null)
|
|
1128
|
-
return !1;
|
|
1129
|
-
const r = new b(e);
|
|
1130
|
-
return this.rgba255.every((n, o) => n === r.rgba255[o]);
|
|
1131
|
-
}
|
|
1132
|
-
/**
|
|
1133
|
-
* @returns the hex representation of the color. If the color has an opacity of 1,
|
|
1134
|
-
* the returned hex will be 6 characters long. Otherwise, it will be 8 characters
|
|
1135
|
-
* long.
|
|
1136
|
-
*/
|
|
1137
|
-
get hex() {
|
|
1138
|
-
const [e, r, n, o] = this.rgba255;
|
|
1139
|
-
return `#${U(e)}${U(r)}${U(n)}${o === 1 ? "" : U(o * 255)}`;
|
|
1140
|
-
}
|
|
1141
|
-
/**
|
|
1142
|
-
* @returns the color as a CSS RGBA string.
|
|
1143
|
-
*/
|
|
1144
|
-
get rgbaCSS() {
|
|
1145
|
-
const [e, r, n, o] = this.rgba255;
|
|
1146
|
-
return `rgba(${e}, ${r}, ${n}, ${o})`;
|
|
1147
|
-
}
|
|
1148
|
-
/**
|
|
1149
|
-
* @returns the color as a CSS RGB string with no alpha value.
|
|
1150
|
-
*/
|
|
1151
|
-
get rgbCSS() {
|
|
1152
|
-
return `rgb(${this.rgbString})`;
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* @returns the color as an RGB string, with each color value between 0 and 255.
|
|
1156
|
-
* @example "255, 255, 255"
|
|
1157
|
-
*/
|
|
1158
|
-
get rgbString() {
|
|
1159
|
-
const [e, r, n] = this.rgba255;
|
|
1160
|
-
return `${e}, ${r}, ${n}`;
|
|
1161
|
-
}
|
|
1162
|
-
/**
|
|
1163
|
-
* @returns the color as an RGBA tuple, with each color value between 0 and 1,
|
|
1164
|
-
* and the alpha value between 0 and 1.
|
|
1165
|
-
*/
|
|
1166
|
-
get rgba1() {
|
|
1167
|
-
return [...this.rgb1, this.rgba255[3]];
|
|
1168
|
-
}
|
|
1169
|
-
get rgb1() {
|
|
1170
|
-
return [this.rgba255[0] / 255, this.rgba255[1] / 255, this.rgba255[2] / 255];
|
|
1171
|
-
}
|
|
1172
|
-
/** @returns the red value of the color, between 0 and 255. */
|
|
1173
|
-
get r() {
|
|
1174
|
-
return this.rgba255[0];
|
|
1175
|
-
}
|
|
1176
|
-
/** @returns the green value of the color, between 0 and 255. */
|
|
1177
|
-
get g() {
|
|
1178
|
-
return this.rgba255[1];
|
|
1179
|
-
}
|
|
1180
|
-
/** @returns the blue value of the color, between 0 and 255. */
|
|
1181
|
-
get b() {
|
|
1182
|
-
return this.rgba255[2];
|
|
1183
|
-
}
|
|
1184
|
-
/** @returns the alpha value of the color, between 0 and 1. */
|
|
1185
|
-
get a() {
|
|
1186
|
-
return this.rgba255[3];
|
|
1187
|
-
}
|
|
1188
|
-
/** @returns true if all RGBA values are 0. */
|
|
1189
|
-
get isZero() {
|
|
1190
|
-
return this.equals(qt);
|
|
1191
|
-
}
|
|
1192
|
-
get hsla() {
|
|
1193
|
-
return jo(this.rgba255);
|
|
1194
|
-
}
|
|
1195
|
-
/**
|
|
1196
|
-
* Creates a new color with the given alpha.
|
|
1197
|
-
*
|
|
1198
|
-
* @param alpha - The alpha value to set. If the value is greater than 1, it will be
|
|
1199
|
-
* divided by 100.
|
|
1200
|
-
* @returns A new color with the given alpha.
|
|
1201
|
-
*/
|
|
1202
|
-
setAlpha(e) {
|
|
1203
|
-
const [r, n, o] = this.rgba255;
|
|
1204
|
-
if (e > 100)
|
|
1205
|
-
throw new Error(`Color opacity must be between 0 and 100, got ${e}`);
|
|
1206
|
-
return e > 1 && (e = e / 100), new b([r, n, o, e]);
|
|
1207
|
-
}
|
|
1208
|
-
/**
|
|
1209
|
-
* @returns the luminance of the color, between 0 and 1.
|
|
1210
|
-
*/
|
|
1211
|
-
get luminance() {
|
|
1212
|
-
const [e, r, n] = this.rgb1.map((o) => o <= 0.03928 ? o / 12.92 : ((o + 0.055) / 1.055) ** 2.4);
|
|
1213
|
-
return Number((0.2126 * e + 0.7152 * r + 0.0722 * n).toFixed(3));
|
|
1214
|
-
}
|
|
1215
|
-
/**
|
|
1216
|
-
* @returns the contrast ratio between this color and the given color. The contrast
|
|
1217
|
-
* ratio is a number between 1 and 21, where 1 is the lowest contrast and 21 is the
|
|
1218
|
-
* highest.
|
|
1219
|
-
* @param other
|
|
1220
|
-
* @returns
|
|
1221
|
-
*/
|
|
1222
|
-
contrast(e) {
|
|
1223
|
-
const r = new b(e), n = this.luminance, o = r.luminance;
|
|
1224
|
-
return (Math.max(n, o) + 0.5) / (Math.min(n, o) + 0.5);
|
|
1225
|
-
}
|
|
1226
|
-
pickByContrast(...e) {
|
|
1227
|
-
if (e.length === 0)
|
|
1228
|
-
throw new Error("[Color.pickByContrast] - must provide at least one color");
|
|
1229
|
-
const [r] = e.map((n) => new b(n)).sort((n, o) => this.contrast(o) - this.contrast(n));
|
|
1230
|
-
return r;
|
|
1231
|
-
}
|
|
1232
|
-
get isDark() {
|
|
1233
|
-
return this.luminance < 0.5;
|
|
1234
|
-
}
|
|
1235
|
-
get isLight() {
|
|
1236
|
-
return !this.isDark;
|
|
1237
|
-
}
|
|
1238
|
-
static fromHex(e, r = 1) {
|
|
1239
|
-
if (!nt.safeParse(e).success)
|
|
1240
|
-
throw new Error(`Invalid hex color: ${e}`);
|
|
1241
|
-
return e = $o(e), [
|
|
1242
|
-
q(e, 0),
|
|
1243
|
-
q(e, 2),
|
|
1244
|
-
q(e, 4),
|
|
1245
|
-
e.length === 8 ? q(e, 6) / 255 : r
|
|
1246
|
-
];
|
|
1247
|
-
}
|
|
1248
|
-
};
|
|
1249
|
-
N(b, "z", u.union([nt, Ut, mo, u.instanceof(b), xo]).transform((e) => new b(e)));
|
|
1250
|
-
let D = b;
|
|
1251
|
-
const qt = new D([0, 0, 0, 0]), U = (t) => Math.floor(t).toString(16).padStart(2, "0"), q = (t, e) => parseInt(t.slice(e, e + 2), 16), $o = (t) => t.startsWith("#") ? t.slice(1) : t, Oo = (t) => {
|
|
1252
|
-
let [e, r, n] = t;
|
|
1253
|
-
const o = t[3];
|
|
1254
|
-
e /= 360, r /= 100, n /= 100;
|
|
1255
|
-
let s, i, a;
|
|
1256
|
-
if (r === 0)
|
|
1257
|
-
s = i = a = n;
|
|
1258
|
-
else {
|
|
1259
|
-
const c = n < 0.5 ? n * (1 + r) : n + r - n * r, f = 2 * n - c;
|
|
1260
|
-
s = we(f, c, e + 1 / 3), i = we(f, c, e), a = we(f, c, e - 1 / 3);
|
|
1261
|
-
}
|
|
1262
|
-
return [Math.round(s * 255), Math.round(i * 255), Math.round(a * 255), o];
|
|
1263
|
-
}, we = (t, e, r) => (r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? t + (e - t) * 6 * r : r < 1 / 2 ? e : r < 2 / 3 ? t + (e - t) * (2 / 3 - r) * 6 : t), jo = (t) => {
|
|
1264
|
-
let [e, r, n] = t;
|
|
1265
|
-
const o = t[3];
|
|
1266
|
-
e /= 255, r /= 255, n /= 255, e /= 255, r /= 255, n /= 255;
|
|
1267
|
-
const s = Math.max(e, r, n), i = Math.min(e, r, n);
|
|
1268
|
-
let a, c, f = (s + i) / 2;
|
|
1269
|
-
if (s === i)
|
|
1270
|
-
a = c = 0;
|
|
1271
|
-
else {
|
|
1272
|
-
const I = s - i;
|
|
1273
|
-
c = f > 0.5 ? I / (2 - s - i) : I / (s + i), s === e ? a = (r - n) / I + (r < n ? 6 : 0) : s === r ? a = (n - e) / I + 2 : a = (e - r) / I + 4, a /= 6;
|
|
1274
|
-
}
|
|
1275
|
-
return a *= 360, c *= 100, f *= 100, [Math.round(a), Math.round(c), Math.round(f), o];
|
|
1276
|
-
}, Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1277
|
-
__proto__: null,
|
|
1278
|
-
Color: D,
|
|
1279
|
-
ZERO: qt,
|
|
1280
|
-
cssString: vo,
|
|
1281
|
-
fromHSLA: Oo,
|
|
1282
|
-
toHex: wo
|
|
1283
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1284
|
-
class Ao {
|
|
1285
|
-
constructor(e = "") {
|
|
1286
|
-
N(this, "rows", []);
|
|
1287
|
-
N(this, "columns", []);
|
|
1288
|
-
N(this, "prefix");
|
|
1289
|
-
this.prefix = e;
|
|
1290
|
-
}
|
|
1291
|
-
row(e, r, n) {
|
|
1292
|
-
const { prefix: o } = this;
|
|
1293
|
-
return this.rows.push({ startLabel: o + e, endLabel: o + r, size: n }), this;
|
|
1294
|
-
}
|
|
1295
|
-
col(e, r, n) {
|
|
1296
|
-
const { prefix: o } = this;
|
|
1297
|
-
return this.columns.push({ startLabel: o + e, endLabel: o + r, size: n }), this;
|
|
1298
|
-
}
|
|
1299
|
-
build() {
|
|
1300
|
-
return {
|
|
1301
|
-
display: "grid",
|
|
1302
|
-
gridTemplateRows: this.rows.map((e, r) => {
|
|
1303
|
-
let n = r === 0 ? "[" : "";
|
|
1304
|
-
return n += `${e.startLabel}] ${e.size}${typeof e.size == "number" ? "px" : ""} [${e.endLabel}`, n += r === this.rows.length - 1 ? "]" : "", n;
|
|
1305
|
-
}).join(" "),
|
|
1306
|
-
gridTemplateColumns: this.columns.map((e, r) => {
|
|
1307
|
-
let n = r === 0 ? "[" : "";
|
|
1308
|
-
return n += `${e.startLabel}] ${e.size}${typeof e.size == "number" ? "px" : ""} [${e.endLabel}`, n += r === this.columns.length - 1 ? "]" : "", n;
|
|
1309
|
-
}).join(" ")
|
|
1310
|
-
};
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
const To = (t, e) => Object.entries(e).forEach(
|
|
1314
|
-
([r, n]) => n != null && t.style.setProperty(r, `${n}`)
|
|
1315
|
-
), Mo = (t, e) => Array.from(t.style).forEach((r) => {
|
|
1316
|
-
r.startsWith(e) && t.style.removeProperty(r);
|
|
1317
|
-
}), Co = (t) => {
|
|
1318
|
-
const e = Xt(t);
|
|
1319
|
-
return e.visible = (r) => e.M(r ? "visible" : "hidden"), e.expanded = (r) => e.M(r ? "expanded" : "collapsed"), e.loc = (r) => e.M(Bt.construct(r)), e.disabled = (r) => r === !0 && e.M("disabled"), e.align = (r) => e.M(r), e.dir = (r) => r != null && e.M(zr.construct(r)), e.size = (r) => typeof r == "string" && e.M(r), e.sharp = (r) => r !== !1 && e.M("sharp"), e.rounded = (r) => r !== !1 && e.M("rounded"), e.bordered = (r) => typeof r == "boolean" ? r && e.M("bordered") : r != null ? e.M("bordered-" + r) : e.M("bordered"), e.selected = (r) => r && e.M("selected"), e.altColor = (r) => r && e.M("altColor"), e.editable = (r) => r && e.M("editable"), e.noSelect = e.M("no-select"), e.noWrap = (r) => r && e.M("no-wrap"), e.applyVars = To, e.removeVars = Mo, e.newGridBuilder = (r) => new Ao(r), e.dropRegion = (r) => r && e.B("haul-drop-region"), e.px = (r) => `${r}px`, e.inheritDims = (r = !0) => r && e.M("inherit-dims"), e;
|
|
1320
|
-
}, Do = Co("pluto");
|
|
1321
|
-
export {
|
|
1322
|
-
qe as $,
|
|
1323
|
-
Eo as A,
|
|
1324
|
-
ln as B,
|
|
1325
|
-
Do as C,
|
|
1326
|
-
So as D,
|
|
1327
|
-
Vn as E,
|
|
1328
|
-
Dn as F,
|
|
1329
|
-
on as G,
|
|
1330
|
-
Bt as J,
|
|
1331
|
-
Zo as K,
|
|
1332
|
-
Io as L,
|
|
1333
|
-
un as M,
|
|
1334
|
-
Bo as T,
|
|
1335
|
-
no as Y,
|
|
1336
|
-
qt as Z,
|
|
1337
|
-
Ro as _,
|
|
1338
|
-
D as a,
|
|
1339
|
-
Po as b,
|
|
1340
|
-
vo as c,
|
|
1341
|
-
zr as d,
|
|
1342
|
-
Jr as e,
|
|
1343
|
-
Oo as f,
|
|
1344
|
-
fo as g,
|
|
1345
|
-
No as h,
|
|
1346
|
-
p as i,
|
|
1347
|
-
Lo as j,
|
|
1348
|
-
Gr as k,
|
|
1349
|
-
sr as l,
|
|
1350
|
-
an as m,
|
|
1351
|
-
Xt as n,
|
|
1352
|
-
Le as o,
|
|
1353
|
-
E as p,
|
|
1354
|
-
ko as q,
|
|
1355
|
-
F as r,
|
|
1356
|
-
d as s,
|
|
1357
|
-
wo as t,
|
|
1358
|
-
tr as u,
|
|
1359
|
-
Hn as v,
|
|
1360
|
-
Y as w,
|
|
1361
|
-
S as x,
|
|
1362
|
-
Ue as y,
|
|
1363
|
-
z
|
|
1364
|
-
};
|