@accelint/map-toolkit 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/CHANGELOG.md +52 -24
  2. package/README.md +3 -0
  3. package/catalog-info.yaml +6 -7
  4. package/dist/_virtual/rolldown_runtime.js +22 -0
  5. package/dist/camera/events.d.ts +15 -0
  6. package/dist/camera/events.js +29 -0
  7. package/dist/camera/events.js.map +1 -0
  8. package/dist/camera/index.d.ts +16 -0
  9. package/dist/camera/index.js +17 -0
  10. package/dist/camera/types.d.ts +84 -0
  11. package/dist/camera/types.js +12 -0
  12. package/dist/camera/use-camera-state.d.ts +153 -0
  13. package/dist/camera/use-camera-state.js +419 -0
  14. package/dist/camera/use-camera-state.js.map +1 -0
  15. package/dist/cursor-coordinates/use-cursor-coordinates.js +1 -1
  16. package/dist/deckgl/base-map/constants.d.ts +6 -1
  17. package/dist/deckgl/base-map/constants.js +6 -1
  18. package/dist/deckgl/base-map/constants.js.map +1 -1
  19. package/dist/deckgl/base-map/controls.d.ts +34 -0
  20. package/dist/deckgl/base-map/controls.js +50 -0
  21. package/dist/deckgl/base-map/controls.js.map +1 -0
  22. package/dist/deckgl/base-map/events.d.ts +4 -0
  23. package/dist/deckgl/base-map/events.js +5 -1
  24. package/dist/deckgl/base-map/events.js.map +1 -1
  25. package/dist/deckgl/base-map/index.d.ts +8 -23
  26. package/dist/deckgl/base-map/index.js +82 -42
  27. package/dist/deckgl/base-map/index.js.map +1 -1
  28. package/dist/deckgl/base-map/provider.d.ts +2 -2
  29. package/dist/deckgl/base-map/types.d.ts +43 -2
  30. package/dist/deckgl/index.d.ts +5 -4
  31. package/dist/deckgl/index.js +2 -1
  32. package/dist/deckgl/saved-viewports/index.d.ts +32 -0
  33. package/dist/deckgl/saved-viewports/index.js +52 -0
  34. package/dist/deckgl/saved-viewports/index.js.map +1 -0
  35. package/dist/deckgl/saved-viewports/storage.d.ts +21 -0
  36. package/dist/deckgl/saved-viewports/storage.js +39 -0
  37. package/dist/deckgl/saved-viewports/storage.js.map +1 -0
  38. package/dist/maplibre/hooks/use-maplibre.d.ts +2 -2
  39. package/dist/maplibre/hooks/use-maplibre.js +2 -2
  40. package/dist/maplibre/hooks/use-maplibre.js.map +1 -1
  41. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/assert.js +21 -0
  42. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/assert.js.map +1 -0
  43. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/fit-bounds.js +63 -0
  44. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/fit-bounds.js.map +1 -0
  45. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/fly-to-viewport.js +14 -0
  46. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/get-bounds.js +20 -0
  47. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/get-bounds.js.map +1 -0
  48. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/index.js +19 -0
  49. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/math-utils.js +25 -0
  50. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/math-utils.js.map +1 -0
  51. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/normalize-viewport-props.js +14 -0
  52. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/web-mercator-utils.js +59 -0
  53. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/web-mercator-utils.js.map +1 -0
  54. package/dist/node_modules/.pnpm/@math.gl_web-mercator@4.1.0/node_modules/@math.gl/web-mercator/dist/web-mercator-viewport.js +16 -0
  55. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/attribution-control.js +29 -0
  56. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/attribution-control.js.map +1 -0
  57. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/fullscreen-control.js +29 -0
  58. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/fullscreen-control.js.map +1 -0
  59. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/geolocate-control.js +54 -0
  60. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/geolocate-control.js.map +1 -0
  61. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/layer.js +15 -0
  62. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/logo-control.js +29 -0
  63. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/logo-control.js.map +1 -0
  64. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/map.js +91 -0
  65. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/map.js.map +1 -0
  66. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/marker.js +88 -0
  67. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/marker.js.map +1 -0
  68. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/navigation-control.js +29 -0
  69. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/navigation-control.js.map +1 -0
  70. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/popup.js +69 -0
  71. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/popup.js.map +1 -0
  72. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/scale-control.js +35 -0
  73. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/scale-control.js.map +1 -0
  74. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/source.js +15 -0
  75. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/terrain-control.js +29 -0
  76. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/terrain-control.js.map +1 -0
  77. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/use-control.js +40 -0
  78. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/use-control.js.map +1 -0
  79. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/use-map.js +23 -0
  80. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/use-map.js.map +1 -0
  81. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/index.js +27 -0
  82. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/maplibre/create-ref.js +57 -0
  83. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/maplibre/create-ref.js.map +1 -0
  84. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/maplibre/maplibre.js +343 -0
  85. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/maplibre/maplibre.js.map +1 -0
  86. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/apply-react-style.js +28 -0
  87. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/apply-react-style.js.map +1 -0
  88. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/compare-class-names.js +31 -0
  89. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/compare-class-names.js.map +1 -0
  90. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/deep-equal.js +57 -0
  91. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/deep-equal.js.map +1 -0
  92. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/set-globals.js +30 -0
  93. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/set-globals.js.map +1 -0
  94. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js +53 -0
  95. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js.map +1 -0
  96. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/transform.js +52 -0
  97. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/transform.js.map +1 -0
  98. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/use-isomorphic-layout-effect.js +22 -0
  99. package/dist/node_modules/.pnpm/@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/utils/use-isomorphic-layout-effect.js.map +1 -0
  100. package/dist/node_modules/.pnpm/immer@10.2.0/node_modules/immer/dist/immer.js +812 -0
  101. package/dist/node_modules/.pnpm/immer@10.2.0/node_modules/immer/dist/immer.js.map +1 -0
  102. package/dist/node_modules/.pnpm/radashi@12.7.1/node_modules/radashi/dist/radashi.js +35 -0
  103. package/dist/node_modules/.pnpm/radashi@12.7.1/node_modules/radashi/dist/radashi.js.map +1 -0
  104. package/dist/node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.development.js +195 -0
  105. package/dist/node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.development.js.map +1 -0
  106. package/dist/node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.production.js +76 -0
  107. package/dist/node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.production.js.map +1 -0
  108. package/dist/node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/index.js +39 -0
  109. package/dist/node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/index.js.map +1 -0
  110. package/dist/node_modules/.pnpm/react-map-gl@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-map-gl/dist/maplibre.js +16 -0
  111. package/dist/node_modules/.pnpm/zustand@5.0.9_@types_react@19.2.7_immer@10.2.0_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/middleware/immer.js +27 -0
  112. package/dist/node_modules/.pnpm/zustand@5.0.9_@types_react@19.2.7_immer@10.2.0_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/middleware/immer.js.map +1 -0
  113. package/dist/node_modules/.pnpm/zustand@5.0.9_@types_react@19.2.7_immer@10.2.0_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/vanilla.js +45 -0
  114. package/dist/node_modules/.pnpm/zustand@5.0.9_@types_react@19.2.7_immer@10.2.0_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/vanilla.js.map +1 -0
  115. package/dist/packages/hotkey-manager/dist/actions/register-hotkey/index.js +78 -0
  116. package/dist/packages/hotkey-manager/dist/actions/register-hotkey/index.js.map +1 -0
  117. package/dist/packages/hotkey-manager/dist/constants.js +47 -0
  118. package/dist/packages/hotkey-manager/dist/constants.js.map +1 -0
  119. package/dist/packages/hotkey-manager/dist/enums/keycode.js +130 -0
  120. package/dist/packages/hotkey-manager/dist/enums/keycode.js.map +1 -0
  121. package/dist/packages/hotkey-manager/dist/lib/is-client/index.js +22 -0
  122. package/dist/packages/hotkey-manager/dist/lib/is-client/index.js.map +1 -0
  123. package/dist/packages/hotkey-manager/dist/lib/is-mac/index.js +24 -0
  124. package/dist/packages/hotkey-manager/dist/lib/is-mac/index.js.map +1 -0
  125. package/dist/packages/hotkey-manager/dist/lib/key-to-id/index.js +39 -0
  126. package/dist/packages/hotkey-manager/dist/lib/key-to-id/index.js.map +1 -0
  127. package/dist/packages/hotkey-manager/dist/lib/key-to-string/index.js +27 -0
  128. package/dist/packages/hotkey-manager/dist/lib/key-to-string/index.js.map +1 -0
  129. package/dist/packages/hotkey-manager/dist/stores/hotkey-store/index.js +95 -0
  130. package/dist/packages/hotkey-manager/dist/stores/hotkey-store/index.js.map +1 -0
  131. package/package.json +98 -85
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.js";
15
+
16
+ //#region ../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.production.js
17
+ /**
18
+ * @license React
19
+ * react-dom.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */
26
+ var require_react_dom_production = /* @__PURE__ */ __commonJSMin(((exports) => {
27
+ var React = __require("react");
28
+ function formatProdErrorMessage(code) {
29
+ var url = "https://react.dev/errors/" + code;
30
+ if (1 < arguments.length) {
31
+ url += "?args[]=" + encodeURIComponent(arguments[1]);
32
+ for (var i = 2; i < arguments.length; i++) url += "&args[]=" + encodeURIComponent(arguments[i]);
33
+ }
34
+ return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
35
+ }
36
+ function noop() {}
37
+ var Internals = {
38
+ d: {
39
+ f: noop,
40
+ r: function() {
41
+ throw Error(formatProdErrorMessage(522));
42
+ },
43
+ D: noop,
44
+ C: noop,
45
+ L: noop,
46
+ m: noop,
47
+ X: noop,
48
+ S: noop,
49
+ M: noop
50
+ },
51
+ p: 0,
52
+ findDOMNode: null
53
+ }, REACT_PORTAL_TYPE = Symbol.for("react.portal");
54
+ function createPortal$1(children, containerInfo, implementation) {
55
+ var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
56
+ return {
57
+ $$typeof: REACT_PORTAL_TYPE,
58
+ key: null == key ? null : "" + key,
59
+ children,
60
+ containerInfo,
61
+ implementation
62
+ };
63
+ }
64
+ var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
65
+ exports.createPortal = function(children, container) {
66
+ var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
67
+ if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType) throw Error(formatProdErrorMessage(299));
68
+ return createPortal$1(children, container, null, key);
69
+ };
70
+ }));
71
+
72
+ //#endregion
73
+ export default require_react_dom_production();
74
+
75
+ export { require_react_dom_production };
76
+ //# sourceMappingURL=react-dom.production.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-dom.production.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.production.js"],"sourcesContent":["/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction noop() {}\nvar Internals = {\n d: {\n f: noop,\n r: function () {\n throw Error(formatProdErrorMessage(522));\n },\n D: noop,\n C: noop,\n L: noop,\n m: noop,\n X: noop,\n S: noop,\n M: noop\n },\n p: 0,\n findDOMNode: null\n },\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\");\nfunction createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nvar ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nfunction getCrossOriginStringAs(as, input) {\n if (\"font\" === as) return \"\";\n if (\"string\" === typeof input)\n return \"use-credentials\" === input ? input : \"\";\n}\nexports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n Internals;\nexports.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n )\n throw Error(formatProdErrorMessage(299));\n return createPortal$1(children, container, null, key);\n};\nexports.flushSync = function (fn) {\n var previousTransition = ReactSharedInternals.T,\n previousUpdatePriority = Internals.p;\n try {\n if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();\n } finally {\n (ReactSharedInternals.T = previousTransition),\n (Internals.p = previousUpdatePriority),\n Internals.d.f();\n }\n};\nexports.preconnect = function (href, options) {\n \"string\" === typeof href &&\n (options\n ? ((options = options.crossOrigin),\n (options =\n \"string\" === typeof options\n ? \"use-credentials\" === options\n ? options\n : \"\"\n : void 0))\n : (options = null),\n Internals.d.C(href, options));\n};\nexports.prefetchDNS = function (href) {\n \"string\" === typeof href && Internals.d.D(href);\n};\nexports.preinit = function (href, options) {\n if (\"string\" === typeof href && options && \"string\" === typeof options.as) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n integrity =\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n fetchPriority =\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0;\n \"style\" === as\n ? Internals.d.S(\n href,\n \"string\" === typeof options.precedence ? options.precedence : void 0,\n {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority\n }\n )\n : \"script\" === as &&\n Internals.d.X(href, {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n};\nexports.preinitModule = function (href, options) {\n if (\"string\" === typeof href)\n if (\"object\" === typeof options && null !== options) {\n if (null == options.as || \"script\" === options.as) {\n var crossOrigin = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n );\n Internals.d.M(href, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n } else null == options && Internals.d.M(href);\n};\nexports.preload = function (href, options) {\n if (\n \"string\" === typeof href &&\n \"object\" === typeof options &&\n null !== options &&\n \"string\" === typeof options.as\n ) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);\n Internals.d.L(href, as, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n type: \"string\" === typeof options.type ? options.type : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0,\n referrerPolicy:\n \"string\" === typeof options.referrerPolicy\n ? options.referrerPolicy\n : void 0,\n imageSrcSet:\n \"string\" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,\n imageSizes:\n \"string\" === typeof options.imageSizes ? options.imageSizes : void 0,\n media: \"string\" === typeof options.media ? options.media : void 0\n });\n }\n};\nexports.preloadModule = function (href, options) {\n if (\"string\" === typeof href)\n if (options) {\n var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);\n Internals.d.m(href, {\n as:\n \"string\" === typeof options.as && \"script\" !== options.as\n ? options.as\n : void 0,\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0\n });\n } else Internals.d.m(href);\n};\nexports.requestFormReset = function (form) {\n Internals.d.r(form);\n};\nexports.unstable_batchedUpdates = function (fn, a) {\n return fn(a);\n};\nexports.useFormState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useFormState(action, initialState, permalink);\n};\nexports.useFormStatus = function () {\n return ReactSharedInternals.H.useHostTransitionStatus();\n};\nexports.version = \"19.2.3\";\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;CAWA,IAAI,kBAAgB,QAAQ;CAC5B,SAAS,uBAAuB,MAAM;EACpC,IAAI,MAAM,8BAA8B;AACxC,MAAI,IAAI,UAAU,QAAQ;AACxB,UAAO,aAAa,mBAAmB,UAAU,GAAG;AACpD,QAAK,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,IACpC,QAAO,aAAa,mBAAmB,UAAU,GAAG;;AAExD,SACE,2BACA,OACA,aACA,MACA;;CAGJ,SAAS,OAAO;CAChB,IAAI,YAAY;EACZ,GAAG;GACD,GAAG;GACH,GAAG,WAAY;AACb,UAAM,MAAM,uBAAuB,IAAI,CAAC;;GAE1C,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACJ;EACD,GAAG;EACH,aAAa;EACd,EACD,oBAAoB,OAAO,IAAI,eAAe;CAChD,SAAS,eAAe,UAAU,eAAe,gBAAgB;EAC/D,IAAI,MACF,IAAI,UAAU,UAAU,KAAK,MAAM,UAAU,KAAK,UAAU,KAAK;AACnE,SAAO;GACL,UAAU;GACV,KAAK,QAAQ,MAAM,OAAO,KAAK;GACrB;GACK;GACC;GACjB;;CAEH,IAAI,uBACF,MAAM;AAQR,SAAQ,eAAe,SAAU,UAAU,WAAW;EACpD,IAAI,MACF,IAAI,UAAU,UAAU,KAAK,MAAM,UAAU,KAAK,UAAU,KAAK;AACnE,MACE,CAAC,aACA,MAAM,UAAU,YACf,MAAM,UAAU,YAChB,OAAO,UAAU,SAEnB,OAAM,MAAM,uBAAuB,IAAI,CAAC;AAC1C,SAAO,eAAe,UAAU,WAAW,MAAM,IAAI"}
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
15
+ import { require_react_dom_production } from "./cjs/react-dom.production.js";
16
+ import { require_react_dom_development } from "./cjs/react-dom.development.js";
17
+
18
+ //#region ../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/index.js
19
+ var require_react_dom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20
+ function checkDCE() {
21
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") return;
22
+ if (process.env.NODE_ENV !== "production") throw new Error("^_^");
23
+ try {
24
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
25
+ } catch (err) {
26
+ console.error(err);
27
+ }
28
+ }
29
+ if (process.env.NODE_ENV === "production") {
30
+ checkDCE();
31
+ module.exports = require_react_dom_production();
32
+ } else module.exports = require_react_dom_development();
33
+ }));
34
+
35
+ //#endregion
36
+ export default require_react_dom();
37
+
38
+ export { require_react_dom };
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/index.js"],"sourcesContent":["'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;CAEA,SAAS,WAAW;AAElB,MACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,aAAa,WAEnD;AAEF,MAAI,QAAQ,IAAI,aAAa,aAQ3B,OAAM,IAAI,MAAM,MAAM;AAExB,MAAI;AAEF,kCAA+B,SAAS,SAAS;WAC1C,KAAK;AAGZ,WAAQ,MAAM,IAAI;;;AAItB,KAAI,QAAQ,IAAI,aAAa,cAAc;AAGzC,YAAU;AACV,SAAO;OAEP,QAAO"}
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { Map } from "../../../../@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/map.js";
15
+ import { useControl } from "../../../../@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/components/use-control.js";
16
+ import "../../../../@vis.gl_react-maplibre@8.1.0_maplibre-gl@5.15.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@vis.gl/react-maplibre/dist/index.js";
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { produce } from "../../../../../immer@10.2.0/node_modules/immer/dist/immer.js";
15
+
16
+ //#region ../../node_modules/.pnpm/zustand@5.0.9_@types+react@19.2.7_immer@10.2.0_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/middleware/immer.mjs
17
+ const immerImpl = (initializer) => (set, get, store) => {
18
+ store.setState = (updater, replace, ...args) => {
19
+ return set(typeof updater === "function" ? produce(updater) : updater, replace, ...args);
20
+ };
21
+ return initializer(store.setState, get, store);
22
+ };
23
+ const immer = immerImpl;
24
+
25
+ //#endregion
26
+ export { immer };
27
+ //# sourceMappingURL=immer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"immer.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/zustand@5.0.9_@types+react@19.2.7_immer@10.2.0_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/middleware/immer.mjs"],"sourcesContent":["import { produce } from 'immer';\n\nconst immerImpl = (initializer) => (set, get, store) => {\n store.setState = (updater, replace, ...args) => {\n const nextState = typeof updater === \"function\" ? produce(updater) : updater;\n return set(nextState, replace, ...args);\n };\n return initializer(store.setState, get, store);\n};\nconst immer = immerImpl;\n\nexport { immer };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;AAEA,MAAM,aAAa,iBAAiB,KAAK,KAAK,UAAU;AACtD,OAAM,YAAY,SAAS,SAAS,GAAG,SAAS;AAE9C,SAAO,IADW,OAAO,YAAY,aAAa,QAAQ,QAAQ,GAAG,SAC/C,SAAS,GAAG,KAAK;;AAEzC,QAAO,YAAY,MAAM,UAAU,KAAK,MAAM;;AAEhD,MAAM,QAAQ"}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ //#region ../../node_modules/.pnpm/zustand@5.0.9_@types+react@19.2.7_immer@10.2.0_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/vanilla.mjs
15
+ const createStoreImpl = (createState) => {
16
+ let state;
17
+ const listeners = /* @__PURE__ */ new Set();
18
+ const setState = (partial, replace) => {
19
+ const nextState = typeof partial === "function" ? partial(state) : partial;
20
+ if (!Object.is(nextState, state)) {
21
+ const previousState = state;
22
+ state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
23
+ listeners.forEach((listener) => listener(state, previousState));
24
+ }
25
+ };
26
+ const getState = () => state;
27
+ const getInitialState = () => initialState;
28
+ const subscribe = (listener) => {
29
+ listeners.add(listener);
30
+ return () => listeners.delete(listener);
31
+ };
32
+ const api = {
33
+ setState,
34
+ getState,
35
+ getInitialState,
36
+ subscribe
37
+ };
38
+ const initialState = state = createState(setState, getState, api);
39
+ return api;
40
+ };
41
+ const createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
42
+
43
+ //#endregion
44
+ export { createStore };
45
+ //# sourceMappingURL=vanilla.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vanilla.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/zustand@5.0.9_@types+react@19.2.7_immer@10.2.0_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/vanilla.mjs"],"sourcesContent":["const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);\n\nexport { createStore };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;AAAA,MAAM,mBAAmB,gBAAgB;CACvC,IAAI;CACJ,MAAM,4BAA4B,IAAI,KAAK;CAC3C,MAAM,YAAY,SAAS,YAAY;EACrC,MAAM,YAAY,OAAO,YAAY,aAAa,QAAQ,MAAM,GAAG;AACnE,MAAI,CAAC,OAAO,GAAG,WAAW,MAAM,EAAE;GAChC,MAAM,gBAAgB;AACtB,YAAS,WAAW,OAAO,UAAU,OAAO,cAAc,YAAY,cAAc,QAAQ,YAAY,OAAO,OAAO,EAAE,EAAE,OAAO,UAAU;AAC3I,aAAU,SAAS,aAAa,SAAS,OAAO,cAAc,CAAC;;;CAGnE,MAAM,iBAAiB;CACvB,MAAM,wBAAwB;CAC9B,MAAM,aAAa,aAAa;AAC9B,YAAU,IAAI,SAAS;AACvB,eAAa,UAAU,OAAO,SAAS;;CAEzC,MAAM,MAAM;EAAE;EAAU;EAAU;EAAiB;EAAW;CAC9D,MAAM,eAAe,QAAQ,YAAY,UAAU,UAAU,IAAI;AACjE,QAAO;;AAET,MAAM,gBAAgB,gBAAgB,cAAc,gBAAgB,YAAY,GAAG"}
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { hotkeyStore } from "../../stores/hotkey-store/index.js";
15
+ import { keyToId } from "../../lib/key-to-id/index.js";
16
+ import { FORCE_BOUND, HOTKEY_EXTRA_DEFAULTS, KEY_COMBINATION_DEFAULTS } from "../../constants.js";
17
+ import { castArray, uid } from "../../../../../node_modules/.pnpm/radashi@12.7.1/node_modules/radashi/dist/radashi.js";
18
+ import { useEffect } from "react";
19
+
20
+ //#region ../hotkey-manager/dist/actions/register-hotkey/index.js
21
+ /**
22
+ * Registers a hotkey and returns a hook to activate and deactivate it.
23
+ *
24
+ * @param options The hotkey options.
25
+ * @returns The hotkey hook.
26
+ */
27
+ function registerHotkey(options) {
28
+ const config = {
29
+ ...HOTKEY_EXTRA_DEFAULTS,
30
+ ...options,
31
+ id: options.id ?? uid(7),
32
+ key: castArray(options.key).map((key) => {
33
+ const baseKey = {
34
+ id: "",
35
+ ...KEY_COMBINATION_DEFAULTS,
36
+ ...key
37
+ };
38
+ baseKey.id = keyToId(baseKey);
39
+ return baseKey;
40
+ })
41
+ };
42
+ hotkeyStore.getState().registerHotkey(config);
43
+ const activate = (force = false) => {
44
+ const activationSymbol = force ? FORCE_BOUND : Symbol();
45
+ hotkeyStore.getState().activateHotkey(config.id, activationSymbol);
46
+ return () => deactivate(activationSymbol);
47
+ };
48
+ const deactivate = (activationSymbol) => {
49
+ if (activationSymbol === FORCE_BOUND) {
50
+ hotkeyStore.getState().forceDeactivateHotkey(config.id);
51
+ return;
52
+ }
53
+ hotkeyStore.getState().deactivateHotkey(config.id, activationSymbol);
54
+ };
55
+ const isActive = () => !!hotkeyStore.getState().hotkeyActivations.get(config.id);
56
+ const useHotkey = () => useEffect(() => activate(), []);
57
+ Object.defineProperties(useHotkey, {
58
+ id: {
59
+ get: () => config.id,
60
+ enumerable: true
61
+ },
62
+ config: {
63
+ get: () => config,
64
+ enumerable: true
65
+ },
66
+ forceBind: { value: () => activate(true) },
67
+ forceUnbind: { value: () => deactivate(FORCE_BOUND) },
68
+ isBound: {
69
+ get: isActive,
70
+ enumerable: true
71
+ }
72
+ });
73
+ return useHotkey;
74
+ }
75
+
76
+ //#endregion
77
+ export { registerHotkey };
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../hotkey-manager/dist/actions/register-hotkey/index.js"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n\nimport { FORCE_BOUND, HOTKEY_EXTRA_DEFAULTS, KEY_COMBINATION_DEFAULTS } from \"../../constants.js\";\nimport { hotkeyStore } from \"../../stores/hotkey-store/index.js\";\nimport { keyToId } from \"../../lib/key-to-id/index.js\";\nimport { castArray, uid } from \"radashi\";\nimport { useEffect } from \"react\";\n\n//#region src/actions/register-hotkey/index.ts\n/**\n* Registers a hotkey and returns a hook to activate and deactivate it.\n*\n* @param options The hotkey options.\n* @returns The hotkey hook.\n*/\nfunction registerHotkey(options) {\n\tconst config = {\n\t\t...HOTKEY_EXTRA_DEFAULTS,\n\t\t...options,\n\t\tid: options.id ?? uid(7),\n\t\tkey: castArray(options.key).map((key) => {\n\t\t\tconst baseKey = {\n\t\t\t\tid: \"\",\n\t\t\t\t...KEY_COMBINATION_DEFAULTS,\n\t\t\t\t...key\n\t\t\t};\n\t\t\tbaseKey.id = keyToId(baseKey);\n\t\t\treturn baseKey;\n\t\t})\n\t};\n\thotkeyStore.getState().registerHotkey(config);\n\tconst activate = (force = false) => {\n\t\tconst activationSymbol = force ? FORCE_BOUND : Symbol();\n\t\thotkeyStore.getState().activateHotkey(config.id, activationSymbol);\n\t\treturn () => deactivate(activationSymbol);\n\t};\n\tconst deactivate = (activationSymbol) => {\n\t\tif (activationSymbol === FORCE_BOUND) {\n\t\t\thotkeyStore.getState().forceDeactivateHotkey(config.id);\n\t\t\treturn;\n\t\t}\n\t\thotkeyStore.getState().deactivateHotkey(config.id, activationSymbol);\n\t};\n\tconst isActive = () => !!hotkeyStore.getState().hotkeyActivations.get(config.id);\n\tconst useHotkey = () => useEffect(() => activate(), []);\n\tObject.defineProperties(useHotkey, {\n\t\tid: {\n\t\t\tget: () => config.id,\n\t\t\tenumerable: true\n\t\t},\n\t\tconfig: {\n\t\t\tget: () => config,\n\t\t\tenumerable: true\n\t\t},\n\t\tforceBind: { value: () => activate(true) },\n\t\tforceUnbind: { value: () => deactivate(FORCE_BOUND) },\n\t\tisBound: {\n\t\t\tget: isActive,\n\t\t\tenumerable: true\n\t\t}\n\t});\n\treturn useHotkey;\n}\n\n//#endregion\nexport { registerHotkey };\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,SAAS,eAAe,SAAS;CAChC,MAAM,SAAS;EACd,GAAG;EACH,GAAG;EACH,IAAI,QAAQ,MAAM,IAAI,EAAE;EACxB,KAAK,UAAU,QAAQ,IAAI,CAAC,KAAK,QAAQ;GACxC,MAAM,UAAU;IACf,IAAI;IACJ,GAAG;IACH,GAAG;IACH;AACD,WAAQ,KAAK,QAAQ,QAAQ;AAC7B,UAAO;IACN;EACF;AACD,aAAY,UAAU,CAAC,eAAe,OAAO;CAC7C,MAAM,YAAY,QAAQ,UAAU;EACnC,MAAM,mBAAmB,QAAQ,cAAc,QAAQ;AACvD,cAAY,UAAU,CAAC,eAAe,OAAO,IAAI,iBAAiB;AAClE,eAAa,WAAW,iBAAiB;;CAE1C,MAAM,cAAc,qBAAqB;AACxC,MAAI,qBAAqB,aAAa;AACrC,eAAY,UAAU,CAAC,sBAAsB,OAAO,GAAG;AACvD;;AAED,cAAY,UAAU,CAAC,iBAAiB,OAAO,IAAI,iBAAiB;;CAErE,MAAM,iBAAiB,CAAC,CAAC,YAAY,UAAU,CAAC,kBAAkB,IAAI,OAAO,GAAG;CAChF,MAAM,kBAAkB,gBAAgB,UAAU,EAAE,EAAE,CAAC;AACvD,QAAO,iBAAiB,WAAW;EAClC,IAAI;GACH,WAAW,OAAO;GAClB,YAAY;GACZ;EACD,QAAQ;GACP,WAAW;GACX,YAAY;GACZ;EACD,WAAW,EAAE,aAAa,SAAS,KAAK,EAAE;EAC1C,aAAa,EAAE,aAAa,WAAW,YAAY,EAAE;EACrD,SAAS;GACR,KAAK;GACL,YAAY;GACZ;EACD,CAAC;AACF,QAAO"}
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ //#region ../hotkey-manager/dist/constants.js
15
+ /**
16
+ * Special symbol marking a force bound hotkey.
17
+ *
18
+ * @internal
19
+ */
20
+ const FORCE_BOUND = Symbol("FORCE_BOUND");
21
+ /**
22
+ * Defaults for the hotkey extras.
23
+ *
24
+ * @internal
25
+ */
26
+ const HOTKEY_EXTRA_DEFAULTS = {
27
+ heldThresholdMs: 1e3,
28
+ alwaysTriggerKeyUp: false,
29
+ ignoreConflicts: false,
30
+ allowInputFields: false
31
+ };
32
+ /**
33
+ * Default values for key combinations.
34
+ *
35
+ * @internal
36
+ */
37
+ const KEY_COMBINATION_DEFAULTS = {
38
+ alt: false,
39
+ ctrl: false,
40
+ meta: false,
41
+ shift: false,
42
+ autoMacStyle: false
43
+ };
44
+
45
+ //#endregion
46
+ export { FORCE_BOUND, HOTKEY_EXTRA_DEFAULTS, KEY_COMBINATION_DEFAULTS };
47
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","names":[],"sources":["../../../../../hotkey-manager/dist/constants.js"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n\n//#region src/constants.ts\n/**\n* Special symbol marking a force bound hotkey.\n*\n* @internal\n*/\nconst FORCE_BOUND = Symbol(\"FORCE_BOUND\");\n/**\n* Defaults for the hotkey extras.\n*\n* @internal\n*/\nconst HOTKEY_EXTRA_DEFAULTS = {\n\theldThresholdMs: 1e3,\n\talwaysTriggerKeyUp: false,\n\tignoreConflicts: false,\n\tallowInputFields: false\n};\n/**\n* Default values for key combinations.\n*\n* @internal\n*/\nconst KEY_COMBINATION_DEFAULTS = {\n\talt: false,\n\tctrl: false,\n\tmeta: false,\n\tshift: false,\n\tautoMacStyle: false\n};\n\n//#endregion\nexport { FORCE_BOUND, HOTKEY_EXTRA_DEFAULTS, KEY_COMBINATION_DEFAULTS };\n//# sourceMappingURL=constants.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,MAAM,cAAc,OAAO,cAAc;;;;;;AAMzC,MAAM,wBAAwB;CAC7B,iBAAiB;CACjB,oBAAoB;CACpB,iBAAiB;CACjB,kBAAkB;CAClB;;;;;;AAMD,MAAM,2BAA2B;CAChC,KAAK;CACL,MAAM;CACN,MAAM;CACN,OAAO;CACP,cAAc;CACd"}
@@ -0,0 +1,130 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ //#region ../hotkey-manager/dist/enums/keycode.js
15
+ /**
16
+ * Common keycodes for the {@link KeyboardEvent}.
17
+ *
18
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values | Keyboard event code values}
19
+ */
20
+ const Keycode = Object.freeze({
21
+ KeyA: "KeyA",
22
+ KeyB: "KeyB",
23
+ KeyC: "KeyC",
24
+ KeyD: "KeyD",
25
+ KeyE: "KeyE",
26
+ KeyF: "KeyF",
27
+ KeyG: "KeyG",
28
+ KeyH: "KeyH",
29
+ KeyI: "KeyI",
30
+ KeyJ: "KeyJ",
31
+ KeyK: "KeyK",
32
+ KeyL: "KeyL",
33
+ KeyM: "KeyM",
34
+ KeyN: "KeyN",
35
+ KeyO: "KeyO",
36
+ KeyP: "KeyP",
37
+ KeyQ: "KeyQ",
38
+ KeyR: "KeyR",
39
+ KeyS: "KeyS",
40
+ KeyT: "KeyT",
41
+ KeyU: "KeyU",
42
+ KeyV: "KeyV",
43
+ KeyW: "KeyW",
44
+ KeyX: "KeyX",
45
+ KeyY: "KeyY",
46
+ KeyZ: "KeyZ",
47
+ Digit0: "Digit0",
48
+ Digit1: "Digit1",
49
+ Digit2: "Digit2",
50
+ Digit3: "Digit3",
51
+ Digit4: "Digit4",
52
+ Digit5: "Digit5",
53
+ Digit6: "Digit6",
54
+ Digit7: "Digit7",
55
+ Digit8: "Digit8",
56
+ Digit9: "Digit9",
57
+ Slash: "Slash",
58
+ IntlBackslash: "IntlBackslash",
59
+ Equal: "Equal",
60
+ Minus: "Minus",
61
+ BracketRight: "BracketRight",
62
+ BracketLeft: "BracketLeft",
63
+ Enter: "Enter",
64
+ Quote: "Quote",
65
+ Semicolon: "Semicolon",
66
+ Tab: "Tab",
67
+ Space: "Space",
68
+ Backquote: "Backquote",
69
+ Backspace: "Backspace",
70
+ Escape: "Escape",
71
+ CapsLock: "CapsLock",
72
+ MetaLeft: "MetaLeft",
73
+ MetaRight: "MetaRight",
74
+ AltLeft: "AltLeft",
75
+ AltRight: "AltRight",
76
+ ControlLeft: "ControlLeft",
77
+ ControlRight: "ControlRight",
78
+ ShiftLeft: "ShiftLeft",
79
+ ShiftRight: "ShiftRight",
80
+ NumpadDecimal: "NumpadDecimal",
81
+ NumpadMultiply: "NumpadMultiply",
82
+ NumpadAdd: "NumpadAdd",
83
+ NumLock: "NumLock",
84
+ AudioVolumeUp: "AudioVolumeUp",
85
+ AudioVolumeDown: "AudioVolumeDown",
86
+ AudioVolumeMute: "AudioVolumeMute",
87
+ NumpadDivide: "NumpadDivide",
88
+ NumpadEnter: "NumpadEnter",
89
+ NumpadSubtract: "NumpadSubtract",
90
+ NumpadEqual: "NumpadEqual",
91
+ Numpad0: "Numpad0",
92
+ Numpad1: "Numpad1",
93
+ Numpad2: "Numpad2",
94
+ Numpad3: "Numpad3",
95
+ Numpad4: "Numpad4",
96
+ Numpad5: "Numpad5",
97
+ Numpad6: "Numpad6",
98
+ Numpad7: "Numpad7",
99
+ Numpad8: "Numpad8",
100
+ Numpad9: "Numpad9",
101
+ IntlYen: "IntlYen",
102
+ IntlRo: "IntlRo",
103
+ NumpadComma: "NumpadComma",
104
+ F1: "F1",
105
+ F2: "F2",
106
+ F3: "F3",
107
+ F4: "F4",
108
+ F5: "F5",
109
+ F6: "F6",
110
+ F7: "F7",
111
+ F8: "F8",
112
+ F9: "F9",
113
+ F10: "F10",
114
+ F11: "F11",
115
+ F12: "F12",
116
+ Insert: "Insert",
117
+ Home: "Home",
118
+ PageUp: "PageUp",
119
+ Delete: "Delete",
120
+ End: "End",
121
+ PageDown: "PageDown",
122
+ ArrowLeft: "ArrowLeft",
123
+ ArrowRight: "ArrowRight",
124
+ ArrowDown: "ArrowDown",
125
+ ArrowUp: "ArrowUp"
126
+ });
127
+
128
+ //#endregion
129
+ export { Keycode };
130
+ //# sourceMappingURL=keycode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keycode.js","names":[],"sources":["../../../../../../hotkey-manager/dist/enums/keycode.js"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n\n//#region src/enums/keycode.ts\n/**\n* Common keycodes for the {@link KeyboardEvent}.\n*\n* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values | Keyboard event code values}\n*/\nconst Keycode = Object.freeze({\n\tKeyA: \"KeyA\",\n\tKeyB: \"KeyB\",\n\tKeyC: \"KeyC\",\n\tKeyD: \"KeyD\",\n\tKeyE: \"KeyE\",\n\tKeyF: \"KeyF\",\n\tKeyG: \"KeyG\",\n\tKeyH: \"KeyH\",\n\tKeyI: \"KeyI\",\n\tKeyJ: \"KeyJ\",\n\tKeyK: \"KeyK\",\n\tKeyL: \"KeyL\",\n\tKeyM: \"KeyM\",\n\tKeyN: \"KeyN\",\n\tKeyO: \"KeyO\",\n\tKeyP: \"KeyP\",\n\tKeyQ: \"KeyQ\",\n\tKeyR: \"KeyR\",\n\tKeyS: \"KeyS\",\n\tKeyT: \"KeyT\",\n\tKeyU: \"KeyU\",\n\tKeyV: \"KeyV\",\n\tKeyW: \"KeyW\",\n\tKeyX: \"KeyX\",\n\tKeyY: \"KeyY\",\n\tKeyZ: \"KeyZ\",\n\tDigit0: \"Digit0\",\n\tDigit1: \"Digit1\",\n\tDigit2: \"Digit2\",\n\tDigit3: \"Digit3\",\n\tDigit4: \"Digit4\",\n\tDigit5: \"Digit5\",\n\tDigit6: \"Digit6\",\n\tDigit7: \"Digit7\",\n\tDigit8: \"Digit8\",\n\tDigit9: \"Digit9\",\n\tSlash: \"Slash\",\n\tIntlBackslash: \"IntlBackslash\",\n\tEqual: \"Equal\",\n\tMinus: \"Minus\",\n\tBracketRight: \"BracketRight\",\n\tBracketLeft: \"BracketLeft\",\n\tEnter: \"Enter\",\n\tQuote: \"Quote\",\n\tSemicolon: \"Semicolon\",\n\tTab: \"Tab\",\n\tSpace: \"Space\",\n\tBackquote: \"Backquote\",\n\tBackspace: \"Backspace\",\n\tEscape: \"Escape\",\n\tCapsLock: \"CapsLock\",\n\tMetaLeft: \"MetaLeft\",\n\tMetaRight: \"MetaRight\",\n\tAltLeft: \"AltLeft\",\n\tAltRight: \"AltRight\",\n\tControlLeft: \"ControlLeft\",\n\tControlRight: \"ControlRight\",\n\tShiftLeft: \"ShiftLeft\",\n\tShiftRight: \"ShiftRight\",\n\tNumpadDecimal: \"NumpadDecimal\",\n\tNumpadMultiply: \"NumpadMultiply\",\n\tNumpadAdd: \"NumpadAdd\",\n\tNumLock: \"NumLock\",\n\tAudioVolumeUp: \"AudioVolumeUp\",\n\tAudioVolumeDown: \"AudioVolumeDown\",\n\tAudioVolumeMute: \"AudioVolumeMute\",\n\tNumpadDivide: \"NumpadDivide\",\n\tNumpadEnter: \"NumpadEnter\",\n\tNumpadSubtract: \"NumpadSubtract\",\n\tNumpadEqual: \"NumpadEqual\",\n\tNumpad0: \"Numpad0\",\n\tNumpad1: \"Numpad1\",\n\tNumpad2: \"Numpad2\",\n\tNumpad3: \"Numpad3\",\n\tNumpad4: \"Numpad4\",\n\tNumpad5: \"Numpad5\",\n\tNumpad6: \"Numpad6\",\n\tNumpad7: \"Numpad7\",\n\tNumpad8: \"Numpad8\",\n\tNumpad9: \"Numpad9\",\n\tIntlYen: \"IntlYen\",\n\tIntlRo: \"IntlRo\",\n\tNumpadComma: \"NumpadComma\",\n\tF1: \"F1\",\n\tF2: \"F2\",\n\tF3: \"F3\",\n\tF4: \"F4\",\n\tF5: \"F5\",\n\tF6: \"F6\",\n\tF7: \"F7\",\n\tF8: \"F8\",\n\tF9: \"F9\",\n\tF10: \"F10\",\n\tF11: \"F11\",\n\tF12: \"F12\",\n\tInsert: \"Insert\",\n\tHome: \"Home\",\n\tPageUp: \"PageUp\",\n\tDelete: \"Delete\",\n\tEnd: \"End\",\n\tPageDown: \"PageDown\",\n\tArrowLeft: \"ArrowLeft\",\n\tArrowRight: \"ArrowRight\",\n\tArrowDown: \"ArrowDown\",\n\tArrowUp: \"ArrowUp\"\n});\n\n//#endregion\nexport { Keycode };\n//# sourceMappingURL=keycode.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,MAAM,UAAU,OAAO,OAAO;CAC7B,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,OAAO;CACP,eAAe;CACf,OAAO;CACP,OAAO;CACP,cAAc;CACd,aAAa;CACb,OAAO;CACP,OAAO;CACP,WAAW;CACX,KAAK;CACL,OAAO;CACP,WAAW;CACX,WAAW;CACX,QAAQ;CACR,UAAU;CACV,UAAU;CACV,WAAW;CACX,SAAS;CACT,UAAU;CACV,aAAa;CACb,cAAc;CACd,WAAW;CACX,YAAY;CACZ,eAAe;CACf,gBAAgB;CAChB,WAAW;CACX,SAAS;CACT,eAAe;CACf,iBAAiB;CACjB,iBAAiB;CACjB,cAAc;CACd,aAAa;CACb,gBAAgB;CAChB,aAAa;CACb,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,QAAQ;CACR,aAAa;CACb,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,KAAK;CACL,UAAU;CACV,WAAW;CACX,YAAY;CACZ,WAAW;CACX,SAAS;CACT,CAAC"}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ //#region ../hotkey-manager/dist/lib/is-client/index.js
15
+ /**
16
+ * Is true if running client-side
17
+ */
18
+ const isClient = typeof window !== "undefined";
19
+
20
+ //#endregion
21
+ export { isClient };
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../hotkey-manager/dist/lib/is-client/index.js"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n\n//#region src/lib/is-client/index.ts\n/**\n* Is true if running client-side\n*/\nconst isClient = typeof window !== \"undefined\";\n\n//#endregion\nexport { isClient };\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,WAAW,OAAO,WAAW"}
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { isClient } from "../is-client/index.js";
15
+
16
+ //#region ../hotkey-manager/dist/lib/is-mac/index.js
17
+ /**
18
+ * Is `true` when client-side and on a Mac
19
+ */
20
+ const isMac = isClient && window.navigator.userAgent.indexOf("Mac") !== -1;
21
+
22
+ //#endregion
23
+ export { isMac };
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../hotkey-manager/dist/lib/is-mac/index.js"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n\nimport { isClient } from \"../is-client/index.js\";\n\n//#region src/lib/is-mac/index.ts\n/**\n* Is `true` when client-side and on a Mac\n*/\nconst isMac = isClient && window.navigator.userAgent.indexOf(\"Mac\") !== -1;\n\n//#endregion\nexport { isMac };\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,MAAM,QAAQ,YAAY,OAAO,UAAU,UAAU,QAAQ,MAAM,KAAK"}
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at https://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ import { isMac } from "../is-mac/index.js";
15
+
16
+ //#region ../hotkey-manager/dist/lib/key-to-id/index.js
17
+ /**
18
+ * Converts a key combination to a standard key id.
19
+ *
20
+ * Handles auto mac style
21
+ *
22
+ * @internal
23
+ * @param key Key combination
24
+ */
25
+ function keyToId(key) {
26
+ const ctrl = isMac && key.autoMacStyle ? key.meta ? "ctrl" : "no-ctrl" : key.ctrl ? "ctrl" : "no-ctrl";
27
+ const meta = isMac && key.autoMacStyle ? key.ctrl ? "meta" : "no-meta" : key.meta ? "meta" : "no-meta";
28
+ return [
29
+ key.code,
30
+ key.alt ? "alt" : "no-alt",
31
+ ctrl,
32
+ meta,
33
+ key.shift ? "shift" : "no-shift"
34
+ ].join("|");
35
+ }
36
+
37
+ //#endregion
38
+ export { keyToId };
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../hotkey-manager/dist/lib/key-to-id/index.js"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n\nimport { isMac } from \"../is-mac/index.js\";\n\n//#region src/lib/key-to-id/index.ts\n/**\n* Converts a key combination to a standard key id.\n*\n* Handles auto mac style\n*\n* @internal\n* @param key Key combination\n*/\nfunction keyToId(key) {\n\tconst ctrl = isMac && key.autoMacStyle ? key.meta ? \"ctrl\" : \"no-ctrl\" : key.ctrl ? \"ctrl\" : \"no-ctrl\";\n\tconst meta = isMac && key.autoMacStyle ? key.ctrl ? \"meta\" : \"no-meta\" : key.meta ? \"meta\" : \"no-meta\";\n\treturn [\n\t\tkey.code,\n\t\tkey.alt ? \"alt\" : \"no-alt\",\n\t\tctrl,\n\t\tmeta,\n\t\tkey.shift ? \"shift\" : \"no-shift\"\n\t].join(\"|\");\n}\n\n//#endregion\nexport { keyToId };\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwBA,SAAS,QAAQ,KAAK;CACrB,MAAM,OAAO,SAAS,IAAI,eAAe,IAAI,OAAO,SAAS,YAAY,IAAI,OAAO,SAAS;CAC7F,MAAM,OAAO,SAAS,IAAI,eAAe,IAAI,OAAO,SAAS,YAAY,IAAI,OAAO,SAAS;AAC7F,QAAO;EACN,IAAI;EACJ,IAAI,MAAM,QAAQ;EAClB;EACA;EACA,IAAI,QAAQ,UAAU;EACtB,CAAC,KAAK,IAAI"}