mousehunt-improved 0.97.1 → 0.98.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 (852) hide show
  1. package/README.md +16 -16
  2. package/dist/mousehunt-improved.min.js +33 -0
  3. package/package.json +19 -15
  4. package/.editorconfig +0 -15
  5. package/.eslintignore +0 -2
  6. package/.eslintrc.json +0 -153
  7. package/.eslintrc.markdown.json +0 -11
  8. package/.gitattributes +0 -7
  9. package/.github/dependabot.yml +0 -18
  10. package/.github/workflows/ci.yml +0 -29
  11. package/.github/workflows/lint.yml +0 -24
  12. package/.github/workflows/publish.yml +0 -215
  13. package/.stylelintrc.json +0 -51
  14. package/.vscode/tasks.json +0 -37
  15. package/CHANGELOG.md +0 -3853
  16. package/CONTRIBUTING.md +0 -317
  17. package/bun.lock +0 -2298
  18. package/docs/adblock.md +0 -3
  19. package/docs/better-gifts.md +0 -15
  20. package/docs/better-inventory.md +0 -19
  21. package/docs/better-items.md +0 -13
  22. package/docs/better-journal.md +0 -26
  23. package/docs/better-kings-reward.md +0 -5
  24. package/docs/better-maps.md +0 -35
  25. package/docs/better-marketplace.md +0 -16
  26. package/docs/better-mice.md +0 -19
  27. package/docs/better-quests.md +0 -14
  28. package/docs/better-send-supplies.md +0 -15
  29. package/docs/better-shops.md +0 -15
  30. package/docs/better-tournaments.md +0 -13
  31. package/docs/better-travel.md +0 -20
  32. package/docs/better-ui.md +0 -30
  33. package/docs/big-timer.md +0 -3
  34. package/docs/catch-rate-estimator-and-minlucks.md +0 -9
  35. package/docs/codex-at-bottom.md +0 -3
  36. package/docs/copy-id-button.md +0 -7
  37. package/docs/custom-background.md +0 -71
  38. package/docs/custom-camp-background.md +0 -73
  39. package/docs/custom-horn.md +0 -28
  40. package/docs/custom-hud.md +0 -67
  41. package/docs/custom-shield.md +0 -77
  42. package/docs/custom-styles.md +0 -3
  43. package/docs/dark-mode-updates-and-tweaks.md +0 -3
  44. package/docs/dark-mode.md +0 -3
  45. package/docs/data-exporters.md +0 -21
  46. package/docs/debug-logging.md +0 -49
  47. package/docs/delayed-menus.md +0 -3
  48. package/docs/delayed-tooltips.md +0 -3
  49. package/docs/emotes.md +0 -111
  50. package/docs/experiments.md +0 -14
  51. package/docs/favorite-setups.md +0 -10
  52. package/docs/feature-flags.md +0 -90
  53. package/docs/fixes.md +0 -32
  54. package/docs/flrt-helper.md +0 -8
  55. package/docs/hide-codices.md +0 -3
  56. package/docs/hide-daily-draw.md +0 -3
  57. package/docs/hide-daily-reward-popup.md +0 -3
  58. package/docs/hide-footer.md +0 -3
  59. package/docs/hide-news-ticker.md +0 -3
  60. package/docs/hide-share-buttons.md +0 -3
  61. package/docs/hide-sidebar.md +0 -3
  62. package/docs/hover-profiles.md +0 -3
  63. package/docs/image-upscaling-and-transparency.md +0 -5
  64. package/docs/inline-wiki.md +0 -3
  65. package/docs/inventory-lock-and-hide.md +0 -9
  66. package/docs/inventory-only-open-multiple.md +0 -9
  67. package/docs/inventory-open-all-but-one.md +0 -8
  68. package/docs/inventory-open-all.md +0 -8
  69. package/docs/journal-privacy.md +0 -8
  70. package/docs/journal-theme-changer.md +0 -13
  71. package/docs/keyboard-shortcuts.md +0 -42
  72. package/docs/larger-codices.md +0 -3
  73. package/docs/larger-skin-images.md +0 -3
  74. package/docs/legacy-hud.md +0 -9
  75. package/docs/location-catch-stats.md +0 -3
  76. package/docs/location-dashboard.md +0 -89
  77. package/docs/lucky-golden-shield-duration-and-reminder.md +0 -8
  78. package/docs/metric-units.md +0 -3
  79. package/docs/paste-hunter-id.md +0 -5
  80. package/docs/prestige-base-stats.md +0 -3
  81. package/docs/printing-press-paper-counter.md +0 -3
  82. package/docs/quick-filters-and-sort.md +0 -8
  83. package/docs/quick-send-supplies.md +0 -8
  84. package/docs/replace-favicon.md +0 -3
  85. package/docs/scoreboard-search-on-profiles.md +0 -3
  86. package/docs/shield-goes-to-camp.md +0 -3
  87. package/docs/show-adventure-book.md +0 -7
  88. package/docs/show-auras.md +0 -13
  89. package/docs/ssdb-toothlet-counter.md +0 -3
  90. package/docs/taller-windows.md +0 -3
  91. package/docs/tem-crowns.md +0 -3
  92. package/docs/trap-selector-special-effects.md +0 -8
  93. package/docs/ultimate-checkmark.md +0 -9
  94. package/docs/unique-loot-count.md +0 -7
  95. package/docs/wisdom-in-stat-bar.md +0 -12
  96. package/jsconfig.json +0 -17
  97. package/scripts/build-extension.mjs +0 -119
  98. package/scripts/build-userscript.mjs +0 -73
  99. package/scripts/build.mjs +0 -106
  100. package/scripts/fetch-external-files.mjs +0 -26
  101. package/scripts/fix-map-groups.mjs +0 -146
  102. package/scripts/get-changelog.mjs +0 -10
  103. package/scripts/get-version.mjs +0 -2
  104. package/scripts/release +0 -29
  105. package/scripts/shared.mjs +0 -135
  106. package/src/data/backgrounds.json +0 -47
  107. package/src/data/crafting-recipe-mapping.json +0 -87
  108. package/src/data/cre-mice-groups.json +0 -148
  109. package/src/data/journal-item-colors.json +0 -110
  110. package/src/data/journals-environment-mapping.json +0 -24
  111. package/src/data/journals-events.json +0 -58
  112. package/src/data/magic-essence-potions.json +0 -28
  113. package/src/data/map-groups.json +0 -3737
  114. package/src/data/ultimate-checkmark.json +0 -407
  115. package/src/data/update-summary.json +0 -48
  116. package/src/extension/content.js +0 -29
  117. package/src/extension/icon-128.png +0 -0
  118. package/src/extension/icon-16.png +0 -0
  119. package/src/extension/icon-32.png +0 -0
  120. package/src/extension/icon-48.png +0 -0
  121. package/src/extension/icon-64.png +0 -0
  122. package/src/extension/manifest.json +0 -55
  123. package/src/extension/popup.html +0 -50
  124. package/src/extension/screenshots/dashboard.png +0 -0
  125. package/src/extension/screenshots/journal.png +0 -0
  126. package/src/extension/screenshots/map-highlighting.png +0 -0
  127. package/src/extension/screenshots/shop.png +0 -0
  128. package/src/index.js +0 -266
  129. package/src/modules/adblock/index.js +0 -22
  130. package/src/modules/adblock/styles.css +0 -31
  131. package/src/modules/better-gifts/index.js +0 -568
  132. package/src/modules/better-gifts/settings/index.js +0 -80
  133. package/src/modules/better-gifts/styles.css +0 -593
  134. package/src/modules/better-inventory/index.js +0 -522
  135. package/src/modules/better-inventory/modules/recipes/index.js +0 -318
  136. package/src/modules/better-inventory/modules/recipes/styles.css +0 -30
  137. package/src/modules/better-inventory/settings/index.js +0 -24
  138. package/src/modules/better-inventory/styles/double-width-item.css +0 -21
  139. package/src/modules/better-inventory/styles/full-width-item.css +0 -27
  140. package/src/modules/better-inventory/styles/larger-images.css +0 -17
  141. package/src/modules/better-inventory/styles/styles.css +0 -704
  142. package/src/modules/better-inventory/styles/tiny-group.css +0 -83
  143. package/src/modules/better-item-view/index.js +0 -454
  144. package/src/modules/better-item-view/modules/hover-item/index.js +0 -211
  145. package/src/modules/better-item-view/modules/hover-item/styles.css +0 -57
  146. package/src/modules/better-item-view/settings/index.js +0 -19
  147. package/src/modules/better-item-view/styles.css +0 -406
  148. package/src/modules/better-journal/index.js +0 -81
  149. package/src/modules/better-journal/modules/journal-full-mice-images/index.js +0 -64
  150. package/src/modules/better-journal/modules/journal-full-mice-images/styles.css +0 -99
  151. package/src/modules/better-journal/modules/journal-gold-and-points/index.js +0 -57
  152. package/src/modules/better-journal/modules/journal-gold-and-points/styles.css +0 -21
  153. package/src/modules/better-journal/modules/journal-highlight-rare-mice/index.js +0 -10
  154. package/src/modules/better-journal/modules/journal-highlight-rare-mice/styles.css +0 -5
  155. package/src/modules/better-journal/modules/journal-history/index.js +0 -396
  156. package/src/modules/better-journal/modules/journal-history/styles.css +0 -36
  157. package/src/modules/better-journal/modules/journal-icons/index.js +0 -17
  158. package/src/modules/better-journal/modules/journal-icons/styles.css +0 -58
  159. package/src/modules/better-journal/modules/journal-icons-minimal/index.js +0 -10
  160. package/src/modules/better-journal/modules/journal-icons-minimal/styles.css +0 -78
  161. package/src/modules/better-journal/modules/journal-item-colors/index.js +0 -19
  162. package/src/modules/better-journal/modules/journal-list/index.js +0 -407
  163. package/src/modules/better-journal/modules/journal-list/styles.css +0 -29
  164. package/src/modules/better-journal/modules/journal-replacements/index.js +0 -430
  165. package/src/modules/better-journal/modules/journal-replacements/styles.css +0 -15
  166. package/src/modules/better-journal/modules/journal-styles/index.js +0 -89
  167. package/src/modules/better-journal/modules/journal-styles/styles/backgrounds.css +0 -71
  168. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/aura.css +0 -15
  169. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/badge.css +0 -85
  170. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/alchemist-cookbook.css +0 -8
  171. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/gem.css +0 -30
  172. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/paper.css +0 -3
  173. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/ssdb.css +0 -3
  174. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/bonus.css +0 -22
  175. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/catch.css +0 -4
  176. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/failure.css +0 -6
  177. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/lucky.css +0 -4
  178. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/prize.css +0 -8
  179. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/gilded.css +0 -9
  180. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/rift-vacuum.css +0 -8
  181. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/torch.css +0 -18
  182. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/ultimate.css +0 -21
  183. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/unstable.css +0 -28
  184. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/draw-winner.css +0 -19
  185. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/events.css +0 -41
  186. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/gwh.css +0 -3
  187. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/kga.css +0 -16
  188. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/larry-gift.css +0 -25
  189. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/birthday.css +0 -48
  190. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/brift.css +0 -6
  191. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/bwrift.css +0 -13
  192. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/floating-islands.css +0 -12
  193. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/folklore-forest.css +0 -57
  194. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/frift.css +0 -46
  195. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/frox.css +0 -5
  196. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/garden.css +0 -14
  197. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/halloween.css +0 -7
  198. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/harbour.css +0 -11
  199. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/iceberg.css +0 -38
  200. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/labyrinth.css +0 -34
  201. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/mousoleum.css +0 -5
  202. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/queso.css +0 -28
  203. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/school.css +0 -18
  204. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/toxic-spill.css +0 -13
  205. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/vrift.css +0 -12
  206. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/wwrift.css +0 -33
  207. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/maps.css +0 -8
  208. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/glazy.css +0 -10
  209. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/stuck-snowball.css +0 -3
  210. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/valentines.css +0 -10
  211. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/other.css +0 -34
  212. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/popup.css +0 -10
  213. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/rank-up.css +0 -57
  214. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/social-gift.css +0 -27
  215. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/tournaments.css +0 -14
  216. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/ultimate.css +0 -7
  217. package/src/modules/better-journal/modules/journal-styles/styles/date-hiding.css +0 -74
  218. package/src/modules/better-journal/modules/journal-styles/styles/fullstop.css +0 -101
  219. package/src/modules/better-journal/modules/journal-styles/styles/general.css +0 -321
  220. package/src/modules/better-journal/modules/journal-styles/styles/progress-log.css +0 -217
  221. package/src/modules/better-journal/modules/journal-tags/index.js +0 -10
  222. package/src/modules/better-journal/modules/journal-tags/styles.css +0 -100
  223. package/src/modules/better-journal/settings/index.js +0 -56
  224. package/src/modules/better-journal/styles/list-and-icons.css +0 -3
  225. package/src/modules/better-journal/styles/styles.css +0 -15
  226. package/src/modules/better-kings-reward/index.js +0 -69
  227. package/src/modules/better-kings-reward/styles.css +0 -33
  228. package/src/modules/better-maps/index.js +0 -557
  229. package/src/modules/better-maps/modules/catch-dates.js +0 -78
  230. package/src/modules/better-maps/modules/community.js +0 -167
  231. package/src/modules/better-maps/modules/consolation-prizes.js +0 -30
  232. package/src/modules/better-maps/modules/draggable-highlight.js +0 -80
  233. package/src/modules/better-maps/modules/floating-islands.js +0 -209
  234. package/src/modules/better-maps/modules/highlighting.js +0 -277
  235. package/src/modules/better-maps/modules/preview.js +0 -66
  236. package/src/modules/better-maps/modules/scrolls.js +0 -183
  237. package/src/modules/better-maps/modules/shops.js +0 -170
  238. package/src/modules/better-maps/modules/sidebar.js +0 -203
  239. package/src/modules/better-maps/modules/tab-goals.js +0 -816
  240. package/src/modules/better-maps/modules/tab-hunters.js +0 -323
  241. package/src/modules/better-maps/modules/tab-invites.js +0 -66
  242. package/src/modules/better-maps/modules/tab-sorted.js +0 -818
  243. package/src/modules/better-maps/modules/toggle-ar.js +0 -237
  244. package/src/modules/better-maps/settings/index.js +0 -32
  245. package/src/modules/better-maps/styles/catch-dates.css +0 -23
  246. package/src/modules/better-maps/styles/draggable.css +0 -12
  247. package/src/modules/better-maps/styles/general.css +0 -1092
  248. package/src/modules/better-maps/styles/helper.css +0 -29
  249. package/src/modules/better-maps/styles/highlight-for-map.css +0 -19
  250. package/src/modules/better-maps/styles/hunters.css +0 -191
  251. package/src/modules/better-maps/styles/invites.css +0 -50
  252. package/src/modules/better-maps/styles/map-ar.css +0 -95
  253. package/src/modules/better-maps/styles/mhct.css +0 -145
  254. package/src/modules/better-maps/styles/overlays.css +0 -15
  255. package/src/modules/better-maps/styles/rewards.css +0 -206
  256. package/src/modules/better-maps/styles/scroll-shop.css +0 -241
  257. package/src/modules/better-maps/styles/sidebar.css +0 -105
  258. package/src/modules/better-maps/styles/sorted-map.css +0 -11
  259. package/src/modules/better-maps/styles/sorted.css +0 -351
  260. package/src/modules/better-maps/styles/userscripts.css +0 -70
  261. package/src/modules/better-maps/utils.js +0 -82
  262. package/src/modules/better-marketplace/index.js +0 -669
  263. package/src/modules/better-marketplace/settings/index.js +0 -29
  264. package/src/modules/better-marketplace/styles/quick-sell.css +0 -27
  265. package/src/modules/better-marketplace/styles/small-images.css +0 -5
  266. package/src/modules/better-marketplace/styles/styles.css +0 -261
  267. package/src/modules/better-marketplace/styles/trend-numbers.css +0 -37
  268. package/src/modules/better-mice/index.js +0 -692
  269. package/src/modules/better-mice/modules/hover-mice/index.js +0 -236
  270. package/src/modules/better-mice/modules/hover-mice/styles.css +0 -101
  271. package/src/modules/better-mice/modules/mouse-page/index.js +0 -559
  272. package/src/modules/better-mice/modules/sidebar/index.js +0 -110
  273. package/src/modules/better-mice/modules/sidebar/styles.css +0 -43
  274. package/src/modules/better-mice/settings/index.js +0 -24
  275. package/src/modules/better-mice/styles.css +0 -409
  276. package/src/modules/better-quests/index.js +0 -519
  277. package/src/modules/better-quests/modules/m400/index.js +0 -139
  278. package/src/modules/better-quests/settings/index.js +0 -13
  279. package/src/modules/better-quests/styles.css +0 -223
  280. package/src/modules/better-send-supplies/index.js +0 -361
  281. package/src/modules/better-send-supplies/settings/index.js +0 -45
  282. package/src/modules/better-send-supplies/styles.css +0 -316
  283. package/src/modules/better-shops/index.js +0 -234
  284. package/src/modules/better-shops/modules/hide-max-owned/styles.css +0 -10
  285. package/src/modules/better-shops/modules/quantity-buttons/index.js +0 -56
  286. package/src/modules/better-shops/modules/quantity-buttons/styles.css +0 -38
  287. package/src/modules/better-shops/settings/index.js +0 -19
  288. package/src/modules/better-shops/styles/cost.css +0 -135
  289. package/src/modules/better-shops/styles/general.css +0 -701
  290. package/src/modules/better-shops/styles/order.css +0 -21
  291. package/src/modules/better-shops/styles/retired.css +0 -11
  292. package/src/modules/better-shops/styles/riftstalker.css +0 -48
  293. package/src/modules/better-shops/styles/stats.css +0 -71
  294. package/src/modules/better-tournaments/index.js +0 -282
  295. package/src/modules/better-tournaments/settings/index.js +0 -12
  296. package/src/modules/better-tournaments/styles.css +0 -773
  297. package/src/modules/better-travel/index.js +0 -868
  298. package/src/modules/better-travel/modules/reminders/index.js +0 -169
  299. package/src/modules/better-travel/modules/travel-window/index.js +0 -380
  300. package/src/modules/better-travel/modules/travel-window/styles.css +0 -142
  301. package/src/modules/better-travel/settings/index.js +0 -34
  302. package/src/modules/better-travel/styles/explore-map.css +0 -66
  303. package/src/modules/better-travel/styles/styles.css +0 -421
  304. package/src/modules/better-travel/styles/travel-menu-hiding.css +0 -4
  305. package/src/modules/better-travel/utils.js +0 -28
  306. package/src/modules/better-ui/index.js +0 -71
  307. package/src/modules/better-ui/modules/adventure-book/index.js +0 -28
  308. package/src/modules/better-ui/modules/codex-at-bottom/index.js +0 -24
  309. package/src/modules/better-ui/modules/egg-master/index.js +0 -51
  310. package/src/modules/better-ui/modules/friends/index.js +0 -141
  311. package/src/modules/better-ui/modules/hud/index.js +0 -108
  312. package/src/modules/better-ui/modules/kings-promo/index.js +0 -15
  313. package/src/modules/better-ui/modules/larger-codices/index.js +0 -10
  314. package/src/modules/better-ui/modules/larger-codices/styles.css +0 -57
  315. package/src/modules/better-ui/modules/larger-skin-images/index.js +0 -148
  316. package/src/modules/better-ui/modules/larger-skin-images/styles.css +0 -21
  317. package/src/modules/better-ui/modules/legacy-styles/index.js +0 -9
  318. package/src/modules/better-ui/modules/legacy-styles/styles.css +0 -20
  319. package/src/modules/better-ui/modules/maintenance/index.js +0 -49
  320. package/src/modules/better-ui/modules/random-skin-button/index.js +0 -58
  321. package/src/modules/better-ui/modules/random-skin-button/styles.css +0 -16
  322. package/src/modules/better-ui/modules/show-unowned-skins/index.js +0 -109
  323. package/src/modules/better-ui/modules/show-unowned-skins/styles.css +0 -7
  324. package/src/modules/better-ui/modules/skin-preview-base/index.js +0 -24
  325. package/src/modules/better-ui/modules/trap-gradient-background/index.js +0 -10
  326. package/src/modules/better-ui/modules/trap-gradient-background/styles.css +0 -10
  327. package/src/modules/better-ui/modules/userscripts-styles/index.js +0 -40
  328. package/src/modules/better-ui/modules/userscripts-styles/styles/any-trap-any-skin.css +0 -52
  329. package/src/modules/better-ui/modules/userscripts-styles/styles/favorite-setups.css +0 -4
  330. package/src/modules/better-ui/modules/userscripts-styles/styles/journal-historian.css +0 -14
  331. package/src/modules/better-ui/modules/userscripts-styles/styles/lgs-reminder.css +0 -16
  332. package/src/modules/better-ui/modules/userscripts-styles/styles/profile-plus.css +0 -172
  333. package/src/modules/better-ui/modules/userscripts-styles/styles/spring-egg-hunt-helper.css +0 -5
  334. package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-autoloader.css +0 -91
  335. package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-location-catch-stats.css +0 -166
  336. package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-qol.css +0 -21
  337. package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-supply-search.css +0 -33
  338. package/src/modules/better-ui/settings/index.js +0 -50
  339. package/src/modules/better-ui/styles/adventure.css +0 -380
  340. package/src/modules/better-ui/styles/buttons.css +0 -91
  341. package/src/modules/better-ui/styles/corkboard.css +0 -184
  342. package/src/modules/better-ui/styles/daily-draw.css +0 -203
  343. package/src/modules/better-ui/styles/events.css +0 -233
  344. package/src/modules/better-ui/styles/footer.css +0 -121
  345. package/src/modules/better-ui/styles/friends.css +0 -232
  346. package/src/modules/better-ui/styles/general.css +0 -525
  347. package/src/modules/better-ui/styles/gifts.css +0 -108
  348. package/src/modules/better-ui/styles/horn.css +0 -51
  349. package/src/modules/better-ui/styles/hud.css +0 -131
  350. package/src/modules/better-ui/styles/inbox.css +0 -278
  351. package/src/modules/better-ui/styles/le.css +0 -28
  352. package/src/modules/better-ui/styles/legacy.css +0 -25
  353. package/src/modules/better-ui/styles/login.css +0 -51
  354. package/src/modules/better-ui/styles/maintence.css +0 -49
  355. package/src/modules/better-ui/styles/mobile-camp.css +0 -36
  356. package/src/modules/better-ui/styles/news.css +0 -126
  357. package/src/modules/better-ui/styles/overlays.css +0 -274
  358. package/src/modules/better-ui/styles/profile.css +0 -795
  359. package/src/modules/better-ui/styles/ronza.css +0 -25
  360. package/src/modules/better-ui/styles/scoreboards.css +0 -50
  361. package/src/modules/better-ui/styles/scrambles.css +0 -84
  362. package/src/modules/better-ui/styles/select2.css +0 -47
  363. package/src/modules/better-ui/styles/settings.css +0 -22
  364. package/src/modules/better-ui/styles/sidebar.css +0 -15
  365. package/src/modules/better-ui/styles/skins.css +0 -4
  366. package/src/modules/better-ui/styles/tabs.css +0 -235
  367. package/src/modules/better-ui/styles/team.css +0 -177
  368. package/src/modules/better-ui/styles/timer.css +0 -14
  369. package/src/modules/better-ui/styles/trap-selector.css +0 -124
  370. package/src/modules/better-ui/styles/traps.css +0 -643
  371. package/src/modules/better-ui/styles/tutorial.css +0 -63
  372. package/src/modules/better-ui/styles/ui-page.css +0 -178
  373. package/src/modules/big-timer/index.js +0 -42
  374. package/src/modules/big-timer/legacy-styles.css +0 -19
  375. package/src/modules/big-timer/styles.css +0 -18
  376. package/src/modules/catch-rate-estimate/data.js +0 -458
  377. package/src/modules/catch-rate-estimate/index.js +0 -413
  378. package/src/modules/catch-rate-estimate/settings/index.js +0 -12
  379. package/src/modules/catch-rate-estimate/styles.css +0 -213
  380. package/src/modules/copy-id/index.js +0 -91
  381. package/src/modules/copy-id/settings/index.js +0 -13
  382. package/src/modules/copy-id/styles.css +0 -26
  383. package/src/modules/custom-background/index.js +0 -179
  384. package/src/modules/custom-background/settings/index.js +0 -60
  385. package/src/modules/custom-background/styles.css +0 -135
  386. package/src/modules/custom-camp-background/index.js +0 -83
  387. package/src/modules/custom-camp-background/settings/index.js +0 -52
  388. package/src/modules/custom-camp-background/styles.css +0 -57
  389. package/src/modules/custom-css/index.js +0 -50
  390. package/src/modules/custom-css/settings/index.js +0 -16
  391. package/src/modules/custom-horn/index.js +0 -244
  392. package/src/modules/custom-horn/settings/index.js +0 -60
  393. package/src/modules/custom-horn/styles.css +0 -107
  394. package/src/modules/custom-hud/index.js +0 -130
  395. package/src/modules/custom-hud/settings/index.js +0 -49
  396. package/src/modules/custom-hud/styles/blueprint.css +0 -13
  397. package/src/modules/custom-hud/styles/groovy-green.css +0 -6
  398. package/src/modules/custom-hud/styles/midnight.css +0 -23
  399. package/src/modules/custom-hud/styles/suede.css +0 -10
  400. package/src/modules/custom-shield/cotton-candy.css +0 -38
  401. package/src/modules/custom-shield/index.js +0 -267
  402. package/src/modules/custom-shield/settings/index.js +0 -156
  403. package/src/modules/custom-shield/styles.css +0 -423
  404. package/src/modules/dark-mode-tweaks/index.js +0 -69
  405. package/src/modules/dark-mode-tweaks/journal-entries.css +0 -17
  406. package/src/modules/dark-mode-tweaks/styles.css +0 -401
  407. package/src/modules/data-exporters/exporters/export-favorite-setups-userscript.js +0 -78
  408. package/src/modules/data-exporters/exporters/export-favorite-setups.js +0 -63
  409. package/src/modules/data-exporters/exporters/export-inventory.js +0 -115
  410. package/src/modules/data-exporters/exporters/export-journal-entries.js +0 -61
  411. package/src/modules/data-exporters/exporters/export-kings-crowns.js +0 -71
  412. package/src/modules/data-exporters/exporters/export-marketplace.js +0 -112
  413. package/src/modules/data-exporters/exporters/export-mice.js +0 -287
  414. package/src/modules/data-exporters/exporters/export-rankup-forecaster.js +0 -51
  415. package/src/modules/data-exporters/exporters/export-scoreboards.js +0 -100
  416. package/src/modules/data-exporters/index.js +0 -147
  417. package/src/modules/data-exporters/styles.css +0 -113
  418. package/src/modules/data-exporters/utils.js +0 -355
  419. package/src/modules/debug/index.js +0 -172
  420. package/src/modules/debug/settings/index.js +0 -53
  421. package/src/modules/delayed-menus/index.js +0 -19
  422. package/src/modules/delayed-menus/styles.css +0 -4
  423. package/src/modules/delayed-tooltips/index.js +0 -36
  424. package/src/modules/delayed-tooltips/styles.css +0 -12
  425. package/src/modules/emotes/emotes.json +0 -107
  426. package/src/modules/emotes/index.js +0 -53
  427. package/src/modules/emotes/styles.css +0 -3
  428. package/src/modules/error-reporting/index.js +0 -12
  429. package/src/modules/experiments/index.js +0 -134
  430. package/src/modules/experiments/modules/fabled-custom-title/index.js +0 -143
  431. package/src/modules/experiments/modules/fabled-max-title-progress-bar/index.js +0 -18
  432. package/src/modules/experiments/modules/fabled-max-title-progress-bar/styles.css +0 -8
  433. package/src/modules/experiments/modules/fabled-random-title/index.js +0 -814
  434. package/src/modules/experiments/modules/fabled-random-title/styles.css +0 -9
  435. package/src/modules/experiments/modules/full-mice-images-no-border/index.js +0 -22
  436. package/src/modules/experiments/modules/full-mice-images-no-border/styles.css +0 -26
  437. package/src/modules/experiments/modules/gift-button-opens-gift-selector/index.js +0 -31
  438. package/src/modules/experiments/modules/memory-game/index.js +0 -100
  439. package/src/modules/experiments/modules/real-base-stats/index.js +0 -100
  440. package/src/modules/experiments/modules/settings-options.css +0 -31
  441. package/src/modules/experiments/modules/sort-daily-draw-reverse/index.js +0 -68
  442. package/src/modules/experiments/modules/square-profile-pics/index.js +0 -17
  443. package/src/modules/experiments/modules/square-profile-pics/styles.css +0 -13
  444. package/src/modules/favorite-setups/index.js +0 -1431
  445. package/src/modules/favorite-setups/settings/index.js +0 -25
  446. package/src/modules/favorite-setups/styles.css +0 -471
  447. package/src/modules/feature-flags/index.js +0 -36
  448. package/src/modules/feature-flags/modules/fake-fabled.js +0 -7
  449. package/src/modules/feature-flags/modules/rank-up-forecaster.js +0 -198
  450. package/src/modules/feature-flags/modules/social.js +0 -37
  451. package/src/modules/feature-flags/settings/index.js +0 -16
  452. package/src/modules/fixes/index.js +0 -33
  453. package/src/modules/fixes/modules/item-page.js +0 -115
  454. package/src/modules/fixes/modules/marketplace-buy-button.js +0 -17
  455. package/src/modules/fixes/modules/passing-parcel.js +0 -84
  456. package/src/modules/fixes/modules/rift-tooltip-quantities.js +0 -30
  457. package/src/modules/fixes/styles/accessibility.css +0 -20
  458. package/src/modules/fixes/styles/backgrounds.css +0 -89
  459. package/src/modules/fixes/styles/bountiful-beanstalk.css +0 -4
  460. package/src/modules/fixes/styles/buttons.css +0 -3
  461. package/src/modules/fixes/styles/claim-gift.css +0 -4
  462. package/src/modules/fixes/styles/colors.css +0 -69
  463. package/src/modules/fixes/styles/convertibles.css +0 -9
  464. package/src/modules/fixes/styles/discord.css +0 -4
  465. package/src/modules/fixes/styles/dropdown.css +0 -23
  466. package/src/modules/fixes/styles/events.css +0 -3
  467. package/src/modules/fixes/styles/fb-img-size.css +0 -10
  468. package/src/modules/fixes/styles/font-sizes.css +0 -8
  469. package/src/modules/fixes/styles/footer.css +0 -5
  470. package/src/modules/fixes/styles/hud-shadow.css +0 -8
  471. package/src/modules/fixes/styles/hunter-title.css +0 -11
  472. package/src/modules/fixes/styles/image.css +0 -4
  473. package/src/modules/fixes/styles/labyrinth.css +0 -10
  474. package/src/modules/fixes/styles/location-names-overflow.css +0 -14
  475. package/src/modules/fixes/styles/maps.css +0 -15
  476. package/src/modules/fixes/styles/menu.css +0 -11
  477. package/src/modules/fixes/styles/news-back.css +0 -17
  478. package/src/modules/fixes/styles/other.css +0 -14
  479. package/src/modules/fixes/styles/preferences.css +0 -16
  480. package/src/modules/fixes/styles/queso.css +0 -4
  481. package/src/modules/fixes/styles/ronza.css +0 -5
  482. package/src/modules/fixes/styles/scoreboard.css +0 -5
  483. package/src/modules/fixes/styles/tabs.css +0 -38
  484. package/src/modules/fixes/styles/tem.css +0 -10
  485. package/src/modules/fixes/styles/tooltips.css +0 -24
  486. package/src/modules/fixes/styles/tutorial-overlay.css +0 -16
  487. package/src/modules/flrt-helper/index.js +0 -230
  488. package/src/modules/flrt-helper/styles.css +0 -235
  489. package/src/modules/global-styles/index.js +0 -21
  490. package/src/modules/global-styles/styles/animations.css +0 -194
  491. package/src/modules/global-styles/styles/blueprint.css +0 -11
  492. package/src/modules/global-styles/styles/buttons.css +0 -88
  493. package/src/modules/global-styles/styles/favorite-button.css +0 -30
  494. package/src/modules/global-styles/styles/game-info-bar.css +0 -11
  495. package/src/modules/global-styles/styles/general.css +0 -55
  496. package/src/modules/global-styles/styles/horn-message.css +0 -61
  497. package/src/modules/global-styles/styles/messages.css +0 -49
  498. package/src/modules/global-styles/styles/settings.css +0 -84
  499. package/src/modules/global-styles/styles/tooltips.css +0 -22
  500. package/src/modules/global-styles/styles/trap-qty.css +0 -45
  501. package/src/modules/global-styles/styles/utility.css +0 -39
  502. package/src/modules/hide-codices/index.js +0 -22
  503. package/src/modules/hide-codices/styles.css +0 -4
  504. package/src/modules/hide-daily-draw/index.js +0 -146
  505. package/src/modules/hide-daily-draw/styles.css +0 -3
  506. package/src/modules/hide-daily-reward-popup/index.js +0 -57
  507. package/src/modules/hide-footer/index.js +0 -37
  508. package/src/modules/hide-footer/styles.css +0 -10
  509. package/src/modules/hide-news-ticker/index.js +0 -21
  510. package/src/modules/hide-news-ticker/styles.css +0 -3
  511. package/src/modules/hide-share/index.js +0 -26
  512. package/src/modules/hide-share/styles.css +0 -29
  513. package/src/modules/hide-sidebar/index.js +0 -106
  514. package/src/modules/hide-sidebar/styles.css +0 -102
  515. package/src/modules/hover-profiles/index.js +0 -402
  516. package/src/modules/hover-profiles/styles.css +0 -247
  517. package/src/modules/image-upscaling/index.js +0 -375
  518. package/src/modules/image-upscaling/styles.css +0 -265
  519. package/src/modules/image-upscaling/views.css +0 -270
  520. package/src/modules/inline-wiki/index.js +0 -111
  521. package/src/modules/inline-wiki/styles.css +0 -9
  522. package/src/modules/inventory-buttons/index.js +0 -163
  523. package/src/modules/inventory-buttons/settings/index.js +0 -29
  524. package/src/modules/inventory-buttons/styles/only-open-multiple.css +0 -20
  525. package/src/modules/inventory-lock-and-hide/index.js +0 -641
  526. package/src/modules/inventory-lock-and-hide/styles.css +0 -139
  527. package/src/modules/journal-changer/index.js +0 -321
  528. package/src/modules/journal-changer/settings/index.js +0 -19
  529. package/src/modules/journal-changer/styles.css +0 -21
  530. package/src/modules/journal-privacy/index.js +0 -219
  531. package/src/modules/journal-privacy/settings/index.js +0 -19
  532. package/src/modules/journal-privacy/styles/icon.css +0 -31
  533. package/src/modules/journal-privacy/styles/styles.css +0 -30
  534. package/src/modules/journal-privacy/styles/transparent.css +0 -30
  535. package/src/modules/keyboard-shortcuts/actions.js +0 -213
  536. package/src/modules/keyboard-shortcuts/index.js +0 -521
  537. package/src/modules/keyboard-shortcuts/styles.css +0 -110
  538. package/src/modules/legacy-hud/index.js +0 -314
  539. package/src/modules/legacy-hud/settings/index.js +0 -24
  540. package/src/modules/legacy-hud/styles/menu.css +0 -19
  541. package/src/modules/legacy-hud/styles/stats.css +0 -18
  542. package/src/modules/legacy-hud/styles/styles.css +0 -3
  543. package/src/modules/legacy-hud/styles/tweaks.css +0 -60
  544. package/src/modules/lgs-reminder/index.js +0 -229
  545. package/src/modules/lgs-reminder/settings/index.js +0 -17
  546. package/src/modules/lgs-reminder/styles.css +0 -85
  547. package/src/modules/links/index.js +0 -69
  548. package/src/modules/location-catch-stats/crown-colored-rows.css +0 -47
  549. package/src/modules/location-catch-stats/index.js +0 -234
  550. package/src/modules/location-catch-stats/settings/index.js +0 -17
  551. package/src/modules/location-catch-stats/styles.css +0 -125
  552. package/src/modules/location-dashboard/index.js +0 -536
  553. package/src/modules/location-dashboard/locations/afterword-acres.js +0 -18
  554. package/src/modules/location-dashboard/locations/ancient-city.js +0 -23
  555. package/src/modules/location-dashboard/locations/bountiful-beanstalk.js +0 -51
  556. package/src/modules/location-dashboard/locations/desert-oasis.js +0 -22
  557. package/src/modules/location-dashboard/locations/desert-warpath.js +0 -58
  558. package/src/modules/location-dashboard/locations/draconic-depths.js +0 -52
  559. package/src/modules/location-dashboard/locations/epilogue-falls.js +0 -40
  560. package/src/modules/location-dashboard/locations/floating-islands.js +0 -74
  561. package/src/modules/location-dashboard/locations/foreword-farm.js +0 -45
  562. package/src/modules/location-dashboard/locations/fort-rox.js +0 -39
  563. package/src/modules/location-dashboard/locations/iceberg.js +0 -16
  564. package/src/modules/location-dashboard/locations/labyrinth.js +0 -38
  565. package/src/modules/location-dashboard/locations/lost-city.js +0 -28
  566. package/src/modules/location-dashboard/locations/mousoleum.js +0 -20
  567. package/src/modules/location-dashboard/locations/moussu-picchu.js +0 -29
  568. package/src/modules/location-dashboard/locations/pollution-outbreak.js +0 -18
  569. package/src/modules/location-dashboard/locations/queso-geyser.js +0 -16
  570. package/src/modules/location-dashboard/locations/rift-bristle-woods.js +0 -28
  571. package/src/modules/location-dashboard/locations/rift-burroughs.js +0 -14
  572. package/src/modules/location-dashboard/locations/rift-furoma.js +0 -50
  573. package/src/modules/location-dashboard/locations/rift-valour.js +0 -30
  574. package/src/modules/location-dashboard/locations/sand-dunes.js +0 -21
  575. package/src/modules/location-dashboard/locations/school-of-sorcery.js +0 -29
  576. package/src/modules/location-dashboard/locations/seasonal-garden.js +0 -46
  577. package/src/modules/location-dashboard/locations/sunken-city.js +0 -25
  578. package/src/modules/location-dashboard/locations/table-of-contents.js +0 -20
  579. package/src/modules/location-dashboard/locations/whisker-woods-rift.js +0 -15
  580. package/src/modules/location-dashboard/locations/zugzwang-tower.js +0 -81
  581. package/src/modules/location-dashboard/styles.css +0 -389
  582. package/src/modules/location-huds/index.js +0 -261
  583. package/src/modules/location-huds/locations/acolyte-realm/index.js +0 -13
  584. package/src/modules/location-huds/locations/afterword-acres/index.js +0 -14
  585. package/src/modules/location-huds/locations/afterword-acres/styles.css +0 -21
  586. package/src/modules/location-huds/locations/ancient-city/index.js +0 -197
  587. package/src/modules/location-huds/locations/ancient-city/styles.css +0 -251
  588. package/src/modules/location-huds/locations/balacks-cove/index.js +0 -81
  589. package/src/modules/location-huds/locations/balacks-cove/styles.css +0 -12
  590. package/src/modules/location-huds/locations/bazaar/index.js +0 -8
  591. package/src/modules/location-huds/locations/bountiful-beanstalk/index.js +0 -309
  592. package/src/modules/location-huds/locations/bountiful-beanstalk/small-inv.css +0 -34
  593. package/src/modules/location-huds/locations/bountiful-beanstalk/styles.css +0 -608
  594. package/src/modules/location-huds/locations/calm-clearing/index.js +0 -8
  595. package/src/modules/location-huds/locations/cape-clawed/index.js +0 -12
  596. package/src/modules/location-huds/locations/catacombs/index.js +0 -17
  597. package/src/modules/location-huds/locations/claw-shot-city/index.js +0 -10
  598. package/src/modules/location-huds/locations/claw-shot-city/styles.css +0 -5
  599. package/src/modules/location-huds/locations/conclusion-cliffs/index.js +0 -14
  600. package/src/modules/location-huds/locations/conclusion-cliffs/styles.css +0 -114
  601. package/src/modules/location-huds/locations/derr-dunes/index.js +0 -8
  602. package/src/modules/location-huds/locations/desert-city/index.js +0 -10
  603. package/src/modules/location-huds/locations/desert-city/styles.css +0 -13
  604. package/src/modules/location-huds/locations/desert-warpath/index.js +0 -212
  605. package/src/modules/location-huds/locations/desert-warpath/styles.css +0 -273
  606. package/src/modules/location-huds/locations/dojo/index.js +0 -8
  607. package/src/modules/location-huds/locations/dracano/index.js +0 -8
  608. package/src/modules/location-huds/locations/draconic-depths/index.js +0 -143
  609. package/src/modules/location-huds/locations/draconic-depths/styles.css +0 -222
  610. package/src/modules/location-huds/locations/elub-shore/index.js +0 -8
  611. package/src/modules/location-huds/locations/epilogue-falls/index.js +0 -101
  612. package/src/modules/location-huds/locations/epilogue-falls/styles.css +0 -312
  613. package/src/modules/location-huds/locations/event-locations/birthday/index.js +0 -88
  614. package/src/modules/location-huds/locations/event-locations/birthday/styles.css +0 -341
  615. package/src/modules/location-huds/locations/event-locations/great-winter-hunt/global.css +0 -251
  616. package/src/modules/location-huds/locations/event-locations/great-winter-hunt/index.js +0 -425
  617. package/src/modules/location-huds/locations/event-locations/great-winter-hunt/styles.css +0 -887
  618. package/src/modules/location-huds/locations/event-locations/halloween/index.js +0 -45
  619. package/src/modules/location-huds/locations/event-locations/halloween/spooky-shuffle-tracker/index.js +0 -118
  620. package/src/modules/location-huds/locations/event-locations/halloween/spooky-shuffle-tracker/styles.css +0 -33
  621. package/src/modules/location-huds/locations/event-locations/halloween/styles.css +0 -605
  622. package/src/modules/location-huds/locations/event-locations/index.js +0 -54
  623. package/src/modules/location-huds/locations/event-locations/lunar-new-year/index.js +0 -176
  624. package/src/modules/location-huds/locations/event-locations/lunar-new-year/styles.css +0 -263
  625. package/src/modules/location-huds/locations/event-locations/ronza/index.js +0 -111
  626. package/src/modules/location-huds/locations/event-locations/ronza/styles.css +0 -144
  627. package/src/modules/location-huds/locations/event-locations/shared.js +0 -67
  628. package/src/modules/location-huds/locations/event-locations/spring-egg-hunt/index.js +0 -128
  629. package/src/modules/location-huds/locations/event-locations/spring-egg-hunt/styles.css +0 -196
  630. package/src/modules/location-huds/locations/floating-islands/index.js +0 -552
  631. package/src/modules/location-huds/locations/floating-islands/styles.css +0 -792
  632. package/src/modules/location-huds/locations/forbidden-grove/index.js +0 -75
  633. package/src/modules/location-huds/locations/forbidden-grove/styles.css +0 -16
  634. package/src/modules/location-huds/locations/foreword-farm/index.js +0 -84
  635. package/src/modules/location-huds/locations/foreword-farm/styles.css +0 -376
  636. package/src/modules/location-huds/locations/fort-rox/index.js +0 -249
  637. package/src/modules/location-huds/locations/fort-rox/styles.css +0 -257
  638. package/src/modules/location-huds/locations/fungal-cavern/index.js +0 -10
  639. package/src/modules/location-huds/locations/fungal-cavern/styles.css +0 -77
  640. package/src/modules/location-huds/locations/great-gnarled-tree/index.js +0 -8
  641. package/src/modules/location-huds/locations/harbour/index.js +0 -10
  642. package/src/modules/location-huds/locations/harbour/styles.css +0 -32
  643. package/src/modules/location-huds/locations/iceberg/index.js +0 -469
  644. package/src/modules/location-huds/locations/iceberg/styles/bob-iceberg.css +0 -57
  645. package/src/modules/location-huds/locations/iceberg/styles/styles.css +0 -329
  646. package/src/modules/location-huds/locations/jungle-of-dread/index.js +0 -17
  647. package/src/modules/location-huds/locations/kings-arms/index.js +0 -8
  648. package/src/modules/location-huds/locations/kings-gauntlet/index.js +0 -17
  649. package/src/modules/location-huds/locations/laboratory/index.js +0 -10
  650. package/src/modules/location-huds/locations/laboratory/styles.css +0 -41
  651. package/src/modules/location-huds/locations/labyrinth/index.js +0 -315
  652. package/src/modules/location-huds/locations/labyrinth/styles.css +0 -547
  653. package/src/modules/location-huds/locations/lagoon/index.js +0 -8
  654. package/src/modules/location-huds/locations/meditation-room/index.js +0 -12
  655. package/src/modules/location-huds/locations/mountain/index.js +0 -10
  656. package/src/modules/location-huds/locations/mountain/styles.css +0 -259
  657. package/src/modules/location-huds/locations/mousoleum/index.js +0 -17
  658. package/src/modules/location-huds/locations/mousoleum/styles.css +0 -21
  659. package/src/modules/location-huds/locations/moussu-picchu/index.js +0 -10
  660. package/src/modules/location-huds/locations/moussu-picchu/styles.css +0 -243
  661. package/src/modules/location-huds/locations/nerg-plains/index.js +0 -8
  662. package/src/modules/location-huds/locations/pinnacle-chamber/index.js +0 -11
  663. package/src/modules/location-huds/locations/pollution-outbreak/index.js +0 -32
  664. package/src/modules/location-huds/locations/pollution-outbreak/styles.css +0 -516
  665. package/src/modules/location-huds/locations/prologue-pond/index.js +0 -64
  666. package/src/modules/location-huds/locations/prologue-pond/styles.css +0 -138
  667. package/src/modules/location-huds/locations/region-living-garden/index.js +0 -36
  668. package/src/modules/location-huds/locations/region-living-garden/styles.css +0 -316
  669. package/src/modules/location-huds/locations/region-queso/index.js +0 -10
  670. package/src/modules/location-huds/locations/region-queso/styles.css +0 -366
  671. package/src/modules/location-huds/locations/rift-bristle-woods/index.js +0 -29
  672. package/src/modules/location-huds/locations/rift-bristle-woods/styles.css +0 -268
  673. package/src/modules/location-huds/locations/rift-burroughs/index.js +0 -157
  674. package/src/modules/location-huds/locations/rift-burroughs/styles.css +0 -272
  675. package/src/modules/location-huds/locations/rift-furoma/index.js +0 -79
  676. package/src/modules/location-huds/locations/rift-furoma/styles.css +0 -233
  677. package/src/modules/location-huds/locations/rift-gnawnia/index.js +0 -10
  678. package/src/modules/location-huds/locations/rift-gnawnia/styles.css +0 -83
  679. package/src/modules/location-huds/locations/rift-valour/flipped-avatar.css +0 -15
  680. package/src/modules/location-huds/locations/rift-valour/index.js +0 -271
  681. package/src/modules/location-huds/locations/rift-valour/simulator.js +0 -559
  682. package/src/modules/location-huds/locations/rift-valour/styles.css +0 -644
  683. package/src/modules/location-huds/locations/rift-whisker-woods/index.js +0 -86
  684. package/src/modules/location-huds/locations/rift-whisker-woods/styles.css +0 -214
  685. package/src/modules/location-huds/locations/school-of-sorcery/clean-chalkboard.css +0 -11
  686. package/src/modules/location-huds/locations/school-of-sorcery/index.js +0 -109
  687. package/src/modules/location-huds/locations/school-of-sorcery/styles.css +0 -460
  688. package/src/modules/location-huds/locations/seasonal-garden/index.js +0 -71
  689. package/src/modules/location-huds/locations/seasonal-garden/styles.css +0 -132
  690. package/src/modules/location-huds/locations/slushy-shoreline/index.js +0 -8
  691. package/src/modules/location-huds/locations/ss-huntington-ii/index.js +0 -8
  692. package/src/modules/location-huds/locations/sunken-city/index.js +0 -177
  693. package/src/modules/location-huds/locations/sunken-city/styles.css +0 -196
  694. package/src/modules/location-huds/locations/table-of-contents/index.js +0 -389
  695. package/src/modules/location-huds/locations/table-of-contents/simulator-styles.css +0 -240
  696. package/src/modules/location-huds/locations/table-of-contents/simulator.js +0 -276
  697. package/src/modules/location-huds/locations/table-of-contents/styles.css +0 -403
  698. package/src/modules/location-huds/locations/tournament-hall/index.js +0 -8
  699. package/src/modules/location-huds/locations/town-of-digby/index.js +0 -8
  700. package/src/modules/location-huds/locations/town-of-gnawnia/index.js +0 -10
  701. package/src/modules/location-huds/locations/town-of-gnawnia/styles.css +0 -48
  702. package/src/modules/location-huds/locations/train-station/index.js +0 -10
  703. package/src/modules/location-huds/locations/train-station/styles.css +0 -31
  704. package/src/modules/location-huds/locations/windmill/index.js +0 -53
  705. package/src/modules/location-huds/locations/windmill/styles.css +0 -73
  706. package/src/modules/location-huds/locations/zugzwang-tower/index.js +0 -10
  707. package/src/modules/location-huds/locations/zugzwang-tower/styles.css +0 -54
  708. package/src/modules/location-huds/settings.js +0 -124
  709. package/src/modules/location-huds/shared/cheese-selectors/index.js +0 -143
  710. package/src/modules/location-huds/shared/crafting-buttons/index.js +0 -133
  711. package/src/modules/location-huds/shared/crafting-buttons/styles.css +0 -51
  712. package/src/modules/location-huds/shared/folklore-forest/index.js +0 -261
  713. package/src/modules/location-huds/shared/folklore-forest/keep-inventory-open.js +0 -77
  714. package/src/modules/location-huds/shared/folklore-forest/styles.css +0 -394
  715. package/src/modules/location-huds/styles.css +0 -61
  716. package/src/modules/location-huds/toggle-icon.js +0 -74
  717. package/src/modules/metric/index.js +0 -114
  718. package/src/modules/native-dark-mode/index.js +0 -79
  719. package/src/modules/native-dark-mode/settings/index.js +0 -15
  720. package/src/modules/native-dark-mode/styles/_root.css +0 -42
  721. package/src/modules/native-dark-mode/styles/adventure.css +0 -95
  722. package/src/modules/native-dark-mode/styles/camp-tabs.css +0 -113
  723. package/src/modules/native-dark-mode/styles/camp-trap.css +0 -420
  724. package/src/modules/native-dark-mode/styles/conflict-popup.css +0 -39
  725. package/src/modules/native-dark-mode/styles/events.css +0 -7
  726. package/src/modules/native-dark-mode/styles/favorite-setups.css +0 -12
  727. package/src/modules/native-dark-mode/styles/friends.css +0 -210
  728. package/src/modules/native-dark-mode/styles/general.css +0 -231
  729. package/src/modules/native-dark-mode/styles/gifts.css +0 -243
  730. package/src/modules/native-dark-mode/styles/header-dropdown.css +0 -62
  731. package/src/modules/native-dark-mode/styles/header.css +0 -100
  732. package/src/modules/native-dark-mode/styles/hover-items.css +0 -30
  733. package/src/modules/native-dark-mode/styles/inbox.css +0 -85
  734. package/src/modules/native-dark-mode/styles/inventory.css +0 -271
  735. package/src/modules/native-dark-mode/styles/item-view.css +0 -42
  736. package/src/modules/native-dark-mode/styles/journal-main.css +0 -115
  737. package/src/modules/native-dark-mode/styles/journal-misc-entries.css +0 -118
  738. package/src/modules/native-dark-mode/styles/journal-preview.css +0 -37
  739. package/src/modules/native-dark-mode/styles/kings-calibrator.css +0 -53
  740. package/src/modules/native-dark-mode/styles/loading.css +0 -58
  741. package/src/modules/native-dark-mode/styles/location-catch-stats.css +0 -31
  742. package/src/modules/native-dark-mode/styles/maps.css +0 -597
  743. package/src/modules/native-dark-mode/styles/markethunt.css +0 -41
  744. package/src/modules/native-dark-mode/styles/marketplace.css +0 -278
  745. package/src/modules/native-dark-mode/styles/mice-images.css +0 -10
  746. package/src/modules/native-dark-mode/styles/mice.css +0 -262
  747. package/src/modules/native-dark-mode/styles/mouse-view.css +0 -44
  748. package/src/modules/native-dark-mode/styles/news.css +0 -40
  749. package/src/modules/native-dark-mode/styles/overlays.css +0 -227
  750. package/src/modules/native-dark-mode/styles/page.css +0 -13
  751. package/src/modules/native-dark-mode/styles/premium.css +0 -7
  752. package/src/modules/native-dark-mode/styles/profile.css +0 -243
  753. package/src/modules/native-dark-mode/styles/progress-log.css +0 -25
  754. package/src/modules/native-dark-mode/styles/quests.css +0 -29
  755. package/src/modules/native-dark-mode/styles/scoreboards.css +0 -66
  756. package/src/modules/native-dark-mode/styles/select2.css +0 -65
  757. package/src/modules/native-dark-mode/styles/send-supplies.css +0 -88
  758. package/src/modules/native-dark-mode/styles/settings.css +0 -172
  759. package/src/modules/native-dark-mode/styles/shops.css +0 -114
  760. package/src/modules/native-dark-mode/styles/sidebar.css +0 -56
  761. package/src/modules/native-dark-mode/styles/tabs.css +0 -17
  762. package/src/modules/native-dark-mode/styles/team.css +0 -58
  763. package/src/modules/native-dark-mode/styles/travel.css +0 -102
  764. package/src/modules/native-dark-mode/styles/userscripts.css +0 -38
  765. package/src/modules/onboarding/index.js +0 -44
  766. package/src/modules/onboarding/styles.css +0 -13
  767. package/src/modules/paste-hunter-id/index.js +0 -82
  768. package/src/modules/prestige-base-stats/index.js +0 -242
  769. package/src/modules/printing-press-paper-counter/index.js +0 -24
  770. package/src/modules/quick-filters-and-sort/index.js +0 -280
  771. package/src/modules/quick-filters-and-sort/styles.css +0 -146
  772. package/src/modules/quick-send-supplies/index.js +0 -358
  773. package/src/modules/quick-send-supplies/settings/index.js +0 -40
  774. package/src/modules/quick-send-supplies/styles.css +0 -185
  775. package/src/modules/replace-favicon/index.js +0 -51
  776. package/src/modules/required/global-utils.js +0 -9
  777. package/src/modules/required/index.js +0 -251
  778. package/src/modules/scoreboard-search-on-profiles/index.js +0 -161
  779. package/src/modules/scoreboard-search-on-profiles/styles.css +0 -25
  780. package/src/modules/settings/icons.css +0 -233
  781. package/src/modules/settings/index.js +0 -653
  782. package/src/modules/settings/settings/index.js +0 -16
  783. package/src/modules/settings/styles.css +0 -635
  784. package/src/modules/shield-goes-to-camp/index.js +0 -31
  785. package/src/modules/show-adventure-book/index.js +0 -31
  786. package/src/modules/show-adventure-book/styles.css +0 -6
  787. package/src/modules/show-auras/index.js +0 -252
  788. package/src/modules/show-auras/settings/index.js +0 -19
  789. package/src/modules/show-auras/styles/grid.css +0 -48
  790. package/src/modules/show-auras/styles/icons.css +0 -22
  791. package/src/modules/show-auras/styles/list.css +0 -49
  792. package/src/modules/show-auras/styles/styles.css +0 -23
  793. package/src/modules/ssdb-toothlet-counter/index.js +0 -24
  794. package/src/modules/taller-windows/index.js +0 -22
  795. package/src/modules/taller-windows/styles.css +0 -137
  796. package/src/modules/tem-crowns/index.js +0 -127
  797. package/src/modules/tem-crowns/styles.css +0 -106
  798. package/src/modules/trap-selector-special-effects/index.js +0 -75
  799. package/src/modules/ultimate-checkmark/index.js +0 -391
  800. package/src/modules/ultimate-checkmark/settings/index.js +0 -40
  801. package/src/modules/ultimate-checkmark/styles.css +0 -12
  802. package/src/modules/unique-loot-count/index.js +0 -59
  803. package/src/modules/unique-loot-count/styles.css +0 -3
  804. package/src/modules/update-notifications/index.js +0 -95
  805. package/src/modules/update-notifications/styles.css +0 -181
  806. package/src/modules/user-highlighting/index.js +0 -130
  807. package/src/modules/user-highlighting/profile.css +0 -374
  808. package/src/modules/user-highlighting/styles.css +0 -34
  809. package/src/modules/wisdom-in-stat-bar/index.js +0 -170
  810. package/src/modules/wisdom-in-stat-bar/settings/index.js +0 -12
  811. package/src/modules/wisdom-in-stat-bar/styles.css +0 -3
  812. package/src/updates/index.js +0 -168
  813. package/src/updates/versions/.gitkeep +0 -0
  814. package/src/updates/versions/0.93.0.js +0 -39
  815. package/src/updates/versions/0.93.3.js +0 -8
  816. package/src/updates/versions/0.94.0.js +0 -8
  817. package/src/utils/blueprint.js +0 -74
  818. package/src/utils/data.js +0 -559
  819. package/src/utils/db.js +0 -206
  820. package/src/utils/debug.js +0 -72
  821. package/src/utils/draggable.js +0 -141
  822. package/src/utils/elements.js +0 -650
  823. package/src/utils/event-registry.js +0 -102
  824. package/src/utils/events.js +0 -698
  825. package/src/utils/flags.js +0 -39
  826. package/src/utils/global.js +0 -37
  827. package/src/utils/horn.js +0 -187
  828. package/src/utils/humanizer.js +0 -62
  829. package/src/utils/index.js +0 -28
  830. package/src/utils/journal.js +0 -222
  831. package/src/utils/json.js +0 -32
  832. package/src/utils/links.js +0 -343
  833. package/src/utils/location-current.js +0 -23
  834. package/src/utils/location.js +0 -70
  835. package/src/utils/maps.js +0 -699
  836. package/src/utils/messages.js +0 -255
  837. package/src/utils/onboarding.js +0 -102
  838. package/src/utils/page-current.js +0 -26
  839. package/src/utils/page.js +0 -155
  840. package/src/utils/settings-markup.js +0 -907
  841. package/src/utils/settings.js +0 -260
  842. package/src/utils/shared/fiery-warpath.js +0 -88
  843. package/src/utils/shared/memory-game.js +0 -231
  844. package/src/utils/shared/trap-quantity.js +0 -232
  845. package/src/utils/styles/errors.css +0 -50
  846. package/src/utils/styles/memory-game.css +0 -227
  847. package/src/utils/styles/page-error.css +0 -145
  848. package/src/utils/styles/page-maintenance.css +0 -150
  849. package/src/utils/styles.js +0 -209
  850. package/src/utils/templates.js +0 -170
  851. package/src/utils/user.js +0 -375
  852. package/src/utils/utils.js +0 -534
