@verticopolis/components 0.0.0-stage → 0.2.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 (791) hide show
  1. package/ASSETS-LICENSE.md +49 -0
  2. package/LICENSE +21 -0
  3. package/README.md +121 -2
  4. package/lib/audio/Audio.d.ts +110 -0
  5. package/lib/audio/Audio.js +199 -0
  6. package/lib/audio/Audio.js.map +1 -0
  7. package/lib/audio/ToneAudioEngine.d.ts +125 -0
  8. package/lib/audio/ToneAudioEngine.js +452 -0
  9. package/lib/audio/ToneAudioEngine.js.map +1 -0
  10. package/lib/audio/audioAssets.d.ts +25 -0
  11. package/lib/audio/audioAssets.js +28 -0
  12. package/lib/audio/audioAssets.js.map +1 -0
  13. package/lib/audio/awayWatch.d.ts +17 -0
  14. package/lib/audio/awayWatch.js +33 -0
  15. package/lib/audio/awayWatch.js.map +1 -0
  16. package/lib/audio/firstCueLatch.d.ts +18 -0
  17. package/lib/audio/firstCueLatch.js +34 -0
  18. package/lib/audio/firstCueLatch.js.map +1 -0
  19. package/lib/audio/lightEnvelope.d.ts +64 -0
  20. package/lib/audio/lightEnvelope.js +124 -0
  21. package/lib/audio/lightEnvelope.js.map +1 -0
  22. package/lib/audio/lightSynth.d.ts +125 -0
  23. package/lib/audio/lightSynth.js +203 -0
  24. package/lib/audio/lightSynth.js.map +1 -0
  25. package/lib/audio/toneContext.d.ts +30 -0
  26. package/lib/audio/toneContext.js +79 -0
  27. package/lib/audio/toneContext.js.map +1 -0
  28. package/lib/audio/toneCrowd.d.ts +62 -0
  29. package/lib/audio/toneCrowd.js +429 -0
  30. package/lib/audio/toneCrowd.js.map +1 -0
  31. package/lib/audio/toneCrowdData.d.ts +144 -0
  32. package/lib/audio/toneCrowdData.js +317 -0
  33. package/lib/audio/toneCrowdData.js.map +1 -0
  34. package/lib/audio/toneCrowdPrograms.d.ts +71 -0
  35. package/lib/audio/toneCrowdPrograms.js +273 -0
  36. package/lib/audio/toneCrowdPrograms.js.map +1 -0
  37. package/lib/audio/toneCrowdVoices.d.ts +49 -0
  38. package/lib/audio/toneCrowdVoices.js +212 -0
  39. package/lib/audio/toneCrowdVoices.js.map +1 -0
  40. package/lib/audio/toneMusicVoices.d.ts +11 -0
  41. package/lib/audio/toneMusicVoices.js +31 -0
  42. package/lib/audio/toneMusicVoices.js.map +1 -0
  43. package/lib/audio/tonePercussion.d.ts +45 -0
  44. package/lib/audio/tonePercussion.js +97 -0
  45. package/lib/audio/tonePercussion.js.map +1 -0
  46. package/lib/audio/toneRain.d.ts +23 -0
  47. package/lib/audio/toneRain.js +39 -0
  48. package/lib/audio/toneRain.js.map +1 -0
  49. package/lib/audio/toneRecordingMock.d.ts +89 -0
  50. package/lib/audio/toneRecordingMock.js +145 -0
  51. package/lib/audio/toneRecordingMock.js.map +1 -0
  52. package/lib/audio/toneRoomTone.d.ts +11 -0
  53. package/lib/audio/toneRoomTone.js +27 -0
  54. package/lib/audio/toneRoomTone.js.map +1 -0
  55. package/lib/audio/toneScenes.d.ts +57 -0
  56. package/lib/audio/toneScenes.js +208 -0
  57. package/lib/audio/toneScenes.js.map +1 -0
  58. package/lib/audio/toneTracks.d.ts +50 -0
  59. package/lib/audio/toneTracks.js +356 -0
  60. package/lib/audio/toneTracks.js.map +1 -0
  61. package/lib/audio/toneVoices.d.ts +57 -0
  62. package/lib/audio/toneVoices.js +208 -0
  63. package/lib/audio/toneVoices.js.map +1 -0
  64. package/lib/catalog/catalogTypes.d.ts +428 -0
  65. package/lib/catalog/catalogTypes.js +102 -0
  66. package/lib/catalog/catalogTypes.js.map +1 -0
  67. package/lib/catalog/skyBridgeTypes.d.ts +25 -0
  68. package/lib/catalog/skyBridgeTypes.js +7 -0
  69. package/lib/catalog/skyBridgeTypes.js.map +1 -0
  70. package/lib/catalog/starDutyTypes.d.ts +22 -0
  71. package/lib/catalog/starDutyTypes.js +7 -0
  72. package/lib/catalog/starDutyTypes.js.map +1 -0
  73. package/lib/catalog/towerCatalog.d.ts +32 -0
  74. package/lib/catalog/towerCatalog.js +44 -0
  75. package/lib/catalog/towerCatalog.js.map +1 -0
  76. package/lib/engineBinding/binding.d.ts +36 -0
  77. package/lib/engineBinding/binding.js +90 -0
  78. package/lib/engineBinding/binding.js.map +1 -0
  79. package/lib/engineBinding/catalog.d.ts +24 -0
  80. package/lib/engineBinding/catalog.js +267 -0
  81. package/lib/engineBinding/catalog.js.map +1 -0
  82. package/lib/engineBinding/engine.d.ts +866 -0
  83. package/lib/engineBinding/exportTiers.d.ts +289 -0
  84. package/lib/engineBinding/exportTiers.js +283 -0
  85. package/lib/engineBinding/exportTiers.js.map +1 -0
  86. package/lib/engineBinding/toolingMethods.d.ts +12 -0
  87. package/lib/engineBinding/toolingMethods.js +20 -0
  88. package/lib/engineBinding/toolingMethods.js.map +1 -0
  89. package/lib/events/gameplayCatalog.d.ts +57 -0
  90. package/lib/events/gameplayCatalog.js +214 -0
  91. package/lib/events/gameplayCatalog.js.map +1 -0
  92. package/lib/events/gameplayEventRules.d.ts +4 -0
  93. package/lib/events/gameplayEventRules.js +32 -0
  94. package/lib/events/gameplayEventRules.js.map +1 -0
  95. package/lib/events/gameplayEvents.d.ts +284 -0
  96. package/lib/presentation/clockText.d.ts +28 -0
  97. package/lib/presentation/clockText.js +38 -0
  98. package/lib/presentation/clockText.js.map +1 -0
  99. package/lib/presentation/facilityPresentation.d.ts +20 -0
  100. package/lib/presentation/facilityPresentation.js +164 -0
  101. package/lib/presentation/facilityPresentation.js.map +1 -0
  102. package/lib/presentation/statsCopy.d.ts +20 -0
  103. package/lib/presentation/statsCopy.js +37 -0
  104. package/lib/presentation/statsCopy.js.map +1 -0
  105. package/lib/presentation/traffic.d.ts +75 -0
  106. package/lib/presentation/traffic.js +79 -0
  107. package/lib/presentation/traffic.js.map +1 -0
  108. package/lib/presentation/viewKinds.d.ts +33 -0
  109. package/lib/presentation/viewKinds.js +88 -0
  110. package/lib/presentation/viewKinds.js.map +1 -0
  111. package/lib/presentation/viewWorld.d.ts +29 -0
  112. package/lib/presentation/viewWorld.js +31 -0
  113. package/lib/presentation/viewWorld.js.map +1 -0
  114. package/lib/render/atlas/archive.d.ts +78 -0
  115. package/lib/render/atlas/archive.js +427 -0
  116. package/lib/render/atlas/archive.js.map +1 -0
  117. package/lib/render/atlas/bake.d.ts +132 -0
  118. package/lib/render/atlas/bake.js +331 -0
  119. package/lib/render/atlas/bake.js.map +1 -0
  120. package/lib/render/atlas/bakeAdditions.d.ts +24 -0
  121. package/lib/render/atlas/bakeAdditions.js +46 -0
  122. package/lib/render/atlas/bakeAdditions.js.map +1 -0
  123. package/lib/render/atlas/browserEntry.d.ts +12 -0
  124. package/lib/render/atlas/browserEntry.js +222 -0
  125. package/lib/render/atlas/browserEntry.js.map +1 -0
  126. package/lib/render/atlas/catalog.d.ts +118 -0
  127. package/lib/render/atlas/catalog.js +253 -0
  128. package/lib/render/atlas/catalog.js.map +1 -0
  129. package/lib/render/atlas/catalogExtras.d.ts +45 -0
  130. package/lib/render/atlas/catalogExtras.js +217 -0
  131. package/lib/render/atlas/catalogExtras.js.map +1 -0
  132. package/lib/render/atlas/compose.d.ts +30 -0
  133. package/lib/render/atlas/compose.js +125 -0
  134. package/lib/render/atlas/compose.js.map +1 -0
  135. package/lib/render/atlas/cycles.d.ts +25 -0
  136. package/lib/render/atlas/cycles.js +41 -0
  137. package/lib/render/atlas/cycles.js.map +1 -0
  138. package/lib/render/atlas/lookup.d.ts +65 -0
  139. package/lib/render/atlas/lookup.js +83 -0
  140. package/lib/render/atlas/lookup.js.map +1 -0
  141. package/lib/render/atlas/pack.d.ts +23 -0
  142. package/lib/render/atlas/pack.js +50 -0
  143. package/lib/render/atlas/pack.js.map +1 -0
  144. package/lib/render/atlas/paint.d.ts +120 -0
  145. package/lib/render/atlas/paint.js +154 -0
  146. package/lib/render/atlas/paint.js.map +1 -0
  147. package/lib/render/atlas/pixels.d.ts +46 -0
  148. package/lib/render/atlas/pixels.js +158 -0
  149. package/lib/render/atlas/pixels.js.map +1 -0
  150. package/lib/render/atlas/png.d.ts +3 -0
  151. package/lib/render/atlas/png.js +102 -0
  152. package/lib/render/atlas/png.js.map +1 -0
  153. package/lib/render/atlas/raster.d.ts +34 -0
  154. package/lib/render/atlas/raster.js +114 -0
  155. package/lib/render/atlas/raster.js.map +1 -0
  156. package/lib/render/atlas/recyclingFill.d.ts +5 -0
  157. package/lib/render/atlas/recyclingFill.js +65 -0
  158. package/lib/render/atlas/recyclingFill.js.map +1 -0
  159. package/lib/render/atlas/samples.d.ts +24 -0
  160. package/lib/render/atlas/samples.js +75 -0
  161. package/lib/render/atlas/samples.js.map +1 -0
  162. package/lib/render/atlas/scenery.d.ts +230 -0
  163. package/lib/render/atlas/scenery.js +242 -0
  164. package/lib/render/atlas/scenery.js.map +1 -0
  165. package/lib/render/atlas/schema.d.ts +189 -0
  166. package/lib/render/atlas/schema.js +31 -0
  167. package/lib/render/atlas/schema.js.map +1 -0
  168. package/lib/render/atlas/shellMarks.d.ts +16 -0
  169. package/lib/render/atlas/shellMarks.js +72 -0
  170. package/lib/render/atlas/shellMarks.js.map +1 -0
  171. package/lib/render/atlas/store.d.ts +75 -0
  172. package/lib/render/atlas/store.js +127 -0
  173. package/lib/render/atlas/store.js.map +1 -0
  174. package/lib/render/atlas/verify.d.ts +43 -0
  175. package/lib/render/atlas/verify.js +87 -0
  176. package/lib/render/atlas/verify.js.map +1 -0
  177. package/lib/render/atlas/verifyExtras.d.ts +19 -0
  178. package/lib/render/atlas/verifyExtras.js +310 -0
  179. package/lib/render/atlas/verifyExtras.js.map +1 -0
  180. package/lib/render/cameraBounds.d.ts +71 -0
  181. package/lib/render/cameraBounds.js +107 -0
  182. package/lib/render/cameraBounds.js.map +1 -0
  183. package/lib/render/carIndicator.d.ts +41 -0
  184. package/lib/render/carIndicator.js +45 -0
  185. package/lib/render/carIndicator.js.map +1 -0
  186. package/lib/render/carMotion.d.ts +33 -0
  187. package/lib/render/carMotion.js +42 -0
  188. package/lib/render/carMotion.js.map +1 -0
  189. package/lib/render/catalogScale.d.ts +40 -0
  190. package/lib/render/catalogScale.js +33 -0
  191. package/lib/render/catalogScale.js.map +1 -0
  192. package/lib/render/climbPath.d.ts +59 -0
  193. package/lib/render/climbPath.js +115 -0
  194. package/lib/render/climbPath.js.map +1 -0
  195. package/lib/render/depthPlanes.d.ts +55 -0
  196. package/lib/render/depthPlanes.js +58 -0
  197. package/lib/render/depthPlanes.js.map +1 -0
  198. package/lib/render/excalibur/TowerEngine.d.ts +348 -0
  199. package/lib/render/excalibur/TowerEngine.js +415 -0
  200. package/lib/render/excalibur/TowerEngine.js.map +1 -0
  201. package/lib/render/excalibur/cabGraphics.d.ts +75 -0
  202. package/lib/render/excalibur/cabGraphics.js +108 -0
  203. package/lib/render/excalibur/cabGraphics.js.map +1 -0
  204. package/lib/render/excalibur/cabParts.d.ts +32 -0
  205. package/lib/render/excalibur/cabParts.js +79 -0
  206. package/lib/render/excalibur/cabParts.js.map +1 -0
  207. package/lib/render/excalibur/cabRiders.d.ts +72 -0
  208. package/lib/render/excalibur/cabRiders.js +176 -0
  209. package/lib/render/excalibur/cabRiders.js.map +1 -0
  210. package/lib/render/excalibur/crowdCull.d.ts +34 -0
  211. package/lib/render/excalibur/crowdCull.js +72 -0
  212. package/lib/render/excalibur/crowdCull.js.map +1 -0
  213. package/lib/render/excalibur/crowdFigure.d.ts +42 -0
  214. package/lib/render/excalibur/crowdFigure.js +99 -0
  215. package/lib/render/excalibur/crowdFigure.js.map +1 -0
  216. package/lib/render/excalibur/crowdLook.d.ts +137 -0
  217. package/lib/render/excalibur/crowdLook.js +186 -0
  218. package/lib/render/excalibur/crowdLook.js.map +1 -0
  219. package/lib/render/excalibur/frameHold.d.ts +23 -0
  220. package/lib/render/excalibur/frameHold.js +30 -0
  221. package/lib/render/excalibur/frameHold.js.map +1 -0
  222. package/lib/render/excalibur/guardPosition.d.ts +17 -0
  223. package/lib/render/excalibur/guardPosition.js +37 -0
  224. package/lib/render/excalibur/guardPosition.js.map +1 -0
  225. package/lib/render/excalibur/keyboardHost.d.ts +15 -0
  226. package/lib/render/excalibur/keyboardHost.js +22 -0
  227. package/lib/render/excalibur/keyboardHost.js.map +1 -0
  228. package/lib/render/excalibur/longPress.d.ts +16 -0
  229. package/lib/render/excalibur/longPress.js +71 -0
  230. package/lib/render/excalibur/longPress.js.map +1 -0
  231. package/lib/render/excalibur/peopleGfx.d.ts +16 -0
  232. package/lib/render/excalibur/peopleGfx.js +46 -0
  233. package/lib/render/excalibur/peopleGfx.js.map +1 -0
  234. package/lib/render/excalibur/peopleWindow.d.ts +35 -0
  235. package/lib/render/excalibur/peopleWindow.js +38 -0
  236. package/lib/render/excalibur/peopleWindow.js.map +1 -0
  237. package/lib/render/excalibur/personFocus.d.ts +36 -0
  238. package/lib/render/excalibur/personFocus.js +169 -0
  239. package/lib/render/excalibur/personFocus.js.map +1 -0
  240. package/lib/render/excalibur/pointerButtonGuard.d.ts +35 -0
  241. package/lib/render/excalibur/pointerButtonGuard.js +86 -0
  242. package/lib/render/excalibur/pointerButtonGuard.js.map +1 -0
  243. package/lib/render/excalibur/pressLifecycle.d.ts +26 -0
  244. package/lib/render/excalibur/pressLifecycle.js +66 -0
  245. package/lib/render/excalibur/pressLifecycle.js.map +1 -0
  246. package/lib/render/excalibur/rainShelter.d.ts +16 -0
  247. package/lib/render/excalibur/rainShelter.js +94 -0
  248. package/lib/render/excalibur/rainShelter.js.map +1 -0
  249. package/lib/render/excalibur/roomSignature.d.ts +30 -0
  250. package/lib/render/excalibur/roomSignature.js +49 -0
  251. package/lib/render/excalibur/roomSignature.js.map +1 -0
  252. package/lib/render/excalibur/sceneBake.d.ts +9 -0
  253. package/lib/render/excalibur/sceneBake.js +12 -0
  254. package/lib/render/excalibur/sceneBake.js.map +1 -0
  255. package/lib/render/excalibur/thiefSpan.d.ts +18 -0
  256. package/lib/render/excalibur/thiefSpan.js +51 -0
  257. package/lib/render/excalibur/thiefSpan.js.map +1 -0
  258. package/lib/render/excalibur/towerBridgeTiles.d.ts +30 -0
  259. package/lib/render/excalibur/towerBridgeTiles.js +43 -0
  260. package/lib/render/excalibur/towerBridgeTiles.js.map +1 -0
  261. package/lib/render/excalibur/towerCrowd.d.ts +73 -0
  262. package/lib/render/excalibur/towerCrowd.js +464 -0
  263. package/lib/render/excalibur/towerCrowd.js.map +1 -0
  264. package/lib/render/excalibur/towerCrowdLayout.d.ts +40 -0
  265. package/lib/render/excalibur/towerCrowdLayout.js +77 -0
  266. package/lib/render/excalibur/towerCrowdLayout.js.map +1 -0
  267. package/lib/render/excalibur/towerFireResponse.d.ts +25 -0
  268. package/lib/render/excalibur/towerFireResponse.js +89 -0
  269. package/lib/render/excalibur/towerFireResponse.js.map +1 -0
  270. package/lib/render/excalibur/towerFrame.d.ts +8 -0
  271. package/lib/render/excalibur/towerFrame.js +57 -0
  272. package/lib/render/excalibur/towerFrame.js.map +1 -0
  273. package/lib/render/excalibur/towerGhostLabel.d.ts +9 -0
  274. package/lib/render/excalibur/towerGhostLabel.js +37 -0
  275. package/lib/render/excalibur/towerGhostLabel.js.map +1 -0
  276. package/lib/render/excalibur/towerHallDoors.d.ts +42 -0
  277. package/lib/render/excalibur/towerHallDoors.js +129 -0
  278. package/lib/render/excalibur/towerHallDoors.js.map +1 -0
  279. package/lib/render/excalibur/towerHaloRings.d.ts +34 -0
  280. package/lib/render/excalibur/towerHaloRings.js +45 -0
  281. package/lib/render/excalibur/towerHaloRings.js.map +1 -0
  282. package/lib/render/excalibur/towerInputCamera.d.ts +90 -0
  283. package/lib/render/excalibur/towerInputCamera.js +480 -0
  284. package/lib/render/excalibur/towerInputCamera.js.map +1 -0
  285. package/lib/render/excalibur/towerMetro.d.ts +31 -0
  286. package/lib/render/excalibur/towerMetro.js +115 -0
  287. package/lib/render/excalibur/towerMetro.js.map +1 -0
  288. package/lib/render/excalibur/towerNoiseReach.d.ts +32 -0
  289. package/lib/render/excalibur/towerNoiseReach.js +75 -0
  290. package/lib/render/excalibur/towerNoiseReach.js.map +1 -0
  291. package/lib/render/excalibur/towerOverlay.d.ts +59 -0
  292. package/lib/render/excalibur/towerOverlay.js +453 -0
  293. package/lib/render/excalibur/towerOverlay.js.map +1 -0
  294. package/lib/render/excalibur/towerReconcile.d.ts +17 -0
  295. package/lib/render/excalibur/towerReconcile.js +404 -0
  296. package/lib/render/excalibur/towerReconcile.js.map +1 -0
  297. package/lib/render/excalibur/towerRegions.d.ts +61 -0
  298. package/lib/render/excalibur/towerRegions.js +193 -0
  299. package/lib/render/excalibur/towerRegions.js.map +1 -0
  300. package/lib/render/excalibur/towerScene.d.ts +66 -0
  301. package/lib/render/excalibur/towerScene.js +443 -0
  302. package/lib/render/excalibur/towerScene.js.map +1 -0
  303. package/lib/render/excalibur/towerScenery.d.ts +12 -0
  304. package/lib/render/excalibur/towerScenery.js +299 -0
  305. package/lib/render/excalibur/towerScenery.js.map +1 -0
  306. package/lib/render/excalibur/towerSceneryDraw.d.ts +86 -0
  307. package/lib/render/excalibur/towerSceneryDraw.js +288 -0
  308. package/lib/render/excalibur/towerSceneryDraw.js.map +1 -0
  309. package/lib/render/excalibur/towerShaftNumbers.d.ts +23 -0
  310. package/lib/render/excalibur/towerShaftNumbers.js +90 -0
  311. package/lib/render/excalibur/towerShaftNumbers.js.map +1 -0
  312. package/lib/render/excalibur/towerStructTiles.d.ts +56 -0
  313. package/lib/render/excalibur/towerStructTiles.js +238 -0
  314. package/lib/render/excalibur/towerStructTiles.js.map +1 -0
  315. package/lib/render/excalibur/towerSyncSchedule.d.ts +84 -0
  316. package/lib/render/excalibur/towerSyncSchedule.js +137 -0
  317. package/lib/render/excalibur/towerSyncSchedule.js.map +1 -0
  318. package/lib/render/excalibur/towerWalkerBuild.d.ts +30 -0
  319. package/lib/render/excalibur/towerWalkerBuild.js +126 -0
  320. package/lib/render/excalibur/towerWalkerBuild.js.map +1 -0
  321. package/lib/render/excalibur/trafficSpotlight.d.ts +29 -0
  322. package/lib/render/excalibur/trafficSpotlight.js +64 -0
  323. package/lib/render/excalibur/trafficSpotlight.js.map +1 -0
  324. package/lib/render/facadeGeometry.d.ts +50 -0
  325. package/lib/render/facadeGeometry.js +79 -0
  326. package/lib/render/facadeGeometry.js.map +1 -0
  327. package/lib/render/groundEntrances.d.ts +44 -0
  328. package/lib/render/groundEntrances.js +118 -0
  329. package/lib/render/groundEntrances.js.map +1 -0
  330. package/lib/render/lateNight.d.ts +14 -0
  331. package/lib/render/lateNight.js +18 -0
  332. package/lib/render/lateNight.js.map +1 -0
  333. package/lib/render/lobbyHalls.d.ts +44 -0
  334. package/lib/render/lobbyHalls.js +63 -0
  335. package/lib/render/lobbyHalls.js.map +1 -0
  336. package/lib/render/metroTrainSchedule.d.ts +20 -0
  337. package/lib/render/metroTrainSchedule.js +65 -0
  338. package/lib/render/metroTrainSchedule.js.map +1 -0
  339. package/lib/render/overviewMap/drawList.d.ts +67 -0
  340. package/lib/render/overviewMap/drawList.js +103 -0
  341. package/lib/render/overviewMap/drawList.js.map +1 -0
  342. package/lib/render/overviewMap/extent.d.ts +70 -0
  343. package/lib/render/overviewMap/extent.js +155 -0
  344. package/lib/render/overviewMap/extent.js.map +1 -0
  345. package/lib/render/overviewMap/floorSpans.d.ts +27 -0
  346. package/lib/render/overviewMap/floorSpans.js +32 -0
  347. package/lib/render/overviewMap/floorSpans.js.map +1 -0
  348. package/lib/render/overviewMap/gaps.d.ts +48 -0
  349. package/lib/render/overviewMap/gaps.js +148 -0
  350. package/lib/render/overviewMap/gaps.js.map +1 -0
  351. package/lib/render/overviewMap/geometry.d.ts +139 -0
  352. package/lib/render/overviewMap/geometry.js +245 -0
  353. package/lib/render/overviewMap/geometry.js.map +1 -0
  354. package/lib/render/overviewMap/heatView.d.ts +91 -0
  355. package/lib/render/overviewMap/heatView.js +143 -0
  356. package/lib/render/overviewMap/heatView.js.map +1 -0
  357. package/lib/render/overviewMap/hotelView.d.ts +82 -0
  358. package/lib/render/overviewMap/hotelView.js +136 -0
  359. package/lib/render/overviewMap/hotelView.js.map +1 -0
  360. package/lib/render/overviewMap/model.d.ts +97 -0
  361. package/lib/render/overviewMap/model.js +116 -0
  362. package/lib/render/overviewMap/model.js.map +1 -0
  363. package/lib/render/overviewMap/paint.d.ts +63 -0
  364. package/lib/render/overviewMap/paint.js +168 -0
  365. package/lib/render/overviewMap/paint.js.map +1 -0
  366. package/lib/render/overviewMap/style.d.ts +46 -0
  367. package/lib/render/overviewMap/style.js +117 -0
  368. package/lib/render/overviewMap/style.js.map +1 -0
  369. package/lib/render/overviewMap/tierView.d.ts +103 -0
  370. package/lib/render/overviewMap/tierView.js +209 -0
  371. package/lib/render/overviewMap/tierView.js.map +1 -0
  372. package/lib/render/overviewMap/viewMark.d.ts +69 -0
  373. package/lib/render/overviewMap/viewMark.js +103 -0
  374. package/lib/render/overviewMap/viewMark.js.map +1 -0
  375. package/lib/render/overviewMap/views.d.ts +24 -0
  376. package/lib/render/overviewMap/views.js +29 -0
  377. package/lib/render/overviewMap/views.js.map +1 -0
  378. package/lib/render/pinchTracker.d.ts +91 -0
  379. package/lib/render/pinchTracker.js +145 -0
  380. package/lib/render/pinchTracker.js.map +1 -0
  381. package/lib/render/pixelSprites/amusements.d.ts +32 -0
  382. package/lib/render/pixelSprites/amusements.js +243 -0
  383. package/lib/render/pixelSprites/amusements.js.map +1 -0
  384. package/lib/render/pixelSprites/artScale.d.ts +97 -0
  385. package/lib/render/pixelSprites/artScale.js +151 -0
  386. package/lib/render/pixelSprites/artScale.js.map +1 -0
  387. package/lib/render/pixelSprites/boutique.d.ts +30 -0
  388. package/lib/render/pixelSprites/boutique.js +244 -0
  389. package/lib/render/pixelSprites/boutique.js.map +1 -0
  390. package/lib/render/pixelSprites/clinic.d.ts +30 -0
  391. package/lib/render/pixelSprites/clinic.js +184 -0
  392. package/lib/render/pixelSprites/clinic.js.map +1 -0
  393. package/lib/render/pixelSprites/common.d.ts +185 -0
  394. package/lib/render/pixelSprites/common.js +449 -0
  395. package/lib/render/pixelSprites/common.js.map +1 -0
  396. package/lib/render/pixelSprites/daycare.d.ts +3 -0
  397. package/lib/render/pixelSprites/daycare.js +99 -0
  398. package/lib/render/pixelSprites/daycare.js.map +1 -0
  399. package/lib/render/pixelSprites/dollhouse.d.ts +45 -0
  400. package/lib/render/pixelSprites/dollhouse.js +110 -0
  401. package/lib/render/pixelSprites/dollhouse.js.map +1 -0
  402. package/lib/render/pixelSprites/fitness.d.ts +30 -0
  403. package/lib/render/pixelSprites/fitness.js +176 -0
  404. package/lib/render/pixelSprites/fitness.js.map +1 -0
  405. package/lib/render/pixelSprites/food.d.ts +27 -0
  406. package/lib/render/pixelSprites/food.interiors.d.ts +38 -0
  407. package/lib/render/pixelSprites/food.interiors.js +516 -0
  408. package/lib/render/pixelSprites/food.interiors.js.map +1 -0
  409. package/lib/render/pixelSprites/food.js +36 -0
  410. package/lib/render/pixelSprites/food.js.map +1 -0
  411. package/lib/render/pixelSprites/food.kit.d.ts +50 -0
  412. package/lib/render/pixelSprites/food.kit.js +140 -0
  413. package/lib/render/pixelSprites/food.kit.js.map +1 -0
  414. package/lib/render/pixelSprites/food.looks.d.ts +45 -0
  415. package/lib/render/pixelSprites/food.looks.js +56 -0
  416. package/lib/render/pixelSprites/food.looks.js.map +1 -0
  417. package/lib/render/pixelSprites/layers.d.ts +49 -0
  418. package/lib/render/pixelSprites/layers.js +61 -0
  419. package/lib/render/pixelSprites/layers.js.map +1 -0
  420. package/lib/render/pixelSprites/nightclub.d.ts +3 -0
  421. package/lib/render/pixelSprites/nightclub.js +108 -0
  422. package/lib/render/pixelSprites/nightclub.js.map +1 -0
  423. package/lib/render/pixelSprites/people.d.ts +168 -0
  424. package/lib/render/pixelSprites/people.js +431 -0
  425. package/lib/render/pixelSprites/people.js.map +1 -0
  426. package/lib/render/pixelSprites/residential.d.ts +5 -0
  427. package/lib/render/pixelSprites/residential.js +506 -0
  428. package/lib/render/pixelSprites/residential.js.map +1 -0
  429. package/lib/render/pixelSprites/residential.looks.d.ts +40 -0
  430. package/lib/render/pixelSprites/residential.looks.js +43 -0
  431. package/lib/render/pixelSprites/residential.looks.js.map +1 -0
  432. package/lib/render/pixelSprites/residential.roaches.d.ts +38 -0
  433. package/lib/render/pixelSprites/residential.roaches.js +88 -0
  434. package/lib/render/pixelSprites/residential.roaches.js.map +1 -0
  435. package/lib/render/pixelSprites/residentialRentalSprites.d.ts +11 -0
  436. package/lib/render/pixelSprites/residentialRentalSprites.js +19 -0
  437. package/lib/render/pixelSprites/residentialRentalSprites.js.map +1 -0
  438. package/lib/render/pixelSprites/shop.d.ts +14 -0
  439. package/lib/render/pixelSprites/shop.interiors.d.ts +50 -0
  440. package/lib/render/pixelSprites/shop.interiors.js +382 -0
  441. package/lib/render/pixelSprites/shop.interiors.js.map +1 -0
  442. package/lib/render/pixelSprites/shop.js +72 -0
  443. package/lib/render/pixelSprites/shop.js.map +1 -0
  444. package/lib/render/pixelSprites/shop.looks.d.ts +17 -0
  445. package/lib/render/pixelSprites/shop.looks.js +24 -0
  446. package/lib/render/pixelSprites/shop.looks.js.map +1 -0
  447. package/lib/render/pixelSprites/skyBar.d.ts +11 -0
  448. package/lib/render/pixelSprites/skyBar.js +125 -0
  449. package/lib/render/pixelSprites/skyBar.js.map +1 -0
  450. package/lib/render/pixelSprites/spa.d.ts +3 -0
  451. package/lib/render/pixelSprites/spa.js +88 -0
  452. package/lib/render/pixelSprites/spa.js.map +1 -0
  453. package/lib/render/pixelSprites.d.ts +33 -0
  454. package/lib/render/pixelSprites.js +167 -0
  455. package/lib/render/pixelSprites.js.map +1 -0
  456. package/lib/render/regionGrid.d.ts +49 -0
  457. package/lib/render/regionGrid.js +82 -0
  458. package/lib/render/regionGrid.js.map +1 -0
  459. package/lib/render/regionPaint.d.ts +15 -0
  460. package/lib/render/regionPaint.js +33 -0
  461. package/lib/render/regionPaint.js.map +1 -0
  462. package/lib/render/renderSim.d.ts +104 -0
  463. package/lib/render/renderSim.js +2 -0
  464. package/lib/render/renderSim.js.map +1 -0
  465. package/lib/render/roomPortrait.d.ts +35 -0
  466. package/lib/render/roomPortrait.js +142 -0
  467. package/lib/render/roomPortrait.js.map +1 -0
  468. package/lib/render/roomShading.d.ts +29 -0
  469. package/lib/render/roomShading.js +43 -0
  470. package/lib/render/roomShading.js.map +1 -0
  471. package/lib/render/scale.d.ts +31 -0
  472. package/lib/render/scale.js +34 -0
  473. package/lib/render/scale.js.map +1 -0
  474. package/lib/render/sceneryLayout.d.ts +234 -0
  475. package/lib/render/sceneryLayout.js +199 -0
  476. package/lib/render/sceneryLayout.js.map +1 -0
  477. package/lib/render/sprites/common.d.ts +41 -0
  478. package/lib/render/sprites/common.js +46 -0
  479. package/lib/render/sprites/common.js.map +1 -0
  480. package/lib/render/sprites/escalator.d.ts +27 -0
  481. package/lib/render/sprites/escalator.js +156 -0
  482. package/lib/render/sprites/escalator.js.map +1 -0
  483. package/lib/render/sprites/events.d.ts +56 -0
  484. package/lib/render/sprites/events.js +280 -0
  485. package/lib/render/sprites/events.js.map +1 -0
  486. package/lib/render/sprites/facilities/garage.d.ts +23 -0
  487. package/lib/render/sprites/facilities/garage.js +230 -0
  488. package/lib/render/sprites/facilities/garage.js.map +1 -0
  489. package/lib/render/sprites/facilities/recycling.d.ts +3 -0
  490. package/lib/render/sprites/facilities/recycling.js +210 -0
  491. package/lib/render/sprites/facilities/recycling.js.map +1 -0
  492. package/lib/render/sprites/facilities/recyclingLook.d.ts +49 -0
  493. package/lib/render/sprites/facilities/recyclingLook.js +52 -0
  494. package/lib/render/sprites/facilities/recyclingLook.js.map +1 -0
  495. package/lib/render/sprites/facilities/service.d.ts +14 -0
  496. package/lib/render/sprites/facilities/service.js +437 -0
  497. package/lib/render/sprites/facilities/service.js.map +1 -0
  498. package/lib/render/sprites/facilities/serviceKit.d.ts +61 -0
  499. package/lib/render/sprites/facilities/serviceKit.js +113 -0
  500. package/lib/render/sprites/facilities/serviceKit.js.map +1 -0
  501. package/lib/render/sprites/facilities/vehicles.d.ts +38 -0
  502. package/lib/render/sprites/facilities/vehicles.js +276 -0
  503. package/lib/render/sprites/facilities/vehicles.js.map +1 -0
  504. package/lib/render/sprites/facilities/venue.d.ts +28 -0
  505. package/lib/render/sprites/facilities/venue.js +211 -0
  506. package/lib/render/sprites/facilities/venue.js.map +1 -0
  507. package/lib/render/sprites/facilities/weddingHall.d.ts +9 -0
  508. package/lib/render/sprites/facilities/weddingHall.js +410 -0
  509. package/lib/render/sprites/facilities/weddingHall.js.map +1 -0
  510. package/lib/render/sprites/facilities.d.ts +22 -0
  511. package/lib/render/sprites/facilities.js +24 -0
  512. package/lib/render/sprites/facilities.js.map +1 -0
  513. package/lib/render/sprites/helicopter.d.ts +11 -0
  514. package/lib/render/sprites/helicopter.js +60 -0
  515. package/lib/render/sprites/helicopter.js.map +1 -0
  516. package/lib/render/sprites/sky.d.ts +67 -0
  517. package/lib/render/sprites/sky.js +85 -0
  518. package/lib/render/sprites/sky.js.map +1 -0
  519. package/lib/render/sprites/spiralStair.d.ts +19 -0
  520. package/lib/render/sprites/spiralStair.js +111 -0
  521. package/lib/render/sprites/spiralStair.js.map +1 -0
  522. package/lib/render/sprites/structure/entrance.d.ts +35 -0
  523. package/lib/render/sprites/structure/entrance.js +347 -0
  524. package/lib/render/sprites/structure/entrance.js.map +1 -0
  525. package/lib/render/sprites/structure/lobby.d.ts +88 -0
  526. package/lib/render/sprites/structure/lobby.js +350 -0
  527. package/lib/render/sprites/structure/lobby.js.map +1 -0
  528. package/lib/render/sprites/structure/revolvingDoor.d.ts +53 -0
  529. package/lib/render/sprites/structure/revolvingDoor.js +184 -0
  530. package/lib/render/sprites/structure/revolvingDoor.js.map +1 -0
  531. package/lib/render/sprites/structure/rooftop.d.ts +93 -0
  532. package/lib/render/sprites/structure/rooftop.js +302 -0
  533. package/lib/render/sprites/structure/rooftop.js.map +1 -0
  534. package/lib/render/sprites/structure/shell.d.ts +19 -0
  535. package/lib/render/sprites/structure/shell.js +142 -0
  536. package/lib/render/sprites/structure/shell.js.map +1 -0
  537. package/lib/render/sprites/structure/skyBridge.d.ts +28 -0
  538. package/lib/render/sprites/structure/skyBridge.js +259 -0
  539. package/lib/render/sprites/structure/skyBridge.js.map +1 -0
  540. package/lib/render/sprites/structure/tallLobby.d.ts +8 -0
  541. package/lib/render/sprites/structure/tallLobby.js +166 -0
  542. package/lib/render/sprites/structure/tallLobby.js.map +1 -0
  543. package/lib/render/sprites/structure/tallLobbyPieces.d.ts +18 -0
  544. package/lib/render/sprites/structure/tallLobbyPieces.js +82 -0
  545. package/lib/render/sprites/structure/tallLobbyPieces.js.map +1 -0
  546. package/lib/render/sprites/structure.d.ts +15 -0
  547. package/lib/render/sprites/structure.js +16 -0
  548. package/lib/render/sprites/structure.js.map +1 -0
  549. package/lib/render/sprites/transport.d.ts +30 -0
  550. package/lib/render/sprites/transport.js +376 -0
  551. package/lib/render/sprites/transport.js.map +1 -0
  552. package/lib/render/sprites.d.ts +16 -0
  553. package/lib/render/sprites.js +108 -0
  554. package/lib/render/sprites.js.map +1 -0
  555. package/lib/render/venueFlights.d.ts +61 -0
  556. package/lib/render/venueFlights.js +50 -0
  557. package/lib/render/venueFlights.js.map +1 -0
  558. package/lib/shared/engineTypes.d.ts +256 -0
  559. package/lib/shared/engineTypes.js +8 -0
  560. package/lib/shared/engineTypes.js.map +1 -0
  561. package/lib/shared/floorRuns.d.ts +22 -0
  562. package/lib/shared/floorRuns.js +39 -0
  563. package/lib/shared/floorRuns.js.map +1 -0
  564. package/lib/shared/inputEvents.d.ts +18 -0
  565. package/lib/shared/inputEvents.js +23 -0
  566. package/lib/shared/inputEvents.js.map +1 -0
  567. package/lib/shared/serializedGame.d.ts +142 -0
  568. package/lib/shared/serializedGame.js +2 -0
  569. package/lib/shared/serializedGame.js.map +1 -0
  570. package/lib/shared/types.d.ts +298 -0
  571. package/lib/shared/types.js +47 -0
  572. package/lib/shared/types.js.map +1 -0
  573. package/lib/shared/unitState.d.ts +36 -0
  574. package/lib/shared/unitState.js +42 -0
  575. package/lib/shared/unitState.js.map +1 -0
  576. package/lib/shared/vacateReasonText.d.ts +20 -0
  577. package/lib/shared/vacateReasonText.js +23 -0
  578. package/lib/shared/vacateReasonText.js.map +1 -0
  579. package/lib/shared/viewZoom.d.ts +14 -0
  580. package/lib/shared/viewZoom.js +17 -0
  581. package/lib/shared/viewZoom.js.map +1 -0
  582. package/lib/shared/wellFormed.d.ts +14 -0
  583. package/lib/shared/wellFormed.js +19 -0
  584. package/lib/shared/wellFormed.js.map +1 -0
  585. package/lib/simport/cards.d.ts +26 -0
  586. package/lib/simport/cards.js +138 -0
  587. package/lib/simport/cards.js.map +1 -0
  588. package/lib/simport/clockView.d.ts +24 -0
  589. package/lib/simport/clockView.js +43 -0
  590. package/lib/simport/clockView.js.map +1 -0
  591. package/lib/simport/commands.d.ts +215 -0
  592. package/lib/simport/commands.js +2 -0
  593. package/lib/simport/commands.js.map +1 -0
  594. package/lib/simport/emergencyReads.d.ts +19 -0
  595. package/lib/simport/emergencyReads.js +47 -0
  596. package/lib/simport/emergencyReads.js.map +1 -0
  597. package/lib/simport/enginePort.d.ts +433 -0
  598. package/lib/simport/enginePort.js +11 -0
  599. package/lib/simport/enginePort.js.map +1 -0
  600. package/lib/simport/fixtures/catalog.classic.json +2137 -0
  601. package/lib/simport/fixtures/catalog.modern.json +2515 -0
  602. package/lib/simport/fixtures/viewLayout.json +927 -0
  603. package/lib/simport/headerClock.d.ts +31 -0
  604. package/lib/simport/headerClock.js +29 -0
  605. package/lib/simport/headerClock.js.map +1 -0
  606. package/lib/simport/panels.d.ts +243 -0
  607. package/lib/simport/panels.js +2 -0
  608. package/lib/simport/panels.js.map +1 -0
  609. package/lib/simport/personCards.d.ts +63 -0
  610. package/lib/simport/personCards.js +55 -0
  611. package/lib/simport/personCards.js.map +1 -0
  612. package/lib/simport/portCodes.d.ts +41 -0
  613. package/lib/simport/portCodes.js +49 -0
  614. package/lib/simport/portCodes.js.map +1 -0
  615. package/lib/simport/portEvents.d.ts +39 -0
  616. package/lib/simport/portEvents.js +43 -0
  617. package/lib/simport/portEvents.js.map +1 -0
  618. package/lib/simport/portRenderSim.d.ts +70 -0
  619. package/lib/simport/portRenderSim.js +129 -0
  620. package/lib/simport/portRenderSim.js.map +1 -0
  621. package/lib/simport/queries.d.ts +64 -0
  622. package/lib/simport/queries.js +30 -0
  623. package/lib/simport/queries.js.map +1 -0
  624. package/lib/simport/recyclingPort.d.ts +13 -0
  625. package/lib/simport/recyclingPort.js +2 -0
  626. package/lib/simport/recyclingPort.js.map +1 -0
  627. package/lib/simport/request.d.ts +44 -0
  628. package/lib/simport/request.js +214 -0
  629. package/lib/simport/request.js.map +1 -0
  630. package/lib/simport/roomTiers.d.ts +102 -0
  631. package/lib/simport/roomTiers.js +122 -0
  632. package/lib/simport/roomTiers.js.map +1 -0
  633. package/lib/simport/scheduleSlots.d.ts +19 -0
  634. package/lib/simport/scheduleSlots.js +87 -0
  635. package/lib/simport/scheduleSlots.js.map +1 -0
  636. package/lib/simport/skyBridgePort.d.ts +20 -0
  637. package/lib/simport/skyBridgePort.js +2 -0
  638. package/lib/simport/skyBridgePort.js.map +1 -0
  639. package/lib/simport/skyBridgeView.d.ts +15 -0
  640. package/lib/simport/skyBridgeView.js +42 -0
  641. package/lib/simport/skyBridgeView.js.map +1 -0
  642. package/lib/simport/statsSheet.d.ts +15 -0
  643. package/lib/simport/statsSheet.js +101 -0
  644. package/lib/simport/statsSheet.js.map +1 -0
  645. package/lib/simport/tdtRecords.d.ts +9 -0
  646. package/lib/simport/tdtRecords.js +112 -0
  647. package/lib/simport/tdtRecords.js.map +1 -0
  648. package/lib/simport/tdtReportFacts.d.ts +110 -0
  649. package/lib/simport/tdtReportFacts.js +8 -0
  650. package/lib/simport/tdtReportFacts.js.map +1 -0
  651. package/lib/simport/trafficPort.d.ts +22 -0
  652. package/lib/simport/trafficPort.js +2 -0
  653. package/lib/simport/trafficPort.js.map +1 -0
  654. package/lib/simport/view.d.ts +275 -0
  655. package/lib/simport/view.js +2 -0
  656. package/lib/simport/view.js.map +1 -0
  657. package/lib/simport/viewReader.d.ts +89 -0
  658. package/lib/simport/viewReader.js +426 -0
  659. package/lib/simport/viewReader.js.map +1 -0
  660. package/lib/styles/game/appearance.css +108 -0
  661. package/lib/styles/game/base.css +68 -0
  662. package/lib/styles/game/components.css +69 -0
  663. package/lib/styles/game/desk-title.css +183 -0
  664. package/lib/styles/game/desk.css +487 -0
  665. package/lib/styles/game/dialogs.css +360 -0
  666. package/lib/styles/game/editor-sidebar.css +116 -0
  667. package/lib/styles/game/elevator-schedule.css +217 -0
  668. package/lib/styles/game/file-dialog.css +470 -0
  669. package/lib/styles/game/help.css +141 -0
  670. package/lib/styles/game/launch-fireworks.css +17 -0
  671. package/lib/styles/game/media-landscape.css +333 -0
  672. package/lib/styles/game/media-phone.css +303 -0
  673. package/lib/styles/game/media-tablet-touch.css +177 -0
  674. package/lib/styles/game/menubar.css +158 -0
  675. package/lib/styles/game/new-tower.css +219 -0
  676. package/lib/styles/game/onboarding.css +32 -0
  677. package/lib/styles/game/screen-saver.css +85 -0
  678. package/lib/styles/game/splash.css +413 -0
  679. package/lib/styles/game/stats-saves.css +106 -0
  680. package/lib/styles/game/tools-stage.css +340 -0
  681. package/lib/styles/game/topbar.css +191 -0
  682. package/lib/styles/menu-bar.css +108 -0
  683. package/lib/styles/not-found.css +335 -0
  684. package/lib/styles/overview-map-views.css +88 -0
  685. package/lib/styles/overview-map.css +195 -0
  686. package/lib/styles/retro-components.css +179 -0
  687. package/lib/styles/retro-page.css +254 -0
  688. package/lib/styles/retro-tokens.css +122 -0
  689. package/lib/styles/schemes/high-contrast.css +173 -0
  690. package/lib/styles/schemes/skyline.css +134 -0
  691. package/lib/styles.css +66 -0
  692. package/lib/ui/desk/deskGeometry.d.ts +59 -0
  693. package/lib/ui/desk/deskGeometry.js +106 -0
  694. package/lib/ui/desk/deskGeometry.js.map +1 -0
  695. package/lib/ui/desk/deskWindow.d.ts +90 -0
  696. package/lib/ui/desk/deskWindow.js +253 -0
  697. package/lib/ui/desk/deskWindow.js.map +1 -0
  698. package/lib/ui/desk/deskWindowMenu.d.ts +55 -0
  699. package/lib/ui/desk/deskWindowMenu.js +143 -0
  700. package/lib/ui/desk/deskWindowMenu.js.map +1 -0
  701. package/lib/ui/escape.d.ts +1 -0
  702. package/lib/ui/escape.js +14 -0
  703. package/lib/ui/escape.js.map +1 -0
  704. package/lib/ui/format.d.ts +14 -0
  705. package/lib/ui/format.js +36 -0
  706. package/lib/ui/format.js.map +1 -0
  707. package/lib/ui/iconPaths.generated.d.ts +4 -0
  708. package/lib/ui/iconPaths.generated.js +68 -0
  709. package/lib/ui/iconPaths.generated.js.map +1 -0
  710. package/lib/ui/icons.d.ts +83 -0
  711. package/lib/ui/icons.js +156 -0
  712. package/lib/ui/icons.js.map +1 -0
  713. package/lib/ui/menuBar.d.ts +94 -0
  714. package/lib/ui/menuBar.js +361 -0
  715. package/lib/ui/menuBar.js.map +1 -0
  716. package/lib/ui/modalPrecedence.d.ts +108 -0
  717. package/lib/ui/modalPrecedence.js +165 -0
  718. package/lib/ui/modalPrecedence.js.map +1 -0
  719. package/lib/ui/movableWindow.d.ts +124 -0
  720. package/lib/ui/movableWindow.js +247 -0
  721. package/lib/ui/movableWindow.js.map +1 -0
  722. package/lib/ui/overviewMapInput.d.ts +109 -0
  723. package/lib/ui/overviewMapInput.js +135 -0
  724. package/lib/ui/overviewMapInput.js.map +1 -0
  725. package/lib/ui/uiModal.d.ts +38 -0
  726. package/lib/ui/uiModal.js +70 -0
  727. package/lib/ui/uiModal.js.map +1 -0
  728. package/lib/wasmhost/buildSection.d.ts +54 -0
  729. package/lib/wasmhost/buildSection.js +143 -0
  730. package/lib/wasmhost/buildSection.js.map +1 -0
  731. package/lib/wasmhost/catalogCheck.d.ts +11 -0
  732. package/lib/wasmhost/catalogCheck.js +43 -0
  733. package/lib/wasmhost/catalogCheck.js.map +1 -0
  734. package/lib/wasmhost/engineAssets.d.ts +57 -0
  735. package/lib/wasmhost/engineAssets.js +63 -0
  736. package/lib/wasmhost/engineAssets.js.map +1 -0
  737. package/lib/wasmhost/engineBoot.d.ts +165 -0
  738. package/lib/wasmhost/engineBoot.js +254 -0
  739. package/lib/wasmhost/engineBoot.js.map +1 -0
  740. package/lib/wasmhost/engineChoice.d.ts +6 -0
  741. package/lib/wasmhost/engineChoice.js +2 -0
  742. package/lib/wasmhost/engineChoice.js.map +1 -0
  743. package/lib/wasmhost/engineDiagnostics.d.ts +66 -0
  744. package/lib/wasmhost/engineDiagnostics.js +189 -0
  745. package/lib/wasmhost/engineDiagnostics.js.map +1 -0
  746. package/lib/wasmhost/engineDiagnosticsLive.d.ts +15 -0
  747. package/lib/wasmhost/engineDiagnosticsLive.js +31 -0
  748. package/lib/wasmhost/engineDiagnosticsLive.js.map +1 -0
  749. package/lib/wasmhost/engineIdentity.d.ts +30 -0
  750. package/lib/wasmhost/engineIdentity.js +59 -0
  751. package/lib/wasmhost/engineIdentity.js.map +1 -0
  752. package/lib/wasmhost/engineLabel.d.ts +40 -0
  753. package/lib/wasmhost/engineLabel.js +50 -0
  754. package/lib/wasmhost/engineLabel.js.map +1 -0
  755. package/lib/wasmhost/engineLoad.d.ts +48 -0
  756. package/lib/wasmhost/engineLoad.js +53 -0
  757. package/lib/wasmhost/engineLoad.js.map +1 -0
  758. package/lib/wasmhost/enginePackageCheck.d.ts +77 -0
  759. package/lib/wasmhost/enginePackageCheck.js +274 -0
  760. package/lib/wasmhost/enginePackageCheck.js.map +1 -0
  761. package/lib/wasmhost/enginePackageNames.d.ts +25 -0
  762. package/lib/wasmhost/enginePackageNames.js +28 -0
  763. package/lib/wasmhost/enginePackageNames.js.map +1 -0
  764. package/lib/wasmhost/enginePackageRecord.d.ts +78 -0
  765. package/lib/wasmhost/enginePackageRecord.js +108 -0
  766. package/lib/wasmhost/enginePackageRecord.js.map +1 -0
  767. package/lib/wasmhost/engineRepair.d.ts +55 -0
  768. package/lib/wasmhost/engineRepair.js +183 -0
  769. package/lib/wasmhost/engineRepair.js.map +1 -0
  770. package/lib/wasmhost/frameView.d.ts +87 -0
  771. package/lib/wasmhost/frameView.js +133 -0
  772. package/lib/wasmhost/frameView.js.map +1 -0
  773. package/lib/wasmhost/hostFault.d.ts +40 -0
  774. package/lib/wasmhost/hostFault.js +94 -0
  775. package/lib/wasmhost/hostFault.js.map +1 -0
  776. package/lib/wasmhost/loadEngineModule.d.ts +79 -0
  777. package/lib/wasmhost/loadEngineModule.js +66 -0
  778. package/lib/wasmhost/loadEngineModule.js.map +1 -0
  779. package/lib/wasmhost/packageHash.d.ts +48 -0
  780. package/lib/wasmhost/packageHash.js +436 -0
  781. package/lib/wasmhost/packageHash.js.map +1 -0
  782. package/lib/wasmhost/rustEngine.d.ts +49 -0
  783. package/lib/wasmhost/rustEngine.js +63 -0
  784. package/lib/wasmhost/rustEngine.js.map +1 -0
  785. package/lib/wasmhost/slotPopulation.d.ts +19 -0
  786. package/lib/wasmhost/slotPopulation.js +69 -0
  787. package/lib/wasmhost/slotPopulation.js.map +1 -0
  788. package/lib/wasmhost/telemetry.d.ts +31 -0
  789. package/lib/wasmhost/telemetry.js +13 -0
  790. package/lib/wasmhost/telemetry.js.map +1 -0
  791. package/package.json +80 -4
