@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.
Files changed (754) hide show
  1. package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
  2. package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
  3. package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +183 -0
  4. package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
  5. package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +26 -0
  7. package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
  8. package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
  9. package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +152 -0
  10. package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
  11. package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
  12. package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.js +69 -0
  13. package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
  14. package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.js +131 -0
  16. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
  17. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.js +163 -0
  19. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
  20. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.js +81 -0
  22. package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
  23. package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.js +109 -0
  25. package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
  26. package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.js +22 -0
  28. package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
  29. package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.js +207 -0
  31. package/esm/gen/types/AhkVar.d.ts +6 -0
  32. package/esm/gen/types/AhkVar.d.ts.map +1 -0
  33. package/esm/gen/types/AhkVar.js +2 -0
  34. package/esm/gen/types/AhkVarList.d.ts +54 -0
  35. package/esm/gen/types/AhkVarList.d.ts.map +1 -0
  36. package/esm/gen/types/AppConfig.d.ts +33 -0
  37. package/esm/gen/types/AppConfig.d.ts.map +1 -0
  38. package/esm/gen/types/AppConfig.js +1 -0
  39. package/esm/gen/types/AppExtraFlag.d.ts +2 -0
  40. package/esm/gen/types/AppExtraFlag.d.ts.map +1 -0
  41. package/esm/gen/types/AppExtraFlag.js +2 -0
  42. package/esm/gen/types/AppIdentifier.d.ts +11 -0
  43. package/esm/gen/types/AppIdentifier.d.ts.map +1 -0
  44. package/esm/gen/types/AppIdentifier.js +1 -0
  45. package/esm/gen/types/AppIdentifierType.d.ts +2 -0
  46. package/esm/gen/types/AppIdentifierType.d.ts.map +1 -0
  47. package/esm/gen/types/AppIdentifierType.js +2 -0
  48. package/esm/gen/types/Border.d.ts +6 -0
  49. package/esm/gen/types/Border.d.ts.map +1 -0
  50. package/esm/gen/types/Border.js +2 -0
  51. package/esm/gen/types/DateToolbarItem.d.ts +71 -0
  52. package/esm/gen/types/DateToolbarItem.d.ts.map +1 -0
  53. package/esm/gen/types/DateToolbarItem.js +1 -0
  54. package/esm/gen/types/DateUpdateInterval.d.ts +2 -0
  55. package/esm/gen/types/DateUpdateInterval.d.ts.map +1 -0
  56. package/esm/gen/types/DateUpdateInterval.js +2 -0
  57. package/esm/gen/types/DeviceToolbarItem.d.ts +54 -0
  58. package/esm/gen/types/DeviceToolbarItem.d.ts.map +1 -0
  59. package/esm/gen/types/DeviceToolbarItem.js +1 -0
  60. package/esm/gen/types/FancyToolbarSettings.d.ts +32 -0
  61. package/esm/gen/types/FancyToolbarSettings.d.ts.map +1 -0
  62. package/esm/gen/types/FancyToolbarSettings.js +1 -0
  63. package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
  64. package/esm/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
  65. package/esm/gen/types/FancyToolbarSettingsByMonitor.js +2 -0
  66. package/esm/gen/types/FloatingWindowSettings.d.ts +5 -0
  67. package/esm/gen/types/FloatingWindowSettings.d.ts.map +1 -0
  68. package/esm/gen/types/FloatingWindowSettings.js +2 -0
  69. package/esm/gen/types/GenericToolbarItem.d.ts +82 -0
  70. package/esm/gen/types/GenericToolbarItem.d.ts.map +1 -0
  71. package/esm/gen/types/GenericToolbarItem.js +1 -0
  72. package/esm/gen/types/HideMode.d.ts +2 -0
  73. package/esm/gen/types/HideMode.d.ts.map +1 -0
  74. package/esm/gen/types/HideMode.js +2 -0
  75. package/esm/gen/types/IconPack.d.ts +13 -0
  76. package/esm/gen/types/IconPack.d.ts.map +1 -0
  77. package/esm/gen/types/IconPack.js +1 -0
  78. package/esm/gen/types/MatchingStrategy.d.ts +2 -0
  79. package/esm/gen/types/MatchingStrategy.d.ts.map +1 -0
  80. package/esm/gen/types/MatchingStrategy.js +2 -0
  81. package/esm/gen/types/MediaToolbarItem.d.ts +138 -0
  82. package/esm/gen/types/MediaToolbarItem.d.ts.map +1 -0
  83. package/esm/gen/types/MediaToolbarItem.js +1 -0
  84. package/esm/gen/types/MonitorConfiguration.d.ts +16 -0
  85. package/esm/gen/types/MonitorConfiguration.d.ts.map +1 -0
  86. package/esm/gen/types/MonitorConfiguration.js +1 -0
  87. package/esm/gen/types/NetworkToolbarItem.d.ts +118 -0
  88. package/esm/gen/types/NetworkToolbarItem.d.ts.map +1 -0
  89. package/esm/gen/types/NetworkToolbarItem.js +1 -0
  90. package/esm/gen/types/NoFallbackBehavior.d.ts +2 -0
  91. package/esm/gen/types/NoFallbackBehavior.d.ts.map +1 -0
  92. package/esm/gen/types/NoFallbackBehavior.js +2 -0
  93. package/esm/gen/types/NodeSubtype.d.ts +2 -0
  94. package/esm/gen/types/NodeSubtype.d.ts.map +1 -0
  95. package/esm/gen/types/NodeSubtype.js +2 -0
  96. package/esm/gen/types/NotificationsToolbarItem.d.ts +62 -0
  97. package/esm/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
  98. package/esm/gen/types/NotificationsToolbarItem.js +1 -0
  99. package/esm/gen/types/PinnedWegItemData.d.ts +29 -0
  100. package/esm/gen/types/PinnedWegItemData.d.ts.map +1 -0
  101. package/esm/gen/types/PinnedWegItemData.js +2 -0
  102. package/esm/gen/types/Placeholder.d.ts +21 -0
  103. package/esm/gen/types/Placeholder.d.ts.map +1 -0
  104. package/esm/gen/types/Placeholder.js +1 -0
  105. package/esm/gen/types/PlaceholderInfo.d.ts +19 -0
  106. package/esm/gen/types/PlaceholderInfo.d.ts.map +1 -0
  107. package/esm/gen/types/PlaceholderInfo.js +2 -0
  108. package/esm/gen/types/Plugin.d.ts +11 -0
  109. package/esm/gen/types/Plugin.d.ts.map +1 -0
  110. package/esm/gen/types/Plugin.js +1 -0
  111. package/esm/gen/types/PluginId.d.ts +3 -0
  112. package/esm/gen/types/PluginId.d.ts.map +1 -0
  113. package/esm/gen/types/PluginId.js +1 -0
  114. package/esm/gen/types/PowerToolbarItem.d.ts +214 -0
  115. package/esm/gen/types/PowerToolbarItem.d.ts.map +1 -0
  116. package/esm/gen/types/PowerToolbarItem.js +1 -0
  117. package/esm/gen/types/Profile.d.ts +8 -0
  118. package/esm/gen/types/Profile.d.ts.map +1 -0
  119. package/esm/gen/types/Profile.js +1 -0
  120. package/esm/gen/types/ProfileSettings.d.ts +4 -0
  121. package/esm/gen/types/ProfileSettings.d.ts.map +1 -0
  122. package/esm/gen/types/ProfileSettings.js +2 -0
  123. package/esm/gen/types/Rect.d.ts +7 -0
  124. package/esm/gen/types/Rect.d.ts.map +1 -0
  125. package/esm/gen/types/Rect.js +2 -0
  126. package/esm/gen/types/ResourceId.d.ts +2 -0
  127. package/esm/gen/types/ResourceId.d.ts.map +1 -0
  128. package/esm/gen/types/ResourceId.js +2 -0
  129. package/esm/gen/types/ResourceMetadata.d.ts +8 -0
  130. package/esm/gen/types/ResourceMetadata.d.ts.map +1 -0
  131. package/esm/gen/types/ResourceMetadata.js +2 -0
  132. package/esm/gen/types/SeelenLauncherMonitor.d.ts +2 -0
  133. package/esm/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
  134. package/esm/gen/types/SeelenLauncherMonitor.js +2 -0
  135. package/esm/gen/types/SeelenLauncherRunner.d.ts +7 -0
  136. package/esm/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
  137. package/esm/gen/types/SeelenLauncherRunner.js +2 -0
  138. package/esm/gen/types/SeelenLauncherSettings.d.ts +8 -0
  139. package/esm/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
  140. package/esm/gen/types/SeelenLauncherSettings.js +1 -0
  141. package/esm/gen/types/SeelenWallSettings.d.ts +11 -0
  142. package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -0
  143. package/esm/gen/types/SeelenWallSettings.js +1 -0
  144. package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
  145. package/esm/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
  146. package/esm/gen/types/SeelenWallSettingsByMonitor.js +1 -0
  147. package/esm/gen/types/SeelenWallWallpaper.d.ts +5 -0
  148. package/esm/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
  149. package/esm/gen/types/SeelenWallWallpaper.js +2 -0
  150. package/esm/gen/types/SeelenWegMode.d.ts +2 -0
  151. package/esm/gen/types/SeelenWegMode.d.ts.map +1 -0
  152. package/esm/gen/types/SeelenWegMode.js +2 -0
  153. package/esm/gen/types/SeelenWegSettings.d.ts +58 -0
  154. package/esm/gen/types/SeelenWegSettings.d.ts.map +1 -0
  155. package/esm/gen/types/SeelenWegSettings.js +1 -0
  156. package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
  157. package/esm/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
  158. package/esm/gen/types/SeelenWegSettingsByMonitor.js +2 -0
  159. package/esm/gen/types/SeelenWegSide.d.ts +2 -0
  160. package/esm/gen/types/SeelenWegSide.d.ts.map +1 -0
  161. package/esm/gen/types/SeelenWegSide.js +2 -0
  162. package/esm/gen/types/Settings.d.ts +84 -0
  163. package/esm/gen/types/Settings.d.ts.map +1 -0
  164. package/esm/gen/types/Settings.js +1 -0
  165. package/esm/gen/types/SettingsToolbarItem.d.ts +54 -0
  166. package/esm/gen/types/SettingsToolbarItem.d.ts.map +1 -0
  167. package/esm/gen/types/SettingsToolbarItem.js +1 -0
  168. package/esm/gen/types/StyleValue.d.ts +2 -0
  169. package/esm/gen/types/StyleValue.d.ts.map +1 -0
  170. package/esm/gen/types/StyleValue.js +2 -0
  171. package/esm/gen/types/TextToolbarItem.d.ts +114 -0
  172. package/esm/gen/types/TextToolbarItem.d.ts.map +1 -0
  173. package/esm/gen/types/TextToolbarItem.js +1 -0
  174. package/esm/gen/types/Theme.d.ts +15 -0
  175. package/esm/gen/types/Theme.d.ts.map +1 -0
  176. package/esm/gen/types/Theme.js +1 -0
  177. package/esm/gen/types/ThemeInfo.d.ts +23 -0
  178. package/esm/gen/types/ThemeInfo.d.ts.map +1 -0
  179. package/esm/gen/types/ThemeInfo.js +2 -0
  180. package/esm/gen/types/ToolbarItem.d.ts +35 -0
  181. package/esm/gen/types/ToolbarItem.d.ts.map +1 -0
  182. package/esm/gen/types/ToolbarItem.js +1 -0
  183. package/esm/gen/types/ToolbarItem2.d.ts +3 -0
  184. package/esm/gen/types/ToolbarItem2.d.ts.map +1 -0
  185. package/esm/gen/types/ToolbarItem2.js +1 -0
  186. package/esm/gen/types/TrayToolbarItem.d.ts +54 -0
  187. package/esm/gen/types/TrayToolbarItem.d.ts.map +1 -0
  188. package/esm/gen/types/TrayToolbarItem.js +1 -0
  189. package/esm/gen/types/UpdateChannel.d.ts +2 -0
  190. package/esm/gen/types/UpdateChannel.d.ts.map +1 -0
  191. package/esm/gen/types/UpdateChannel.js +2 -0
  192. package/esm/gen/types/UpdaterSettings.d.ts +5 -0
  193. package/esm/gen/types/UpdaterSettings.d.ts.map +1 -0
  194. package/esm/gen/types/UpdaterSettings.js +1 -0
  195. package/esm/gen/types/VirtualDesktopStrategy.d.ts +2 -0
  196. package/esm/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
  197. package/esm/gen/types/VirtualDesktopStrategy.js +2 -0
  198. package/esm/gen/types/WManagerLayoutInfo.d.ts +19 -0
  199. package/esm/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
  200. package/esm/gen/types/WManagerLayoutInfo.js +2 -0
  201. package/esm/gen/types/WegItem.d.ts +14 -0
  202. package/esm/gen/types/WegItem.d.ts.map +1 -0
  203. package/esm/gen/types/WegItem.js +1 -0
  204. package/esm/gen/types/WegItems.d.ts +7 -0
  205. package/esm/gen/types/WegItems.d.ts.map +1 -0
  206. package/esm/gen/types/WegItems.js +1 -0
  207. package/esm/gen/types/Widget.d.ts +8 -0
  208. package/esm/gen/types/Widget.d.ts.map +1 -0
  209. package/esm/gen/types/Widget.js +1 -0
  210. package/esm/gen/types/WidgetId.d.ts +3 -0
  211. package/esm/gen/types/WidgetId.d.ts.map +1 -0
  212. package/esm/gen/types/WidgetId.js +1 -0
  213. package/esm/gen/types/WindowManagerLayout.d.ts +9 -0
  214. package/esm/gen/types/WindowManagerLayout.d.ts.map +1 -0
  215. package/esm/gen/types/WindowManagerLayout.js +1 -0
  216. package/esm/gen/types/WindowManagerSettings.d.ts +42 -0
  217. package/esm/gen/types/WindowManagerSettings.d.ts.map +1 -0
  218. package/esm/gen/types/WindowManagerSettings.js +1 -0
  219. package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
  220. package/esm/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
  221. package/esm/gen/types/WindowManagerSettingsByMonitor.js +1 -0
  222. package/esm/gen/types/WmFallbackNode.d.ts +25 -0
  223. package/esm/gen/types/WmFallbackNode.d.ts.map +1 -0
  224. package/esm/gen/types/WmFallbackNode.js +1 -0
  225. package/esm/gen/types/WmHorizontalNode.d.ts +19 -0
  226. package/esm/gen/types/WmHorizontalNode.d.ts.map +1 -0
  227. package/esm/gen/types/WmHorizontalNode.js +1 -0
  228. package/esm/gen/types/WmLeafNode.d.ts +21 -0
  229. package/esm/gen/types/WmLeafNode.d.ts.map +1 -0
  230. package/esm/gen/types/WmLeafNode.js +1 -0
  231. package/esm/gen/types/WmNode.d.ts +17 -0
  232. package/esm/gen/types/WmNode.d.ts.map +1 -0
  233. package/esm/gen/types/WmNode.js +1 -0
  234. package/esm/gen/types/WmStackNode.d.ts +25 -0
  235. package/esm/gen/types/WmStackNode.d.ts.map +1 -0
  236. package/esm/gen/types/WmStackNode.js +1 -0
  237. package/esm/gen/types/WmVerticalNode.d.ts +19 -0
  238. package/esm/gen/types/WmVerticalNode.d.ts.map +1 -0
  239. package/esm/gen/types/WmVerticalNode.js +1 -0
  240. package/esm/gen/types/WorkspaceConfiguration.d.ts +8 -0
  241. package/esm/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
  242. package/esm/gen/types/WorkspaceConfiguration.js +1 -0
  243. package/esm/gen/types/WorkspaceIdentifier.d.ts +6 -0
  244. package/esm/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
  245. package/esm/gen/types/WorkspaceIdentifier.js +1 -0
  246. package/esm/gen/types/WorkspaceIdentifierType.d.ts +2 -0
  247. package/esm/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
  248. package/esm/gen/types/WorkspaceIdentifierType.js +2 -0
  249. package/esm/gen/types/WorkspaceToolbarItem.d.ts +56 -0
  250. package/esm/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
  251. package/esm/gen/types/WorkspaceToolbarItem.js +1 -0
  252. package/esm/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
  253. package/esm/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
  254. package/esm/gen/types/WorkspaceToolbarItemMode.js +2 -0
  255. package/esm/gen/types/mod.d.ts +76 -0
  256. package/esm/gen/types/mod.d.ts.map +1 -0
  257. package/esm/gen/types/mod.js +75 -0
  258. package/esm/gen/types/serde_json/JsonValue.d.ts +4 -0
  259. package/esm/gen/types/serde_json/JsonValue.d.ts.map +1 -0
  260. package/esm/gen/types/serde_json/JsonValue.js +2 -0
  261. package/esm/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
  262. package/esm/src/handlers/commands.d.ts.map +1 -0
  263. package/esm/{handlers/invokers.js → src/handlers/commands.js} +6 -6
  264. package/{script → esm/src}/handlers/events.d.ts +2 -1
  265. package/esm/src/handlers/events.d.ts.map +1 -0
  266. package/esm/{handlers → src/handlers}/events.js +2 -1
  267. package/esm/src/handlers/invokers.d.ts +26 -0
  268. package/esm/src/handlers/invokers.d.ts.map +1 -0
  269. package/esm/src/handlers/invokers.js +13 -0
  270. package/esm/src/handlers/mod.d.ts +4 -0
  271. package/esm/src/handlers/mod.d.ts.map +1 -0
  272. package/esm/src/handlers/mod.js +3 -0
  273. package/esm/src/lib.d.ts +5 -0
  274. package/esm/src/lib.d.ts.map +1 -0
  275. package/esm/src/lib.js +4 -0
  276. package/esm/{state → src/state}/icon_pack.d.ts +1 -1
  277. package/esm/src/state/icon_pack.d.ts.map +1 -0
  278. package/esm/{state → src/state}/icon_pack.js +1 -1
  279. package/esm/src/state/mod.d.ts +40 -0
  280. package/esm/src/state/mod.d.ts.map +1 -0
  281. package/esm/{state/index.js → src/state/mod.js} +7 -7
  282. package/esm/src/state/placeholder.d.ts.map +1 -0
  283. package/esm/src/state/plugin.d.ts +26 -0
  284. package/esm/src/state/plugin.d.ts.map +1 -0
  285. package/esm/src/state/plugin.js +12 -0
  286. package/esm/src/state/profile.d.ts +23 -0
  287. package/esm/src/state/profile.d.ts.map +1 -0
  288. package/esm/src/state/profile.js +6 -0
  289. package/esm/src/state/settings.d.ts +51 -0
  290. package/esm/src/state/settings.d.ts.map +1 -0
  291. package/esm/src/state/settings.js +42 -0
  292. package/esm/src/state/settings_by_app.d.ts.map +1 -0
  293. package/esm/src/state/settings_by_monitor.d.ts +20 -0
  294. package/esm/src/state/settings_by_monitor.d.ts.map +1 -0
  295. package/esm/src/state/settings_by_monitor.js +16 -0
  296. package/esm/src/state/theme.d.ts +37 -0
  297. package/esm/src/state/theme.d.ts.map +1 -0
  298. package/esm/src/state/theme.js +7 -0
  299. package/esm/src/state/weg_items.d.ts +27 -0
  300. package/esm/src/state/weg_items.d.ts.map +1 -0
  301. package/esm/src/state/weg_items.js +17 -0
  302. package/esm/src/state/widget.d.ts +27 -0
  303. package/esm/src/state/widget.d.ts.map +1 -0
  304. package/esm/src/state/widget.js +7 -0
  305. package/esm/src/state/wm_layout.d.ts.map +1 -0
  306. package/esm/src/system_state/mod.d.ts +3 -0
  307. package/esm/src/system_state/mod.d.ts.map +1 -0
  308. package/esm/src/system_state/mod.js +2 -0
  309. package/esm/src/system_state/monitors.d.ts +25 -0
  310. package/esm/src/system_state/monitors.d.ts.map +1 -0
  311. package/esm/src/system_state/monitors.js +7 -0
  312. package/esm/src/system_state/uiColors.d.ts +33 -0
  313. package/esm/src/system_state/uiColors.d.ts.map +1 -0
  314. package/esm/{system_state/index.js → src/system_state/uiColors.js} +12 -12
  315. package/esm/src/utils/List.d.ts +25 -0
  316. package/esm/src/utils/List.d.ts.map +1 -0
  317. package/esm/src/utils/List.js +36 -0
  318. package/esm/src/utils/State.d.ts +11 -0
  319. package/esm/src/utils/State.d.ts.map +1 -0
  320. package/esm/src/utils/State.js +13 -0
  321. package/esm/src/utils/layered_hitbox.d.ts.map +1 -0
  322. package/esm/{utils → src/utils}/layered_hitbox.js +1 -1
  323. package/{script/utils/index.d.ts → esm/src/utils/mod.d.ts} +8 -5
  324. package/esm/src/utils/mod.d.ts.map +1 -0
  325. package/esm/{utils/index.js → src/utils/mod.js} +8 -7
  326. package/package.json +9 -7
  327. package/readme.md +1 -1
  328. package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
  329. package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
  330. package/script/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +187 -0
  331. package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
  332. package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
  333. package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +29 -0
  334. package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
  335. package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
  336. package/script/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +156 -0
  337. package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
  338. package/script/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
  339. package/script/deps/jsr.io/@std/encoding/1.0.6/base32.js +73 -0
  340. package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
  341. package/script/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
  342. package/script/deps/jsr.io/@std/encoding/1.0.6/base58.js +135 -0
  343. package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
  344. package/script/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
  345. package/script/deps/jsr.io/@std/encoding/1.0.6/base64.js +167 -0
  346. package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
  347. package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
  348. package/script/deps/jsr.io/@std/encoding/1.0.6/base64url.js +108 -0
  349. package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
  350. package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
  351. package/script/deps/jsr.io/@std/encoding/1.0.6/hex.js +113 -0
  352. package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
  353. package/script/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
  354. package/script/deps/jsr.io/@std/encoding/1.0.6/mod.js +38 -0
  355. package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
  356. package/script/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
  357. package/script/deps/jsr.io/@std/encoding/1.0.6/varint.js +213 -0
  358. package/script/gen/types/AhkVar.d.ts +6 -0
  359. package/script/gen/types/AhkVar.d.ts.map +1 -0
  360. package/script/gen/types/AhkVar.js +3 -0
  361. package/script/gen/types/AhkVarList.d.ts +54 -0
  362. package/script/gen/types/AhkVarList.d.ts.map +1 -0
  363. package/script/gen/types/AppConfig.d.ts +33 -0
  364. package/script/gen/types/AppConfig.d.ts.map +1 -0
  365. package/script/gen/types/AppConfig.js +2 -0
  366. package/script/gen/types/AppExtraFlag.d.ts +2 -0
  367. package/script/gen/types/AppExtraFlag.d.ts.map +1 -0
  368. package/script/gen/types/AppExtraFlag.js +3 -0
  369. package/script/gen/types/AppIdentifier.d.ts +11 -0
  370. package/script/gen/types/AppIdentifier.d.ts.map +1 -0
  371. package/script/gen/types/AppIdentifier.js +2 -0
  372. package/script/gen/types/AppIdentifierType.d.ts +2 -0
  373. package/script/gen/types/AppIdentifierType.d.ts.map +1 -0
  374. package/script/gen/types/AppIdentifierType.js +3 -0
  375. package/script/gen/types/Border.d.ts +6 -0
  376. package/script/gen/types/Border.d.ts.map +1 -0
  377. package/script/gen/types/Border.js +3 -0
  378. package/script/gen/types/DateToolbarItem.d.ts +71 -0
  379. package/script/gen/types/DateToolbarItem.d.ts.map +1 -0
  380. package/script/gen/types/DateToolbarItem.js +2 -0
  381. package/script/gen/types/DateUpdateInterval.d.ts +2 -0
  382. package/script/gen/types/DateUpdateInterval.d.ts.map +1 -0
  383. package/script/gen/types/DateUpdateInterval.js +3 -0
  384. package/script/gen/types/DeviceToolbarItem.d.ts +54 -0
  385. package/script/gen/types/DeviceToolbarItem.d.ts.map +1 -0
  386. package/script/gen/types/DeviceToolbarItem.js +2 -0
  387. package/script/gen/types/FancyToolbarSettings.d.ts +32 -0
  388. package/script/gen/types/FancyToolbarSettings.d.ts.map +1 -0
  389. package/script/gen/types/FancyToolbarSettings.js +2 -0
  390. package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts +4 -0
  391. package/script/gen/types/FancyToolbarSettingsByMonitor.d.ts.map +1 -0
  392. package/script/gen/types/FancyToolbarSettingsByMonitor.js +3 -0
  393. package/script/gen/types/FloatingWindowSettings.d.ts +5 -0
  394. package/script/gen/types/FloatingWindowSettings.d.ts.map +1 -0
  395. package/script/gen/types/FloatingWindowSettings.js +3 -0
  396. package/script/gen/types/GenericToolbarItem.d.ts +82 -0
  397. package/script/gen/types/GenericToolbarItem.d.ts.map +1 -0
  398. package/script/gen/types/GenericToolbarItem.js +2 -0
  399. package/script/gen/types/HideMode.d.ts +2 -0
  400. package/script/gen/types/HideMode.d.ts.map +1 -0
  401. package/script/gen/types/HideMode.js +3 -0
  402. package/script/gen/types/IconPack.d.ts +13 -0
  403. package/script/gen/types/IconPack.d.ts.map +1 -0
  404. package/script/gen/types/IconPack.js +2 -0
  405. package/script/gen/types/MatchingStrategy.d.ts +2 -0
  406. package/script/gen/types/MatchingStrategy.d.ts.map +1 -0
  407. package/script/gen/types/MatchingStrategy.js +3 -0
  408. package/script/gen/types/MediaToolbarItem.d.ts +138 -0
  409. package/script/gen/types/MediaToolbarItem.d.ts.map +1 -0
  410. package/script/gen/types/MediaToolbarItem.js +2 -0
  411. package/script/gen/types/MonitorConfiguration.d.ts +16 -0
  412. package/script/gen/types/MonitorConfiguration.d.ts.map +1 -0
  413. package/script/gen/types/MonitorConfiguration.js +2 -0
  414. package/script/gen/types/NetworkToolbarItem.d.ts +118 -0
  415. package/script/gen/types/NetworkToolbarItem.d.ts.map +1 -0
  416. package/script/gen/types/NetworkToolbarItem.js +2 -0
  417. package/script/gen/types/NoFallbackBehavior.d.ts +2 -0
  418. package/script/gen/types/NoFallbackBehavior.d.ts.map +1 -0
  419. package/script/gen/types/NoFallbackBehavior.js +3 -0
  420. package/script/gen/types/NodeSubtype.d.ts +2 -0
  421. package/script/gen/types/NodeSubtype.d.ts.map +1 -0
  422. package/script/gen/types/NodeSubtype.js +3 -0
  423. package/script/gen/types/NotificationsToolbarItem.d.ts +62 -0
  424. package/script/gen/types/NotificationsToolbarItem.d.ts.map +1 -0
  425. package/script/gen/types/NotificationsToolbarItem.js +2 -0
  426. package/script/gen/types/PinnedWegItemData.d.ts +29 -0
  427. package/script/gen/types/PinnedWegItemData.d.ts.map +1 -0
  428. package/script/gen/types/PinnedWegItemData.js +3 -0
  429. package/script/gen/types/Placeholder.d.ts +21 -0
  430. package/script/gen/types/Placeholder.d.ts.map +1 -0
  431. package/script/gen/types/Placeholder.js +2 -0
  432. package/script/gen/types/PlaceholderInfo.d.ts +19 -0
  433. package/script/gen/types/PlaceholderInfo.d.ts.map +1 -0
  434. package/script/gen/types/PlaceholderInfo.js +3 -0
  435. package/script/gen/types/Plugin.d.ts +11 -0
  436. package/script/gen/types/Plugin.d.ts.map +1 -0
  437. package/script/gen/types/Plugin.js +2 -0
  438. package/script/gen/types/PluginId.d.ts +3 -0
  439. package/script/gen/types/PluginId.d.ts.map +1 -0
  440. package/script/gen/types/PluginId.js +2 -0
  441. package/script/gen/types/PowerToolbarItem.d.ts +214 -0
  442. package/script/gen/types/PowerToolbarItem.d.ts.map +1 -0
  443. package/script/gen/types/PowerToolbarItem.js +2 -0
  444. package/script/gen/types/Profile.d.ts +8 -0
  445. package/script/gen/types/Profile.d.ts.map +1 -0
  446. package/script/gen/types/Profile.js +2 -0
  447. package/script/gen/types/ProfileSettings.d.ts +4 -0
  448. package/script/gen/types/ProfileSettings.d.ts.map +1 -0
  449. package/script/gen/types/ProfileSettings.js +3 -0
  450. package/script/gen/types/Rect.d.ts +7 -0
  451. package/script/gen/types/Rect.d.ts.map +1 -0
  452. package/script/gen/types/Rect.js +3 -0
  453. package/script/gen/types/ResourceId.d.ts +2 -0
  454. package/script/gen/types/ResourceId.d.ts.map +1 -0
  455. package/script/gen/types/ResourceId.js +3 -0
  456. package/script/gen/types/ResourceMetadata.d.ts +8 -0
  457. package/script/gen/types/ResourceMetadata.d.ts.map +1 -0
  458. package/script/gen/types/ResourceMetadata.js +3 -0
  459. package/script/gen/types/SeelenLauncherMonitor.d.ts +2 -0
  460. package/script/gen/types/SeelenLauncherMonitor.d.ts.map +1 -0
  461. package/script/gen/types/SeelenLauncherMonitor.js +3 -0
  462. package/script/gen/types/SeelenLauncherRunner.d.ts +7 -0
  463. package/script/gen/types/SeelenLauncherRunner.d.ts.map +1 -0
  464. package/script/gen/types/SeelenLauncherRunner.js +3 -0
  465. package/script/gen/types/SeelenLauncherSettings.d.ts +8 -0
  466. package/script/gen/types/SeelenLauncherSettings.d.ts.map +1 -0
  467. package/script/gen/types/SeelenLauncherSettings.js +2 -0
  468. package/script/gen/types/SeelenWallSettings.d.ts +11 -0
  469. package/script/gen/types/SeelenWallSettings.d.ts.map +1 -0
  470. package/script/gen/types/SeelenWallSettings.js +2 -0
  471. package/script/gen/types/SeelenWallSettingsByMonitor.d.ts +6 -0
  472. package/script/gen/types/SeelenWallSettingsByMonitor.d.ts.map +1 -0
  473. package/script/gen/types/SeelenWallSettingsByMonitor.js +2 -0
  474. package/script/gen/types/SeelenWallWallpaper.d.ts +5 -0
  475. package/script/gen/types/SeelenWallWallpaper.d.ts.map +1 -0
  476. package/script/gen/types/SeelenWallWallpaper.js +3 -0
  477. package/script/gen/types/SeelenWegMode.d.ts +2 -0
  478. package/script/gen/types/SeelenWegMode.d.ts.map +1 -0
  479. package/script/gen/types/SeelenWegMode.js +3 -0
  480. package/script/gen/types/SeelenWegSettings.d.ts +58 -0
  481. package/script/gen/types/SeelenWegSettings.d.ts.map +1 -0
  482. package/script/gen/types/SeelenWegSettings.js +2 -0
  483. package/script/gen/types/SeelenWegSettingsByMonitor.d.ts +4 -0
  484. package/script/gen/types/SeelenWegSettingsByMonitor.d.ts.map +1 -0
  485. package/script/gen/types/SeelenWegSettingsByMonitor.js +3 -0
  486. package/script/gen/types/SeelenWegSide.d.ts +2 -0
  487. package/script/gen/types/SeelenWegSide.d.ts.map +1 -0
  488. package/script/gen/types/SeelenWegSide.js +3 -0
  489. package/script/gen/types/Settings.d.ts +84 -0
  490. package/script/gen/types/Settings.d.ts.map +1 -0
  491. package/script/gen/types/Settings.js +2 -0
  492. package/script/gen/types/SettingsToolbarItem.d.ts +54 -0
  493. package/script/gen/types/SettingsToolbarItem.d.ts.map +1 -0
  494. package/script/gen/types/SettingsToolbarItem.js +2 -0
  495. package/script/gen/types/StyleValue.d.ts +2 -0
  496. package/script/gen/types/StyleValue.d.ts.map +1 -0
  497. package/script/gen/types/StyleValue.js +3 -0
  498. package/script/gen/types/TextToolbarItem.d.ts +114 -0
  499. package/script/gen/types/TextToolbarItem.d.ts.map +1 -0
  500. package/script/gen/types/TextToolbarItem.js +2 -0
  501. package/script/gen/types/Theme.d.ts +15 -0
  502. package/script/gen/types/Theme.d.ts.map +1 -0
  503. package/script/gen/types/Theme.js +2 -0
  504. package/script/gen/types/ThemeInfo.d.ts +23 -0
  505. package/script/gen/types/ThemeInfo.d.ts.map +1 -0
  506. package/script/gen/types/ThemeInfo.js +3 -0
  507. package/script/gen/types/ToolbarItem.d.ts +35 -0
  508. package/script/gen/types/ToolbarItem.d.ts.map +1 -0
  509. package/script/gen/types/ToolbarItem.js +2 -0
  510. package/script/gen/types/ToolbarItem2.d.ts +3 -0
  511. package/script/gen/types/ToolbarItem2.d.ts.map +1 -0
  512. package/script/gen/types/ToolbarItem2.js +2 -0
  513. package/script/gen/types/TrayToolbarItem.d.ts +54 -0
  514. package/script/gen/types/TrayToolbarItem.d.ts.map +1 -0
  515. package/script/gen/types/TrayToolbarItem.js +2 -0
  516. package/script/gen/types/UpdateChannel.d.ts +2 -0
  517. package/script/gen/types/UpdateChannel.d.ts.map +1 -0
  518. package/script/gen/types/UpdateChannel.js +3 -0
  519. package/script/gen/types/UpdaterSettings.d.ts +5 -0
  520. package/script/gen/types/UpdaterSettings.d.ts.map +1 -0
  521. package/script/gen/types/UpdaterSettings.js +2 -0
  522. package/script/gen/types/VirtualDesktopStrategy.d.ts +2 -0
  523. package/script/gen/types/VirtualDesktopStrategy.d.ts.map +1 -0
  524. package/script/gen/types/VirtualDesktopStrategy.js +3 -0
  525. package/script/gen/types/WManagerLayoutInfo.d.ts +19 -0
  526. package/script/gen/types/WManagerLayoutInfo.d.ts.map +1 -0
  527. package/script/gen/types/WManagerLayoutInfo.js +3 -0
  528. package/script/gen/types/WegItem.d.ts +14 -0
  529. package/script/gen/types/WegItem.d.ts.map +1 -0
  530. package/script/gen/types/WegItem.js +2 -0
  531. package/script/gen/types/WegItems.d.ts +7 -0
  532. package/script/gen/types/WegItems.d.ts.map +1 -0
  533. package/script/gen/types/WegItems.js +2 -0
  534. package/script/gen/types/Widget.d.ts +8 -0
  535. package/script/gen/types/Widget.d.ts.map +1 -0
  536. package/script/gen/types/Widget.js +2 -0
  537. package/script/gen/types/WidgetId.d.ts +3 -0
  538. package/script/gen/types/WidgetId.d.ts.map +1 -0
  539. package/script/gen/types/WidgetId.js +2 -0
  540. package/script/gen/types/WindowManagerLayout.d.ts +9 -0
  541. package/script/gen/types/WindowManagerLayout.d.ts.map +1 -0
  542. package/script/gen/types/WindowManagerLayout.js +2 -0
  543. package/script/gen/types/WindowManagerSettings.d.ts +42 -0
  544. package/script/gen/types/WindowManagerSettings.d.ts.map +1 -0
  545. package/script/gen/types/WindowManagerSettings.js +2 -0
  546. package/script/gen/types/WindowManagerSettingsByMonitor.d.ts +9 -0
  547. package/script/gen/types/WindowManagerSettingsByMonitor.d.ts.map +1 -0
  548. package/script/gen/types/WindowManagerSettingsByMonitor.js +2 -0
  549. package/script/gen/types/WmFallbackNode.d.ts +25 -0
  550. package/script/gen/types/WmFallbackNode.d.ts.map +1 -0
  551. package/script/gen/types/WmFallbackNode.js +2 -0
  552. package/script/gen/types/WmHorizontalNode.d.ts +19 -0
  553. package/script/gen/types/WmHorizontalNode.d.ts.map +1 -0
  554. package/script/gen/types/WmHorizontalNode.js +2 -0
  555. package/script/gen/types/WmLeafNode.d.ts +21 -0
  556. package/script/gen/types/WmLeafNode.d.ts.map +1 -0
  557. package/script/gen/types/WmLeafNode.js +2 -0
  558. package/script/gen/types/WmNode.d.ts +17 -0
  559. package/script/gen/types/WmNode.d.ts.map +1 -0
  560. package/script/gen/types/WmNode.js +2 -0
  561. package/script/gen/types/WmStackNode.d.ts +25 -0
  562. package/script/gen/types/WmStackNode.d.ts.map +1 -0
  563. package/script/gen/types/WmStackNode.js +2 -0
  564. package/script/gen/types/WmVerticalNode.d.ts +19 -0
  565. package/script/gen/types/WmVerticalNode.d.ts.map +1 -0
  566. package/script/gen/types/WmVerticalNode.js +2 -0
  567. package/script/gen/types/WorkspaceConfiguration.d.ts +8 -0
  568. package/script/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
  569. package/script/gen/types/WorkspaceConfiguration.js +2 -0
  570. package/script/gen/types/WorkspaceIdentifier.d.ts +6 -0
  571. package/script/gen/types/WorkspaceIdentifier.d.ts.map +1 -0
  572. package/script/gen/types/WorkspaceIdentifier.js +2 -0
  573. package/script/gen/types/WorkspaceIdentifierType.d.ts +2 -0
  574. package/script/gen/types/WorkspaceIdentifierType.d.ts.map +1 -0
  575. package/script/gen/types/WorkspaceIdentifierType.js +3 -0
  576. package/script/gen/types/WorkspaceToolbarItem.d.ts +56 -0
  577. package/script/gen/types/WorkspaceToolbarItem.d.ts.map +1 -0
  578. package/script/gen/types/WorkspaceToolbarItem.js +2 -0
  579. package/script/gen/types/WorkspaceToolbarItemMode.d.ts +2 -0
  580. package/script/gen/types/WorkspaceToolbarItemMode.d.ts.map +1 -0
  581. package/script/gen/types/WorkspaceToolbarItemMode.js +3 -0
  582. package/script/gen/types/mod.d.ts +76 -0
  583. package/script/gen/types/mod.d.ts.map +1 -0
  584. package/script/gen/types/mod.js +91 -0
  585. package/script/gen/types/serde_json/JsonValue.d.ts +4 -0
  586. package/script/gen/types/serde_json/JsonValue.d.ts.map +1 -0
  587. package/script/gen/types/serde_json/JsonValue.js +3 -0
  588. package/script/{handlers/invokers.d.ts → src/handlers/commands.d.ts} +7 -16
  589. package/script/src/handlers/commands.d.ts.map +1 -0
  590. package/script/{handlers/invokers.js → src/handlers/commands.js} +6 -7
  591. package/{esm → script/src}/handlers/events.d.ts +2 -1
  592. package/script/src/handlers/events.d.ts.map +1 -0
  593. package/script/{handlers → src/handlers}/events.js +2 -1
  594. package/script/src/handlers/invokers.d.ts +26 -0
  595. package/script/src/handlers/invokers.d.ts.map +1 -0
  596. package/script/{handlers/index.js → src/handlers/invokers.js} +12 -14
  597. package/script/src/handlers/mod.d.ts +4 -0
  598. package/script/src/handlers/mod.d.ts.map +1 -0
  599. package/script/src/handlers/mod.js +19 -0
  600. package/script/src/lib.d.ts +5 -0
  601. package/script/src/lib.d.ts.map +1 -0
  602. package/script/{lib.js → src/lib.js} +4 -4
  603. package/script/{state → src/state}/icon_pack.d.ts +1 -1
  604. package/script/src/state/icon_pack.d.ts.map +1 -0
  605. package/script/{state → src/state}/icon_pack.js +2 -2
  606. package/script/src/state/mod.d.ts +40 -0
  607. package/script/src/state/mod.d.ts.map +1 -0
  608. package/script/{state/index.js → src/state/mod.js} +7 -7
  609. package/script/src/state/placeholder.d.ts.map +1 -0
  610. package/script/src/state/plugin.d.ts +26 -0
  611. package/script/src/state/plugin.d.ts.map +1 -0
  612. package/script/src/state/plugin.js +16 -0
  613. package/script/src/state/profile.d.ts +23 -0
  614. package/script/src/state/profile.d.ts.map +1 -0
  615. package/script/src/state/profile.js +10 -0
  616. package/script/src/state/settings.d.ts +51 -0
  617. package/script/src/state/settings.d.ts.map +1 -0
  618. package/script/src/state/settings.js +46 -0
  619. package/script/src/state/settings_by_app.d.ts.map +1 -0
  620. package/script/src/state/settings_by_monitor.d.ts +20 -0
  621. package/script/src/state/settings_by_monitor.d.ts.map +1 -0
  622. package/script/src/state/settings_by_monitor.js +20 -0
  623. package/script/src/state/theme.d.ts +37 -0
  624. package/script/src/state/theme.d.ts.map +1 -0
  625. package/script/src/state/theme.js +11 -0
  626. package/script/src/state/weg_items.d.ts +27 -0
  627. package/script/src/state/weg_items.d.ts.map +1 -0
  628. package/script/src/state/weg_items.js +21 -0
  629. package/script/src/state/widget.d.ts +27 -0
  630. package/script/src/state/widget.d.ts.map +1 -0
  631. package/script/src/state/widget.js +11 -0
  632. package/script/src/state/wm_layout.d.ts.map +1 -0
  633. package/script/src/system_state/mod.d.ts +3 -0
  634. package/script/src/system_state/mod.d.ts.map +1 -0
  635. package/script/src/system_state/mod.js +18 -0
  636. package/script/src/system_state/monitors.d.ts +25 -0
  637. package/script/src/system_state/monitors.d.ts.map +1 -0
  638. package/script/src/system_state/monitors.js +11 -0
  639. package/script/src/system_state/uiColors.d.ts +33 -0
  640. package/script/src/system_state/uiColors.d.ts.map +1 -0
  641. package/script/{system_state/index.js → src/system_state/uiColors.js} +12 -12
  642. package/script/src/utils/List.d.ts +25 -0
  643. package/script/src/utils/List.d.ts.map +1 -0
  644. package/script/src/utils/List.js +40 -0
  645. package/script/src/utils/State.d.ts +11 -0
  646. package/script/src/utils/State.d.ts.map +1 -0
  647. package/script/src/utils/State.js +17 -0
  648. package/script/src/utils/layered_hitbox.d.ts.map +1 -0
  649. package/script/{utils → src/utils}/layered_hitbox.js +3 -3
  650. package/{esm/utils/index.d.ts → script/src/utils/mod.d.ts} +8 -5
  651. package/script/src/utils/mod.d.ts.map +1 -0
  652. package/script/{utils/index.js → src/utils/mod.js} +8 -7
  653. package/esm/_dnt.shims.d.ts +0 -5
  654. package/esm/_dnt.shims.d.ts.map +0 -1
  655. package/esm/_dnt.shims.js +0 -61
  656. package/esm/handlers/events.d.ts.map +0 -1
  657. package/esm/handlers/index.d.ts +0 -11
  658. package/esm/handlers/index.d.ts.map +0 -1
  659. package/esm/handlers/index.js +0 -16
  660. package/esm/handlers/invokers.d.ts.map +0 -1
  661. package/esm/lib.d.ts +0 -5
  662. package/esm/lib.d.ts.map +0 -1
  663. package/esm/lib.js +0 -4
  664. package/esm/state/icon_pack.d.ts.map +0 -1
  665. package/esm/state/index.d.ts +0 -24
  666. package/esm/state/index.d.ts.map +0 -1
  667. package/esm/state/placeholder.d.ts.map +0 -1
  668. package/esm/state/plugin.d.ts +0 -17
  669. package/esm/state/plugin.d.ts.map +0 -1
  670. package/esm/state/plugin.js +0 -31
  671. package/esm/state/profile.d.ts +0 -16
  672. package/esm/state/profile.d.ts.map +0 -1
  673. package/esm/state/profile.js +0 -13
  674. package/esm/state/settings.d.ts +0 -175
  675. package/esm/state/settings.d.ts.map +0 -1
  676. package/esm/state/settings.js +0 -195
  677. package/esm/state/settings_by_app.d.ts.map +0 -1
  678. package/esm/state/settings_by_monitor.d.ts +0 -43
  679. package/esm/state/settings_by_monitor.d.ts.map +0 -1
  680. package/esm/state/settings_by_monitor.js +0 -46
  681. package/esm/state/theme.d.ts +0 -31
  682. package/esm/state/theme.d.ts.map +0 -1
  683. package/esm/state/weg_items.d.ts +0 -36
  684. package/esm/state/weg_items.d.ts.map +0 -1
  685. package/esm/state/weg_items.js +0 -8
  686. package/esm/state/widget.d.ts +0 -4
  687. package/esm/state/widget.d.ts.map +0 -1
  688. package/esm/state/widget.js +0 -3
  689. package/esm/state/wm_layout.d.ts.map +0 -1
  690. package/esm/system_state/index.d.ts +0 -19
  691. package/esm/system_state/index.d.ts.map +0 -1
  692. package/esm/utils/hooks.d.ts +0 -2
  693. package/esm/utils/hooks.d.ts.map +0 -1
  694. package/esm/utils/hooks.js +0 -43
  695. package/esm/utils/index.d.ts.map +0 -1
  696. package/esm/utils/layered_hitbox.d.ts.map +0 -1
  697. package/script/_dnt.shims.d.ts +0 -5
  698. package/script/_dnt.shims.d.ts.map +0 -1
  699. package/script/_dnt.shims.js +0 -65
  700. package/script/handlers/events.d.ts.map +0 -1
  701. package/script/handlers/index.d.ts +0 -11
  702. package/script/handlers/index.d.ts.map +0 -1
  703. package/script/handlers/invokers.d.ts.map +0 -1
  704. package/script/lib.d.ts +0 -5
  705. package/script/lib.d.ts.map +0 -1
  706. package/script/state/icon_pack.d.ts.map +0 -1
  707. package/script/state/index.d.ts +0 -24
  708. package/script/state/index.d.ts.map +0 -1
  709. package/script/state/placeholder.d.ts.map +0 -1
  710. package/script/state/plugin.d.ts +0 -17
  711. package/script/state/plugin.d.ts.map +0 -1
  712. package/script/state/plugin.js +0 -36
  713. package/script/state/profile.d.ts +0 -16
  714. package/script/state/profile.d.ts.map +0 -1
  715. package/script/state/profile.js +0 -17
  716. package/script/state/settings.d.ts +0 -175
  717. package/script/state/settings.d.ts.map +0 -1
  718. package/script/state/settings.js +0 -234
  719. package/script/state/settings_by_app.d.ts.map +0 -1
  720. package/script/state/settings_by_monitor.d.ts +0 -43
  721. package/script/state/settings_by_monitor.d.ts.map +0 -1
  722. package/script/state/settings_by_monitor.js +0 -56
  723. package/script/state/theme.d.ts +0 -31
  724. package/script/state/theme.d.ts.map +0 -1
  725. package/script/state/weg_items.d.ts +0 -36
  726. package/script/state/weg_items.d.ts.map +0 -1
  727. package/script/state/weg_items.js +0 -11
  728. package/script/state/widget.d.ts +0 -4
  729. package/script/state/widget.d.ts.map +0 -1
  730. package/script/state/widget.js +0 -7
  731. package/script/state/wm_layout.d.ts.map +0 -1
  732. package/script/system_state/index.d.ts +0 -19
  733. package/script/system_state/index.d.ts.map +0 -1
  734. package/script/utils/hooks.d.ts +0 -2
  735. package/script/utils/hooks.d.ts.map +0 -1
  736. package/script/utils/hooks.js +0 -44
  737. package/script/utils/index.d.ts.map +0 -1
  738. package/script/utils/layered_hitbox.d.ts.map +0 -1
  739. /package/esm/{state/theme.js → gen/types/AhkVarList.js} +0 -0
  740. /package/esm/{state → src/state}/placeholder.d.ts +0 -0
  741. /package/esm/{state → src/state}/placeholder.js +0 -0
  742. /package/esm/{state → src/state}/settings_by_app.d.ts +0 -0
  743. /package/esm/{state → src/state}/settings_by_app.js +0 -0
  744. /package/esm/{state → src/state}/wm_layout.d.ts +0 -0
  745. /package/esm/{state → src/state}/wm_layout.js +0 -0
  746. /package/esm/{utils → src/utils}/layered_hitbox.d.ts +0 -0
  747. /package/script/{state/theme.js → gen/types/AhkVarList.js} +0 -0
  748. /package/script/{state → src/state}/placeholder.d.ts +0 -0
  749. /package/script/{state → src/state}/placeholder.js +0 -0
  750. /package/script/{state → src/state}/settings_by_app.d.ts +0 -0
  751. /package/script/{state → src/state}/settings_by_app.js +0 -0
  752. /package/script/{state → src/state}/wm_layout.d.ts +0 -0
  753. /package/script/{state → src/state}/wm_layout.js +0 -0
  754. /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