@@ -1,818 +0,0 @@
1
- import {
2
- addMHCTData,
3
- getArEl,
4
- getData,
5
- getHighestArForMouse,
6
- getLocationForMouse,
7
- getMapData,
8
- makeElement,
9
- makeMhButton,
10
- mapData,
11
- mapModel,
12
- showTravelConfirmation,
13
- showTravelConfirmationNoDetails
14
- } from '@utils';
15
-
16
- import { addArToggle, removeArToggle } from './toggle-ar';
17
- import doHighlighting from './highlighting';
18
-
19
- let mouseGroups;
20
-
21
- /**
22
- * Get the mouse data for the map.
23
- *
24
- * @param {Object} currentMapData The current map data.
25
- * @param {string} type The type of data to get.
26
- *
27
- * @return {Object} The mouse data.
28
- */
29
- const getMouseDataForMap = (currentMapData, type = 'mouse') => {
30
- // Get the unsorted mice.
31
- let unsortedMice = [];
32
- if (currentMapData.goals && currentMapData.goals[type]) {
33
- unsortedMice = currentMapData.goals[type];
34
- }
35
-
36
- // Get the mice that have been caught from each hunter.
37
- let caughtMice = [];
38
- // get the ids from currentMapData.hunters.completed_goal_ids.mouse
39
- currentMapData.hunters.forEach((hunter) => {
40
- caughtMice = [...caughtMice, ...hunter.completed_goal_ids[type]];
41
- });
42
-
43
- // Remove the caught mice from the unsorted mice.
44
- unsortedMice = unsortedMice.filter((mouse) => {
45
- return ! caughtMice.includes(mouse.unique_id);
46
- });
47
-
48
- // Get the categories.
49
- let categories = [];
50
- if (mouseGroups[currentMapData.map_type] && mouseGroups[currentMapData.map_type].categories) {
51
- categories = mouseGroups[currentMapData.map_type].categories;
52
- }
53
-
54
- let subcategories = [];
55
- if (mouseGroups[currentMapData.map_type] && mouseGroups[currentMapData.map_type].subcategories) {
56
- subcategories = mouseGroups[currentMapData.map_type].subcategories;
57
- }
58
-
59
- return {
60
- unsortedMice,
61
- categories,
62
- subcategories,
63
- getMouseDataForMap,
64
- };
65
- };
66
-
67
- /**
68
- * Generate the markup for a mouse.
69
- *
70
- * @param {Object} mouse The mouse data.
71
- * @param {string} type The type of mouse.
72
- *
73
- * @return {HTMLElement} The mouse element.
74
- */
75
- const makeMouseDiv = async (mouse, type = 'mouse') => {
76
- // Wrapper.
77
- const mouseDiv = makeElement('div', 'mouse-container');
78
-
79
- // Wrapper IDs.
80
- mouseDiv.setAttribute('data-mouse-id', mouse.unique_id);
81
- mouseDiv.setAttribute('data-mouse-type', mouse.type);
82
- mouseDiv.setAttribute('data-type', type);
83
-
84
- // Mouse header.
85
- const mouseData = makeElement('div', 'mouse-data');
86
-
87
- const mouseImage = makeElement('img', 'mouse-image');
88
- mouseImage.src = 'mouse' === type ? mouse.small : mouse.thumb;
89
- mouseImage.alt = mouse.name;
90
- mouseData.append(mouseImage);
91
-
92
- makeElement('div', 'mouse-name', mouse.name, mouseData);
93
-
94
- const mouseAr = await getArEl(mouse.unique_id, type);
95
- if (mouseAr) {
96
- mouseData.append(mouseAr);
97
- }
98
-
99
- // Mouse header close.
100
- mouseDiv.append(mouseData);
101
-
102
- // Mouse extra info.
103
- const mouseExtraInfoWrapper = makeElement('div', 'mouse-mhct-extra-info-wrapper');
104
- const mouseExtraInfo = makeElement('div', 'mouse-extra-info');
105
-
106
- if (Array.isArray(mouse.environment_ids)) {
107
- // Mouse locations.
108
- const locationText = makeElement('div', 'location-text-wrapper');
109
- makeElement('span', 'location-text', 'Found in ', locationText);
110
-
111
- mouse.environment_ids.forEach((environmentID, index) => {
112
- const environment = mapData().environments.find((env) => env.id === environmentID);
113
-
114
- if (environment) {
115
- const locationLink = makeElement('a', 'mouse-location-link', environment.name);
116
-
117
- locationLink.title = `Travel to ${environment.name}`;
118
- locationLink.setAttribute('data-environment-id', environment.id);
119
-
120
- locationLink.addEventListener('click', () => {
121
- showTravelConfirmationNoDetails(environment);
122
- });
123
-
124
- // If it's not the first item, append a comma before it
125
- if (index !== 0) {
126
- locationText.append(document.createTextNode(', '));
127
- }
128
-
129
- locationText.append(locationLink);
130
- }
131
- });
132
-
133
- mouseExtraInfo.append(locationText);
134
- }
135
-
136
- // Mouse extra info close.
137
- mouseExtraInfoWrapper.append(mouseExtraInfo);
138
- mouseDiv.append(mouseExtraInfoWrapper);
139
-
140
- // Click handler.
141
- mouseDiv.addEventListener('click', async () => {
142
- const isSelected = mouseDiv.classList.contains('mouse-container-selected');
143
- if (isSelected) {
144
- mouseDiv.classList.remove('mouse-container-selected');
145
- return;
146
- }
147
-
148
- // Append MHCT data.
149
- addMHCTData(mouse, mouseExtraInfo, type);
150
-
151
- // Only allow one mouse to be selected at a time.
152
- const addClass = ! mouseDiv.classList.contains('mouse-container-selected');
153
-
154
- // Clear all selected.
155
- const allSelected = document.querySelectorAll('.mouse-container-selected');
156
- if (allSelected) {
157
- allSelected.forEach((selected) => {
158
- selected.classList.remove('mouse-container-selected');
159
- });
160
- }
161
-
162
- // Position the mouseExtraInfoWrapper div so that its positioned absolute to the mouseDiv
163
- const rect = mouseDiv.getBoundingClientRect();
164
- mouseExtraInfoWrapper.style.top = `${rect.top + 50}px`;
165
- mouseExtraInfoWrapper.style.left = `${rect.left}px`;
166
-
167
- // Except this one if it's not selected.
168
- if (addClass) {
169
- mouseDiv.classList.add('mouse-container-selected');
170
- }
171
- });
172
-
173
- return mouseDiv;
174
- };
175
-
176
- /**
177
- * Make the sorted page wrapper.
178
- *
179
- * @return {HTMLElement} The sorted page wrapper.
180
- */
181
- const makeSortedPageWrapper = () => {
182
- const sortedPage = makeElement('div', 'sorted-page');
183
- makeElement('div', ['sorted-loading', 'mousehuntPage-loading', 'active'], '', sortedPage);
184
- makeElement('div', 'sorted-page-content', '', sortedPage);
185
-
186
- return sortedPage;
187
- };
188
-
189
- /**
190
- * Make the sorted mice list HTML.
191
- */
192
- const makeSortedMiceList = async () => {
193
- // Get the current map data.
194
- const currentMapData = await getMapData(mapData().map_id);
195
- const { unsortedMice, categories, subcategories } = getMouseDataForMap(currentMapData);
196
-
197
- const target = document.querySelector('.sorted-page-content');
198
- if (! target) {
199
- return;
200
- }
201
-
202
- const categoriesWrapper = makeElement('div', 'mouse-category-container');
203
-
204
- // Foreach category, create a category wrapper
205
- for (const category of categories) {
206
- const categoryID = category.id;
207
-
208
- // Create the category wrapper.
209
- const categoryWrapper = makeElement('div', 'mouse-category-wrapper');
210
- categoryWrapper.classList.add(`mouse-category-${categoryID}`, 'mouse-category-wrapper-hidden');
211
-
212
- // Category header.
213
- const categoryHeader = makeElement('div', 'mouse-category-header');
214
-
215
- if (category.color) {
216
- categoryWrapper.style.background = category.color;
217
- }
218
-
219
- // Icon, title, and subtitle wrapper.
220
- const iconTitleWrapper = makeElement('div', 'mouse-category-icon-title-wrapper');
221
-
222
- if (category.icon) {
223
- const categoryIcon = makeElement('img', 'mouse-category-icon');
224
-
225
- // if the string starts with a /, then it's a relative path, otherwise it's a full path
226
- categoryIcon.src = (category.icon.indexOf('/') === 0) ? `https://www.mousehuntgame.com/images${category.icon}` : category.icon;
227
-
228
- iconTitleWrapper.append(categoryIcon);
229
- }
230
-
231
- // Title, icon, and subtitle wrapper.
232
- const iconTitleTitleWrapper = makeElement('div', 'mouse-category-icon-title-title-wrapper');
233
-
234
- makeElement('div', 'mouse-category-title', category.name, iconTitleTitleWrapper);
235
- makeElement('div', 'mouse-category-subtitle', category.subtitle, iconTitleTitleWrapper);
236
-
237
- // Title, icon, and subtitle wrapper close.
238
- iconTitleWrapper.append(iconTitleTitleWrapper);
239
-
240
- // Category header close.
241
- categoryHeader.append(iconTitleWrapper);
242
-
243
- // Category wrapper close.
244
- categoryWrapper.append(categoryHeader);
245
-
246
- // Mice in category.
247
- const categoryMice = makeElement('div', 'mouse-category-mice');
248
-
249
- const addToSubCat = [];
250
-
251
- // loop through the mice properties and add them to the category
252
- category.mice.sort((a, b) => {
253
- if (a.name < b.name) {
254
- return -1;
255
- }
256
- return 1;
257
- });
258
-
259
- for (const mouse of category.mice) {
260
- // if the mouse is a string, then it's just a name, otherwise it's an object with a name and a subcategory
261
- let hasSubCat = false;
262
- let mouseType = mouse;
263
-
264
- if (typeof mouse === 'object' && mouse.subcategory) {
265
- hasSubCat = mouse.subcategory;
266
- mouseType = mouse.mouse;
267
- }
268
-
269
- // Check if the mouse is in the unsorted list
270
- const mouseIndex = unsortedMice.findIndex((unsortedMouse) => {
271
- return unsortedMouse.type === mouseType;
272
- });
273
-
274
- if (mouseIndex === -1) {
275
- continue;
276
- }
277
-
278
- const mouseDiv = await makeMouseDiv(unsortedMice[mouseIndex]);
279
-
280
- if (hasSubCat) {
281
- if (! addToSubCat[hasSubCat]) {
282
- addToSubCat[hasSubCat] = [];
283
- }
284
-
285
- addToSubCat[hasSubCat].push(mouseDiv);
286
- } else {
287
- categoryMice.append(mouseDiv);
288
- }
289
-
290
- categoryWrapper.append(categoryMice);
291
-
292
- // remove the mouse from the unsorted list
293
- unsortedMice.splice(mouseIndex, 1);
294
-
295
- categoryWrapper.classList.remove('mouse-category-wrapper-hidden');
296
- }
297
-
298
- // loop through the subcategories and add them to the category
299
- for (const subcategory of subcategories) {
300
- // if there are items in addToSubCat for this subcategory, then add them
301
- if (addToSubCat[subcategory.id] && addToSubCat[subcategory.id].length > 0) {
302
- // make a subcategory wrapper
303
- const subcategoryWrapper = document.createElement('div');
304
- subcategoryWrapper.classList.add('mouse-subcategory-wrapper', `mouse-subcategory-${subcategory.id}`);
305
-
306
- if (subcategory.color) {
307
- subcategoryWrapper.style.backgroundColor = subcategory.color;
308
- }
309
-
310
- // find the subcategory name
311
- const currentSubCat = mouseGroups[currentMapData.map_type].subcategories.find((subCat) => {
312
- return subCat.id === subcategory.id;
313
- });
314
-
315
- // Subcategory header.
316
- const subcategoryHeader = makeElement('div', 'mouse-subcategory-header');
317
- makeElement('div', 'mouse-subcategory-title', currentSubCat.name, subcategoryHeader);
318
- subcategoryWrapper.append(subcategoryHeader);
319
-
320
- // Mice in subcategory.
321
- const subcategoryMice = makeElement('div', 'mouse-subcategory-mice');
322
- addToSubCat[subcategory.id].forEach((mouseDiv) => {
323
- subcategoryMice.append(mouseDiv);
324
- });
325
-
326
- subcategoryWrapper.append(subcategoryMice);
327
- categoryWrapper.append(subcategoryWrapper);
328
- }
329
- }
330
-
331
- categoriesWrapper.append(categoryWrapper);
332
- }
333
-
334
- // make a category for the unsorted mice
335
- if (unsortedMice.length > 0) {
336
- // Wrapper
337
- const unsortedWrapper = makeElement('div', 'mouse-category-wrapper');
338
- unsortedWrapper.classList.add('mouse-category-unsorted');
339
-
340
- // Header
341
- const unsortedHeader = makeElement('div', 'mouse-category-header');
342
-
343
- // Title
344
- const unsortedTitle = makeElement('div', 'mouse-category-title', 'Unsorted');
345
- unsortedHeader.append(unsortedTitle);
346
-
347
- // Header close
348
- unsortedWrapper.append(unsortedHeader);
349
-
350
- // Mice
351
- const unsortedMiceDiv = makeElement('div', 'mouse-category-mice');
352
- for (const mouse of unsortedMice) {
353
- const mouseDiv = await makeMouseDiv(mouse);
354
- unsortedMiceDiv.append(mouseDiv);
355
- }
356
-
357
- // Mice close
358
- unsortedWrapper.append(unsortedMiceDiv);
359
-
360
- // Wrapper close
361
- categoriesWrapper.append(unsortedWrapper);
362
- }
363
-
364
- target.append(categoriesWrapper);
365
- };
366
-
367
- /**
368
- * Make the scavenger sorted page.
369
- *
370
- * @param {boolean} isNormal Is this a normal map?
371
- * @param {HTMLElement} target The target element.
372
- */
373
- const makeScavengerSortedPage = async (isNormal, target) => {
374
- target.classList.add('scavenger-sorted-page');
375
- target.classList.add('treasureMapView-block');
376
-
377
- target.setAttribute('data-scavenger-sorted-by', 'none');
378
- target.setAttribute('data-scavenger-sort-direction', 'descending');
379
-
380
- /**
381
- * Sort the mice by the AR.
382
- *
383
- * @param {string} direction The direction to sort in.
384
- */
385
- const sortMice = (direction = 'descending') => {
386
- const container = target.querySelector('.sorted-page-content');
387
- if (! container) {
388
- return;
389
- }
390
-
391
- const mice = target.querySelectorAll('.mouse-container');
392
- if (! mice) {
393
- return;
394
- }
395
-
396
- // sort the mice by the value in the data-ar attribute on the mh-ui-ar element
397
- const miceArray = [...mice];
398
- miceArray.sort((a, b) => {
399
- let aAr = 0;
400
- let bAr = 0;
401
-
402
- const aArEl = a.querySelector('.mh-ui-ar');
403
- if (aArEl) {
404
- aAr = aArEl.getAttribute('data-ar') || 0;
405
- }
406
-
407
- const bArEl = b.querySelector('.mh-ui-ar');
408
- if (bArEl) {
409
- bAr = bArEl.getAttribute('data-ar') || 0;
410
- }
411
-
412
- if (direction === 'ascending') {
413
- return aAr - bAr;
414
- }
415
-
416
- return bAr - aAr;
417
- });
418
-
419
- mice.forEach((mouse) => {
420
- mouse.remove();
421
- });
422
-
423
- const locationHeaders = container.querySelectorAll('.scavenger-location-wrapper');
424
- if (locationHeaders) {
425
- locationHeaders.forEach((header) => {
426
- header.remove();
427
- });
428
- }
429
-
430
- miceArray.forEach((mouse) => {
431
- container.append(mouse);
432
- });
433
- };
434
-
435
- const environments = await getData('environments');
436
- if (! environments) {
437
- return;
438
- }
439
-
440
- /**
441
- * Sort the mice into locations.
442
- *
443
- * @param {string} direction The direction to sort in.
444
- */
445
- const sortMiceIntoLocations = async (direction = 'descending') => {
446
- const container = target.querySelector('.sorted-page-content');
447
- if (! container) {
448
- return;
449
- }
450
-
451
- const mice = target.querySelectorAll('.mouse-container');
452
- if (! mice) {
453
- return;
454
- }
455
-
456
- // for each mouse, call getLocationForMouse and then separate them into their respective locations
457
- const miceByLocation = {};
458
- const locations = {};
459
-
460
- for (const mouse of mice) {
461
- const mouseId = mouse.getAttribute('data-mouse-id');
462
- const location = await getLocationForMouse(mouseId, isNormal ? 'mouse' : 'item');
463
- locations[location.id] = location;
464
-
465
- const locationId = location.id;
466
-
467
- if (! miceByLocation[locationId]) {
468
- miceByLocation[locationId] = [];
469
- }
470
-
471
- miceByLocation[locationId].push(mouse);
472
- }
473
-
474
- // move all the mice to the container
475
- mice.forEach((mouse) => {
476
- mouse.remove();
477
- });
478
-
479
- // remove all the location headers
480
- const locationHeaders = document.querySelectorAll('.scavenger-location-wrapper');
481
- if (locationHeaders) {
482
- locationHeaders.forEach((header) => {
483
- header.remove();
484
- });
485
- }
486
-
487
- // Sort the locations by the number of mice in them
488
- const sortedLocations = Object.keys(miceByLocation).sort((a, b) => {
489
- return miceByLocation[b].length - miceByLocation[a].length;
490
- });
491
-
492
- // Make a header for each location and then append the mice to it
493
- sortedLocations.forEach((location) => {
494
- const locationWrapper = makeElement('div', ['treasureMapView-goals-groups', 'scavenger-location-wrapper']);
495
- const header = makeElement('div', ['treasureMapView-block-content-heading', 'scavenger-location-header']);
496
- const locationContent = makeElement('div', 'scavenger-location-content');
497
-
498
- // get the environment name and icon
499
- const environment = environments.find((env) => env.id === location);
500
-
501
- // Handle the whole twisted garden thing.
502
- if (locations[environment?.id]) {
503
- environment.name = locations[environment.id].name;
504
- }
505
-
506
- if (environment) {
507
- if (environment.image) {
508
- const headerImage = makeElement('div', ['treasureMapView-block-content-heading-image', 'scavenger-location-icon']);
509
- headerImage.style.backgroundImage = `url(${environment.image})`;
510
- header.append(headerImage);
511
- }
512
-
513
- if (environment.name) {
514
- const envLink = makeElement('span', 'scavenger-location-name', environment.name);
515
- envLink.title = `Travel to ${environment.name}`;
516
- envLink.setAttribute('data-environment-id', location);
517
- envLink.addEventListener('click', () => {
518
- showTravelConfirmation(environment, mapModel());
519
- });
520
-
521
- header.append(envLink);
522
- makeElement('span', 'scavenger-location-count', ` (${miceByLocation[location].length})`, header);
523
- }
524
- }
525
-
526
- locationWrapper.append(header);
527
-
528
- miceByLocation[location].forEach((mouse) => {
529
- // Depending on the direction, we want to reverse the order of the mice
530
- if (direction === 'ascending') {
531
- locationContent.prepend(mouse);
532
- } else {
533
- locationContent.append(mouse);
534
- }
535
- });
536
-
537
- locationWrapper.append(locationContent);
538
- container.append(locationWrapper);
539
- });
540
- };
541
-
542
- /**
543
- * Toggle the sort direction.
544
- */
545
- const toggleSortDirection = async () => {
546
- const currentDirection = target.getAttribute('data-scavenger-sort-direction');
547
- const currentSort = target.getAttribute('data-scavenger-sorted-by');
548
-
549
- const newDirection = currentDirection === 'descending' ? 'ascending' : 'descending';
550
- target.setAttribute('data-scavenger-sort-direction', newDirection);
551
-
552
- await sortMice(newDirection);
553
- if (currentSort === 'location') {
554
- await sortMiceIntoLocations(newDirection);
555
- }
556
- };
557
-
558
- /**
559
- * Toggle the sort type.
560
- */
561
- const toggleSortType = async () => {
562
- const currentSort = target.getAttribute('data-scavenger-sorted-by');
563
- const currentDirection = target.getAttribute('data-scavenger-sort-direction');
564
-
565
- if (currentSort === 'location') {
566
- target.setAttribute('data-scavenger-sorted-by', 'none');
567
- sortMice(currentDirection);
568
- } else {
569
- target.setAttribute('data-scavenger-sorted-by', 'location');
570
- await sortMiceIntoLocations(currentDirection);
571
- }
572
- };
573
-
574
- // make buttons to toggle between drop rate sorting or by location
575
- const toggleWrapper = makeElement('div', 'scavenger-toggle-wrapper');
576
-
577
- makeMhButton({
578
- element: 'button',
579
- text: 'Sort by Location',
580
- className: 'scavenger-toggle-button',
581
- callback: async (event) => {
582
- const button = event.currentTarget;
583
- button.classList.add('disabled');
584
- await toggleSortType();
585
- button.classList.remove('disabled');
586
- },
587
- appendTo: toggleWrapper
588
- });
589
-
590
- makeMhButton({
591
- element: 'button',
592
- text: isNormal ? 'Sort by Attraction Rate' : 'Sort by Drop Rate',
593
- className: 'scavenger-toggle-button',
594
- callback: async (event) => {
595
- const button = event.currentTarget;
596
- button.classList.add('disabled');
597
- await toggleSortDirection();
598
- button.classList.remove('disabled');
599
- },
600
- appendTo: toggleWrapper
601
- });
602
-
603
- const sortedContainer = document.querySelector('#sorted-mice-container');
604
- if (sortedContainer) {
605
- sortedContainer.prepend(toggleWrapper);
606
- } else {
607
- target.prepend(toggleWrapper);
608
- }
609
-
610
- target.setAttribute('data-scavenger-sorted-by', 'location');
611
- target.setAttribute('data-scavenger-sort-direction', 'descending');
612
-
613
- await sortMiceIntoLocations('descending');
614
- await toggleSortType();
615
- };
616
-
617
- /**
618
- * Make the generic sorted page.
619
- *
620
- * @param {boolean} isNormal Is this a normal map?
621
- * @param {HTMLElement} sortedPage The sorted page element.
622
- */
623
- const makeGenericSortedPage = async (isNormal, sortedPage) => {
624
- const target = document.querySelector('.sorted-page-content');
625
- if (! target) {
626
- return;
627
- }
628
-
629
- const currentMapData = await getMapData(mapData().map_id);
630
-
631
- const type = isNormal ? 'mouse' : 'item';
632
- target.classList.add('treasureMapView-block-content', 'scavenger-sorted-page');
633
-
634
- const { unsortedMice } = getMouseDataForMap(currentMapData, type);
635
-
636
- // Sort from highest to lowest AR via the async getHighestArForMouse function.
637
- const sortedUnsorted = await Promise.all(
638
- unsortedMice.map(async (mouse) => {
639
- const ar = await getHighestArForMouse(mouse.unique_id, type);
640
- return {
641
- ...mouse,
642
- ar,
643
- };
644
- })
645
- );
646
-
647
- sortedUnsorted.sort((a, b) => {
648
- if (a.ar > b.ar) {
649
- return -1;
650
- }
651
- return 1;
652
- });
653
-
654
- // call makeMouseDiv for each mouse but in the sorted order and not asynchronously
655
- for (const mouse of sortedUnsorted) {
656
- const mouseDiv = await makeMouseDiv(mouse, type);
657
- target.append(mouseDiv);
658
- }
659
-
660
- await makeScavengerSortedPage(isNormal, sortedPage);
661
- };
662
-
663
- /**
664
- * Move the sorted tab to the body.
665
- */
666
- const moveTabToBody = () => {
667
- const sortedMiceContainer = document.querySelector('#sorted-mice-container');
668
- if (! sortedMiceContainer) {
669
- return;
670
- }
671
-
672
- const body = document.querySelector('body');
673
- if (! body) {
674
- return;
675
- }
676
-
677
- body.append(sortedMiceContainer);
678
- };
679
-
680
- /**
681
- * Process the sorted tab click.
682
- */
683
- const processSortedTabClick = async () => {
684
- const currentlyActive = document.querySelector('.treasureMapRootView-subTab.sorted-map-tab.active');
685
- if (currentlyActive) {
686
- return;
687
- }
688
-
689
- const otherTabs = document.querySelectorAll('.treasureMapRootView-subTab:not(.sorted-map-tab)');
690
- if (otherTabs) {
691
- otherTabs.forEach((tab) => {
692
- // remove the event listener, then add it back.
693
- tab.removeEventListener('click', moveTabToBody);
694
- tab.addEventListener('click', moveTabToBody);
695
- });
696
- }
697
-
698
- // Get the current map data.
699
- const currentMapData = mapData();
700
-
701
- if (! currentMapData || ! currentMapData.goals) {
702
- return;
703
- }
704
-
705
- // First, remove the active class from the other tab, and add it to this one.
706
- const activeTab = document.querySelector('.treasureMapRootView-subTab.active');
707
- if (activeTab) {
708
- activeTab.classList.remove('active');
709
- }
710
-
711
- const sortedTab = document.querySelector('.treasureMapRootView-subTab.sorted-map-tab');
712
- if (sortedTab) {
713
- sortedTab.classList.add('active');
714
- }
715
-
716
- const mapContainer = document.querySelector('.treasureMapView-blockWrapper');
717
- if (! mapContainer) {
718
- return;
719
- }
720
-
721
- // Now, hide the regular mice list, and show the sorted one.
722
- const leftBlock = mapContainer.querySelector('.treasureMapView-leftBlock');
723
- if (leftBlock) {
724
- leftBlock.style.display = 'none';
725
- }
726
-
727
- const rightBlock = mapContainer.querySelector('.treasureMapView-rightBlock');
728
- if (rightBlock) {
729
- rightBlock.style.display = 'none';
730
- }
731
-
732
- const existing = document.querySelector('#sorted-mice-container');
733
- if (existing) {
734
- existing.remove();
735
- }
736
-
737
- const sortedMiceContainer = document.createElement('div');
738
- sortedMiceContainer.id = 'sorted-mice-container';
739
-
740
- // First, make the sorted page with the loading icon, and then add the mice to it.
741
- const sortedPage = makeSortedPageWrapper();
742
- sortedMiceContainer.append(sortedPage);
743
- mapContainer.append(sortedMiceContainer);
744
-
745
- if (! mouseGroups) {
746
- mouseGroups = await getData('map-groups');
747
- }
748
-
749
- if (mouseGroups[currentMapData.map_type]) {
750
- await makeSortedMiceList();
751
- } else if (currentMapData.is_scavenger_hunt) {
752
- await makeGenericSortedPage(false, sortedPage);
753
- } else {
754
- await makeGenericSortedPage(true, sortedPage);
755
- }
756
-
757
- // Remove the loading icon.
758
- const loading = document.querySelector('.sorted-loading');
759
- if (loading) {
760
- loading.remove();
761
- }
762
-
763
- doHighlighting();
764
- };
765
-
766
- /**
767
- * Add the sorted map tab.
768
- *
769
- * @return {boolean} Whether the tab was added.
770
- */
771
- const addSortedMapTab = async () => {
772
- if (! mouseGroups) {
773
- mouseGroups = await getData('map-groups');
774
- }
775
-
776
- const mapTabs = document.querySelector('.treasureMapRootView-subTabContainer');
777
- if (! mapTabs || mapTabs.length <= 0) {
778
- return false;
779
- }
780
-
781
- if (mapTabs.querySelector('.sorted-map-tab')) {
782
- return false;
783
- }
784
-
785
- const sortedTab = makeElement('a', 'treasureMapRootView-subTab sorted-map-tab', 'Sorted');
786
- sortedTab.setAttribute('data-type', 'sorted');
787
-
788
- sortedTab.addEventListener('click', processSortedTabClick);
789
-
790
- const divider = makeElement('div', 'treasureMapRootView-subTab-spacer');
791
-
792
- // Add as the first tab.
793
- mapTabs.insertBefore(divider, mapTabs.children[0]);
794
- mapTabs.insertBefore(sortedTab, mapTabs.children[0]);
795
-
796
- return true;
797
- };
798
-
799
- /**
800
- * Fire the actions when the sorted tab is clicked.
801
- */
802
- const showSortedTab = () => {
803
- processSortedTabClick();
804
- addArToggle('sorted');
805
- };
806
-
807
- /**
808
- * Fire the actions when the sorted tab is hidden.
809
- */
810
- const hideSortedTab = () => {
811
- removeArToggle();
812
- };
813
-
814
- export {
815
- addSortedMapTab,
816
- hideSortedTab,
817
- showSortedTab
818
- };