@@ -0,0 +1,107 @@
1
+ import { CRANE_H } from './sprites/structure/rooftop.js';
2
+ import { FLOOR } from './scale.js';
3
+
4
+ /**
5
+ * Pure camera-bounds math, split out from the Excalibur-bound {@link TowerEngine}
6
+ * so it can be unit-tested without a canvas/WebGL context.
7
+ */
8
+ /** Stories the wedding hall rises above the top floor (it stands on floor 100 and is
9
+ * five stories tall), so its spire needs the same sky the crane does. */
10
+ const WEDDING_HALL_RISE_FLOORS = 4;
11
+ /** Sky floors above the top buildable floor the camera may reveal. Derived
12
+ * from the rooftop crane's height (plus a breath above the beacon) instead of
13
+ * a hardcoded count: the crane perches ON the top floor and rises CRANE_H
14
+ * world px above it, so a fixed 2-floor headroom (fine for the original
15
+ * 76 px crane) would clip the scaled crane's apex at floors 98-99 at every
16
+ * legal zoom. Deriving keeps any future CRANE_SCALE retune from silently
17
+ * decapitating it again. The value is a FLOOR COUNT, not pixels, and the
18
+ * ratio is scale-free: CRANE_H and FLOOR come from the same render-scale
19
+ * family, so "how many floors tall is the crane" transfers to any floorPx a
20
+ * caller passes to clampCameraY, which multiplies the count by that
21
+ * caller's own floor size. */
22
+ const SKY_HEADROOM_FLOORS = Math.max(Math.ceil(CRANE_H / FLOOR), WEDDING_HALL_RISE_FLOORS) + 1;
23
+ /**
24
+ * Clamp the camera's vertical *center* so the visible window stays within the
25
+ * meaningful world — from a little sky above the top floor down to just past the
26
+ * deepest buildable basement. Crucially it accounts for zoom: it bounds the
27
+ * visible top/bottom *edges*, not the center, so zooming or panning out can
28
+ * never reveal empty void below the ground (you can't build below the basement
29
+ * limit, so there is nothing down there to show).
30
+ *
31
+ * World Y grows downward and floor `f` sits at `y = -f * floorPx`, so the top of
32
+ * the world (highest floor) is the most-negative Y and basements are positive Y.
33
+ *
34
+ * @param desiredY the camera-center Y the player is trying to move to; a
35
+ * non-finite value falls back to the world midpoint
36
+ * @param viewHeight viewport height in screen pixels
37
+ * @param zoom camera zoom (screen pixels per world pixel); non-positive or
38
+ * non-finite values fall back to 1 so the result stays finite
39
+ * @param floorPx height of one floor in world pixels
40
+ * @param minFloor deepest buildable floor (e.g. -9 for B10)
41
+ * @param maxFloor highest buildable floor
42
+ */
43
+ function clampCameraY(desiredY, viewHeight, zoom, floorPx, minFloor, maxFloor) {
44
+ // Guard against a zero/negative/NaN zoom so half-height (and the result) can
45
+ // never become Infinity/NaN, regardless of what a caller passes.
46
+ const safeZoom = Number.isFinite(zoom) && zoom > 0 ? zoom : 1;
47
+ const halfH = viewHeight / 2 / safeZoom;
48
+ const topY = -(maxFloor + SKY_HEADROOM_FLOORS) * floorPx; // sky above the top floor, crane included
49
+ const bottomY = -(minFloor - 2) * floorPx; // ~2 floors of dirt below the basement
50
+ // If the whole world is shorter than the viewport (very zoomed out), pin the
51
+ // ground to the bottom of the screen and let sky fill the rest, rather than
52
+ // letting the tower float over empty void.
53
+ if (bottomY - topY <= 2 * halfH)
54
+ return bottomY - halfH;
55
+ // Normalize a non-finite target (NaN/Infinity) to the world midpoint so the
56
+ // Math.min/Math.max below can't propagate NaN — the result is always finite.
57
+ const target = Number.isFinite(desiredY) ? desiredY : (topY + bottomY) / 2;
58
+ // Keep the visible window inside [topY, bottomY].
59
+ return Math.max(topY + halfH, Math.min(bottomY - halfH, target));
60
+ }
61
+ /** A little sky above the tower's top floor at the fully-fit zoom, so the roof
62
+ * isn't jammed against the status bar when you pinch all the way out. */
63
+ const FIT_SKY_FLOORS = 6;
64
+ /** Smallest span the fit zoom pretends the tower has. Two jobs: it stops an
65
+ * empty or tiny tower from dividing by ~0 (which would let the fit zoom out to
66
+ * nothing and fling the camera), and it gives a short starter tower comfortable
67
+ * framing instead of an ocean of empty sky. */
68
+ const MIN_FIT_SPAN_FLOORS = 24;
69
+ /** The fit floor never rises ABOVE this, so zooming out always does something.
70
+ * Without it, a tiny tower on a tall viewport (a tablet in portrait) could
71
+ * compute a fit zoom above the resting zoom and lock the player out of zooming
72
+ * out at all. Past this the tower already fits with room to spare, so any
73
+ * further pull-back is pure overview and safe to allow. */
74
+ const MAX_FIT_ZOOM = 0.6;
75
+ /**
76
+ * The most-zoomed-out (smallest) zoom the camera should reach for a tower of a
77
+ * given built span: far enough that the whole tower plus a breath of sky fits
78
+ * the viewport, but never so far that a short tower drifts into empty void, and
79
+ * never so restrictive that a small tower can't zoom out at all.
80
+ *
81
+ * This is the tower-aware GESTURE floor the renderer layers on top of the fixed
82
+ * trust-boundary floor (`VIEW_ZOOM_MIN`). It computes the limit from the world
83
+ * the way {@link clampCameraY} does, rather than hardcoding a single number that
84
+ * fits every tower badly.
85
+ *
86
+ * @param viewHeight viewport height in screen pixels; a non-positive or
87
+ * non-finite value falls back to 1 so the result stays finite
88
+ * @param spanFloors built tower height in floors (top built floor minus bottom
89
+ * built floor, basements included); values below
90
+ * {@link MIN_FIT_SPAN_FLOORS} (or non-finite) are lifted to it
91
+ * @param floorPx height of one floor in world pixels
92
+ * @param hardFloor the absolute minimum zoom (the trust-boundary floor); the
93
+ * result is never below this
94
+ */
95
+ function fitZoom(viewHeight, spanFloors, floorPx, hardFloor) {
96
+ const safeH = Number.isFinite(viewHeight) && viewHeight > 0 ? viewHeight : 1;
97
+ const span = Math.max(MIN_FIT_SPAN_FLOORS, Number.isFinite(spanFloors) ? spanFloors : 0);
98
+ const framed = (span + FIT_SKY_FLOORS) * floorPx; // world height to fit on screen
99
+ const z = safeH / framed;
100
+ // Keep the fit floor inside [hardFloor, MAX_FIT_ZOOM]: never below the hard
101
+ // floor (so a pathological span can't underflow), never above the ceiling (so
102
+ // a small tower on a tall screen can still be zoomed out).
103
+ return Math.max(hardFloor, Math.min(MAX_FIT_ZOOM, z));
104
+ }
105
+
106
+ export { FIT_SKY_FLOORS, MAX_FIT_ZOOM, MIN_FIT_SPAN_FLOORS, SKY_HEADROOM_FLOORS, WEDDING_HALL_RISE_FLOORS, clampCameraY, fitZoom };
107
+ //# sourceMappingURL=cameraBounds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cameraBounds.js","sources":["../../src/render/cameraBounds.ts"],"sourcesContent":["/**\n * Pure camera-bounds math, split out from the Excalibur-bound {@link TowerEngine}\n * so it can be unit-tested without a canvas/WebGL context.\n */\nimport { CRANE_H } from \"./sprites/structure/rooftop\";\nimport { FLOOR } from \"./scale\";\n\n/** Stories the wedding hall rises above the top floor (it stands on floor 100 and is\n * five stories tall), so its spire needs the same sky the crane does. */\nexport const WEDDING_HALL_RISE_FLOORS = 4;\n\n/** Sky floors above the top buildable floor the camera may reveal. Derived\n * from the rooftop crane's height (plus a breath above the beacon) instead of\n * a hardcoded count: the crane perches ON the top floor and rises CRANE_H\n * world px above it, so a fixed 2-floor headroom (fine for the original\n * 76 px crane) would clip the scaled crane's apex at floors 98-99 at every\n * legal zoom. Deriving keeps any future CRANE_SCALE retune from silently\n * decapitating it again. The value is a FLOOR COUNT, not pixels, and the\n * ratio is scale-free: CRANE_H and FLOOR come from the same render-scale\n * family, so \"how many floors tall is the crane\" transfers to any floorPx a\n * caller passes to clampCameraY, which multiplies the count by that\n * caller's own floor size. */\nexport const SKY_HEADROOM_FLOORS = Math.max(Math.ceil(CRANE_H / FLOOR), WEDDING_HALL_RISE_FLOORS) + 1;\n\n/**\n * Clamp the camera's vertical *center* so the visible window stays within the\n * meaningful world — from a little sky above the top floor down to just past the\n * deepest buildable basement. Crucially it accounts for zoom: it bounds the\n * visible top/bottom *edges*, not the center, so zooming or panning out can\n * never reveal empty void below the ground (you can't build below the basement\n * limit, so there is nothing down there to show).\n *\n * World Y grows downward and floor `f` sits at `y = -f * floorPx`, so the top of\n * the world (highest floor) is the most-negative Y and basements are positive Y.\n *\n * @param desiredY the camera-center Y the player is trying to move to; a\n * non-finite value falls back to the world midpoint\n * @param viewHeight viewport height in screen pixels\n * @param zoom camera zoom (screen pixels per world pixel); non-positive or\n * non-finite values fall back to 1 so the result stays finite\n * @param floorPx height of one floor in world pixels\n * @param minFloor deepest buildable floor (e.g. -9 for B10)\n * @param maxFloor highest buildable floor\n */\nexport function clampCameraY(\n desiredY: number,\n viewHeight: number,\n zoom: number,\n floorPx: number,\n minFloor: number,\n maxFloor: number,\n): number {\n // Guard against a zero/negative/NaN zoom so half-height (and the result) can\n // never become Infinity/NaN, regardless of what a caller passes.\n const safeZoom = Number.isFinite(zoom) && zoom > 0 ? zoom : 1;\n const halfH = viewHeight / 2 / safeZoom;\n const topY = -(maxFloor + SKY_HEADROOM_FLOORS) * floorPx; // sky above the top floor, crane included\n const bottomY = -(minFloor - 2) * floorPx; // ~2 floors of dirt below the basement\n\n // If the whole world is shorter than the viewport (very zoomed out), pin the\n // ground to the bottom of the screen and let sky fill the rest, rather than\n // letting the tower float over empty void.\n if (bottomY - topY <= 2 * halfH) return bottomY - halfH;\n\n // Normalize a non-finite target (NaN/Infinity) to the world midpoint so the\n // Math.min/Math.max below can't propagate NaN — the result is always finite.\n const target = Number.isFinite(desiredY) ? desiredY : (topY + bottomY) / 2;\n // Keep the visible window inside [topY, bottomY].\n return Math.max(topY + halfH, Math.min(bottomY - halfH, target));\n}\n\n/** A little sky above the tower's top floor at the fully-fit zoom, so the roof\n * isn't jammed against the status bar when you pinch all the way out. */\nexport const FIT_SKY_FLOORS = 6;\n\n/** Smallest span the fit zoom pretends the tower has. Two jobs: it stops an\n * empty or tiny tower from dividing by ~0 (which would let the fit zoom out to\n * nothing and fling the camera), and it gives a short starter tower comfortable\n * framing instead of an ocean of empty sky. */\nexport const MIN_FIT_SPAN_FLOORS = 24;\n\n/** The fit floor never rises ABOVE this, so zooming out always does something.\n * Without it, a tiny tower on a tall viewport (a tablet in portrait) could\n * compute a fit zoom above the resting zoom and lock the player out of zooming\n * out at all. Past this the tower already fits with room to spare, so any\n * further pull-back is pure overview and safe to allow. */\nexport const MAX_FIT_ZOOM = 0.6;\n\n/**\n * The most-zoomed-out (smallest) zoom the camera should reach for a tower of a\n * given built span: far enough that the whole tower plus a breath of sky fits\n * the viewport, but never so far that a short tower drifts into empty void, and\n * never so restrictive that a small tower can't zoom out at all.\n *\n * This is the tower-aware GESTURE floor the renderer layers on top of the fixed\n * trust-boundary floor (`VIEW_ZOOM_MIN`). It computes the limit from the world\n * the way {@link clampCameraY} does, rather than hardcoding a single number that\n * fits every tower badly.\n *\n * @param viewHeight viewport height in screen pixels; a non-positive or\n * non-finite value falls back to 1 so the result stays finite\n * @param spanFloors built tower height in floors (top built floor minus bottom\n * built floor, basements included); values below\n * {@link MIN_FIT_SPAN_FLOORS} (or non-finite) are lifted to it\n * @param floorPx height of one floor in world pixels\n * @param hardFloor the absolute minimum zoom (the trust-boundary floor); the\n * result is never below this\n */\nexport function fitZoom(viewHeight: number, spanFloors: number, floorPx: number, hardFloor: number): number {\n const safeH = Number.isFinite(viewHeight) && viewHeight > 0 ? viewHeight : 1;\n const span = Math.max(MIN_FIT_SPAN_FLOORS, Number.isFinite(spanFloors) ? spanFloors : 0);\n const framed = (span + FIT_SKY_FLOORS) * floorPx; // world height to fit on screen\n const z = safeH / framed;\n // Keep the fit floor inside [hardFloor, MAX_FIT_ZOOM]: never below the hard\n // floor (so a pathological span can't underflow), never above the ceiling (so\n // a small tower on a tall screen can still be zoomed out).\n return Math.max(hardFloor, Math.min(MAX_FIT_ZOOM, z));\n}\n"],"names":[],"mappings":";;;AAAA;;;AAGG;AAIH;AAC0E;AACnE,MAAM,wBAAwB,GAAG;AAExC;;;;;;;;;;AAU+B;MAClB,mBAAmB,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,EAAE,wBAAwB,CAAC,GAAG;AAEpG;;;;;;;;;;;;;;;;;;;AAmBG;AACG,SAAU,YAAY,CAC1B,QAAgB,EAChB,UAAkB,EAClB,IAAY,EACZ,OAAe,EACf,QAAgB,EAChB,QAAgB,EAAA;;;IAIhB,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC;AAC7D,IAAA,MAAM,KAAK,GAAG,UAAU,GAAG,CAAC,GAAG,QAAQ;AACvC,IAAA,MAAM,IAAI,GAAG,EAAE,QAAQ,GAAG,mBAAmB,CAAC,GAAG,OAAO,CAAC;AACzD,IAAA,MAAM,OAAO,GAAG,EAAE,QAAQ,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;;;;AAK1C,IAAA,IAAI,OAAO,GAAG,IAAI,IAAI,CAAC,GAAG,KAAK;QAAE,OAAO,OAAO,GAAG,KAAK;;;IAIvD,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,CAAC,IAAI,GAAG,OAAO,IAAI,CAAC;;AAE1E,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,KAAK,EAAE,MAAM,CAAC,CAAC;AAClE;AAEA;AAC0E;AACnE,MAAM,cAAc,GAAG;AAE9B;;;AAGgD;AACzC,MAAM,mBAAmB,GAAG;AAEnC;;;;AAI4D;AACrD,MAAM,YAAY,GAAG;AAE5B;;;;;;;;;;;;;;;;;;;AAmBG;AACG,SAAU,OAAO,CAAC,UAAkB,EAAE,UAAkB,EAAE,OAAe,EAAE,SAAiB,EAAA;IAChG,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,UAAU,GAAG,CAAC,GAAG,UAAU,GAAG,CAAC;IAC5E,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC;IACxF,MAAM,MAAM,GAAG,CAAC,IAAI,GAAG,cAAc,IAAI,OAAO,CAAC;AACjD,IAAA,MAAM,CAAC,GAAG,KAAK,GAAG,MAAM;;;;AAIxB,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;AACvD;;"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Pure presentation logic for an elevator car's on-cab indicators, split out
3
+ * from the canvas drawing so the *policy* (how a car's live state maps to what
4
+ * the player sees) is unit-tested independently of any rendering.
5
+ */
6
+ export type CarArrow = "up" | "down" | null;
7
+ export interface CarIndicator {
8
+ /** Riders to draw: one figure per person who walked into the cab, up to as
9
+ * many as it has room for (`cabFit`), so the line that boards is the crowd
10
+ * in the cab (#2116). The car's load never adds figures (3.7.3). */
11
+ riders: number;
12
+ /** Who those riders are: each one's figure (`figureKey`, standing, with
13
+ * their own look and mood), in the crowd's order. The cab draws the first
14
+ * `riders` of them, so a person keeps their look when they step into the
15
+ * car and when they step out. */
16
+ figures: readonly number[];
17
+ /** The figures as one string, for the cab's graphic cache: two cabs with
18
+ * the same people in them share it. */
19
+ cast: string;
20
+ /** Direction lantern: which way the car is moving, or null when idle. */
21
+ arrow: CarArrow;
22
+ /** True once the car is at (or over) capacity — drives the FULL sign. */
23
+ full: boolean;
24
+ }
25
+ /** No riders: the figures of an empty cab. */
26
+ export declare const NO_FIGURES: readonly number[];
27
+ /** The pixel step between riders packed into a full cab, and the margin
28
+ * `drawCar` keeps clear at each side of the cab. */
29
+ export declare const RIDER_STEP = 3;
30
+ /** How many rider figures a cab `cabWidth` pixels wide has room for. */
31
+ export declare function cabFit(cabWidth: number): number;
32
+ /**
33
+ * Map an elevator car's live state to its cab indicators.
34
+ * @param dir −1 descending, 0 idle, +1 ascending
35
+ * @param load the engine's car load (the traffic model's head count), for FULL
36
+ * @param cap car capacity
37
+ * @param fit rider figures the cab has room for (`cabFit`)
38
+ * @param aboard people the crowd shows boarding this car (`countCabRiders`)
39
+ * @param figures who they are (`loadFigures`), and `cast` the same as one string
40
+ */
41
+ export declare function carIndicator(dir: number, load: number, cap: number, fit: number, aboard: number, figures?: readonly number[], cast?: string): CarIndicator;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Pure presentation logic for an elevator car's on-cab indicators, split out
3
+ * from the canvas drawing so the *policy* (how a car's live state maps to what
4
+ * the player sees) is unit-tested independently of any rendering.
5
+ */
6
+ /** No riders: the figures of an empty cab. */
7
+ const NO_FIGURES = [];
8
+ /** The pixel step between riders packed into a full cab, and the margin
9
+ * `drawCar` keeps clear at each side of the cab. */
10
+ const RIDER_STEP = 3;
11
+ const CAB_MARGIN = 8;
12
+ /** How many rider figures a cab `cabWidth` pixels wide has room for. */
13
+ function cabFit(cabWidth) {
14
+ if (!Number.isFinite(cabWidth) || cabWidth <= CAB_MARGIN)
15
+ return 0;
16
+ return Math.floor((cabWidth - CAB_MARGIN) / RIDER_STEP) + 1;
17
+ }
18
+ /**
19
+ * Map an elevator car's live state to its cab indicators.
20
+ * @param dir −1 descending, 0 idle, +1 ascending
21
+ * @param load the engine's car load (the traffic model's head count), for FULL
22
+ * @param cap car capacity
23
+ * @param fit rider figures the cab has room for (`cabFit`)
24
+ * @param aboard people the crowd shows boarding this car (`countCabRiders`)
25
+ * @param figures who they are (`loadFigures`), and `cast` the same as one string
26
+ */
27
+ function carIndicator(dir, load, cap, fit, aboard, figures = NO_FIGURES, cast = "") {
28
+ // Treat any non-finite input as a safe default so a stray NaN can never leak
29
+ // into a cache key or the draw call.
30
+ const validCap = Number.isFinite(cap) && cap > 0;
31
+ const safeLoad = Number.isFinite(load) ? Math.max(0, load) : 0;
32
+ const safeDir = Number.isFinite(dir) ? dir : 0;
33
+ const room = Number.isFinite(fit) ? Math.max(0, Math.floor(fit)) : 0;
34
+ const riders = Number.isFinite(aboard) ? Math.min(room, Math.max(0, Math.floor(aboard))) : 0;
35
+ let arrow = null;
36
+ if (safeDir > 0)
37
+ arrow = "up";
38
+ else if (safeDir < 0)
39
+ arrow = "down";
40
+ const full = validCap && safeLoad >= cap;
41
+ return { riders, figures, cast, arrow, full };
42
+ }
43
+
44
+ export { NO_FIGURES, RIDER_STEP, cabFit, carIndicator };
45
+ //# sourceMappingURL=carIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carIndicator.js","sources":["../../src/render/carIndicator.ts"],"sourcesContent":["/**\n * Pure presentation logic for an elevator car's on-cab indicators, split out\n * from the canvas drawing so the *policy* (how a car's live state maps to what\n * the player sees) is unit-tested independently of any rendering.\n */\n\nexport type CarArrow = \"up\" | \"down\" | null;\n\nexport interface CarIndicator {\n /** Riders to draw: one figure per person who walked into the cab, up to as\n * many as it has room for (`cabFit`), so the line that boards is the crowd\n * in the cab (#2116). The car's load never adds figures (3.7.3). */\n riders: number;\n /** Who those riders are: each one's figure (`figureKey`, standing, with\n * their own look and mood), in the crowd's order. The cab draws the first\n * `riders` of them, so a person keeps their look when they step into the\n * car and when they step out. */\n figures: readonly number[];\n /** The figures as one string, for the cab's graphic cache: two cabs with\n * the same people in them share it. */\n cast: string;\n /** Direction lantern: which way the car is moving, or null when idle. */\n arrow: CarArrow;\n /** True once the car is at (or over) capacity — drives the FULL sign. */\n full: boolean;\n}\n\n/** No riders: the figures of an empty cab. */\nexport const NO_FIGURES: readonly number[] = [];\n\n/** The pixel step between riders packed into a full cab, and the margin\n * `drawCar` keeps clear at each side of the cab. */\nexport const RIDER_STEP = 3;\nconst CAB_MARGIN = 8;\n\n/** How many rider figures a cab `cabWidth` pixels wide has room for. */\nexport function cabFit(cabWidth: number): number {\n if (!Number.isFinite(cabWidth) || cabWidth <= CAB_MARGIN) return 0;\n return Math.floor((cabWidth - CAB_MARGIN) / RIDER_STEP) + 1;\n}\n\n/**\n * Map an elevator car's live state to its cab indicators.\n * @param dir −1 descending, 0 idle, +1 ascending\n * @param load the engine's car load (the traffic model's head count), for FULL\n * @param cap car capacity\n * @param fit rider figures the cab has room for (`cabFit`)\n * @param aboard people the crowd shows boarding this car (`countCabRiders`)\n * @param figures who they are (`loadFigures`), and `cast` the same as one string\n */\nexport function carIndicator(dir: number, load: number, cap: number, fit: number, aboard: number, figures: readonly number[] = NO_FIGURES, cast = \"\"): CarIndicator {\n // Treat any non-finite input as a safe default so a stray NaN can never leak\n // into a cache key or the draw call.\n const validCap = Number.isFinite(cap) && cap > 0;\n const safeLoad = Number.isFinite(load) ? Math.max(0, load) : 0;\n const safeDir = Number.isFinite(dir) ? dir : 0;\n const room = Number.isFinite(fit) ? Math.max(0, Math.floor(fit)) : 0;\n const riders = Number.isFinite(aboard) ? Math.min(room, Math.max(0, Math.floor(aboard))) : 0;\n let arrow: CarArrow = null;\n if (safeDir > 0) arrow = \"up\";\n else if (safeDir < 0) arrow = \"down\";\n const full = validCap && safeLoad >= cap;\n return { riders, figures, cast, arrow, full };\n}\n"],"names":[],"mappings":"AAAA;;;;AAIG;AAuBH;AACO,MAAM,UAAU,GAAsB;AAE7C;AACqD;AAC9C,MAAM,UAAU,GAAG;AAC1B,MAAM,UAAU,GAAG,CAAC;AAEpB;AACM,SAAU,MAAM,CAAC,QAAgB,EAAA;IACrC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,IAAI,UAAU;AAAE,QAAA,OAAO,CAAC;AAClE,IAAA,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC;AAC7D;AAEA;;;;;;;;AAQG;SACa,YAAY,CAAC,GAAW,EAAE,IAAY,EAAE,GAAW,EAAE,GAAW,EAAE,MAAc,EAAE,OAAA,GAA6B,UAAU,EAAE,IAAI,GAAG,EAAE,EAAA;;;AAGlJ,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC;IAChD,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;AAC9D,IAAA,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC;AAC9C,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;AACpE,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;IAC5F,IAAI,KAAK,GAAa,IAAI;IAC1B,IAAI,OAAO,GAAG,CAAC;QAAE,KAAK,GAAG,IAAI;SACxB,IAAI,OAAO,GAAG,CAAC;QAAE,KAAK,GAAG,MAAM;AACpC,IAAA,MAAM,IAAI,GAAG,QAAQ,IAAI,QAAQ,IAAI,GAAG;IACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC/C;;"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The drawn position of an elevator car (GH #688, #2097). The engine moves a
3
+ * car once per sim step, and at the slow speeds a step is a whole game minute
4
+ * of travel that lands a few times a second, or once every second or two in
5
+ * the lunch slowdown. A car that chased each new position and then waited
6
+ * for the next one stopped between floors. So the drawn car glides from where
7
+ * it is drawn to the engine's new position over one step's length, on the
8
+ * same step clock as the people (`crowdLook.ts`): it moves the whole time the
9
+ * engine says it moves, and it reaches a floor when the people waiting there
10
+ * see it arrive. The engine's value stays the only truth for WHERE the car is;
11
+ * this only shapes how the pixels get there. Nothing here reads a clock, so
12
+ * the screenshot generator's stepped TestClock reproduces identical motion.
13
+ */
14
+ /** A gap wider than this snaps instead of gliding: motion-layer rebuilds,
15
+ * loaded saves, and the top speed through the night, where a car can cross
16
+ * more floors in one step than a glide could show. */
17
+ export declare const SNAP_FLOORS = 6;
18
+ export interface CarDrawState {
19
+ /** Drawn shaft position, floors (the unit `Transport.carPositions` uses). */
20
+ pos: number;
21
+ /** Where this step's glide started. */
22
+ from: number;
23
+ /** The engine's position the glide is heading for. */
24
+ to: number;
25
+ }
26
+ export declare function newCarDraw(pos: number): CarDrawState;
27
+ /**
28
+ * Move one car's drawn position on by a frame: on a step (or a new engine
29
+ * position) start from where the car is drawn toward the engine's position,
30
+ * or jump there when the gap is too far to glide; then draw it `progress`
31
+ * (0 to 1) of the way. Mutates and returns `s`.
32
+ */
33
+ export declare function glideCar(s: CarDrawState, target: number, stepped: boolean, progress: number): CarDrawState;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * The drawn position of an elevator car (GH #688, #2097). The engine moves a
3
+ * car once per sim step, and at the slow speeds a step is a whole game minute
4
+ * of travel that lands a few times a second, or once every second or two in
5
+ * the lunch slowdown. A car that chased each new position and then waited
6
+ * for the next one stopped between floors. So the drawn car glides from where
7
+ * it is drawn to the engine's new position over one step's length, on the
8
+ * same step clock as the people (`crowdLook.ts`): it moves the whole time the
9
+ * engine says it moves, and it reaches a floor when the people waiting there
10
+ * see it arrive. The engine's value stays the only truth for WHERE the car is;
11
+ * this only shapes how the pixels get there. Nothing here reads a clock, so
12
+ * the screenshot generator's stepped TestClock reproduces identical motion.
13
+ */
14
+ /** A gap wider than this snaps instead of gliding: motion-layer rebuilds,
15
+ * loaded saves, and the top speed through the night, where a car can cross
16
+ * more floors in one step than a glide could show. */
17
+ const SNAP_FLOORS = 6;
18
+ function newCarDraw(pos) {
19
+ return { pos, from: pos, to: pos };
20
+ }
21
+ /**
22
+ * Move one car's drawn position on by a frame: on a step (or a new engine
23
+ * position) start from where the car is drawn toward the engine's position,
24
+ * or jump there when the gap is too far to glide; then draw it `progress`
25
+ * (0 to 1) of the way. Mutates and returns `s`.
26
+ */
27
+ function glideCar(s, target, stepped, progress) {
28
+ if (!Number.isFinite(target))
29
+ return s;
30
+ if (!Number.isFinite(s.pos))
31
+ s.pos = target;
32
+ if (stepped || target !== s.to) {
33
+ s.from = Math.abs(target - s.pos) > SNAP_FLOORS ? target : s.pos;
34
+ s.to = target;
35
+ }
36
+ const t = Math.min(1, Math.max(0, Number.isFinite(progress) ? progress : 1));
37
+ s.pos = t >= 1 ? s.to : s.from + (s.to - s.from) * t;
38
+ return s;
39
+ }
40
+
41
+ export { SNAP_FLOORS, glideCar, newCarDraw };
42
+ //# sourceMappingURL=carMotion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carMotion.js","sources":["../../src/render/carMotion.ts"],"sourcesContent":["/**\n * The drawn position of an elevator car (GH #688, #2097). The engine moves a\n * car once per sim step, and at the slow speeds a step is a whole game minute\n * of travel that lands a few times a second, or once every second or two in\n * the lunch slowdown. A car that chased each new position and then waited\n * for the next one stopped between floors. So the drawn car glides from where\n * it is drawn to the engine's new position over one step's length, on the\n * same step clock as the people (`crowdLook.ts`): it moves the whole time the\n * engine says it moves, and it reaches a floor when the people waiting there\n * see it arrive. The engine's value stays the only truth for WHERE the car is;\n * this only shapes how the pixels get there. Nothing here reads a clock, so\n * the screenshot generator's stepped TestClock reproduces identical motion.\n */\n\n/** A gap wider than this snaps instead of gliding: motion-layer rebuilds,\n * loaded saves, and the top speed through the night, where a car can cross\n * more floors in one step than a glide could show. */\nexport const SNAP_FLOORS = 6;\n\nexport interface CarDrawState {\n /** Drawn shaft position, floors (the unit `Transport.carPositions` uses). */\n pos: number;\n /** Where this step's glide started. */\n from: number;\n /** The engine's position the glide is heading for. */\n to: number;\n}\n\nexport function newCarDraw(pos: number): CarDrawState {\n return { pos, from: pos, to: pos };\n}\n\n/**\n * Move one car's drawn position on by a frame: on a step (or a new engine\n * position) start from where the car is drawn toward the engine's position,\n * or jump there when the gap is too far to glide; then draw it `progress`\n * (0 to 1) of the way. Mutates and returns `s`.\n */\nexport function glideCar(s: CarDrawState, target: number, stepped: boolean, progress: number): CarDrawState {\n if (!Number.isFinite(target)) return s;\n if (!Number.isFinite(s.pos)) s.pos = target;\n if (stepped || target !== s.to) {\n s.from = Math.abs(target - s.pos) > SNAP_FLOORS ? target : s.pos;\n s.to = target;\n }\n const t = Math.min(1, Math.max(0, Number.isFinite(progress) ? progress : 1));\n s.pos = t >= 1 ? s.to : s.from + (s.to - s.from) * t;\n return s;\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;AAYG;AAEH;;AAEuD;AAChD,MAAM,WAAW,GAAG;AAWrB,SAAU,UAAU,CAAC,GAAW,EAAA;IACpC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE;AACpC;AAEA;;;;;AAKG;AACG,SAAU,QAAQ,CAAC,CAAe,EAAE,MAAc,EAAE,OAAgB,EAAE,QAAgB,EAAA;AAC1F,IAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;AAAE,QAAA,OAAO,CAAC;IACtC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC;AAAE,QAAA,CAAC,CAAC,GAAG,GAAG,MAAM;IAC3C,IAAI,OAAO,IAAI,MAAM,KAAK,CAAC,CAAC,EAAE,EAAE;QAC9B,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,WAAW,GAAG,MAAM,GAAG,CAAC,CAAC,GAAG;AAChE,QAAA,CAAC,CAAC,EAAE,GAAG,MAAM;IACf;AACA,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC;AAC5E,IAAA,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC;AACpD,IAAA,OAAO,CAAC;AACV;;"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Box geometry for the two sprite-review pages, `preview.html` and
3
+ * `gallery.html`.
4
+ *
5
+ * Both pages exist so a person can judge room art at the proportions the game
6
+ * actually draws, which is why neither may carry its own idea of a tile or a
7
+ * floor. They each grew one anyway and then drifted (issue #814): the world
8
+ * moved to 10 x 45 while the preview still drew 12 x 44 and the gallery 18 x 52,
9
+ * so every sprite vetted through them was vetted at 3.67 and 2.9 tiles per floor
10
+ * against a world of 4.5. Deriving both from `scale.ts` through this one helper
11
+ * is what keeps that from happening a third time.
12
+ *
13
+ * A review page may draw LARGER than the world, because small art is hard to
14
+ * judge, but only by a whole multiple of it, so every world pixel lands on a
15
+ * whole block of screen pixels. A footprint too big for the requested multiple
16
+ * steps down to the largest whole multiple that fits. Only a footprint too big
17
+ * to fit even at the world scale shrinks by a fraction; that keeps its shape but
18
+ * softens its edges, so a page should size its cells to make that the rare case.
19
+ */
20
+ /** One sprite box, sized for a cell. */
21
+ export interface CatalogBox {
22
+ /** Box width in on-screen pixels. */
23
+ w: number;
24
+ /** Box height in on-screen pixels. */
25
+ h: number;
26
+ /** How much of the world scale the box got: a whole number from 1 to `mag`
27
+ * when the footprint fits at the world scale, a fraction below 1 when it
28
+ * does not, and 0 for an empty box. */
29
+ scale: number;
30
+ }
31
+ /**
32
+ * Fit a `tiles` x `floors` footprint into a `maxW` x `maxH` cell at the world's
33
+ * aspect, drawn at up to `mag` times the world scale. `mag` is a whole multiple:
34
+ * a fraction is floored, and anything below 1 (or not finite) counts as 1.
35
+ *
36
+ * Pass `Infinity` for a budget the caller does not want to bind on (the metro's
37
+ * platform art composes itself into whatever width it is handed, so the gallery
38
+ * takes only its height from here and lets it fill the cell).
39
+ */
40
+ export declare function fitAtGameScale(tiles: number, floors: number, maxW: number, maxH: number, mag?: number): CatalogBox;
@@ -0,0 +1,33 @@
1
+ import { TILE, FLOOR } from './scale.js';
2
+
3
+ const EMPTY = { w: 0, h: 0, scale: 0 };
4
+ /**
5
+ * Fit a `tiles` x `floors` footprint into a `maxW` x `maxH` cell at the world's
6
+ * aspect, drawn at up to `mag` times the world scale. `mag` is a whole multiple:
7
+ * a fraction is floored, and anything below 1 (or not finite) counts as 1.
8
+ *
9
+ * Pass `Infinity` for a budget the caller does not want to bind on (the metro's
10
+ * platform art composes itself into whatever width it is handed, so the gallery
11
+ * takes only its height from here and lets it fill the cell).
12
+ */
13
+ function fitAtGameScale(tiles, floors, maxW, maxH, mag = 1) {
14
+ // A degenerate or non-finite footprint, or a budget that is not a number, has
15
+ // no box rather than a NaN one. A comparison alone would let NaN through
16
+ // (every comparison against NaN is false), and a NaN box poisons every
17
+ // coordinate downstream instead of simply drawing nothing. Infinity is a
18
+ // legal budget, so the budgets are checked for NaN only.
19
+ if (!Number.isFinite(tiles) || !Number.isFinite(floors) || tiles <= 0 || floors <= 0)
20
+ return EMPTY;
21
+ if (Number.isNaN(maxW) || Number.isNaN(maxH))
22
+ return EMPTY;
23
+ const whole = Math.max(1, Math.floor(Number.isFinite(mag) ? mag : 1));
24
+ const fit = Math.min(maxW / (tiles * TILE), maxH / (floors * FLOOR));
25
+ if (!(fit > 0))
26
+ return EMPTY;
27
+ // Step down through whole multiples; fall below 1 only when nothing else fits.
28
+ const scale = fit >= 1 ? Math.min(whole, Math.floor(fit)) : fit;
29
+ return { w: tiles * TILE * scale, h: floors * FLOOR * scale, scale };
30
+ }
31
+
32
+ export { fitAtGameScale };
33
+ //# sourceMappingURL=catalogScale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogScale.js","sources":["../../src/render/catalogScale.ts"],"sourcesContent":["import { FLOOR, TILE } from \"./scale\";\n\n/**\n * Box geometry for the two sprite-review pages, `preview.html` and\n * `gallery.html`.\n *\n * Both pages exist so a person can judge room art at the proportions the game\n * actually draws, which is why neither may carry its own idea of a tile or a\n * floor. They each grew one anyway and then drifted (issue #814): the world\n * moved to 10 x 45 while the preview still drew 12 x 44 and the gallery 18 x 52,\n * so every sprite vetted through them was vetted at 3.67 and 2.9 tiles per floor\n * against a world of 4.5. Deriving both from `scale.ts` through this one helper\n * is what keeps that from happening a third time.\n *\n * A review page may draw LARGER than the world, because small art is hard to\n * judge, but only by a whole multiple of it, so every world pixel lands on a\n * whole block of screen pixels. A footprint too big for the requested multiple\n * steps down to the largest whole multiple that fits. Only a footprint too big\n * to fit even at the world scale shrinks by a fraction; that keeps its shape but\n * softens its edges, so a page should size its cells to make that the rare case.\n */\n\n/** One sprite box, sized for a cell. */\nexport interface CatalogBox {\n /** Box width in on-screen pixels. */\n w: number;\n /** Box height in on-screen pixels. */\n h: number;\n /** How much of the world scale the box got: a whole number from 1 to `mag`\n * when the footprint fits at the world scale, a fraction below 1 when it\n * does not, and 0 for an empty box. */\n scale: number;\n}\n\nconst EMPTY: CatalogBox = { w: 0, h: 0, scale: 0 };\n\n/**\n * Fit a `tiles` x `floors` footprint into a `maxW` x `maxH` cell at the world's\n * aspect, drawn at up to `mag` times the world scale. `mag` is a whole multiple:\n * a fraction is floored, and anything below 1 (or not finite) counts as 1.\n *\n * Pass `Infinity` for a budget the caller does not want to bind on (the metro's\n * platform art composes itself into whatever width it is handed, so the gallery\n * takes only its height from here and lets it fill the cell).\n */\nexport function fitAtGameScale(tiles: number, floors: number, maxW: number, maxH: number, mag = 1): CatalogBox {\n // A degenerate or non-finite footprint, or a budget that is not a number, has\n // no box rather than a NaN one. A comparison alone would let NaN through\n // (every comparison against NaN is false), and a NaN box poisons every\n // coordinate downstream instead of simply drawing nothing. Infinity is a\n // legal budget, so the budgets are checked for NaN only.\n if (!Number.isFinite(tiles) || !Number.isFinite(floors) || tiles <= 0 || floors <= 0) return EMPTY;\n if (Number.isNaN(maxW) || Number.isNaN(maxH)) return EMPTY;\n const whole = Math.max(1, Math.floor(Number.isFinite(mag) ? mag : 1));\n const fit = Math.min(maxW / (tiles * TILE), maxH / (floors * FLOOR));\n if (!(fit > 0)) return EMPTY;\n // Step down through whole multiples; fall below 1 only when nothing else fits.\n const scale = fit >= 1 ? Math.min(whole, Math.floor(fit)) : fit;\n return { w: tiles * TILE * scale, h: floors * FLOOR * scale, scale };\n}\n"],"names":[],"mappings":";;AAkCA,MAAM,KAAK,GAAe,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;AAElD;;;;;;;;AAQG;AACG,SAAU,cAAc,CAAC,KAAa,EAAE,MAAc,EAAE,IAAY,EAAE,IAAY,EAAE,GAAG,GAAG,CAAC,EAAA;;;;;;IAM/F,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC;AAAE,QAAA,OAAO,KAAK;AAClG,IAAA,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;AAAE,QAAA,OAAO,KAAK;AAC1D,IAAA,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;IACrE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,EAAE,IAAI,IAAI,MAAM,GAAG,KAAK,CAAC,CAAC;AACpE,IAAA,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC;AAAE,QAAA,OAAO,KAAK;;IAE5B,MAAM,KAAK,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG;AAC/D,IAAA,OAAO,EAAE,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,KAAK,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE;AACtE;;"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Where a person on a stairway or escalator is drawn. The engine keeps a
3
+ * climber at the flight's middle and moves only their floor, which drew them
4
+ * rising straight up the middle of the flight. A flight is drawn as a run from
5
+ * a lower landing on one side to an upper landing on the other
6
+ * (`sprites/transport.ts`), so a climber is drawn along that run instead: the
7
+ * engine's floor still says how far up they are, and this only says where
8
+ * along the run that height falls. Nothing here changes the simulation.
9
+ */
10
+ import type { TransportView } from "../simport/view";
11
+ /** The run's lower landing, in pixels from the flight's left edge. Matches
12
+ * `x0` in `drawStairFlight` and `drawEscalatorRun`. */
13
+ export declare const RUN_FOOT_PX = 10;
14
+ /** The run's upper landing, in pixels from the flight's right edge. Matches
15
+ * `x1` in `drawStairFlight` and `drawEscalatorRun`. */
16
+ export declare const RUN_HEAD_PX = 12;
17
+ export interface ClimbSpot {
18
+ /** Drawn x, tiles. */
19
+ x: number;
20
+ /** Whether the climb moves left to right here on the way up. */
21
+ rightward: boolean;
22
+ }
23
+ /** The point along `t`'s run at floor `fy`; `winds` when it stands beside a
24
+ * venue (`venueFlights.ts`). */
25
+ export declare function climbSpot(t: Pick<TransportView, "kind" | "x" | "width" | "bottom" | "top">, fy: number, winds?: boolean): ClimbSpot;
26
+ /** The stairway or escalator a climber at `x` on `floor` is on: the one
27
+ * whose middle they stand at. Two one-story flights stacked in one column
28
+ * (an escalator up to the metro's deck and stairs on up from it) share a
29
+ * floor, so the climber's drawn floor `fy` picks the one that spans it: a
30
+ * climber between two floors is on the flight that links both, and one on a
31
+ * shared floor is on the flight that goes on the way they head
32
+ * (`descending`). `climbDrawX` looks again once `fy` leaves the flight it
33
+ * found. */
34
+ export declare function climbFlight(transports: ReadonlyArray<TransportView>, x: number, floor: number, fy?: number, descending?: boolean): TransportView | undefined;
35
+ /** What a drawn person remembers about the flight they climb. */
36
+ export interface Climber {
37
+ /** The flight the climber is on, found when the climb began or they moved
38
+ * on to the next flight of a stack; `null` when none matched. */
39
+ flight?: TransportView | null;
40
+ /** Where the climber was last drawn, so the walk off the flight starts
41
+ * from that landing instead of the flight's middle. */
42
+ climbX?: number;
43
+ /** Whether the climber faces left this frame. */
44
+ climbLeft?: boolean;
45
+ /** Whether that flight winds beside a venue, read when it was found. */
46
+ flightWinds?: boolean;
47
+ }
48
+ /** The drawn x of a climber this frame, or `undefined` when no flight
49
+ * matches (the engine's x stands). Sets `climbLeft` to face the way they go
50
+ * along the run. `fy` is their drawn floor, `descending` whether they are on
51
+ * their way down, `winding` the ids of the flights that wind beside a venue
52
+ * (`venueFlights.ts`), read when the flight is found. The flight is found
53
+ * when the climb begins, and again when `fy` leaves it (the next flight of a
54
+ * stack). Runs per climber per frame, so it allocates nothing once the
55
+ * flight is found. */
56
+ export declare function climbDrawX(c: Climber, transports: ReadonlyArray<TransportView>, x: number, floor: number, fy: number, descending: boolean, winding?: ReadonlySet<number>): number | undefined;
57
+ /** Hand a finished climb's landing to the walk that follows it: returns the
58
+ * x the walk should start from, or `undefined` when there was no climb. */
59
+ export declare function leaveFlight(c: Climber): number | undefined;
@@ -0,0 +1,115 @@
1
+ import { FLOOR, TILE } from './scale.js';
2
+ import { halfTurnY } from './sprites/escalator.js';
3
+ import { spiralAngle, spiralRadius } from './sprites/spiralStair.js';
4
+
5
+ /** The run's lower landing, in pixels from the flight's left edge. Matches
6
+ * `x0` in `drawStairFlight` and `drawEscalatorRun`. */
7
+ const RUN_FOOT_PX = 10;
8
+ /** The run's upper landing, in pixels from the flight's right edge. Matches
9
+ * `x1` in `drawStairFlight` and `drawEscalatorRun`. */
10
+ const RUN_HEAD_PX = 12;
11
+ /** The share of a story the lower run of a half-turn escalator climbs
12
+ * (`sprites/escalator.ts`): the landing sits at `halfTurnY` of a story band. */
13
+ const HALF_TURN_LOWER = 1 - halfTurnY(0, FLOOR) / FLOOR;
14
+ /** Writes into `out` the point along `t`'s run at floor `fy`. Out of a tall
15
+ * lobby an escalator turns back each story (the switchback), so odd stories
16
+ * above the bottom run right to left, and a stairway winds around its newel
17
+ * pole (`sprites/spiralStair.ts`), so its climber follows that helix. A
18
+ * one-story flight that `winds` beside a venue (`venueFlights.ts`) is a
19
+ * one-story spiral, or an escalator that turns back at its landing. */
20
+ function placeOnFlight(t, fy, out, winds = false) {
21
+ const span = Math.max(t.top - t.bottom, 0);
22
+ const rise = Math.min(Math.max(fy - t.bottom, 0), span);
23
+ const windsHere = winds && span === 1;
24
+ if (t.kind === "stairs" && (span > 1 || windsHere)) {
25
+ const a = spiralAngle(rise / span, span);
26
+ out.x = t.x + t.width / 2 + (spiralRadius(t.width * TILE) * Math.sin(a)) / TILE;
27
+ out.rightward = Math.cos(a) >= 0;
28
+ return out;
29
+ }
30
+ const foot = t.x + RUN_FOOT_PX / TILE;
31
+ const head = t.x + t.width - RUN_HEAD_PX / TILE;
32
+ if (t.kind === "escalator" && windsHere) {
33
+ const upper = rise > HALF_TURN_LOWER;
34
+ const along = upper ? (rise - HALF_TURN_LOWER) / (1 - HALF_TURN_LOWER) : rise / HALF_TURN_LOWER;
35
+ out.rightward = !upper;
36
+ out.x = upper ? head - (head - foot) * along : foot + (head - foot) * along;
37
+ return out;
38
+ }
39
+ const story = Math.min(Math.floor(rise), Math.max(span - 1, 0));
40
+ const along = Math.min(Math.max(rise - story, 0), 1);
41
+ out.rightward = story % 2 === 0;
42
+ out.x = out.rightward ? foot + (head - foot) * along : head - (head - foot) * along;
43
+ return out;
44
+ }
45
+ /** The point along `t`'s run at floor `fy`; `winds` when it stands beside a
46
+ * venue (`venueFlights.ts`). */
47
+ function climbSpot(t, fy, winds = false) {
48
+ return placeOnFlight(t, fy, { x: 0, rightward: true }, winds);
49
+ }
50
+ /** The stairway or escalator a climber at `x` on `floor` is on: the one
51
+ * whose middle they stand at. Two one-story flights stacked in one column
52
+ * (an escalator up to the metro's deck and stairs on up from it) share a
53
+ * floor, so the climber's drawn floor `fy` picks the one that spans it: a
54
+ * climber between two floors is on the flight that links both, and one on a
55
+ * shared floor is on the flight that goes on the way they head
56
+ * (`descending`). `climbDrawX` looks again once `fy` leaves the flight it
57
+ * found. */
58
+ function climbFlight(transports, x, floor, fy = floor, descending = false) {
59
+ const below = Math.floor(fy);
60
+ const above = Math.ceil(fy);
61
+ let holdsFloor;
62
+ for (const t of transports) {
63
+ if (t.kind !== "stairs" && t.kind !== "escalator")
64
+ continue;
65
+ if (Math.abs(t.x + t.width / 2 - x) >= 1e-6)
66
+ continue;
67
+ const spans = t.bottom <= below && t.top >= above;
68
+ const goesOn = below !== above || (descending ? t.bottom < below : t.top > above);
69
+ if (spans && goesOn)
70
+ return t;
71
+ if (holdsFloor === undefined && floor >= t.bottom && floor <= t.top)
72
+ holdsFloor = t;
73
+ }
74
+ return holdsFloor;
75
+ }
76
+ /** Whether drawn floor `fy` has left `t`, so the climber is on another flight
77
+ * of a stack. */
78
+ function leftFlight(t, fy) {
79
+ return fy < t.bottom || fy > t.top;
80
+ }
81
+ /** Reused by `climbDrawX` so a frame allocates nothing. */
82
+ const SCRATCH = { x: 0, rightward: true };
83
+ /** The drawn x of a climber this frame, or `undefined` when no flight
84
+ * matches (the engine's x stands). Sets `climbLeft` to face the way they go
85
+ * along the run. `fy` is their drawn floor, `descending` whether they are on
86
+ * their way down, `winding` the ids of the flights that wind beside a venue
87
+ * (`venueFlights.ts`), read when the flight is found. The flight is found
88
+ * when the climb begins, and again when `fy` leaves it (the next flight of a
89
+ * stack). Runs per climber per frame, so it allocates nothing once the
90
+ * flight is found. */
91
+ function climbDrawX(c, transports, x, floor, fy, descending, winding) {
92
+ if (c.flight === undefined || (c.flight !== null && leftFlight(c.flight, fy))) {
93
+ c.flight = climbFlight(transports, x, floor, fy, descending) ?? null;
94
+ c.flightWinds = c.flight !== null && winding !== undefined && winding.has(c.flight.id);
95
+ }
96
+ if (!c.flight)
97
+ return undefined;
98
+ const spot = placeOnFlight(c.flight, fy, SCRATCH, c.flightWinds === true);
99
+ c.climbX = spot.x;
100
+ c.climbLeft = spot.rightward === descending;
101
+ return c.climbX;
102
+ }
103
+ /** Hand a finished climb's landing to the walk that follows it: returns the
104
+ * x the walk should start from, or `undefined` when there was no climb. */
105
+ function leaveFlight(c) {
106
+ const at = c.climbX;
107
+ c.flight = undefined;
108
+ c.climbX = undefined;
109
+ c.climbLeft = undefined;
110
+ c.flightWinds = undefined;
111
+ return at;
112
+ }
113
+
114
+ export { RUN_FOOT_PX, RUN_HEAD_PX, climbDrawX, climbFlight, climbSpot, leaveFlight };
115
+ //# sourceMappingURL=climbPath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"climbPath.js","sources":["../../src/render/climbPath.ts"],"sourcesContent":["/**\n * Where a person on a stairway or escalator is drawn. The engine keeps a\n * climber at the flight's middle and moves only their floor, which drew them\n * rising straight up the middle of the flight. A flight is drawn as a run from\n * a lower landing on one side to an upper landing on the other\n * (`sprites/transport.ts`), so a climber is drawn along that run instead: the\n * engine's floor still says how far up they are, and this only says where\n * along the run that height falls. Nothing here changes the simulation.\n */\nimport type { TransportView } from \"../simport/view\";\nimport { FLOOR, TILE } from \"./scale\";\nimport { halfTurnY } from \"./sprites/escalator\";\nimport { spiralAngle, spiralRadius } from \"./sprites/spiralStair\";\n\n/** The run's lower landing, in pixels from the flight's left edge. Matches\n * `x0` in `drawStairFlight` and `drawEscalatorRun`. */\nexport const RUN_FOOT_PX = 10;\n/** The run's upper landing, in pixels from the flight's right edge. Matches\n * `x1` in `drawStairFlight` and `drawEscalatorRun`. */\nexport const RUN_HEAD_PX = 12;\n\nexport interface ClimbSpot {\n /** Drawn x, tiles. */\n x: number;\n /** Whether the climb moves left to right here on the way up. */\n rightward: boolean;\n}\n\n/** The share of a story the lower run of a half-turn escalator climbs\n * (`sprites/escalator.ts`): the landing sits at `halfTurnY` of a story band. */\nconst HALF_TURN_LOWER = 1 - halfTurnY(0, FLOOR) / FLOOR;\n\n/** Writes into `out` the point along `t`'s run at floor `fy`. Out of a tall\n * lobby an escalator turns back each story (the switchback), so odd stories\n * above the bottom run right to left, and a stairway winds around its newel\n * pole (`sprites/spiralStair.ts`), so its climber follows that helix. A\n * one-story flight that `winds` beside a venue (`venueFlights.ts`) is a\n * one-story spiral, or an escalator that turns back at its landing. */\nfunction placeOnFlight(t: Pick<TransportView, \"kind\" | \"x\" | \"width\" | \"bottom\" | \"top\">, fy: number, out: ClimbSpot, winds = false): ClimbSpot {\n const span = Math.max(t.top - t.bottom, 0);\n const rise = Math.min(Math.max(fy - t.bottom, 0), span);\n const windsHere = winds && span === 1;\n if (t.kind === \"stairs\" && (span > 1 || windsHere)) {\n const a = spiralAngle(rise / span, span);\n out.x = t.x + t.width / 2 + (spiralRadius(t.width * TILE) * Math.sin(a)) / TILE;\n out.rightward = Math.cos(a) >= 0;\n return out;\n }\n const foot = t.x + RUN_FOOT_PX / TILE;\n const head = t.x + t.width - RUN_HEAD_PX / TILE;\n if (t.kind === \"escalator\" && windsHere) {\n const upper = rise > HALF_TURN_LOWER;\n const along = upper ? (rise - HALF_TURN_LOWER) / (1 - HALF_TURN_LOWER) : rise / HALF_TURN_LOWER;\n out.rightward = !upper;\n out.x = upper ? head - (head - foot) * along : foot + (head - foot) * along;\n return out;\n }\n const story = Math.min(Math.floor(rise), Math.max(span - 1, 0));\n const along = Math.min(Math.max(rise - story, 0), 1);\n out.rightward = story % 2 === 0;\n out.x = out.rightward ? foot + (head - foot) * along : head - (head - foot) * along;\n return out;\n}\n\n/** The point along `t`'s run at floor `fy`; `winds` when it stands beside a\n * venue (`venueFlights.ts`). */\nexport function climbSpot(t: Pick<TransportView, \"kind\" | \"x\" | \"width\" | \"bottom\" | \"top\">, fy: number, winds = false): ClimbSpot {\n return placeOnFlight(t, fy, { x: 0, rightward: true }, winds);\n}\n\n/** The stairway or escalator a climber at `x` on `floor` is on: the one\n * whose middle they stand at. Two one-story flights stacked in one column\n * (an escalator up to the metro's deck and stairs on up from it) share a\n * floor, so the climber's drawn floor `fy` picks the one that spans it: a\n * climber between two floors is on the flight that links both, and one on a\n * shared floor is on the flight that goes on the way they head\n * (`descending`). `climbDrawX` looks again once `fy` leaves the flight it\n * found. */\nexport function climbFlight(transports: ReadonlyArray<TransportView>, x: number, floor: number, fy = floor, descending = false): TransportView | undefined {\n const below = Math.floor(fy);\n const above = Math.ceil(fy);\n let holdsFloor: TransportView | undefined;\n for (const t of transports) {\n if (t.kind !== \"stairs\" && t.kind !== \"escalator\") continue;\n if (Math.abs(t.x + t.width / 2 - x) >= 1e-6) continue;\n const spans = t.bottom <= below && t.top >= above;\n const goesOn = below !== above || (descending ? t.bottom < below : t.top > above);\n if (spans && goesOn) return t;\n if (holdsFloor === undefined && floor >= t.bottom && floor <= t.top) holdsFloor = t;\n }\n return holdsFloor;\n}\n\n/** Whether drawn floor `fy` has left `t`, so the climber is on another flight\n * of a stack. */\nfunction leftFlight(t: TransportView, fy: number): boolean {\n return fy < t.bottom || fy > t.top;\n}\n\n/** Reused by `climbDrawX` so a frame allocates nothing. */\nconst SCRATCH: ClimbSpot = { x: 0, rightward: true };\n\n/** What a drawn person remembers about the flight they climb. */\nexport interface Climber {\n /** The flight the climber is on, found when the climb began or they moved\n * on to the next flight of a stack; `null` when none matched. */\n flight?: TransportView | null;\n /** Where the climber was last drawn, so the walk off the flight starts\n * from that landing instead of the flight's middle. */\n climbX?: number;\n /** Whether the climber faces left this frame. */\n climbLeft?: boolean;\n /** Whether that flight winds beside a venue, read when it was found. */\n flightWinds?: boolean;\n}\n\n/** The drawn x of a climber this frame, or `undefined` when no flight\n * matches (the engine's x stands). Sets `climbLeft` to face the way they go\n * along the run. `fy` is their drawn floor, `descending` whether they are on\n * their way down, `winding` the ids of the flights that wind beside a venue\n * (`venueFlights.ts`), read when the flight is found. The flight is found\n * when the climb begins, and again when `fy` leaves it (the next flight of a\n * stack). Runs per climber per frame, so it allocates nothing once the\n * flight is found. */\nexport function climbDrawX(\n c: Climber,\n transports: ReadonlyArray<TransportView>,\n x: number,\n floor: number,\n fy: number,\n descending: boolean,\n winding?: ReadonlySet<number>,\n): number | undefined {\n if (c.flight === undefined || (c.flight !== null && leftFlight(c.flight, fy))) {\n c.flight = climbFlight(transports, x, floor, fy, descending) ?? null;\n c.flightWinds = c.flight !== null && winding !== undefined && winding.has(c.flight.id);\n }\n if (!c.flight) return undefined;\n const spot = placeOnFlight(c.flight, fy, SCRATCH, c.flightWinds === true);\n c.climbX = spot.x;\n c.climbLeft = spot.rightward === descending;\n return c.climbX;\n}\n\n/** Hand a finished climb's landing to the walk that follows it: returns the\n * x the walk should start from, or `undefined` when there was no climb. */\nexport function leaveFlight(c: Climber): number | undefined {\n const at = c.climbX;\n c.flight = undefined;\n c.climbX = undefined;\n c.climbLeft = undefined;\n c.flightWinds = undefined;\n return at;\n}\n"],"names":[],"mappings":";;;;AAcA;AACwD;AACjD,MAAM,WAAW,GAAG;AAC3B;AACwD;AACjD,MAAM,WAAW,GAAG;AAS3B;AACiF;AACjF,MAAM,eAAe,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,KAAK;AAEvD;;;;;AAKwE;AACxE,SAAS,aAAa,CAAC,CAAiE,EAAE,EAAU,EAAE,GAAc,EAAE,KAAK,GAAG,KAAK,EAAA;AACjI,IAAA,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC;AACvD,IAAA,MAAM,SAAS,GAAG,KAAK,IAAI,IAAI,KAAK,CAAC;AACrC,IAAA,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,KAAK,IAAI,GAAG,CAAC,IAAI,SAAS,CAAC,EAAE;QAClD,MAAM,CAAC,GAAG,WAAW,CAAC,IAAI,GAAG,IAAI,EAAE,IAAI,CAAC;AACxC,QAAA,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI;QAC/E,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAChC,QAAA,OAAO,GAAG;IACZ;IACA,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,GAAG,IAAI;AACrC,IAAA,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,WAAW,GAAG,IAAI;IAC/C,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,IAAI,SAAS,EAAE;AACvC,QAAA,MAAM,KAAK,GAAG,IAAI,GAAG,eAAe;QACpC,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,IAAI,GAAG,eAAe,KAAK,CAAC,GAAG,eAAe,CAAC,GAAG,IAAI,GAAG,eAAe;AAC/F,QAAA,GAAG,CAAC,SAAS,GAAG,CAAC,KAAK;AACtB,QAAA,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,GAAG,CAAC,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG,IAAI,GAAG,CAAC,IAAI,GAAG,IAAI,IAAI,KAAK;AAC3E,QAAA,OAAO,GAAG;IACZ;IACA,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/D,IAAA,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACpD,GAAG,CAAC,SAAS,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC;AAC/B,IAAA,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,GAAG,IAAI,GAAG,CAAC,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG,IAAI,GAAG,CAAC,IAAI,GAAG,IAAI,IAAI,KAAK;AACnF,IAAA,OAAO,GAAG;AACZ;AAEA;AACiC;AAC3B,SAAU,SAAS,CAAC,CAAiE,EAAE,EAAU,EAAE,KAAK,GAAG,KAAK,EAAA;AACpH,IAAA,OAAO,aAAa,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC;AAC/D;AAEA;;;;;;;AAOa;AACP,SAAU,WAAW,CAAC,UAAwC,EAAE,CAAS,EAAE,KAAa,EAAE,EAAE,GAAG,KAAK,EAAE,UAAU,GAAG,KAAK,EAAA;IAC5H,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC3B,IAAA,IAAI,UAAqC;AACzC,IAAA,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE;QAC1B,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW;YAAE;AACnD,QAAA,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI;YAAE;AAC7C,QAAA,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,IAAI,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,KAAK;QACjD,MAAM,MAAM,GAAG,KAAK,KAAK,KAAK,KAAK,UAAU,GAAG,CAAC,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC;QACjF,IAAI,KAAK,IAAI,MAAM;AAAE,YAAA,OAAO,CAAC;AAC7B,QAAA,IAAI,UAAU,KAAK,SAAS,IAAI,KAAK,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,IAAI,CAAC,CAAC,GAAG;YAAE,UAAU,GAAG,CAAC;IACrF;AACA,IAAA,OAAO,UAAU;AACnB;AAEA;AACkB;AAClB,SAAS,UAAU,CAAC,CAAgB,EAAE,EAAU,EAAA;IAC9C,OAAO,EAAE,GAAG,CAAC,CAAC,MAAM,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG;AACpC;AAEA;AACA,MAAM,OAAO,GAAc,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE;AAgBpD;;;;;;;AAOuB;AACjB,SAAU,UAAU,CACxB,CAAU,EACV,UAAwC,EACxC,CAAS,EACT,KAAa,EACb,EAAU,EACV,UAAmB,EACnB,OAA6B,EAAA;IAE7B,IAAI,CAAC,CAAC,MAAM,KAAK,SAAS,KAAK,CAAC,CAAC,MAAM,KAAK,IAAI,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE;AAC7E,QAAA,CAAC,CAAC,MAAM,GAAG,WAAW,CAAC,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,CAAC,IAAI,IAAI;QACpE,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,MAAM,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACxF;IACA,IAAI,CAAC,CAAC,CAAC,MAAM;AAAE,QAAA,OAAO,SAAS;AAC/B,IAAA,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,WAAW,KAAK,IAAI,CAAC;AACzE,IAAA,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjB,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,KAAK,UAAU;IAC3C,OAAO,CAAC,CAAC,MAAM;AACjB;AAEA;AAC4E;AACtE,SAAU,WAAW,CAAC,CAAU,EAAA;AACpC,IAAA,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM;AACnB,IAAA,CAAC,CAAC,MAAM,GAAG,SAAS;AACpB,IAAA,CAAC,CAAC,MAAM,GAAG,SAAS;AACpB,IAAA,CAAC,CAAC,SAAS,GAAG,SAAS;AACvB,IAAA,CAAC,CAAC,WAAW,GAAG,SAAS;AACzB,IAAA,OAAO,EAAE;AACX;;"}