@seelen-ui/lib 0.1.2 → 0.1.3-next.20241218174913
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/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +183 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +26 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +152 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.js +69 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.js +131 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.js +163 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.js +81 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.js +109 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.js +22 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.js +207 -0
- package/esm/gen/types/AhkVar.d.ts +6 -0
- package/esm/gen/types/AhkVar.d.ts.map +1 -0
- package/esm/gen/types/AhkVar.js +2 -0
- package/esm/gen/types/AhkVarList.d.ts +54 -0
- package/esm/gen/types/AhkVarList.d.ts.map +1 -0
- package/esm/gen/types/AppConfig.d.ts +33 -0
- package/esm/gen/types/AppConfig.d.ts.map +1 -0
- package/esm/gen/types/AppConfig.js +1 -0
- package/esm/gen/types/AppExtraFlag.d.ts +2 -0
- package/esm/gen/types/AppExtraFlag.d.ts.map +1 -0
- package/esm/gen/types/AppExtraFlag.js +2 -0
- package/esm/gen/types/AppIdentifier.d.ts +11 -0
- package/esm/gen/types/AppIdentifier.d.ts.map +1 -0
- package/esm/gen/types/AppIdentifier.js +1 -0
- package/esm/gen/types/AppIdentifierType.d.ts +2 -0
- package/esm/gen/types/AppIdentifierType.d.ts.map +1 -0
- package/esm/gen/types/AppIdentifierType.js +2 -0
- package/esm/gen/types/Border.d.ts +6 -0
- package/esm/gen/types/Border.d.ts.map +1 -0
- package/esm/gen/types/Border.js +2 -0
- package/esm/gen/types/DateToolbarItem.d.ts +71 -0
- package/esm/gen/types/DateToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/DateToolbarItem.js +1 -0
- package/esm/gen/types/DateUpdateInterval.d.ts +2 -0
- package/esm/gen/types/DateUpdateInterval.d.ts.map +1 -0
- package/esm/gen/types/DateUpdateInterval.js +2 -0
- package/esm/gen/types/DeviceToolbarItem.d.ts +54 -0
- package/esm/gen/types/DeviceToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/DeviceToolbarItem.js +1 -0
- package/esm/gen/types/FancyToolbarSettings.d.ts +32 -0
- package/esm/gen/types/FancyToolbarSettings.d.ts.map +1 -0
- package/esm/gen/types/FancyToolbarSettings.js +1 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/FancyToolbarSettingsByMonitor.js +2 -0
- package/esm/gen/types/FloatingWindowSettings.d.ts +5 -0
- package/esm/gen/types/FloatingWindowSettings.d.ts.map +1 -0
- package/esm/gen/types/FloatingWindowSettings.js +2 -0
- package/esm/gen/types/GenericToolbarItem.d.ts +82 -0
- package/esm/gen/types/GenericToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/GenericToolbarItem.js +1 -0
- package/esm/gen/types/HideMode.d.ts +2 -0
- package/esm/gen/types/HideMode.d.ts.map +1 -0
- package/esm/gen/types/HideMode.js +2 -0
- package/esm/gen/types/IconPack.d.ts +13 -0
- package/esm/gen/types/IconPack.d.ts.map +1 -0
- package/esm/gen/types/IconPack.js +1 -0
- package/esm/gen/types/MatchingStrategy.d.ts +2 -0
- package/esm/gen/types/MatchingStrategy.d.ts.map +1 -0
- package/esm/gen/types/MatchingStrategy.js +2 -0
- package/esm/gen/types/MediaToolbarItem.d.ts +138 -0
- package/esm/gen/types/MediaToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/MediaToolbarItem.js +1 -0
- package/esm/gen/types/MonitorConfiguration.d.ts +16 -0
- package/esm/gen/types/MonitorConfiguration.d.ts.map +1 -0
- package/esm/gen/types/MonitorConfiguration.js +1 -0
- package/esm/gen/types/NetworkToolbarItem.d.ts +118 -0
- package/esm/gen/types/NetworkToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/NetworkToolbarItem.js +1 -0
- package/esm/gen/types/NoFallbackBehavior.d.ts +2 -0
- package/esm/gen/types/NoFallbackBehavior.d.ts.map +1 -0
- package/esm/gen/types/NoFallbackBehavior.js +2 -0
- package/esm/gen/types/NodeSubtype.d.ts +2 -0
- package/esm/gen/types/NodeSubtype.d.ts.map +1 -0
- package/esm/gen/types/NodeSubtype.js +2 -0
- package/esm/gen/types/NotificationsToolbarItem.d.ts +62 -0
- package/esm/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/NotificationsToolbarItem.js +1 -0
- package/esm/gen/types/PinnedWegItemData.d.ts +29 -0
- package/esm/gen/types/PinnedWegItemData.d.ts.map +1 -0
- package/esm/gen/types/PinnedWegItemData.js +2 -0
- package/esm/gen/types/Placeholder.d.ts +21 -0
- package/esm/gen/types/Placeholder.d.ts.map +1 -0
- package/esm/gen/types/Placeholder.js +1 -0
- package/esm/gen/types/PlaceholderInfo.d.ts +19 -0
- package/esm/gen/types/PlaceholderInfo.d.ts.map +1 -0
- package/esm/gen/types/PlaceholderInfo.js +2 -0
- package/esm/gen/types/Plugin.d.ts +11 -0
- package/esm/gen/types/Plugin.d.ts.map +1 -0
- package/esm/gen/types/Plugin.js +1 -0
- package/esm/gen/types/PluginId.d.ts +3 -0
- package/esm/gen/types/PluginId.d.ts.map +1 -0
- package/esm/gen/types/PluginId.js +1 -0
- package/esm/gen/types/PowerToolbarItem.d.ts +214 -0
- package/esm/gen/types/PowerToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/PowerToolbarItem.js +1 -0
- package/esm/gen/types/Profile.d.ts +8 -0
- package/esm/gen/types/Profile.d.ts.map +1 -0
- package/esm/gen/types/Profile.js +1 -0
- package/esm/gen/types/ProfileSettings.d.ts +4 -0
- package/esm/gen/types/ProfileSettings.d.ts.map +1 -0
- package/esm/gen/types/ProfileSettings.js +2 -0
- package/esm/gen/types/Rect.d.ts +7 -0
- package/esm/gen/types/Rect.d.ts.map +1 -0
- package/esm/gen/types/Rect.js +2 -0
- package/esm/gen/types/ResourceId.d.ts +2 -0
- package/esm/gen/types/ResourceId.d.ts.map +1 -0
- package/esm/gen/types/ResourceId.js +2 -0
- package/esm/gen/types/ResourceMetadata.d.ts +8 -0
- package/esm/gen/types/ResourceMetadata.d.ts.map +1 -0
- package/esm/gen/types/ResourceMetadata.js +2 -0
- package/esm/gen/types/SeelenLauncherMonitor.d.ts +2 -0
- package/esm/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherMonitor.js +2 -0
- package/esm/gen/types/SeelenLauncherRunner.d.ts +7 -0
- package/esm/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherRunner.js +2 -0
- package/esm/gen/types/SeelenLauncherSettings.d.ts +8 -0
- package/esm/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenLauncherSettings.js +1 -0
- package/esm/gen/types/SeelenWallSettings.d.ts +11 -0
- package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallSettings.js +1 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallSettingsByMonitor.js +1 -0
- package/esm/gen/types/SeelenWallWallpaper.d.ts +5 -0
- package/esm/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
- package/esm/gen/types/SeelenWallWallpaper.js +2 -0
- package/esm/gen/types/SeelenWegMode.d.ts +2 -0
- package/esm/gen/types/SeelenWegMode.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegMode.js +2 -0
- package/esm/gen/types/SeelenWegSettings.d.ts +58 -0
- package/esm/gen/types/SeelenWegSettings.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSettings.js +1 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSettingsByMonitor.js +2 -0
- package/esm/gen/types/SeelenWegSide.d.ts +2 -0
- package/esm/gen/types/SeelenWegSide.d.ts.map +1 -0
- package/esm/gen/types/SeelenWegSide.js +2 -0
- package/esm/gen/types/Settings.d.ts +84 -0
- package/esm/gen/types/Settings.d.ts.map +1 -0
- package/esm/gen/types/Settings.js +1 -0
- package/esm/gen/types/SettingsToolbarItem.d.ts +54 -0
- package/esm/gen/types/SettingsToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/SettingsToolbarItem.js +1 -0
- package/esm/gen/types/StyleValue.d.ts +2 -0
- package/esm/gen/types/StyleValue.d.ts.map +1 -0
- package/esm/gen/types/StyleValue.js +2 -0
- package/esm/gen/types/TextToolbarItem.d.ts +114 -0
- package/esm/gen/types/TextToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/TextToolbarItem.js +1 -0
- package/esm/gen/types/Theme.d.ts +15 -0
- package/esm/gen/types/Theme.d.ts.map +1 -0
- package/esm/gen/types/Theme.js +1 -0
- package/esm/gen/types/ThemeInfo.d.ts +23 -0
- package/esm/gen/types/ThemeInfo.d.ts.map +1 -0
- package/esm/gen/types/ThemeInfo.js +2 -0
- package/esm/gen/types/ToolbarItem.d.ts +35 -0
- package/esm/gen/types/ToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/ToolbarItem.js +1 -0
- package/esm/gen/types/ToolbarItem2.d.ts +3 -0
- package/esm/gen/types/ToolbarItem2.d.ts.map +1 -0
- package/esm/gen/types/ToolbarItem2.js +1 -0
- package/esm/gen/types/TrayToolbarItem.d.ts +54 -0
- package/esm/gen/types/TrayToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/TrayToolbarItem.js +1 -0
- package/esm/gen/types/UpdateChannel.d.ts +2 -0
- package/esm/gen/types/UpdateChannel.d.ts.map +1 -0
- package/esm/gen/types/UpdateChannel.js +2 -0
- package/esm/gen/types/UpdaterSettings.d.ts +5 -0
- package/esm/gen/types/UpdaterSettings.d.ts.map +1 -0
- package/esm/gen/types/UpdaterSettings.js +1 -0
- package/esm/gen/types/VirtualDesktopStrategy.d.ts +2 -0
- package/esm/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
- package/esm/gen/types/VirtualDesktopStrategy.js +2 -0
- package/esm/gen/types/WManagerLayoutInfo.d.ts +19 -0
- package/esm/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
- package/esm/gen/types/WManagerLayoutInfo.js +2 -0
- package/esm/gen/types/WegItem.d.ts +14 -0
- package/esm/gen/types/WegItem.d.ts.map +1 -0
- package/esm/gen/types/WegItem.js +1 -0
- package/esm/gen/types/WegItems.d.ts +7 -0
- package/esm/gen/types/WegItems.d.ts.map +1 -0
- package/esm/gen/types/WegItems.js +1 -0
- package/esm/gen/types/Widget.d.ts +8 -0
- package/esm/gen/types/Widget.d.ts.map +1 -0
- package/esm/gen/types/Widget.js +1 -0
- package/esm/gen/types/WidgetId.d.ts +3 -0
- package/esm/gen/types/WidgetId.d.ts.map +1 -0
- package/esm/gen/types/WidgetId.js +1 -0
- package/esm/gen/types/WindowManagerLayout.d.ts +9 -0
- package/esm/gen/types/WindowManagerLayout.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerLayout.js +1 -0
- package/esm/gen/types/WindowManagerSettings.d.ts +42 -0
- package/esm/gen/types/WindowManagerSettings.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerSettings.js +1 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
- package/esm/gen/types/WindowManagerSettingsByMonitor.js +1 -0
- package/esm/gen/types/WmFallbackNode.d.ts +25 -0
- package/esm/gen/types/WmFallbackNode.d.ts.map +1 -0
- package/esm/gen/types/WmFallbackNode.js +1 -0
- package/esm/gen/types/WmHorizontalNode.d.ts +19 -0
- package/esm/gen/types/WmHorizontalNode.d.ts.map +1 -0
- package/esm/gen/types/WmHorizontalNode.js +1 -0
- package/esm/gen/types/WmLeafNode.d.ts +21 -0
- package/esm/gen/types/WmLeafNode.d.ts.map +1 -0
- package/esm/gen/types/WmLeafNode.js +1 -0
- package/esm/gen/types/WmNode.d.ts +17 -0
- package/esm/gen/types/WmNode.d.ts.map +1 -0
- package/esm/gen/types/WmNode.js +1 -0
- package/esm/gen/types/WmStackNode.d.ts +25 -0
- package/esm/gen/types/WmStackNode.d.ts.map +1 -0
- package/esm/gen/types/WmStackNode.js +1 -0
- package/esm/gen/types/WmVerticalNode.d.ts +19 -0
- package/esm/gen/types/WmVerticalNode.d.ts.map +1 -0
- package/esm/gen/types/WmVerticalNode.js +1 -0
- package/esm/gen/types/WorkspaceConfiguration.d.ts +8 -0
- package/esm/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceConfiguration.js +1 -0
- package/esm/gen/types/WorkspaceIdentifier.d.ts +6 -0
- package/esm/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceIdentifier.js +1 -0
- package/esm/gen/types/WorkspaceIdentifierType.d.ts +2 -0
- package/esm/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceIdentifierType.js +2 -0
- package/esm/gen/types/WorkspaceToolbarItem.d.ts +56 -0
- package/esm/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceToolbarItem.js +1 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceToolbarItemMode.js +2 -0
- package/esm/gen/types/mod.d.ts +76 -0
- package/esm/gen/types/mod.d.ts.map +1 -0
- package/esm/gen/types/mod.js +75 -0
- package/esm/gen/types/serde_json/JsonValue.d.ts +4 -0
- package/esm/gen/types/serde_json/JsonValue.d.ts.map +1 -0
- package/esm/gen/types/serde_json/JsonValue.js +2 -0
- package/esm/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
- package/esm/src/handlers/commands.d.ts.map +1 -0
- package/esm/{handlers/invokers.js → src/handlers/commands.js} +6 -6
- package/{script → esm/src}/handlers/events.d.ts +2 -1
- package/esm/src/handlers/events.d.ts.map +1 -0
- package/esm/{handlers → src/handlers}/events.js +2 -1
- package/esm/src/handlers/invokers.d.ts +26 -0
- package/esm/src/handlers/invokers.d.ts.map +1 -0
- package/esm/src/handlers/invokers.js +13 -0
- package/esm/src/handlers/mod.d.ts +4 -0
- package/esm/src/handlers/mod.d.ts.map +1 -0
- package/esm/src/handlers/mod.js +3 -0
- package/esm/src/lib.d.ts +5 -0
- package/esm/src/lib.d.ts.map +1 -0
- package/esm/src/lib.js +4 -0
- package/esm/{state → src/state}/icon_pack.d.ts +1 -1
- package/esm/src/state/icon_pack.d.ts.map +1 -0
- package/esm/{state → src/state}/icon_pack.js +1 -1
- package/esm/src/state/mod.d.ts +40 -0
- package/esm/src/state/mod.d.ts.map +1 -0
- package/esm/{state/index.js → src/state/mod.js} +7 -7
- package/esm/src/state/placeholder.d.ts.map +1 -0
- package/esm/src/state/plugin.d.ts +26 -0
- package/esm/src/state/plugin.d.ts.map +1 -0
- package/esm/src/state/plugin.js +12 -0
- package/esm/src/state/profile.d.ts +23 -0
- package/esm/src/state/profile.d.ts.map +1 -0
- package/esm/src/state/profile.js +6 -0
- package/esm/src/state/settings.d.ts +51 -0
- package/esm/src/state/settings.d.ts.map +1 -0
- package/esm/src/state/settings.js +42 -0
- package/esm/src/state/settings_by_app.d.ts.map +1 -0
- package/esm/src/state/settings_by_monitor.d.ts +20 -0
- package/esm/src/state/settings_by_monitor.d.ts.map +1 -0
- package/esm/src/state/settings_by_monitor.js +16 -0
- package/esm/src/state/theme.d.ts +37 -0
- package/esm/src/state/theme.d.ts.map +1 -0
- package/esm/src/state/theme.js +7 -0
- package/esm/src/state/weg_items.d.ts +27 -0
- package/esm/src/state/weg_items.d.ts.map +1 -0
- package/esm/src/state/weg_items.js +17 -0
- package/esm/src/state/widget.d.ts +27 -0
- package/esm/src/state/widget.d.ts.map +1 -0
- package/esm/src/state/widget.js +7 -0
- package/esm/src/state/wm_layout.d.ts.map +1 -0
- package/esm/src/system_state/mod.d.ts +3 -0
- package/esm/src/system_state/mod.d.ts.map +1 -0
- package/esm/src/system_state/mod.js +2 -0
- package/esm/src/system_state/monitors.d.ts +25 -0
- package/esm/src/system_state/monitors.d.ts.map +1 -0
- package/esm/src/system_state/monitors.js +7 -0
- package/esm/src/system_state/uiColors.d.ts +33 -0
- package/esm/src/system_state/uiColors.d.ts.map +1 -0
- package/esm/{system_state/index.js → src/system_state/uiColors.js} +12 -12
- package/esm/src/utils/List.d.ts +25 -0
- package/esm/src/utils/List.d.ts.map +1 -0
- package/esm/src/utils/List.js +36 -0
- package/esm/src/utils/State.d.ts +11 -0
- package/esm/src/utils/State.d.ts.map +1 -0
- package/esm/src/utils/State.js +13 -0
- package/esm/src/utils/layered_hitbox.d.ts.map +1 -0
- package/esm/{utils → src/utils}/layered_hitbox.js +1 -1
- package/{script/utils/index.d.ts → esm/src/utils/mod.d.ts} +8 -5
- package/esm/src/utils/mod.d.ts.map +1 -0
- package/esm/{utils/index.js → src/utils/mod.js} +8 -7
- package/package.json +9 -7
- package/readme.md +1 -1
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +187 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +29 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +156 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base32.js +73 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base58.js +135 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64.js +167 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.js +108 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.js +113 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/mod.js +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.6/varint.js +213 -0
- package/script/gen/types/AhkVar.d.ts +6 -0
- package/script/gen/types/AhkVar.d.ts.map +1 -0
- package/script/gen/types/AhkVar.js +3 -0
- package/script/gen/types/AhkVarList.d.ts +54 -0
- package/script/gen/types/AhkVarList.d.ts.map +1 -0
- package/script/gen/types/AppConfig.d.ts +33 -0
- package/script/gen/types/AppConfig.d.ts.map +1 -0
- package/script/gen/types/AppConfig.js +2 -0
- package/script/gen/types/AppExtraFlag.d.ts +2 -0
- package/script/gen/types/AppExtraFlag.d.ts.map +1 -0
- package/script/gen/types/AppExtraFlag.js +3 -0
- package/script/gen/types/AppIdentifier.d.ts +11 -0
- package/script/gen/types/AppIdentifier.d.ts.map +1 -0
- package/script/gen/types/AppIdentifier.js +2 -0
- package/script/gen/types/AppIdentifierType.d.ts +2 -0
- package/script/gen/types/AppIdentifierType.d.ts.map +1 -0
- package/script/gen/types/AppIdentifierType.js +3 -0
- package/script/gen/types/Border.d.ts +6 -0
- package/script/gen/types/Border.d.ts.map +1 -0
- package/script/gen/types/Border.js +3 -0
- package/script/gen/types/DateToolbarItem.d.ts +71 -0
- package/script/gen/types/DateToolbarItem.d.ts.map +1 -0
- package/script/gen/types/DateToolbarItem.js +2 -0
- package/script/gen/types/DateUpdateInterval.d.ts +2 -0
- package/script/gen/types/DateUpdateInterval.d.ts.map +1 -0
- package/script/gen/types/DateUpdateInterval.js +3 -0
- package/script/gen/types/DeviceToolbarItem.d.ts +54 -0
- package/script/gen/types/DeviceToolbarItem.d.ts.map +1 -0
- package/script/gen/types/DeviceToolbarItem.js +2 -0
- package/script/gen/types/FancyToolbarSettings.d.ts +32 -0
- package/script/gen/types/FancyToolbarSettings.d.ts.map +1 -0
- package/script/gen/types/FancyToolbarSettings.js +2 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/FancyToolbarSettingsByMonitor.js +3 -0
- package/script/gen/types/FloatingWindowSettings.d.ts +5 -0
- package/script/gen/types/FloatingWindowSettings.d.ts.map +1 -0
- package/script/gen/types/FloatingWindowSettings.js +3 -0
- package/script/gen/types/GenericToolbarItem.d.ts +82 -0
- package/script/gen/types/GenericToolbarItem.d.ts.map +1 -0
- package/script/gen/types/GenericToolbarItem.js +2 -0
- package/script/gen/types/HideMode.d.ts +2 -0
- package/script/gen/types/HideMode.d.ts.map +1 -0
- package/script/gen/types/HideMode.js +3 -0
- package/script/gen/types/IconPack.d.ts +13 -0
- package/script/gen/types/IconPack.d.ts.map +1 -0
- package/script/gen/types/IconPack.js +2 -0
- package/script/gen/types/MatchingStrategy.d.ts +2 -0
- package/script/gen/types/MatchingStrategy.d.ts.map +1 -0
- package/script/gen/types/MatchingStrategy.js +3 -0
- package/script/gen/types/MediaToolbarItem.d.ts +138 -0
- package/script/gen/types/MediaToolbarItem.d.ts.map +1 -0
- package/script/gen/types/MediaToolbarItem.js +2 -0
- package/script/gen/types/MonitorConfiguration.d.ts +16 -0
- package/script/gen/types/MonitorConfiguration.d.ts.map +1 -0
- package/script/gen/types/MonitorConfiguration.js +2 -0
- package/script/gen/types/NetworkToolbarItem.d.ts +118 -0
- package/script/gen/types/NetworkToolbarItem.d.ts.map +1 -0
- package/script/gen/types/NetworkToolbarItem.js +2 -0
- package/script/gen/types/NoFallbackBehavior.d.ts +2 -0
- package/script/gen/types/NoFallbackBehavior.d.ts.map +1 -0
- package/script/gen/types/NoFallbackBehavior.js +3 -0
- package/script/gen/types/NodeSubtype.d.ts +2 -0
- package/script/gen/types/NodeSubtype.d.ts.map +1 -0
- package/script/gen/types/NodeSubtype.js +3 -0
- package/script/gen/types/NotificationsToolbarItem.d.ts +62 -0
- package/script/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
- package/script/gen/types/NotificationsToolbarItem.js +2 -0
- package/script/gen/types/PinnedWegItemData.d.ts +29 -0
- package/script/gen/types/PinnedWegItemData.d.ts.map +1 -0
- package/script/gen/types/PinnedWegItemData.js +3 -0
- package/script/gen/types/Placeholder.d.ts +21 -0
- package/script/gen/types/Placeholder.d.ts.map +1 -0
- package/script/gen/types/Placeholder.js +2 -0
- package/script/gen/types/PlaceholderInfo.d.ts +19 -0
- package/script/gen/types/PlaceholderInfo.d.ts.map +1 -0
- package/script/gen/types/PlaceholderInfo.js +3 -0
- package/script/gen/types/Plugin.d.ts +11 -0
- package/script/gen/types/Plugin.d.ts.map +1 -0
- package/script/gen/types/Plugin.js +2 -0
- package/script/gen/types/PluginId.d.ts +3 -0
- package/script/gen/types/PluginId.d.ts.map +1 -0
- package/script/gen/types/PluginId.js +2 -0
- package/script/gen/types/PowerToolbarItem.d.ts +214 -0
- package/script/gen/types/PowerToolbarItem.d.ts.map +1 -0
- package/script/gen/types/PowerToolbarItem.js +2 -0
- package/script/gen/types/Profile.d.ts +8 -0
- package/script/gen/types/Profile.d.ts.map +1 -0
- package/script/gen/types/Profile.js +2 -0
- package/script/gen/types/ProfileSettings.d.ts +4 -0
- package/script/gen/types/ProfileSettings.d.ts.map +1 -0
- package/script/gen/types/ProfileSettings.js +3 -0
- package/script/gen/types/Rect.d.ts +7 -0
- package/script/gen/types/Rect.d.ts.map +1 -0
- package/script/gen/types/Rect.js +3 -0
- package/script/gen/types/ResourceId.d.ts +2 -0
- package/script/gen/types/ResourceId.d.ts.map +1 -0
- package/script/gen/types/ResourceId.js +3 -0
- package/script/gen/types/ResourceMetadata.d.ts +8 -0
- package/script/gen/types/ResourceMetadata.d.ts.map +1 -0
- package/script/gen/types/ResourceMetadata.js +3 -0
- package/script/gen/types/SeelenLauncherMonitor.d.ts +2 -0
- package/script/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherMonitor.js +3 -0
- package/script/gen/types/SeelenLauncherRunner.d.ts +7 -0
- package/script/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherRunner.js +3 -0
- package/script/gen/types/SeelenLauncherSettings.d.ts +8 -0
- package/script/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenLauncherSettings.js +2 -0
- package/script/gen/types/SeelenWallSettings.d.ts +11 -0
- package/script/gen/types/SeelenWallSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenWallSettings.js +2 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenWallSettingsByMonitor.js +2 -0
- package/script/gen/types/SeelenWallWallpaper.d.ts +5 -0
- package/script/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
- package/script/gen/types/SeelenWallWallpaper.js +3 -0
- package/script/gen/types/SeelenWegMode.d.ts +2 -0
- package/script/gen/types/SeelenWegMode.d.ts.map +1 -0
- package/script/gen/types/SeelenWegMode.js +3 -0
- package/script/gen/types/SeelenWegSettings.d.ts +58 -0
- package/script/gen/types/SeelenWegSettings.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSettings.js +2 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSettingsByMonitor.js +3 -0
- package/script/gen/types/SeelenWegSide.d.ts +2 -0
- package/script/gen/types/SeelenWegSide.d.ts.map +1 -0
- package/script/gen/types/SeelenWegSide.js +3 -0
- package/script/gen/types/Settings.d.ts +84 -0
- package/script/gen/types/Settings.d.ts.map +1 -0
- package/script/gen/types/Settings.js +2 -0
- package/script/gen/types/SettingsToolbarItem.d.ts +54 -0
- package/script/gen/types/SettingsToolbarItem.d.ts.map +1 -0
- package/script/gen/types/SettingsToolbarItem.js +2 -0
- package/script/gen/types/StyleValue.d.ts +2 -0
- package/script/gen/types/StyleValue.d.ts.map +1 -0
- package/script/gen/types/StyleValue.js +3 -0
- package/script/gen/types/TextToolbarItem.d.ts +114 -0
- package/script/gen/types/TextToolbarItem.d.ts.map +1 -0
- package/script/gen/types/TextToolbarItem.js +2 -0
- package/script/gen/types/Theme.d.ts +15 -0
- package/script/gen/types/Theme.d.ts.map +1 -0
- package/script/gen/types/Theme.js +2 -0
- package/script/gen/types/ThemeInfo.d.ts +23 -0
- package/script/gen/types/ThemeInfo.d.ts.map +1 -0
- package/script/gen/types/ThemeInfo.js +3 -0
- package/script/gen/types/ToolbarItem.d.ts +35 -0
- package/script/gen/types/ToolbarItem.d.ts.map +1 -0
- package/script/gen/types/ToolbarItem.js +2 -0
- package/script/gen/types/ToolbarItem2.d.ts +3 -0
- package/script/gen/types/ToolbarItem2.d.ts.map +1 -0
- package/script/gen/types/ToolbarItem2.js +2 -0
- package/script/gen/types/TrayToolbarItem.d.ts +54 -0
- package/script/gen/types/TrayToolbarItem.d.ts.map +1 -0
- package/script/gen/types/TrayToolbarItem.js +2 -0
- package/script/gen/types/UpdateChannel.d.ts +2 -0
- package/script/gen/types/UpdateChannel.d.ts.map +1 -0
- package/script/gen/types/UpdateChannel.js +3 -0
- package/script/gen/types/UpdaterSettings.d.ts +5 -0
- package/script/gen/types/UpdaterSettings.d.ts.map +1 -0
- package/script/gen/types/UpdaterSettings.js +2 -0
- package/script/gen/types/VirtualDesktopStrategy.d.ts +2 -0
- package/script/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
- package/script/gen/types/VirtualDesktopStrategy.js +3 -0
- package/script/gen/types/WManagerLayoutInfo.d.ts +19 -0
- package/script/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
- package/script/gen/types/WManagerLayoutInfo.js +3 -0
- package/script/gen/types/WegItem.d.ts +14 -0
- package/script/gen/types/WegItem.d.ts.map +1 -0
- package/script/gen/types/WegItem.js +2 -0
- package/script/gen/types/WegItems.d.ts +7 -0
- package/script/gen/types/WegItems.d.ts.map +1 -0
- package/script/gen/types/WegItems.js +2 -0
- package/script/gen/types/Widget.d.ts +8 -0
- package/script/gen/types/Widget.d.ts.map +1 -0
- package/script/gen/types/Widget.js +2 -0
- package/script/gen/types/WidgetId.d.ts +3 -0
- package/script/gen/types/WidgetId.d.ts.map +1 -0
- package/script/gen/types/WidgetId.js +2 -0
- package/script/gen/types/WindowManagerLayout.d.ts +9 -0
- package/script/gen/types/WindowManagerLayout.d.ts.map +1 -0
- package/script/gen/types/WindowManagerLayout.js +2 -0
- package/script/gen/types/WindowManagerSettings.d.ts +42 -0
- package/script/gen/types/WindowManagerSettings.d.ts.map +1 -0
- package/script/gen/types/WindowManagerSettings.js +2 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
- package/script/gen/types/WindowManagerSettingsByMonitor.js +2 -0
- package/script/gen/types/WmFallbackNode.d.ts +25 -0
- package/script/gen/types/WmFallbackNode.d.ts.map +1 -0
- package/script/gen/types/WmFallbackNode.js +2 -0
- package/script/gen/types/WmHorizontalNode.d.ts +19 -0
- package/script/gen/types/WmHorizontalNode.d.ts.map +1 -0
- package/script/gen/types/WmHorizontalNode.js +2 -0
- package/script/gen/types/WmLeafNode.d.ts +21 -0
- package/script/gen/types/WmLeafNode.d.ts.map +1 -0
- package/script/gen/types/WmLeafNode.js +2 -0
- package/script/gen/types/WmNode.d.ts +17 -0
- package/script/gen/types/WmNode.d.ts.map +1 -0
- package/script/gen/types/WmNode.js +2 -0
- package/script/gen/types/WmStackNode.d.ts +25 -0
- package/script/gen/types/WmStackNode.d.ts.map +1 -0
- package/script/gen/types/WmStackNode.js +2 -0
- package/script/gen/types/WmVerticalNode.d.ts +19 -0
- package/script/gen/types/WmVerticalNode.d.ts.map +1 -0
- package/script/gen/types/WmVerticalNode.js +2 -0
- package/script/gen/types/WorkspaceConfiguration.d.ts +8 -0
- package/script/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
- package/script/gen/types/WorkspaceConfiguration.js +2 -0
- package/script/gen/types/WorkspaceIdentifier.d.ts +6 -0
- package/script/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
- package/script/gen/types/WorkspaceIdentifier.js +2 -0
- package/script/gen/types/WorkspaceIdentifierType.d.ts +2 -0
- package/script/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
- package/script/gen/types/WorkspaceIdentifierType.js +3 -0
- package/script/gen/types/WorkspaceToolbarItem.d.ts +56 -0
- package/script/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
- package/script/gen/types/WorkspaceToolbarItem.js +2 -0
- package/script/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
- package/script/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
- package/script/gen/types/WorkspaceToolbarItemMode.js +3 -0
- package/script/gen/types/mod.d.ts +76 -0
- package/script/gen/types/mod.d.ts.map +1 -0
- package/script/gen/types/mod.js +91 -0
- package/script/gen/types/serde_json/JsonValue.d.ts +4 -0
- package/script/gen/types/serde_json/JsonValue.d.ts.map +1 -0
- package/script/gen/types/serde_json/JsonValue.js +3 -0
- package/script/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
- package/script/src/handlers/commands.d.ts.map +1 -0
- package/script/{handlers/invokers.js → src/handlers/commands.js} +6 -7
- package/{esm → script/src}/handlers/events.d.ts +2 -1
- package/script/src/handlers/events.d.ts.map +1 -0
- package/script/{handlers → src/handlers}/events.js +2 -1
- package/script/src/handlers/invokers.d.ts +26 -0
- package/script/src/handlers/invokers.d.ts.map +1 -0
- package/script/{handlers/index.js → src/handlers/invokers.js} +12 -14
- package/script/src/handlers/mod.d.ts +4 -0
- package/script/src/handlers/mod.d.ts.map +1 -0
- package/script/src/handlers/mod.js +19 -0
- package/script/src/lib.d.ts +5 -0
- package/script/src/lib.d.ts.map +1 -0
- package/script/{lib.js → src/lib.js} +4 -4
- package/script/{state → src/state}/icon_pack.d.ts +1 -1
- package/script/src/state/icon_pack.d.ts.map +1 -0
- package/script/{state → src/state}/icon_pack.js +2 -2
- package/script/src/state/mod.d.ts +40 -0
- package/script/src/state/mod.d.ts.map +1 -0
- package/script/{state/index.js → src/state/mod.js} +7 -7
- package/script/src/state/placeholder.d.ts.map +1 -0
- package/script/src/state/plugin.d.ts +26 -0
- package/script/src/state/plugin.d.ts.map +1 -0
- package/script/src/state/plugin.js +16 -0
- package/script/src/state/profile.d.ts +23 -0
- package/script/src/state/profile.d.ts.map +1 -0
- package/script/src/state/profile.js +10 -0
- package/script/src/state/settings.d.ts +51 -0
- package/script/src/state/settings.d.ts.map +1 -0
- package/script/src/state/settings.js +46 -0
- package/script/src/state/settings_by_app.d.ts.map +1 -0
- package/script/src/state/settings_by_monitor.d.ts +20 -0
- package/script/src/state/settings_by_monitor.d.ts.map +1 -0
- package/script/src/state/settings_by_monitor.js +20 -0
- package/script/src/state/theme.d.ts +37 -0
- package/script/src/state/theme.d.ts.map +1 -0
- package/script/src/state/theme.js +11 -0
- package/script/src/state/weg_items.d.ts +27 -0
- package/script/src/state/weg_items.d.ts.map +1 -0
- package/script/src/state/weg_items.js +21 -0
- package/script/src/state/widget.d.ts +27 -0
- package/script/src/state/widget.d.ts.map +1 -0
- package/script/src/state/widget.js +11 -0
- package/script/src/state/wm_layout.d.ts.map +1 -0
- package/script/src/system_state/mod.d.ts +3 -0
- package/script/src/system_state/mod.d.ts.map +1 -0
- package/script/src/system_state/mod.js +18 -0
- package/script/src/system_state/monitors.d.ts +25 -0
- package/script/src/system_state/monitors.d.ts.map +1 -0
- package/script/src/system_state/monitors.js +11 -0
- package/script/src/system_state/uiColors.d.ts +33 -0
- package/script/src/system_state/uiColors.d.ts.map +1 -0
- package/script/{system_state/index.js → src/system_state/uiColors.js} +12 -12
- package/script/src/utils/List.d.ts +25 -0
- package/script/src/utils/List.d.ts.map +1 -0
- package/script/src/utils/List.js +40 -0
- package/script/src/utils/State.d.ts +11 -0
- package/script/src/utils/State.d.ts.map +1 -0
- package/script/src/utils/State.js +17 -0
- package/script/src/utils/layered_hitbox.d.ts.map +1 -0
- package/script/{utils → src/utils}/layered_hitbox.js +3 -3
- package/{esm/utils/index.d.ts → script/src/utils/mod.d.ts} +8 -5
- package/script/src/utils/mod.d.ts.map +1 -0
- package/script/{utils/index.js → src/utils/mod.js} +8 -7
- package/esm/_dnt.shims.d.ts +0 -5
- package/esm/_dnt.shims.d.ts.map +0 -1
- package/esm/_dnt.shims.js +0 -61
- package/esm/handlers/events.d.ts.map +0 -1
- package/esm/handlers/index.d.ts +0 -11
- package/esm/handlers/index.d.ts.map +0 -1
- package/esm/handlers/index.js +0 -16
- package/esm/handlers/invokers.d.ts.map +0 -1
- package/esm/lib.d.ts +0 -5
- package/esm/lib.d.ts.map +0 -1
- package/esm/lib.js +0 -4
- package/esm/state/icon_pack.d.ts.map +0 -1
- package/esm/state/index.d.ts +0 -24
- package/esm/state/index.d.ts.map +0 -1
- package/esm/state/placeholder.d.ts.map +0 -1
- package/esm/state/plugin.d.ts +0 -17
- package/esm/state/plugin.d.ts.map +0 -1
- package/esm/state/plugin.js +0 -31
- package/esm/state/profile.d.ts +0 -16
- package/esm/state/profile.d.ts.map +0 -1
- package/esm/state/profile.js +0 -13
- package/esm/state/settings.d.ts +0 -175
- package/esm/state/settings.d.ts.map +0 -1
- package/esm/state/settings.js +0 -195
- package/esm/state/settings_by_app.d.ts.map +0 -1
- package/esm/state/settings_by_monitor.d.ts +0 -43
- package/esm/state/settings_by_monitor.d.ts.map +0 -1
- package/esm/state/settings_by_monitor.js +0 -46
- package/esm/state/theme.d.ts +0 -31
- package/esm/state/theme.d.ts.map +0 -1
- package/esm/state/weg_items.d.ts +0 -36
- package/esm/state/weg_items.d.ts.map +0 -1
- package/esm/state/weg_items.js +0 -8
- package/esm/state/widget.d.ts +0 -4
- package/esm/state/widget.d.ts.map +0 -1
- package/esm/state/widget.js +0 -3
- package/esm/state/wm_layout.d.ts.map +0 -1
- package/esm/system_state/index.d.ts +0 -19
- package/esm/system_state/index.d.ts.map +0 -1
- package/esm/utils/hooks.d.ts +0 -2
- package/esm/utils/hooks.d.ts.map +0 -1
- package/esm/utils/hooks.js +0 -43
- package/esm/utils/index.d.ts.map +0 -1
- package/esm/utils/layered_hitbox.d.ts.map +0 -1
- package/script/_dnt.shims.d.ts +0 -5
- package/script/_dnt.shims.d.ts.map +0 -1
- package/script/_dnt.shims.js +0 -65
- package/script/handlers/events.d.ts.map +0 -1
- package/script/handlers/index.d.ts +0 -11
- package/script/handlers/index.d.ts.map +0 -1
- package/script/handlers/invokers.d.ts.map +0 -1
- package/script/lib.d.ts +0 -5
- package/script/lib.d.ts.map +0 -1
- package/script/state/icon_pack.d.ts.map +0 -1
- package/script/state/index.d.ts +0 -24
- package/script/state/index.d.ts.map +0 -1
- package/script/state/placeholder.d.ts.map +0 -1
- package/script/state/plugin.d.ts +0 -17
- package/script/state/plugin.d.ts.map +0 -1
- package/script/state/plugin.js +0 -36
- package/script/state/profile.d.ts +0 -16
- package/script/state/profile.d.ts.map +0 -1
- package/script/state/profile.js +0 -17
- package/script/state/settings.d.ts +0 -175
- package/script/state/settings.d.ts.map +0 -1
- package/script/state/settings.js +0 -234
- package/script/state/settings_by_app.d.ts.map +0 -1
- package/script/state/settings_by_monitor.d.ts +0 -43
- package/script/state/settings_by_monitor.d.ts.map +0 -1
- package/script/state/settings_by_monitor.js +0 -56
- package/script/state/theme.d.ts +0 -31
- package/script/state/theme.d.ts.map +0 -1
- package/script/state/weg_items.d.ts +0 -36
- package/script/state/weg_items.d.ts.map +0 -1
- package/script/state/weg_items.js +0 -11
- package/script/state/widget.d.ts +0 -4
- package/script/state/widget.d.ts.map +0 -1
- package/script/state/widget.js +0 -7
- package/script/state/wm_layout.d.ts.map +0 -1
- package/script/system_state/index.d.ts +0 -19
- package/script/system_state/index.d.ts.map +0 -1
- package/script/utils/hooks.d.ts +0 -2
- package/script/utils/hooks.d.ts.map +0 -1
- package/script/utils/hooks.js +0 -44
- package/script/utils/index.d.ts.map +0 -1
- package/script/utils/layered_hitbox.d.ts.map +0 -1
- /package/esm/{state/theme.js → gen/types/AhkVarList.js} +0 -0
- /package/esm/{state → src/state}/placeholder.d.ts +0 -0
- /package/esm/{state → src/state}/placeholder.js +0 -0
- /package/esm/{state → src/state}/settings_by_app.d.ts +0 -0
- /package/esm/{state → src/state}/settings_by_app.js +0 -0
- /package/esm/{state → src/state}/wm_layout.d.ts +0 -0
- /package/esm/{state → src/state}/wm_layout.js +0 -0
- /package/esm/{utils → src/utils}/layered_hitbox.d.ts +0 -0
- /package/script/{state/theme.js → gen/types/AhkVarList.js} +0 -0
- /package/script/{state → src/state}/placeholder.d.ts +0 -0
- /package/script/{state → src/state}/placeholder.js +0 -0
- /package/script/{state → src/state}/settings_by_app.d.ts +0 -0
- /package/script/{state → src/state}/settings_by_app.js +0 -0
- /package/script/{state → src/state}/wm_layout.d.ts +0 -0
- /package/script/{state → src/state}/wm_layout.js +0 -0
- /package/script/{utils → src/utils}/layered_hitbox.d.ts +0 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.encodeAscii85 = encodeAscii85;
|
|
6
|
+
exports.decodeAscii85 = decodeAscii85;
|
|
7
|
+
/**
|
|
8
|
+
* Utilities for working with {@link https://en.wikipedia.org/wiki/Ascii85 | ascii85} encoding.
|
|
9
|
+
*
|
|
10
|
+
* ## Specifying a standard and delimiter
|
|
11
|
+
*
|
|
12
|
+
* By default, all functions are using the most popular Adobe version of ascii85
|
|
13
|
+
* and not adding any delimiter. However, there are three more standards
|
|
14
|
+
* supported - btoa (different delimiter and additional compression of 4 bytes
|
|
15
|
+
* equal to 32), {@link https://rfc.zeromq.org/spec/32/ | Z85} and
|
|
16
|
+
* {@link https://www.rfc-editor.org/rfc/rfc1924.html | RFC 1924}. It's possible to use a
|
|
17
|
+
* different encoding by specifying it in `options` object as a second parameter.
|
|
18
|
+
*
|
|
19
|
+
* Similarly, it's possible to make `encode` add a delimiter (`<~` and `~>` for
|
|
20
|
+
* Adobe, `xbtoa Begin` and `xbtoa End` with newlines between the delimiters and
|
|
21
|
+
* encoded data for btoa. Checksums for btoa are not supported. Delimiters are not
|
|
22
|
+
* supported by other encodings.)
|
|
23
|
+
*
|
|
24
|
+
* @module
|
|
25
|
+
*/
|
|
26
|
+
const _validate_binary_like_js_1 = require("./_validate_binary_like.js");
|
|
27
|
+
const rfc1924 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~";
|
|
28
|
+
const Z85 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#";
|
|
29
|
+
/**
|
|
30
|
+
* Converts data into an ascii85-encoded string.
|
|
31
|
+
*
|
|
32
|
+
* @param data The data to encode.
|
|
33
|
+
* @param options Options for encoding.
|
|
34
|
+
*
|
|
35
|
+
* @returns The ascii85-encoded string.
|
|
36
|
+
*
|
|
37
|
+
* @example Usage
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { encodeAscii85 } from "@std/encoding/ascii85";
|
|
40
|
+
* import { assertEquals } from "@std/assert";
|
|
41
|
+
*
|
|
42
|
+
* assertEquals(encodeAscii85("Hello world!"), "87cURD]j7BEbo80");
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
function encodeAscii85(data, options = {}) {
|
|
46
|
+
let uint8 = (0, _validate_binary_like_js_1.validateBinaryLike)(data);
|
|
47
|
+
const { standard = "Adobe" } = options;
|
|
48
|
+
let output = [];
|
|
49
|
+
let v;
|
|
50
|
+
let n = 0;
|
|
51
|
+
let difference = 0;
|
|
52
|
+
if (uint8.length % 4 !== 0) {
|
|
53
|
+
const tmp = uint8;
|
|
54
|
+
difference = 4 - (tmp.length % 4);
|
|
55
|
+
uint8 = new Uint8Array(tmp.length + difference);
|
|
56
|
+
uint8.set(tmp);
|
|
57
|
+
}
|
|
58
|
+
const view = new DataView(uint8.buffer, uint8.byteOffset, uint8.byteLength);
|
|
59
|
+
for (let i = 0; i < uint8.length; i += 4) {
|
|
60
|
+
v = view.getUint32(i);
|
|
61
|
+
// Adobe and btoa standards compress 4 zeroes to single "z" character
|
|
62
|
+
if ((standard === "Adobe" || standard === "btoa") &&
|
|
63
|
+
v === 0 &&
|
|
64
|
+
i < uint8.length - difference - 3) {
|
|
65
|
+
output[n++] = "z";
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
// btoa compresses 4 spaces - that is, bytes equal to 32 - into single "y" character
|
|
69
|
+
if (standard === "btoa" && v === 538976288) {
|
|
70
|
+
output[n++] = "y";
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
for (let j = 4; j >= 0; j--) {
|
|
74
|
+
output[n + j] = String.fromCharCode((v % 85) + 33);
|
|
75
|
+
v = Math.trunc(v / 85);
|
|
76
|
+
}
|
|
77
|
+
n += 5;
|
|
78
|
+
}
|
|
79
|
+
switch (standard) {
|
|
80
|
+
case "Adobe":
|
|
81
|
+
if (options?.delimiter) {
|
|
82
|
+
return `<~${output.slice(0, output.length - difference).join("")}~>`;
|
|
83
|
+
}
|
|
84
|
+
break;
|
|
85
|
+
case "btoa":
|
|
86
|
+
if (options?.delimiter) {
|
|
87
|
+
return `xbtoa Begin\n${output
|
|
88
|
+
.slice(0, output.length - difference)
|
|
89
|
+
.join("")}\nxbtoa End`;
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case "RFC 1924":
|
|
93
|
+
output = output.map((val) => rfc1924[val.charCodeAt(0) - 33]);
|
|
94
|
+
break;
|
|
95
|
+
case "Z85":
|
|
96
|
+
output = output.map((val) => Z85[val.charCodeAt(0) - 33]);
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
return output.slice(0, output.length - difference).join("");
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Decodes a ascii85-encoded string.
|
|
103
|
+
*
|
|
104
|
+
* @param ascii85 The ascii85-encoded string to decode.
|
|
105
|
+
* @param options Options for decoding.
|
|
106
|
+
* @returns The decoded data.
|
|
107
|
+
*
|
|
108
|
+
* @example Usage
|
|
109
|
+
* ```ts
|
|
110
|
+
* import { decodeAscii85 } from "@std/encoding/ascii85";
|
|
111
|
+
* import { assertEquals } from "@std/assert";
|
|
112
|
+
*
|
|
113
|
+
* assertEquals(
|
|
114
|
+
* decodeAscii85("87cURD]j7BEbo80"),
|
|
115
|
+
* new TextEncoder().encode("Hello world!"),
|
|
116
|
+
* );
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
function decodeAscii85(ascii85, options = {}) {
|
|
120
|
+
const { standard = "Adobe" } = options;
|
|
121
|
+
// translate all encodings to most basic adobe/btoa one and decompress some special characters ("z" and "y")
|
|
122
|
+
switch (standard) {
|
|
123
|
+
case "Adobe":
|
|
124
|
+
ascii85 = ascii85.replaceAll(/(<~|~>)/g, "").replaceAll("z", "!!!!!");
|
|
125
|
+
break;
|
|
126
|
+
case "btoa":
|
|
127
|
+
ascii85 = ascii85
|
|
128
|
+
.replaceAll(/(xbtoa Begin|xbtoa End|\n)/g, "")
|
|
129
|
+
.replaceAll("z", "!!!!!")
|
|
130
|
+
.replaceAll("y", "+<VdL");
|
|
131
|
+
break;
|
|
132
|
+
case "RFC 1924":
|
|
133
|
+
ascii85 = ascii85.replaceAll(/./g, (match) => String.fromCharCode(rfc1924.indexOf(match) + 33));
|
|
134
|
+
break;
|
|
135
|
+
case "Z85":
|
|
136
|
+
ascii85 = ascii85.replaceAll(/./g, (match) => String.fromCharCode(Z85.indexOf(match) + 33));
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
// remove all invalid characters
|
|
140
|
+
ascii85 = ascii85.replaceAll(/[^!-u]/g, "");
|
|
141
|
+
const len = ascii85.length;
|
|
142
|
+
const output = new Uint8Array(len + 4 - (len % 4));
|
|
143
|
+
const view = new DataView(output.buffer);
|
|
144
|
+
let v = 0;
|
|
145
|
+
let n = 0;
|
|
146
|
+
let max = 0;
|
|
147
|
+
for (let i = 0; i < len;) {
|
|
148
|
+
for (max += 5; i < max; i++) {
|
|
149
|
+
v = v * 85 + (i < len ? ascii85.charCodeAt(i) : 117) - 33;
|
|
150
|
+
}
|
|
151
|
+
view.setUint32(n, v);
|
|
152
|
+
v = 0;
|
|
153
|
+
n += 4;
|
|
154
|
+
}
|
|
155
|
+
return output.slice(0, Math.trunc(len * 0.8));
|
|
156
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decodes a base32-encoded string.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
|
|
5
|
+
*
|
|
6
|
+
* @param b32 The base32-encoded string to decode.
|
|
7
|
+
* @returns The decoded data.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { decodeBase32 } from "@std/encoding/base32";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(
|
|
15
|
+
* decodeBase32("GZRTMMDDGA======"),
|
|
16
|
+
* new TextEncoder().encode("6c60c0"),
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function decodeBase32(b32: string): Uint8Array;
|
|
21
|
+
/**
|
|
22
|
+
* Converts data into a base32-encoded string.
|
|
23
|
+
*
|
|
24
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
|
|
25
|
+
*
|
|
26
|
+
* @param data The data to encode.
|
|
27
|
+
* @returns The base32-encoded string.
|
|
28
|
+
*
|
|
29
|
+
* @example Usage
|
|
30
|
+
* ```ts
|
|
31
|
+
* import { encodeBase32 } from "@std/encoding/base32";
|
|
32
|
+
* import { assertEquals } from "@std/assert";
|
|
33
|
+
*
|
|
34
|
+
* assertEquals(encodeBase32("6c60c0"), "GZRTMMDDGA======");
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function encodeBase32(data: ArrayBuffer | Uint8Array | string): string;
|
|
38
|
+
//# sourceMappingURL=base32.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base32.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/base32.ts"],"names":[],"mappings":"AA+BA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAEpD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAE5E"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// Copyright (c) 2014 Jameson Little. MIT License.
|
|
4
|
+
// This module is browser compatible.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.decodeBase32 = decodeBase32;
|
|
7
|
+
exports.encodeBase32 = encodeBase32;
|
|
8
|
+
/**
|
|
9
|
+
* Utilities for
|
|
10
|
+
* {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6 | base32}
|
|
11
|
+
* encoding and decoding.
|
|
12
|
+
*
|
|
13
|
+
* Modified from {@link https://github.com/beatgammit/base64-js}.
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { encodeBase32, decodeBase32 } from "@std/encoding/base32";
|
|
17
|
+
* import { assertEquals } from "@std/assert";
|
|
18
|
+
*
|
|
19
|
+
* assertEquals(encodeBase32("foobar"), "MZXW6YTBOI======");
|
|
20
|
+
*
|
|
21
|
+
* assertEquals(
|
|
22
|
+
* decodeBase32("MZXW6YTBOI======"),
|
|
23
|
+
* new TextEncoder().encode("foobar")
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @module
|
|
28
|
+
*/
|
|
29
|
+
const _base32_common_js_1 = require("./_base32_common.js");
|
|
30
|
+
const lookup = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split("");
|
|
31
|
+
const revLookup = [];
|
|
32
|
+
lookup.forEach((c, i) => (revLookup[c.charCodeAt(0)] = i));
|
|
33
|
+
/**
|
|
34
|
+
* Decodes a base32-encoded string.
|
|
35
|
+
*
|
|
36
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
|
|
37
|
+
*
|
|
38
|
+
* @param b32 The base32-encoded string to decode.
|
|
39
|
+
* @returns The decoded data.
|
|
40
|
+
*
|
|
41
|
+
* @example Usage
|
|
42
|
+
* ```ts
|
|
43
|
+
* import { decodeBase32 } from "@std/encoding/base32";
|
|
44
|
+
* import { assertEquals } from "@std/assert";
|
|
45
|
+
*
|
|
46
|
+
* assertEquals(
|
|
47
|
+
* decodeBase32("GZRTMMDDGA======"),
|
|
48
|
+
* new TextEncoder().encode("6c60c0"),
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
function decodeBase32(b32) {
|
|
53
|
+
return (0, _base32_common_js_1.decode)(b32, lookup);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Converts data into a base32-encoded string.
|
|
57
|
+
*
|
|
58
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
|
|
59
|
+
*
|
|
60
|
+
* @param data The data to encode.
|
|
61
|
+
* @returns The base32-encoded string.
|
|
62
|
+
*
|
|
63
|
+
* @example Usage
|
|
64
|
+
* ```ts
|
|
65
|
+
* import { encodeBase32 } from "@std/encoding/base32";
|
|
66
|
+
* import { assertEquals } from "@std/assert";
|
|
67
|
+
*
|
|
68
|
+
* assertEquals(encodeBase32("6c60c0"), "GZRTMMDDGA======");
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
function encodeBase32(data) {
|
|
72
|
+
return (0, _base32_common_js_1.encode)(data, lookup);
|
|
73
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts data into a base58-encoded string.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link https://datatracker.ietf.org/doc/html/draft-msporny-base58-03#section-3}
|
|
5
|
+
*
|
|
6
|
+
* @param data The data to encode.
|
|
7
|
+
* @returns The base58-encoded string.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { encodeBase58 } from "@std/encoding/base58";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(encodeBase58("Hello World!"), "2NEpo7TZRRrLZSi2U");
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function encodeBase58(data: ArrayBuffer | Uint8Array | string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Decodes a base58-encoded string.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link https://datatracker.ietf.org/doc/html/draft-msporny-base58-03#section-4}
|
|
22
|
+
*
|
|
23
|
+
* @param b58 The base58-encoded string to decode.
|
|
24
|
+
* @returns The decoded data.
|
|
25
|
+
*
|
|
26
|
+
* @example Usage
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { decodeBase58 } from "@std/encoding/base58";
|
|
29
|
+
* import { assertEquals } from "@std/assert";
|
|
30
|
+
*
|
|
31
|
+
* assertEquals(
|
|
32
|
+
* decodeBase58("2NEpo7TZRRrLZSi2U"),
|
|
33
|
+
* new TextEncoder().encode("Hello World!")
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function decodeBase58(b58: string): Uint8Array;
|
|
38
|
+
//# sourceMappingURL=base58.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base58.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/base58.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAgD5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAkDpD"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.encodeBase58 = encodeBase58;
|
|
6
|
+
exports.decodeBase58 = decodeBase58;
|
|
7
|
+
/**
|
|
8
|
+
* Utilities for
|
|
9
|
+
* {@link https://datatracker.ietf.org/doc/html/draft-msporny-base58-03 | base58}
|
|
10
|
+
* encoding and decoding.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { encodeBase58, decodeBase58 } from "@std/encoding/base58";
|
|
14
|
+
* import { assertEquals } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* const hello = new TextEncoder().encode("Hello World!");
|
|
17
|
+
*
|
|
18
|
+
* assertEquals(encodeBase58(hello), "2NEpo7TZRRrLZSi2U");
|
|
19
|
+
*
|
|
20
|
+
* assertEquals(decodeBase58("2NEpo7TZRRrLZSi2U"), hello);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @module
|
|
24
|
+
*/
|
|
25
|
+
const _validate_binary_like_js_1 = require("./_validate_binary_like.js");
|
|
26
|
+
// deno-fmt-ignore
|
|
27
|
+
const mapBase58 = {
|
|
28
|
+
"1": 0, "2": 1, "3": 2, "4": 3, "5": 4, "6": 5, "7": 6, "8": 7, "9": 8, A: 9,
|
|
29
|
+
B: 10, C: 11, D: 12, E: 13, F: 14, G: 15, H: 16, J: 17, K: 18, L: 19, M: 20,
|
|
30
|
+
N: 21, P: 22, Q: 23, R: 24, S: 25, T: 26, U: 27, V: 28, W: 29, X: 30, Y: 31,
|
|
31
|
+
Z: 32, a: 33, b: 34, c: 35, d: 36, e: 37, f: 38, g: 39, h: 40, i: 41, j: 42,
|
|
32
|
+
k: 43, m: 44, n: 45, o: 46, p: 47, q: 48, r: 49, s: 50, t: 51, u: 52, v: 53,
|
|
33
|
+
w: 54, x: 55, y: 56, z: 57
|
|
34
|
+
};
|
|
35
|
+
const base58alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split("");
|
|
36
|
+
/**
|
|
37
|
+
* Converts data into a base58-encoded string.
|
|
38
|
+
*
|
|
39
|
+
* @see {@link https://datatracker.ietf.org/doc/html/draft-msporny-base58-03#section-3}
|
|
40
|
+
*
|
|
41
|
+
* @param data The data to encode.
|
|
42
|
+
* @returns The base58-encoded string.
|
|
43
|
+
*
|
|
44
|
+
* @example Usage
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { encodeBase58 } from "@std/encoding/base58";
|
|
47
|
+
* import { assertEquals } from "@std/assert";
|
|
48
|
+
*
|
|
49
|
+
* assertEquals(encodeBase58("Hello World!"), "2NEpo7TZRRrLZSi2U");
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
function encodeBase58(data) {
|
|
53
|
+
const uint8tData = (0, _validate_binary_like_js_1.validateBinaryLike)(data);
|
|
54
|
+
let length = 0;
|
|
55
|
+
let zeroes = 0;
|
|
56
|
+
// Counting leading zeroes
|
|
57
|
+
let index = 0;
|
|
58
|
+
while (uint8tData[index] === 0) {
|
|
59
|
+
zeroes++;
|
|
60
|
+
index++;
|
|
61
|
+
}
|
|
62
|
+
const notZeroUint8Data = uint8tData.slice(index);
|
|
63
|
+
const size = Math.round((uint8tData.length * 138) / 100 + 1);
|
|
64
|
+
const b58Encoding = [];
|
|
65
|
+
notZeroUint8Data.forEach((byte) => {
|
|
66
|
+
let i = 0;
|
|
67
|
+
let carry = byte;
|
|
68
|
+
for (let reverseIterator = size - 1; (carry > 0 || i < length) && reverseIterator !== -1; reverseIterator--, i++) {
|
|
69
|
+
carry += (b58Encoding[reverseIterator] ?? 0) * 256;
|
|
70
|
+
b58Encoding[reverseIterator] = Math.round(carry % 58);
|
|
71
|
+
carry = Math.floor(carry / 58);
|
|
72
|
+
}
|
|
73
|
+
length = i;
|
|
74
|
+
});
|
|
75
|
+
const strResult = Array.from({
|
|
76
|
+
length: b58Encoding.length + zeroes,
|
|
77
|
+
});
|
|
78
|
+
if (zeroes > 0) {
|
|
79
|
+
strResult.fill("1", 0, zeroes);
|
|
80
|
+
}
|
|
81
|
+
b58Encoding.forEach((byteValue) => strResult.push(base58alphabet[byteValue]));
|
|
82
|
+
return strResult.join("");
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Decodes a base58-encoded string.
|
|
86
|
+
*
|
|
87
|
+
* @see {@link https://datatracker.ietf.org/doc/html/draft-msporny-base58-03#section-4}
|
|
88
|
+
*
|
|
89
|
+
* @param b58 The base58-encoded string to decode.
|
|
90
|
+
* @returns The decoded data.
|
|
91
|
+
*
|
|
92
|
+
* @example Usage
|
|
93
|
+
* ```ts
|
|
94
|
+
* import { decodeBase58 } from "@std/encoding/base58";
|
|
95
|
+
* import { assertEquals } from "@std/assert";
|
|
96
|
+
*
|
|
97
|
+
* assertEquals(
|
|
98
|
+
* decodeBase58("2NEpo7TZRRrLZSi2U"),
|
|
99
|
+
* new TextEncoder().encode("Hello World!")
|
|
100
|
+
* );
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
function decodeBase58(b58) {
|
|
104
|
+
const splitInput = b58.trim().split("");
|
|
105
|
+
let length = 0;
|
|
106
|
+
let ones = 0;
|
|
107
|
+
// Counting leading ones
|
|
108
|
+
let index = 0;
|
|
109
|
+
while (splitInput[index] === "1") {
|
|
110
|
+
ones++;
|
|
111
|
+
index++;
|
|
112
|
+
}
|
|
113
|
+
const notZeroData = splitInput.slice(index);
|
|
114
|
+
const size = Math.round((b58.length * 733) / 1000 + 1);
|
|
115
|
+
const output = [];
|
|
116
|
+
notZeroData.forEach((char, idx) => {
|
|
117
|
+
let carry = mapBase58[char];
|
|
118
|
+
let i = 0;
|
|
119
|
+
if (carry === undefined) {
|
|
120
|
+
throw new TypeError(`Invalid base58 char at index ${idx} with value ${char}`);
|
|
121
|
+
}
|
|
122
|
+
for (let reverseIterator = size - 1; (carry > 0 || i < length) && reverseIterator !== -1; reverseIterator--, i++) {
|
|
123
|
+
carry += 58 * (output[reverseIterator] ?? 0);
|
|
124
|
+
output[reverseIterator] = Math.round(carry % 256);
|
|
125
|
+
carry = Math.floor(carry / 256);
|
|
126
|
+
}
|
|
127
|
+
length = i;
|
|
128
|
+
});
|
|
129
|
+
const validOutput = output.filter((item) => item !== undefined);
|
|
130
|
+
if (ones > 0) {
|
|
131
|
+
const onesResult = Array.from({ length: ones }).fill(0, 0, ones);
|
|
132
|
+
return new Uint8Array([...onesResult, ...validOutput]);
|
|
133
|
+
}
|
|
134
|
+
return new Uint8Array(validOutput);
|
|
135
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts data into a base64-encoded string.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
|
|
5
|
+
*
|
|
6
|
+
* @param data The data to encode.
|
|
7
|
+
* @returns The base64-encoded string.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { encodeBase64 } from "@std/encoding/base64";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(encodeBase64("foobar"), "Zm9vYmFy");
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function encodeBase64(data: ArrayBuffer | Uint8Array | string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Decodes a base64-encoded string.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
|
|
22
|
+
*
|
|
23
|
+
* @param b64 The base64-encoded string to decode.
|
|
24
|
+
* @returns The decoded data.
|
|
25
|
+
*
|
|
26
|
+
* @example Usage
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { decodeBase64 } from "@std/encoding/base64";
|
|
29
|
+
* import { assertEquals } from "@std/assert";
|
|
30
|
+
*
|
|
31
|
+
* assertEquals(
|
|
32
|
+
* decodeBase64("Zm9vYmFy"),
|
|
33
|
+
* new TextEncoder().encode("foobar")
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function decodeBase64(b64: string): Uint8Array;
|
|
38
|
+
//# sourceMappingURL=base64.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.6/base64.ts"],"names":[],"mappings":"AA6FA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAmC5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAQpD"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.encodeBase64 = encodeBase64;
|
|
6
|
+
exports.decodeBase64 = decodeBase64;
|
|
7
|
+
/**
|
|
8
|
+
* Utilities for
|
|
9
|
+
* {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4 | base64}
|
|
10
|
+
* encoding and decoding.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import {
|
|
14
|
+
* encodeBase64,
|
|
15
|
+
* decodeBase64,
|
|
16
|
+
* } from "@std/encoding/base64";
|
|
17
|
+
* import { assertEquals } from "@std/assert";
|
|
18
|
+
*
|
|
19
|
+
* const foobar = new TextEncoder().encode("foobar");
|
|
20
|
+
*
|
|
21
|
+
* assertEquals(encodeBase64(foobar), "Zm9vYmFy");
|
|
22
|
+
* assertEquals(decodeBase64("Zm9vYmFy"), foobar);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @module
|
|
26
|
+
*/
|
|
27
|
+
const _validate_binary_like_js_1 = require("./_validate_binary_like.js");
|
|
28
|
+
const base64abc = [
|
|
29
|
+
"A",
|
|
30
|
+
"B",
|
|
31
|
+
"C",
|
|
32
|
+
"D",
|
|
33
|
+
"E",
|
|
34
|
+
"F",
|
|
35
|
+
"G",
|
|
36
|
+
"H",
|
|
37
|
+
"I",
|
|
38
|
+
"J",
|
|
39
|
+
"K",
|
|
40
|
+
"L",
|
|
41
|
+
"M",
|
|
42
|
+
"N",
|
|
43
|
+
"O",
|
|
44
|
+
"P",
|
|
45
|
+
"Q",
|
|
46
|
+
"R",
|
|
47
|
+
"S",
|
|
48
|
+
"T",
|
|
49
|
+
"U",
|
|
50
|
+
"V",
|
|
51
|
+
"W",
|
|
52
|
+
"X",
|
|
53
|
+
"Y",
|
|
54
|
+
"Z",
|
|
55
|
+
"a",
|
|
56
|
+
"b",
|
|
57
|
+
"c",
|
|
58
|
+
"d",
|
|
59
|
+
"e",
|
|
60
|
+
"f",
|
|
61
|
+
"g",
|
|
62
|
+
"h",
|
|
63
|
+
"i",
|
|
64
|
+
"j",
|
|
65
|
+
"k",
|
|
66
|
+
"l",
|
|
67
|
+
"m",
|
|
68
|
+
"n",
|
|
69
|
+
"o",
|
|
70
|
+
"p",
|
|
71
|
+
"q",
|
|
72
|
+
"r",
|
|
73
|
+
"s",
|
|
74
|
+
"t",
|
|
75
|
+
"u",
|
|
76
|
+
"v",
|
|
77
|
+
"w",
|
|
78
|
+
"x",
|
|
79
|
+
"y",
|
|
80
|
+
"z",
|
|
81
|
+
"0",
|
|
82
|
+
"1",
|
|
83
|
+
"2",
|
|
84
|
+
"3",
|
|
85
|
+
"4",
|
|
86
|
+
"5",
|
|
87
|
+
"6",
|
|
88
|
+
"7",
|
|
89
|
+
"8",
|
|
90
|
+
"9",
|
|
91
|
+
"+",
|
|
92
|
+
"/",
|
|
93
|
+
];
|
|
94
|
+
/**
|
|
95
|
+
* Converts data into a base64-encoded string.
|
|
96
|
+
*
|
|
97
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
|
|
98
|
+
*
|
|
99
|
+
* @param data The data to encode.
|
|
100
|
+
* @returns The base64-encoded string.
|
|
101
|
+
*
|
|
102
|
+
* @example Usage
|
|
103
|
+
* ```ts
|
|
104
|
+
* import { encodeBase64 } from "@std/encoding/base64";
|
|
105
|
+
* import { assertEquals } from "@std/assert";
|
|
106
|
+
*
|
|
107
|
+
* assertEquals(encodeBase64("foobar"), "Zm9vYmFy");
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
function encodeBase64(data) {
|
|
111
|
+
// CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727
|
|
112
|
+
const uint8 = (0, _validate_binary_like_js_1.validateBinaryLike)(data);
|
|
113
|
+
let result = "";
|
|
114
|
+
let i;
|
|
115
|
+
const l = uint8.length;
|
|
116
|
+
for (i = 2; i < l; i += 3) {
|
|
117
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
118
|
+
result += base64abc[(((uint8[i - 2]) & 0x03) << 4) |
|
|
119
|
+
((uint8[i - 1]) >> 4)];
|
|
120
|
+
result += base64abc[(((uint8[i - 1]) & 0x0f) << 2) |
|
|
121
|
+
((uint8[i]) >> 6)];
|
|
122
|
+
result += base64abc[(uint8[i]) & 0x3f];
|
|
123
|
+
}
|
|
124
|
+
if (i === l + 1) {
|
|
125
|
+
// 1 octet yet to write
|
|
126
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
127
|
+
result += base64abc[((uint8[i - 2]) & 0x03) << 4];
|
|
128
|
+
result += "==";
|
|
129
|
+
}
|
|
130
|
+
if (i === l) {
|
|
131
|
+
// 2 octets yet to write
|
|
132
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
133
|
+
result += base64abc[(((uint8[i - 2]) & 0x03) << 4) |
|
|
134
|
+
((uint8[i - 1]) >> 4)];
|
|
135
|
+
result += base64abc[((uint8[i - 1]) & 0x0f) << 2];
|
|
136
|
+
result += "=";
|
|
137
|
+
}
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Decodes a base64-encoded string.
|
|
142
|
+
*
|
|
143
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
|
|
144
|
+
*
|
|
145
|
+
* @param b64 The base64-encoded string to decode.
|
|
146
|
+
* @returns The decoded data.
|
|
147
|
+
*
|
|
148
|
+
* @example Usage
|
|
149
|
+
* ```ts
|
|
150
|
+
* import { decodeBase64 } from "@std/encoding/base64";
|
|
151
|
+
* import { assertEquals } from "@std/assert";
|
|
152
|
+
*
|
|
153
|
+
* assertEquals(
|
|
154
|
+
* decodeBase64("Zm9vYmFy"),
|
|
155
|
+
* new TextEncoder().encode("foobar")
|
|
156
|
+
* );
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
function decodeBase64(b64) {
|
|
160
|
+
const binString = atob(b64);
|
|
161
|
+
const size = binString.length;
|
|
162
|
+
const bytes = new Uint8Array(size);
|
|
163
|
+
for (let i = 0; i < size; i++) {
|
|
164
|
+
bytes[i] = binString.charCodeAt(i);
|
|
165
|
+
}
|
|
166
|
+
return bytes;
|
|
167
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert data into a base64url-encoded string.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
|
|
5
|
+
*
|
|
6
|
+
* @param data The data to encode.
|
|
7
|
+
* @returns The base64url-encoded string.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { encodeBase64Url } from "@std/encoding/base64url";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertEquals(encodeBase64Url("foobar"), "Zm9vYmFy");
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function encodeBase64Url(data: ArrayBuffer | Uint8Array | string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Decodes a given base64url-encoded string.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
|
|
22
|
+
*
|
|
23
|
+
* @param b64url The base64url-encoded string to decode.
|
|
24
|
+
* @returns The decoded data.
|
|
25
|
+
*
|
|
26
|
+
* @example Usage
|
|
27
|
+
* ```ts
|
|
28
|
+
* import { decodeBase64Url } from "@std/encoding/base64url";
|
|
29
|
+
* import { assertEquals } from "@std/assert";
|
|
30
|
+
*
|
|
31
|
+
* assertEquals(
|
|
32
|
+
* decodeBase64Url("Zm9vYmFy"),
|
|
33
|
+
* new TextEncoder().encode("foobar")
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function decodeBase64Url(b64url: string): Uint8Array;
|
|
38
|
+
//# sourceMappingURL=base64url.d.ts.map
|