@synnaxlabs/pluto 0.40.1 → 0.41.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/{Center-CFEPOi_x.js → Center-Dr9Np3yZ.js} +3 -3
- package/dist/Center-sJghNsrv.cjs +1 -0
- package/dist/ContextMenu-DCxj35_j.cjs +1 -0
- package/dist/ContextMenu-GUed89mt.js +96 -0
- package/dist/DateTime-D6J8sRSH.cjs +1 -0
- package/dist/{DateTime-Djw6pb3W.js → DateTime-DEbT6v4l.js} +2 -2
- package/dist/{Divider-CMyzWvRC.js → Divider-Bpe7zJig.js} +585 -506
- package/dist/Divider-CloQr3vQ.cjs +22 -0
- package/dist/Dropdown-4Cti-bbQ.js +328 -0
- package/dist/Dropdown-C7Im-qW-.cjs +1 -0
- package/dist/{Haul-CaLW9ULm.js → Haul-Bw54Yj6J.js} +9 -9
- package/dist/{Haul-4OcHX8__.cjs → Haul-hv7TLQ7N.cjs} +1 -1
- package/dist/Item-9WCCzBv2.js +110 -0
- package/dist/Item-piF6rFAm.cjs +1 -0
- package/dist/{Keyboard--YA9DHRz.js → Keyboard-634856lT.js} +11 -9
- package/dist/Keyboard-CZFi6COK.cjs +1 -0
- package/dist/{Link-BT_Kwmlr.js → Link-BEheZd26.js} +1 -1
- package/dist/{Link-Bhto2KVL.cjs → Link-fkoogssj.cjs} +1 -1
- package/dist/Pack-D6Z6WuZl.cjs +1 -0
- package/dist/Pack-DhZO_rza.js +48 -0
- package/dist/Provider-DNTq46b0.cjs +1 -0
- package/dist/Provider-UAXPVomG.js +452 -0
- package/dist/Space-BtaH1buB.cjs +1 -0
- package/dist/Space-DunsWl06.js +100 -0
- package/dist/{Text-B7AC8Z1e.js → Text-3PiRcn8q.js} +313 -299
- package/dist/Text-BTEov6di.cjs +1 -0
- package/dist/Text-CaRMYy3U.js +135 -0
- package/dist/Text-DNspRcte.js +36 -0
- package/dist/Text-DylGoRKw.cjs +4 -0
- package/dist/Text-X_BHez8W.cjs +1 -0
- package/dist/Toggle-BKKBcuTj.cjs +1 -0
- package/dist/Toggle-CZd8L4GI.js +379 -0
- package/dist/{Video-TjJf_tXI.js → Video-4XQ1qozd.js} +1 -1
- package/dist/{Video-hdvNT3La.cjs → Video-BM9uJLaQ.cjs} +1 -1
- package/dist/WithIcon-CC-RSx6r.js +93 -0
- package/dist/WithIcon-Dn8eAoMj.cjs +1 -0
- package/dist/{aggregator-QqWwGnYH.cjs → aggregator-74jWxDne.cjs} +1 -1
- package/dist/{aggregator-AgOKLWHz.js → aggregator-DMvP8cai.js} +6 -6
- 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-Cj2UCGXB.cjs +1 -0
- package/dist/{css-rxwBYwM1.js → css-Dyt-QnKy.js} +467 -462
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/{deep-T1-57GfG.js → deep-Cvb4bVYY.js} +1 -1
- package/dist/{deep-DsH2ji6Z.cjs → deep-ICSlPm58.cjs} +1 -1
- package/dist/{dimensions-C9PXLcE0.js → dimensions-Cc0z-IDd.js} +1 -1
- package/dist/dimensions-Djqdrqi0.cjs +1 -0
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{eraser-D2I1qgOg.cjs → eraser-9-LOWZvk.cjs} +3 -3
- package/dist/{eraser-Dmishn8h.js → eraser-BjtEI-1I.js} +10 -10
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +32 -31
- package/dist/{external-Cs8oKwvw.cjs → external-B-Cao-ae.cjs} +1 -1
- package/dist/external-B-UNCzPY.cjs +1 -0
- package/dist/external-B18FBGpk.cjs +1 -0
- package/dist/{external-upiAayc4.js → external-BCUxzSzk.js} +32 -31
- package/dist/{external-DCflyFdb.js → external-BFOrrNde.js} +3 -3
- package/dist/external-BG1mV1W8.cjs +1 -0
- package/dist/{external-_b4lTCfZ.js → external-BIwhkj24.js} +455 -453
- package/dist/external-BWeX0nyq.js +399 -0
- package/dist/{external-CcIx4j5m.js → external-BY2AjzRx.js} +10 -10
- package/dist/external-BbmpRAH3.cjs +1 -0
- package/dist/{external-JNlv7kxI.js → external-BbrPEGJw.js} +2 -2
- package/dist/external-BlUic3Vz.js +29 -0
- package/dist/{external-C3e9emVy.js → external-C0ZRdtdj.js} +21 -20
- package/dist/{external-D12g_huj.js → external-CH66YjTZ.js} +18 -17
- package/dist/{external-DTjOTICM.js → external-CVGidiDt.js} +2 -2
- package/dist/{external-D_21zZAf.cjs → external-CnxSp7fm.cjs} +1 -1
- package/dist/{external-BWb18P9x.cjs → external-D2vS6j9c.cjs} +2 -2
- package/dist/external-DHmQqAfL.js +435 -0
- package/dist/{external-B9nbHICv.js → external-DNF8yEwq.js} +3261 -3282
- package/dist/{external-DkQnAvKo.cjs → external-DRGfSFQT.cjs} +1 -1
- package/dist/{external-dLVcM8tt.cjs → external-DVajt6X6.cjs} +1 -1
- package/dist/external-DX4m-5qT.cjs +1 -0
- package/dist/external-DlywBW-S.cjs +1 -0
- package/dist/{external-ClyfPgqG.cjs → external-kZf9CjYn.cjs} +14 -14
- package/dist/{font-CcRdsA3n.js → font-BXKdXsr5.js} +2 -2
- package/dist/{font-Bas26Jn-.cjs → font-DCE90lco.cjs} +1 -1
- package/dist/fontString-BBvH9Ypy.cjs +1 -0
- package/dist/fontString-C7Q9Laqk.js +28 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/hooks-BQJQyGWV.js +293 -0
- package/dist/hooks-ClXSlga9.cjs +1 -0
- package/dist/{state-CUPEHHgf.js → index-CSKP1UPN.js} +292 -354
- package/dist/index-Ch3utIMa.cjs +15 -0
- package/dist/index.cjs +7 -7
- package/dist/index.js +7413 -6474
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- 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/pluto.css +1 -1
- package/dist/{provider-Dq9t3iAH.js → provider-CH0eoGfz.js} +2131 -2085
- package/dist/provider-D054LCpB.cjs +53 -0
- package/dist/src/aether/main.d.ts +48 -0
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/align/Center.d.ts +2 -2
- package/dist/src/align/Center.d.ts.map +1 -1
- package/dist/src/align/Pack.d.ts +3 -3
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts +25 -10
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/align/Stack.d.ts +7 -0
- package/dist/src/align/Stack.d.ts.map +1 -0
- package/dist/src/align/external.d.ts +1 -0
- package/dist/src/align/external.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +2 -4
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Icon.d.ts +4 -1
- package/dist/src/button/Icon.d.ts.map +1 -1
- package/dist/src/button/Toggle.d.ts +0 -1
- package/dist/src/button/Toggle.d.ts.map +1 -1
- package/dist/src/caret/Animated.d.ts +3 -2
- package/dist/src/caret/Animated.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +1 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/channel/Select.d.ts +3 -3
- package/dist/src/channel/Select.d.ts.map +1 -1
- package/dist/src/color/Picker.d.ts.map +1 -1
- package/dist/src/css/css.d.ts +2 -1
- package/dist/src/css/css.d.ts.map +1 -1
- package/dist/src/divider/Divider.d.ts +4 -4
- package/dist/src/divider/Divider.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts +2 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/generic/Generic.d.ts +4 -5
- package/dist/src/generic/Generic.d.ts.map +1 -1
- package/dist/src/hardware/device/Select.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/input/DateTime.d.ts.map +1 -1
- package/dist/src/input/Item.d.ts +1 -1
- package/dist/src/input/Item.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +1 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +0 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/list/Column.d.ts +3 -3
- package/dist/src/list/Column.d.ts.map +1 -1
- package/dist/src/list/Core.d.ts +1 -1
- package/dist/src/list/Core.d.ts.map +1 -1
- package/dist/src/list/Hover.d.ts +3 -2
- package/dist/src/list/Hover.d.ts.map +1 -1
- package/dist/src/list/Item.d.ts +1 -1
- package/dist/src/list/Item.d.ts.map +1 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts +5 -3
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/menu/Menu.d.ts +3 -2
- package/dist/src/menu/Menu.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts +7 -3
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts +5 -3
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts +4 -3
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +6 -6
- package/dist/src/nav/Bar.d.ts +2 -1
- package/dist/src/nav/Bar.d.ts.map +1 -1
- package/dist/src/nav/Drawer.d.ts +3 -2
- package/dist/src/nav/Drawer.d.ts.map +1 -1
- package/dist/src/notation/Select.d.ts +2 -3
- package/dist/src/notation/Select.d.ts.map +1 -1
- package/dist/src/notation/index.d.ts +1 -1
- package/dist/src/notation/index.d.ts.map +1 -1
- package/dist/src/os/Controls/Windows.d.ts +1 -1
- package/dist/src/os/Controls/Windows.d.ts.map +1 -1
- package/dist/src/os/Controls/types.d.ts +2 -0
- package/dist/src/os/Controls/types.d.ts.map +1 -1
- package/dist/src/ranger/TimeRangeChip.d.ts +2 -1
- package/dist/src/ranger/TimeRangeChip.d.ts.map +1 -1
- package/dist/src/resize/Core.d.ts +5 -4
- package/dist/src/resize/Core.d.ts.map +1 -1
- package/dist/src/resize/Multiple.d.ts.map +1 -1
- package/dist/src/resize/Single.d.ts.map +1 -1
- package/dist/src/select/Button.d.ts.map +1 -1
- package/dist/src/select/List.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/status/Notification.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +8 -8
- package/dist/src/status/aether/types.d.ts +2 -2
- package/dist/src/status/colors.d.ts +1 -1
- package/dist/src/status/colors.d.ts.map +1 -1
- package/dist/src/table/aether/Table.d.ts +3 -3
- package/dist/src/table/cells/Cells.d.ts +2 -2
- package/dist/src/tabs/Selector.d.ts +5 -2
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts +2 -3
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +4 -4
- package/dist/src/tag/Tag.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +6 -6
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +8 -8
- package/dist/src/telem/control/aether/indicator.d.ts +8 -8
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Keyboard.d.ts +1 -1
- package/dist/src/text/Keyboard.d.ts.map +1 -1
- package/dist/src/text/WithIcon.d.ts +3 -2
- package/dist/src/text/WithIcon.d.ts.map +1 -1
- package/dist/src/text/core/types.d.ts.map +1 -1
- package/dist/src/theming/Provider.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +650 -530
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/fontString.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +229 -187
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/theming/css.d.ts +1 -1
- package/dist/src/theming/css.d.ts.map +1 -1
- package/dist/src/theming/static/generate.d.ts +2 -0
- package/dist/src/theming/static/generate.d.ts.map +1 -0
- package/dist/src/tooltip/Dialog.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts +1 -1
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts +2 -2
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/Text.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +1 -0
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/util/component.d.ts +2 -2
- package/dist/src/util/component.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +3 -3
- package/dist/src/vis/diagram/aether/types.d.ts +8 -8
- package/dist/src/vis/draw2d/index.d.ts +16 -1
- package/dist/src/vis/draw2d/index.d.ts.map +1 -1
- package/dist/src/vis/eraser/use.d.ts +2 -2
- package/dist/src/vis/eraser/use.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts +6 -6
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts +9 -1
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +3 -2
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +6 -6
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +6 -6
- package/dist/src/vis/lineplot/aether/axis.d.ts +3 -3
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts +6 -6
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/log/Log.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +12 -12
- package/dist/src/vis/rule/Rule.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +7 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +54 -5
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +41 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/value/Form.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +6 -6
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +2 -2
- package/dist/state-Bd_8X2jl.cjs +1 -0
- package/dist/state-CjGemC7S.js +88 -0
- 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/theme.css +1600 -0
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/{transformColorsToHex-B2Bui-Wf.cjs → transformColorsToHex-DE7uEs1w.cjs} +1 -1
- package/dist/{transformColorsToHex-B6dG2LA6.js → transformColorsToHex-UBrryWh5.js} +1 -1
- 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-CvIf5nF_.cjs → units-DjoHPrqM.cjs} +1 -1
- package/dist/{units-D7qkgH-s.js → units-MBd0L3ff.js} +1 -1
- package/dist/useClickOutside-4k9PAT_i.cjs +1 -0
- package/dist/{useClickOutside-N6MHxbOe.js → useClickOutside-BYjsXGgb.js} +28 -28
- package/dist/{useDebouncedCallback-vg2DKTH7.cjs → useDebouncedCallback-BBsAgC9k.cjs} +1 -1
- package/dist/{useDebouncedCallback-D4Ec7whQ.js → useDebouncedCallback-Dg4BDGP-.js} +1 -1
- package/dist/{useMemoCompare-Cq_C2ddc.js → useMemoCompare-BEDaTIXL.js} +2 -2
- package/dist/useMemoCompare-DORTZbzY.cjs +1 -0
- package/dist/useVirtualCursorDragWebKit-BSafZVD_.cjs +1 -0
- package/dist/{useVirtualCursorDragWebKit-BBTGd7Xe.js → useVirtualCursorDragWebKit-BixysrXI.js} +25 -24
- package/dist/{value-Dk2DJbst.js → value-CudL8z5e.js} +1626 -1580
- package/dist/value-DT0qJqgQ.cjs +57 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +22 -20
- package/dist/Center-bD2cOjI8.cjs +0 -1
- package/dist/ContextMenu-BXNN2_7t.js +0 -101
- package/dist/ContextMenu-CNSewKSD.cjs +0 -1
- package/dist/DateTime-BfnGq6C2.cjs +0 -1
- package/dist/Divider-CJNDIsD4.cjs +0 -22
- package/dist/Dropdown-CL7BefC8.cjs +0 -1
- package/dist/Dropdown-D-aMufnM.js +0 -261
- package/dist/Item-CW2A2nuL.js +0 -108
- package/dist/Item-CpAZC-dF.cjs +0 -1
- package/dist/Keyboard-DHGtnfsf.cjs +0 -1
- package/dist/Pack-C4NdZWyf.cjs +0 -1
- package/dist/Pack-UzJJ9OhY.js +0 -46
- package/dist/Provider-BH1uv6QX.js +0 -436
- package/dist/Provider-lJARiq5i.cjs +0 -1
- package/dist/Space-BrQoodma.cjs +0 -1
- package/dist/Space-I_hidXYi.js +0 -76
- package/dist/Text-C-o1z9sP.js +0 -124
- package/dist/Text-C_j_F67Q.cjs +0 -1
- package/dist/Text-ClTuQXMF.cjs +0 -4
- package/dist/Text-DEbr1cmH.cjs +0 -1
- package/dist/Text-DVv04lTs.js +0 -32
- package/dist/Toggle-CYB9Vt6b.cjs +0 -1
- package/dist/Toggle-v77mEVLE.js +0 -356
- package/dist/WithIcon-BnDZ-Qu7.js +0 -92
- package/dist/WithIcon-tr8ELI3W.cjs +0 -1
- package/dist/css-CU7tous7.cjs +0 -1
- package/dist/dimensions-e5IPRZhn.cjs +0 -1
- package/dist/external-B1ttDWzy.cjs +0 -1
- package/dist/external-BdxbwUpI.js +0 -343
- package/dist/external-BpvGU0dZ.cjs +0 -1
- package/dist/external-C7Hy9XdI.js +0 -418
- package/dist/external-CqhOyYDl.cjs +0 -1
- package/dist/external-Csg4_wkz.js +0 -15
- package/dist/external-CwvJvXL5.cjs +0 -1
- package/dist/external-Cztvb3-K.cjs +0 -1
- package/dist/external-DMEzx_kb.cjs +0 -1
- package/dist/fontString-C7H8Imxd.cjs +0 -1
- package/dist/fontString-DdV9bi9l.js +0 -12
- package/dist/hooks-B7ZV7Hz6.js +0 -293
- package/dist/hooks-CJnV8Pt4.cjs +0 -1
- package/dist/provider-BrBEjlx5.cjs +0 -53
- package/dist/src/notation/external.d.ts +0 -3
- package/dist/src/notation/external.d.ts.map +0 -1
- package/dist/src/notation/notation.d.ts +0 -33
- package/dist/src/notation/notation.d.ts.map +0 -1
- package/dist/src/notation/notation.spec.d.ts +0 -2
- package/dist/src/notation/notation.spec.d.ts.map +0 -1
- package/dist/state-LaBGf4_k.cjs +0 -15
- package/dist/useClickOutside-PFl3AvPU.cjs +0 -1
- package/dist/useMemoCompare-BGEWpAJU.cjs +0 -1
- package/dist/useVirtualCursorDragWebKit-Rnok8Nft.cjs +0 -1
- package/dist/value-C6JZdCF2.cjs +0 -57
- /package/dist/{Pack-BbwDtaE6.cjs → Stack-BbwDtaE6.cjs} +0 -0
- /package/dist/{Pack-D50qN0Vu.js → Stack-D50qN0Vu.js} +0 -0
package/dist/Text-DVv04lTs.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { d as r, S as i } from "./Divider-CMyzWvRC.js";
|
|
3
|
-
import "./state-CUPEHHgf.js";
|
|
4
|
-
import "./css-rxwBYwM1.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import { K as a } from "./Keyboard--YA9DHRz.js";
|
|
7
|
-
import "./Pack-D50qN0Vu.js";
|
|
8
|
-
const c = {
|
|
9
|
-
Control: () => /* @__PURE__ */ o.jsx(i.Meta, {}, "control"),
|
|
10
|
-
Alt: () => /* @__PURE__ */ o.jsx(i.Alt, {}, "alt"),
|
|
11
|
-
Shift: () => /* @__PURE__ */ o.jsx(r.Keyboard.Shift, {}, "shift"),
|
|
12
|
-
MouseLeft: "Left Click",
|
|
13
|
-
MouseRight: "Right Click",
|
|
14
|
-
MouseMiddle: "Middle Click",
|
|
15
|
-
Enter: () => /* @__PURE__ */ o.jsx(r.Keyboard.Return, {}, "enter")
|
|
16
|
-
}, n = (s) => {
|
|
17
|
-
const t = c[s];
|
|
18
|
-
return t != null ? typeof t == "function" ? t() : t : s;
|
|
19
|
-
}, M = (s) => s.map((t) => n(t)), C = ({
|
|
20
|
-
className: s,
|
|
21
|
-
style: t,
|
|
22
|
-
trigger: l,
|
|
23
|
-
children: d,
|
|
24
|
-
...m
|
|
25
|
-
}) => /* @__PURE__ */ o.jsx(o.Fragment, { children: l.map((e) => (
|
|
26
|
-
// @ts-expect-error - issues with generic element types
|
|
27
|
-
/* @__PURE__ */ o.jsx(a, { ...m, children: n(e) }, e)
|
|
28
|
-
)) });
|
|
29
|
-
export {
|
|
30
|
-
C as T,
|
|
31
|
-
M as t
|
|
32
|
-
};
|
package/dist/Toggle-CYB9Vt6b.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const x=require("./jsx-runtime-CITbqOLs.cjs"),_=require("./Divider-CJNDIsD4.cjs"),y=require("./state-LaBGf4_k.cjs"),le=require("./toArray-DRKOku1s.cjs"),c=require("react"),e=require("./css-CU7tous7.cjs"),F=require("./WithIcon-tr8ELI3W.cjs"),ce=require("react-dom");require("./Pack-BbwDtaE6.cjs");const ue=require("./hooks-CJnV8Pt4.cjs"),ie={delay:y.y$1.milliseconds(750),startAccelerating:()=>{}},Z=c.createContext(ie),H=()=>c.use(Z),ae=({delay:t=y.y$1.milliseconds(700),accelerate:n=!0,acceleratedDelay:s=y.y$1.minutes(60),accelerationDelay:r=y.y$1.seconds(0),children:u})=>{const[d,o]=c.useState(!1),l=c.useRef(null),f=c.useCallback(()=>{d||!n||(o(!0),l.current=setTimeout(()=>{o(!1)},new y.y$1(r).milliseconds))},[d,r]);return x.jsxRuntimeExports.jsx(Z,{value:{delay:d?s:t,startAccelerating:f},children:u})},de=t=>({key:n,...s})=>c.createElement(t,{...s,key:n}),W=t=>typeof t=="function",me=150,Y=["top","bottom"],V=["left","right"],U=[...V,...Y],X=[...U,"center"],fe={[e.K.xyToString(e.K.TOP_RIGHT)]:(t,n)=>e.G.translate(t,"x",-e.Mo.width(n)),[e.K.xyToString(e.K.TOP_LEFT)]:(t,n)=>e.G.translate(t,"x",e.Mo.width(n)),[e.K.xyToString(e.K.BOTTOM_RIGHT)]:(t,n)=>e.G.translate(t,"x",-e.Mo.width(n)),[e.K.xyToString(e.K.BOTTOM_LEFT)]:(t,n)=>e.G.translate(t,"x",e.Mo.width(n))},A=(t,n,s)=>{for(const r of s)if(Math.abs(e.Mo.loc(n,r)-e.Mo.loc(t,r))>me)return r;return s[0]},z=(t,n,s)=>{const r=e.K.location.safeParse(t),u=o=>{let l;return o==="center"?l=U:e.K.isX(o)?l=["center",...Y]:l=["center",...V],e.K.construct(A(n,s,l))};if(r.success)return e.K.constructXY(r.data,u(r.data));if(t!=null){const o={...t};return o.x==null&&o.y!=null?o.x=u(e.K.construct(o.y)):o.y==null&&o.x!=null?o.y=u(e.K.construct(o.x)):o.x==null&&o.y==null&&(o.x=A(n,s,X),o.y=u(e.K.construct(o.x))),e.K.constructXY(o)}const d=A(n,s,X);return e.K.constructXY(d,u(d))},Se=(t,n)=>{let s=t;for(;s!=null;){if(s.id===n)return s;s=s.parentElement}return t},J=({delay:t,children:n,location:s,hide:r=!1})=>{const{startAccelerating:u,delay:d}=H(),o=new y.y$1(t??d),[l,f,a]=_.useCombinedStateAndRef(null),[K,R]=c.useState(""),p=c.useRef(null),S=c.useId(),i=c.useRef(null),T=c.useRef(null),L=c.useCallback(m=>{m==null&&a.current==null||T.current!=null||(m!=null?(f(m),T.current=setTimeout(()=>{R(e.CSS.M("loaded")),T.current=null},1)):(R(""),T.current=setTimeout(()=>{f(null),T.current=null},500)))},[]),h=c.useCallback((m,C)=>{var G,q,$;if(!C||r)return(G=i.current)==null||G.call(i),L(null);u();const E=e.Mo.construct(Se(m.target,S));e.Mo.contains(E,e.G.construct(m))||((q=i.current)==null||q.call(i),L(null));const N=e.Mo.construct(document.documentElement),j=z(s,E,N);let O=e.Mo.xyLoc(E,j);const g=fe[e.K.xyToString(j)];g!=null&&(O=g(O,E));const se=e.Mo.construct(document.body);L({location:j,position:e.G.translate(O,e.G.scale(e.Mo.topLeft(se),-1)),triggerDims:e.Mo.dims(E)}),($=i.current)==null||$.call(i);const v=w=>{const re=e.G.construct(w);e.Mo.contains(E,re)||(L(null),document.removeEventListener("mousemove",v),i.current=null,p.current!=null&&clearTimeout(p.current))};document.addEventListener("mousemove",v),i.current=()=>document.removeEventListener("mousemove",v),document.addEventListener("mousedown",()=>{var w;L(null),(w=i.current)==null||w.call(i)},{once:!0})},[u,s,r,S,o.milliseconds]);r&&l!=null&&L(null);const B=c.useCallback(m=>{p.current=setTimeout(()=>h(m,!0),o.milliseconds)},[h,o.milliseconds]),P=c.useCallback(m=>{p.current!=null&&clearTimeout(p.current),h(m,!1)},[h]),[I,b]=n,M=document.body;return x.jsxRuntimeExports.jsxs(x.jsxRuntimeExports.Fragment,{children:[l!=null&&ce.createPortal(x.jsxRuntimeExports.jsx("div",{className:e.CSS(e.CSS.B("tooltip"),e.CSS.loc(l.location.x),e.CSS.loc(l.location.y),K),style:{"--pos-x":e.CSS.px(l.position.x),"--pos-y":e.CSS.px(l.position.y),"--el-width":e.CSS.px(l.triggerDims.width)},children:W(I)?I(l):Q(I)},S),M),c.cloneElement(b,{id:S,onMouseEnter:B,onMouseLeave:P,onMouseDown:c.useCallback(m=>{var C,E;P(m),(E=(C=b.props).onMouseDown)==null||E.call(C,m)},[h])})]})},Q=t=>typeof t=="string"||typeof t=="number"||!c.isValidElement(t)?x.jsxRuntimeExports.jsx(_.Text,{level:"small",children:t}):t,D=t=>{const n=({tooltipDelay:s,tooltip:r,tooltipLocation:u,...d})=>{const o=x.jsxRuntimeExports.jsx(t,{...d});return r==null?o:x.jsxRuntimeExports.jsxs(J,{delay:s,location:u,children:[r,o]})};return n.displayName=`Tooltip.Wrap(${t.displayName??t.name})`,n},k=D(({size:t,variant:n="filled",type:s="button",className:r,children:u,iconSpacing:d,sharp:o=!1,disabled:l=!1,loading:f=!1,level:a,triggers:K,startIcon:R=[],onClickDelay:p=0,onClick:S,color:i,status:T,style:L,endContent:h,onMouseDown:B,stopPropagation:P,...I})=>{const b=y.y$1.fromMilliseconds(p);f&&(R=[...le.A(R),x.jsxRuntimeExports.jsx(_.d4.Loading,{},"loader")]);const M=l||f;d??(d=t==="small"?"small":"medium"),n=="shadow"&&(n="text");const m=g=>{if(P&&g.stopPropagation(),!(M||n==="preview")&&b.isZero)return S==null?void 0:S(g)},C=c.useRef(null),E=g=>{B==null||B(g),!(M||n==="preview"||b.isZero)&&(document.addEventListener("mouseup",()=>C.current!=null&&clearTimeout(C.current)),C.current=setTimeout(()=>{S==null||S(g),C.current=null},b.milliseconds))};ue.use({triggers:K,callback:c.useCallback(({stage:g})=>{g!=="end"||M||n==="preview"||m(new MouseEvent("click"))},[m,M])});const N={...L},j=e.Color.z.safeParse(i),O=j.success&&(n==="filled"||n==="outlined");return O&&(N[e.CSS.var("btn-color")]=j.data.rgbString,N[e.CSS.var("btn-text-color")]=j.data.pickByContrast("#000000","#ffffff").rgbCSS),b.isZero||(N[e.CSS.var("btn-delay")]=`${b.seconds.toString()}s`),t==null&&a!=null?t=y.LevelComponentSizes[a]:t!=null&&a==null?a=y.ComponentSizeLevels[t]:t??(t="medium"),x.jsxRuntimeExports.jsxs(F.WithIcon,{el:"button",className:e.CSS(e.CSS.B("btn"),e.CSS.size(t),e.CSS.sharp(o),n!=="preview"&&e.CSS.disabled(M),T!=null&&e.CSS.M(T),e.CSS.BM("btn",n),O&&e.CSS.BM("btn","custom-color"),r),type:s,level:a??y.ComponentSizeLevels[t],size:d,onClick:m,onMouseDown:E,noWrap:!0,style:N,startIcon:R,color:i,...I,children:[u,h!=null?x.jsxRuntimeExports.jsx("div",{className:e.CSS.BE("btn","end-content"),children:F.formatChildren(a??y.ComponentSizeLevels[t],h)}):void 0]})}),xe=(t,n,s,r)=>n===!0?"var(--pluto-gray-l5)":s!=null?e.cssString(s):t==="filled"?"var(--pluto-text-on-primary)":"var(--pluto-text-color)",ee=D(({ref:t,children:n,stopPropagation:s,className:r,variant:u="text",size:d="medium",sharp:o=!1,disabled:l=!1,loading:f=!1,onClick:a,color:K,...R})=>{f&&(n=x.jsxRuntimeExports.jsx(_.d4.Loading,{}));const p=l||f,S=c.useCallback(i=>{s&&i.stopPropagation(),!p&&(a==null||a(i))},[s,p,a]);return x.jsxRuntimeExports.jsx("button",{ref:t,className:e.clsx(r,e.CSS.B("btn"),e.CSS.B("btn-icon"),e.CSS.size(d),e.CSS.sharp(o),e.CSS.BM("btn",u),e.CSS.disabled(p)),onClick:S,...R,children:typeof n=="string"?n:c.cloneElement(n,{color:xe(u,p,K),fill:"currentColor",...n.props})})}),te=t=>({value:n,onClick:s,onChange:r,checkedVariant:u="filled",uncheckedVariant:d="outlined",rightClickToggle:o=!1,stopPropagation:l,...f})=>x.jsxRuntimeExports.jsx(t,{...f,checked:n,onClick:a=>{l&&a.stopPropagation(),s==null||s(a),!o&&r(!n)},onContextMenu:a=>{a.preventDefault(),a.stopPropagation(),o&&r(!n)},className:e.CSS(e.CSS.B("btn-toggle"),f.className),variant:n?u:d}),ne=te(k);ne.displayName="ButtonToggle";const oe=te(ee);oe.displayName="ButtonToggleIcon";exports.Button=k;exports.Config=ae;exports.Dialog=J;exports.Icon=ee;exports.Toggle=ne;exports.ToggleIcon=oe;exports.chooseLocation=z;exports.componentRenderProp=de;exports.formatTip=Q;exports.isRenderProp=W;exports.useConfig=H;exports.wrap=D;
|
package/dist/Toggle-v77mEVLE.js
DELETED
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
import { j as T } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { g as st, T as ot, d as V } from "./Divider-CMyzWvRC.js";
|
|
3
|
-
import { i as _, C as Z, a as rt } from "./state-CUPEHHgf.js";
|
|
4
|
-
import { A as lt } from "./toArray-Dvn9FA_3.js";
|
|
5
|
-
import { createContext as ct, use as ut, useState as K, useRef as C, useCallback as O, createElement as at, useId as it, cloneElement as U, isValidElement as dt } from "react";
|
|
6
|
-
import { K as i, G as M, M as m, C as o, a as ft, c as mt, v as pt } from "./css-rxwBYwM1.js";
|
|
7
|
-
import { W as xt, f as Tt } from "./WithIcon-BnDZ-Qu7.js";
|
|
8
|
-
import { createPortal as gt } from "react-dom";
|
|
9
|
-
import "./Pack-D50qN0Vu.js";
|
|
10
|
-
import { a as yt } from "./hooks-B7ZV7Hz6.js";
|
|
11
|
-
const Et = {
|
|
12
|
-
delay: _.milliseconds(750),
|
|
13
|
-
startAccelerating: () => {
|
|
14
|
-
}
|
|
15
|
-
}, q = ct(Et), Lt = () => ut(q), Wt = ({
|
|
16
|
-
delay: t = _.milliseconds(700),
|
|
17
|
-
accelerate: e = !0,
|
|
18
|
-
// Disabling this for now because it's annoying.
|
|
19
|
-
acceleratedDelay: s = _.minutes(60),
|
|
20
|
-
accelerationDelay: r = _.seconds(0),
|
|
21
|
-
children: c
|
|
22
|
-
}) => {
|
|
23
|
-
const [d, n] = K(!1), l = C(null), p = O(() => {
|
|
24
|
-
d || !e || (n(!0), l.current = setTimeout(() => {
|
|
25
|
-
n(!1);
|
|
26
|
-
}, new _(r).milliseconds));
|
|
27
|
-
}, [d, r]);
|
|
28
|
-
return /* @__PURE__ */ T.jsx(
|
|
29
|
-
q,
|
|
30
|
-
{
|
|
31
|
-
value: { delay: d ? s : t, startAccelerating: p },
|
|
32
|
-
children: c
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
}, Yt = (t) => ({ key: e, ...s }) => /* @__PURE__ */ at(t, { ...s, key: e }), St = (t) => typeof t == "function", ht = 150, J = ["top", "bottom"], Q = ["left", "right"], z = [
|
|
36
|
-
...Q,
|
|
37
|
-
...J
|
|
38
|
-
], $ = [
|
|
39
|
-
...z,
|
|
40
|
-
"center"
|
|
41
|
-
], Rt = {
|
|
42
|
-
[i.xyToString(i.TOP_RIGHT)]: (t, e) => M.translate(t, "x", -m.width(e)),
|
|
43
|
-
[i.xyToString(i.TOP_LEFT)]: (t, e) => M.translate(t, "x", m.width(e)),
|
|
44
|
-
[i.xyToString(i.BOTTOM_RIGHT)]: (t, e) => M.translate(t, "x", -m.width(e)),
|
|
45
|
-
[i.xyToString(i.BOTTOM_LEFT)]: (t, e) => M.translate(t, "x", m.width(e))
|
|
46
|
-
}, G = (t, e, s) => {
|
|
47
|
-
for (const r of s)
|
|
48
|
-
if (Math.abs(m.loc(e, r) - m.loc(t, r)) > ht) return r;
|
|
49
|
-
return s[0];
|
|
50
|
-
}, bt = (t, e, s) => {
|
|
51
|
-
const r = i.location.safeParse(t), c = (n) => {
|
|
52
|
-
let l;
|
|
53
|
-
return n === "center" ? l = z : i.isX(n) ? l = ["center", ...J] : l = ["center", ...Q], i.construct(G(e, s, l));
|
|
54
|
-
};
|
|
55
|
-
if (r.success)
|
|
56
|
-
return i.constructXY(r.data, c(r.data));
|
|
57
|
-
if (t != null) {
|
|
58
|
-
const n = { ...t };
|
|
59
|
-
return n.x == null && n.y != null ? n.x = c(i.construct(n.y)) : n.y == null && n.x != null ? n.y = c(i.construct(n.x)) : n.x == null && n.y == null && (n.x = G(e, s, $), n.y = c(i.construct(n.x))), i.constructXY(n);
|
|
60
|
-
}
|
|
61
|
-
const d = G(e, s, $);
|
|
62
|
-
return i.constructXY(d, c(d));
|
|
63
|
-
}, Nt = (t, e) => {
|
|
64
|
-
let s = t;
|
|
65
|
-
for (; s != null; ) {
|
|
66
|
-
if (s.id === e) return s;
|
|
67
|
-
s = s.parentElement;
|
|
68
|
-
}
|
|
69
|
-
return t;
|
|
70
|
-
}, Ot = ({
|
|
71
|
-
delay: t,
|
|
72
|
-
children: e,
|
|
73
|
-
location: s,
|
|
74
|
-
hide: r = !1
|
|
75
|
-
}) => {
|
|
76
|
-
const { startAccelerating: c, delay: d } = Lt(), n = new _(t ?? d), [l, p, a] = st(null), [j, S] = K(""), g = C(null), x = it(), u = C(null), h = C(null), R = O((f) => {
|
|
77
|
-
f == null && a.current == null || h.current != null || (f != null ? (p(f), h.current = setTimeout(() => {
|
|
78
|
-
S(o.M("loaded")), h.current = null;
|
|
79
|
-
}, 1)) : (S(""), h.current = setTimeout(() => {
|
|
80
|
-
p(null), h.current = null;
|
|
81
|
-
}, 500)));
|
|
82
|
-
}, []), b = O(
|
|
83
|
-
(f, L) => {
|
|
84
|
-
var H, W, Y;
|
|
85
|
-
if (!L || r)
|
|
86
|
-
return (H = u.current) == null || H.call(u), R(null);
|
|
87
|
-
c();
|
|
88
|
-
const y = m.construct(Nt(f.target, x));
|
|
89
|
-
m.contains(y, M.construct(f)) || ((W = u.current) == null || W.call(u), R(null));
|
|
90
|
-
const I = m.construct(document.documentElement), w = bt(s, y, I);
|
|
91
|
-
let P = m.xyLoc(y, w);
|
|
92
|
-
const E = Rt[i.xyToString(w)];
|
|
93
|
-
E != null && (P = E(P, y));
|
|
94
|
-
const et = m.construct(document.body);
|
|
95
|
-
R({
|
|
96
|
-
location: w,
|
|
97
|
-
position: M.translate(P, M.scale(m.topLeft(et), -1)),
|
|
98
|
-
triggerDims: m.dims(y)
|
|
99
|
-
}), (Y = u.current) == null || Y.call(u);
|
|
100
|
-
const X = (F) => {
|
|
101
|
-
const nt = M.construct(F);
|
|
102
|
-
m.contains(y, nt) || (R(null), document.removeEventListener("mousemove", X), u.current = null, g.current != null && clearTimeout(g.current));
|
|
103
|
-
};
|
|
104
|
-
document.addEventListener("mousemove", X), u.current = () => document.removeEventListener("mousemove", X), document.addEventListener(
|
|
105
|
-
"mousedown",
|
|
106
|
-
() => {
|
|
107
|
-
var F;
|
|
108
|
-
R(null), (F = u.current) == null || F.call(u);
|
|
109
|
-
},
|
|
110
|
-
{ once: !0 }
|
|
111
|
-
);
|
|
112
|
-
},
|
|
113
|
-
[c, s, r, x, n.milliseconds]
|
|
114
|
-
);
|
|
115
|
-
r && l != null && R(null);
|
|
116
|
-
const A = O(
|
|
117
|
-
(f) => {
|
|
118
|
-
g.current = setTimeout(
|
|
119
|
-
() => b(f, !0),
|
|
120
|
-
n.milliseconds
|
|
121
|
-
);
|
|
122
|
-
},
|
|
123
|
-
[b, n.milliseconds]
|
|
124
|
-
), D = O(
|
|
125
|
-
(f) => {
|
|
126
|
-
g.current != null && clearTimeout(g.current), b(f, !1);
|
|
127
|
-
},
|
|
128
|
-
[b]
|
|
129
|
-
), [v, N] = e, B = document.body;
|
|
130
|
-
return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
|
|
131
|
-
l != null && gt(
|
|
132
|
-
/* @__PURE__ */ T.jsx(
|
|
133
|
-
"div",
|
|
134
|
-
{
|
|
135
|
-
className: o(
|
|
136
|
-
o.B("tooltip"),
|
|
137
|
-
o.loc(l.location.x),
|
|
138
|
-
o.loc(l.location.y),
|
|
139
|
-
j
|
|
140
|
-
),
|
|
141
|
-
style: {
|
|
142
|
-
// @ts-expect-error - css
|
|
143
|
-
"--pos-x": o.px(l.position.x),
|
|
144
|
-
"--pos-y": o.px(l.position.y),
|
|
145
|
-
"--el-width": o.px(l.triggerDims.width)
|
|
146
|
-
},
|
|
147
|
-
children: St(v) ? v(l) : Mt(v)
|
|
148
|
-
},
|
|
149
|
-
x
|
|
150
|
-
),
|
|
151
|
-
B
|
|
152
|
-
),
|
|
153
|
-
U(N, {
|
|
154
|
-
id: x,
|
|
155
|
-
onMouseEnter: A,
|
|
156
|
-
onMouseLeave: D,
|
|
157
|
-
onMouseDown: O(
|
|
158
|
-
(f) => {
|
|
159
|
-
var L, y;
|
|
160
|
-
D(f), (y = (L = N.props).onMouseDown) == null || y.call(L, f);
|
|
161
|
-
},
|
|
162
|
-
[b]
|
|
163
|
-
)
|
|
164
|
-
})
|
|
165
|
-
] });
|
|
166
|
-
}, Mt = (t) => typeof t == "string" || typeof t == "number" || !dt(t) ? /* @__PURE__ */ T.jsx(ot, { level: "small", children: t }) : t, k = (t) => {
|
|
167
|
-
const e = ({
|
|
168
|
-
tooltipDelay: s,
|
|
169
|
-
tooltip: r,
|
|
170
|
-
tooltipLocation: c,
|
|
171
|
-
...d
|
|
172
|
-
}) => {
|
|
173
|
-
const n = /* @__PURE__ */ T.jsx(t, { ...d });
|
|
174
|
-
return r == null ? n : /* @__PURE__ */ T.jsxs(Ot, { delay: s, location: c, children: [
|
|
175
|
-
r,
|
|
176
|
-
n
|
|
177
|
-
] });
|
|
178
|
-
};
|
|
179
|
-
return e.displayName = `Tooltip.Wrap(${t.displayName ?? t.name})`, e;
|
|
180
|
-
}, Bt = k(
|
|
181
|
-
({
|
|
182
|
-
size: t,
|
|
183
|
-
variant: e = "filled",
|
|
184
|
-
type: s = "button",
|
|
185
|
-
className: r,
|
|
186
|
-
children: c,
|
|
187
|
-
iconSpacing: d,
|
|
188
|
-
sharp: n = !1,
|
|
189
|
-
disabled: l = !1,
|
|
190
|
-
loading: p = !1,
|
|
191
|
-
level: a,
|
|
192
|
-
triggers: j,
|
|
193
|
-
startIcon: S = [],
|
|
194
|
-
onClickDelay: g = 0,
|
|
195
|
-
onClick: x,
|
|
196
|
-
color: u,
|
|
197
|
-
status: h,
|
|
198
|
-
style: R,
|
|
199
|
-
endContent: b,
|
|
200
|
-
onMouseDown: A,
|
|
201
|
-
stopPropagation: D,
|
|
202
|
-
...v
|
|
203
|
-
}) => {
|
|
204
|
-
const N = _.fromMilliseconds(g);
|
|
205
|
-
p && (S = [...lt(S), /* @__PURE__ */ T.jsx(V.Loading, {}, "loader")]);
|
|
206
|
-
const B = l || p;
|
|
207
|
-
d ?? (d = t === "small" ? "small" : "medium"), e == "shadow" && (e = "text");
|
|
208
|
-
const f = (E) => {
|
|
209
|
-
if (D && E.stopPropagation(), !(B || e === "preview") && N.isZero)
|
|
210
|
-
return x == null ? void 0 : x(E);
|
|
211
|
-
}, L = C(null), y = (E) => {
|
|
212
|
-
A == null || A(E), !(B || e === "preview" || N.isZero) && (document.addEventListener(
|
|
213
|
-
"mouseup",
|
|
214
|
-
() => L.current != null && clearTimeout(L.current)
|
|
215
|
-
), L.current = setTimeout(() => {
|
|
216
|
-
x == null || x(E), L.current = null;
|
|
217
|
-
}, N.milliseconds));
|
|
218
|
-
};
|
|
219
|
-
yt({
|
|
220
|
-
triggers: j,
|
|
221
|
-
callback: O(
|
|
222
|
-
({ stage: E }) => {
|
|
223
|
-
E !== "end" || B || e === "preview" || f(
|
|
224
|
-
new MouseEvent("click")
|
|
225
|
-
);
|
|
226
|
-
},
|
|
227
|
-
[f, B]
|
|
228
|
-
)
|
|
229
|
-
});
|
|
230
|
-
const I = { ...R }, w = ft.z.safeParse(u), P = w.success && (e === "filled" || e === "outlined");
|
|
231
|
-
return P && (I[o.var("btn-color")] = w.data.rgbString, I[o.var("btn-text-color")] = w.data.pickByContrast(
|
|
232
|
-
"#000000",
|
|
233
|
-
"#ffffff"
|
|
234
|
-
).rgbCSS), N.isZero || (I[o.var("btn-delay")] = `${N.seconds.toString()}s`), t == null && a != null ? t = rt[a] : t != null && a == null ? a = Z[t] : t ?? (t = "medium"), /* @__PURE__ */ T.jsxs(
|
|
235
|
-
xt,
|
|
236
|
-
{
|
|
237
|
-
el: "button",
|
|
238
|
-
className: o(
|
|
239
|
-
o.B("btn"),
|
|
240
|
-
o.size(t),
|
|
241
|
-
o.sharp(n),
|
|
242
|
-
e !== "preview" && o.disabled(B),
|
|
243
|
-
h != null && o.M(h),
|
|
244
|
-
o.BM("btn", e),
|
|
245
|
-
P && o.BM("btn", "custom-color"),
|
|
246
|
-
r
|
|
247
|
-
),
|
|
248
|
-
type: s,
|
|
249
|
-
level: a ?? Z[t],
|
|
250
|
-
size: d,
|
|
251
|
-
onClick: f,
|
|
252
|
-
onMouseDown: y,
|
|
253
|
-
noWrap: !0,
|
|
254
|
-
style: I,
|
|
255
|
-
startIcon: S,
|
|
256
|
-
color: u,
|
|
257
|
-
...v,
|
|
258
|
-
children: [
|
|
259
|
-
c,
|
|
260
|
-
b != null ? /* @__PURE__ */ T.jsx("div", { className: o.BE("btn", "end-content"), children: Tt(a ?? Z[t], b) }) : void 0
|
|
261
|
-
]
|
|
262
|
-
}
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
), wt = (t, e, s, r) => e === !0 ? "var(--pluto-gray-l5)" : s != null ? mt(s) : t === "filled" ? "var(--pluto-text-on-primary)" : "var(--pluto-text-color)", _t = k(
|
|
266
|
-
({
|
|
267
|
-
ref: t,
|
|
268
|
-
children: e,
|
|
269
|
-
stopPropagation: s,
|
|
270
|
-
className: r,
|
|
271
|
-
variant: c = "text",
|
|
272
|
-
size: d = "medium",
|
|
273
|
-
sharp: n = !1,
|
|
274
|
-
disabled: l = !1,
|
|
275
|
-
loading: p = !1,
|
|
276
|
-
onClick: a,
|
|
277
|
-
color: j,
|
|
278
|
-
...S
|
|
279
|
-
}) => {
|
|
280
|
-
p && (e = /* @__PURE__ */ T.jsx(V.Loading, {}));
|
|
281
|
-
const g = l || p, x = O(
|
|
282
|
-
(u) => {
|
|
283
|
-
s && u.stopPropagation(), !g && (a == null || a(u));
|
|
284
|
-
},
|
|
285
|
-
[s, g, a]
|
|
286
|
-
);
|
|
287
|
-
return /* @__PURE__ */ T.jsx(
|
|
288
|
-
"button",
|
|
289
|
-
{
|
|
290
|
-
ref: t,
|
|
291
|
-
className: pt(
|
|
292
|
-
r,
|
|
293
|
-
o.B("btn"),
|
|
294
|
-
o.B("btn-icon"),
|
|
295
|
-
o.size(d),
|
|
296
|
-
o.sharp(n),
|
|
297
|
-
o.BM("btn", c),
|
|
298
|
-
o.disabled(g)
|
|
299
|
-
),
|
|
300
|
-
onClick: x,
|
|
301
|
-
...S,
|
|
302
|
-
children: typeof e == "string" ? e : U(e, {
|
|
303
|
-
color: wt(c, g, j),
|
|
304
|
-
fill: "currentColor",
|
|
305
|
-
...e.props
|
|
306
|
-
})
|
|
307
|
-
}
|
|
308
|
-
);
|
|
309
|
-
}
|
|
310
|
-
), tt = (t) => (
|
|
311
|
-
// eslint-disable-next-line react/display-name
|
|
312
|
-
({
|
|
313
|
-
value: e,
|
|
314
|
-
onClick: s,
|
|
315
|
-
onChange: r,
|
|
316
|
-
checkedVariant: c = "filled",
|
|
317
|
-
uncheckedVariant: d = "outlined",
|
|
318
|
-
rightClickToggle: n = !1,
|
|
319
|
-
stopPropagation: l,
|
|
320
|
-
...p
|
|
321
|
-
}) => (
|
|
322
|
-
// @ts-expect-error - generic component issues
|
|
323
|
-
/* @__PURE__ */ T.jsx(
|
|
324
|
-
t,
|
|
325
|
-
{
|
|
326
|
-
...p,
|
|
327
|
-
checked: e,
|
|
328
|
-
onClick: (a) => {
|
|
329
|
-
l && a.stopPropagation(), s == null || s(a), !n && r(!e);
|
|
330
|
-
},
|
|
331
|
-
onContextMenu: (a) => {
|
|
332
|
-
a.preventDefault(), a.stopPropagation(), n && r(!e);
|
|
333
|
-
},
|
|
334
|
-
className: o(o.B("btn-toggle"), p.className),
|
|
335
|
-
variant: e ? c : d
|
|
336
|
-
}
|
|
337
|
-
)
|
|
338
|
-
)
|
|
339
|
-
), It = tt(Bt);
|
|
340
|
-
It.displayName = "ButtonToggle";
|
|
341
|
-
const Pt = tt(_t);
|
|
342
|
-
Pt.displayName = "ButtonToggleIcon";
|
|
343
|
-
export {
|
|
344
|
-
Bt as B,
|
|
345
|
-
Wt as C,
|
|
346
|
-
Ot as D,
|
|
347
|
-
_t as I,
|
|
348
|
-
It as T,
|
|
349
|
-
Pt as a,
|
|
350
|
-
bt as b,
|
|
351
|
-
Yt as c,
|
|
352
|
-
Mt as f,
|
|
353
|
-
St as i,
|
|
354
|
-
Lt as u,
|
|
355
|
-
k as w
|
|
356
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { j as a } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { b as S, T as y } from "./Divider-CMyzWvRC.js";
|
|
3
|
-
import "./state-CUPEHHgf.js";
|
|
4
|
-
import { isValidElement as v, Children as j } from "react";
|
|
5
|
-
import "./Pack-D50qN0Vu.js";
|
|
6
|
-
import { S as C } from "./Space-I_hidXYi.js";
|
|
7
|
-
import { C as e } from "./css-rxwBYwM1.js";
|
|
8
|
-
import { A as E } from "./toArray-Dvn9FA_3.js";
|
|
9
|
-
const p = ({
|
|
10
|
-
direction: o = "y",
|
|
11
|
-
className: i,
|
|
12
|
-
padded: r = !1,
|
|
13
|
-
...l
|
|
14
|
-
}) => (r === !0 && (r = "center"), /* @__PURE__ */ a.jsx(
|
|
15
|
-
"div",
|
|
16
|
-
{
|
|
17
|
-
className: e(
|
|
18
|
-
e.B("divider"),
|
|
19
|
-
e.dir(o),
|
|
20
|
-
r !== !1 && e.BM("divider", "padded"),
|
|
21
|
-
typeof r == "string" && e.loc(r),
|
|
22
|
-
i
|
|
23
|
-
),
|
|
24
|
-
...l
|
|
25
|
-
}
|
|
26
|
-
)), N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
|
-
__proto__: null,
|
|
28
|
-
Divider: p
|
|
29
|
-
}, Symbol.toStringTag, { value: "Module" })), d = (o) => (
|
|
30
|
-
// The hydrate props check lets us avoid considering Astro slots as valid react
|
|
31
|
-
// elements.
|
|
32
|
-
v(o) && !("hydrate" in o.props)
|
|
33
|
-
), O = ({
|
|
34
|
-
level: o = "h1",
|
|
35
|
-
divided: i = !1,
|
|
36
|
-
startIcon: r,
|
|
37
|
-
endIcon: l,
|
|
38
|
-
children: c,
|
|
39
|
-
color: m,
|
|
40
|
-
className: s,
|
|
41
|
-
noWrap: t = !1,
|
|
42
|
-
shade: f,
|
|
43
|
-
weight: n,
|
|
44
|
-
...u
|
|
45
|
-
}) => {
|
|
46
|
-
const x = S(m, f), h = j.toArray(r), g = j.toArray(l), b = B(o, c, x, f, n);
|
|
47
|
-
return (
|
|
48
|
-
// @ts-expect-error - level type errors
|
|
49
|
-
/* @__PURE__ */ a.jsxs(
|
|
50
|
-
C,
|
|
51
|
-
{
|
|
52
|
-
className: e(
|
|
53
|
-
e.B("text-icon"),
|
|
54
|
-
e.BM("text-icon", o),
|
|
55
|
-
e.noWrap(t),
|
|
56
|
-
s
|
|
57
|
-
),
|
|
58
|
-
direction: "x",
|
|
59
|
-
size: "small",
|
|
60
|
-
align: "center",
|
|
61
|
-
...u,
|
|
62
|
-
style: { ...u.style, color: x },
|
|
63
|
-
children: [
|
|
64
|
-
h,
|
|
65
|
-
i && r != null && /* @__PURE__ */ a.jsx(p, { direction: "y" }),
|
|
66
|
-
b,
|
|
67
|
-
i && l != null && /* @__PURE__ */ a.jsx(p, { direction: "y" }),
|
|
68
|
-
g
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
);
|
|
73
|
-
}, B = (o, i = [], r, l, c) => {
|
|
74
|
-
const m = E(i), s = [];
|
|
75
|
-
let t = [];
|
|
76
|
-
const f = { color: r, level: o, shade: l, weight: c };
|
|
77
|
-
return m.forEach((n) => {
|
|
78
|
-
n != null && (typeof n == "string" || typeof n == "number" || !d(n) ? t.push(n) : (t.length > 0 && (s.push(
|
|
79
|
-
// @ts-expect-error - level type errors
|
|
80
|
-
/* @__PURE__ */ a.jsx(y, { ...f, children: t }, t[0])
|
|
81
|
-
), t = []), s.push(n)));
|
|
82
|
-
}), t.length > 0 && s.push(
|
|
83
|
-
// @ts-expect-error- level type errors
|
|
84
|
-
/* @__PURE__ */ a.jsx(y, { ...f, children: t }, t[0])
|
|
85
|
-
), s.length === 1 ? s[0] : s;
|
|
86
|
-
};
|
|
87
|
-
export {
|
|
88
|
-
p as D,
|
|
89
|
-
O as W,
|
|
90
|
-
N as a,
|
|
91
|
-
B as f
|
|
92
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./jsx-runtime-CITbqOLs.cjs"),f=require("./Divider-CJNDIsD4.cjs");require("./state-LaBGf4_k.cjs");const p=require("react");require("./Pack-BbwDtaE6.cjs");const d=require("./Space-BrQoodma.cjs"),s=require("./css-CU7tous7.cjs"),g=require("./toArray-DRKOku1s.cjs"),a=({direction:t="y",className:o,padded:e=!1,...c})=>(e===!0&&(e="center"),l.jsxRuntimeExports.jsx("div",{className:s.CSS(s.CSS.B("divider"),s.CSS.dir(t),e!==!1&&s.CSS.BM("divider","padded"),typeof e=="string"&&s.CSS.loc(e),o),...c})),q=Object.freeze(Object.defineProperty({__proto__:null,Divider:a},Symbol.toStringTag,{value:"Module"})),v=t=>p.isValidElement(t)&&!("hydrate"in t.props),R=({level:t="h1",divided:o=!1,startIcon:e,endIcon:c,children:x,color:S,className:n,noWrap:r=!1,shade:u,weight:i,...m})=>{const j=f.evalColor(S,u),C=p.Children.toArray(e),h=p.Children.toArray(c),E=y(t,x,j,u,i);return l.jsxRuntimeExports.jsxs(d.Space,{className:s.CSS(s.CSS.B("text-icon"),s.CSS.BM("text-icon",t),s.CSS.noWrap(r),n),direction:"x",size:"small",align:"center",...m,style:{...m.style,color:j},children:[C,o&&e!=null&&l.jsxRuntimeExports.jsx(a,{direction:"y"}),E,o&&c!=null&&l.jsxRuntimeExports.jsx(a,{direction:"y"}),h]})},y=(t,o=[],e,c,x)=>{const S=g.A(o),n=[];let r=[];const u={color:e,level:t,shade:c,weight:x};return S.forEach(i=>{i!=null&&(typeof i=="string"||typeof i=="number"||!v(i)?r.push(i):(r.length>0&&(n.push(l.jsxRuntimeExports.jsx(f.Text,{...u,children:r},r[0])),r=[]),n.push(i)))}),r.length>0&&n.push(l.jsxRuntimeExports.jsx(f.Text,{...u,children:r},r[0])),n.length===1?n[0]:n};exports.Divider=a;exports.Divider$1=q;exports.WithIcon=R;exports.formatChildren=y;
|
package/dist/css-CU7tous7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Pt=Object.defineProperty;var Ht=(t,e,r)=>e in t?Pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var C=(t,e,r)=>Ht(t,typeof e!="symbol"?e+"":e,r);const i=require("zod"),Q=i.z.tuple([i.z.number(),i.z.number()]);i.z.tuple([i.z.bigint(),i.z.bigint()]);const Oe=i.z.object({width:i.z.number(),height:i.z.number()}),Yt=i.z.object({signedWidth:i.z.number(),signedHeight:i.z.number()}),kt=["width","height"];i.z.enum(kt);const Wt=["start","center","end"],Xt=["signedWidth","signedHeight"];i.z.enum(Xt);const k=i.z.object({x:i.z.number(),y:i.z.number()}),Fe=i.z.object({clientX:i.z.number(),clientY:i.z.number()}),Me=["x","y"],je=i.z.enum(Me),De=["top","right","bottom","left"],Ft=i.z.enum(De),ee=["left","right"],Se=i.z.enum(ee),te=["top","bottom"],Te=i.z.enum(te),Ie=["center"],he=i.z.enum(Ie),Dt=[...De,...Ie],re=i.z.enum(Dt);i.z.enum(Wt);const qt=["first","last"];i.z.enum(qt);const qe=i.z.object({lower:i.z.number(),upper:i.z.number()}),Gt=i.z.object({lower:i.z.bigint(),upper:i.z.bigint()});i.z.union([qe,Q]);i.z.union([Gt,Q]);const Vt=i.z.enum([...je.options,...re.options]),Ut=i.z.union([je,re,i.z.instanceof(String)]),T=t=>typeof t=="bigint"||t instanceof BigInt,Y=(t,e)=>T(t)?t.valueOf()-BigInt(e.valueOf().valueOf()):t.valueOf()-Number(e.valueOf()),Ge=(t,e)=>T(t)?t.valueOf()+BigInt(e.valueOf().valueOf()):t+Number(e.valueOf()),Kt=(t,e,r=1e-4)=>Math.abs(t-e)<r,ye=(t,e)=>T(t)?t===BigInt(e.valueOf().valueOf()):t===Number(e.valueOf()),Jt=t=>{const e=10**Math.floor(Math.log10(t));return Math.round(t/e)*e},Ve=(t,e)=>T(t)?t.valueOf()<BigInt(e.valueOf())?t:BigInt(e.valueOf()):t.valueOf()<Number(e.valueOf())?t:Number(e.valueOf()),Qt=(t,e)=>T(t)?t.valueOf()>BigInt(e.valueOf())?t:BigInt(e.valueOf()):t.valueOf()>Number(e.valueOf())?t:Number(e.valueOf()),Ue=t=>T(t)||t instanceof BigInt?t.valueOf()<0n?-t:t:t.valueOf()<0?-t:t,Ke=(t,e)=>T(t)?t.valueOf()*BigInt(e.valueOf()):t.valueOf()*Number(e.valueOf()),er=(t,e)=>T(t)?t.valueOf()/BigInt(e.valueOf()):t.valueOf()/Number(e.valueOf()),tr=Object.freeze(Object.defineProperty({__proto__:null,abs:Ue,add:Ge,closeTo:Kt,div:er,equal:ye,max:Qt,min:Ve,mult:Ke,roundToNearestMagnitude:Jt,sub:Y},Symbol.toStringTag,{value:"Module"})),p=(t,e)=>{const r={};if(typeof t=="number"||typeof t=="bigint")e!=null?(r.lower=t,r.upper=e):(r.lower=typeof t=="bigint"?0n:0,r.upper=t);else if(Array.isArray(t)){if(t.length!==2)throw new Error("bounds: expected array of length 2");[r.lower,r.upper]=t}else return fe(t);return fe(r)},rr=Object.freeze({lower:0,upper:0}),nr=Object.freeze({lower:-1/0,upper:1/0}),or=Object.freeze({lower:0,upper:1}),sr=Object.freeze({lower:-1,upper:1}),ir=(t,e)=>{if(t==null&&e==null)return!0;if(t==null||e==null)return!1;const r=p(t),n=p(e);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)},fe=t=>t.lower>t.upper?{lower:t.upper,upper:t.lower}:t,Je=(t,e)=>{const r=p(t);return e<r.lower?r.lower:e>=r.upper?r.upper-(typeof r.upper=="number"?1:1n):e},O=(t,e)=>{const r=p(t);if(typeof e=="number"||typeof e=="bigint")return e>=r.lower&&e<r.upper;const n=p(e);return n.lower>=r.lower&&n.upper<=r.upper},ur=(t,e)=>{const r=p(t),n=p(e);return r.lower===n.lower?!0:n.upper===r.lower||n.lower===r.upper?!1:O(r,n.upper)||O(r,n.lower)||O(n,r.upper)||O(n,r.lower)},ne=t=>{const e=p(t);return e.upper-e.lower},lr=t=>{const e=p(t);return typeof e.lower=="bigint"?e.lower===0n&&e.upper===0n:e.lower===0&&e.upper===0},ar=t=>{const e=ne(t);return typeof e=="number"?e===0:e===0n},cr=t=>{const e=p(t);return typeof e.lower=="bigint"?!0:Number.isFinite(e.lower)&&Number.isFinite(e.upper)},pr=t=>{const e=p(t);return(e.upper+e.lower)/2},hr=t=>({lower:Math.min(...t.map(e=>p(e).lower)),upper:Math.max(...t.map(e=>p(e).upper))}),yr=t=>({lower:Math.max(...t.map(e=>p(e).lower)),upper:Math.min(...t.map(e=>p(e).upper))}),fr=t=>{const e=p(t),r=typeof e.lower=="bigint";return Array.from({length:Number(ne(t))},(n,o)=>r?e.lower+BigInt(o):e.lower+o)},ge=(t,e)=>{const r=t.map(s=>p(s)),n=r.findIndex(s=>O(s,e)||e<s.lower);if(n===-1)return{index:t.length,position:0};const o=r[n];return O(o,e)?{index:n,position:Number(e-o.lower)}:{index:n,position:0}},ae={removeBefore:0,removeAfter:0,insertInto:0,deleteInBetween:0},gr=(t,e)=>{const r=t.map(c=>p(c)),n=p(e);if(r.length===0)return ae;const o=ge(r,n.lower),s=ge(r,n.upper);if(o.index===t.length)return{...ae,insertInto:t.length};if(s.index===0)return{...ae,removeAfter:s.position};if(o.index===s.index)return o.position!==0&&s.position!==0?null:{removeAfter:s.position,removeBefore:o.position,insertInto:o.index,deleteInBetween:0};let u=s.index-o.index,l=o.index,a=Y(Number(ne(r[o.index])),o.position);return o.position!==0?(u-=1,l+=1):a=0,{removeBefore:a,removeAfter:s.position,insertInto:l,deleteInBetween:u}},Qe=(t,e,r)=>{const n=t.map(l=>p(l)),o=r>0?1:r<0?-1:0;if(o===0)return e;let s=r,u=e;for(;ye(s,0)===!1;){const l=n.findIndex(a=>o>0?u>=a.lower&&u<a.upper:u>a.lower&&u<=a.upper);if(l!==-1){const a=n[l];let c;if(o>0?c=Y(a.upper,u):c=Y(u,a.lower),c>0){const h=Ve(Ue(s),c);if(u=Ge(u,o>0?h:-h),s=Y(s,o>0?h:-h),ye(s,0))return u;continue}}if(o>0){const a=n.filter(c=>c.lower>u);if(a.length>0)u=a[0].lower;else return u}else{const a=n.filter(c=>c.upper<u);if(a.length>0)u=a[a.length-1].upper;else return u}}return u},et=(t,e,r)=>{const n=t.map(u=>p(u));if(e===r)return typeof e=="bigint"?0n:0;const o=e<r?p([e,r]):p([r,e]);let s=typeof e=="bigint"?0n:0;for(const u of n){const l=u.lower>o.lower?u.lower:o.lower,a=u.upper<o.upper?u.upper:o.upper;if(l<a){const c=a-l;s=s+c}}return s},dr=Object.freeze(Object.defineProperty({__proto__:null,CLIP:sr,DECIMAL:or,INFINITE:nr,ZERO:rr,bounds:qe,buildInsertionPlan:gr,clamp:Je,construct:p,contains:O,distance:et,equals:ir,findInsertPosition:ge,isFinite:cr,isZero:lr,linspace:fr,makeValid:fe,max:hr,mean:pr,min:yr,overlapsWith:ur,span:ne,spanIsZero:ar,traverse:Qe},Symbol.toStringTag,{value:"Module"})),tt=Vt,v=t=>Me.includes(t)?t:te.includes(t)?"y":"x",br=t=>v(t)==="x"?"y":"x",xr=t=>v(t)==="x"?"width":"height",mr=t=>v(t)==="x"?"left":"top",wr=t=>tt.safeParse(t).success,$r=t=>v(t)==="x"?"signedWidth":"signedHeight",rt=Object.freeze(Object.defineProperty({__proto__:null,construct:v,crude:tt,dimension:xr,direction:je,isDirection:wr,location:mr,signedDimension:$r,swap:br},Symbol.toStringTag,{value:"Module"})),zr=t=>{const e=t.replace(/_[a-z]/g,r=>r[1].toUpperCase());return e.length>1&&e[0]===e[0].toUpperCase()&&e[1]===e[1].toUpperCase()||e.length===0?e:e[0].toLowerCase()+e.slice(1)},Ee=t=>{const e=(r,n=de)=>{if(typeof r=="string")return t(r);if(Array.isArray(r))return r.map(u=>e(u,n));if(!ce(r))return r;n=Or(n);const o={},s=r;return Object.keys(s).forEach(u=>{let l=s[u];const a=t(u);n.recursive&&(ce(l)?ke(l,n.keepTypesOnRecursion)||(l=e(l,n)):n.recursiveInArray&&Ye(l)&&(l=[...l].map(c=>{let h=c;return ce(c)?ke(h,n.keepTypesOnRecursion)||(h=e(c,n)):Ye(c)&&(h=e({key:c},n).key),h}))),o[a]=l}),o};return e},nt=Ee(zr),vr=t=>t.replace(/([a-z0-9])([A-Z])/g,(e,r,n)=>`${r}_${n.toLowerCase()}`),ot=Ee(vr),st=t=>t.length===0?t:t[0].toUpperCase()+t.slice(1),de={recursive:!0,recursiveInArray:!0,keepTypesOnRecursion:[Number,String,Uint8Array]},Or=(t=de)=>(t.recursive==null?t=de:t.recursiveInArray??(t.recursiveInArray=!1),t),Ye=t=>t!=null&&Array.isArray(t),ce=t=>t!=null&&typeof t=="object"&&!Array.isArray(t),ke=(t,e)=>(e||[]).some(r=>t instanceof r),Mr=t=>t.replace(/\s+/g,"-").replace(/([a-z0-9])([A-Z])/g,(e,r,n)=>`${r}-${n.toLowerCase()}`).toLowerCase(),jr=Ee(Mr),Sr=Object.freeze(Object.defineProperty({__proto__:null,camelToSnake:ot,capitalize:st,snakeToCamel:nt,toKebab:jr},Symbol.toStringTag,{value:"Module"})),Tr=Se,Ir=Te,Er=he,Br={top:"bottom",right:"left",bottom:"top",left:"right",center:"center"},Nr={top:"left",right:"top",bottom:"right",left:"bottom",center:"center"},Cr=Ut,S=t=>t instanceof String||!Me.includes(t)?t:t==="x"?"left":"top",it=t=>Br[S(t)],Ar=t=>Nr[S(t)],W=t=>{const e=S(t);return e==="top"||e==="bottom"?"y":"x"},ut=i.z.object({x:Se.or(he),y:Te.or(he)}),lt=i.z.object({x:Se,y:Te}),R=Object.freeze({x:"left",y:"top"}),Be=Object.freeze({x:"right",y:"top"}),oe=Object.freeze({x:"left",y:"bottom"}),Ne=Object.freeze({x:"right",y:"bottom"}),se=Object.freeze({x:"center",y:"center"}),at=Object.freeze({x:"center",y:"top"}),ct=Object.freeze({x:"center",y:"bottom"}),pt=Object.freeze({x:"right",y:"center"}),ht=Object.freeze({x:"left",y:"center"}),yt=Object.freeze([ht,pt,at,ct,R,Be,oe,Ne,se]),ie=(t,e)=>t.x===e.x&&t.y===e.y,ft=(t,e)=>{if(typeof e=="object"){let r=!0;return"x"in e&&(t.x===e.x||(r=!1)),"y"in e&&(t.y===e.y||(r=!1)),r}return t.x===e||t.y===e},gt=t=>[t.x,t.y],V=t=>W(S(t))==="x",Rr=t=>W(S(t))==="y",Lr=t=>`${t.x}${st(t.y)}`,_r=(t,e)=>{let r,n;if(typeof t=="object"&&"x"in t?(r=t.x,n=t.y):(r=S(t),n=S(e??t)),W(r)===W(n)&&r!=="center"&&n!=="center")throw new Error(`[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`);const o={...se};return r==="center"?V(n)?[o.x,o.y]=[n,r]:[o.x,o.y]=[r,n]:n==="center"?V(r)?[o.x,o.y]=[r,n]:[o.x,o.y]=[n,r]:V(r)?[o.x,o.y]=[r,n]:[o.x,o.y]=[n,r],o},dt=Object.freeze(Object.defineProperty({__proto__:null,BOTTOM_CENTER:ct,BOTTOM_LEFT:oe,BOTTOM_RIGHT:Ne,CENTER:se,CENTER_LOCATIONS:Ie,LEFT_CENTER:ht,RIGHT_CENTER:pt,TOP_CENTER:at,TOP_LEFT:R,TOP_RIGHT:Be,XY_LOCATIONS:yt,X_LOCATIONS:ee,Y_LOCATIONS:te,center:Er,construct:S,constructXY:_r,corner:lt,crude:Cr,direction:W,isX:V,isY:Rr,location:re,outer:Ft,rotate90:Ar,swap:it,x:Tr,xy:ut,xyCouple:gt,xyEquals:ie,xyMatches:ft,xyToString:Lr,y:Ir},Symbol.toStringTag,{value:"Module"})),be=i.z.union([i.z.number(),k,Q,Oe,Yt,Fe]),f=(t,e)=>{if(typeof t=="string"){if(e===void 0)throw new Error("The y coordinate must be given.");return t==="x"?{x:e,y:0}:{x:0,y:e}}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}},x=Object.freeze({x:0,y:0}),bt=Object.freeze({x:1,y:1}),Zr=Object.freeze({x:1/0,y:1/0}),Pr=Object.freeze({x:NaN,y:NaN}),J=(t,e,r=0)=>{const n=f(t),o=f(e);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},Hr=t=>J(t,x),Ce=(t,e,r)=>{const n=f(t),o=f(e,r);return{x:n.x*o.x,y:n.y*o.y}},xt=(t,e)=>{const r=f(t);return{x:r.x+e,y:r.y}},mt=(t,e)=>{const r=f(t);return{x:r.x,y:r.y+e}},X=(t,e,r,...n)=>typeof e=="string"&&typeof r=="number"?e==="x"?xt(t,r):mt(t,r):[t,e,r??x,...n].reduce((o,s)=>{const u=f(s);return{x:o.x+u.x,y:o.y+u.y}},x),Yr=(t,e,r)=>{const n=f(t);return e==="x"?{x:r,y:n.y}:{x:n.x,y:r}},kr=(t,e)=>{const r=f(t),n=f(e);return Math.sqrt((r.x-n.x)**2+(r.y-n.y)**2)},Wr=(t,e)=>{const r=f(t),n=f(e);return{x:n.x-r.x,y:n.y-r.y}},Xr=t=>{const e=f(t);return Number.isNaN(e.x)||Number.isNaN(e.y)},Fr=t=>{const e=f(t);return Number.isFinite(e.x)&&Number.isFinite(e.y)},Dr=t=>{const e=f(t);return[e.x,e.y]},qr=t=>{const e=f(t);return{left:e.x,top:e.y}},xe=(t,e=0)=>{const r=f(t);return{x:Number(r.x.toFixed(e)),y:Number(r.y.toFixed(e))}},Z=(t,e)=>{const r=f(t),n=f(e);return{x:r.x-n.x,y:r.y-n.y}},P=t=>{const e=f(t),r=Math.hypot(e.x,e.y);return r===0?{x:0,y:0}:{x:-e.y/r,y:e.x/r}},wt=t=>{const e=f(t),r=Math.hypot(e.x,e.y);return r===0?{x:0,y:0}:{x:e.x/r,y:e.y/r}},$t=(...t)=>{const e=t.reduce((r,n)=>X(r,n),x);return Ce(e,1/t.length)},Gr=(t,e)=>{const r=[];for(let n=0;n<t.length;n++){const o=t[n];let s,u,l,a;if(n===0){const c=t[n+1],h=Z(c,o);u=P(h),l=u,a=e}else if(n===t.length-1){const c=t[n-1],h=Z(o,c);s=P(h),l=s,a=e}else{const c=t[n-1],h=t[n+1],I=Z(o,c),_=Z(h,o);s=P(I),u=P(_);const Zt=Math.acos((I.x*_.x+I.y*_.y)/(Math.hypot(I.x,I.y)*Math.hypot(_.x,_.y))),He=Math.sin(Zt/2);He===0?a=e:a=e/He,l=wt($t(s,u))}r.push(Ce(l,a))}return r},Vr=Object.freeze(Object.defineProperty({__proto__:null,INFINITY:Zr,NAN:Pr,ONE:bt,ZERO:x,average:$t,calculateMiters:Gr,clientXY:Fe,construct:f,couple:Dr,crudeZ:be,css:qr,distance:kr,equals:J,isFinite:Fr,isNan:Xr,isZero:Hr,normal:P,normalize:wt,scale:Ce,set:Yr,sub:Z,translate:X,translateX:xt,translateY:mt,translation:Wr,truncate:xe,xy:k},Symbol.toStringTag,{value:"Module"})),F=i.z.union([i.z.number(),i.z.string()]),Ur=i.z.object({top:F,left:F,width:F,height:F}),Kr=i.z.object({left:i.z.number(),top:i.z.number(),right:i.z.number(),bottom:i.z.number()}),Jr=i.z.object({one:k,two:k,root:lt}),zt={one:x,two:x,root:R},Qr={one:x,two:bt,root:oe},vt=(t,e)=>({one:t.one,two:t.two,root:e??t.root}),y=(t,e,r=0,n=0,o)=>{const s={one:{...x},two:{...x},root:o??R};if(typeof t=="number"){if(typeof e!="number")throw new Error("Box constructor called with invalid arguments");return s.one={x:t,y:e},s.two={x:s.one.x+r,y:s.one.y+n},s}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={x:s.one.x+e.width,y:s.one.y+e.height}:"signedWidth"in e?s.two={x:s.one.x+e.signedWidth,y:s.one.y+e.signedHeight}:s.two=e,s))},en=(t,e,r)=>{const n=y(t);if(typeof e=="string"){if(r==null)throw new Error("Invalid arguments for resize");const o=v(e);return y(n.one,void 0,o==="x"?r:$(n),o==="y"?r:z(n),n.root)}return y(n.one,e,void 0,void 0,n.root)},tn=(t,e,r=!0)=>{const n=y(t);let o=(s,u)=>s<u;return r&&(o=(s,u)=>s<=u),"one"in e?o(M(n),M(e))&&o(E(e),E(n))&&o(j(n),j(e))&&o(B(e),B(n)):o(M(n),e.x)&&o(e.x,E(n))&&o(j(n),e.y)&&o(e.y,B(n))},rn=(t,e)=>J(t.one,e.one)&&J(t.two,e.two)&&ie(t.root,e.root),Ot=t=>({width:$(t),height:z(t)}),nn=t=>({signedWidth:ue(t),signedHeight:le(t)}),on=t=>({top:j(t),left:M(t),width:$(t),height:z(t)}),Ae=(t,e,r=!1)=>{const n=v(e)==="y"?le(t):ue(t);return r?n:Math.abs(n)},L=(t,e)=>{const r=y(t);return{x:e.x==="center"?me(r).x:N(r,e.x),y:e.y==="center"?me(r).y:N(r,e.y)}},N=(t,e)=>{const r=y(t),n=gt(r.root).includes(e)?Math.min:Math.max;return ee.includes(e)?n(r.one.x,r.two.x):n(r.one.y,r.two.y)},sn=t=>t.one.x===t.two.x&&t.one.y===t.two.y,$=t=>Ae(t,"x"),z=t=>Ae(t,"y"),ue=t=>{const e=y(t);return e.two.x-e.one.x},le=t=>{const e=y(t);return e.two.y-e.one.y},Mt=t=>L(t,R),un=t=>L(t,Be),ln=t=>L(t,oe),an=t=>L(t,Ne),E=t=>N(t,"right"),B=t=>N(t,"bottom"),M=t=>N(t,"left"),j=t=>N(t,"top"),me=t=>X(Mt(t),{x:ue(t)/2,y:le(t)/2}),Re=t=>{const e=y(t);return e.root.x==="left"?M(e):E(e)},Le=t=>{const e=y(t);return e.root.y==="top"?j(e):B(e)},cn=t=>({x:Re(t),y:Le(t)}),U=t=>{const e=y(t);return{lower:e.one.x,upper:e.two.x}},K=t=>{const e=y(t);return{lower:e.one.y,upper:e.two.y}},pn=(t,e)=>vt(t,e),hn=(t,e)=>{const r=y(t),n=ee.includes(e)?"x":te.includes(e)?"y":null;if(n===null)throw new Error(`Invalid location: ${e}`);const o=e==="top"||e==="left"?Math.min:Math.max,s={...r.one},u={...r.two};return s[n]=o(r.one[n],r.two[n]),u[n]=o(r.one[n],r.two[n]),[s,u]},yn=(t,e)=>{const r=y(t),n=y(e),o=Re(n)+($(n)-$(r))/2,s=Le(n)+(z(n)-z(r))/2;return y({x:o,y:s},Ot(r))},jt=t=>typeof t!="object"||t==null?!1:"one"in t&&"two"in t&&"root"in t,fn=t=>$(t)/z(t),gn=(t,e,r)=>{if(typeof e=="string"){if(r==null)throw new Error("Undefined amount passed into box.translate");const o=v(e);e=f(o,r)}const n=y(t);return y(X(n.one,e),X(n.two,e),void 0,void 0,n.root)},St=(t,e)=>{const r=Math.max(M(t),M(e)),n=Math.max(j(t),j(e)),o=Math.min(E(t),E(e)),s=Math.min(B(t),B(e));return r>o||n>s?zt:y({x:r,y:n},{x:o,y:s},void 0,void 0,t.root)},Tt=t=>$(t)*z(t),dn=(t,e)=>{const r=y(t);return y(xe(r.one,e),xe(r.two,e),void 0,void 0,r.root)},It=(t,e,r,n,o,s)=>{const u={x:t,y:e},l={x:t+r,y:e+n};return o.x!==s.x&&(o.x==="center"?(u.x-=r/2,l.x-=r/2):(u.x-=r,l.x-=r)),o.y!==s.y&&(o.y==="center"?(u.y-=n/2,l.y-=n/2):(u.y-=n,l.y-=n)),y(u,l,void 0,void 0,s)},bn=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:Qr,ZERO:zt,area:Tt,areaIsZero:sn,aspect:fn,bottom:B,bottomLeft:ln,bottomRight:an,box:Jr,center:me,construct:y,constructWithAlternateRoot:It,contains:tn,copy:vt,css:on,cssBox:Ur,dim:Ae,dims:Ot,domRect:Kr,edgePoints:hn,equals:rn,height:z,intersection:St,isBox:jt,left:M,loc:N,positionInCenter:yn,reRoot:pn,resize:en,right:E,root:cn,signedDims:nn,signedHeight:le,signedWidth:ue,top:j,topLeft:Mt,topRight:un,translate:gn,truncate:dn,width:$,x:Re,xBounds:U,xyLoc:L,y:Le,yBounds:K},Symbol.toStringTag,{value:"Module"})),Et=i.z.object({signedWidth:i.z.number(),signedHeight:i.z.number()}),xn=i.z.union([Oe,Et,k,Q]),mn={width:0,height:0},wn={width:1,height:1},d=(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},$n=(t,e)=>{if(e==null)return!1;const r=d(t),n=d(e);return r.width===n.width&&r.height===n.height},zn=t=>{const e=d(t);return{width:e.height,height:e.width}},vn=t=>{const e=d(t);return`0 0 ${e.width} ${e.height}`},On=t=>{const e=d(t);return[e.width,e.height]},Mn=t=>({width:Math.max(...t.map(e=>d(e).width)),height:Math.max(...t.map(e=>d(e).height))}),jn=t=>({width:Math.min(...t.map(e=>d(e).width)),height:Math.min(...t.map(e=>d(e).height))}),Sn=(t,e)=>{const r=d(t);return{width:r.width*e,height:r.height*e}},Tn=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:wn,ZERO:mn,construct:d,couple:On,crude:xn,dimensions:Oe,equals:$n,max:Mn,min:jn,scale:Sn,signed:Et,svgViewBox:vn,swap:zn},Symbol.toStringTag,{value:"Module"}));var In=Object.defineProperty,En=(t,e,r)=>e in t?In(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e,r)=>En(t,typeof e!="symbol"?e+"":e,r);const Bt=(t,e,r)=>e!==void 0&&t<e?e:r!==void 0&&t>r?r:t,Bn=i.z.object({offset:be,scale:be}),Nn=i.z.object({offset:i.z.number(),scale:i.z.number()}),Cn=t=>(e,r,n,o)=>r==="dimension"?[e,n]:[e,o?n-t:n+t],An=t=>(e,r,n,o)=>[e,o?n/t:n*t],Rn=t=>(e,r,n)=>{if(e===null)return[t,n];const{lower:o,upper:s}=e,{lower:u,upper:l}=t,a=s-o,c=l-u;if(r==="dimension")return[t,n*(c/a)];const h=(n-o)*(c/a)+u;return[t,h]},Ln=t=>(e,r,n)=>[t,n],_n=()=>(t,e,r)=>{if(t===null)throw new Error("cannot invert without bounds");if(e==="dimension")return[t,r];const{lower:n,upper:o}=t;return[t,o-(r-n)]},Zn=t=>(e,r,n)=>{const{lower:o,upper:s}=t;return n=Bt(n,o,s),[e,n]},we=class H{constructor(){w(this,"ops",[]),w(this,"currBounds",null),w(this,"currType",null),w(this,"reversed",!1),this.ops=[]}static translate(e){return new H().translate(e)}static magnify(e){return new H().magnify(e)}static scale(e,r){return new H().scale(e,r)}translate(e){const r=this.new(),n=Cn(e);return n.type="translate",r.ops.push(n),r}magnify(e){const r=this.new(),n=An(e);return n.type="magnify",r.ops.push(n),r}scale(e,r){const n=p(e,r),o=this.new(),s=Rn(n);return s.type="scale",o.ops.push(s),o}clamp(e,r){const n=p(e,r),o=this.new(),s=Zn(n);return s.type="clamp",o.ops.push(s),o}reBound(e,r){const n=p(e,r),o=this.new(),s=Ln(n);return s.type="re-bound",o.ops.push(s),o}invert(){const e=_n();e.type="invert";const r=this.new();return r.ops.push(e),r}pos(e){return this.exec("position",e)}dim(e){return this.exec("dimension",e)}new(){const e=new H;return e.ops=this.ops.slice(),e.reversed=this.reversed,e}exec(e,r){return this.currBounds=null,this.ops.reduce(([n,o],s)=>s(n,e,o,this.reversed),[null,r])[1]}reverse(){const e=this.new();e.ops.reverse();const r=[];return e.ops.forEach((n,o)=>{if(n.type==="scale"||r.some(([u,l])=>o>=u&&o<=l))return;const s=e.ops.findIndex((u,l)=>u.type==="scale"&&l>o);s!==-1&&r.push([o,s])}),r.forEach(([n,o])=>{const s=e.ops.slice(n,o);s.unshift(e.ops[o]),e.ops.splice(n,o-n+1,...s)}),e.reversed=!e.reversed,e}get transform(){return{scale:this.dim(1),offset:this.pos(0)}}};w(we,"IDENTITY",new we);let $e=we;const ze=class m{constructor(e=new $e,r=new $e,n=null){w(this,"x"),w(this,"y"),w(this,"currRoot"),this.x=e,this.y=r,this.currRoot=n}static translate(e,r){return new m().translate(e,r)}static translateX(e){return new m().translateX(e)}static translateY(e){return new m().translateY(e)}static clamp(e){return new m().clamp(e)}static magnify(e){return new m().magnify(e)}static scale(e){return new m().scale(e)}static reBound(e){return new m().reBound(e)}translate(e,r){const n=f(e,r),o=this.copy();return o.x=this.x.translate(n.x),o.y=this.y.translate(n.y),o}translateX(e){const r=this.copy();return r.x=this.x.translate(e),r}translateY(e){const r=this.copy();return r.y=this.y.translate(e),r}magnify(e){const r=this.copy();return r.x=this.x.magnify(e.x),r.y=this.y.magnify(e.y),r}scale(e){const r=this.copy();if(jt(e)){const n=this.currRoot;return r.currRoot=e.root,n!=null&&!ie(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(U(e)),r.y=r.y.scale(K(e)),r}return r.x=r.x.scale(e.width),r.y=r.y.scale(e.height),r}reBound(e){const r=this.copy();return r.x=this.x.reBound(U(e)),r.y=this.y.reBound(K(e)),r}clamp(e){const r=this.copy();return r.x=this.x.clamp(U(e)),r.y=this.y.clamp(K(e)),r}copy(){const e=new m;return e.currRoot=this.currRoot,e.x=this.x,e.y=this.y,e}reverse(){const e=this.copy();return e.x=this.x.reverse(),e.y=this.y.reverse(),e}pos(e){return{x:this.x.pos(e.x),y:this.y.pos(e.y)}}dim(e){return{x:this.x.dim(e.x),y:this.y.dim(e.y)}}box(e){return y(this.pos(e.one),this.pos(e.two),0,0,this.currRoot??e.root)}get transform(){return{scale:this.dim({x:1,y:1}),offset:this.pos({x:0,y:0})}}};w(ze,"IDENTITY",new ze);let Pn=ze;const Hn=Object.freeze(Object.defineProperty({__proto__:null,Scale:$e,XY:Pn,crudeXYTransform:Bn,transform:Nn},Symbol.toStringTag,{value:"Module"}));function Nt(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=Nt(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Ct(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Nt(t))&&(n&&(n+=" "),n+=e);return n}const Yn=Ct,We="-",Xe="__",D="--",_e=t=>{const e=(...r)=>Yn(...r);return e.B=r=>t+We+r,e.E=r=>t+Xe+r,e.M=r=>t+D+r,e.BM=(r,n)=>e.B(r)+D+n,e.BE=(r,n)=>e.B(r)+Xe+n,e.BEM=(r,n,o)=>e.BE(r,n)+D+o,e.extend=r=>_e(e.B(r)),e.var=r=>D+t+We+r,e},kn=/^#?([0-9a-f]{6}|[0-9a-f]{8})$/i,ve=i.z.string().regex(kn),A=i.z.number().min(0).max(255),Wn=i.z.number().min(0).max(1),Ze=i.z.tuple([A,A,A,Wn]),At=i.z.tuple([A,A,A]),Rt=i.z.object({rgba255:Ze}),Xn=t=>t==null?void 0:new g(t).hex,Fn=t=>{if(t==null)return;const e=g.z.safeParse(t);if(e.success)return e.data.rgbaCSS;if(typeof t=="string")return t;throw e.error},b=class b{constructor(e,r=1){C(this,"rgba255");if(typeof e=="string")this.rgba255=b.fromHex(e,r);else if(Array.isArray(e)){if(e.length<3||e.length>4)throw new Error(`Invalid color: [${e.join(", ")}]`);this.rgba255=e.length===3?[...e,r??1]:e}else this.rgba255=e.rgba255}equals(e){if(e==null)return!1;const r=new b(e);return this.rgba255.every((n,o)=>n===r.rgba255[o])}get hex(){const[e,r,n,o]=this.rgba255;return`#${q(e)}${q(r)}${q(n)}${o===1?"":q(o*255)}`}get rgbaCSS(){const[e,r,n,o]=this.rgba255;return`rgba(${e}, ${r}, ${n}, ${o})`}get rgbCSS(){return`rgb(${this.rgbString})`}get rgbString(){const[e,r,n]=this.rgba255;return`${e}, ${r}, ${n}`}get rgba1(){return[...this.rgb1,this.rgba255[3]]}get rgb1(){return[this.rgba255[0]/255,this.rgba255[1]/255,this.rgba255[2]/255]}get r(){return this.rgba255[0]}get g(){return this.rgba255[1]}get b(){return this.rgba255[2]}get a(){return this.rgba255[3]}get isZero(){return this.equals(Pe)}get hsla(){return Gn(this.rgba255)}setAlpha(e){const[r,n,o]=this.rgba255;if(e>100)throw new Error(`Color opacity must be between 0 and 100, got ${e}`);return e>1&&(e/=100),new b([r,n,o,e])}get luminance(){const[e,r,n]=this.rgb1.map(o=>o<=.03928?o/12.92:((o+.055)/1.055)**2.4);return Number((.2126*e+.7152*r+.0722*n).toFixed(3))}get grayness(){const[e,r,n]=this.rgb1;return 1-(Math.max(e,r,n)-Math.min(e,r,n))}contrast(e){const r=new b(e),n=this.luminance,o=r.luminance;return(Math.max(n,o)+.5)/(Math.min(n,o)+.5)}pickByContrast(...e){if(e.length===0)throw new Error("[Color.pickByContrast] - must provide at least one color");const[r]=e.map(n=>new b(n)).sort((n,o)=>this.contrast(o)-this.contrast(n));return r}get isDark(){return this.luminance<.5}get isLight(){return!this.isDark}static fromHex(e,r=1){if(!ve.safeParse(e).success)throw new Error(`Invalid hex color: ${e}`);return e=Dn(e),[G(e,0),G(e,2),G(e,4),e.length===8?G(e,6)/255:r]}};C(b,"z",i.z.union([ve,Ze,At,i.z.instanceof(b),Rt]).transform(e=>new b(e)));let g=b;const Pe=new g([0,0,0,0]),q=t=>Math.floor(t).toString(16).padStart(2,"0"),G=(t,e)=>parseInt(t.slice(e,e+2),16),Dn=t=>t.startsWith("#")?t.slice(1):t,qn=t=>{let[e,r,n]=t;const o=t[3];e/=360,r/=100,n/=100;let s,u,l;if(r===0)s=u=l=n;else{const a=n<.5?n*(1+r):n+r-n*r,c=2*n-a;s=pe(c,a,e+1/3),u=pe(c,a,e),l=pe(c,a,e-1/3)}return[Math.round(s*255),Math.round(u*255),Math.round(l*255),o]},pe=(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),Gn=t=>{let[e,r,n]=t;const o=t[3];e/=255,r/=255,n/=255,e/=255,r/=255,n/=255;const s=Math.max(e,r,n),u=Math.min(e,r,n);let l,a,c=(s+u)/2;if(s===u)l=a=0;else{const h=s-u;a=c>.5?h/(2-s-u):h/(s+u),s===e?l=(r-n)/h+(r<n?6:0):s===r?l=(n-e)/h+2:l=(e-r)/h+4,l/=6}return l*=360,a*=100,c*=100,[Math.round(l),Math.round(a),Math.round(c),o]},Lt=i.z.union([ve,Ze,i.z.instanceof(g),i.z.string(),At,Rt]),_t=i.z.object({key:i.z.string(),color:Lt,position:i.z.number(),switched:i.z.boolean().optional()}),Vn=i.z.array(_t),Un=(t,e)=>{if(t.length===0)return Pe;if(t=t.slice().sort((r,n)=>r.position-n.position),e<=t[0].position)return new g(t[0].color);if(e>=t[t.length-1].position)return new g(t[t.length-1].color);for(let r=0;r<t.length-1;r++){const n=t[r],o=t[r+1];if(e>=n.position&&e<=o.position){if(e===n.position)return new g(n.color);if(e===o.position)return new g(o.color);const s=(e-n.position)/(o.position-n.position),u=new g(n.color),l=new g(o.color),a=Math.round(u.r+s*(l.r-u.r)),c=Math.round(u.g+s*(l.g-u.g)),h=Math.round(u.b+s*(l.b-u.b)),I=u.a+s*(l.a-u.a);return new g([a,c,h,I])}}return new g(t[t.length-1].color)},Kn=i.z.object({key:i.z.string(),name:i.z.string(),color:g.z}),Jn=i.z.object({key:i.z.string(),name:i.z.string(),swatches:i.z.array(Kn)});class Qn{constructor(e=""){C(this,"rows",[]);C(this,"columns",[]);C(this,"prefix");this.prefix=e}row(e,r,n){const{prefix:o}=this;return this.rows.push({startLabel:o+e,endLabel:o+r,size:n}),this}col(e,r,n){const{prefix:o}=this;return this.columns.push({startLabel:o+e,endLabel:o+r,size:n}),this}build(){return{display:"grid",gridTemplateRows:this.rows.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.rows.length-1?"]":"",n}).join(" "),gridTemplateColumns:this.columns.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.columns.length-1?"]":"",n}).join(" ")}}}const eo=(t,e)=>Object.entries(e).forEach(([r,n])=>n!=null&&t.style.setProperty(r,`${n}`)),to=(t,e)=>Array.from(t.style).forEach(r=>{r.startsWith(e)&&t.style.removeProperty(r)}),ro=t=>{const e=_e(t);return e.visible=r=>e.M(r?"visible":"hidden"),e.expanded=r=>e.M(r?"expanded":"collapsed"),e.loc=r=>e.M(dt.construct(r)),e.disabled=r=>r===!0&&e.M("disabled"),e.align=r=>e.M(r),e.dir=r=>r!=null&&e.M(rt.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.toString()}`):e.M("bordered"),e.selected=r=>r&&e.M("selected"),e.altColor=r=>r&&e.M("alt-color"),e.editable=r=>r&&e.M("editable"),e.noSelect=e.M("no-select"),e.noWrap=r=>r&&e.M("no-wrap"),e.applyVars=eo,e.removeVars=to,e.newGridBuilder=r=>new Qn(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.shade=r=>e.M(`shade-${r}`),e.shadeVar=r=>{if(r!=null)return`var(--${t}-gray-l${r})`},e.levelSizeVar=r=>`var(--${t}-${r}-size)`,e},no=ro("pluto");exports.$=yt;exports.B=ie;exports.C=nt;exports.CSS=no;exports.Color=g;exports.D=ft;exports.G=Vr;exports.G$1=tr;exports.H=dr;exports.K=dt;exports.M=Ke;exports.Mo=bn;exports.P=it;exports.T=R;exports.T$1=Je;exports.U=Qe;exports.V=et;exports.Y=Bt;exports.ZERO=Pe;exports._=Tn;exports.a=O;exports.b=Hn;exports.c=y;exports.clsx=Ct;exports.crudeZ=Lt;exports.cssString=Fn;exports.d=Sr;exports.fromGradient=Un;exports.fromHSLA=qn;exports.g=rt;exports.g$1=L;exports.go=It;exports.gradientZ=Vn;exports.i=re;exports.i$1=p;exports.k=ot;exports.lo=St;exports.mo=Tt;exports.newBEM=_e;exports.paletteZ=Jn;exports.stopZ=_t;exports.t=v;exports.toHex=Xn;exports.u=$;exports.w=ut;exports.w$1=z;exports.x=se;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./state-LaBGf4_k.cjs");let a=null;const i=()=>(a??(a=document.createElement("canvas")),a),c=(e,s,n)=>{if(u.S.RUNTIME==="node")return{width:0,height:0};n??(n=i().getContext("2d")),n.font=s;const t=n.measureText(e);return{width:Math.trunc(Math.abs(t.actualBoundingBoxLeft)+Math.abs(t.actualBoundingBoxRight)),height:Math.trunc(Math.abs(t.actualBoundingBoxAscent)+Math.abs(t.actualBoundingBoxDescent))}};exports.dimensions=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const E=require("./Text-ClTuQXMF.cjs"),x=require("./jsx-runtime-CITbqOLs.cjs"),b=require("react"),ie=require("./state-LaBGf4_k.cjs"),xe=require("./useDebouncedCallback-vg2DKTH7.cjs"),De=require("./Text-C_j_F67Q.cjs"),ye=require("./Divider-CJNDIsD4.cjs");require("./aggregator-QqWwGnYH.cjs");require("./Pack-BbwDtaE6.cjs");require("./css-CU7tous7.cjs");require("./Toggle-CYB9Vt6b.cjs");const Fe=Symbol(),ce=Symbol(),L="a",K="w";let He=(t,e)=>new Proxy(t,e);const X=Object.getPrototypeOf,fe=new WeakMap,oe=t=>t&&(fe.has(t)?fe.get(t):X(t)===Object.prototype||X(t)===Array.prototype),de=t=>typeof t=="object"&&t!==null,ge=new WeakMap,Me=t=>t[ce]||t,Re=(t,e,s)=>{if(!oe(t))return t;const r=Me(t),n=(i=>Object.isFrozen(i)||Object.values(Object.getOwnPropertyDescriptors(i)).some(c=>!c.writable))(r);let u=s&&s.get(r);return u&&u[1].f===n||(u=((i,c)=>{const o={f:c};let l=!1;const a=(h,f)=>{if(!l){let p=o[L].get(i);if(p||(p={},o[L].set(i,p)),h===K)p[K]=!0;else{let A=p[h];A||(A=new Set,p[h]=A),A.add(f)}}},g={get:(h,f)=>f===ce?i:(a("k",f),Re(Reflect.get(h,f),o[L],o.c)),has:(h,f)=>f===Fe?(l=!0,o[L].delete(i),!0):(a("h",f),Reflect.has(h,f)),getOwnPropertyDescriptor:(h,f)=>(a("o",f),Reflect.getOwnPropertyDescriptor(h,f)),ownKeys:h=>(a(K),Reflect.ownKeys(h))};return c&&(g.set=g.deleteProperty=()=>!1),[g,o]})(r,n),u[1].p=He(n?(i=>{let c=ge.get(i);if(!c){if(Array.isArray(i))c=Array.from(i);else{const o=Object.getOwnPropertyDescriptors(i);Object.values(o).forEach(l=>{l.configurable=!0}),c=Object.create(X(i),o)}ge.set(i,c)}return c})(r):r,u[0]),s&&s.set(r,u)),u[1][L]=e,u[1].c=s,u[1].p},Be=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!de(t)||!de(e))return!0;const n=s.get(Me(t));if(!n)return!0;if(r){const i=r.get(t);if(i&&i.n===e)return i.g;r.set(t,{n:e,g:!1})}let u=null;try{for(const i of n.h||[])if(u=Reflect.has(t,i)!==Reflect.has(e,i),u)return u;if(n[K]===!0){if(u=((i,c)=>{const o=Reflect.ownKeys(i),l=Reflect.ownKeys(c);return o.length!==l.length||o.some((a,g)=>a!==l[g])})(t,e),u)return u}else for(const i of n.o||[])if(u=!!Reflect.getOwnPropertyDescriptor(t,i)!=!!Reflect.getOwnPropertyDescriptor(e,i),u)return u;for(const i of n.k||[])if(u=Be(t[i],e[i],s,r),u)return u;return u===null&&(u=!0),u}finally{r&&r.set(t,{n:e,g:u})}},Ue=t=>!!oe(t)&&Fe in t,Se=t=>oe(t)&&t[ce]||null,Ve="h",Ge="w",Je="o",Qe="k",Z=t=>typeof t=="object"&&t!==null,_e=(t,e)=>{if(!Z(t))return t;const s=Se(t);return s!==null?(Ue(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const u=_e(n,e);Object.is(u,n)||(t[r]=u)})),t)},q=(t,e,s)=>{var r,n,u;if(!Z(t)||!Z(e))return;const i=s.get(Se(e)||e);i&&((r=i[Ve])==null||r.forEach(c=>{Reflect.has(t,c)}),i[Ge]===!0&&Reflect.ownKeys(t),(n=i[Je])==null||n.forEach(c=>{Reflect.getOwnPropertyDescriptor(t,c)}),(u=i[Qe])==null||u.forEach(c=>{q(t[c],e[c],s)}))},U="o",V="r",G="a";function Xe(t,e){var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,u=[],i=e!=null&&e.noWeakMap?null:new WeakMap;return o=>{const l=i==null?void 0:i.get(o);if(l)return l[V];for(let p=0;p<n;p+=1){const A=u[(r+p)%n];if(!A)break;if(!Be(A[U],o,A[G],new WeakMap))return q(o,A[U],A[G]),i==null||i.set(o,A),A[V]}const a=new WeakMap,g=Re(o,a),h=_e(t(g),new Set);q(o,o,a);const f={[U]:o,[V]:h,[G]:a};return r=(r-1+n)%n,u[r]=f,i==null||i.set(o,f),h}}const Oe=(t,e)=>ie.S.RUNTIME==="browser"?Xe(t,e):t;function _(t){return Array.isArray?Array.isArray(t):be(t)==="[object Array]"}function Ze(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function qe(t){return t==null?"":Ze(t)}function S(t){return typeof t=="string"}function Ie(t){return typeof t=="number"}function et(t){return t===!0||t===!1||tt(t)&&be(t)=="[object Boolean]"}function we(t){return typeof t=="object"}function tt(t){return we(t)&&t!==null}function F(t){return t!=null}function J(t){return!t.trim().length}function be(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const st="Incorrect 'index' type",rt=t=>`Invalid value for key ${t}`,nt=t=>`Pattern length exceeds max of ${t}.`,ut=t=>`Missing ${t} property in key`,it=t=>`Property 'weight' in key '${t}' must be a positive integer`,pe=Object.prototype.hasOwnProperty;class ct{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=ve(r);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ve(t){let e=null,s=null,r=null,n=1,u=null;if(S(t)||_(t))r=t,e=Ae(t),s=ee(t);else{if(!pe.call(t,"name"))throw new Error(ut("name"));const i=t.name;if(r=i,pe.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(it(i));e=Ae(i),s=ee(i),u=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:u}}function Ae(t){return _(t)?t:t.split(".")}function ee(t){return _(t)?t.join("."):t}function ot(t,e){let s=[],r=!1;const n=(u,i,c)=>{if(F(u))if(!i[c])s.push(u);else{let o=i[c];const l=u[o];if(!F(l))return;if(c===i.length-1&&(S(l)||Ie(l)||et(l)))s.push(qe(l));else if(_(l)){r=!0;for(let a=0,g=l.length;a<g;a+=1)n(l[a],i,c+1)}else i.length&&n(l,i,c+1)}};return n(t,S(e)?e.split("."):e,0),r?s:s[0]}const lt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},at={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},ht={location:0,threshold:.6,distance:100},ft={useExtendedSearch:!1,getFn:ot,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...at,...lt,...ht,...ft};const dt=/[^ ]+/g;function gt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const u=n.match(dt).length;if(s.has(u))return s.get(u);const i=1/Math.pow(u,.5*t),c=parseFloat(Math.round(i*r)/r);return s.set(u,c),c},clear(){s.clear()}}}class le{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=gt(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,S(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();S(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!F(e)||J(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((n,u)=>{let i=n.getFn?n.getFn(e):this.getFn(e,n.path);if(F(i)){if(_(i)){let c=[];const o=[{nestedArrIndex:-1,value:i}];for(;o.length;){const{nestedArrIndex:l,value:a}=o.pop();if(F(a))if(S(a)&&!J(a)){let g={v:a,i:l,n:this.norm.get(a)};c.push(g)}else _(a)&&a.forEach((g,h)=>{o.push({nestedArrIndex:h,value:g})})}r.$[u]=c}else if(S(i)&&!J(i)){let c={v:i,n:this.norm.get(i)};r.$[u]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function je(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const n=new le({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(ve)),n.setSources(e),n.create(),n}function pt(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:n}=t,u=new le({getFn:e,fieldNormWeight:s});return u.setKeys(r),u.setIndexRecords(n),u}function N(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=d.distance,ignoreLocation:u=d.ignoreLocation}={}){const i=e/t.length;if(u)return i;const c=Math.abs(r-s);return n?i+c/n:c?1:i}function At(t=[],e=d.minMatchCharLength){let s=[],r=-1,n=-1,u=0;for(let i=t.length;u<i;u+=1){let c=t[u];c&&r===-1?r=u:!c&&r!==-1&&(n=u-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[u-1]&&u-r>=e&&s.push([r,u-1]),s}const T=32;function Et(t,e,s,{location:r=d.location,distance:n=d.distance,threshold:u=d.threshold,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,includeMatches:o=d.includeMatches,ignoreLocation:l=d.ignoreLocation}={}){if(e.length>T)throw new Error(nt(T));const a=e.length,g=t.length,h=Math.max(0,Math.min(r,g));let f=u,p=h;const A=c>1||o,D=A?Array(g):[];let y;for(;(y=t.indexOf(e,p))>-1;){let m=N(e,{currentLocation:y,expectedLocation:h,distance:n,ignoreLocation:l});if(f=Math.min(m,f),p=y+a,A){let I=0;for(;I<a;)D[y+I]=1,I+=1}}p=-1;let M=[],O=1,C=a+g;const j=1<<a-1;for(let m=0;m<a;m+=1){let I=0,w=C;for(;I<w;)N(e,{errors:m,currentLocation:h+w,expectedLocation:h,distance:n,ignoreLocation:l})<=f?I=w:C=w,w=Math.floor((C-I)/2+I);C=w;let ae=Math.max(1,h-w+1),H=i?g:Math.min(h+w,g)+a,P=Array(H+2);P[H+1]=(1<<m)-1;for(let B=H;B>=ae;B-=1){let $=B-1,he=s[t.charAt($)];if(A&&(D[$]=+!!he),P[B]=(P[B+1]<<1|1)&he,m&&(P[B]|=(M[B+1]|M[B])<<1|1|M[B+1]),P[B]&j&&(O=N(e,{errors:m,currentLocation:$,expectedLocation:h,distance:n,ignoreLocation:l}),O<=f)){if(f=O,p=$,p<=h)break;ae=Math.max(1,2*h-p)}}if(N(e,{errors:m+1,currentLocation:h,expectedLocation:h,distance:n,ignoreLocation:l})>f)break;M=P}const R={isMatch:p>=0,score:Math.max(.001,O)};if(A){const m=At(D,c);m.length?o&&(R.indices=m):R.isMatch=!1}return R}function Ct(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<r-s-1}return e}const Y=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class Te{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:n=d.distance,includeMatches:u=d.includeMatches,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,isCaseSensitive:o=d.isCaseSensitive,ignoreDiacritics:l=d.ignoreDiacritics,ignoreLocation:a=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:u,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:a},e=o?e:e.toLowerCase(),e=l?Y(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const g=(f,p)=>{this.chunks.push({pattern:f,alphabet:Ct(f),startIndex:p})},h=this.pattern.length;if(h>T){let f=0;const p=h%T,A=h-p;for(;f<A;)g(this.pattern.substr(f,T),f),f+=T;if(p){const D=h-T;g(this.pattern.substr(D),D)}}else g(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=s?e:e.toLowerCase(),e=r?Y(e):e,this.pattern===e){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,e.length-1]]),A}const{location:u,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:l,ignoreLocation:a}=this.options;let g=[],h=0,f=!1;this.chunks.forEach(({pattern:A,alphabet:D,startIndex:y})=>{const{isMatch:M,score:O,indices:C}=Et(e,A,D,{location:u+y,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:l,includeMatches:n,ignoreLocation:a});M&&(f=!0),h+=O,M&&C&&(g=[...g,...C])});let p={isMatch:f,score:f?h/this.chunks.length:1};return f&&n&&(p.indices=g),p}}class v{constructor(e){this.pattern=e}static isMultiMatch(e){return Ee(e,this.multiRegex)}static isSingleMatch(e){return Ee(e,this.singleRegex)}search(){}}function Ee(t,e){const s=t.match(e);return s?s[1]:null}class mt extends v{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class xt extends v{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Dt extends v{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class yt extends v{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Ft extends v{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Mt extends v{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Pe extends v{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:n=d.distance,includeMatches:u=d.includeMatches,findAllMatches:i=d.findAllMatches,minMatchCharLength:c=d.minMatchCharLength,isCaseSensitive:o=d.isCaseSensitive,ignoreDiacritics:l=d.ignoreDiacritics,ignoreLocation:a=d.ignoreLocation}={}){super(e),this._bitapSearch=new Te(e,{location:s,threshold:r,distance:n,includeMatches:u,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class ke extends v{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const n=[],u=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+u,n.push([r,s-1]);const i=!!n.length;return{isMatch:i,score:i?0:1,indices:n}}}const te=[mt,ke,Dt,yt,Mt,Ft,xt,Pe],Ce=te.length,Rt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Bt="|";function St(t,e={}){return t.split(Bt).map(s=>{let r=s.trim().split(Rt).filter(u=>u&&!!u.trim()),n=[];for(let u=0,i=r.length;u<i;u+=1){const c=r[u];let o=!1,l=-1;for(;!o&&++l<Ce;){const a=te[l];let g=a.isMultiMatch(c);g&&(n.push(new a(g,e)),o=!0)}if(!o)for(l=-1;++l<Ce;){const a=te[l];let g=a.isSingleMatch(c);if(g){n.push(new a(g,e));break}}}return n})}const _t=new Set([Pe.type,ke.type]);class Ot{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,ignoreDiacritics:r=d.ignoreDiacritics,includeMatches:n=d.includeMatches,minMatchCharLength:u=d.minMatchCharLength,ignoreLocation:i=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:l=d.threshold,distance:a=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:u,findAllMatches:c,ignoreLocation:i,location:o,threshold:l,distance:a},e=s?e:e.toLowerCase(),e=r?Y(e):e,this.pattern=e,this.query=St(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n,ignoreDiacritics:u}=this.options;e=n?e:e.toLowerCase(),e=u?Y(e):e;let i=0,c=[],o=0;for(let l=0,a=s.length;l<a;l+=1){const g=s[l];c.length=0,i=0;for(let h=0,f=g.length;h<f;h+=1){const p=g[h],{isMatch:A,indices:D,score:y}=p.search(e);if(A){if(i+=1,o+=y,r){const M=p.constructor.type;_t.has(M)?c=[...c,...D]:c.push(D)}}else{o=0,i=0,c.length=0;break}}if(i){let h={isMatch:!0,score:o/i};return r&&(h.indices=c),h}}return{isMatch:!1,score:1}}}const se=[];function It(...t){se.push(...t)}function re(t,e){for(let s=0,r=se.length;s<r;s+=1){let n=se[s];if(n.condition(t,e))return new n(t,e)}return new Te(t,e)}const W={AND:"$and",OR:"$or"},ne={PATH:"$path",PATTERN:"$val"},ue=t=>!!(t[W.AND]||t[W.OR]),wt=t=>!!t[ne.PATH],bt=t=>!_(t)&&we(t)&&!ue(t),me=t=>({[W.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Le(t,e,{auto:s=!0}={}){const r=n=>{let u=Object.keys(n);const i=wt(n);if(!i&&u.length>1&&!ue(n))return r(me(n));if(bt(n)){const o=i?n[ne.PATH]:u[0],l=i?n[ne.PATTERN]:n[o];if(!S(l))throw new Error(rt(o));const a={keyId:ee(o),pattern:l};return s&&(a.searcher=re(l,e)),a}let c={children:[],operator:u[0]};return u.forEach(o=>{const l=n[o];_(l)&&l.forEach(a=>{c.children.push(r(a))})}),c};return ue(t)||(t=me(t)),r(t)}function vt(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:u,score:i})=>{const c=n?n.weight:null;r*=Math.pow(i===0&&c?Number.EPSILON:i,(c||1)*(e?1:u))}),s.score=r})}function jt(t,e){const s=t.matches;e.matches=[],F(s)&&s.forEach(r=>{if(!F(r.indices)||!r.indices.length)return;const{indices:n,value:u}=r;let i={indices:n,value:u};r.key&&(i.key=r.key.src),r.idx>-1&&(i.refIndex=r.idx),e.matches.push(i)})}function Tt(t,e){e.score=t.score}function Pt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const n=[];return s&&n.push(jt),r&&n.push(Tt),t.map(u=>{const{idx:i}=u,c={item:e[i],refIndex:i};return n.length&&n.forEach(o=>{o(u,c)}),c})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new ct(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof le))throw new Error(st);this._myIndex=s||je(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){F(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,n=this._docs.length;r<n;r+=1){const u=this._docs[r];e(u,r)&&(this.removeAt(r),r-=1,n-=1,s.push(u))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:u,sortFn:i,ignoreFieldNorm:c}=this.options;let o=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return vt(o,{ignoreFieldNorm:c}),u&&o.sort(i),Ie(s)&&s>-1&&(o=o.slice(0,s)),Pt(o,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=re(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:u,i,n:c})=>{if(!F(u))return;const{isMatch:o,score:l,indices:a}=s.searchIn(u);o&&n.push({item:u,idx:i,matches:[{score:l,value:u,norm:c,indices:a}]})}),n}_searchLogical(e){const s=Le(e,this.options),r=(c,o,l)=>{if(!c.children){const{keyId:g,searcher:h}=c,f=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(o,g),searcher:h});return f&&f.length?[{idx:l,item:o,matches:f}]:[]}const a=[];for(let g=0,h=c.children.length;g<h;g+=1){const f=c.children[g],p=r(f,o,l);if(p.length)a.push(...p);else if(c.operator===W.AND)return[]}return a},n=this._myIndex.records,u={},i=[];return n.forEach(({$:c,i:o})=>{if(F(c)){let l=r(s,c,o);l.length&&(u[o]||(u[o]={idx:o,item:c,matches:[]},i.push(u[o])),l.forEach(({matches:a})=>{u[o].matches.push(...a)}))}}),i}_searchObjectList(e){const s=re(e,this.options),{keys:r,records:n}=this._myIndex,u=[];return n.forEach(({$:i,i:c})=>{if(!F(i))return;let o=[];r.forEach((l,a)=>{o.push(...this._findMatches({key:l,value:i[a],searcher:s}))}),o.length&&u.push({idx:c,item:i,matches:o})}),u}_findMatches({key:e,value:s,searcher:r}){if(!F(s))return[];let n=[];if(_(s))s.forEach(({v:u,i,n:c})=>{if(!F(u))return;const{isMatch:o,score:l,indices:a}=r.searchIn(u);o&&n.push({score:l,key:e,value:u,idx:i,norm:c,indices:a})});else{const{v:u,n:i}=s,{isMatch:c,score:o,indices:l}=r.searchIn(u);c&&n.push({score:o,key:e,value:u,norm:i,indices:l})}return n}}k.version="7.1.0";k.createIndex=je;k.parseIndex=pt;k.config=d;k.parseQuery=Le;It(Ot);const kt={threshold:.3},$e=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...kt,...t});return{type:"fuse",page:(r,n)=>e.slice(r*n,(r+1)*n),search:r=>s.search(r).map(({item:n})=>n),retrieve:r=>e.filter(n=>r.includes(n.key))}},Lt=$e(),Ne=({term:t,searcher:e=Lt})=>Oe(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),Ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,u]=ie.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:i,deleteTransform:c}=E.useDataUtils(),o=xe.useDebouncedCallback(i,t,[]),l=b.useCallback(a=>{u(a),a.length===0?c("filter"):(r!=null&&(a=r(a)),o("filter",Ne({term:a})))},[u,r]);return{value:n,onChange:l}},Ye=({children:t=s=>x.jsxRuntimeExports.jsx(De.Text,{placeholder:"Filter",...s}),...e})=>t(Ke(e)),z={height:150},Q=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:z,children:"No Results"}),$t=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:z,children:"Type to search"}),Nt=()=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h2",variant:"disabled",hideIcon:!0,style:z,children:x.jsxRuntimeExports.jsx(ye.d4.Loading,{})}),Kt=({error:t})=>x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"error",style:z,children:t.message}),Yt=t=>t,We=({debounce:t=250,searcher:e,value:s,onChange:r,pageSize:n=15,filter:u=Yt})=>{const[i,c]=ie.usePurePassthrough({value:s,onChange:r,initial:""}),o=ye.useSyncedRef(i),l=b.useRef(!1),a=b.useRef(!0),g=b.useRef(0),{setSourceData:h,setEmptyContent:f,getDefaultEmptyContent:p}=E.useDataUtils(),{setHasMore:A,setOnFetchMore:D}=E.useInfiniteUtils();b.useEffect(()=>f(x.jsxRuntimeExports.jsx($t,{})),[f]);const y=b.useCallback((C=!1)=>{if(o.current.length>0||l.current||e==null)return;C&&(g.current=0,a.current=!0,A(!0)),l.current=!0,f(x.jsxRuntimeExports.jsx(Nt,{})),(async()=>{try{let R=await e.page(g.current,n);R=u(R),R.length===0&&f(p()??x.jsxRuntimeExports.jsx(Q,{})),R.length<n&&(a.current=!1,A(!1)),g.current+=n,h(C?R:m=>[...m,...R])}catch(R){l.current=!1,f(x.jsxRuntimeExports.jsx(Kt,{error:R}))}finally{l.current=!1}})()},[e,h,n,u]);b.useEffect(()=>{y(!0),D(y)},[y]);const M=xe.useDebouncedCallback(C=>{if(C.length===0){y(!0);return}if(e==null)return f(x.jsxRuntimeExports.jsx(Q,{}));e.search(C).then(j=>{j.length===0&&f(x.jsxRuntimeExports.jsx(Q,{})),h(u(j))}).catch(j=>{f(x.jsxRuntimeExports.jsx(E.Text.Centered,{level:"h4",variant:"error",children:j.message}))})},t,[e,h,f,u]),O=b.useCallback(C=>{c(C),M(C)},[c,M]);return{value:i,onChange:O}},Wt=t=>x.jsxRuntimeExports.jsx(De.Text,{placeholder:"Search",...t}),ze=({children:t=Wt,...e})=>t(We(e)),zt=Object.freeze(Object.defineProperty({__proto__:null,Column:E.Column,Core:E.Core,DataProvider:E.DataProvider,Filter:Ye,Hover:E.Hover,ItemFrame:E.ItemFrame,List:E.List,Search:ze,Selector:E.Selector,selectValueIsZero:E.selectValueIsZero,useDataContext:E.useDataContext,useDataUtils:E.useDataUtils,useFilter:Ke,useGetTransformedData:E.useGetTransformedData,useHoverContext:E.useHoverContext,useSearch:We,useSelect:E.useSelect,useSelection:E.useSelection,useSelectionContext:E.useSelectionContext,useSelectionUtils:E.useSelectionUtils,useSetSourceData:E.useSetSourceData,useSourceData:E.useSourceData,useTransformedData:E.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Ye;exports.Search=ze;exports.createFilterTransform=Ne;exports.external=zt;exports.fuseFilter=$e;exports.proxyMemo=Oe;
|