@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
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as Oe, v as Ye, V as D, z as V, A as ue, F as Z, G as Ve, H as ze, I as Ge, R as Ze, L as Je, U as We, N as He, W as Ke, O as Xe, Q as Qe, S as _e, X as et } from "./css-Dyt-QnKy.js";
|
|
2
2
|
import { z as u } from "zod";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
let He = class {
|
|
3
|
+
const Te = (r) => r != null && typeof r == "object" && !Array.isArray(r);
|
|
4
|
+
var tt = Object.defineProperty, rt = (r, e, t) => e in r ? tt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Y = (r, e, t) => rt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
5
|
+
let nt = class {
|
|
7
6
|
constructor() {
|
|
8
|
-
|
|
7
|
+
Y(this, "contentType", "application/json"), Y(this, "decoder"), Y(this, "encoder"), this.decoder = new TextDecoder(), this.encoder = new TextEncoder();
|
|
9
8
|
}
|
|
10
9
|
encode(e) {
|
|
11
10
|
return this.encoder.encode(this.encodeString(e)).buffer;
|
|
@@ -14,18 +13,18 @@ let He = class {
|
|
|
14
13
|
return this.decodeString(this.decoder.decode(e), t);
|
|
15
14
|
}
|
|
16
15
|
decodeString(e, t) {
|
|
17
|
-
const n = JSON.parse(e), s =
|
|
16
|
+
const n = JSON.parse(e), s = Oe(n);
|
|
18
17
|
return t != null ? t.parse(s) : s;
|
|
19
18
|
}
|
|
20
19
|
encodeString(e) {
|
|
21
|
-
const t =
|
|
22
|
-
return JSON.stringify(t, (n, s) => ArrayBuffer.isView(s) ? Array.from(s) :
|
|
20
|
+
const t = Ye(e);
|
|
21
|
+
return JSON.stringify(t, (n, s) => ArrayBuffer.isView(s) ? Array.from(s) : Te(s) && "encode_value" in s ? typeof s.value == "bigint" ? s.value.toString() : s.value : typeof s == "bigint" ? s.toString() : s);
|
|
23
22
|
}
|
|
24
23
|
static registerCustomType() {
|
|
25
24
|
}
|
|
26
|
-
},
|
|
25
|
+
}, st = class {
|
|
27
26
|
constructor() {
|
|
28
|
-
|
|
27
|
+
Y(this, "contentType", "text/csv");
|
|
29
28
|
}
|
|
30
29
|
encode(e) {
|
|
31
30
|
const t = this.encodeString(e);
|
|
@@ -36,7 +35,7 @@ let He = class {
|
|
|
36
35
|
return this.decodeString(n, t);
|
|
37
36
|
}
|
|
38
37
|
encodeString(e) {
|
|
39
|
-
if (!Array.isArray(e) || e.length === 0 || !
|
|
38
|
+
if (!Array.isArray(e) || e.length === 0 || !Te(e[0]))
|
|
40
39
|
throw new Error("Payload must be an array of objects");
|
|
41
40
|
const t = Object.keys(e[0]), n = [t.join(",")];
|
|
42
41
|
return e.forEach((s) => {
|
|
@@ -68,9 +67,9 @@ let He = class {
|
|
|
68
67
|
}
|
|
69
68
|
static registerCustomType() {
|
|
70
69
|
}
|
|
71
|
-
},
|
|
70
|
+
}, it = class {
|
|
72
71
|
constructor() {
|
|
73
|
-
|
|
72
|
+
Y(this, "contentType", "text/plain");
|
|
74
73
|
}
|
|
75
74
|
encode(e) {
|
|
76
75
|
return new TextEncoder().encode(e).buffer;
|
|
@@ -80,10 +79,10 @@ let He = class {
|
|
|
80
79
|
return t != null ? t.parse(n) : n;
|
|
81
80
|
}
|
|
82
81
|
};
|
|
83
|
-
const J = new
|
|
84
|
-
new
|
|
85
|
-
new
|
|
86
|
-
const
|
|
82
|
+
const J = new nt();
|
|
83
|
+
new st();
|
|
84
|
+
new it();
|
|
85
|
+
const re = (r) => [...new Set(r)], at = (r, e, t = !0) => {
|
|
87
86
|
const n = /* @__PURE__ */ new Map();
|
|
88
87
|
return r.forEach((s) => {
|
|
89
88
|
const a = e(s);
|
|
@@ -93,12 +92,12 @@ const ne = (r) => [...new Set(r)], Qe = (r, e, t = !0) => {
|
|
|
93
92
|
}
|
|
94
93
|
n.set(a, s);
|
|
95
94
|
}), Array.from(n.values());
|
|
96
|
-
},
|
|
95
|
+
}, Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
97
96
|
__proto__: null,
|
|
98
|
-
by:
|
|
99
|
-
unique:
|
|
100
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
101
|
-
if (
|
|
97
|
+
by: at,
|
|
98
|
+
unique: re
|
|
99
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = (r) => r != null && typeof r == "object" && "toString" in r, $r = (r) => {
|
|
100
|
+
if (ve(r)) return (r == null ? void 0 : r.toString().length) === 0;
|
|
102
101
|
switch (typeof r) {
|
|
103
102
|
case "string":
|
|
104
103
|
return r.length === 0;
|
|
@@ -114,7 +113,7 @@ const ne = (r) => [...new Set(r)], Qe = (r, e, t = !0) => {
|
|
|
114
113
|
return r === null;
|
|
115
114
|
}
|
|
116
115
|
}, _ = (r, e = !1) => {
|
|
117
|
-
const t =
|
|
116
|
+
const t = ve(r) ? "stringer" : typeof r;
|
|
118
117
|
let n;
|
|
119
118
|
switch (t) {
|
|
120
119
|
case "string":
|
|
@@ -138,19 +137,19 @@ const ne = (r) => [...new Set(r)], Qe = (r, e, t = !0) => {
|
|
|
138
137
|
default:
|
|
139
138
|
return console.warn(`sortFunc: unknown type ${t}`), () => -1;
|
|
140
139
|
}
|
|
141
|
-
return e ?
|
|
142
|
-
},
|
|
140
|
+
return e ? Ne(n) : n;
|
|
141
|
+
}, ot = (r, e, t) => {
|
|
143
142
|
const n = _(e[r], t);
|
|
144
143
|
return (s, a) => n(s[r], a[r]);
|
|
145
|
-
},
|
|
144
|
+
}, ut = (r, e) => r.length !== e.length ? r.length - e.length : r.every((t, n) => t === e[n]) ? 0 : -1, Se = (r, e) => {
|
|
146
145
|
if (r.length !== e.length) return r.length - e.length;
|
|
147
146
|
if (r.length === 0) return 0;
|
|
148
147
|
const t = _(r[0]), n = [...r].sort(t), s = [...e].sort(t);
|
|
149
148
|
return n.every((a, l) => a === s[l]) ? 0 : -1;
|
|
150
|
-
},
|
|
151
|
-
const t =
|
|
152
|
-
return
|
|
153
|
-
},
|
|
149
|
+
}, lt = (r, e) => {
|
|
150
|
+
const t = re(r), n = re(e);
|
|
151
|
+
return Se(t, n);
|
|
152
|
+
}, ht = (r, e) => r === e ? 0 : r === "first" && e === "last" ? 1 : -1, Ne = (r) => (e, t) => r(t, e), C = 0, W = -1, H = 1, Ie = (r) => r < C, Ae = (r) => r > C, ct = (r) => r >= C, $e = (r) => r === C, ft = (r, e) => {
|
|
154
153
|
const t = /([a-zA-Z]+)|(\d+)/g, n = r.replace(/[\s_.-]+/g, "").match(t), s = e.replace(/[\s_.-]+/g, "").match(t);
|
|
155
154
|
if (!n || !s) return 0;
|
|
156
155
|
for (let a = 0; a < Math.min(n.length, s.length); a++) {
|
|
@@ -164,35 +163,35 @@ const ne = (r) => [...new Set(r)], Qe = (r, e, t = !0) => {
|
|
|
164
163
|
} else return isNaN(Number(l)) ? -1 : 1;
|
|
165
164
|
}
|
|
166
165
|
return n.length - s.length;
|
|
167
|
-
},
|
|
166
|
+
}, Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
168
167
|
__proto__: null,
|
|
169
|
-
EQUAL:
|
|
168
|
+
EQUAL: C,
|
|
170
169
|
GREATER_THAN: H,
|
|
171
170
|
LESS_THAN: W,
|
|
172
|
-
isEqualTo:
|
|
173
|
-
isGreaterThan:
|
|
174
|
-
isGreaterThanEqual:
|
|
175
|
-
isLessThan:
|
|
171
|
+
isEqualTo: $e,
|
|
172
|
+
isGreaterThan: Ae,
|
|
173
|
+
isGreaterThanEqual: ct,
|
|
174
|
+
isLessThan: Ie,
|
|
176
175
|
newF: _,
|
|
177
|
-
newFieldF:
|
|
178
|
-
order:
|
|
179
|
-
primitiveArrays:
|
|
180
|
-
reverseF:
|
|
181
|
-
stringsWithNumbers:
|
|
182
|
-
uniqueUnorderedPrimitiveArrays:
|
|
183
|
-
unorderedPrimitiveArrays:
|
|
176
|
+
newFieldF: ot,
|
|
177
|
+
order: ht,
|
|
178
|
+
primitiveArrays: ut,
|
|
179
|
+
reverseF: Ne,
|
|
180
|
+
stringsWithNumbers: ft,
|
|
181
|
+
uniqueUnorderedPrimitiveArrays: lt,
|
|
182
|
+
unorderedPrimitiveArrays: Se
|
|
184
183
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
185
|
-
var
|
|
186
|
-
let
|
|
184
|
+
var dt = Object.defineProperty, gt = (r, e, t) => e in r ? dt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, i = (r, e, t) => gt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
185
|
+
let mt = (r, e = 21) => (t = e) => {
|
|
187
186
|
let n = "", s = t | 0;
|
|
188
187
|
for (; s--; )
|
|
189
188
|
n += r[Math.random() * r.length | 0];
|
|
190
189
|
return n;
|
|
191
190
|
};
|
|
192
|
-
const
|
|
191
|
+
const pt = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", yt = mt(pt, 11), Ee = () => yt(), Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
193
192
|
__proto__: null,
|
|
194
|
-
create:
|
|
195
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
193
|
+
create: Ee
|
|
194
|
+
}, Symbol.toStringTag, { value: "Module" })), bt = u.enum(["static", "dynamic"]), Me = (r, e) => {
|
|
196
195
|
const t = new w(e);
|
|
197
196
|
if (![
|
|
198
197
|
O.DAY,
|
|
@@ -322,7 +321,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
322
321
|
* valid, regardless of the TimeStamp order.
|
|
323
322
|
*/
|
|
324
323
|
range(e) {
|
|
325
|
-
return new
|
|
324
|
+
return new z(this, e).makeValid();
|
|
326
325
|
}
|
|
327
326
|
/**
|
|
328
327
|
* Creates a TimeRange starting at the TimeStamp and spanning the given
|
|
@@ -512,7 +511,7 @@ const ut = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", lt
|
|
|
512
511
|
* @example TimeStamp.now().remainder(TimeStamp.DAY) // => TimeStamp representing the current day
|
|
513
512
|
*/
|
|
514
513
|
remainder(e) {
|
|
515
|
-
return
|
|
514
|
+
return Me(this, e);
|
|
516
515
|
}
|
|
517
516
|
/** @returns true if the day portion TimeStamp is today, false otherwise. */
|
|
518
517
|
get isToday() {
|
|
@@ -597,10 +596,10 @@ const b = class d {
|
|
|
597
596
|
i(this, "value"), i(this, "encodeValue", !0), typeof e == "number" && (e = Math.trunc(e.valueOf())), this.value = BigInt(e.valueOf());
|
|
598
597
|
}
|
|
599
598
|
static fromSeconds(e) {
|
|
600
|
-
return e instanceof d ? e : e instanceof
|
|
599
|
+
return e instanceof d ? e : e instanceof le ? e.period : e instanceof w ? new d(e) : ["number", "bigint"].includes(typeof e) ? d.seconds(e) : new d(e);
|
|
601
600
|
}
|
|
602
601
|
static fromMilliseconds(e) {
|
|
603
|
-
return e instanceof d ? e : e instanceof
|
|
602
|
+
return e instanceof d ? e : e instanceof le ? e.period : e instanceof w ? new d(e) : ["number", "bigint"].includes(typeof e) ? d.milliseconds(e) : new d(e);
|
|
604
603
|
}
|
|
605
604
|
encode() {
|
|
606
605
|
return this.value.toString();
|
|
@@ -621,7 +620,7 @@ const b = class d {
|
|
|
621
620
|
return this.valueOf() >= new d(e).valueOf();
|
|
622
621
|
}
|
|
623
622
|
remainder(e) {
|
|
624
|
-
return
|
|
623
|
+
return Me(this, e);
|
|
625
624
|
}
|
|
626
625
|
truncate(e) {
|
|
627
626
|
return new d(
|
|
@@ -629,9 +628,9 @@ const b = class d {
|
|
|
629
628
|
);
|
|
630
629
|
}
|
|
631
630
|
toString() {
|
|
632
|
-
const e = this.truncate(d.DAY), t = this.truncate(d.HOUR), n = this.truncate(d.MINUTE), s = this.truncate(d.SECOND), a = this.truncate(d.MILLISECOND), l = this.truncate(d.MICROSECOND), m = this.truncate(d.NANOSECOND), f = e, g = t.sub(e), v = n.sub(t), c = s.sub(n),
|
|
633
|
-
let
|
|
634
|
-
return f.isZero || (
|
|
631
|
+
const e = this.truncate(d.DAY), t = this.truncate(d.HOUR), n = this.truncate(d.MINUTE), s = this.truncate(d.SECOND), a = this.truncate(d.MILLISECOND), l = this.truncate(d.MICROSECOND), m = this.truncate(d.NANOSECOND), f = e, g = t.sub(e), v = n.sub(t), c = s.sub(n), $ = a.sub(s), E = l.sub(a), oe = m.sub(l);
|
|
632
|
+
let U = "";
|
|
633
|
+
return f.isZero || (U += `${f.days}d `), g.isZero || (U += `${g.hours}h `), v.isZero || (U += `${v.minutes}m `), c.isZero || (U += `${c.seconds}s `), $.isZero || (U += `${$.milliseconds}ms `), E.isZero || (U += `${E.microseconds}µs `), oe.isZero || (U += `${oe.nanoseconds}ns`), U.trim();
|
|
635
634
|
}
|
|
636
635
|
mult(e) {
|
|
637
636
|
return new d(this.valueOf() * BigInt(e));
|
|
@@ -776,7 +775,7 @@ i(b, "z", u.union([
|
|
|
776
775
|
u.instanceof(b)
|
|
777
776
|
]));
|
|
778
777
|
let O = b;
|
|
779
|
-
const
|
|
778
|
+
const L = class K extends Number {
|
|
780
779
|
constructor(e) {
|
|
781
780
|
e instanceof Number ? super(e.valueOf()) : super(e);
|
|
782
781
|
}
|
|
@@ -853,12 +852,12 @@ const C = class K extends Number {
|
|
|
853
852
|
return K.hz(e * 1e3);
|
|
854
853
|
}
|
|
855
854
|
};
|
|
856
|
-
i(
|
|
857
|
-
u.number().transform((r) => new
|
|
858
|
-
u.instanceof(Number).transform((r) => new
|
|
859
|
-
u.instanceof(
|
|
855
|
+
i(L, "z", u.union([
|
|
856
|
+
u.number().transform((r) => new L(r)),
|
|
857
|
+
u.instanceof(Number).transform((r) => new L(r)),
|
|
858
|
+
u.instanceof(L)
|
|
860
859
|
]));
|
|
861
|
-
let
|
|
860
|
+
let le = L;
|
|
862
861
|
const N = class extends Number {
|
|
863
862
|
/**
|
|
864
863
|
* Creates a Density representing the given number of bytes per value.
|
|
@@ -991,7 +990,7 @@ i(M, "z", u.union([
|
|
|
991
990
|
u.object({ start: w.z, end: w.z }).transform((r) => new M(r.start, r.end)),
|
|
992
991
|
u.instanceof(M)
|
|
993
992
|
]));
|
|
994
|
-
let
|
|
993
|
+
let z = M;
|
|
995
994
|
const o = class T extends String {
|
|
996
995
|
constructor(e) {
|
|
997
996
|
if (e instanceof T || typeof e == "string" || typeof e.valueOf() == "string") {
|
|
@@ -1260,7 +1259,7 @@ i(I, "z", u.union([
|
|
|
1260
1259
|
u.instanceof(I)
|
|
1261
1260
|
]));
|
|
1262
1261
|
let Q = I;
|
|
1263
|
-
const
|
|
1262
|
+
const xr = u.union([
|
|
1264
1263
|
u.instanceof(Uint8Array),
|
|
1265
1264
|
u.instanceof(Uint16Array),
|
|
1266
1265
|
u.instanceof(Uint32Array),
|
|
@@ -1271,33 +1270,40 @@ const Ar = u.union([
|
|
|
1271
1270
|
u.instanceof(Int16Array),
|
|
1272
1271
|
u.instanceof(Int32Array),
|
|
1273
1272
|
u.instanceof(BigInt64Array)
|
|
1274
|
-
]),
|
|
1273
|
+
]), Be = (r) => {
|
|
1275
1274
|
const e = typeof r;
|
|
1276
1275
|
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || r instanceof w || r instanceof O || r instanceof Date;
|
|
1277
|
-
},
|
|
1278
|
-
[Symbol.iterator]: () =>
|
|
1276
|
+
}, wt = (r, e, t, n = 0) => r.usesBigInt && !e.usesBigInt ? Number(t) - Number(n) : !r.usesBigInt && e.usesBigInt ? BigInt(t.valueOf()) - BigInt(n.valueOf()) : P(t, -n).valueOf(), P = (r, e) => typeof r == "bigint" && typeof e == "bigint" || typeof r == "number" && typeof e == "number" ? r + e : e === 0 ? r : r === 0 ? e : Number(r) + Number(e), Ot = (r) => r == null ? !1 : Array.isArray(r) || r instanceof ArrayBuffer || ArrayBuffer.isView(r) && !(r instanceof DataView) || r instanceof St ? !0 : Be(r), R = -1, ne = {
|
|
1277
|
+
[Symbol.iterator]: () => ne,
|
|
1279
1278
|
next: () => ({ done: !0, value: void 0 })
|
|
1280
|
-
},
|
|
1279
|
+
}, Tt = u.string().transform(
|
|
1281
1280
|
(r) => new Uint8Array(
|
|
1282
1281
|
atob(r).split("").map((e) => e.charCodeAt(0))
|
|
1283
1282
|
).buffer
|
|
1284
|
-
),
|
|
1283
|
+
), vt = u.union([u.null(), u.undefined()]).transform(() => new Uint8Array().buffer), se = 10, xe = (r, e) => {
|
|
1284
|
+
if (r === "string" && !e.isVariable)
|
|
1285
|
+
throw new Error(`cannot convert series of type ${e.toString()} to string`);
|
|
1286
|
+
if (r === "number" && !e.isNumeric)
|
|
1287
|
+
throw new Error(`cannot convert series of type ${e.toString()} to number`);
|
|
1288
|
+
if (r === "bigint" && !e.usesBigInt)
|
|
1289
|
+
throw new Error(`cannot convert series of type ${e.toString()} to bigint`);
|
|
1290
|
+
}, j = class B {
|
|
1285
1291
|
constructor(e) {
|
|
1286
|
-
i(this, "key", ""), i(this, "isSynnaxSeries", !0), i(this, "dataType"), i(this, "sampleOffset"), i(this, "gl"), i(this, "_data"), i(this, "_timeRange"), i(this, "alignment", 0n), i(this, "_cachedMin"), i(this, "_cachedMax"), i(this, "writePos", R), i(this, "_refCount", 0), i(this, "_cachedLength"), i(this, "_cachedIndexes"),
|
|
1292
|
+
i(this, "key", ""), i(this, "isSynnaxSeries", !0), i(this, "dataType"), i(this, "sampleOffset"), i(this, "gl"), i(this, "_data"), i(this, "_timeRange"), i(this, "alignment", 0n), i(this, "_cachedMin"), i(this, "_cachedMax"), i(this, "writePos", R), i(this, "_refCount", 0), i(this, "_cachedLength"), i(this, "_cachedIndexes"), Ot(e) && (e = { data: e });
|
|
1287
1293
|
const {
|
|
1288
1294
|
dataType: t,
|
|
1289
1295
|
timeRange: n,
|
|
1290
1296
|
sampleOffset: s = 0,
|
|
1291
1297
|
glBufferUsage: a = "static",
|
|
1292
1298
|
alignment: l = 0n,
|
|
1293
|
-
key: m =
|
|
1299
|
+
key: m = Ee()
|
|
1294
1300
|
} = e, f = e.data ?? [];
|
|
1295
1301
|
if (f instanceof B || typeof f == "object" && "isSynnaxSeries" in f && f.isSynnaxSeries === !0) {
|
|
1296
1302
|
const c = f;
|
|
1297
1303
|
this.key = c.key, this.dataType = c.dataType, this.sampleOffset = c.sampleOffset, this.gl = c.gl, this._data = c._data, this._timeRange = c._timeRange, this.alignment = c.alignment, this._cachedMin = c._cachedMin, this._cachedMax = c._cachedMax, this.writePos = c.writePos, this._refCount = c._refCount, this._cachedLength = c._cachedLength;
|
|
1298
1304
|
return;
|
|
1299
1305
|
}
|
|
1300
|
-
const g =
|
|
1306
|
+
const g = Be(f), v = Array.isArray(f);
|
|
1301
1307
|
if (t != null) this.dataType = new p(t);
|
|
1302
1308
|
else {
|
|
1303
1309
|
if (f instanceof ArrayBuffer)
|
|
@@ -1329,17 +1335,17 @@ const Ar = u.union([
|
|
|
1329
1335
|
if (!v && !g) this._data = f;
|
|
1330
1336
|
else {
|
|
1331
1337
|
let c = g ? [f] : f;
|
|
1332
|
-
const
|
|
1333
|
-
(
|
|
1338
|
+
const $ = c[0];
|
|
1339
|
+
($ instanceof w || $ instanceof Date || $ instanceof O) && (c = c.map((E) => new w(E).valueOf())), this.dataType.equals(p.STRING) ? (this._cachedLength = c.length, this._data = new TextEncoder().encode(`${c.join(`
|
|
1334
1340
|
`)}
|
|
1335
1341
|
`).buffer) : this.dataType.equals(p.JSON) ? (this._cachedLength = c.length, this._data = new TextEncoder().encode(
|
|
1336
|
-
`${c.map((
|
|
1342
|
+
`${c.map((E) => J.encodeString(E)).join(`
|
|
1337
1343
|
`)}
|
|
1338
1344
|
`
|
|
1339
|
-
).buffer) : this.dataType.usesBigInt && typeof
|
|
1340
|
-
c.map((
|
|
1341
|
-
).buffer : !this.dataType.usesBigInt && typeof
|
|
1342
|
-
c.map((
|
|
1345
|
+
).buffer) : this.dataType.usesBigInt && typeof $ == "number" ? this._data = new this.dataType.Array(
|
|
1346
|
+
c.map((E) => BigInt(Math.round(E)))
|
|
1347
|
+
).buffer : !this.dataType.usesBigInt && typeof $ == "bigint" ? this._data = new this.dataType.Array(
|
|
1348
|
+
c.map((E) => Number(E))
|
|
1343
1349
|
).buffer : this._data = new this.dataType.Array(c).buffer;
|
|
1344
1350
|
}
|
|
1345
1351
|
this.key = m, this.alignment = l, this.sampleOffset = s ?? 0, this._timeRange = n, this.gl = {
|
|
@@ -1485,7 +1491,7 @@ const Ar = u.union([
|
|
|
1485
1491
|
let e = 0;
|
|
1486
1492
|
const t = [0];
|
|
1487
1493
|
return this.data.forEach((n, s) => {
|
|
1488
|
-
n ===
|
|
1494
|
+
n === se && (e++, t.push(s + 1));
|
|
1489
1495
|
}), this._cachedIndexes = t, this._cachedLength = e, e;
|
|
1490
1496
|
}
|
|
1491
1497
|
/**
|
|
@@ -1501,7 +1507,7 @@ const Ar = u.union([
|
|
|
1501
1507
|
if (this.dataType.equals(e)) return this;
|
|
1502
1508
|
const n = new e.Array(this.length);
|
|
1503
1509
|
for (let s = 0; s < this.length; s++)
|
|
1504
|
-
n[s] =
|
|
1510
|
+
n[s] = wt(this.dataType, e, this.data[s], t);
|
|
1505
1511
|
return new B({
|
|
1506
1512
|
data: n.buffer,
|
|
1507
1513
|
dataType: e,
|
|
@@ -1550,7 +1556,7 @@ const Ar = u.union([
|
|
|
1550
1556
|
}
|
|
1551
1557
|
/** @returns the bounds of this array. */
|
|
1552
1558
|
get bounds() {
|
|
1553
|
-
return
|
|
1559
|
+
return V(Number(this.min), Number(this.max));
|
|
1554
1560
|
}
|
|
1555
1561
|
maybeRecomputeMinMax(e) {
|
|
1556
1562
|
if (this._cachedMin != null) {
|
|
@@ -1593,7 +1599,7 @@ const Ar = u.union([
|
|
|
1593
1599
|
else {
|
|
1594
1600
|
e < 0 && (e = this.length + e);
|
|
1595
1601
|
for (let l = 0; l < this.data.length; l++)
|
|
1596
|
-
if (this.data[l] ===
|
|
1602
|
+
if (this.data[l] === se) {
|
|
1597
1603
|
if (e === 0) {
|
|
1598
1604
|
s = l;
|
|
1599
1605
|
break;
|
|
@@ -1606,7 +1612,7 @@ const Ar = u.union([
|
|
|
1606
1612
|
}
|
|
1607
1613
|
}
|
|
1608
1614
|
const a = this.data.slice(n, s);
|
|
1609
|
-
return this.dataType.equals(p.STRING) ? new TextDecoder().decode(a) :
|
|
1615
|
+
return this.dataType.equals(p.STRING) ? new TextDecoder().decode(a) : Oe(JSON.parse(new TextDecoder().decode(a)));
|
|
1610
1616
|
}
|
|
1611
1617
|
/**
|
|
1612
1618
|
* @returns the index of the first sample that is greater than or equal to the given value.
|
|
@@ -1640,28 +1646,7 @@ const Ar = u.union([
|
|
|
1640
1646
|
), this.gl.prevBuffer = R;
|
|
1641
1647
|
}
|
|
1642
1648
|
as(e) {
|
|
1643
|
-
|
|
1644
|
-
if (!this.dataType.equals(p.STRING))
|
|
1645
|
-
throw new Error(
|
|
1646
|
-
`cannot convert series of type ${this.dataType.toString()} to string`
|
|
1647
|
-
);
|
|
1648
|
-
return this;
|
|
1649
|
-
}
|
|
1650
|
-
if (e === "number") {
|
|
1651
|
-
if (!this.dataType.isNumeric)
|
|
1652
|
-
throw new Error(
|
|
1653
|
-
`cannot convert series of type ${this.dataType.toString()} to number`
|
|
1654
|
-
);
|
|
1655
|
-
return this;
|
|
1656
|
-
}
|
|
1657
|
-
if (e === "bigint") {
|
|
1658
|
-
if (!this.dataType.equals(p.INT64))
|
|
1659
|
-
throw new Error(
|
|
1660
|
-
`cannot convert series of type ${this.dataType.toString()} to bigint`
|
|
1661
|
-
);
|
|
1662
|
-
return this;
|
|
1663
|
-
}
|
|
1664
|
-
throw new Error(`cannot convert series to ${e}`);
|
|
1649
|
+
return xe(e, this.dataType), this;
|
|
1665
1650
|
}
|
|
1666
1651
|
get digest() {
|
|
1667
1652
|
var e;
|
|
@@ -1670,8 +1655,8 @@ const Ar = u.union([
|
|
|
1670
1655
|
dataType: this.dataType.toString(),
|
|
1671
1656
|
sampleOffset: this.sampleOffset,
|
|
1672
1657
|
alignment: {
|
|
1673
|
-
lower:
|
|
1674
|
-
upper:
|
|
1658
|
+
lower: ye(this.alignmentBounds.lower),
|
|
1659
|
+
upper: ye(this.alignmentBounds.upper)
|
|
1675
1660
|
},
|
|
1676
1661
|
timeRange: (e = this._timeRange) == null ? void 0 : e.toString(),
|
|
1677
1662
|
length: this.length,
|
|
@@ -1687,7 +1672,7 @@ const Ar = u.union([
|
|
|
1687
1672
|
};
|
|
1688
1673
|
}
|
|
1689
1674
|
get alignmentBounds() {
|
|
1690
|
-
return
|
|
1675
|
+
return V(this.alignment, this.alignment + BigInt(this.length));
|
|
1691
1676
|
}
|
|
1692
1677
|
maybeGarbageCollectGLBuffer(e) {
|
|
1693
1678
|
this.gl.buffer != null && (e.deleteBuffer(this.gl.buffer), this.gl.buffer = null, this.gl.prevBuffer = 0, this.gl.control = null);
|
|
@@ -1698,10 +1683,10 @@ const Ar = u.union([
|
|
|
1698
1683
|
}
|
|
1699
1684
|
[Symbol.iterator]() {
|
|
1700
1685
|
if (this.dataType.isVariable) {
|
|
1701
|
-
const e = new
|
|
1702
|
-
return this.dataType.equals(p.JSON) ? new
|
|
1686
|
+
const e = new Nt(this);
|
|
1687
|
+
return this.dataType.equals(p.JSON) ? new It(e) : e;
|
|
1703
1688
|
}
|
|
1704
|
-
return new
|
|
1689
|
+
return new At(this);
|
|
1705
1690
|
}
|
|
1706
1691
|
slice(e, t) {
|
|
1707
1692
|
return this.sliceSub(!1, e, t);
|
|
@@ -1710,10 +1695,10 @@ const Ar = u.union([
|
|
|
1710
1695
|
return this.sliceSub(!0, e, t);
|
|
1711
1696
|
}
|
|
1712
1697
|
subIterator(e, t) {
|
|
1713
|
-
return new
|
|
1698
|
+
return new he(this, e, t ?? this.length);
|
|
1714
1699
|
}
|
|
1715
1700
|
subAlignmentIterator(e, t) {
|
|
1716
|
-
return new
|
|
1701
|
+
return new he(
|
|
1717
1702
|
this,
|
|
1718
1703
|
Number(e - this.alignment),
|
|
1719
1704
|
Number(t - this.alignment)
|
|
@@ -1747,7 +1732,7 @@ const Ar = u.union([
|
|
|
1747
1732
|
return new B({
|
|
1748
1733
|
data: this.buffer,
|
|
1749
1734
|
dataType: this.dataType,
|
|
1750
|
-
timeRange:
|
|
1735
|
+
timeRange: z.ZERO,
|
|
1751
1736
|
sampleOffset: this.sampleOffset,
|
|
1752
1737
|
glBufferUsage: "static",
|
|
1753
1738
|
alignment: e
|
|
@@ -1755,22 +1740,23 @@ const Ar = u.union([
|
|
|
1755
1740
|
}
|
|
1756
1741
|
};
|
|
1757
1742
|
i(j, "crudeZ", u.object({
|
|
1758
|
-
timeRange:
|
|
1743
|
+
timeRange: z.z.optional(),
|
|
1759
1744
|
dataType: p.z,
|
|
1760
1745
|
alignment: u.coerce.bigint().optional(),
|
|
1761
1746
|
data: u.union([
|
|
1762
|
-
|
|
1763
|
-
|
|
1747
|
+
Tt,
|
|
1748
|
+
vt,
|
|
1764
1749
|
u.instanceof(ArrayBuffer),
|
|
1765
1750
|
u.instanceof(Uint8Array)
|
|
1766
1751
|
]),
|
|
1767
|
-
glBufferUsage:
|
|
1752
|
+
glBufferUsage: bt.optional().default("static").optional()
|
|
1768
1753
|
})), i(j, "z", j.crudeZ.transform((r) => new j(r)));
|
|
1769
|
-
let
|
|
1754
|
+
let St = j;
|
|
1755
|
+
class he {
|
|
1770
1756
|
constructor(e, t, n) {
|
|
1771
1757
|
i(this, "series"), i(this, "end"), i(this, "index"), this.series = e;
|
|
1772
|
-
const s =
|
|
1773
|
-
this.end =
|
|
1758
|
+
const s = V(0, e.length);
|
|
1759
|
+
this.end = ue(s, n), this.index = ue(s, t);
|
|
1774
1760
|
}
|
|
1775
1761
|
next() {
|
|
1776
1762
|
return this.index >= this.end ? { done: !0, value: void 0 } : { done: !1, value: this.series.at(this.index++, !0) };
|
|
@@ -1778,8 +1764,8 @@ let mt = j, fe = class {
|
|
|
1778
1764
|
[Symbol.iterator]() {
|
|
1779
1765
|
return this;
|
|
1780
1766
|
}
|
|
1781
|
-
}
|
|
1782
|
-
class
|
|
1767
|
+
}
|
|
1768
|
+
class Nt {
|
|
1783
1769
|
constructor(e) {
|
|
1784
1770
|
if (i(this, "series"), i(this, "index"), i(this, "decoder"), !e.dataType.isVariable)
|
|
1785
1771
|
throw new Error(
|
|
@@ -1789,7 +1775,7 @@ class pt {
|
|
|
1789
1775
|
}
|
|
1790
1776
|
next() {
|
|
1791
1777
|
const e = this.index, t = this.series.data;
|
|
1792
|
-
for (; this.index < t.length && t[this.index] !==
|
|
1778
|
+
for (; this.index < t.length && t[this.index] !== se; ) this.index++;
|
|
1793
1779
|
const n = this.index;
|
|
1794
1780
|
return e === n ? { done: !0, value: void 0 } : (this.index++, { done: !1, value: this.decoder.decode(this.series.buffer.slice(e, n)) });
|
|
1795
1781
|
}
|
|
@@ -1797,10 +1783,10 @@ class pt {
|
|
|
1797
1783
|
return this;
|
|
1798
1784
|
}
|
|
1799
1785
|
}
|
|
1800
|
-
var
|
|
1801
|
-
class
|
|
1786
|
+
var ce, fe;
|
|
1787
|
+
class It {
|
|
1802
1788
|
constructor(e) {
|
|
1803
|
-
i(this, "wrapped"), i(this,
|
|
1789
|
+
i(this, "wrapped"), i(this, ce, "JSONSeriesIterator"), this.wrapped = e;
|
|
1804
1790
|
}
|
|
1805
1791
|
next() {
|
|
1806
1792
|
const e = this.wrapped.next();
|
|
@@ -1809,14 +1795,14 @@ class yt {
|
|
|
1809
1795
|
value: J.decodeString(e.value)
|
|
1810
1796
|
};
|
|
1811
1797
|
}
|
|
1812
|
-
[(
|
|
1798
|
+
[(fe = Symbol.iterator, ce = Symbol.toStringTag, fe)]() {
|
|
1813
1799
|
return this;
|
|
1814
1800
|
}
|
|
1815
1801
|
}
|
|
1816
|
-
var
|
|
1817
|
-
class
|
|
1802
|
+
var de, ge;
|
|
1803
|
+
class At {
|
|
1818
1804
|
constructor(e) {
|
|
1819
|
-
i(this, "series"), i(this, "index"), i(this,
|
|
1805
|
+
i(this, "series"), i(this, "index"), i(this, de, "SeriesIterator"), this.series = e, this.index = 0;
|
|
1820
1806
|
}
|
|
1821
1807
|
next() {
|
|
1822
1808
|
return this.index >= this.series.length ? { done: !0, value: void 0 } : {
|
|
@@ -1824,11 +1810,11 @@ class bt {
|
|
|
1824
1810
|
value: this.series.at(this.index++, !0)
|
|
1825
1811
|
};
|
|
1826
1812
|
}
|
|
1827
|
-
[(
|
|
1813
|
+
[(ge = Symbol.iterator, de = Symbol.toStringTag, ge)]() {
|
|
1828
1814
|
return this;
|
|
1829
1815
|
}
|
|
1830
1816
|
}
|
|
1831
|
-
class
|
|
1817
|
+
class Ur {
|
|
1832
1818
|
constructor(e) {
|
|
1833
1819
|
if (i(this, "series"), e.length !== 0) {
|
|
1834
1820
|
const t = e[0].dataType;
|
|
@@ -1839,17 +1825,13 @@ class $r {
|
|
|
1839
1825
|
this.series = e;
|
|
1840
1826
|
}
|
|
1841
1827
|
as(e) {
|
|
1842
|
-
|
|
1843
|
-
throw new Error(
|
|
1844
|
-
`cannot convert series of type ${this.dataType.toString()} to ${e.toString()}`
|
|
1845
|
-
);
|
|
1846
|
-
return this;
|
|
1828
|
+
return xe(e, this.dataType), this;
|
|
1847
1829
|
}
|
|
1848
1830
|
get dataType() {
|
|
1849
1831
|
return this.series.length === 0 ? p.UNKNOWN : this.series[0].dataType;
|
|
1850
1832
|
}
|
|
1851
1833
|
get timeRange() {
|
|
1852
|
-
return this.series.length === 0 ?
|
|
1834
|
+
return this.series.length === 0 ? z.ZERO : new z(
|
|
1853
1835
|
this.series[0].timeRange.start,
|
|
1854
1836
|
this.series[this.series.length - 1].timeRange.end
|
|
1855
1837
|
);
|
|
@@ -1858,7 +1840,7 @@ class $r {
|
|
|
1858
1840
|
return this.series.length === 0 ? 0n : this.series[0].alignment;
|
|
1859
1841
|
}
|
|
1860
1842
|
get alignmentBounds() {
|
|
1861
|
-
return this.series.length === 0 ?
|
|
1843
|
+
return this.series.length === 0 ? V(0n, 0n) : V(
|
|
1862
1844
|
this.series[0].alignmentBounds.lower,
|
|
1863
1845
|
this.series[this.series.length - 1].alignmentBounds.upper
|
|
1864
1846
|
);
|
|
@@ -1888,11 +1870,11 @@ class $r {
|
|
|
1888
1870
|
if (t) throw new Error(`[series] - no value at index ${e}`);
|
|
1889
1871
|
}
|
|
1890
1872
|
subIterator(e, t) {
|
|
1891
|
-
return new
|
|
1873
|
+
return new ee(this, e, t ?? this.length);
|
|
1892
1874
|
}
|
|
1893
1875
|
subAlignmentIterator(e, t) {
|
|
1894
1876
|
if (e >= this.alignmentBounds.upper || t <= this.alignmentBounds.lower)
|
|
1895
|
-
return
|
|
1877
|
+
return ne;
|
|
1896
1878
|
let n = 0;
|
|
1897
1879
|
for (let a = 0; a < this.series.length; a++) {
|
|
1898
1880
|
const l = this.series[a];
|
|
@@ -1913,10 +1895,10 @@ class $r {
|
|
|
1913
1895
|
break;
|
|
1914
1896
|
}
|
|
1915
1897
|
}
|
|
1916
|
-
return new
|
|
1898
|
+
return new ee(this, n, s);
|
|
1917
1899
|
}
|
|
1918
1900
|
subAlignmentSpanIterator(e, t) {
|
|
1919
|
-
if (e >= this.alignmentBounds.upper) return
|
|
1901
|
+
if (e >= this.alignmentBounds.upper) return ne;
|
|
1920
1902
|
let n = 0;
|
|
1921
1903
|
for (let s = 0; s < this.series.length; s++) {
|
|
1922
1904
|
const a = this.series[s];
|
|
@@ -1927,7 +1909,7 @@ class $r {
|
|
|
1927
1909
|
break;
|
|
1928
1910
|
}
|
|
1929
1911
|
}
|
|
1930
|
-
return new
|
|
1912
|
+
return new ee(this, n, n + t);
|
|
1931
1913
|
}
|
|
1932
1914
|
get byteLength() {
|
|
1933
1915
|
return new Q(this.series.reduce((e, t) => e + t.byteLength.valueOf(), 0));
|
|
@@ -1941,11 +1923,11 @@ class $r {
|
|
|
1941
1923
|
}
|
|
1942
1924
|
traverseAlignment(e, t) {
|
|
1943
1925
|
const n = this.series.map((s) => s.alignmentBounds);
|
|
1944
|
-
return
|
|
1926
|
+
return Ve(n, e, t);
|
|
1945
1927
|
}
|
|
1946
1928
|
distance(e, t) {
|
|
1947
1929
|
const n = this.series.map((s) => s.alignmentBounds);
|
|
1948
|
-
return
|
|
1930
|
+
return ze(n, e, t);
|
|
1949
1931
|
}
|
|
1950
1932
|
parseJSON(e) {
|
|
1951
1933
|
if (!this.dataType.equals(p.JSON))
|
|
@@ -1957,23 +1939,23 @@ class $r {
|
|
|
1957
1939
|
next() {
|
|
1958
1940
|
return { done: !0, value: void 0 };
|
|
1959
1941
|
}
|
|
1960
|
-
} : new
|
|
1942
|
+
} : new $t(this.series);
|
|
1961
1943
|
}
|
|
1962
1944
|
}
|
|
1963
|
-
var
|
|
1964
|
-
class
|
|
1945
|
+
var me, pe;
|
|
1946
|
+
class $t {
|
|
1965
1947
|
constructor(e) {
|
|
1966
|
-
i(this, "series"), i(this, "seriesIndex"), i(this, "internal"), i(this,
|
|
1948
|
+
i(this, "series"), i(this, "seriesIndex"), i(this, "internal"), i(this, me, "MultiSeriesIterator"), this.series = e, this.seriesIndex = 0, this.internal = e[0][Symbol.iterator]();
|
|
1967
1949
|
}
|
|
1968
1950
|
next() {
|
|
1969
1951
|
const e = this.internal.next();
|
|
1970
1952
|
return e.done === !1 ? e : this.seriesIndex === this.series.length - 1 ? { done: !0, value: void 0 } : (this.internal = this.series[++this.seriesIndex][Symbol.iterator](), this.next());
|
|
1971
1953
|
}
|
|
1972
|
-
[(
|
|
1954
|
+
[(pe = Symbol.iterator, me = Symbol.toStringTag, pe)]() {
|
|
1973
1955
|
return this;
|
|
1974
1956
|
}
|
|
1975
1957
|
}
|
|
1976
|
-
let
|
|
1958
|
+
let ee = class {
|
|
1977
1959
|
constructor(e, t, n) {
|
|
1978
1960
|
i(this, "series"), i(this, "index"), i(this, "end"), this.series = e, this.end = n, this.index = t;
|
|
1979
1961
|
}
|
|
@@ -1984,16 +1966,16 @@ let te = class {
|
|
|
1984
1966
|
return this;
|
|
1985
1967
|
}
|
|
1986
1968
|
};
|
|
1987
|
-
const
|
|
1969
|
+
const ye = (r) => {
|
|
1988
1970
|
const e = r >> 32n, t = r & 0xffffffffn;
|
|
1989
1971
|
return { domain: e, sample: t };
|
|
1990
|
-
},
|
|
1972
|
+
}, Et = (r, e, t = ".") => {
|
|
1991
1973
|
const n = r.split(t);
|
|
1992
1974
|
return n.map((s, a) => {
|
|
1993
1975
|
const l = e(s, a, n);
|
|
1994
1976
|
return l == null ? null : typeof l == "string" ? l : l.join(t);
|
|
1995
1977
|
}).filter((s) => s != null).join(t);
|
|
1996
|
-
},
|
|
1978
|
+
}, Ue = (r, e, t = { optional: !1, separator: "." }) => {
|
|
1997
1979
|
t.separator ?? (t.separator = ".");
|
|
1998
1980
|
const { optional: n, getter: s = (m, f) => m[f] } = t, a = e.split(t.separator);
|
|
1999
1981
|
if (a.length === 1 && a[0] === "") return r;
|
|
@@ -2007,7 +1989,7 @@ const we = (r) => {
|
|
|
2007
1989
|
l = f;
|
|
2008
1990
|
}
|
|
2009
1991
|
return l;
|
|
2010
|
-
},
|
|
1992
|
+
}, Dr = (r, e, t) => {
|
|
2011
1993
|
const n = e.split(".");
|
|
2012
1994
|
let s = r;
|
|
2013
1995
|
for (let a = 0; a < n.length - 1; a++) {
|
|
@@ -2019,7 +2001,7 @@ const we = (r) => {
|
|
|
2019
2001
|
} catch (a) {
|
|
2020
2002
|
throw console.error("failed to set value", t, "at path", e, "on object", r), a;
|
|
2021
2003
|
}
|
|
2022
|
-
},
|
|
2004
|
+
}, Cr = (r, e) => {
|
|
2023
2005
|
const t = e.split(".");
|
|
2024
2006
|
let n = r;
|
|
2025
2007
|
for (let s = 0; s < t.length - 1; s++) {
|
|
@@ -2034,16 +2016,16 @@ const we = (r) => {
|
|
|
2034
2016
|
return;
|
|
2035
2017
|
}
|
|
2036
2018
|
delete n[t[t.length - 1]];
|
|
2037
|
-
},
|
|
2019
|
+
}, Lr = (r, e) => {
|
|
2038
2020
|
const t = r.split(".");
|
|
2039
2021
|
return e < 0 ? t[t.length + e] : t[e];
|
|
2040
|
-
},
|
|
2022
|
+
}, Pr = (r, e) => {
|
|
2041
2023
|
try {
|
|
2042
|
-
return
|
|
2024
|
+
return Ue(r, e), !0;
|
|
2043
2025
|
} catch {
|
|
2044
2026
|
return !1;
|
|
2045
2027
|
}
|
|
2046
|
-
},
|
|
2028
|
+
}, jr = (r, e) => {
|
|
2047
2029
|
if (e.length === 0) return !0;
|
|
2048
2030
|
const t = r.split("."), n = e.split(".");
|
|
2049
2031
|
if (n.length > t.length) return !1;
|
|
@@ -2059,33 +2041,33 @@ u.record(
|
|
|
2059
2041
|
u.union([u.number(), u.string(), u.symbol()]),
|
|
2060
2042
|
u.unknown()
|
|
2061
2043
|
);
|
|
2062
|
-
const
|
|
2044
|
+
const Re = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", Mt = Re(), De = ["macOS", "Windows", "Linux"], Bt = ["macos", "windows", "linux"], xt = {
|
|
2063
2045
|
macos: "macOS",
|
|
2064
2046
|
windows: "Windows",
|
|
2065
2047
|
linux: "Linux"
|
|
2066
|
-
},
|
|
2067
|
-
u.enum(
|
|
2068
|
-
),
|
|
2048
|
+
}, Ut = u.enum(De).or(
|
|
2049
|
+
u.enum(Bt).transform((r) => xt[r])
|
|
2050
|
+
), Rt = () => {
|
|
2069
2051
|
if (typeof window > "u") return;
|
|
2070
2052
|
const r = window.navigator.userAgent.toLowerCase();
|
|
2071
2053
|
if (r.includes("mac")) return "macOS";
|
|
2072
2054
|
if (r.includes("win")) return "Windows";
|
|
2073
2055
|
if (r.includes("linux")) return "Linux";
|
|
2074
2056
|
};
|
|
2075
|
-
let
|
|
2076
|
-
const
|
|
2057
|
+
let te;
|
|
2058
|
+
const Dt = (r = {}) => {
|
|
2077
2059
|
const { force: e, default: t } = r;
|
|
2078
|
-
return e ??
|
|
2079
|
-
},
|
|
2060
|
+
return e ?? te ?? (te = Rt(), te ?? t);
|
|
2061
|
+
}, qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2080
2062
|
__proto__: null,
|
|
2081
|
-
OPERATING_SYSTEMS:
|
|
2082
|
-
RUNTIME:
|
|
2083
|
-
detect:
|
|
2084
|
-
getOS:
|
|
2085
|
-
osZ:
|
|
2063
|
+
OPERATING_SYSTEMS: De,
|
|
2064
|
+
RUNTIME: Mt,
|
|
2065
|
+
detect: Re,
|
|
2066
|
+
getOS: Dt,
|
|
2067
|
+
osZ: Ut
|
|
2086
2068
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2087
|
-
var
|
|
2088
|
-
const
|
|
2069
|
+
var Ct = Object.defineProperty, Lt = (r, e, t) => e in r ? Ct(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, q = (r, e, t) => Lt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2070
|
+
const Pt = (...r) => r.map(Ce).join(""), Ce = (r) => (r.endsWith("/") || (r += "/"), r.startsWith("/") && (r = r.slice(1)), r), jt = (r) => r.endsWith("/") ? r.slice(0, -1) : r, be = class ie {
|
|
2089
2071
|
/**
|
|
2090
2072
|
* @param host - The hostname or IP address of the server.
|
|
2091
2073
|
* @param port - The port number of the server.
|
|
@@ -2101,7 +2083,7 @@ const Mt = (...r) => r.map(Ce).join(""), Ce = (r) => (r.endsWith("/") || (r += "
|
|
|
2101
2083
|
* @returns a new URL.
|
|
2102
2084
|
*/
|
|
2103
2085
|
replace(e) {
|
|
2104
|
-
return new
|
|
2086
|
+
return new ie({
|
|
2105
2087
|
host: e.host ?? this.host,
|
|
2106
2088
|
port: e.port ?? this.port,
|
|
2107
2089
|
protocol: e.protocol ?? this.protocol,
|
|
@@ -2114,78 +2096,100 @@ const Mt = (...r) => r.map(Ce).join(""), Ce = (r) => (r.endsWith("/") || (r += "
|
|
|
2114
2096
|
* @returns a new URL.
|
|
2115
2097
|
*/
|
|
2116
2098
|
child(e) {
|
|
2117
|
-
return new
|
|
2099
|
+
return new ie({
|
|
2118
2100
|
...this,
|
|
2119
|
-
pathPrefix:
|
|
2101
|
+
pathPrefix: Pt(this.path, e)
|
|
2120
2102
|
});
|
|
2121
2103
|
}
|
|
2122
2104
|
/** @returns a string representation of the url */
|
|
2123
2105
|
toString() {
|
|
2124
|
-
return
|
|
2106
|
+
return jt(
|
|
2125
2107
|
`${this.protocol}://${this.host}:${this.port}/${this.path}`
|
|
2126
2108
|
);
|
|
2127
2109
|
}
|
|
2128
2110
|
};
|
|
2129
|
-
q(
|
|
2130
|
-
const
|
|
2111
|
+
q(be, "UNKNOWN", new be({ host: "unknown", port: 0 }));
|
|
2112
|
+
const qt = -128, kt = 127, Ft = u.number().int().min(qt).max(kt), Yt = -32768, Vt = 32767, zt = u.number().int().min(Yt).max(Vt), Gt = -2147483648, Zt = 2147483647, Jt = u.number().int().min(Gt).max(Zt), Wt = -9223372036854775808n, Ht = 9223372036854775807n, Kt = u.bigint().min(Wt).max(Ht), Xt = 255, Qt = u.number().int().min(0).max(Xt), _t = 65535, er = u.number().int().min(0).max(_t), tr = 4294967295, rr = u.number().int().min(0).max(tr), nr = 18446744073709551615n, sr = u.bigint().min(0n).max(nr), Le = (r) => Et(r, (e, t, n) => {
|
|
2131
2113
|
const s = t === n.length - 1, a = !isNaN(parseInt(e)), l = !isNaN(parseInt(n[t + 1]));
|
|
2132
2114
|
return a && (e = "element"), s || l ? e : [e, "shape"];
|
|
2133
|
-
}),
|
|
2115
|
+
}), we = (r, e) => {
|
|
2134
2116
|
if (r == null) return null;
|
|
2135
2117
|
const t = r[e];
|
|
2136
2118
|
return t == null && typeof r == "object" && "sourceType" in r ? r.sourceType()[e] : t;
|
|
2137
|
-
},
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
{ ...t, getter:
|
|
2141
|
-
),
|
|
2119
|
+
}, ir = (r, e, t) => Ue(
|
|
2120
|
+
we(r, "shape"),
|
|
2121
|
+
Le(e),
|
|
2122
|
+
{ ...t, getter: we }
|
|
2123
|
+
), kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2124
|
+
__proto__: null,
|
|
2125
|
+
getFieldSchema: ir,
|
|
2126
|
+
getFieldSchemaPath: Le,
|
|
2127
|
+
int16: zt,
|
|
2128
|
+
int32: Jt,
|
|
2129
|
+
int64: Kt,
|
|
2130
|
+
int8: Ft,
|
|
2131
|
+
uint16: er,
|
|
2132
|
+
uint32: rr,
|
|
2133
|
+
uint64: sr,
|
|
2134
|
+
uint8: Qt
|
|
2135
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2136
|
+
var ar = Object.defineProperty, or = (r, e, t) => e in r ? ar(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, k = (r, e, t) => or(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2137
|
+
const ur = 2, lr = 3, hr = 2, cr = (r, e) => {
|
|
2138
|
+
if (Number.isNaN(r) || !Number.isFinite(r)) return r;
|
|
2139
|
+
const t = et(e);
|
|
2140
|
+
if (t == 0) return r;
|
|
2141
|
+
let n;
|
|
2142
|
+
t >= 1e3 ? n = ur : t >= 1 ? n = lr : n = Math.ceil(-Math.log10(t)) + hr;
|
|
2143
|
+
const s = 10 ** n;
|
|
2144
|
+
return Math.round(r * s) / s;
|
|
2145
|
+
}, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2142
2146
|
__proto__: null,
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2147
|
+
abs: _e,
|
|
2148
|
+
add: Qe,
|
|
2149
|
+
closeTo: Xe,
|
|
2150
|
+
div: Ke,
|
|
2151
|
+
equal: He,
|
|
2152
|
+
max: We,
|
|
2153
|
+
min: Je,
|
|
2154
|
+
mult: D,
|
|
2155
|
+
roundBySpan: cr,
|
|
2156
|
+
roundToNearestMagnitude: Ze,
|
|
2157
|
+
sub: Ge
|
|
2153
2158
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2154
|
-
var Qt = Object.defineProperty, _t = (r, e, t) => e in r ? Qt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, k = (r, e, t) => _t(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2155
2159
|
u.object({
|
|
2156
2160
|
interval: O.z.optional(),
|
|
2157
2161
|
maxRetries: u.number().optional(),
|
|
2158
2162
|
scale: u.number().optional()
|
|
2159
2163
|
});
|
|
2160
|
-
const
|
|
2164
|
+
const x = class extends Number {
|
|
2161
2165
|
};
|
|
2162
|
-
k(
|
|
2163
|
-
lower:
|
|
2166
|
+
k(x, "ABSOLUTE", 255), k(x, "MINIMUM", 0), k(x, "BOUNDS", {
|
|
2167
|
+
lower: x.MINIMUM,
|
|
2164
2168
|
// upper bound is exclusive, so we add 1
|
|
2165
|
-
upper:
|
|
2166
|
-
}), k(
|
|
2167
|
-
u.instanceof(
|
|
2168
|
-
u.number().int().min(0).max(255).transform((r) => new
|
|
2169
|
-
u.instanceof(Number).transform((r) => new
|
|
2169
|
+
upper: x.ABSOLUTE + 1
|
|
2170
|
+
}), k(x, "z", u.union([
|
|
2171
|
+
u.instanceof(x),
|
|
2172
|
+
u.number().int().min(0).max(255).transform((r) => new x(r)),
|
|
2173
|
+
u.instanceof(Number).transform((r) => new x(r))
|
|
2170
2174
|
]));
|
|
2171
|
-
let
|
|
2172
|
-
const
|
|
2175
|
+
let Pe = x;
|
|
2176
|
+
const je = u.object({
|
|
2173
2177
|
name: u.string(),
|
|
2174
2178
|
key: u.string()
|
|
2175
|
-
}),
|
|
2176
|
-
subject:
|
|
2179
|
+
}), fr = (r) => u.object({
|
|
2180
|
+
subject: je,
|
|
2177
2181
|
resource: r,
|
|
2178
|
-
authority:
|
|
2179
|
-
}),
|
|
2182
|
+
authority: Pe.z
|
|
2183
|
+
}), dr = (...r) => (e) => e.filter((t) => {
|
|
2180
2184
|
let n = !1;
|
|
2181
2185
|
return t.to != null && (n = r.includes(t.to.resource)), t.from != null && !n && (n = r.includes(t.from.resource)), n;
|
|
2182
|
-
}),
|
|
2186
|
+
}), Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2183
2187
|
__proto__: null,
|
|
2184
|
-
Authority:
|
|
2185
|
-
filterTransfersByChannelKey:
|
|
2186
|
-
stateZ:
|
|
2187
|
-
subjectZ:
|
|
2188
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2188
|
+
Authority: Pe,
|
|
2189
|
+
filterTransfersByChannelKey: dr,
|
|
2190
|
+
stateZ: fr,
|
|
2191
|
+
subjectZ: je
|
|
2192
|
+
}, Symbol.toStringTag, { value: "Module" })), qe = class F extends Error {
|
|
2189
2193
|
constructor() {
|
|
2190
2194
|
super(F.MESSAGE);
|
|
2191
2195
|
}
|
|
@@ -2194,12 +2198,12 @@ const qe = u.object({
|
|
|
2194
2198
|
return typeof e == "string" ? e.includes(F.MESSAGE) : e instanceof F || e.message.includes(F.MESSAGE);
|
|
2195
2199
|
}
|
|
2196
2200
|
};
|
|
2197
|
-
k(
|
|
2198
|
-
let
|
|
2199
|
-
new
|
|
2200
|
-
const
|
|
2201
|
+
k(qe, "MESSAGE", "canceled");
|
|
2202
|
+
let gr = qe;
|
|
2203
|
+
new gr();
|
|
2204
|
+
const zr = (r) => r ? -1 : 1, ae = u.string().regex(/^\d+\.\d+\.\d+$/), G = (r, e, t = {}) => {
|
|
2201
2205
|
t.checkMajor ?? (t.checkMajor = !0), t.checkMinor ?? (t.checkMinor = !0), t.checkPatch ?? (t.checkPatch = !0);
|
|
2202
|
-
const n =
|
|
2206
|
+
const n = ae.parse(r), s = ae.parse(e), [a, l, m] = n.split(".").map(Number), [f, g, v] = s.split(".").map(Number);
|
|
2203
2207
|
if (t.checkMajor) {
|
|
2204
2208
|
if (a < f) return W;
|
|
2205
2209
|
if (a > f) return H;
|
|
@@ -2212,8 +2216,8 @@ const qr = (r) => r ? -1 : 1, oe = u.string().regex(/^\d+\.\d+\.\d+$/), Y = (r,
|
|
|
2212
2216
|
if (m < v) return W;
|
|
2213
2217
|
if (m > v) return H;
|
|
2214
2218
|
}
|
|
2215
|
-
return
|
|
2216
|
-
},
|
|
2219
|
+
return C;
|
|
2220
|
+
}, mr = (r, e, t = {}) => $e(G(r, e, t)), ke = (r, e, t = {}) => Ae(G(r, e, t)), pr = (r, e, t = {}) => Ie(G(r, e, t)), yr = ({
|
|
2217
2221
|
name: r,
|
|
2218
2222
|
migrate: e
|
|
2219
2223
|
}) => (t) => {
|
|
@@ -2223,14 +2227,14 @@ const qr = (r) => r ? -1 : 1, oe = u.string().regex(/^\d+\.\d+\.\d+$/), Y = (r,
|
|
|
2223
2227
|
} catch (n) {
|
|
2224
2228
|
throw console.log(`${r} failed to migrate from ${t.version}`), console.error(n), n;
|
|
2225
2229
|
}
|
|
2226
|
-
},
|
|
2230
|
+
}, br = ({
|
|
2227
2231
|
name: r,
|
|
2228
2232
|
migrations: e,
|
|
2229
2233
|
targetSchema: t,
|
|
2230
2234
|
defaultVersion: n,
|
|
2231
2235
|
def: s
|
|
2232
2236
|
}) => {
|
|
2233
|
-
const a = Object.keys(e).sort(
|
|
2237
|
+
const a = Object.keys(e).sort(G).pop();
|
|
2234
2238
|
if (a == null)
|
|
2235
2239
|
return (g) => {
|
|
2236
2240
|
if (g.version ?? (g.version = n), g.version !== s.version)
|
|
@@ -2249,10 +2253,10 @@ const qr = (r) => r ? -1 : 1, oe = u.string().regex(/^\d+\.\d+\.\d+$/), Y = (r,
|
|
|
2249
2253
|
let m = !1;
|
|
2250
2254
|
const f = (g) => {
|
|
2251
2255
|
try {
|
|
2252
|
-
if (l === 0 ||
|
|
2256
|
+
if (l === 0 || ke(g.version, a))
|
|
2253
2257
|
return console.log(m ? `${r} ${g.version} now up to date` : `${r} version ${g.version} is up to date with target version ${s.version}`), g;
|
|
2254
|
-
const v = g.version, c = e[v],
|
|
2255
|
-
return m = !0, f(
|
|
2258
|
+
const v = g.version, c = e[v], $ = c(g);
|
|
2259
|
+
return m = !0, f($);
|
|
2256
2260
|
} catch (v) {
|
|
2257
2261
|
return console.log(
|
|
2258
2262
|
`${r} failed to migrate from ${g.version} to ${a}`
|
|
@@ -2275,131 +2279,65 @@ const qr = (r) => r ? -1 : 1, oe = u.string().regex(/^\d+\.\d+\.\d+$/), Y = (r,
|
|
|
2275
2279
|
return console.log(`${r} failed to parse final result. Exiting with default`), console.error(v), s;
|
|
2276
2280
|
}
|
|
2277
2281
|
};
|
|
2278
|
-
},
|
|
2282
|
+
}, Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2283
|
+
__proto__: null,
|
|
2284
|
+
compareSemVer: G,
|
|
2285
|
+
createMigration: yr,
|
|
2286
|
+
migrator: br,
|
|
2287
|
+
semVerNewer: ke,
|
|
2288
|
+
semVerOlder: pr,
|
|
2289
|
+
semVerZ: ae,
|
|
2290
|
+
versionsEqual: mr
|
|
2291
|
+
}, Symbol.toStringTag, { value: "Module" })), Fe = ["standard", "scientific", "engineering"], wr = u.enum(Fe), Or = (r, e, t) => {
|
|
2292
|
+
if (Number.isNaN(r)) return "NaN";
|
|
2293
|
+
if (r === 1 / 0) return "∞";
|
|
2294
|
+
if (r === -1 / 0) return "-∞";
|
|
2295
|
+
if (t === "standard") return r.toFixed(e);
|
|
2296
|
+
if (r === 0)
|
|
2297
|
+
return e === 0 ? "0ᴇ0" : `0.${"0".repeat(e)}ᴇ0`;
|
|
2298
|
+
let n;
|
|
2299
|
+
return t === "scientific" ? n = Math.floor(Math.log10(Math.abs(r))) : n = Math.floor(Math.log10(Math.abs(r)) / 3) * 3, `${(r / 10 ** n).toFixed(e)}ᴇ${n}`;
|
|
2300
|
+
}, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2279
2301
|
__proto__: null,
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
semVerOlder: sr,
|
|
2285
|
-
semVerZ: oe,
|
|
2286
|
-
versionsEqual: nr
|
|
2287
|
-
}, Symbol.toStringTag, { value: "Module" })), Fr = (r) => {
|
|
2302
|
+
NOTATIONS: Fe,
|
|
2303
|
+
notationZ: wr,
|
|
2304
|
+
stringifyNumber: Or
|
|
2305
|
+
}, Symbol.toStringTag, { value: "Module" })), Jr = (r) => {
|
|
2288
2306
|
if (r === void 0 || typeof r == "string" || typeof r == "number")
|
|
2289
2307
|
return r;
|
|
2290
2308
|
if (r.toString === void 0) throw new Error("invalid renderer");
|
|
2291
2309
|
return r.toString();
|
|
2292
|
-
},
|
|
2293
|
-
h1: "h2",
|
|
2294
|
-
h2: "h3",
|
|
2295
|
-
h3: "h4",
|
|
2296
|
-
h4: "h5",
|
|
2297
|
-
h5: "p",
|
|
2298
|
-
p: "small",
|
|
2299
|
-
small: "small"
|
|
2300
|
-
}, Gr = (r) => ur[r], lr = {
|
|
2301
|
-
h1: "h1",
|
|
2302
|
-
h2: "h1",
|
|
2303
|
-
h3: "h2",
|
|
2304
|
-
h4: "h3",
|
|
2305
|
-
h5: "h4",
|
|
2306
|
-
p: "h5",
|
|
2307
|
-
small: "p"
|
|
2308
|
-
}, Yr = (r) => lr[r], hr = ["normal", "bold", "bolder", "lighter"], Zr = u.union([u.number(), u.enum(hr)]), Jr = u.object({
|
|
2309
|
-
size: u.number(),
|
|
2310
|
-
weight: u.union([u.number(), u.string()]),
|
|
2311
|
-
lineHeight: u.number(),
|
|
2312
|
-
textTransform: u.string().optional()
|
|
2313
|
-
}), Wr = {
|
|
2314
|
-
small: "small",
|
|
2315
|
-
medium: "p",
|
|
2316
|
-
large: "h5",
|
|
2317
|
-
huge: "h2"
|
|
2318
|
-
}, Hr = {
|
|
2319
|
-
h1: "huge",
|
|
2320
|
-
h2: "huge",
|
|
2321
|
-
h3: "huge",
|
|
2322
|
-
h4: "large",
|
|
2323
|
-
h5: "small",
|
|
2324
|
-
p: "medium",
|
|
2325
|
-
small: "small"
|
|
2326
|
-
}, Ve = (r) => typeof r == "function", cr = (r, e) => Ve(r) ? r(e) : r, ee = (r) => ze(r) ? r() : r, ze = (r) => typeof r == "function", fr = ({
|
|
2327
|
-
initial: r,
|
|
2328
|
-
value: e,
|
|
2329
|
-
onChange: t
|
|
2330
|
-
}) => {
|
|
2331
|
-
const [n, s] = ue(ee(e ?? r));
|
|
2332
|
-
return e != null && t != null ? [e, t] : [n, s];
|
|
2333
|
-
}, dr = ({
|
|
2334
|
-
initial: r,
|
|
2335
|
-
value: e,
|
|
2336
|
-
onChange: t
|
|
2337
|
-
}) => {
|
|
2338
|
-
const [n, s] = ue(ee(e ?? r));
|
|
2339
|
-
return e != null && t != null ? [e, t] : [n, s];
|
|
2340
|
-
}, gr = (r, e) => {
|
|
2341
|
-
const [t, n] = ue(() => {
|
|
2342
|
-
const s = localStorage.getItem(e);
|
|
2343
|
-
return s == null ? ee(r) : JSON.parse(s);
|
|
2344
|
-
});
|
|
2345
|
-
return [
|
|
2346
|
-
t,
|
|
2347
|
-
(s) => {
|
|
2348
|
-
n(s), localStorage.setItem(e, JSON.stringify(s));
|
|
2349
|
-
}
|
|
2350
|
-
];
|
|
2351
|
-
}, Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2352
|
-
__proto__: null,
|
|
2353
|
-
executeInitialSetter: ee,
|
|
2354
|
-
executeSetter: cr,
|
|
2355
|
-
isInitialSetter: ze,
|
|
2356
|
-
isSetter: Ve,
|
|
2357
|
-
usePassthrough: fr,
|
|
2358
|
-
usePersisted: gr,
|
|
2359
|
-
usePurePassthrough: dr
|
|
2360
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2310
|
+
}, Wr = (r) => Array.isArray(r) ? [...r] : typeof r == "object" && r !== null ? { ...r } : r;
|
|
2361
2311
|
export {
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
Br as f,
|
|
2385
|
-
Rr as g,
|
|
2386
|
-
Ur as h,
|
|
2387
|
-
O as i,
|
|
2388
|
-
fr as j,
|
|
2389
|
-
dr as k,
|
|
2390
|
-
zr as l,
|
|
2312
|
+
le as $,
|
|
2313
|
+
Mr as C,
|
|
2314
|
+
Ur as D,
|
|
2315
|
+
Er as F,
|
|
2316
|
+
xr as L,
|
|
2317
|
+
zr as M,
|
|
2318
|
+
qr as S,
|
|
2319
|
+
Zr as T,
|
|
2320
|
+
z as U,
|
|
2321
|
+
Gr as _,
|
|
2322
|
+
Ar as a,
|
|
2323
|
+
Jr as b,
|
|
2324
|
+
Ue as c,
|
|
2325
|
+
$r as d,
|
|
2326
|
+
p as e,
|
|
2327
|
+
Dr as f,
|
|
2328
|
+
Pr as g,
|
|
2329
|
+
Cr as h,
|
|
2330
|
+
Q as i,
|
|
2331
|
+
Fr as j,
|
|
2332
|
+
St as k,
|
|
2333
|
+
Wr as l,
|
|
2391
2334
|
w as m,
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
Fr as v,
|
|
2401
|
-
Zr as w,
|
|
2402
|
-
vr as x,
|
|
2403
|
-
Dr as y,
|
|
2404
|
-
p as z
|
|
2335
|
+
kr as n,
|
|
2336
|
+
Te as o,
|
|
2337
|
+
Lr as p,
|
|
2338
|
+
A as q,
|
|
2339
|
+
Et as u,
|
|
2340
|
+
O as w,
|
|
2341
|
+
Vr as x,
|
|
2342
|
+
jr as y
|
|
2405
2343
|
};
|