@expofp/floorplan 0.0.0-experimental.2632d13

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 (1013) hide show
  1. package/README.md +8 -0
  2. package/dist/browser/Button-DT-Jfwrb.js +64 -0
  3. package/dist/browser/CookieConsent-DYjf8elV.js +38 -0
  4. package/dist/browser/Debug-CK-BLY-v.js +53 -0
  5. package/dist/browser/DebugTools-Y0aycjKM.js +1931 -0
  6. package/dist/browser/Demo-B677YULI.js +71 -0
  7. package/dist/browser/Free-B_nU7Krr.js +69 -0
  8. package/dist/browser/GalleryContainer-DcZrZnJz.js +3355 -0
  9. package/dist/browser/GpsLoader-DwNSQv4V.js +154 -0
  10. package/dist/browser/KioskStore-DgP9k2lT.js +250 -0
  11. package/dist/browser/LayerStore-DCwl80sb.js +24105 -0
  12. package/dist/browser/MaplibreAdapter-B-c-uOJf.js +36770 -0
  13. package/dist/browser/ModalContainer-DnZxo0qA.js +148 -0
  14. package/dist/browser/PermissionNotice-DaqnuHln.js +54 -0
  15. package/dist/browser/RouteStore-CuslHjhJ.js +3719 -0
  16. package/dist/browser/SetKioskMode-CVD7sZLr.js +49 -0
  17. package/dist/browser/ShowKiosk-DuOS8tTO.js +82 -0
  18. package/dist/browser/ViewerMenuPanel-Xj-8aVzf.js +133 -0
  19. package/dist/browser/add-debug-secret-listener-BECnIMzo.js +55 -0
  20. package/dist/browser/adopt-global-settings-U-KbyxMd.js +185 -0
  21. package/dist/browser/boolean-editor-CYMx87em.js +149 -0
  22. package/dist/browser/bootIntercom-BqQsnxII.js +37 -0
  23. package/dist/browser/bundle.json +422 -0
  24. package/dist/browser/camera-events-DSCuSH25.js +18 -0
  25. package/dist/browser/classnames-YcGXWNfg.js +39 -0
  26. package/dist/browser/client-BcPpS_Gj.js +7402 -0
  27. package/dist/browser/compat-helper.js +6 -0
  28. package/dist/browser/components-D8dv3ezN.js +7393 -0
  29. package/dist/browser/create-live-plan-Ff4MkKcG.js +4046 -0
  30. package/dist/browser/debounce-B4PlcNh4.js +2102 -0
  31. package/dist/browser/debug-context-CNBgUWR8.js +24315 -0
  32. package/dist/browser/debug-overlay-B__pFwQg.js +1455 -0
  33. package/dist/browser/debug-ui-BaE8MZQX.js +86 -0
  34. package/dist/browser/dist-C1NaWqk4.js +2611 -0
  35. package/dist/browser/dist-Cx8u0gjK.js +21 -0
  36. package/dist/browser/dist-wOC6gYFh.js +205 -0
  37. package/dist/browser/efp-debug-init-CozbueIl.js +245 -0
  38. package/dist/browser/enum-editor-CkiQPgZv.js +34 -0
  39. package/dist/browser/es5-B__Ovz45.js +1712 -0
  40. package/dist/browser/event-head-C_inMpbD.js +56 -0
  41. package/dist/browser/event-not-found-Z2mJBZE3.js +31 -0
  42. package/dist/browser/expofp-overlay.png +0 -0
  43. package/dist/browser/expofpUrl-jBUlvkwz.js +19 -0
  44. package/dist/browser/exports-CvUYw1h6.js +1525 -0
  45. package/dist/browser/favicon-BkDrYTmU.js +12 -0
  46. package/dist/browser/fetch-retry.umd-2B2pCUIS.js +78 -0
  47. package/dist/browser/flex-3lSivw8z.js +823 -0
  48. package/dist/browser/floorplan.loader-fOvLfGGf.js +3282 -0
  49. package/dist/browser/floorplan.ready-Bvj8hVzH.js +1540 -0
  50. package/dist/browser/fonts/efp-symbols.woff +0 -0
  51. package/dist/browser/fonts/inter-400.woff2 +0 -0
  52. package/dist/browser/fonts/inter-500.woff2 +0 -0
  53. package/dist/browser/fonts/inter-600.woff2 +0 -0
  54. package/dist/browser/fonts/oswald-v17-cyrillic_latin-300.woff +0 -0
  55. package/dist/browser/fonts/oswald-v17-cyrillic_latin-500.woff +0 -0
  56. package/dist/browser/freeBanner-CnrBc9Tl.js +22 -0
  57. package/dist/browser/fuse-B7V1lkoA.js +1177 -0
  58. package/dist/browser/i18n-DRDvImjG.js +7210 -0
  59. package/dist/browser/icons/accessible.svg +5 -0
  60. package/dist/browser/icons/arrow-down.svg +3 -0
  61. package/dist/browser/icons/bus-white.svg +3 -0
  62. package/dist/browser/icons/check.svg +3 -0
  63. package/dist/browser/icons/clear.svg +4 -0
  64. package/dist/browser/icons/departure.svg +5 -0
  65. package/dist/browser/icons/departure_inactive.svg +5 -0
  66. package/dist/browser/icons/destination.svg +5 -0
  67. package/dist/browser/icons/direction.svg +54 -0
  68. package/dist/browser/icons/dots.svg +4 -0
  69. package/dist/browser/icons/dragdrop-solid.svg +11 -0
  70. package/dist/browser/icons/facebook.svg +4 -0
  71. package/dist/browser/icons/from.svg +4 -0
  72. package/dist/browser/icons/kiosk.svg +1 -0
  73. package/dist/browser/icons/linkedin.svg +3 -0
  74. package/dist/browser/icons/rotate.svg +5 -0
  75. package/dist/browser/icons/tap.svg +5 -0
  76. package/dist/browser/icons/to.svg +4 -0
  77. package/dist/browser/icons/transition.svg +7 -0
  78. package/dist/browser/icons/transition_down.svg +15 -0
  79. package/dist/browser/icons/transition_up.svg +15 -0
  80. package/dist/browser/icons/twitter.svg +3 -0
  81. package/dist/browser/icons/yah.svg +17 -0
  82. package/dist/browser/index.html +139 -0
  83. package/dist/browser/index.js +254 -0
  84. package/dist/browser/index.module-kJmnWg5B.js +153 -0
  85. package/dist/browser/integrateKiosk-DhdxcN-Y.js +35 -0
  86. package/dist/browser/is-debug-6YYr83sg.js +197 -0
  87. package/dist/browser/is-own-domain-DNvxb9Ph.js +26 -0
  88. package/dist/browser/is-webview-cTH4yz8f.js +12 -0
  89. package/dist/browser/journey-plan-cw-9rqLk.js +1865 -0
  90. package/dist/browser/jsx-runtime-DQgnuS-I.js +30 -0
  91. package/dist/browser/kiosk-mode-Bqv2L5PO.js +28 -0
  92. package/dist/browser/kiosk-record-JAEq8SV6.js +18 -0
  93. package/dist/browser/kioskUrlParam-dw9tDQ6e.js +141 -0
  94. package/dist/browser/lib--J2yQXt6.js +1910 -0
  95. package/dist/browser/loadImage-CenmkrfL.js +30 -0
  96. package/dist/browser/locales/ar.json +228 -0
  97. package/dist/browser/locales/da.json +229 -0
  98. package/dist/browser/locales/de.json +228 -0
  99. package/dist/browser/locales/es.json +228 -0
  100. package/dist/browser/locales/fr.json +228 -0
  101. package/dist/browser/locales/he.json +228 -0
  102. package/dist/browser/locales/it.json +228 -0
  103. package/dist/browser/locales/kk.json +228 -0
  104. package/dist/browser/locales/ko.json +228 -0
  105. package/dist/browser/locales/mn.json +228 -0
  106. package/dist/browser/locales/nl.json +228 -0
  107. package/dist/browser/locales/pl.json +228 -0
  108. package/dist/browser/locales/pt.json +228 -0
  109. package/dist/browser/locales/ru.json +228 -0
  110. package/dist/browser/locales/sv.json +228 -0
  111. package/dist/browser/locales/th.json +228 -0
  112. package/dist/browser/locales/tr.json +228 -0
  113. package/dist/browser/locales/uk.json +228 -0
  114. package/dist/browser/locales/vi.json +228 -0
  115. package/dist/browser/locales/zh.json +228 -0
  116. package/dist/browser/logDeviceInfo-D2Anqc6y.js +58 -0
  117. package/dist/browser/mobx-C-kcS0zI.js +43 -0
  118. package/dist/browser/mobx.module-BOCLFB5I.js +2064 -0
  119. package/dist/browser/optional-boolean-editor-ZncW2HBw.js +20 -0
  120. package/dist/browser/optional-enum-editor-Dkzs9jDN.js +34 -0
  121. package/dist/browser/optional-string-editor-DC9PMUWB.js +30 -0
  122. package/dist/browser/particles.min-eC5xdOrB.js +133 -0
  123. package/dist/browser/react-DqPP-mkq.js +301 -0
  124. package/dist/browser/react-dom-BkVzoZWO.js +139 -0
  125. package/dist/browser/rolldown-runtime-DUb2xvRc.js +28 -0
  126. package/dist/browser/scheduler-NBuuaWIe.js +212 -0
  127. package/dist/browser/select-Cxf-YiNA.js +1367 -0
  128. package/dist/browser/settings-D74eG9h8.js +9 -0
  129. package/dist/browser/settings-item-DUUbKec_.js +76 -0
  130. package/dist/browser/store-q_CTsixH.js +58 -0
  131. package/dist/browser/string-editor-CINOmY_C.js +30 -0
  132. package/dist/browser/text-field-DORaOVht.js +88 -0
  133. package/dist/browser/theme-DyFm9MGz.js +2803 -0
  134. package/dist/browser/ui-DsCU3FV6.js +43 -0
  135. package/dist/browser/useRenderTarget-RFckzUJM.js +57 -0
  136. package/dist/browser/vendor/perfect-scrollbar/css/perfect-scrollbar.css +1 -0
  137. package/dist/browser/vendor/sanitize-css/sanitize.css +1 -0
  138. package/dist/browser/venue-public-CH7uq9Xn.js +296 -0
  139. package/dist/browser/venues-Yq0wU18A.js +447 -0
  140. package/dist/browser/viewport-juWifKNy.js +48 -0
  141. package/dist/browser/warning.png +0 -0
  142. package/dist/esm/_misc_to_move/initHtmlHead.d.ts +2 -0
  143. package/dist/esm/_misc_to_move/initHtmlHead.js +34 -0
  144. package/dist/esm/_misc_to_move/logBuildInfo.d.ts +2 -0
  145. package/dist/esm/_misc_to_move/logBuildInfo.js +35 -0
  146. package/dist/esm/_misc_to_move/logDeviceInfo.d.ts +10 -0
  147. package/dist/esm/_misc_to_move/logDeviceInfo.js +84 -0
  148. package/dist/esm/components/AlertContainer.d.ts +4 -0
  149. package/dist/esm/components/AlertContainer.js +8 -0
  150. package/dist/esm/components/AutocompleteContainer.d.ts +4 -0
  151. package/dist/esm/components/AutocompleteContainer.js +14 -0
  152. package/dist/esm/components/BaseFilterModal.d.ts +11 -0
  153. package/dist/esm/components/BaseFilterModal.js +73 -0
  154. package/dist/esm/components/Bookmarks.d.ts +3 -0
  155. package/dist/esm/components/Bookmarks.js +26 -0
  156. package/dist/esm/components/Booth/Booth.d.ts +5 -0
  157. package/dist/esm/components/Booth/Booth.js +135 -0
  158. package/dist/esm/components/Booth/BoothOnHold.d.ts +13 -0
  159. package/dist/esm/components/Booth/BoothOnHold.js +11 -0
  160. package/dist/esm/components/Booth/BoothReserved.d.ts +3 -0
  161. package/dist/esm/components/Booth/BoothReserved.js +7 -0
  162. package/dist/esm/components/Booth/BoothSpecial.d.ts +8 -0
  163. package/dist/esm/components/Booth/BoothSpecial.js +4 -0
  164. package/dist/esm/components/Booth/BoothWithoutExhibitor.d.ts +13 -0
  165. package/dist/esm/components/Booth/BoothWithoutExhibitor.js +29 -0
  166. package/dist/esm/components/Category.d.ts +5 -0
  167. package/dist/esm/components/Category.js +25 -0
  168. package/dist/esm/components/CategoryFilterModal.d.ts +3 -0
  169. package/dist/esm/components/CategoryFilterModal.js +63 -0
  170. package/dist/esm/components/CookieConsent.d.ts +9 -0
  171. package/dist/esm/components/CookieConsent.js +9 -0
  172. package/dist/esm/components/Debug.d.ts +5 -0
  173. package/dist/esm/components/Debug.js +15 -0
  174. package/dist/esm/components/Demo.d.ts +4 -0
  175. package/dist/esm/components/Demo.js +37 -0
  176. package/dist/esm/components/DownloadListContainer.d.ts +5 -0
  177. package/dist/esm/components/DownloadListContainer.js +8 -0
  178. package/dist/esm/components/EntityItemContainer.d.ts +28 -0
  179. package/dist/esm/components/EntityItemContainer.js +36 -0
  180. package/dist/esm/components/EntityList.d.ts +9 -0
  181. package/dist/esm/components/EntityList.js +144 -0
  182. package/dist/esm/components/EntityListRow.d.ts +13 -0
  183. package/dist/esm/components/EntityListRow.js +78 -0
  184. package/dist/esm/components/ErrorBoundary.d.ts +15 -0
  185. package/dist/esm/components/ErrorBoundary.js +29 -0
  186. package/dist/esm/components/Event.d.ts +5 -0
  187. package/dist/esm/components/Event.js +167 -0
  188. package/dist/esm/components/EventBadgeContainer.d.ts +8 -0
  189. package/dist/esm/components/EventBadgeContainer.js +29 -0
  190. package/dist/esm/components/Exhibitor.d.ts +5 -0
  191. package/dist/esm/components/Exhibitor.js +299 -0
  192. package/dist/esm/components/Filter.d.ts +4 -0
  193. package/dist/esm/components/Filter.js +24 -0
  194. package/dist/esm/components/Free.d.ts +4 -0
  195. package/dist/esm/components/Free.js +31 -0
  196. package/dist/esm/components/GalleryContainer.d.ts +6 -0
  197. package/dist/esm/components/GalleryContainer.js +55 -0
  198. package/dist/esm/components/GlobalErrorMessage.d.ts +4 -0
  199. package/dist/esm/components/GlobalErrorMessage.js +9 -0
  200. package/dist/esm/components/GpsLoader.d.ts +5 -0
  201. package/dist/esm/components/GpsLoader.js +29 -0
  202. package/dist/esm/components/HeatmapLegendContainer.d.ts +5 -0
  203. package/dist/esm/components/HeatmapLegendContainer.js +13 -0
  204. package/dist/esm/components/HighlightTextContainer.d.ts +6 -0
  205. package/dist/esm/components/HighlightTextContainer.js +10 -0
  206. package/dist/esm/components/IntercomLauncher.d.ts +5 -0
  207. package/dist/esm/components/IntercomLauncher.js +20 -0
  208. package/dist/esm/components/JourneyPanel.d.ts +35 -0
  209. package/dist/esm/components/JourneyPanel.js +68 -0
  210. package/dist/esm/components/Kiosk/KioskStore.d.ts +60 -0
  211. package/dist/esm/components/Kiosk/KioskStore.js +411 -0
  212. package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.d.ts +5 -0
  213. package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.js +8 -0
  214. package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.d.ts +5 -0
  215. package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.js +24 -0
  216. package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.d.ts +5 -0
  217. package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.js +7 -0
  218. package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.d.ts +5 -0
  219. package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.js +78 -0
  220. package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.d.ts +5 -0
  221. package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +10 -0
  222. package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.d.ts +5 -0
  223. package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.js +15 -0
  224. package/dist/esm/components/Kiosk/SetKiosk/constants.d.ts +6 -0
  225. package/dist/esm/components/Kiosk/SetKiosk/constants.js +6 -0
  226. package/dist/esm/components/Kiosk/SetKiosk/getKioskUrlParamKey.d.ts +2 -0
  227. package/dist/esm/components/Kiosk/SetKiosk/getKioskUrlParamKey.js +4 -0
  228. package/dist/esm/components/Kiosk/SetKiosk/getName.d.ts +2 -0
  229. package/dist/esm/components/Kiosk/SetKiosk/getName.js +2 -0
  230. package/dist/esm/components/Kiosk/SetKiosk/getSlug.d.ts +2 -0
  231. package/dist/esm/components/Kiosk/SetKiosk/getSlug.js +2 -0
  232. package/dist/esm/components/Kiosk/SetKiosk/index.d.ts +7 -0
  233. package/dist/esm/components/Kiosk/SetKiosk/index.js +6 -0
  234. package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +5 -0
  235. package/dist/esm/components/Kiosk/SetKiosk/storage.js +21 -0
  236. package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +109 -0
  237. package/dist/esm/components/Kiosk/SetKiosk/types.js +1 -0
  238. package/dist/esm/components/Kiosk/SetKioskMode.d.ts +3 -0
  239. package/dist/esm/components/Kiosk/SetKioskMode.js +35 -0
  240. package/dist/esm/components/Kiosk/ShowKiosk.d.ts +3 -0
  241. package/dist/esm/components/Kiosk/ShowKiosk.js +72 -0
  242. package/dist/esm/components/Kiosk/integrateKiosk.d.ts +10 -0
  243. package/dist/esm/components/Kiosk/integrateKiosk.js +68 -0
  244. package/dist/esm/components/Kiosk/kiosk-mode.d.ts +26 -0
  245. package/dist/esm/components/Kiosk/kiosk-mode.js +56 -0
  246. package/dist/esm/components/Kiosk/kiosk-record.d.ts +23 -0
  247. package/dist/esm/components/Kiosk/kiosk-record.js +29 -0
  248. package/dist/esm/components/Kiosk/kioskApi.d.ts +4 -0
  249. package/dist/esm/components/Kiosk/kioskApi.js +47 -0
  250. package/dist/esm/components/Kiosk/kioskUrlParam.d.ts +8 -0
  251. package/dist/esm/components/Kiosk/kioskUrlParam.js +46 -0
  252. package/dist/esm/components/Kiosk/recoverKioskFromUrlPrams.d.ts +2 -0
  253. package/dist/esm/components/Kiosk/recoverKioskFromUrlPrams.js +9 -0
  254. package/dist/esm/components/Language.d.ts +4 -0
  255. package/dist/esm/components/Language.js +15 -0
  256. package/dist/esm/components/LanguageRowContainer.d.ts +7 -0
  257. package/dist/esm/components/LanguageRowContainer.js +9 -0
  258. package/dist/esm/components/Layout.d.ts +11 -0
  259. package/dist/esm/components/Layout.js +160 -0
  260. package/dist/esm/components/LevelBadgeContainer.d.ts +6 -0
  261. package/dist/esm/components/LevelBadgeContainer.js +10 -0
  262. package/dist/esm/components/List.d.ts +9 -0
  263. package/dist/esm/components/List.js +77 -0
  264. package/dist/esm/components/LogoOverlay.d.ts +3 -0
  265. package/dist/esm/components/LogoOverlay.js +78 -0
  266. package/dist/esm/components/Map/Map.d.ts +2 -0
  267. package/dist/esm/components/Map/Map.js +242 -0
  268. package/dist/esm/components/Map/MapCamera.d.ts +17 -0
  269. package/dist/esm/components/Map/MapCamera.js +194 -0
  270. package/dist/esm/components/Map/MapCursorCoords.d.ts +13 -0
  271. package/dist/esm/components/Map/MapCursorCoords.js +61 -0
  272. package/dist/esm/components/Map/MapViewport.d.ts +12 -0
  273. package/dist/esm/components/Map/MapViewport.js +29 -0
  274. package/dist/esm/components/Map/booth-by-xy.d.ts +14 -0
  275. package/dist/esm/components/Map/booth-by-xy.js +128 -0
  276. package/dist/esm/components/Map/camera-events.d.ts +19 -0
  277. package/dist/esm/components/Map/camera-events.js +26 -0
  278. package/dist/esm/components/Map/camera.d.ts +48 -0
  279. package/dist/esm/components/Map/camera.js +43 -0
  280. package/dist/esm/components/Map/drawing/config/BoothDrawerBase.d.ts +8 -0
  281. package/dist/esm/components/Map/drawing/config/BoothDrawerBase.js +8 -0
  282. package/dist/esm/components/Map/drawing/config/BoothShape.d.ts +7 -0
  283. package/dist/esm/components/Map/drawing/config/BoothShape.js +76 -0
  284. package/dist/esm/components/Map/drawing/config/TextFitter.d.ts +11 -0
  285. package/dist/esm/components/Map/drawing/config/TextFitter.js +174 -0
  286. package/dist/esm/components/Map/drawing/config/booth-badge-anchor.d.ts +130 -0
  287. package/dist/esm/components/Map/drawing/config/booth-badge-anchor.js +306 -0
  288. package/dist/esm/components/Map/drawing/config/booth-logos.d.ts +38 -0
  289. package/dist/esm/components/Map/drawing/config/booth-logos.js +94 -0
  290. package/dist/esm/components/Map/drawing/config/canvases.d.ts +96 -0
  291. package/dist/esm/components/Map/drawing/config/canvases.js +434 -0
  292. package/dist/esm/components/Map/drawing/config/config-all.d.ts +6 -0
  293. package/dist/esm/components/Map/drawing/config/config-all.js +92 -0
  294. package/dist/esm/components/Map/drawing/config/config-bg.d.ts +8 -0
  295. package/dist/esm/components/Map/drawing/config/config-bg.js +54 -0
  296. package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.d.ts +28 -0
  297. package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.js +7 -0
  298. package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.d.ts +20 -0
  299. package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.js +11 -0
  300. package/dist/esm/components/Map/drawing/config/config-booth-badge-visibility.d.ts +37 -0
  301. package/dist/esm/components/Map/drawing/config/config-booth-badge-visibility.js +3 -0
  302. package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +90 -0
  303. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +326 -0
  304. package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +33 -0
  305. package/dist/esm/components/Map/drawing/config/config-booth-bg.js +240 -0
  306. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.d.ts +24 -0
  307. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +65 -0
  308. package/dist/esm/components/Map/drawing/config/config-booth-border.d.ts +12 -0
  309. package/dist/esm/components/Map/drawing/config/config-booth-border.js +92 -0
  310. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +28 -0
  311. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +147 -0
  312. package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +63 -0
  313. package/dist/esm/components/Map/drawing/config/config-booth-labels.js +380 -0
  314. package/dist/esm/components/Map/drawing/config/config-booths.d.ts +5 -0
  315. package/dist/esm/components/Map/drawing/config/config-booths.js +152 -0
  316. package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +4 -0
  317. package/dist/esm/components/Map/drawing/config/config-load-layer.js +119 -0
  318. package/dist/esm/components/Map/drawing/config/config-markers.d.ts +42 -0
  319. package/dist/esm/components/Map/drawing/config/config-markers.js +278 -0
  320. package/dist/esm/components/Map/drawing/config/config-outdoor-poi.d.ts +19 -0
  321. package/dist/esm/components/Map/drawing/config/config-outdoor-poi.js +96 -0
  322. package/dist/esm/components/Map/drawing/config/config-pins.d.ts +40 -0
  323. package/dist/esm/components/Map/drawing/config/config-pins.js +533 -0
  324. package/dist/esm/components/Map/drawing/config/label-inset.d.ts +26 -0
  325. package/dist/esm/components/Map/drawing/config/label-inset.js +26 -0
  326. package/dist/esm/components/Map/drawing/config/layer-images.d.ts +24 -0
  327. package/dist/esm/components/Map/drawing/config/layer-images.js +32 -0
  328. package/dist/esm/components/Map/drawing/config/layer-models.d.ts +31 -0
  329. package/dist/esm/components/Map/drawing/config/layer-models.js +38 -0
  330. package/dist/esm/components/Map/drawing/config/loadBoothsImages.d.ts +45 -0
  331. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +99 -0
  332. package/dist/esm/components/Map/drawing/config/pin-geometry.d.ts +65 -0
  333. package/dist/esm/components/Map/drawing/config/pin-geometry.js +75 -0
  334. package/dist/esm/components/Map/drawing/config/poi-pin-shape.d.ts +100 -0
  335. package/dist/esm/components/Map/drawing/config/poi-pin-shape.js +51 -0
  336. package/dist/esm/components/Map/drawing/config/poi-pin.d.ts +10 -0
  337. package/dist/esm/components/Map/drawing/config/poi-pin.js +88 -0
  338. package/dist/esm/components/Map/drawing/config/selection-style.d.ts +12 -0
  339. package/dist/esm/components/Map/drawing/config/selection-style.js +18 -0
  340. package/dist/esm/components/Map/framing-rect.d.ts +16 -0
  341. package/dist/esm/components/Map/framing-rect.js +24 -0
  342. package/dist/esm/components/Map/pointer.d.ts +79 -0
  343. package/dist/esm/components/Map/pointer.js +181 -0
  344. package/dist/esm/components/Map/scene.d.ts +20 -0
  345. package/dist/esm/components/Map/scene.js +24 -0
  346. package/dist/esm/components/Map/traffic/UpdateQueue.d.ts +13 -0
  347. package/dist/esm/components/Map/traffic/UpdateQueue.js +82 -0
  348. package/dist/esm/components/Map/traffic/trafficLayers.d.ts +12 -0
  349. package/dist/esm/components/Map/traffic/trafficLayers.js +29 -0
  350. package/dist/esm/components/Map/traffic/useBuildRoute.d.ts +9 -0
  351. package/dist/esm/components/Map/traffic/useBuildRoute.js +359 -0
  352. package/dist/esm/components/Map/traffic/useManageTraffic.d.ts +10 -0
  353. package/dist/esm/components/Map/traffic/useManageTraffic.js +643 -0
  354. package/dist/esm/components/Map/viewport.d.ts +63 -0
  355. package/dist/esm/components/Map/viewport.js +82 -0
  356. package/dist/esm/components/Map/with-kiosk.d.ts +11 -0
  357. package/dist/esm/components/Map/with-kiosk.js +25 -0
  358. package/dist/esm/components/MapControlsContainer.d.ts +3 -0
  359. package/dist/esm/components/MapControlsContainer.js +58 -0
  360. package/dist/esm/components/Maplibre/CollapsedAttributionControl.d.ts +12 -0
  361. package/dist/esm/components/Maplibre/CollapsedAttributionControl.js +19 -0
  362. package/dist/esm/components/Maplibre/ExpofpLogoControl.d.ts +20 -0
  363. package/dist/esm/components/Maplibre/ExpofpLogoControl.js +39 -0
  364. package/dist/esm/components/Maplibre/MaplibreAdapter.d.ts +18 -0
  365. package/dist/esm/components/Maplibre/MaplibreAdapter.js +354 -0
  366. package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +111 -0
  367. package/dist/esm/components/Maplibre/MaplibreWrapper.js +310 -0
  368. package/dist/esm/components/Maplibre/maplibre-recovery.d.ts +4 -0
  369. package/dist/esm/components/Maplibre/maplibre-recovery.js +4 -0
  370. package/dist/esm/components/Maplibre/styles/mapbox-streets-bright.d.ts +3 -0
  371. package/dist/esm/components/Maplibre/styles/mapbox-streets-bright.js +7048 -0
  372. package/dist/esm/components/Maplibre/styles/mapbox-streets.d.ts +3 -0
  373. package/dist/esm/components/Maplibre/styles/mapbox-streets.js +6132 -0
  374. package/dist/esm/components/Maplibre/useCameraReactions.d.ts +14 -0
  375. package/dist/esm/components/Maplibre/useCameraReactions.js +256 -0
  376. package/dist/esm/components/Maplibre/useDimming.d.ts +25 -0
  377. package/dist/esm/components/Maplibre/useDimming.js +61 -0
  378. package/dist/esm/components/Maplibre/useJourneyConnector.d.ts +16 -0
  379. package/dist/esm/components/Maplibre/useJourneyConnector.js +175 -0
  380. package/dist/esm/components/Maplibre/useKioskCameraEvents.d.ts +20 -0
  381. package/dist/esm/components/Maplibre/useKioskCameraEvents.js +52 -0
  382. package/dist/esm/components/Maplibre/useLayerVisibilitySync.d.ts +25 -0
  383. package/dist/esm/components/Maplibre/useLayerVisibilitySync.js +85 -0
  384. package/dist/esm/components/Maplibre/usePoiMarkers.d.ts +25 -0
  385. package/dist/esm/components/Maplibre/usePoiMarkers.js +368 -0
  386. package/dist/esm/components/Maplibre/useVenueCameraTracking.d.ts +6 -0
  387. package/dist/esm/components/Maplibre/useVenueCameraTracking.js +115 -0
  388. package/dist/esm/components/Maplibre/useVenueLayers.d.ts +15 -0
  389. package/dist/esm/components/Maplibre/useVenueLayers.js +463 -0
  390. package/dist/esm/components/Maplibre/useWayfindingAndMarkers.d.ts +11 -0
  391. package/dist/esm/components/Maplibre/useWayfindingAndMarkers.js +23 -0
  392. package/dist/esm/components/Maplibre/utils/basemap-palette.d.ts +19 -0
  393. package/dist/esm/components/Maplibre/utils/basemap-palette.js +125 -0
  394. package/dist/esm/components/Maplibre/utils/geo-config.d.ts +92 -0
  395. package/dist/esm/components/Maplibre/utils/geo-config.js +305 -0
  396. package/dist/esm/components/Maplibre/utils/hit-test-registry.d.ts +18 -0
  397. package/dist/esm/components/Maplibre/utils/hit-test-registry.js +17 -0
  398. package/dist/esm/components/Maplibre/utils/layer-defs.d.ts +9 -0
  399. package/dist/esm/components/Maplibre/utils/layer-defs.js +19 -0
  400. package/dist/esm/components/Maplibre/utils/local-viewport.d.ts +13 -0
  401. package/dist/esm/components/Maplibre/utils/local-viewport.js +31 -0
  402. package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +21 -0
  403. package/dist/esm/components/Maplibre/utils/map-helpers.js +85 -0
  404. package/dist/esm/components/Maplibre/utils/map-theme.d.ts +20 -0
  405. package/dist/esm/components/Maplibre/utils/map-theme.js +44 -0
  406. package/dist/esm/components/Maplibre/utils/marker-layer-order.d.ts +22 -0
  407. package/dist/esm/components/Maplibre/utils/marker-layer-order.js +20 -0
  408. package/dist/esm/components/Maplibre/utils/pmtiles-range-fallback.d.ts +53 -0
  409. package/dist/esm/components/Maplibre/utils/pmtiles-range-fallback.js +110 -0
  410. package/dist/esm/components/Maplibre/utils/poi-marker-hit-test.d.ts +8 -0
  411. package/dist/esm/components/Maplibre/utils/poi-marker-hit-test.js +8 -0
  412. package/dist/esm/components/Maplibre/utils/resolve-map-style.d.ts +19 -0
  413. package/dist/esm/components/Maplibre/utils/resolve-map-style.js +73 -0
  414. package/dist/esm/components/Maplibre/utils/solver.d.ts +23 -0
  415. package/dist/esm/components/Maplibre/utils/solver.js +238 -0
  416. package/dist/esm/components/Maplibre/utils/style-fonts.d.ts +10 -0
  417. package/dist/esm/components/Maplibre/utils/style-fonts.js +24 -0
  418. package/dist/esm/components/Maplibre/utils/venue-calibration-console.d.ts +10 -0
  419. package/dist/esm/components/Maplibre/utils/venue-calibration-console.js +130 -0
  420. package/dist/esm/components/Maplibre/utils/venue-calibration.d.ts +127 -0
  421. package/dist/esm/components/Maplibre/utils/venue-calibration.js +144 -0
  422. package/dist/esm/components/Maplibre/utils/venue-camera-target.d.ts +15 -0
  423. package/dist/esm/components/Maplibre/utils/venue-camera-target.js +19 -0
  424. package/dist/esm/components/Maplibre/utils/venue-contour.d.ts +50 -0
  425. package/dist/esm/components/Maplibre/utils/venue-contour.fixture.d.ts +18 -0
  426. package/dist/esm/components/Maplibre/utils/venue-contour.fixture.js +69 -0
  427. package/dist/esm/components/Maplibre/utils/venue-contour.js +188 -0
  428. package/dist/esm/components/Maplibre/utils/venue-focus.d.ts +26 -0
  429. package/dist/esm/components/Maplibre/utils/venue-focus.js +106 -0
  430. package/dist/esm/components/Maplibre/utils/venue-legibility.d.ts +30 -0
  431. package/dist/esm/components/Maplibre/utils/venue-legibility.js +52 -0
  432. package/dist/esm/components/Maplibre/utils/venue-pin-rasterize.d.ts +88 -0
  433. package/dist/esm/components/Maplibre/utils/venue-pin-rasterize.js +220 -0
  434. package/dist/esm/components/Maplibre/utils/venue-projection.d.ts +37 -0
  435. package/dist/esm/components/Maplibre/utils/venue-projection.js +88 -0
  436. package/dist/esm/components/Maplibre/utils/venue-tap-hit-test.d.ts +9 -0
  437. package/dist/esm/components/Maplibre/utils/venue-tap-hit-test.js +9 -0
  438. package/dist/esm/components/Maplibre/utils/venue-viewport-detail.d.ts +19 -0
  439. package/dist/esm/components/Maplibre/utils/venue-viewport-detail.js +24 -0
  440. package/dist/esm/components/Maplibre/utils/venue-zoom.d.ts +23 -0
  441. package/dist/esm/components/Maplibre/utils/venue-zoom.js +62 -0
  442. package/dist/esm/components/Menu.d.ts +11 -0
  443. package/dist/esm/components/Menu.js +94 -0
  444. package/dist/esm/components/MobileToggleButtonContainer.d.ts +3 -0
  445. package/dist/esm/components/MobileToggleButtonContainer.js +24 -0
  446. package/dist/esm/components/ModalContainer.d.ts +41 -0
  447. package/dist/esm/components/ModalContainer.js +10 -0
  448. package/dist/esm/components/MultiSelectGroupsContainer.d.ts +5 -0
  449. package/dist/esm/components/MultiSelectGroupsContainer.js +8 -0
  450. package/dist/esm/components/OverlayContainer.d.ts +8 -0
  451. package/dist/esm/components/OverlayContainer.js +82 -0
  452. package/dist/esm/components/OverlayGripContainer.d.ts +4 -0
  453. package/dist/esm/components/OverlayGripContainer.js +11 -0
  454. package/dist/esm/components/OverlayParticles.d.ts +5 -0
  455. package/dist/esm/components/OverlayParticles.js +54 -0
  456. package/dist/esm/components/PlanSelectorContainer.d.ts +3 -0
  457. package/dist/esm/components/PlanSelectorContainer.js +79 -0
  458. package/dist/esm/components/RebookingNotesContainer.d.ts +4 -0
  459. package/dist/esm/components/RebookingNotesContainer.js +8 -0
  460. package/dist/esm/components/RebookingRadioGroupContainer.d.ts +6 -0
  461. package/dist/esm/components/RebookingRadioGroupContainer.js +23 -0
  462. package/dist/esm/components/RoutePlanner/RoutePlanner.d.ts +5 -0
  463. package/dist/esm/components/RoutePlanner/RoutePlanner.js +25 -0
  464. package/dist/esm/components/RoutePlanner/RoutePlannerHeader.d.ts +4 -0
  465. package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +11 -0
  466. package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.d.ts +9 -0
  467. package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.js +21 -0
  468. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.d.ts +9 -0
  469. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +41 -0
  470. package/dist/esm/components/RouteQR.d.ts +12 -0
  471. package/dist/esm/components/RouteQR.js +10 -0
  472. package/dist/esm/components/Schedule.d.ts +13 -0
  473. package/dist/esm/components/Schedule.js +109 -0
  474. package/dist/esm/components/ScrollableRowContainer.d.ts +6 -0
  475. package/dist/esm/components/ScrollableRowContainer.js +11 -0
  476. package/dist/esm/components/Search.d.ts +5 -0
  477. package/dist/esm/components/Search.js +45 -0
  478. package/dist/esm/components/SearchBox.d.ts +7 -0
  479. package/dist/esm/components/SearchBox.js +171 -0
  480. package/dist/esm/components/SearchButtons/SearchButton.d.ts +20 -0
  481. package/dist/esm/components/SearchButtons/SearchButton.js +30 -0
  482. package/dist/esm/components/SearchButtons/SearchButtons.d.ts +4 -0
  483. package/dist/esm/components/SearchButtons/SearchButtons.js +25 -0
  484. package/dist/esm/components/SearchButtons/SearchSubButton.d.ts +14 -0
  485. package/dist/esm/components/SearchButtons/SearchSubButton.js +12 -0
  486. package/dist/esm/components/SearchButtons/SearchSubButtons.d.ts +5 -0
  487. package/dist/esm/components/SearchButtons/SearchSubButtons.js +43 -0
  488. package/dist/esm/components/SearchButtons/index.d.ts +7 -0
  489. package/dist/esm/components/SearchButtons/index.js +5 -0
  490. package/dist/esm/components/Sessions.d.ts +8 -0
  491. package/dist/esm/components/Sessions.js +128 -0
  492. package/dist/esm/components/SessionsFiltersModal.d.ts +11 -0
  493. package/dist/esm/components/SessionsFiltersModal.js +105 -0
  494. package/dist/esm/components/SessionsList.d.ts +12 -0
  495. package/dist/esm/components/SessionsList.js +212 -0
  496. package/dist/esm/components/ShareContainer.d.ts +7 -0
  497. package/dist/esm/components/ShareContainer.js +29 -0
  498. package/dist/esm/components/Shortcuts/ShortcutButton.d.ts +9 -0
  499. package/dist/esm/components/Shortcuts/ShortcutButton.js +25 -0
  500. package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.d.ts +9 -0
  501. package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.js +41 -0
  502. package/dist/esm/components/Shortcuts/ShortcutsToolbar.d.ts +10 -0
  503. package/dist/esm/components/Shortcuts/ShortcutsToolbar.js +22 -0
  504. package/dist/esm/components/Shortcuts/index.d.ts +4 -0
  505. package/dist/esm/components/Shortcuts/index.js +4 -0
  506. package/dist/esm/components/ShowMoreButtonContainer.d.ts +5 -0
  507. package/dist/esm/components/ShowMoreButtonContainer.js +8 -0
  508. package/dist/esm/components/SidebarActionsContainer.d.ts +5 -0
  509. package/dist/esm/components/SidebarActionsContainer.js +8 -0
  510. package/dist/esm/components/SimpleRowContainer.d.ts +8 -0
  511. package/dist/esm/components/SimpleRowContainer.js +8 -0
  512. package/dist/esm/components/Speaker.d.ts +5 -0
  513. package/dist/esm/components/Speaker.js +72 -0
  514. package/dist/esm/components/Speakers.d.ts +8 -0
  515. package/dist/esm/components/Speakers.js +63 -0
  516. package/dist/esm/components/SpeakersFiltersModal.d.ts +11 -0
  517. package/dist/esm/components/SpeakersFiltersModal.js +77 -0
  518. package/dist/esm/components/TourPoints.d.ts +4 -0
  519. package/dist/esm/components/TourPoints.js +20 -0
  520. package/dist/esm/components/Tours.d.ts +7 -0
  521. package/dist/esm/components/Tours.js +54 -0
  522. package/dist/esm/components/ToursList.d.ts +10 -0
  523. package/dist/esm/components/ToursList.js +22 -0
  524. package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
  525. package/dist/esm/components/ViewerMenuPanel.js +61 -0
  526. package/dist/esm/components/Visited.d.ts +4 -0
  527. package/dist/esm/components/Visited.js +13 -0
  528. package/dist/esm/components/WayInformation.d.ts +14 -0
  529. package/dist/esm/components/WayInformation.js +8 -0
  530. package/dist/esm/components/Wayfinding.d.ts +4 -0
  531. package/dist/esm/components/Wayfinding.js +285 -0
  532. package/dist/esm/components/WayfindingFloorSelectorContainer.d.ts +5 -0
  533. package/dist/esm/components/WayfindingFloorSelectorContainer.js +12 -0
  534. package/dist/esm/components/WayfindingTemplate.d.ts +66 -0
  535. package/dist/esm/components/WayfindingTemplate.js +14 -0
  536. package/dist/esm/components/Ws.d.ts +5 -0
  537. package/dist/esm/components/Ws.js +131 -0
  538. package/dist/esm/components/YahRow.d.ts +8 -0
  539. package/dist/esm/components/YahRow.js +25 -0
  540. package/dist/esm/components/gps/GpsManager.d.ts +13 -0
  541. package/dist/esm/components/gps/GpsManager.js +60 -0
  542. package/dist/esm/components/gps/GpsPermissionRequest.d.ts +8 -0
  543. package/dist/esm/components/gps/GpsPermissionRequest.js +10 -0
  544. package/dist/esm/components/gps/index.d.ts +5 -0
  545. package/dist/esm/components/gps/index.js +3 -0
  546. package/dist/esm/components/gps/types.d.ts +7 -0
  547. package/dist/esm/components/gps/types.js +1 -0
  548. package/dist/esm/components/gps/useUserLocationAndHeading.d.ts +8 -0
  549. package/dist/esm/components/gps/useUserLocationAndHeading.js +122 -0
  550. package/dist/esm/components/gps/utils.d.ts +5 -0
  551. package/dist/esm/components/gps/utils.js +11 -0
  552. package/dist/esm/components/heatmap-legend-ticks.d.ts +11 -0
  553. package/dist/esm/components/heatmap-legend-ticks.js +18 -0
  554. package/dist/esm/components/index.d.ts +114 -0
  555. package/dist/esm/components/index.js +76 -0
  556. package/dist/esm/components/utils/entity-venue-grouping.d.ts +32 -0
  557. package/dist/esm/components/utils/entity-venue-grouping.js +43 -0
  558. package/dist/esm/components/utils/getDescription.d.ts +19 -0
  559. package/dist/esm/components/utils/getDescription.js +35 -0
  560. package/dist/esm/constants.d.ts +44 -0
  561. package/dist/esm/constants.js +66 -0
  562. package/dist/esm/data/fp-payloads.d.ts +27 -0
  563. package/dist/esm/data/fp-payloads.js +53 -0
  564. package/dist/esm/data/fpGeo.d.ts +45 -0
  565. package/dist/esm/data/fpGeo.js +9 -0
  566. package/dist/esm/data/index.d.ts +15 -0
  567. package/dist/esm/data/index.js +15 -0
  568. package/dist/esm/data/layer-viewbox.d.ts +10 -0
  569. package/dist/esm/data/layer-viewbox.js +20 -0
  570. package/dist/esm/data/svg.d.ts +43 -0
  571. package/dist/esm/data/svg.js +210 -0
  572. package/dist/esm/data/tours.json +280 -0
  573. package/dist/esm/data/venue-scene-preload.d.ts +34 -0
  574. package/dist/esm/data/venue-scene-preload.js +205 -0
  575. package/dist/esm/data/venues.d.ts +145 -0
  576. package/dist/esm/data/venues.js +955 -0
  577. package/dist/esm/engine/defs.d.ts +38 -0
  578. package/dist/esm/engine/defs.js +85 -0
  579. package/dist/esm/engine/fonts.d.ts +9 -0
  580. package/dist/esm/engine/fonts.js +12 -0
  581. package/dist/esm/engine/update-def.d.ts +55 -0
  582. package/dist/esm/engine/update-def.js +127 -0
  583. package/dist/esm/engine/utils/rotation.d.ts +13 -0
  584. package/dist/esm/engine/utils/rotation.js +73 -0
  585. package/dist/esm/floorplan.loader.d.ts +164 -0
  586. package/dist/esm/floorplan.loader.js +540 -0
  587. package/dist/esm/floorplan.ready.d.ts +149 -0
  588. package/dist/esm/floorplan.ready.js +1093 -0
  589. package/dist/esm/hooks/useURLFilters.d.ts +15 -0
  590. package/dist/esm/hooks/useURLFilters.js +44 -0
  591. package/dist/esm/index.d.ts +3 -0
  592. package/dist/esm/index.js +12 -0
  593. package/dist/esm/intercom/bootIntercom.d.ts +3 -0
  594. package/dist/esm/intercom/bootIntercom.js +47 -0
  595. package/dist/esm/intercom/index.d.ts +3 -0
  596. package/dist/esm/intercom/index.js +1 -0
  597. package/dist/esm/intercom/shouldLoad.d.ts +4 -0
  598. package/dist/esm/intercom/shouldLoad.js +74 -0
  599. package/dist/esm/intercom/types.d.ts +6 -0
  600. package/dist/esm/intercom/types.js +1 -0
  601. package/dist/esm/internal-settings.d.ts +13 -0
  602. package/dist/esm/internal-settings.js +6 -0
  603. package/dist/esm/journey/external-navigation.d.ts +30 -0
  604. package/dist/esm/journey/external-navigation.js +38 -0
  605. package/dist/esm/journey/format-distance.d.ts +14 -0
  606. package/dist/esm/journey/format-distance.js +38 -0
  607. package/dist/esm/journey/index.d.ts +16 -0
  608. package/dist/esm/journey/index.js +15 -0
  609. package/dist/esm/journey/journey-context.d.ts +140 -0
  610. package/dist/esm/journey/journey-context.js +137 -0
  611. package/dist/esm/journey/journey-link.d.ts +49 -0
  612. package/dist/esm/journey/journey-link.js +35 -0
  613. package/dist/esm/journey/journey-stage.d.ts +35 -0
  614. package/dist/esm/journey/journey-stage.js +28 -0
  615. package/dist/esm/journey/maps-provider.d.ts +36 -0
  616. package/dist/esm/journey/maps-provider.js +58 -0
  617. package/dist/esm/journey/plan-journey.d.ts +37 -0
  618. package/dist/esm/journey/plan-journey.js +176 -0
  619. package/dist/esm/journey/types.d.ts +294 -0
  620. package/dist/esm/journey/types.js +1 -0
  621. package/dist/esm/load-dev.d.ts +44 -0
  622. package/dist/esm/load-dev.js +60 -0
  623. package/dist/esm/load.d.ts +17 -0
  624. package/dist/esm/load.js +244 -0
  625. package/dist/esm/locales.d.ts +25 -0
  626. package/dist/esm/locales.js +23 -0
  627. package/dist/esm/offline/constants.d.ts +5 -0
  628. package/dist/esm/offline/constants.js +4 -0
  629. package/dist/esm/offline/offlineManager.d.ts +2 -0
  630. package/dist/esm/offline/offlineManager.js +78 -0
  631. package/dist/esm/plan-lifecycle.d.ts +65 -0
  632. package/dist/esm/plan-lifecycle.js +97 -0
  633. package/dist/esm/schemas/sdk.schemas.d.ts +25 -0
  634. package/dist/esm/schemas/sdk.schemas.js +24 -0
  635. package/dist/esm/services/URLFilterManager.d.ts +39 -0
  636. package/dist/esm/services/URLFilterManager.js +379 -0
  637. package/dist/esm/services/multi-slug.d.ts +20 -0
  638. package/dist/esm/services/multi-slug.js +30 -0
  639. package/dist/esm/services/url-dispatch.d.ts +22 -0
  640. package/dist/esm/services/url-dispatch.js +707 -0
  641. package/dist/esm/services/url-sync.d.ts +40 -0
  642. package/dist/esm/services/url-sync.js +185 -0
  643. package/dist/esm/store/BaseFilterStore.d.ts +17 -0
  644. package/dist/esm/store/BaseFilterStore.js +63 -0
  645. package/dist/esm/store/BookmarksStore.d.ts +9 -0
  646. package/dist/esm/store/BookmarksStore.js +28 -0
  647. package/dist/esm/store/BoothStore.d.ts +105 -0
  648. package/dist/esm/store/BoothStore.js +194 -0
  649. package/dist/esm/store/CategoryFilterStore.d.ts +13 -0
  650. package/dist/esm/store/CategoryFilterStore.js +60 -0
  651. package/dist/esm/store/CategoryStore.d.ts +21 -0
  652. package/dist/esm/store/CategoryStore.js +30 -0
  653. package/dist/esm/store/EventStore.d.ts +56 -0
  654. package/dist/esm/store/EventStore.js +188 -0
  655. package/dist/esm/store/ExhibitorStore.d.ts +86 -0
  656. package/dist/esm/store/ExhibitorStore.js +175 -0
  657. package/dist/esm/store/FuzzySearchEngineStore.d.ts +15 -0
  658. package/dist/esm/store/FuzzySearchEngineStore.js +45 -0
  659. package/dist/esm/store/HeatmapStore.d.ts +51 -0
  660. package/dist/esm/store/HeatmapStore.js +100 -0
  661. package/dist/esm/store/IntercomStore.d.ts +7 -0
  662. package/dist/esm/store/IntercomStore.js +26 -0
  663. package/dist/esm/store/LayerStore.d.ts +70 -0
  664. package/dist/esm/store/LayerStore.js +399 -0
  665. package/dist/esm/store/MaplibreStore.d.ts +71 -0
  666. package/dist/esm/store/MaplibreStore.js +137 -0
  667. package/dist/esm/store/OverlayStore.d.ts +32 -0
  668. package/dist/esm/store/OverlayStore.js +68 -0
  669. package/dist/esm/store/PoiMarkerStore.d.ts +76 -0
  670. package/dist/esm/store/PoiMarkerStore.js +97 -0
  671. package/dist/esm/store/PoiTypeStore.d.ts +8 -0
  672. package/dist/esm/store/PoiTypeStore.js +6 -0
  673. package/dist/esm/store/RootStore.d.ts +118 -0
  674. package/dist/esm/store/RootStore.js +666 -0
  675. package/dist/esm/store/RoutePlannerStore.d.ts +56 -0
  676. package/dist/esm/store/RoutePlannerStore.js +322 -0
  677. package/dist/esm/store/RouteStore.d.ts +138 -0
  678. package/dist/esm/store/RouteStore.js +697 -0
  679. package/dist/esm/store/SearchButtonsStore.d.ts +2 -0
  680. package/dist/esm/store/SearchButtonsStore.js +2 -0
  681. package/dist/esm/store/SearchStore.d.ts +81 -0
  682. package/dist/esm/store/SearchStore.js +612 -0
  683. package/dist/esm/store/SessionsFilterStore.d.ts +53 -0
  684. package/dist/esm/store/SessionsFilterStore.js +169 -0
  685. package/dist/esm/store/ShortcutProvider.d.ts +26 -0
  686. package/dist/esm/store/ShortcutProvider.js +5 -0
  687. package/dist/esm/store/ShortcutRegistry.d.ts +33 -0
  688. package/dist/esm/store/ShortcutRegistry.js +130 -0
  689. package/dist/esm/store/SpeakerFilterStore.d.ts +39 -0
  690. package/dist/esm/store/SpeakerFilterStore.js +152 -0
  691. package/dist/esm/store/SpeakerStore.d.ts +45 -0
  692. package/dist/esm/store/SpeakerStore.js +142 -0
  693. package/dist/esm/store/SubButtonProvider.d.ts +16 -0
  694. package/dist/esm/store/SubButtonProvider.js +6 -0
  695. package/dist/esm/store/SubButtonRegistry.d.ts +16 -0
  696. package/dist/esm/store/SubButtonRegistry.js +58 -0
  697. package/dist/esm/store/ToursStore.d.ts +30 -0
  698. package/dist/esm/store/ToursStore.js +184 -0
  699. package/dist/esm/store/UIState.d.ts +329 -0
  700. package/dist/esm/store/UIState.js +2138 -0
  701. package/dist/esm/store/VenueStore.d.ts +254 -0
  702. package/dist/esm/store/VenueStore.js +650 -0
  703. package/dist/esm/store/create-live-plan.d.ts +13 -0
  704. package/dist/esm/store/create-live-plan.js +25 -0
  705. package/dist/esm/store/details-events.d.ts +11 -0
  706. package/dist/esm/store/details-events.js +76 -0
  707. package/dist/esm/store/floor-activated-notifier.d.ts +18 -0
  708. package/dist/esm/store/floor-activated-notifier.js +22 -0
  709. package/dist/esm/store/index.d.ts +3 -0
  710. package/dist/esm/store/index.js +14 -0
  711. package/dist/esm/store/init/index.d.ts +3 -0
  712. package/dist/esm/store/init/index.js +20 -0
  713. package/dist/esm/store/init/init-booths.d.ts +6 -0
  714. package/dist/esm/store/init/init-booths.js +306 -0
  715. package/dist/esm/store/init/init-categories.d.ts +3 -0
  716. package/dist/esm/store/init/init-categories.js +28 -0
  717. package/dist/esm/store/init/init-events.d.ts +3 -0
  718. package/dist/esm/store/init/init-events.js +45 -0
  719. package/dist/esm/store/init/init-exhibitors.d.ts +3 -0
  720. package/dist/esm/store/init/init-exhibitors.js +71 -0
  721. package/dist/esm/store/init/init-heatmap.d.ts +3 -0
  722. package/dist/esm/store/init/init-heatmap.js +37 -0
  723. package/dist/esm/store/init/init-layers.d.ts +8 -0
  724. package/dist/esm/store/init/init-layers.js +151 -0
  725. package/dist/esm/store/init/init-poiTypes.d.ts +3 -0
  726. package/dist/esm/store/init/init-poiTypes.js +6 -0
  727. package/dist/esm/store/init/init-speakers.d.ts +3 -0
  728. package/dist/esm/store/init/init-speakers.js +20 -0
  729. package/dist/esm/store/init/init-ui.d.ts +13 -0
  730. package/dist/esm/store/init/init-ui.js +155 -0
  731. package/dist/esm/store/journey-plan.d.ts +89 -0
  732. package/dist/esm/store/journey-plan.js +291 -0
  733. package/dist/esm/store/live-store.d.ts +19 -0
  734. package/dist/esm/store/live-store.js +26 -0
  735. package/dist/esm/store/outdoor-poi-filter.d.ts +21 -0
  736. package/dist/esm/store/outdoor-poi-filter.js +33 -0
  737. package/dist/esm/store/providers/SearchShortcutProvider.d.ts +13 -0
  738. package/dist/esm/store/providers/SearchShortcutProvider.js +59 -0
  739. package/dist/esm/store/providers/SessionsShortcutProvider.d.ts +17 -0
  740. package/dist/esm/store/providers/SessionsShortcutProvider.js +221 -0
  741. package/dist/esm/store/providers/SessionsSubButtonProvider.d.ts +33 -0
  742. package/dist/esm/store/providers/SessionsSubButtonProvider.js +100 -0
  743. package/dist/esm/store/providers/SpeakerShortcutProvider.d.ts +12 -0
  744. package/dist/esm/store/providers/SpeakerShortcutProvider.js +73 -0
  745. package/dist/esm/store/reveal-layer.d.ts +29 -0
  746. package/dist/esm/store/reveal-layer.js +25 -0
  747. package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +55 -0
  748. package/dist/esm/store/search-buttons/SearchButtonsActions.js +363 -0
  749. package/dist/esm/store/search-buttons/SearchButtonsFactory.d.ts +37 -0
  750. package/dist/esm/store/search-buttons/SearchButtonsFactory.js +291 -0
  751. package/dist/esm/store/search-buttons/SearchButtonsFilters.d.ts +20 -0
  752. package/dist/esm/store/search-buttons/SearchButtonsFilters.js +157 -0
  753. package/dist/esm/store/search-buttons/SearchButtonsState.d.ts +24 -0
  754. package/dist/esm/store/search-buttons/SearchButtonsState.js +125 -0
  755. package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +73 -0
  756. package/dist/esm/store/search-buttons/SearchButtonsStore.js +364 -0
  757. package/dist/esm/store/search-buttons/constants.d.ts +24 -0
  758. package/dist/esm/store/search-buttons/constants.js +24 -0
  759. package/dist/esm/store/search-buttons/index.d.ts +8 -0
  760. package/dist/esm/store/search-buttons/index.js +7 -0
  761. package/dist/esm/store/search-buttons/utils.d.ts +6 -0
  762. package/dist/esm/store/search-buttons/utils.js +34 -0
  763. package/dist/esm/store/types.d.ts +213 -0
  764. package/dist/esm/store/types.js +1 -0
  765. package/dist/esm/store/venue-public.d.ts +10 -0
  766. package/dist/esm/store/venue-public.js +14 -0
  767. package/dist/esm/store/venue-selection.d.ts +45 -0
  768. package/dist/esm/store/venue-selection.js +101 -0
  769. package/dist/esm/test/store-harness.d.ts +32 -0
  770. package/dist/esm/test/store-harness.js +116 -0
  771. package/dist/esm/tools/base-runtime-url.d.ts +3 -0
  772. package/dist/esm/tools/base-runtime-url.js +23 -0
  773. package/dist/esm/tools/debounce.d.ts +2 -0
  774. package/dist/esm/tools/debounce.js +10 -0
  775. package/dist/esm/tools/debugCanvases.d.ts +3 -0
  776. package/dist/esm/tools/debugCanvases.js +3 -0
  777. package/dist/esm/tools/event-not-found.d.ts +18 -0
  778. package/dist/esm/tools/event-not-found.js +50 -0
  779. package/dist/esm/tools/event-scoped-cache.d.ts +13 -0
  780. package/dist/esm/tools/event-scoped-cache.js +47 -0
  781. package/dist/esm/tools/expofpUrl.d.ts +7 -0
  782. package/dist/esm/tools/expofpUrl.js +10 -0
  783. package/dist/esm/tools/freeBanner.d.ts +5 -0
  784. package/dist/esm/tools/freeBanner.js +11 -0
  785. package/dist/esm/tools/gtag.d.ts +66 -0
  786. package/dist/esm/tools/gtag.js +287 -0
  787. package/dist/esm/tools/handleDebugMode.d.ts +19 -0
  788. package/dist/esm/tools/handleDebugMode.js +61 -0
  789. package/dist/esm/tools/has-html-tags.d.ts +2 -0
  790. package/dist/esm/tools/has-html-tags.js +3 -0
  791. package/dist/esm/tools/id.d.ts +2 -0
  792. package/dist/esm/tools/id.js +5 -0
  793. package/dist/esm/tools/loaders.d.ts +5 -0
  794. package/dist/esm/tools/loaders.js +67 -0
  795. package/dist/esm/tools/logger.d.ts +38 -0
  796. package/dist/esm/tools/logger.js +87 -0
  797. package/dist/esm/tools/rebooking-config.d.ts +10 -0
  798. package/dist/esm/tools/rebooking-config.js +19 -0
  799. package/dist/esm/tools/rebookingUrl.d.ts +11 -0
  800. package/dist/esm/tools/rebookingUrl.js +27 -0
  801. package/dist/esm/tools/report-error.d.ts +2 -0
  802. package/dist/esm/tools/report-error.js +134 -0
  803. package/dist/esm/tools/reset.d.ts +2 -0
  804. package/dist/esm/tools/reset.js +35 -0
  805. package/dist/esm/tools/sdk-telemetry.d.ts +10 -0
  806. package/dist/esm/tools/sdk-telemetry.js +122 -0
  807. package/dist/esm/tools/sentry.d.ts +7 -0
  808. package/dist/esm/tools/sentry.js +166 -0
  809. package/dist/esm/tools/settings.d.ts +36 -0
  810. package/dist/esm/tools/settings.js +110 -0
  811. package/dist/esm/tools/slug.d.ts +2 -0
  812. package/dist/esm/tools/slug.js +27 -0
  813. package/dist/esm/tools/strip-html.d.ts +2 -0
  814. package/dist/esm/tools/strip-html.js +7 -0
  815. package/dist/esm/tools/style-registry.d.ts +28 -0
  816. package/dist/esm/tools/style-registry.js +46 -0
  817. package/dist/esm/tools/telemetry.d.ts +37 -0
  818. package/dist/esm/tools/telemetry.js +266 -0
  819. package/dist/esm/tools/track-event.d.ts +28 -0
  820. package/dist/esm/tools/track-event.js +196 -0
  821. package/dist/esm/tools/webgl-logger.d.ts +2 -0
  822. package/dist/esm/tools/webgl-logger.js +31 -0
  823. package/dist/esm/types/drawing.types.d.ts +18 -0
  824. package/dist/esm/types/drawing.types.js +1 -0
  825. package/dist/esm/types/sdk.types.d.ts +49 -0
  826. package/dist/esm/types/sdk.types.js +6 -0
  827. package/dist/esm/types.d.ts +593 -0
  828. package/dist/esm/types.js +1 -0
  829. package/dist/esm/utils/_OLD_gpu-info.d.ts +6 -0
  830. package/dist/esm/utils/_OLD_gpu-info.js +23 -0
  831. package/dist/esm/utils/_OLD_should-use-backdrop.d.ts +3 -0
  832. package/dist/esm/utils/_OLD_should-use-backdrop.js +4 -0
  833. package/dist/esm/utils/areLayersEnabled.d.ts +2 -0
  834. package/dist/esm/utils/areLayersEnabled.js +4 -0
  835. package/dist/esm/utils/blob-image-size.d.ts +27 -0
  836. package/dist/esm/utils/blob-image-size.js +37 -0
  837. package/dist/esm/utils/brand.d.ts +18 -0
  838. package/dist/esm/utils/brand.js +19 -0
  839. package/dist/esm/utils/browser.d.ts +4 -0
  840. package/dist/esm/utils/browser.js +4 -0
  841. package/dist/esm/utils/calcSpeed.d.ts +2 -0
  842. package/dist/esm/utils/calcSpeed.js +5 -0
  843. package/dist/esm/utils/calcTravelTime.d.ts +2 -0
  844. package/dist/esm/utils/calcTravelTime.js +3 -0
  845. package/dist/esm/utils/camera-map-settings.d.ts +26 -0
  846. package/dist/esm/utils/camera-map-settings.js +86 -0
  847. package/dist/esm/utils/color-gradient.d.ts +2 -0
  848. package/dist/esm/utils/color-gradient.js +14 -0
  849. package/dist/esm/utils/customCommands.d.ts +2 -0
  850. package/dist/esm/utils/customCommands.js +33 -0
  851. package/dist/esm/utils/detectLimitedModeViaImage.d.ts +2 -0
  852. package/dist/esm/utils/detectLimitedModeViaImage.js +33 -0
  853. package/dist/esm/utils/dimming.d.ts +27 -0
  854. package/dist/esm/utils/dimming.js +88 -0
  855. package/dist/esm/utils/entity-storage.d.ts +14 -0
  856. package/dist/esm/utils/entity-storage.js +122 -0
  857. package/dist/esm/utils/event-head.d.ts +38 -0
  858. package/dist/esm/utils/event-head.js +90 -0
  859. package/dist/esm/utils/event-now.d.ts +11 -0
  860. package/dist/esm/utils/event-now.js +40 -0
  861. package/dist/esm/utils/event-title.d.ts +19 -0
  862. package/dist/esm/utils/event-title.js +20 -0
  863. package/dist/esm/utils/eventFullBadge.d.ts +3 -0
  864. package/dist/esm/utils/eventFullBadge.js +7 -0
  865. package/dist/esm/utils/eventTime.d.ts +15 -0
  866. package/dist/esm/utils/eventTime.js +82 -0
  867. package/dist/esm/utils/extractMetaFromString.d.ts +5 -0
  868. package/dist/esm/utils/extractMetaFromString.js +16 -0
  869. package/dist/esm/utils/geo-anchors.d.ts +10 -0
  870. package/dist/esm/utils/geo-anchors.js +12 -0
  871. package/dist/esm/utils/geometry.d.ts +2 -0
  872. package/dist/esm/utils/geometry.js +12 -0
  873. package/dist/esm/utils/getContrastTextColor.d.ts +2 -0
  874. package/dist/esm/utils/getContrastTextColor.js +26 -0
  875. package/dist/esm/utils/getLogoUrl.d.ts +9 -0
  876. package/dist/esm/utils/getLogoUrl.js +26 -0
  877. package/dist/esm/utils/getMostFrequent.d.ts +2 -0
  878. package/dist/esm/utils/getMostFrequent.js +14 -0
  879. package/dist/esm/utils/getRenderTargetFromRoot.d.ts +2 -0
  880. package/dist/esm/utils/getRenderTargetFromRoot.js +19 -0
  881. package/dist/esm/utils/gps.d.ts +40 -0
  882. package/dist/esm/utils/gps.js +66 -0
  883. package/dist/esm/utils/heatmap-enabled.d.ts +13 -0
  884. package/dist/esm/utils/heatmap-enabled.js +13 -0
  885. package/dist/esm/utils/i18n.d.ts +18 -0
  886. package/dist/esm/utils/i18n.js +117 -0
  887. package/dist/esm/utils/index.d.ts +10 -0
  888. package/dist/esm/utils/index.js +60 -0
  889. package/dist/esm/utils/is-debug.d.ts +3 -0
  890. package/dist/esm/utils/is-debug.js +9 -0
  891. package/dist/esm/utils/is-from-designer.d.ts +3 -0
  892. package/dist/esm/utils/is-from-designer.js +4 -0
  893. package/dist/esm/utils/is-iframe.d.ts +3 -0
  894. package/dist/esm/utils/is-iframe.js +13 -0
  895. package/dist/esm/utils/is-localhost.d.ts +3 -0
  896. package/dist/esm/utils/is-localhost.js +11 -0
  897. package/dist/esm/utils/is-mac.d.ts +3 -0
  898. package/dist/esm/utils/is-mac.js +2 -0
  899. package/dist/esm/utils/is-mobile.d.ts +3 -0
  900. package/dist/esm/utils/is-mobile.js +2 -0
  901. package/dist/esm/utils/is-own-domain.d.ts +12 -0
  902. package/dist/esm/utils/is-own-domain.js +23 -0
  903. package/dist/esm/utils/is-pathway-layer.d.ts +2 -0
  904. package/dist/esm/utils/is-pathway-layer.js +4 -0
  905. package/dist/esm/utils/is-phone.d.ts +9 -0
  906. package/dist/esm/utils/is-phone.js +17 -0
  907. package/dist/esm/utils/is-scroll-ugly.d.ts +3 -0
  908. package/dist/esm/utils/is-scroll-ugly.js +13 -0
  909. package/dist/esm/utils/is-webview.d.ts +3 -0
  910. package/dist/esm/utils/is-webview.js +2 -0
  911. package/dist/esm/utils/isNumericLevel.d.ts +2 -0
  912. package/dist/esm/utils/isNumericLevel.js +3 -0
  913. package/dist/esm/utils/lazy-qr-code.d.ts +5 -0
  914. package/dist/esm/utils/lazy-qr-code.js +6 -0
  915. package/dist/esm/utils/legacy-storage-keys.d.ts +16 -0
  916. package/dist/esm/utils/legacy-storage-keys.js +38 -0
  917. package/dist/esm/utils/loadBlob.d.ts +16 -0
  918. package/dist/esm/utils/loadBlob.js +40 -0
  919. package/dist/esm/utils/loadCustomCss.d.ts +3 -0
  920. package/dist/esm/utils/loadCustomCss.js +19 -0
  921. package/dist/esm/utils/loadIcons.d.ts +3 -0
  922. package/dist/esm/utils/loadIcons.js +24 -0
  923. package/dist/esm/utils/loadImage.d.ts +2 -0
  924. package/dist/esm/utils/loadImage.js +11 -0
  925. package/dist/esm/utils/loadImagesInBatches.d.ts +22 -0
  926. package/dist/esm/utils/loadImagesInBatches.js +82 -0
  927. package/dist/esm/utils/loadLayerImages.d.ts +41 -0
  928. package/dist/esm/utils/loadLayerImages.js +107 -0
  929. package/dist/esm/utils/localStorage.d.ts +2 -0
  930. package/dist/esm/utils/localStorage.js +11 -0
  931. package/dist/esm/utils/lz-utils.d.ts +8 -0
  932. package/dist/esm/utils/lz-utils.js +16 -0
  933. package/dist/esm/utils/mapEntity.d.ts +3 -0
  934. package/dist/esm/utils/mapEntity.js +82 -0
  935. package/dist/esm/utils/math.d.ts +6 -0
  936. package/dist/esm/utils/math.js +7 -0
  937. package/dist/esm/utils/mobx.d.ts +35 -0
  938. package/dist/esm/utils/mobx.js +74 -0
  939. package/dist/esm/utils/outdoor-poi.d.ts +32 -0
  940. package/dist/esm/utils/outdoor-poi.js +28 -0
  941. package/dist/esm/utils/plan-reactions.d.ts +20 -0
  942. package/dist/esm/utils/plan-reactions.js +26 -0
  943. package/dist/esm/utils/planBearing.d.ts +14 -0
  944. package/dist/esm/utils/planBearing.js +15 -0
  945. package/dist/esm/utils/preview-exhibitor.d.ts +11 -0
  946. package/dist/esm/utils/preview-exhibitor.js +19 -0
  947. package/dist/esm/utils/rasterize-svg.d.ts +32 -0
  948. package/dist/esm/utils/rasterize-svg.js +78 -0
  949. package/dist/esm/utils/responsiveClass.d.ts +2 -0
  950. package/dist/esm/utils/responsiveClass.js +25 -0
  951. package/dist/esm/utils/rtl.d.ts +2 -0
  952. package/dist/esm/utils/rtl.js +4 -0
  953. package/dist/esm/utils/sanitizeHtml.d.ts +3 -0
  954. package/dist/esm/utils/sanitizeHtml.js +21 -0
  955. package/dist/esm/utils/sanitizeText.d.ts +9 -0
  956. package/dist/esm/utils/sanitizeText.js +19 -0
  957. package/dist/esm/utils/scene-bounds.d.ts +64 -0
  958. package/dist/esm/utils/scene-bounds.js +127 -0
  959. package/dist/esm/utils/shortenName.d.ts +2 -0
  960. package/dist/esm/utils/shortenName.js +19 -0
  961. package/dist/esm/utils/silence-mobx-react-lite-warning.d.ts +2 -0
  962. package/dist/esm/utils/silence-mobx-react-lite-warning.js +24 -0
  963. package/dist/esm/utils/strEqual.d.ts +2 -0
  964. package/dist/esm/utils/strEqual.js +3 -0
  965. package/dist/esm/utils/swappable-proxy.d.ts +28 -0
  966. package/dist/esm/utils/swappable-proxy.js +71 -0
  967. package/dist/esm/utils/trackingParams.d.ts +3 -0
  968. package/dist/esm/utils/trackingParams.js +24 -0
  969. package/dist/esm/utils/urlEncoding.d.ts +7 -0
  970. package/dist/esm/utils/urlEncoding.js +62 -0
  971. package/dist/esm/utils/use-shadow.d.ts +3 -0
  972. package/dist/esm/utils/use-shadow.js +10 -0
  973. package/dist/esm/utils/useHeatmapData.d.ts +10 -0
  974. package/dist/esm/utils/useHeatmapData.js +8 -0
  975. package/dist/esm/utils/useHeatmapOverlay.d.ts +9 -0
  976. package/dist/esm/utils/useHeatmapOverlay.js +56 -0
  977. package/dist/esm/utils/useRenderTarget.d.ts +2 -0
  978. package/dist/esm/utils/useRenderTarget.js +35 -0
  979. package/dist/esm/utils/yah_icon.d.ts +6 -0
  980. package/dist/esm/utils/yah_icon.js +457 -0
  981. package/dist/esm/wayfinding/adapters/arbitraryPoint.d.ts +32 -0
  982. package/dist/esm/wayfinding/adapters/arbitraryPoint.js +25 -0
  983. package/dist/esm/wayfinding/adapters/boothToEndpoint.d.ts +19 -0
  984. package/dist/esm/wayfinding/adapters/boothToEndpoint.js +32 -0
  985. package/dist/esm/wayfinding/adapters/campusEndpoints.d.ts +13 -0
  986. package/dist/esm/wayfinding/adapters/campusEndpoints.js +25 -0
  987. package/dist/esm/wayfinding/adapters/canvasIconProvider.d.ts +20 -0
  988. package/dist/esm/wayfinding/adapters/canvasIconProvider.js +73 -0
  989. package/dist/esm/wayfinding/adapters/floorContext.d.ts +20 -0
  990. package/dist/esm/wayfinding/adapters/floorContext.js +43 -0
  991. package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +49 -0
  992. package/dist/esm/wayfinding/adapters/graphDataSource.js +87 -0
  993. package/dist/esm/wayfinding/adapters/index.d.ts +10 -0
  994. package/dist/esm/wayfinding/adapters/index.js +8 -0
  995. package/dist/esm/wayfinding/adapters/kioskCanvas.d.ts +7 -0
  996. package/dist/esm/wayfinding/adapters/kioskCanvas.js +22 -0
  997. package/dist/esm/wayfinding/adapters/positionInput.d.ts +12 -0
  998. package/dist/esm/wayfinding/adapters/positionInput.js +16 -0
  999. package/dist/esm/wayfinding/bindMobxReactions.d.ts +28 -0
  1000. package/dist/esm/wayfinding/bindMobxReactions.js +171 -0
  1001. package/dist/esm/wayfinding/createWayfinding.d.ts +34 -0
  1002. package/dist/esm/wayfinding/createWayfinding.js +184 -0
  1003. package/dist/esm/wayfinding/handlers/kioskHandler.d.ts +26 -0
  1004. package/dist/esm/wayfinding/handlers/kioskHandler.js +52 -0
  1005. package/dist/esm/wayfinding/handlers/yahHandler.d.ts +21 -0
  1006. package/dist/esm/wayfinding/handlers/yahHandler.js +42 -0
  1007. package/dist/esm/wayfinding/index.d.ts +12 -0
  1008. package/dist/esm/wayfinding/index.js +9 -0
  1009. package/dist/esm/wayfinding/routeSteps.d.ts +15 -0
  1010. package/dist/esm/wayfinding/routeSteps.js +29 -0
  1011. package/dist/esm/wayfinding/storePorts.d.ts +67 -0
  1012. package/dist/esm/wayfinding/storePorts.js +1 -0
  1013. package/package.json +146 -0
@@ -0,0 +1,1931 @@
1
+ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='undefined') return; var shadow=!forceLightDom&&typeof window!=='undefined'&&window.__efpShadowDOMStyleParent; var parent=shadow||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s); if (shadow) (window.__efpStyleElements||(window.__efpStyleElements=[])).push(s);}
2
+ (function() {
3
+ try {
4
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
+ e.SENTRY_RELEASE = { id: "3.45.6" };
6
+ var t = new e.Error().stack;
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b7b9762e-94c4-4fe0-9a76-c3700009c238", e._sentryDebugIdIdentifier = "sentry-dbid-b7b9762e-94c4-4fe0-9a76-c3700009c238");
8
+ } catch {}
9
+ })();
10
+ import { r as e } from "./rolldown-runtime-DUb2xvRc.js";
11
+ import { t } from "./react-DqPP-mkq.js";
12
+ import { t as n } from "./jsx-runtime-DQgnuS-I.js";
13
+ import { t as r } from "./client-BcPpS_Gj.js";
14
+ import { S as i, b as a, c as o, n as s, t as c } from "./debug-context-CNBgUWR8.js";
15
+ //#region ../../node_modules/.pnpm/webgl-memory@1.1.3/node_modules/webgl-memory/webgl-memory.js
16
+ var l = i();
17
+ (function(e) {
18
+ typeof define == "function" && define.amd ? define(e) : e();
19
+ })((function() {
20
+ let e = 5121, t = 5126, n = 32819, r = 32820, i = 5131, a = 36193, o;
21
+ function s(s) {
22
+ if (!o) {
23
+ let s = {};
24
+ s[6406] = {
25
+ bytesPerElement: [
26
+ 1,
27
+ 2,
28
+ 2,
29
+ 4
30
+ ],
31
+ type: [
32
+ e,
33
+ i,
34
+ a,
35
+ t
36
+ ]
37
+ }, s[6409] = {
38
+ bytesPerElement: [
39
+ 1,
40
+ 2,
41
+ 2,
42
+ 4
43
+ ],
44
+ type: [
45
+ e,
46
+ i,
47
+ a,
48
+ t
49
+ ]
50
+ }, s[6410] = {
51
+ bytesPerElement: [
52
+ 2,
53
+ 4,
54
+ 4,
55
+ 8
56
+ ],
57
+ type: [
58
+ e,
59
+ i,
60
+ a,
61
+ t
62
+ ]
63
+ }, s[6407] = {
64
+ bytesPerElement: [
65
+ 3,
66
+ 6,
67
+ 6,
68
+ 12,
69
+ 2
70
+ ],
71
+ type: [
72
+ e,
73
+ i,
74
+ a,
75
+ t,
76
+ 33635
77
+ ]
78
+ }, s[6408] = {
79
+ bytesPerElement: [
80
+ 4,
81
+ 8,
82
+ 8,
83
+ 16,
84
+ 2,
85
+ 2
86
+ ],
87
+ type: [
88
+ e,
89
+ i,
90
+ a,
91
+ t,
92
+ n,
93
+ r
94
+ ]
95
+ }, s[35906] = {
96
+ bytesPerElement: [
97
+ 4,
98
+ 8,
99
+ 8,
100
+ 16,
101
+ 2,
102
+ 2
103
+ ],
104
+ type: [
105
+ e,
106
+ i,
107
+ a,
108
+ t,
109
+ n,
110
+ r
111
+ ]
112
+ }, s[6402] = {
113
+ bytesPerElement: [2, 4],
114
+ type: [5125, 5123]
115
+ }, s[34041] = { bytesPerElement: [4] }, s[33321] = { bytesPerElement: [1] }, s[36756] = { bytesPerElement: [1] }, s[33325] = { bytesPerElement: [2] }, s[33326] = { bytesPerElement: [4] }, s[33330] = { bytesPerElement: [1] }, s[33329] = { bytesPerElement: [1] }, s[33332] = { bytesPerElement: [2] }, s[33331] = { bytesPerElement: [2] }, s[33334] = { bytesPerElement: [4] }, s[33333] = { bytesPerElement: [4] }, s[33323] = { bytesPerElement: [2] }, s[36757] = { bytesPerElement: [2] }, s[33327] = { bytesPerElement: [4] }, s[33328] = { bytesPerElement: [8] }, s[33336] = { bytesPerElement: [2] }, s[33335] = { bytesPerElement: [2] }, s[33338] = { bytesPerElement: [4] }, s[33337] = { bytesPerElement: [4] }, s[33340] = { bytesPerElement: [8] }, s[33339] = { bytesPerElement: [8] }, s[32849] = { bytesPerElement: [3] }, s[35905] = { bytesPerElement: [3] }, s[36194] = { bytesPerElement: [2] }, s[36758] = { bytesPerElement: [3] }, s[35898] = { bytesPerElement: [4] }, s[35901] = { bytesPerElement: [4] }, s[34843] = { bytesPerElement: [6] }, s[34837] = { bytesPerElement: [12] }, s[36221] = { bytesPerElement: [3] }, s[36239] = { bytesPerElement: [3] }, s[36215] = { bytesPerElement: [6] }, s[36233] = { bytesPerElement: [6] }, s[36209] = { bytesPerElement: [12] }, s[36227] = { bytesPerElement: [12] }, s[32856] = { bytesPerElement: [4] }, s[35907] = { bytesPerElement: [4] }, s[36759] = { bytesPerElement: [4] }, s[32855] = { bytesPerElement: [2] }, s[32854] = { bytesPerElement: [2] }, s[32857] = { bytesPerElement: [4] }, s[34842] = { bytesPerElement: [8] }, s[34836] = { bytesPerElement: [16] }, s[36220] = { bytesPerElement: [4] }, s[36238] = { bytesPerElement: [4] }, s[36975] = { bytesPerElement: [4] }, s[36214] = { bytesPerElement: [8] }, s[36232] = { bytesPerElement: [8] }, s[36226] = { bytesPerElement: [16] }, s[36208] = { bytesPerElement: [16] }, s[33189] = { bytesPerElement: [2] }, s[33190] = { bytesPerElement: [4] }, s[36012] = { bytesPerElement: [4] }, s[35056] = { bytesPerElement: [4] }, s[36013] = { bytesPerElement: [4] }, s[36168] = { bytesPerElement: [1] }, o = s;
116
+ }
117
+ return o[s];
118
+ }
119
+ function c(e, t, n) {
120
+ return function(r, i, a) {
121
+ return ((r + e - 1) / e | 0) * ((i + t - 1) / t | 0) * n * a;
122
+ };
123
+ }
124
+ function l(e, t, n) {
125
+ return function(r, i, a) {
126
+ return (Math.max(r, e) * Math.max(i, t) / n | 0) * a;
127
+ };
128
+ }
129
+ let u = /* @__PURE__ */ new Map([
130
+ [33776, c(4, 4, 8)],
131
+ [33777, c(4, 4, 8)],
132
+ [33778, c(4, 4, 16)],
133
+ [33779, c(4, 4, 16)],
134
+ [36196, c(4, 4, 8)],
135
+ [35840, l(8, 8, 2)],
136
+ [35842, l(8, 8, 2)],
137
+ [35841, l(16, 8, 4)],
138
+ [35843, l(16, 8, 4)],
139
+ [37488, c(4, 4, 8)],
140
+ [37489, c(4, 4, 8)],
141
+ [37492, c(4, 4, 8)],
142
+ [37493, c(4, 4, 8)],
143
+ [37494, c(4, 4, 8)],
144
+ [37495, c(4, 4, 8)],
145
+ [37490, c(4, 4, 16)],
146
+ [37491, c(4, 4, 16)],
147
+ [37496, c(4, 4, 16)],
148
+ [37497, c(4, 4, 16)],
149
+ [37808, c(4, 4, 16)],
150
+ [37840, c(4, 4, 16)],
151
+ [37809, c(5, 4, 16)],
152
+ [37841, c(5, 4, 16)],
153
+ [37810, c(5, 5, 16)],
154
+ [37842, c(5, 5, 16)],
155
+ [37811, c(6, 5, 16)],
156
+ [37843, c(6, 5, 16)],
157
+ [37812, c(6, 6, 16)],
158
+ [37844, c(6, 6, 16)],
159
+ [37813, c(8, 5, 16)],
160
+ [37845, c(8, 5, 16)],
161
+ [37814, c(8, 6, 16)],
162
+ [37846, c(8, 6, 16)],
163
+ [37815, c(8, 8, 16)],
164
+ [37847, c(8, 8, 16)],
165
+ [37816, c(10, 5, 16)],
166
+ [37848, c(10, 5, 16)],
167
+ [37817, c(10, 6, 16)],
168
+ [37849, c(10, 6, 16)],
169
+ [37818, c(10, 8, 16)],
170
+ [37850, c(10, 8, 16)],
171
+ [37819, c(10, 10, 16)],
172
+ [37851, c(10, 10, 16)],
173
+ [37820, c(12, 10, 16)],
174
+ [37852, c(12, 10, 16)],
175
+ [37821, c(12, 12, 16)],
176
+ [37853, c(12, 12, 16)],
177
+ [35916, c(4, 4, 8)],
178
+ [35917, c(4, 4, 8)],
179
+ [35918, c(4, 4, 16)],
180
+ [35919, c(4, 4, 16)],
181
+ [36492, c(4, 4, 16)],
182
+ [36493, c(4, 4, 16)],
183
+ [36494, c(4, 4, 16)],
184
+ [36495, c(4, 4, 16)],
185
+ [36283, c(4, 4, 8)],
186
+ [36284, c(4, 4, 8)],
187
+ [36285, c(4, 4, 16)],
188
+ [36286, c(4, 4, 16)]
189
+ ]);
190
+ function d(e, t) {
191
+ let n = s(e);
192
+ if (!n) throw "unknown internal format";
193
+ if (n.type) {
194
+ let r = n.type.indexOf(t);
195
+ if (r < 0) throw Error(`unsupported type ${t} for internalformat ${e}`);
196
+ return n.bytesPerElement[r];
197
+ }
198
+ return n.bytesPerElement[0];
199
+ }
200
+ function f(e, t, n, r, i) {
201
+ let a = d(e, i);
202
+ return t * n * r * a;
203
+ }
204
+ function p(e, t, n, r, i) {
205
+ let a = u.get(e);
206
+ return a ? a(t, n, r) : f(e, t, n, r, i);
207
+ }
208
+ function m(e) {
209
+ return e && e.buffer && e.buffer instanceof ArrayBuffer;
210
+ }
211
+ function h(e) {
212
+ return m(e) || e instanceof ArrayBuffer;
213
+ }
214
+ function g(e) {
215
+ return {
216
+ samples: e.getParameter(e.SAMPLES) || 1,
217
+ depthBits: e.getParameter(e.DEPTH_BITS),
218
+ stencilBits: e.getParameter(e.STENCIL_BITS),
219
+ contextAttributes: e.getContextAttributes()
220
+ };
221
+ }
222
+ function _(e) {
223
+ let { depthBits: t, stencilBits: n } = e, r = (t + n + 7) / 8 | 0;
224
+ return r === 3 ? 4 : r;
225
+ }
226
+ function v(e, t) {
227
+ if (e.isContextLost()) return 0;
228
+ let { samples: n } = t, r = e.drawingBufferWidth * e.drawingBufferHeight, i = _(t);
229
+ return r * 4 + r * n * 4 + r * i;
230
+ }
231
+ function y(e) {
232
+ return typeof e == "number";
233
+ }
234
+ function b(e, t) {
235
+ return [...e.webglObjectToMemory.keys()].filter((e) => e instanceof t).map((t) => e.webglObjectToMemory.get(t));
236
+ }
237
+ function x() {
238
+ return (/* @__PURE__ */ Error()).stack.split("\n").slice(2).filter((e) => !e.includes("webgl-memory.js")).join("\n");
239
+ }
240
+ let S = /* @__PURE__ */ new Set();
241
+ function C(e, t, n = {}) {
242
+ if (S.has(e)) return e;
243
+ S.add(e);
244
+ let r = n.origGLErrorFn || e.getError;
245
+ function i(e) {
246
+ let t = g(e), r = {
247
+ baseContext: e,
248
+ config: n,
249
+ apis: { gman_webgl_memory: { ctx: {
250
+ getMemoryInfo() {
251
+ let n = v(e, t);
252
+ return {
253
+ memory: {
254
+ ...l,
255
+ drawingbuffer: n,
256
+ total: n + l.buffer + l.texture + l.renderbuffer
257
+ },
258
+ resources: { ...u }
259
+ };
260
+ },
261
+ getResourcesInfo(e) {
262
+ return b(r, e);
263
+ }
264
+ } } },
265
+ resources: {},
266
+ memory: {
267
+ texture: 0,
268
+ buffer: 0,
269
+ renderbuffer: 0
270
+ },
271
+ bindings: /* @__PURE__ */ new Map(),
272
+ defaultVertexArray: {},
273
+ webglObjectToMemory: /* @__PURE__ */ new Map()
274
+ }, i = /* @__PURE__ */ new Set([
275
+ "webgl",
276
+ "webgl2",
277
+ "webgl_lose_context"
278
+ ]);
279
+ function a() {
280
+ r.bindings.clear(), r.webglObjectToMemory.clear(), r.webglObjectToMemory.set(r.defaultVertexArray, {}), r.currentVertexArray = r.defaultVertexArray, r.activeTextureUnit = 33984, [r.resources, r.memory].forEach(function(e) {
281
+ for (let t in e) e[t] = 0;
282
+ });
283
+ }
284
+ function o() {
285
+ a(), r.isContextLost = !0;
286
+ for (let [e, { ctx: t, origFuncs: n }] of [...Object.entries(r.apis)]) if (!i.has(e) && n) {
287
+ S.delete(t);
288
+ for (let [e, r] of Object.entries(n)) t[e] = r;
289
+ delete s[e];
290
+ }
291
+ }
292
+ function c() {
293
+ r.isContextLost = !1;
294
+ }
295
+ return e.canvas && (e.canvas.addEventListener("webglcontextlost", o), e.canvas.addEventListener("webglcontextrestored", c)), a(), r;
296
+ }
297
+ function a(e) {
298
+ return `${o.activeTextureUnit}_${e}`;
299
+ }
300
+ let o = n.sharedState || i(e);
301
+ n.sharedState = o;
302
+ let { apis: s, bindings: c, memory: l, resources: u, webglObjectToMemory: d } = o, f = {};
303
+ function m() {}
304
+ function _(e, t, n) {
305
+ return e[n || `create${t[0].toUpperCase()}${t.substr(1)}`] ? (u[t] = 0, function(e, n, r, i) {
306
+ o.isContextLost || (++u[t], d.set(i, {
307
+ size: 0,
308
+ stackCreated: x()
309
+ }));
310
+ }) : null;
311
+ }
312
+ function w(t, n = m, r) {
313
+ return e[r || `delete${t[0].toUpperCase()}${t.substr(1)}`] ? function(e, r, i) {
314
+ if (o.isContextLost) return;
315
+ let [a] = i, s = d.get(a);
316
+ s && (--u[t], n(a, s), d.delete(a));
317
+ } : null;
318
+ }
319
+ function T(e, t, n, r, i) {
320
+ if (o.isContextLost) return;
321
+ let a = c.get(e);
322
+ if (!a) throw Error(`no renderbuffer bound to ${e}`);
323
+ let s = d.get(a);
324
+ if (!s) throw Error(`unknown renderbuffer ${a}`);
325
+ let u = p(n, r, i, 1) * t;
326
+ l.renderbuffer -= s.size, s.size = u, s.stackUpdated = x(), l.renderbuffer += u;
327
+ }
328
+ let E = 34963, D = 5121, O = 34067, k = 35866, A = 34069, j = /* @__PURE__ */ new Set([
329
+ A,
330
+ 34070,
331
+ 34071,
332
+ 34072,
333
+ 34073,
334
+ 34074
335
+ ]);
336
+ function M(e) {
337
+ return j.has(e);
338
+ }
339
+ function N(e) {
340
+ e = M(e) ? O : e;
341
+ let t = a(e), n = c.get(t);
342
+ if (!n) throw Error(`no texture bound to ${e} on unit ${o.activeTextureUnit - 33984}`);
343
+ let r = d.get(n);
344
+ if (!r) throw Error(`unknown texture ${n}`);
345
+ return r;
346
+ }
347
+ function P(e, t, n, r, i, a, o, s) {
348
+ let c = e.size, u = p(r, i, a, o, s), d = M(t) ? t - A : 0;
349
+ e.mips = e.mips || [], e.mips[n] = e.mips[n] || [];
350
+ let f = e.mips[n][d] || {};
351
+ e.size -= f.size || 0, f.size = u, f.internalFormat = r, f.type = s, f.width = i, f.height = a, f.depth = o, e.mips[n][d] = f, e.size += u, l.texture -= c, l.texture += e.size, e.stackUpdated = x();
352
+ }
353
+ function F(e, t, n, r, i, a) {
354
+ let o = N(e), s = e === O ? 6 : 1, c = e === O ? A : e;
355
+ for (let l = 0; l < t; ++l) {
356
+ for (let e = 0; e < s; ++e) P(o, c + e, l, n, r, i, a);
357
+ r = Math.ceil(Math.max(r / 2, 1)), i = Math.ceil(Math.max(i / 2, 1)), a = e === k ? a : Math.ceil(Math.max(a / 2, 1));
358
+ }
359
+ }
360
+ function I(e, t, n) {
361
+ if (o.isContextLost) return;
362
+ let [r] = n;
363
+ o.currentVertexArray = r || o.defaultVertexArray;
364
+ }
365
+ function L(e, t) {
366
+ if (!o.isContextLost) switch (e) {
367
+ case E: {
368
+ let e = d.get(o.currentVertexArray);
369
+ e.elementArrayBuffer = t;
370
+ break;
371
+ }
372
+ default:
373
+ c.set(e, t);
374
+ break;
375
+ }
376
+ }
377
+ let R = {}, z = {
378
+ bufferData(e, t, n) {
379
+ if (o.isContextLost) return;
380
+ let [r, i, , , a = void 0] = n, s;
381
+ switch (r) {
382
+ case E:
383
+ s = d.get(o.currentVertexArray).elementArrayBuffer;
384
+ break;
385
+ default:
386
+ s = c.get(r);
387
+ break;
388
+ }
389
+ if (!s) throw Error(`no buffer bound to ${r}`);
390
+ let u = 0;
391
+ if (a !== void 0) u = a * i.BYTES_PER_ELEMENT;
392
+ else if (h(i)) u = i.byteLength;
393
+ else if (y(i)) u = i;
394
+ else throw Error(`unsupported bufferData src type ${i}`);
395
+ let f = d.get(s);
396
+ if (!f) throw Error(`unknown buffer ${s}`);
397
+ l.buffer -= f.size, f.size = u, f.stackUpdated = x(), l.buffer += u;
398
+ },
399
+ bindVertexArray: I,
400
+ bindVertexArrayOES: I,
401
+ bindBuffer(e, t, n) {
402
+ let [r, i] = n;
403
+ L(r, i);
404
+ },
405
+ bindBufferBase(e, t, n) {
406
+ let [r, , i] = n;
407
+ L(r, i);
408
+ },
409
+ bindBufferRange(e, t, n) {
410
+ let [r, , i, ,] = n;
411
+ L(r, i);
412
+ },
413
+ bindRenderbuffer(e, t, n) {
414
+ if (o.isContextLost) return;
415
+ let [r, i] = n;
416
+ c.set(r, i);
417
+ },
418
+ activeTexture(e, t, n) {
419
+ if (o.isContextLost) return;
420
+ let [r] = n;
421
+ o.activeTextureUnit = r;
422
+ },
423
+ bindTexture(e, t, n) {
424
+ if (o.isContextLost) return;
425
+ let [r, i] = n, s = a(r);
426
+ c.set(s, i);
427
+ },
428
+ copyTexImage2D(e, t, n) {
429
+ if (o.isContextLost) return;
430
+ let [r, i, a, , , s, c] = n;
431
+ P(N(r), r, i, a, s, c, 1, D);
432
+ },
433
+ createBuffer: _(e, "buffer"),
434
+ createFramebuffer: _(e, "framebuffer"),
435
+ createRenderbuffer: _(e, "renderbuffer"),
436
+ createProgram: _(e, "program"),
437
+ createQuery: _(e, "query"),
438
+ createShader: _(e, "shader"),
439
+ createSampler: _(e, "sampler"),
440
+ createTexture: _(e, "texture"),
441
+ createTransformFeedback: _(e, "transformFeedback"),
442
+ createVertexArray: _(e, "vertexArray"),
443
+ createVertexArrayOES: _(e, "vertexArray", "createVertexArrayOES"),
444
+ compressedTexImage2D(e, t, n) {
445
+ if (o.isContextLost) return;
446
+ let [r, i, a, s, c] = n;
447
+ P(N(r), r, i, a, s, c, 1, D);
448
+ },
449
+ compressedTexImage3D(e, t, n) {
450
+ if (o.isContextLost) return;
451
+ let [r, i, a, s, c, l] = n;
452
+ P(N(r), r, i, a, s, c, l, D);
453
+ },
454
+ deleteBuffer: w("buffer", function(e, t) {
455
+ l.buffer -= t.size;
456
+ }),
457
+ deleteFramebuffer: w("framebuffer"),
458
+ deleteProgram: w("program"),
459
+ deleteQuery: w("query"),
460
+ deleteRenderbuffer: w("renderbuffer", function(e, t) {
461
+ l.renderbuffer -= t.size;
462
+ }),
463
+ deleteSampler: w("sampler"),
464
+ deleteShader: w("shader"),
465
+ deleteSync: w("sync"),
466
+ deleteTexture: w("texture", function(e, t) {
467
+ l.texture -= t.size;
468
+ }),
469
+ deleteTransformFeedback: w("transformFeedback"),
470
+ deleteVertexArray: w("vertexArray"),
471
+ deleteVertexArrayOES: w("vertexArray", m, "deleteVertexArrayOES"),
472
+ fenceSync: function(e) {
473
+ if (!o.isContextLost && e.fenceSync) return u.sync = 0, function(e, t, n, r) {
474
+ ++u.sync, d.set(r, { size: 0 });
475
+ };
476
+ }(e),
477
+ generateMipmap(e, t, n) {
478
+ if (o.isContextLost) return;
479
+ let [r] = n, i = N(r), a = i.parameters && i.parameters.get(33084) || 0, s = i.parameters && i.parameters.get(33085) || 1024, c = i.mips[a][0], { width: l, height: u, depth: d } = c, { internalFormat: f, type: p } = c, m = a + 1, h = r === O ? 6 : 1, g = r === O ? A : r;
480
+ for (; m <= s && !(l === 1 && u === 1 && (d === 1 || r === k));) {
481
+ l = Math.ceil(Math.max(l / 2, 1)), u = Math.ceil(Math.max(u / 2, 1)), d = r === k ? d : Math.ceil(Math.max(d / 2, 1));
482
+ for (let e = 0; e < h; ++e) P(i, g + e, m, f, l, u, d, p);
483
+ ++m;
484
+ }
485
+ },
486
+ getSupportedExtensions(e, t, n, r) {
487
+ o.isContextLost || r.push("GMAN_webgl_memory");
488
+ },
489
+ renderbufferStorage(e, t, n) {
490
+ let [r, i, a, o] = n;
491
+ T(r, 1, i, a, o);
492
+ },
493
+ renderbufferStorageMultisample(e, t, n) {
494
+ let [r, i, a, o, s] = n;
495
+ T(r, i, a, o, s);
496
+ },
497
+ texImage2D(e, t, n) {
498
+ if (o.isContextLost) return;
499
+ let [r, i, a] = n, s, c, l;
500
+ if (n.length === 6) {
501
+ let e = n[5];
502
+ s = e.width, c = e.height, l = n[4];
503
+ } else s = n[3], c = n[4], l = n[7];
504
+ P(N(r), r, i, a, s, c, 1, l);
505
+ },
506
+ texImage3D(e, t, n) {
507
+ if (o.isContextLost) return;
508
+ let [r, i, a, s, c, l, , , u] = n;
509
+ P(N(r), r, i, a, s, c, l, u);
510
+ },
511
+ texParameteri(e, t, n) {
512
+ if (o.isContextLost) return;
513
+ let [r, i, a] = n, s = N(r);
514
+ s.parameters = s.parameters || /* @__PURE__ */ new Map(), s.parameters.set(i, a);
515
+ },
516
+ texStorage2D(e, t, n) {
517
+ let [r, i, a, o, s] = n;
518
+ F(r, i, a, o, s, 1);
519
+ },
520
+ texStorage3D(e, t, n) {
521
+ let [r, i, a, o, s, c] = n;
522
+ F(r, i, a, o, s, c);
523
+ }
524
+ }, B = { getExtension(e, t) {
525
+ if (o.isContextLost) return;
526
+ let i = e[t];
527
+ e[t] = function(...t) {
528
+ let a = t[0].toLowerCase(), o = s[a];
529
+ if (o) return o.ctx;
530
+ let c = i.call(e, ...t);
531
+ return c && C(c, a, {
532
+ ...n,
533
+ origGLErrorFn: r
534
+ }), c;
535
+ };
536
+ } };
537
+ function V(e, t) {
538
+ let n = e[t], i = R[t] || m, a = z[t] || m;
539
+ if (i === m && z === m) return;
540
+ e[t] = function(...r) {
541
+ i(e, t, r);
542
+ let o = n.call(e, ...r);
543
+ return a(e, t, r, o), o;
544
+ };
545
+ let o = B[t];
546
+ o && o(e, t, r);
547
+ }
548
+ for (let t in e) typeof e[t] == "function" && (f[t] = e[t], V(e, t));
549
+ s[t.toLowerCase()] = {
550
+ ctx: e,
551
+ origFuncs: f
552
+ };
553
+ }
554
+ function w(e) {
555
+ let t = e.prototype.getContext;
556
+ e.prototype.getContext = function(e, ...n) {
557
+ let r = t.call(this, e, ...n);
558
+ return r && r.bindTexture && (C(r, e, {}), r.getExtension("GMAN_webgl_memory")), r;
559
+ };
560
+ }
561
+ typeof HTMLCanvasElement < "u" && w(HTMLCanvasElement), typeof OffscreenCanvas < "u" && w(OffscreenCanvas);
562
+ }));
563
+ //#endregion
564
+ //#region ../renderer/src/debug/components/Panel.module.css
565
+ var u = /* @__PURE__ */ e(t(), 1), d = r(), f = {
566
+ info: "_info_hhyz2_1",
567
+ toggle: "_toggle_hhyz2_9",
568
+ container: "_container_hhyz2_26",
569
+ left: "_left_hhyz2_40",
570
+ right: "_right_hhyz2_44"
571
+ }, p = n();
572
+ function m(e) {
573
+ let t = (0, l.c)(17), { corner: n, label: r, value: i } = e, [a, o] = (0, u.useState)(!1), s;
574
+ t[0] === e ? s = t[1] : (s = function(t, n) {
575
+ return Array.isArray(n) ? `[${n.join(", ")}]` : e.replacer ? e.replacer(t, n) : n;
576
+ }, t[0] = e, t[1] = s);
577
+ let c = s, d;
578
+ t[2] !== a || t[3] !== c || t[4] !== i ? (d = function() {
579
+ var e;
580
+ if (!a) return "";
581
+ let t = i;
582
+ if (typeof i == "object" && i) {
583
+ let e = Object.keys(i);
584
+ t = e.length === 1 ? i[e[0]] : i;
585
+ }
586
+ return ((e = JSON.stringify(t, c, 2)) == null ? "" : e).replaceAll("\"", "");
587
+ }, t[2] = a, t[3] = c, t[4] = i, t[5] = d) : d = t[5];
588
+ let m = d, g = `${f.container} ${f[n]}`, _;
589
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (_ = () => o(h), t[6] = _) : _ = t[6];
590
+ let v = a ? "Hide" : "Show", y;
591
+ t[7] !== r || t[8] !== v ? (y = /* @__PURE__ */ (0, p.jsxs)("button", {
592
+ className: f.toggle,
593
+ onClick: _,
594
+ children: [
595
+ v,
596
+ " ",
597
+ r
598
+ ]
599
+ }), t[7] = r, t[8] = v, t[9] = y) : y = t[9];
600
+ let b;
601
+ t[10] !== a || t[11] !== m ? (b = a && /* @__PURE__ */ (0, p.jsx)("div", {
602
+ className: f.info,
603
+ children: m()
604
+ }), t[10] = a, t[11] = m, t[12] = b) : b = t[12];
605
+ let x;
606
+ return t[13] !== g || t[14] !== y || t[15] !== b ? (x = /* @__PURE__ */ (0, p.jsxs)("div", {
607
+ className: g,
608
+ children: [y, b]
609
+ }), t[13] = g, t[14] = y, t[15] = b, t[16] = x) : x = t[16], x;
610
+ }
611
+ function h(e) {
612
+ return !e;
613
+ }
614
+ function g(e) {
615
+ let t = (0, l.c)(9), { corner: n, label: r, value: i, replacer: a } = e, [o] = (0, u.useState)(_), s = (0, u.useRef)(null), c = (0, u.useRef)(!1), f, h;
616
+ t[0] === o ? (f = t[1], h = t[2]) : (f = () => {
617
+ var e;
618
+ c.current = !1, document.body.appendChild(o);
619
+ let t = (e = s.current) == null ? (0, d.createRoot)(o) : e;
620
+ return s.current = t, () => {
621
+ o.remove(), c.current = !0, Promise.resolve().then(() => {
622
+ var e;
623
+ c.current && ((e = s.current) == null || e.unmount(), s.current = null);
624
+ });
625
+ };
626
+ }, h = [o], t[0] = o, t[1] = f, t[2] = h), (0, u.useEffect)(f, h);
627
+ let g, v;
628
+ return t[3] !== n || t[4] !== r || t[5] !== a || t[6] !== i ? (g = () => {
629
+ var e;
630
+ (e = s.current) == null || e.render(/* @__PURE__ */ (0, p.jsx)(m, {
631
+ corner: n,
632
+ label: r,
633
+ value: i,
634
+ replacer: a
635
+ }));
636
+ }, v = [
637
+ n,
638
+ r,
639
+ i,
640
+ a
641
+ ], t[3] = n, t[4] = r, t[5] = a, t[6] = i, t[7] = g, t[8] = v) : (g = t[7], v = t[8]), (0, u.useEffect)(g, v), null;
642
+ }
643
+ function _() {
644
+ return document.createElement("div");
645
+ }
646
+ //#endregion
647
+ //#region ../renderer/src/debug/components/DebugPanelProvider.tsx
648
+ function v(e) {
649
+ let t = (0, l.c)(7), { children: n } = e, r;
650
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {}, t[0] = r) : r = t[0];
651
+ let [i, a] = (0, u.useState)(r), o;
652
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (o = {
653
+ set(e, t) {
654
+ a((n) => {
655
+ if (e in n) return Object.is(n[e], t) ? n : {
656
+ ...n,
657
+ [e]: t
658
+ };
659
+ let r = {};
660
+ for (let i of [...Object.keys(n), e].sort()) r[i] = i === e ? t : n[i];
661
+ return r;
662
+ });
663
+ },
664
+ remove(e) {
665
+ a((t) => {
666
+ if (!(e in t)) return t;
667
+ let n = { ...t };
668
+ return delete n[e], n;
669
+ });
670
+ }
671
+ }, t[1] = o) : o = t[1];
672
+ let s = o, d;
673
+ t[2] === i ? d = t[3] : (d = /* @__PURE__ */ (0, p.jsx)(g, {
674
+ corner: "right",
675
+ label: "Debug",
676
+ value: i
677
+ }), t[2] = i, t[3] = d);
678
+ let f;
679
+ return t[4] !== n || t[5] !== d ? (f = /* @__PURE__ */ (0, p.jsxs)(c, {
680
+ value: s,
681
+ children: [n, d]
682
+ }), t[4] = n, t[5] = d, t[6] = f) : f = t[6], f;
683
+ }
684
+ //#endregion
685
+ //#region ../../node_modules/.pnpm/lil-gui@0.21.0/node_modules/lil-gui/dist/lil-gui.esm.js
686
+ var y = class e {
687
+ constructor(t, n, r, i, a = "div") {
688
+ this.parent = t, this.object = n, this.property = r, this._disabled = !1, this._hidden = !1, this.initialValue = this.getValue(), this.domElement = document.createElement(a), this.domElement.classList.add("lil-controller"), this.domElement.classList.add(i), this.$name = document.createElement("div"), this.$name.classList.add("lil-name"), e.nextNameID = e.nextNameID || 0, this.$name.id = `lil-gui-name-${++e.nextNameID}`, this.$widget = document.createElement("div"), this.$widget.classList.add("lil-widget"), this.$disable = this.$widget, this.domElement.appendChild(this.$name), this.domElement.appendChild(this.$widget), this.domElement.addEventListener("keydown", (e) => e.stopPropagation()), this.domElement.addEventListener("keyup", (e) => e.stopPropagation()), this.parent.children.push(this), this.parent.controllers.push(this), this.parent.$children.appendChild(this.domElement), this._listenCallback = this._listenCallback.bind(this), this.name(r);
689
+ }
690
+ name(e) {
691
+ return this._name = e, this.$name.textContent = e, this;
692
+ }
693
+ onChange(e) {
694
+ return this._onChange = e, this;
695
+ }
696
+ _callOnChange() {
697
+ this.parent._callOnChange(this), this._onChange !== void 0 && this._onChange.call(this, this.getValue()), this._changed = !0;
698
+ }
699
+ onFinishChange(e) {
700
+ return this._onFinishChange = e, this;
701
+ }
702
+ _callOnFinishChange() {
703
+ this._changed && (this.parent._callOnFinishChange(this), this._onFinishChange !== void 0 && this._onFinishChange.call(this, this.getValue())), this._changed = !1;
704
+ }
705
+ reset() {
706
+ return this.setValue(this.initialValue), this._callOnFinishChange(), this;
707
+ }
708
+ enable(e = !0) {
709
+ return this.disable(!e);
710
+ }
711
+ disable(e = !0) {
712
+ return e === this._disabled ? this : (this._disabled = e, this.domElement.classList.toggle("lil-disabled", e), this.$disable.toggleAttribute("disabled", e), this);
713
+ }
714
+ show(e = !0) {
715
+ return this._hidden = !e, this.domElement.style.display = this._hidden ? "none" : "", this;
716
+ }
717
+ hide() {
718
+ return this.show(!1);
719
+ }
720
+ options(e) {
721
+ let t = this.parent.add(this.object, this.property, e);
722
+ return t.name(this._name), this.destroy(), t;
723
+ }
724
+ min(e) {
725
+ return this;
726
+ }
727
+ max(e) {
728
+ return this;
729
+ }
730
+ step(e) {
731
+ return this;
732
+ }
733
+ decimals(e) {
734
+ return this;
735
+ }
736
+ listen(e = !0) {
737
+ return this._listening = e, this._listenCallbackID !== void 0 && (cancelAnimationFrame(this._listenCallbackID), this._listenCallbackID = void 0), this._listening && this._listenCallback(), this;
738
+ }
739
+ _listenCallback() {
740
+ this._listenCallbackID = requestAnimationFrame(this._listenCallback);
741
+ let e = this.save();
742
+ e !== this._listenPrevValue && this.updateDisplay(), this._listenPrevValue = e;
743
+ }
744
+ getValue() {
745
+ return this.object[this.property];
746
+ }
747
+ setValue(e) {
748
+ return this.getValue() !== e && (this.object[this.property] = e, this._callOnChange(), this.updateDisplay()), this;
749
+ }
750
+ updateDisplay() {
751
+ return this;
752
+ }
753
+ load(e) {
754
+ return this.setValue(e), this._callOnFinishChange(), this;
755
+ }
756
+ save() {
757
+ return this.getValue();
758
+ }
759
+ destroy() {
760
+ this.listen(!1), this.parent.children.splice(this.parent.children.indexOf(this), 1), this.parent.controllers.splice(this.parent.controllers.indexOf(this), 1), this.parent.$children.removeChild(this.domElement);
761
+ }
762
+ }, b = class extends y {
763
+ constructor(e, t, n) {
764
+ super(e, t, n, "lil-boolean", "label"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "checkbox"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$widget.appendChild(this.$input), this.$input.addEventListener("change", () => {
765
+ this.setValue(this.$input.checked), this._callOnFinishChange();
766
+ }), this.$disable = this.$input, this.updateDisplay();
767
+ }
768
+ updateDisplay() {
769
+ return this.$input.checked = this.getValue(), this;
770
+ }
771
+ };
772
+ function x(e) {
773
+ let t, n;
774
+ return (t = e.match(/(#|0x)?([a-f0-9]{6})/i)) ? n = t[2] : (t = e.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? n = parseInt(t[1]).toString(16).padStart(2, 0) + parseInt(t[2]).toString(16).padStart(2, 0) + parseInt(t[3]).toString(16).padStart(2, 0) : (t = e.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (n = t[1] + t[1] + t[2] + t[2] + t[3] + t[3]), n ? "#" + n : !1;
775
+ }
776
+ var S = {
777
+ isPrimitive: !0,
778
+ match: (e) => typeof e == "string",
779
+ fromHexString: x,
780
+ toHexString: x
781
+ }, C = {
782
+ isPrimitive: !0,
783
+ match: (e) => typeof e == "number",
784
+ fromHexString: (e) => parseInt(e.substring(1), 16),
785
+ toHexString: (e) => "#" + e.toString(16).padStart(6, 0)
786
+ }, w = [
787
+ S,
788
+ C,
789
+ {
790
+ isPrimitive: !1,
791
+ match: (e) => Array.isArray(e) || ArrayBuffer.isView(e),
792
+ fromHexString(e, t, n = 1) {
793
+ let r = C.fromHexString(e);
794
+ t[0] = (r >> 16 & 255) / 255 * n, t[1] = (r >> 8 & 255) / 255 * n, t[2] = (r & 255) / 255 * n;
795
+ },
796
+ toHexString([e, t, n], r = 1) {
797
+ r = 255 / r;
798
+ let i = e * r << 16 ^ t * r << 8 ^ n * r << 0;
799
+ return C.toHexString(i);
800
+ }
801
+ },
802
+ {
803
+ isPrimitive: !1,
804
+ match: (e) => Object(e) === e,
805
+ fromHexString(e, t, n = 1) {
806
+ let r = C.fromHexString(e);
807
+ t.r = (r >> 16 & 255) / 255 * n, t.g = (r >> 8 & 255) / 255 * n, t.b = (r & 255) / 255 * n;
808
+ },
809
+ toHexString({ r: e, g: t, b: n }, r = 1) {
810
+ r = 255 / r;
811
+ let i = e * r << 16 ^ t * r << 8 ^ n * r << 0;
812
+ return C.toHexString(i);
813
+ }
814
+ }
815
+ ];
816
+ function T(e) {
817
+ return w.find((t) => t.match(e));
818
+ }
819
+ var E = class extends y {
820
+ constructor(e, t, n, r) {
821
+ super(e, t, n, "lil-color"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "color"), this.$input.setAttribute("tabindex", -1), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$text = document.createElement("input"), this.$text.setAttribute("type", "text"), this.$text.setAttribute("spellcheck", "false"), this.$text.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$display.appendChild(this.$input), this.$widget.appendChild(this.$display), this.$widget.appendChild(this.$text), this._format = T(this.initialValue), this._rgbScale = r, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
822
+ this._setValueFromHexString(this.$input.value);
823
+ }), this.$input.addEventListener("blur", () => {
824
+ this._callOnFinishChange();
825
+ }), this.$text.addEventListener("input", () => {
826
+ let e = x(this.$text.value);
827
+ e && this._setValueFromHexString(e);
828
+ }), this.$text.addEventListener("focus", () => {
829
+ this._textFocused = !0, this.$text.select();
830
+ }), this.$text.addEventListener("blur", () => {
831
+ this._textFocused = !1, this.updateDisplay(), this._callOnFinishChange();
832
+ }), this.$disable = this.$text, this.updateDisplay();
833
+ }
834
+ reset() {
835
+ return this._setValueFromHexString(this._initialValueHexString), this;
836
+ }
837
+ _setValueFromHexString(e) {
838
+ if (this._format.isPrimitive) {
839
+ let t = this._format.fromHexString(e);
840
+ this.setValue(t);
841
+ } else this._format.fromHexString(e, this.getValue(), this._rgbScale), this._callOnChange(), this.updateDisplay();
842
+ }
843
+ save() {
844
+ return this._format.toHexString(this.getValue(), this._rgbScale);
845
+ }
846
+ load(e) {
847
+ return this._setValueFromHexString(e), this._callOnFinishChange(), this;
848
+ }
849
+ updateDisplay() {
850
+ return this.$input.value = this._format.toHexString(this.getValue(), this._rgbScale), this._textFocused || (this.$text.value = this.$input.value.substring(1)), this.$display.style.backgroundColor = this.$input.value, this;
851
+ }
852
+ }, D = class extends y {
853
+ constructor(e, t, n) {
854
+ super(e, t, n, "lil-function"), this.$button = document.createElement("button"), this.$button.appendChild(this.$name), this.$widget.appendChild(this.$button), this.$button.addEventListener("click", (e) => {
855
+ e.preventDefault(), this.getValue().call(this.object), this._callOnChange();
856
+ }), this.$button.addEventListener("touchstart", () => {}, { passive: !0 }), this.$disable = this.$button;
857
+ }
858
+ }, O = class extends y {
859
+ constructor(e, t, n, r, i, a) {
860
+ super(e, t, n, "lil-number"), this._initInput(), this.min(r), this.max(i);
861
+ let o = a !== void 0;
862
+ this.step(o ? a : this._getImplicitStep(), o), this.updateDisplay();
863
+ }
864
+ decimals(e) {
865
+ return this._decimals = e, this.updateDisplay(), this;
866
+ }
867
+ min(e) {
868
+ return this._min = e, this._onUpdateMinMax(), this;
869
+ }
870
+ max(e) {
871
+ return this._max = e, this._onUpdateMinMax(), this;
872
+ }
873
+ step(e, t = !0) {
874
+ return this._step = e, this._stepExplicit = t, this;
875
+ }
876
+ updateDisplay() {
877
+ let e = this.getValue();
878
+ if (this._hasSlider) {
879
+ let t = (e - this._min) / (this._max - this._min);
880
+ t = Math.max(0, Math.min(t, 1)), this.$fill.style.width = t * 100 + "%";
881
+ }
882
+ return this._inputFocused || (this.$input.value = this._decimals === void 0 ? e : e.toFixed(this._decimals)), this;
883
+ }
884
+ _initInput() {
885
+ this.$input = document.createElement("input"), this.$input.setAttribute("type", "text"), this.$input.setAttribute("aria-labelledby", this.$name.id), window.matchMedia("(pointer: coarse)").matches && (this.$input.setAttribute("type", "number"), this.$input.setAttribute("step", "any")), this.$widget.appendChild(this.$input), this.$disable = this.$input;
886
+ let e = () => {
887
+ let e = parseFloat(this.$input.value);
888
+ isNaN(e) || (this._stepExplicit && (e = this._snap(e)), this.setValue(this._clamp(e)));
889
+ }, t = (e) => {
890
+ let t = parseFloat(this.$input.value);
891
+ isNaN(t) || (this._snapClampSetValue(t + e), this.$input.value = this.getValue());
892
+ }, n = (e) => {
893
+ e.key === "Enter" && this.$input.blur(), e.code === "ArrowUp" && (e.preventDefault(), t(this._step * this._arrowKeyMultiplier(e))), e.code === "ArrowDown" && (e.preventDefault(), t(this._step * this._arrowKeyMultiplier(e) * -1));
894
+ }, r = (e) => {
895
+ this._inputFocused && (e.preventDefault(), t(this._step * this._normalizeMouseWheel(e)));
896
+ }, i = !1, a, o, s, c, l, u = (e) => {
897
+ a = e.clientX, o = s = e.clientY, i = !0, c = this.getValue(), l = 0, window.addEventListener("mousemove", d), window.addEventListener("mouseup", f);
898
+ }, d = (e) => {
899
+ if (i) {
900
+ let t = e.clientX - a, n = e.clientY - o;
901
+ Math.abs(n) > 5 ? (e.preventDefault(), this.$input.blur(), i = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(t) > 5 && f();
902
+ }
903
+ if (!i) {
904
+ let t = e.clientY - s;
905
+ l -= t * this._step * this._arrowKeyMultiplier(e), c + l > this._max ? l = this._max - c : c + l < this._min && (l = this._min - c), this._snapClampSetValue(c + l);
906
+ }
907
+ s = e.clientY;
908
+ }, f = () => {
909
+ this._setDraggingStyle(!1, "vertical"), this._callOnFinishChange(), window.removeEventListener("mousemove", d), window.removeEventListener("mouseup", f);
910
+ };
911
+ this.$input.addEventListener("input", e), this.$input.addEventListener("keydown", n), this.$input.addEventListener("wheel", r, { passive: !1 }), this.$input.addEventListener("mousedown", u), this.$input.addEventListener("focus", () => {
912
+ this._inputFocused = !0;
913
+ }), this.$input.addEventListener("blur", () => {
914
+ this._inputFocused = !1, this.updateDisplay(), this._callOnFinishChange();
915
+ });
916
+ }
917
+ _initSlider() {
918
+ this._hasSlider = !0, this.$slider = document.createElement("div"), this.$slider.classList.add("lil-slider"), this.$fill = document.createElement("div"), this.$fill.classList.add("lil-fill"), this.$slider.appendChild(this.$fill), this.$widget.insertBefore(this.$slider, this.$input), this.domElement.classList.add("lil-has-slider");
919
+ let e = (e, t, n, r, i) => (e - t) / (n - t) * (i - r) + r, t = (t) => {
920
+ let n = this.$slider.getBoundingClientRect(), r = e(t, n.left, n.right, this._min, this._max);
921
+ this._snapClampSetValue(r);
922
+ }, n = (e) => {
923
+ this._setDraggingStyle(!0), t(e.clientX), window.addEventListener("mousemove", r), window.addEventListener("mouseup", i);
924
+ }, r = (e) => {
925
+ t(e.clientX);
926
+ }, i = () => {
927
+ this._callOnFinishChange(), this._setDraggingStyle(!1), window.removeEventListener("mousemove", r), window.removeEventListener("mouseup", i);
928
+ }, a = !1, o, s, c = (e) => {
929
+ e.preventDefault(), this._setDraggingStyle(!0), t(e.touches[0].clientX), a = !1;
930
+ }, l = (e) => {
931
+ e.touches.length > 1 || (this._hasScrollBar ? (o = e.touches[0].clientX, s = e.touches[0].clientY, a = !0) : c(e), window.addEventListener("touchmove", u, { passive: !1 }), window.addEventListener("touchend", d));
932
+ }, u = (e) => {
933
+ if (a) {
934
+ let t = e.touches[0].clientX - o, n = e.touches[0].clientY - s;
935
+ Math.abs(t) > Math.abs(n) ? c(e) : (window.removeEventListener("touchmove", u), window.removeEventListener("touchend", d));
936
+ } else e.preventDefault(), t(e.touches[0].clientX);
937
+ }, d = () => {
938
+ this._callOnFinishChange(), this._setDraggingStyle(!1), window.removeEventListener("touchmove", u), window.removeEventListener("touchend", d);
939
+ }, f = this._callOnFinishChange.bind(this), p;
940
+ this.$slider.addEventListener("mousedown", n), this.$slider.addEventListener("touchstart", l, { passive: !1 }), this.$slider.addEventListener("wheel", (e) => {
941
+ if (Math.abs(e.deltaX) < Math.abs(e.deltaY) && this._hasScrollBar) return;
942
+ e.preventDefault();
943
+ let t = this._normalizeMouseWheel(e) * this._step;
944
+ this._snapClampSetValue(this.getValue() + t), this.$input.value = this.getValue(), clearTimeout(p), p = setTimeout(f, 400);
945
+ }, { passive: !1 });
946
+ }
947
+ _setDraggingStyle(e, t = "horizontal") {
948
+ this.$slider && this.$slider.classList.toggle("lil-active", e), document.body.classList.toggle("lil-dragging", e), document.body.classList.toggle(`lil-${t}`, e);
949
+ }
950
+ _getImplicitStep() {
951
+ return this._hasMin && this._hasMax ? (this._max - this._min) / 1e3 : .1;
952
+ }
953
+ _onUpdateMinMax() {
954
+ !this._hasSlider && this._hasMin && this._hasMax && (this._stepExplicit || this.step(this._getImplicitStep(), !1), this._initSlider(), this.updateDisplay());
955
+ }
956
+ _normalizeMouseWheel(e) {
957
+ let { deltaX: t, deltaY: n } = e;
958
+ return Math.floor(e.deltaY) !== e.deltaY && e.wheelDelta && (t = 0, n = -e.wheelDelta / 120, n *= this._stepExplicit ? 1 : 10), t + -n;
959
+ }
960
+ _arrowKeyMultiplier(e) {
961
+ let t = this._stepExplicit ? 1 : 10;
962
+ return e.shiftKey ? t *= 10 : e.altKey && (t /= 10), t;
963
+ }
964
+ _snap(e) {
965
+ let t = 0;
966
+ return this._hasMin ? t = this._min : this._hasMax && (t = this._max), e -= t, e = Math.round(e / this._step) * this._step, e += t, e = parseFloat(e.toPrecision(15)), e;
967
+ }
968
+ _clamp(e) {
969
+ return e < this._min && (e = this._min), e > this._max && (e = this._max), e;
970
+ }
971
+ _snapClampSetValue(e) {
972
+ this.setValue(this._clamp(this._snap(e)));
973
+ }
974
+ get _hasScrollBar() {
975
+ let e = this.parent.root.$children;
976
+ return e.scrollHeight > e.clientHeight;
977
+ }
978
+ get _hasMin() {
979
+ return this._min !== void 0;
980
+ }
981
+ get _hasMax() {
982
+ return this._max !== void 0;
983
+ }
984
+ }, k = class extends y {
985
+ constructor(e, t, n, r) {
986
+ super(e, t, n, "lil-option"), this.$select = document.createElement("select"), this.$select.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$select.addEventListener("change", () => {
987
+ this.setValue(this._values[this.$select.selectedIndex]), this._callOnFinishChange();
988
+ }), this.$select.addEventListener("focus", () => {
989
+ this.$display.classList.add("lil-focus");
990
+ }), this.$select.addEventListener("blur", () => {
991
+ this.$display.classList.remove("lil-focus");
992
+ }), this.$widget.appendChild(this.$select), this.$widget.appendChild(this.$display), this.$disable = this.$select, this.options(r);
993
+ }
994
+ options(e) {
995
+ return this._values = Array.isArray(e) ? e : Object.values(e), this._names = Array.isArray(e) ? e : Object.keys(e), this.$select.replaceChildren(), this._names.forEach((e) => {
996
+ let t = document.createElement("option");
997
+ t.textContent = e, this.$select.appendChild(t);
998
+ }), this.updateDisplay(), this;
999
+ }
1000
+ updateDisplay() {
1001
+ let e = this.getValue(), t = this._values.indexOf(e);
1002
+ return this.$select.selectedIndex = t, this.$display.textContent = t === -1 ? e : this._names[t], this;
1003
+ }
1004
+ }, A = class extends y {
1005
+ constructor(e, t, n) {
1006
+ super(e, t, n, "lil-string"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "text"), this.$input.setAttribute("spellcheck", "false"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$input.addEventListener("input", () => {
1007
+ this.setValue(this.$input.value);
1008
+ }), this.$input.addEventListener("keydown", (e) => {
1009
+ e.code === "Enter" && this.$input.blur();
1010
+ }), this.$input.addEventListener("blur", () => {
1011
+ this._callOnFinishChange();
1012
+ }), this.$widget.appendChild(this.$input), this.$disable = this.$input, this.updateDisplay();
1013
+ }
1014
+ updateDisplay() {
1015
+ return this.$input.value = this.getValue(), this;
1016
+ }
1017
+ }, j = ".lil-gui {\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: 1;\n font-weight: normal;\n font-style: normal;\n text-align: left;\n color: var(--text-color);\n user-select: none;\n -webkit-user-select: none;\n touch-action: manipulation;\n --background-color: #1f1f1f;\n --text-color: #ebebeb;\n --title-background-color: #111111;\n --title-text-color: #ebebeb;\n --widget-color: #424242;\n --hover-color: #4f4f4f;\n --focus-color: #595959;\n --number-color: #2cc9ff;\n --string-color: #a2db3c;\n --font-size: 11px;\n --input-font-size: 11px;\n --font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif;\n --font-family-mono: Menlo, Monaco, Consolas, \"Droid Sans Mono\", monospace;\n --padding: 4px;\n --spacing: 4px;\n --widget-height: 20px;\n --title-height: calc(var(--widget-height) + var(--spacing) * 1.25);\n --name-width: 45%;\n --slider-knob-width: 2px;\n --slider-input-width: 27%;\n --color-input-width: 27%;\n --slider-input-min-width: 45px;\n --color-input-min-width: 45px;\n --folder-indent: 7px;\n --widget-padding: 0 0 0 3px;\n --widget-border-radius: 2px;\n --checkbox-size: calc(0.75 * var(--widget-height));\n --scrollbar-width: 5px;\n}\n.lil-gui, .lil-gui * {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n.lil-gui.lil-root {\n width: var(--width, 245px);\n display: flex;\n flex-direction: column;\n background: var(--background-color);\n}\n.lil-gui.lil-root > .lil-title {\n background: var(--title-background-color);\n color: var(--title-text-color);\n}\n.lil-gui.lil-root > .lil-children {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.lil-gui.lil-root > .lil-children::-webkit-scrollbar {\n width: var(--scrollbar-width);\n height: var(--scrollbar-width);\n background: var(--background-color);\n}\n.lil-gui.lil-root > .lil-children::-webkit-scrollbar-thumb {\n border-radius: var(--scrollbar-width);\n background: var(--focus-color);\n}\n@media (pointer: coarse) {\n .lil-gui.lil-allow-touch-styles, .lil-gui.lil-allow-touch-styles .lil-gui {\n --widget-height: 28px;\n --padding: 6px;\n --spacing: 6px;\n --font-size: 13px;\n --input-font-size: 16px;\n --folder-indent: 10px;\n --scrollbar-width: 7px;\n --slider-input-min-width: 50px;\n --color-input-min-width: 65px;\n }\n}\n.lil-gui.lil-force-touch-styles, .lil-gui.lil-force-touch-styles .lil-gui {\n --widget-height: 28px;\n --padding: 6px;\n --spacing: 6px;\n --font-size: 13px;\n --input-font-size: 16px;\n --folder-indent: 10px;\n --scrollbar-width: 7px;\n --slider-input-min-width: 50px;\n --color-input-min-width: 65px;\n}\n.lil-gui.lil-auto-place, .lil-gui.autoPlace {\n max-height: 100%;\n position: fixed;\n top: 0;\n right: 15px;\n z-index: 1001;\n}\n\n.lil-controller {\n display: flex;\n align-items: center;\n padding: 0 var(--padding);\n margin: var(--spacing) 0;\n}\n.lil-controller.lil-disabled {\n opacity: 0.5;\n}\n.lil-controller.lil-disabled, .lil-controller.lil-disabled * {\n pointer-events: none !important;\n}\n.lil-controller > .lil-name {\n min-width: var(--name-width);\n flex-shrink: 0;\n white-space: pre;\n padding-right: var(--spacing);\n line-height: var(--widget-height);\n}\n.lil-controller .lil-widget {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n min-height: var(--widget-height);\n}\n.lil-controller.lil-string input {\n color: var(--string-color);\n}\n.lil-controller.lil-boolean {\n cursor: pointer;\n}\n.lil-controller.lil-color .lil-display {\n width: 100%;\n height: var(--widget-height);\n border-radius: var(--widget-border-radius);\n position: relative;\n}\n@media (hover: hover) {\n .lil-controller.lil-color .lil-display:hover:before {\n content: \" \";\n display: block;\n position: absolute;\n border-radius: var(--widget-border-radius);\n border: 1px solid #fff9;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n}\n.lil-controller.lil-color input[type=color] {\n opacity: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n}\n.lil-controller.lil-color input[type=text] {\n margin-left: var(--spacing);\n font-family: var(--font-family-mono);\n min-width: var(--color-input-min-width);\n width: var(--color-input-width);\n flex-shrink: 0;\n}\n.lil-controller.lil-option select {\n opacity: 0;\n position: absolute;\n width: 100%;\n max-width: 100%;\n}\n.lil-controller.lil-option .lil-display {\n position: relative;\n pointer-events: none;\n border-radius: var(--widget-border-radius);\n height: var(--widget-height);\n line-height: var(--widget-height);\n max-width: 100%;\n overflow: hidden;\n word-break: break-all;\n padding-left: 0.55em;\n padding-right: 1.75em;\n background: var(--widget-color);\n}\n@media (hover: hover) {\n .lil-controller.lil-option .lil-display.lil-focus {\n background: var(--focus-color);\n }\n}\n.lil-controller.lil-option .lil-display.lil-active {\n background: var(--focus-color);\n}\n.lil-controller.lil-option .lil-display:after {\n font-family: \"lil-gui\";\n content: \"↕\";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n padding-right: 0.375em;\n}\n.lil-controller.lil-option .lil-widget,\n.lil-controller.lil-option select {\n cursor: pointer;\n}\n@media (hover: hover) {\n .lil-controller.lil-option .lil-widget:hover .lil-display {\n background: var(--hover-color);\n }\n}\n.lil-controller.lil-number input {\n color: var(--number-color);\n}\n.lil-controller.lil-number.lil-has-slider input {\n margin-left: var(--spacing);\n width: var(--slider-input-width);\n min-width: var(--slider-input-min-width);\n flex-shrink: 0;\n}\n.lil-controller.lil-number .lil-slider {\n width: 100%;\n height: var(--widget-height);\n background: var(--widget-color);\n border-radius: var(--widget-border-radius);\n padding-right: var(--slider-knob-width);\n overflow: hidden;\n cursor: ew-resize;\n touch-action: pan-y;\n}\n@media (hover: hover) {\n .lil-controller.lil-number .lil-slider:hover {\n background: var(--hover-color);\n }\n}\n.lil-controller.lil-number .lil-slider.lil-active {\n background: var(--focus-color);\n}\n.lil-controller.lil-number .lil-slider.lil-active .lil-fill {\n opacity: 0.95;\n}\n.lil-controller.lil-number .lil-fill {\n height: 100%;\n border-right: var(--slider-knob-width) solid var(--number-color);\n box-sizing: content-box;\n}\n\n.lil-dragging .lil-gui {\n --hover-color: var(--widget-color);\n}\n.lil-dragging * {\n cursor: ew-resize !important;\n}\n.lil-dragging.lil-vertical * {\n cursor: ns-resize !important;\n}\n\n.lil-gui .lil-title {\n height: var(--title-height);\n font-weight: 600;\n padding: 0 var(--padding);\n width: 100%;\n text-align: left;\n background: none;\n text-decoration-skip: objects;\n}\n.lil-gui .lil-title:before {\n font-family: \"lil-gui\";\n content: \"▾\";\n padding-right: 2px;\n display: inline-block;\n}\n.lil-gui .lil-title:active {\n background: var(--title-background-color);\n opacity: 0.75;\n}\n@media (hover: hover) {\n body:not(.lil-dragging) .lil-gui .lil-title:hover {\n background: var(--title-background-color);\n opacity: 0.85;\n }\n .lil-gui .lil-title:focus {\n text-decoration: underline var(--focus-color);\n }\n}\n.lil-gui.lil-root > .lil-title:focus {\n text-decoration: none !important;\n}\n.lil-gui.lil-closed > .lil-title:before {\n content: \"▸\";\n}\n.lil-gui.lil-closed > .lil-children {\n transform: translateY(-7px);\n opacity: 0;\n}\n.lil-gui.lil-closed:not(.lil-transition) > .lil-children {\n display: none;\n}\n.lil-gui.lil-transition > .lil-children {\n transition-duration: 300ms;\n transition-property: height, opacity, transform;\n transition-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);\n overflow: hidden;\n pointer-events: none;\n}\n.lil-gui .lil-children:empty:before {\n content: \"Empty\";\n padding: 0 var(--padding);\n margin: var(--spacing) 0;\n display: block;\n height: var(--widget-height);\n font-style: italic;\n line-height: var(--widget-height);\n opacity: 0.5;\n}\n.lil-gui.lil-root > .lil-children > .lil-gui > .lil-title {\n border: 0 solid var(--widget-color);\n border-width: 1px 0;\n transition: border-color 300ms;\n}\n.lil-gui.lil-root > .lil-children > .lil-gui.lil-closed > .lil-title {\n border-bottom-color: transparent;\n}\n.lil-gui + .lil-controller {\n border-top: 1px solid var(--widget-color);\n margin-top: 0;\n padding-top: var(--spacing);\n}\n.lil-gui .lil-gui .lil-gui > .lil-title {\n border: none;\n}\n.lil-gui .lil-gui .lil-gui > .lil-children {\n border: none;\n margin-left: var(--folder-indent);\n border-left: 2px solid var(--widget-color);\n}\n.lil-gui .lil-gui .lil-controller {\n border: none;\n}\n\n.lil-gui label, .lil-gui input, .lil-gui button {\n -webkit-tap-highlight-color: transparent;\n}\n.lil-gui input {\n border: 0;\n outline: none;\n font-family: var(--font-family);\n font-size: var(--input-font-size);\n border-radius: var(--widget-border-radius);\n height: var(--widget-height);\n background: var(--widget-color);\n color: var(--text-color);\n width: 100%;\n}\n@media (hover: hover) {\n .lil-gui input:hover {\n background: var(--hover-color);\n }\n .lil-gui input:active {\n background: var(--focus-color);\n }\n}\n.lil-gui input:disabled {\n opacity: 1;\n}\n.lil-gui input[type=text],\n.lil-gui input[type=number] {\n padding: var(--widget-padding);\n -moz-appearance: textfield;\n}\n.lil-gui input[type=text]:focus,\n.lil-gui input[type=number]:focus {\n background: var(--focus-color);\n}\n.lil-gui input[type=checkbox] {\n appearance: none;\n width: var(--checkbox-size);\n height: var(--checkbox-size);\n border-radius: var(--widget-border-radius);\n text-align: center;\n cursor: pointer;\n}\n.lil-gui input[type=checkbox]:checked:before {\n font-family: \"lil-gui\";\n content: \"✓\";\n font-size: var(--checkbox-size);\n line-height: var(--checkbox-size);\n}\n@media (hover: hover) {\n .lil-gui input[type=checkbox]:focus {\n box-shadow: inset 0 0 0 1px var(--focus-color);\n }\n}\n.lil-gui button {\n outline: none;\n cursor: pointer;\n font-family: var(--font-family);\n font-size: var(--font-size);\n color: var(--text-color);\n width: 100%;\n border: none;\n}\n.lil-gui .lil-controller button {\n height: var(--widget-height);\n text-transform: none;\n background: var(--widget-color);\n border-radius: var(--widget-border-radius);\n}\n@media (hover: hover) {\n .lil-gui .lil-controller button:hover {\n background: var(--hover-color);\n }\n .lil-gui .lil-controller button:focus {\n box-shadow: inset 0 0 0 1px var(--focus-color);\n }\n}\n.lil-gui .lil-controller button:active {\n background: var(--focus-color);\n}\n\n@font-face {\n font-family: \"lil-gui\";\n src: url(\"data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAALkAAsAAAAABtQAAAKVAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDMgqBBIEbATYCJAMUCwwABCAFhAoHgQQbHAbIDiUFEYVARAAAYQTVWNmz9MxhEgodq49wYRUFKE8GWNiUBxI2LBRaVnc51U83Gmhs0Q7JXWMiz5eteLwrKwuxHO8VFxUX9UpZBs6pa5ABRwHA+t3UxUnH20EvVknRerzQgX6xC/GH6ZUvTcAjAv122dF28OTqCXrPuyaDER30YBA1xnkVutDDo4oCi71Ca7rrV9xS8dZHbPHefsuwIyCpmT7j+MnjAH5X3984UZoFFuJ0yiZ4XEJFxjagEBeqs+e1iyK8Xf/nOuwF+vVK0ur765+vf7txotUi0m3N0m/84RGSrBCNrh8Ee5GjODjF4gnWP+dJrH/Lk9k4oT6d+gr6g/wssA2j64JJGP6cmx554vUZnpZfn6ZfX2bMwPPrlANsB86/DiHjhl0OP+c87+gaJo/gY084s3HoYL/ZkWHTRfBXvvoHnnkHvngKun4KBE/ede7tvq3/vQOxDXB1/fdNz6XbPdcr0Vhpojj9dG+owuSKFsslCi1tgEjirjXdwMiov2EioadxmqTHUCIwo8NgQaeIasAi0fTYSPTbSmwbMOFduyh9wvBrESGY0MtgRjtgQR8Q1bRPohn2UoCRZf9wyYANMXFeJTysqAe0I4mrherOekFdKMrYvJjLvOIUM9SuwYB5DVZUwwVjJJOaUnZCmcEkIZZrKqNvRGRMvmFZsmhP4VMKCSXBhSqUBxgMS7h0cZvEd71AWkEhGWaeMFcNnpqyJkyXgYL7PQ1MoSq0wDAkRtJIijkZSmqYTiSImfLiSWXIZwhRh3Rug2X0kk1Dgj+Iu43u5p98ghopcpSo0Uyc8SnjlYX59WUeaMoDqmVD2TOWD9a4pCRAzf2ECgwGcrHjPOWY9bNxq/OL3I/QjwEAAAA=\") format(\"woff2\");\n}";
1018
+ function M(e) {
1019
+ let t = document.createElement("style");
1020
+ t.innerHTML = e;
1021
+ let n = document.querySelector("head link[rel=stylesheet], head style");
1022
+ n ? document.head.insertBefore(t, n) : document.head.appendChild(t);
1023
+ }
1024
+ var N = !1, P = class e {
1025
+ constructor({ parent: e, autoPlace: t = e === void 0, container: n, width: r, title: i = "Controls", closeFolders: a = !1, injectStyles: o = !0, touchStyles: s = !0 } = {}) {
1026
+ if (this.parent = e, this.root = e ? e.root : this, this.children = [], this.controllers = [], this.folders = [], this._closed = !1, this._hidden = !1, this.domElement = document.createElement("div"), this.domElement.classList.add("lil-gui"), this.$title = document.createElement("button"), this.$title.classList.add("lil-title"), this.$title.setAttribute("aria-expanded", !0), this.$title.addEventListener("click", () => this.openAnimated(this._closed)), this.$title.addEventListener("touchstart", () => {}, { passive: !0 }), this.$children = document.createElement("div"), this.$children.classList.add("lil-children"), this.domElement.appendChild(this.$title), this.domElement.appendChild(this.$children), this.title(i), this.parent) {
1027
+ this.parent.children.push(this), this.parent.folders.push(this), this.parent.$children.appendChild(this.domElement);
1028
+ return;
1029
+ }
1030
+ this.domElement.classList.add("lil-root"), s && this.domElement.classList.add("lil-allow-touch-styles"), !N && o && (M(j), N = !0), n ? n.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), r && this.domElement.style.setProperty("--width", r + "px"), this._closeFolders = a;
1031
+ }
1032
+ add(e, t, n, r, i) {
1033
+ if (Object(n) === n) return new k(this, e, t, n);
1034
+ let a = e[t];
1035
+ switch (typeof a) {
1036
+ case "number": return new O(this, e, t, n, r, i);
1037
+ case "boolean": return new b(this, e, t);
1038
+ case "string": return new A(this, e, t);
1039
+ case "function": return new D(this, e, t);
1040
+ }
1041
+ console.error("gui.add failed\n property:", t, "\n object:", e, "\n value:", a);
1042
+ }
1043
+ addColor(e, t, n = 1) {
1044
+ return new E(this, e, t, n);
1045
+ }
1046
+ addFolder(t) {
1047
+ let n = new e({
1048
+ parent: this,
1049
+ title: t
1050
+ });
1051
+ return this.root._closeFolders && n.close(), n;
1052
+ }
1053
+ load(e, t = !0) {
1054
+ return e.controllers && this.controllers.forEach((t) => {
1055
+ t instanceof D || t._name in e.controllers && t.load(e.controllers[t._name]);
1056
+ }), t && e.folders && this.folders.forEach((t) => {
1057
+ t._title in e.folders && t.load(e.folders[t._title]);
1058
+ }), this;
1059
+ }
1060
+ save(e = !0) {
1061
+ let t = {
1062
+ controllers: {},
1063
+ folders: {}
1064
+ };
1065
+ return this.controllers.forEach((e) => {
1066
+ if (!(e instanceof D)) {
1067
+ if (e._name in t.controllers) throw Error(`Cannot save GUI with duplicate property "${e._name}"`);
1068
+ t.controllers[e._name] = e.save();
1069
+ }
1070
+ }), e && this.folders.forEach((e) => {
1071
+ if (e._title in t.folders) throw Error(`Cannot save GUI with duplicate folder "${e._title}"`);
1072
+ t.folders[e._title] = e.save();
1073
+ }), t;
1074
+ }
1075
+ open(e = !0) {
1076
+ return this._setClosed(!e), this.$title.setAttribute("aria-expanded", !this._closed), this.domElement.classList.toggle("lil-closed", this._closed), this;
1077
+ }
1078
+ close() {
1079
+ return this.open(!1);
1080
+ }
1081
+ _setClosed(e) {
1082
+ this._closed !== e && (this._closed = e, this._callOnOpenClose(this));
1083
+ }
1084
+ show(e = !0) {
1085
+ return this._hidden = !e, this.domElement.style.display = this._hidden ? "none" : "", this;
1086
+ }
1087
+ hide() {
1088
+ return this.show(!1);
1089
+ }
1090
+ openAnimated(e = !0) {
1091
+ return this._setClosed(!e), this.$title.setAttribute("aria-expanded", !this._closed), requestAnimationFrame(() => {
1092
+ let t = this.$children.clientHeight;
1093
+ this.$children.style.height = t + "px", this.domElement.classList.add("lil-transition");
1094
+ let n = (e) => {
1095
+ e.target === this.$children && (this.$children.style.height = "", this.domElement.classList.remove("lil-transition"), this.$children.removeEventListener("transitionend", n));
1096
+ };
1097
+ this.$children.addEventListener("transitionend", n);
1098
+ let r = e ? this.$children.scrollHeight : 0;
1099
+ this.domElement.classList.toggle("lil-closed", !e), requestAnimationFrame(() => {
1100
+ this.$children.style.height = r + "px";
1101
+ });
1102
+ }), this;
1103
+ }
1104
+ title(e) {
1105
+ return this._title = e, this.$title.textContent = e, this;
1106
+ }
1107
+ reset(e = !0) {
1108
+ return (e ? this.controllersRecursive() : this.controllers).forEach((e) => e.reset()), this;
1109
+ }
1110
+ onChange(e) {
1111
+ return this._onChange = e, this;
1112
+ }
1113
+ _callOnChange(e) {
1114
+ this.parent && this.parent._callOnChange(e), this._onChange !== void 0 && this._onChange.call(this, {
1115
+ object: e.object,
1116
+ property: e.property,
1117
+ value: e.getValue(),
1118
+ controller: e
1119
+ });
1120
+ }
1121
+ onFinishChange(e) {
1122
+ return this._onFinishChange = e, this;
1123
+ }
1124
+ _callOnFinishChange(e) {
1125
+ this.parent && this.parent._callOnFinishChange(e), this._onFinishChange !== void 0 && this._onFinishChange.call(this, {
1126
+ object: e.object,
1127
+ property: e.property,
1128
+ value: e.getValue(),
1129
+ controller: e
1130
+ });
1131
+ }
1132
+ onOpenClose(e) {
1133
+ return this._onOpenClose = e, this;
1134
+ }
1135
+ _callOnOpenClose(e) {
1136
+ this.parent && this.parent._callOnOpenClose(e), this._onOpenClose !== void 0 && this._onOpenClose.call(this, e);
1137
+ }
1138
+ destroy() {
1139
+ this.parent && (this.parent.children.splice(this.parent.children.indexOf(this), 1), this.parent.folders.splice(this.parent.folders.indexOf(this), 1)), this.domElement.parentElement && this.domElement.parentElement.removeChild(this.domElement), Array.from(this.children).forEach((e) => e.destroy());
1140
+ }
1141
+ controllersRecursive() {
1142
+ let e = Array.from(this.controllers);
1143
+ return this.folders.forEach((t) => {
1144
+ e = e.concat(t.controllersRecursive());
1145
+ }), e;
1146
+ }
1147
+ foldersRecursive() {
1148
+ let e = Array.from(this.folders);
1149
+ return this.folders.forEach((t) => {
1150
+ e = e.concat(t.foldersRecursive());
1151
+ }), e;
1152
+ }
1153
+ };
1154
+ //#endregion
1155
+ //#region ../renderer/src/debug/components/Gui.tsx
1156
+ function F(e) {
1157
+ let t = (0, l.c)(7), { children: n } = e, [r] = (0, u.useState)(L), i = a(I), o, c;
1158
+ t[0] !== r || t[1] !== i ? (o = () => (r.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(r.domElement), r.close(), r.onChange(() => i()), () => r.destroy()), c = [r, i], t[0] = r, t[1] = i, t[2] = o, t[3] = c) : (o = t[2], c = t[3]), (0, u.useEffect)(o, c);
1159
+ let d;
1160
+ return t[4] !== n || t[5] !== r ? (d = /* @__PURE__ */ (0, p.jsx)(s, {
1161
+ value: r,
1162
+ children: n
1163
+ }), t[4] = n, t[5] = r, t[6] = d) : d = t[6], d;
1164
+ }
1165
+ function I(e) {
1166
+ return e.invalidate;
1167
+ }
1168
+ function L() {
1169
+ return new P({
1170
+ autoPlace: !1,
1171
+ closeFolders: !0
1172
+ });
1173
+ }
1174
+ //#endregion
1175
+ //#region ../renderer/src/debug/components/MemoryInfo.tsx
1176
+ function R() {
1177
+ let e = (0, l.c)(5), t = a(z), [n, r] = (0, u.useState)(null), i, s;
1178
+ e[0] === t ? (i = e[1], s = e[2]) : (i = () => {
1179
+ let e = t.getContext().getExtension("GMAN_webgl_memory");
1180
+ if (e) return o(() => {
1181
+ r({
1182
+ ...e.getMemoryInfo(),
1183
+ drawCalls: t.info.render.calls
1184
+ });
1185
+ });
1186
+ }, s = [t], e[0] = t, e[1] = i, e[2] = s), (0, u.useEffect)(i, s);
1187
+ let c;
1188
+ return e[3] === n ? c = e[4] : (c = /* @__PURE__ */ (0, p.jsx)(g, {
1189
+ corner: "left",
1190
+ label: "Memory Info",
1191
+ value: n,
1192
+ replacer: B
1193
+ }), e[3] = n, e[4] = c), c;
1194
+ }
1195
+ function z(e) {
1196
+ return e.gl;
1197
+ }
1198
+ function B(e, t) {
1199
+ return typeof t == "number" ? t.toLocaleString() : t;
1200
+ }
1201
+ //#endregion
1202
+ //#region ../../node_modules/.pnpm/stats-gl@4.2.3_three@0.185.1/node_modules/stats-gl/dist/core.js
1203
+ var V = class {
1204
+ constructor({ trackGPU: e = !1, trackCPT: t = !1, trackHz: n = !1, trackFPS: r = !0, logsPerSecond: i = 4, graphsPerSecond: a = 30, samplesLog: o = 40, samplesGraph: s = 10, precision: c = 2, maxTimestampPairs: l = 2048 } = {}) {
1205
+ this.gl = null, this.ext = null, this.gpuDevice = null, this.gpuBackend = null, this.renderer = null, this.activeQuery = null, this.gpuQueries = [], this.threeRendererPatched = !1, this.maxTimestampPairs = 2048, this.webgpuNative = !1, this.gpuQuerySet = null, this.gpuResolveBuffer = null, this.gpuTimestampBufferSize = 0, this.frameCursor = 0, this.slotTypes = [], this.readBufferPool = [], this.inFlightFrames = [], this.poolWarnThreshold = 8, this.warnedMapError = !1, this.warnedSlotOverflow = !1, this.warnedPoolGrowth = !1, this.frameTimes = [], this.frameTimesHead = 0, this.renderCount = 0, this.cpuStartTime = 0, this.isRunningCPUProfiling = !1, this.totalCpuDuration = 0, this.totalGpuDuration = 0, this.totalGpuDurationCompute = 0, this.averageFps = {
1206
+ logs: [],
1207
+ graph: []
1208
+ }, this.averageCpu = {
1209
+ logs: [],
1210
+ graph: []
1211
+ }, this.averageGpu = {
1212
+ logs: [],
1213
+ graph: []
1214
+ }, this.averageGpuCompute = {
1215
+ logs: [],
1216
+ graph: []
1217
+ }, this.trackGPU = e, this.trackCPT = t, this.trackHz = n, this.trackFPS = r, this.samplesLog = o, this.samplesGraph = s, this.precision = c, this.logsPerSecond = i, this.graphsPerSecond = a, this.maxTimestampPairs = Math.max(1, l);
1218
+ let u = performance.now();
1219
+ this.prevGraphTime = u, this.beginTime = u, this.prevTextTime = u, this.prevCpuTime = u;
1220
+ }
1221
+ async init(e) {
1222
+ if (!e) {
1223
+ console.error("Stats: The \"canvas\" parameter is undefined.");
1224
+ return;
1225
+ }
1226
+ if (!this.handleThreeRenderer(e) && !await this.handleWebGPURenderer(e) && !this.handleNativeWebGPU(e)) if (this.initializeWebGL(e)) {
1227
+ this.trackGPU && this.initializeGPUTracking();
1228
+ return;
1229
+ } else console.error("Stats-gl: Failed to initialize WebGL context");
1230
+ }
1231
+ handleNativeWebGPU(e) {
1232
+ var t;
1233
+ return e && typeof e.createCommandEncoder == "function" && typeof e.createQuerySet == "function" && e.queue ? (this.gpuDevice = e, this.webgpuNative = !0, this.trackGPU && (t = e.features) != null && t.has("timestamp-query") && (this.initializeWebGPUTiming(), this.onWebGPUTimestampSupported()), !0) : !1;
1234
+ }
1235
+ initializeWebGPUTiming() {
1236
+ if (!this.gpuDevice) return;
1237
+ let e = this.maxTimestampPairs * 2;
1238
+ this.gpuTimestampBufferSize = e * 8, this.gpuQuerySet = this.gpuDevice.createQuerySet({
1239
+ type: "timestamp",
1240
+ count: e
1241
+ }), this.gpuResolveBuffer = this.gpuDevice.createBuffer({
1242
+ size: this.gpuTimestampBufferSize,
1243
+ usage: GPUBufferUsage.QUERY_RESOLVE | GPUBufferUsage.COPY_SRC
1244
+ });
1245
+ }
1246
+ acquireReadBuffer() {
1247
+ if (!this.gpuDevice) return null;
1248
+ let e = this.readBufferPool.pop();
1249
+ if (e) return e;
1250
+ let t = this.inFlightFrames.length + this.readBufferPool.length + 1;
1251
+ return t > this.poolWarnThreshold && !this.warnedPoolGrowth && (console.warn(`stats-gl: WebGPU timestamp readback pool grew to ${t} buffers — is update() being called every frame after queue.submit?`), this.warnedPoolGrowth = !0), this.gpuDevice.createBuffer({
1252
+ size: this.gpuTimestampBufferSize,
1253
+ usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ
1254
+ });
1255
+ }
1256
+ handleThreeRenderer(e) {
1257
+ return e.isWebGLRenderer && !this.threeRendererPatched ? (this.patchThreeRenderer(e), this.gl = e.getContext(), this.trackGPU && this.initializeGPUTracking(), !0) : !1;
1258
+ }
1259
+ async handleWebGPURenderer(e) {
1260
+ var t;
1261
+ return e.isWebGPURenderer ? (this.renderer = e, (this.trackGPU || this.trackCPT) && (e.backend.trackTimestamp = !0, e._initialized || await e.init(), e.hasFeature("timestamp-query") && this.onWebGPUTimestampSupported()), this.info = e.info, this.gpuBackend = e.backend, this.gpuDevice = ((t = e.backend) == null ? void 0 : t.device) || null, this.patchThreeWebGPU(e), !0) : !1;
1262
+ }
1263
+ onWebGPUTimestampSupported() {}
1264
+ initializeWebGL(e) {
1265
+ if (e instanceof WebGL2RenderingContext) this.gl = e;
1266
+ else if (e instanceof HTMLCanvasElement || e instanceof OffscreenCanvas) {
1267
+ if (this.gl = e.getContext("webgl2"), !this.gl) return console.error("Stats: Unable to obtain WebGL2 context."), !1;
1268
+ } else return console.error("Stats: Invalid input type. Expected WebGL2RenderingContext, HTMLCanvasElement, or OffscreenCanvas."), !1;
1269
+ return !0;
1270
+ }
1271
+ initializeGPUTracking() {
1272
+ this.gl && (this.ext = this.gl.getExtension("EXT_disjoint_timer_query_webgl2"), this.ext && this.onGPUTrackingInitialized());
1273
+ }
1274
+ onGPUTrackingInitialized() {}
1275
+ getTimestampWrites(e = "render") {
1276
+ if (!this.webgpuNative || !this.gpuQuerySet) return;
1277
+ if (this.frameCursor >= this.maxTimestampPairs) {
1278
+ this.warnedSlotOverflow || (console.warn(`stats-gl: WebGPU timestamp pair budget exhausted (maxTimestampPairs=${this.maxTimestampPairs}). Increase maxTimestampPairs in StatsOptions to instrument more passes.`), this.warnedSlotOverflow = !0);
1279
+ return;
1280
+ }
1281
+ let t = this.frameCursor++;
1282
+ return this.slotTypes[t] = e, {
1283
+ querySet: this.gpuQuerySet,
1284
+ beginningOfPassWriteIndex: t * 2,
1285
+ endOfPassWriteIndex: t * 2 + 1
1286
+ };
1287
+ }
1288
+ begin(e) {
1289
+ if (this.beginProfiling(), this.webgpuNative) {
1290
+ this.frameCursor = 0, this.slotTypes.length = 0;
1291
+ return;
1292
+ }
1293
+ !this.gl || !this.ext || (this.activeQuery && this.gl.endQuery(this.ext.TIME_ELAPSED_EXT), this.activeQuery = this.gl.createQuery(), this.activeQuery && this.gl.beginQuery(this.ext.TIME_ELAPSED_EXT, this.activeQuery));
1294
+ }
1295
+ end(e) {
1296
+ if (this.renderCount++, this.webgpuNative && e && this.gpuQuerySet && this.gpuResolveBuffer) {
1297
+ let t = this.frameCursor;
1298
+ if (t > 0) {
1299
+ let n = t * 2, r = n * 8;
1300
+ e.resolveQuerySet(this.gpuQuerySet, 0, n, this.gpuResolveBuffer, 0);
1301
+ let i = this.acquireReadBuffer();
1302
+ i && (e.copyBufferToBuffer(this.gpuResolveBuffer, 0, i, 0, r), this.inFlightFrames.push({
1303
+ buffer: i,
1304
+ pairCount: t,
1305
+ slotTypes: this.slotTypes.slice(0, t),
1306
+ mapPromise: null,
1307
+ ready: !1,
1308
+ error: null
1309
+ }));
1310
+ }
1311
+ this.endProfiling();
1312
+ return;
1313
+ }
1314
+ this.gl && this.ext && this.activeQuery && (this.gl.endQuery(this.ext.TIME_ELAPSED_EXT), this.gpuQueries.push({ query: this.activeQuery }), this.activeQuery = null), this.endProfiling();
1315
+ }
1316
+ async resolveTimestampsAsync() {
1317
+ if (!this.webgpuNative) return this.totalGpuDuration;
1318
+ for (let e of this.inFlightFrames) e.mapPromise === null && (e.mapPromise = e.buffer.mapAsync(GPUMapMode.READ).then(() => {
1319
+ e.ready = !0;
1320
+ }, (t) => {
1321
+ e.error = t, e.ready = !0;
1322
+ }));
1323
+ for (; this.inFlightFrames.length > 0 && this.inFlightFrames[0].ready;) {
1324
+ let e = this.inFlightFrames.shift();
1325
+ if (e.error) {
1326
+ this.warnedMapError || (console.warn("stats-gl: WebGPU timestamp mapAsync failed", e.error), this.warnedMapError = !0), this.totalGpuDuration = 0, this.totalGpuDurationCompute = 0, this.readBufferPool.push(e.buffer);
1327
+ continue;
1328
+ }
1329
+ let t = new BigUint64Array(e.buffer.getMappedRange()), n = 0, r = 0;
1330
+ for (let i = 0; i < e.pairCount; i++) {
1331
+ let a = t[i * 2], o = t[i * 2 + 1], s = o >= a ? Number(o - a) : 0;
1332
+ e.slotTypes[i] === "compute" ? r += s : n += s;
1333
+ }
1334
+ e.buffer.unmap(), this.readBufferPool.push(e.buffer), this.totalGpuDuration = n / 1e6, this.totalGpuDurationCompute = r / 1e6;
1335
+ }
1336
+ return this.totalGpuDuration;
1337
+ }
1338
+ processGpuQueries() {
1339
+ if (!(!this.gl || !this.ext)) {
1340
+ this.totalGpuDuration = 0;
1341
+ for (let e = this.gpuQueries.length - 1; e >= 0; e--) {
1342
+ let t = this.gpuQueries[e], n = this.gl.getQueryParameter(t.query, this.gl.QUERY_RESULT_AVAILABLE), r = this.gl.getParameter(this.ext.GPU_DISJOINT_EXT);
1343
+ if (n && !r) {
1344
+ let n = this.gl.getQueryParameter(t.query, this.gl.QUERY_RESULT) * 1e-6;
1345
+ this.totalGpuDuration += n, this.gl.deleteQuery(t.query), this.gpuQueries.splice(e, 1);
1346
+ }
1347
+ }
1348
+ }
1349
+ }
1350
+ processWebGPUTimestamps() {
1351
+ this.totalGpuDuration = this.info.render.timestamp, this.totalGpuDurationCompute = this.info.compute.timestamp;
1352
+ }
1353
+ beginProfiling() {
1354
+ this.cpuStartTime = performance.now(), this.isRunningCPUProfiling = !0;
1355
+ }
1356
+ endProfiling() {
1357
+ this.isRunningCPUProfiling && (this.totalCpuDuration += performance.now() - this.cpuStartTime, this.isRunningCPUProfiling = !1);
1358
+ }
1359
+ calculateFps() {
1360
+ let e = performance.now(), t = e - 1e3;
1361
+ for (this.frameTimes.push(e); this.frameTimesHead < this.frameTimes.length && this.frameTimes[this.frameTimesHead] <= t;) this.frameTimesHead++;
1362
+ return this.frameTimesHead > 128 && (this.frameTimes = this.frameTimes.slice(this.frameTimesHead), this.frameTimesHead = 0), Math.round(this.frameTimes.length - this.frameTimesHead);
1363
+ }
1364
+ updateAverages() {
1365
+ this.addToAverage(this.totalCpuDuration, this.averageCpu), this.addToAverage(this.totalGpuDuration, this.averageGpu), (this.info || this.webgpuNative) && this.totalGpuDurationCompute !== void 0 && this.addToAverage(this.totalGpuDurationCompute, this.averageGpuCompute);
1366
+ }
1367
+ addToAverage(e, t) {
1368
+ for (t.logs.push(e); t.logs.length > this.samplesLog;) t.logs.shift();
1369
+ for (t.graph.push(e); t.graph.length > this.samplesGraph;) t.graph.shift();
1370
+ }
1371
+ resetCounters() {
1372
+ this.renderCount = 0, this.totalCpuDuration = 0, this.beginTime = performance.now();
1373
+ }
1374
+ getData() {
1375
+ let e = this.averageFps.logs, t = this.averageCpu.logs, n = this.averageGpu.logs, r = this.averageGpuCompute.logs;
1376
+ return {
1377
+ fps: e.length > 0 ? e[e.length - 1] : 0,
1378
+ cpu: t.length > 0 ? t[t.length - 1] : 0,
1379
+ gpu: n.length > 0 ? n[n.length - 1] : 0,
1380
+ gpuCompute: r.length > 0 ? r[r.length - 1] : 0
1381
+ };
1382
+ }
1383
+ patchThreeWebGPU(e) {
1384
+ let t = e.info.reset, n = this;
1385
+ e.info.reset = function() {
1386
+ n.beginProfiling(), t.call(this);
1387
+ };
1388
+ }
1389
+ patchThreeRenderer(e) {
1390
+ let t = e.render, n = this;
1391
+ e.render = function(e, r) {
1392
+ n.begin(), t.call(this, e, r), n.end();
1393
+ }, this.threeRendererPatched = !0;
1394
+ }
1395
+ dispose() {
1396
+ if (this.gl) {
1397
+ if (this.activeQuery && this.ext) {
1398
+ try {
1399
+ this.gl.endQuery(this.ext.TIME_ELAPSED_EXT);
1400
+ } catch {}
1401
+ this.gl.deleteQuery(this.activeQuery), this.activeQuery = null;
1402
+ }
1403
+ for (let e of this.gpuQueries) this.gl.deleteQuery(e.query);
1404
+ this.gpuQueries.length = 0;
1405
+ }
1406
+ this.gpuQuerySet && (this.gpuQuerySet.destroy(), this.gpuQuerySet = null), this.gpuResolveBuffer && (this.gpuResolveBuffer.destroy(), this.gpuResolveBuffer = null);
1407
+ for (let e of this.inFlightFrames) {
1408
+ try {
1409
+ e.buffer.mapState === "mapped" && e.buffer.unmap();
1410
+ } catch {}
1411
+ e.buffer.destroy();
1412
+ }
1413
+ this.inFlightFrames.length = 0;
1414
+ for (let e of this.readBufferPool) e.destroy();
1415
+ this.readBufferPool.length = 0, this.frameCursor = 0, this.slotTypes.length = 0, this.gpuTimestampBufferSize = 0, this.warnedMapError = !1, this.warnedSlotOverflow = !1, this.warnedPoolGrowth = !1, this.webgpuNative = !1, this.gl = null, this.ext = null, this.info = void 0, this.gpuDevice = null, this.gpuBackend = null, this.renderer = null, this.frameTimes.length = 0, this.frameTimesHead = 0, this.averageFps.logs.length = 0, this.averageFps.graph.length = 0, this.averageCpu.logs.length = 0, this.averageCpu.graph.length = 0, this.averageGpu.logs.length = 0, this.averageGpu.graph.length = 0, this.averageGpuCompute.logs.length = 0, this.averageGpuCompute.graph.length = 0;
1416
+ }
1417
+ }, H = class {
1418
+ constructor(e, t, n) {
1419
+ this.id = 0, this.name = e, this.fg = t, this.bg = n, this.gradient = null, this.PR = Math.round(typeof window < "u" && window.devicePixelRatio || 1), this.WIDTH = 90 * this.PR, this.HEIGHT = 48 * this.PR, this.TEXT_X = 3 * this.PR, this.TEXT_Y = 2 * this.PR, this.GRAPH_X = 3 * this.PR, this.GRAPH_Y = 15 * this.PR, this.GRAPH_WIDTH = 84 * this.PR, this.GRAPH_HEIGHT = 30 * this.PR, this.canvas = typeof document < "u" ? document.createElement("canvas") : new OffscreenCanvas(this.WIDTH, this.HEIGHT), this.canvas.width = this.WIDTH, this.canvas.height = this.HEIGHT, this.canvas.style.width = "90px", this.canvas.style.height = "48px", this.canvas.style.position = "absolute", this.canvas.style.cssText = "width:90px;height:48px;background-color: transparent !important;", this.context = this.canvas.getContext("2d"), this.initializeCanvas();
1420
+ }
1421
+ createGradient() {
1422
+ if (!this.context) throw Error("No context");
1423
+ let e = this.context.createLinearGradient(0, this.GRAPH_Y, 0, this.GRAPH_Y + this.GRAPH_HEIGHT), t, n = this.fg;
1424
+ switch (this.fg.toLowerCase()) {
1425
+ case "#0ff":
1426
+ t = "#006666";
1427
+ break;
1428
+ case "#0f0":
1429
+ t = "#006600";
1430
+ break;
1431
+ case "#ff0":
1432
+ t = "#666600";
1433
+ break;
1434
+ case "#e1e1e1":
1435
+ t = "#666666";
1436
+ break;
1437
+ default:
1438
+ t = this.bg;
1439
+ break;
1440
+ }
1441
+ return e.addColorStop(0, t), e.addColorStop(1, n), e;
1442
+ }
1443
+ initializeCanvas() {
1444
+ this.context && (this.context.imageSmoothingEnabled = !1, this.context.font = "bold " + 9 * this.PR + "px Helvetica,Arial,sans-serif", this.context.textBaseline = "top", this.gradient = this.createGradient(), this.context.fillStyle = this.bg, this.context.fillRect(0, 0, this.WIDTH, this.HEIGHT), this.context.fillStyle = this.fg, this.context.fillText(this.name, this.TEXT_X, this.TEXT_Y), this.context.fillStyle = this.bg, this.context.globalAlpha = .9, this.context.fillRect(this.GRAPH_X, this.GRAPH_Y, this.GRAPH_WIDTH, this.GRAPH_HEIGHT));
1445
+ }
1446
+ update(e, t, n = 0, r = "") {
1447
+ if (!this.context || !this.gradient) return;
1448
+ let i = Math.min(Infinity, e), a = Math.max(t, e);
1449
+ this.context.globalAlpha = 1, this.context.fillStyle = this.bg, this.context.fillRect(0, 0, this.WIDTH, this.GRAPH_Y);
1450
+ let o = `${e.toFixed(n)} ${this.name}`;
1451
+ this.context.fillStyle = this.fg, this.context.fillText(o, this.TEXT_X, this.TEXT_Y);
1452
+ let s = this.TEXT_X + this.context.measureText(o).width;
1453
+ r && (this.context.fillStyle = "#f90", this.context.fillText(r, s, this.TEXT_Y), s += this.context.measureText(r).width), this.context.fillStyle = this.fg, this.context.fillText(` (${i.toFixed(n)}-${parseFloat(a.toFixed(n))})`, s, this.TEXT_Y);
1454
+ }
1455
+ updateGraph(e, t) {
1456
+ if (!this.context || !this.gradient) return;
1457
+ e === 0 && t === 0 && (t = 1), t = Math.max(t, e, .1), e = Math.max(e, 0);
1458
+ let n = Math.round(this.GRAPH_X), r = Math.round(this.GRAPH_Y), i = Math.round(this.GRAPH_WIDTH), a = Math.round(this.GRAPH_HEIGHT), o = Math.round(this.PR);
1459
+ this.context.drawImage(this.canvas, n + o, r, i - o, a, n, r, i - o, a), this.context.fillStyle = this.bg, this.context.fillRect(n + i - o, r, o, a);
1460
+ let s = Math.min(a, Math.round(e / t * a));
1461
+ s > 0 && (this.context.globalAlpha = .9, this.context.fillStyle = this.gradient, this.context.fillRect(n + i - o, r + (a - s), o, s)), this.context.globalAlpha = 1;
1462
+ }
1463
+ }, U = class extends H {
1464
+ constructor(e, t, n) {
1465
+ super(e, t, n), this.vsyncValue = 0, this.SMALL_HEIGHT = 9 * this.PR, this.HEIGHT = this.SMALL_HEIGHT, this.WIDTH = 35 * this.PR, this.TEXT_Y = 0 * this.PR, this.canvas.height = this.HEIGHT, this.canvas.width = this.WIDTH, this.canvas.style.height = "9px", this.canvas.style.width = "35px", this.canvas.style.cssText = "\n width: 35px;\n height: 9px;\n position: absolute;\n top: 0;\n left: 0;\n background-color: transparent !important;\n pointer-events: none;\n ", this.initializeCanvas();
1466
+ }
1467
+ initializeCanvas() {
1468
+ this.context && (this.context.imageSmoothingEnabled = !1, this.context.font = "bold " + 9 * this.PR + "px Helvetica,Arial,sans-serif", this.context.textBaseline = "top", this.context.globalAlpha = 1);
1469
+ }
1470
+ update(e, t, n = 0) {
1471
+ this.context && (this.vsyncValue = e, this.context.clearRect(0, 0, this.WIDTH, this.HEIGHT), this.context.globalAlpha = 1, this.context.fillStyle = this.bg, this.context.fillText(`${e.toFixed(0)}Hz`, this.TEXT_X, this.TEXT_Y));
1472
+ }
1473
+ updateGraph(e, t) {}
1474
+ setOffset(e, t) {
1475
+ this.canvas.style.transform = `translate(${e}px, ${t}px)`;
1476
+ }
1477
+ }, W = class extends H {
1478
+ constructor(e) {
1479
+ super(e, "#fff", "#111"), this.currentBitmap = null, this.sourceAspect = 1, this.initializeCanvas();
1480
+ }
1481
+ initializeCanvas() {
1482
+ this.context && (this.context.imageSmoothingEnabled = !0, this.context.font = "bold " + 9 * this.PR + "px Helvetica,Arial,sans-serif", this.context.textBaseline = "top", this.context.fillStyle = "#000", this.context.fillRect(0, 0, this.WIDTH, this.HEIGHT), this.drawLabelOverlay());
1483
+ }
1484
+ drawLabelOverlay() {
1485
+ this.context && (this.context.fillStyle = "rgba(0, 0, 0, 0.5)", this.context.fillRect(0, 0, this.WIDTH, this.GRAPH_Y), this.context.fillStyle = this.fg, this.context.fillText(this.name, this.TEXT_X, this.TEXT_Y));
1486
+ }
1487
+ setSourceSize(e, t) {
1488
+ this.sourceAspect = e / t;
1489
+ }
1490
+ updateTexture(e) {
1491
+ if (!this.context) return;
1492
+ this.currentBitmap && this.currentBitmap.close(), this.currentBitmap = e, this.context.fillStyle = "#000", this.context.fillRect(0, 0, this.WIDTH, this.HEIGHT);
1493
+ let t = this.WIDTH / this.HEIGHT, n, r, i, a;
1494
+ this.sourceAspect > t ? (n = this.WIDTH, r = this.WIDTH / this.sourceAspect, i = 0, a = (this.HEIGHT - r) / 2) : (r = this.HEIGHT, n = this.HEIGHT * this.sourceAspect, i = (this.WIDTH - n) / 2, a = 0), this.context.drawImage(e, i, a, n, r), this.drawLabelOverlay();
1495
+ }
1496
+ setLabel(e) {
1497
+ this.name = e, this.drawLabelOverlay();
1498
+ }
1499
+ update(e, t, n = 0, r = "") {}
1500
+ updateGraph(e, t) {}
1501
+ dispose() {
1502
+ this.currentBitmap && (this.currentBitmap.close(), this.currentBitmap = null);
1503
+ }
1504
+ }, G = class {
1505
+ constructor(e, t = 90, n = 48) {
1506
+ this.previewFbo = null, this.previewTexture = null, this.gl = e, this.previewWidth = t, this.previewHeight = n, this.pixels = new Uint8Array(t * n * 4), this.flippedPixels = new Uint8Array(t * n * 4), this.initResources();
1507
+ }
1508
+ resize(e, t) {
1509
+ e === this.previewWidth && t === this.previewHeight || (this.previewWidth = e, this.previewHeight = t, this.pixels = new Uint8Array(e * t * 4), this.flippedPixels = new Uint8Array(e * t * 4), this.dispose(), this.initResources());
1510
+ }
1511
+ initResources() {
1512
+ let e = this.gl;
1513
+ this.previewTexture = e.createTexture(), e.bindTexture(e.TEXTURE_2D, this.previewTexture), e.texImage2D(e.TEXTURE_2D, 0, e.RGBA8, this.previewWidth, this.previewHeight, 0, e.RGBA, e.UNSIGNED_BYTE, null), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, e.LINEAR), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, e.LINEAR), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, e.CLAMP_TO_EDGE), this.previewFbo = e.createFramebuffer(), e.bindFramebuffer(e.FRAMEBUFFER, this.previewFbo), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.previewTexture, 0), e.bindFramebuffer(e.FRAMEBUFFER, null), e.bindTexture(e.TEXTURE_2D, null);
1514
+ }
1515
+ async capture(e, t, n, r = "default") {
1516
+ let i = this.gl, a = i.getParameter(i.READ_FRAMEBUFFER_BINDING), o = i.getParameter(i.DRAW_FRAMEBUFFER_BINDING);
1517
+ i.bindFramebuffer(i.READ_FRAMEBUFFER, e), i.bindFramebuffer(i.DRAW_FRAMEBUFFER, this.previewFbo), i.blitFramebuffer(0, 0, t, n, 0, 0, this.previewWidth, this.previewHeight, i.COLOR_BUFFER_BIT, i.LINEAR), i.bindFramebuffer(i.READ_FRAMEBUFFER, this.previewFbo), i.readPixels(0, 0, this.previewWidth, this.previewHeight, i.RGBA, i.UNSIGNED_BYTE, this.pixels), i.bindFramebuffer(i.READ_FRAMEBUFFER, a), i.bindFramebuffer(i.DRAW_FRAMEBUFFER, o);
1518
+ let s = this.flipY(this.pixels, this.previewWidth, this.previewHeight), c = new ImageData(new Uint8ClampedArray(s), this.previewWidth, this.previewHeight);
1519
+ return createImageBitmap(c);
1520
+ }
1521
+ flipY(e, t, n) {
1522
+ let r = t * 4;
1523
+ for (let t = 0; t < n; t++) {
1524
+ let i = t * r, a = (n - 1 - t) * r;
1525
+ this.flippedPixels.set(e.subarray(i, i + r), a);
1526
+ }
1527
+ return this.flippedPixels;
1528
+ }
1529
+ removeSource(e) {}
1530
+ dispose() {
1531
+ let e = this.gl;
1532
+ this.previewFbo && (e.deleteFramebuffer(this.previewFbo), this.previewFbo = null), this.previewTexture && (e.deleteTexture(this.previewTexture), this.previewTexture = null);
1533
+ }
1534
+ }, K = class {
1535
+ constructor(e, t = 90, n = 48) {
1536
+ this.previewTexture = null, this.stagingBuffer = null, this.blitPipeline = null, this.sampler = null, this.bindGroupLayout = null, this.initialized = !1, this.device = e, this.previewWidth = t, this.previewHeight = n, this.pixelsBuffer = new Uint8ClampedArray(t * n * 4);
1537
+ }
1538
+ resize(e, t) {
1539
+ e === this.previewWidth && t === this.previewHeight || (this.previewWidth = e, this.previewHeight = t, this.pixelsBuffer = new Uint8ClampedArray(e * t * 4), this.previewTexture && this.previewTexture.destroy(), this.stagingBuffer && this.stagingBuffer.destroy(), this.previewTexture = null, this.stagingBuffer = null, this.initialized && this.createSizeResources());
1540
+ }
1541
+ createSizeResources() {
1542
+ let e = this.device;
1543
+ this.previewTexture = e.createTexture({
1544
+ size: {
1545
+ width: this.previewWidth,
1546
+ height: this.previewHeight
1547
+ },
1548
+ format: "rgba8unorm",
1549
+ usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC
1550
+ });
1551
+ let t = Math.ceil(this.previewWidth * 4 / 256) * 256;
1552
+ this.stagingBuffer = e.createBuffer({
1553
+ size: t * this.previewHeight,
1554
+ usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ
1555
+ });
1556
+ }
1557
+ async initResources() {
1558
+ if (this.initialized) return;
1559
+ let e = this.device;
1560
+ this.createSizeResources(), this.sampler = e.createSampler({
1561
+ minFilter: "linear",
1562
+ magFilter: "linear"
1563
+ });
1564
+ let t = e.createShaderModule({ code: "\n @group(0) @binding(0) var texSampler: sampler;\n @group(0) @binding(1) var texInput: texture_2d<f32>;\n\n struct VertexOutput {\n @builtin(position) position: vec4f,\n @location(0) uv: vec2f\n }\n\n @vertex\n fn vertexMain(@builtin(vertex_index) vertexIndex: u32) -> VertexOutput {\n var positions = array<vec2f, 3>(\n vec2f(-1.0, -1.0),\n vec2f(3.0, -1.0),\n vec2f(-1.0, 3.0)\n );\n var uvs = array<vec2f, 3>(\n vec2f(0.0, 1.0),\n vec2f(2.0, 1.0),\n vec2f(0.0, -1.0)\n );\n\n var output: VertexOutput;\n output.position = vec4f(positions[vertexIndex], 0.0, 1.0);\n output.uv = uvs[vertexIndex];\n return output;\n }\n\n @fragment\n fn fragmentMain(@location(0) uv: vec2f) -> @location(0) vec4f {\n return textureSample(texInput, texSampler, uv);\n }\n " });
1565
+ this.bindGroupLayout = e.createBindGroupLayout({ entries: [{
1566
+ binding: 0,
1567
+ visibility: GPUShaderStage.FRAGMENT,
1568
+ sampler: { type: "filtering" }
1569
+ }, {
1570
+ binding: 1,
1571
+ visibility: GPUShaderStage.FRAGMENT,
1572
+ texture: { sampleType: "float" }
1573
+ }] }), this.blitPipeline = e.createRenderPipeline({
1574
+ layout: e.createPipelineLayout({ bindGroupLayouts: [this.bindGroupLayout] }),
1575
+ vertex: {
1576
+ module: t,
1577
+ entryPoint: "vertexMain"
1578
+ },
1579
+ fragment: {
1580
+ module: t,
1581
+ entryPoint: "fragmentMain",
1582
+ targets: [{ format: "rgba8unorm" }]
1583
+ },
1584
+ primitive: { topology: "triangle-list" }
1585
+ }), this.initialized = !0;
1586
+ }
1587
+ async capture(e) {
1588
+ if (await this.initResources(), !this.previewTexture || !this.stagingBuffer || !this.blitPipeline || !this.sampler || !this.bindGroupLayout) return null;
1589
+ let t = this.device, n = t.createBindGroup({
1590
+ layout: this.bindGroupLayout,
1591
+ entries: [{
1592
+ binding: 0,
1593
+ resource: this.sampler
1594
+ }, {
1595
+ binding: 1,
1596
+ resource: e.createView()
1597
+ }]
1598
+ }), r = t.createCommandEncoder(), i = r.beginRenderPass({ colorAttachments: [{
1599
+ view: this.previewTexture.createView(),
1600
+ loadOp: "clear",
1601
+ storeOp: "store",
1602
+ clearValue: {
1603
+ r: 0,
1604
+ g: 0,
1605
+ b: 0,
1606
+ a: 1
1607
+ }
1608
+ }] });
1609
+ i.setPipeline(this.blitPipeline), i.setBindGroup(0, n), i.draw(3), i.end();
1610
+ let a = Math.ceil(this.previewWidth * 4 / 256) * 256;
1611
+ r.copyTextureToBuffer({ texture: this.previewTexture }, {
1612
+ buffer: this.stagingBuffer,
1613
+ bytesPerRow: a
1614
+ }, {
1615
+ width: this.previewWidth,
1616
+ height: this.previewHeight
1617
+ }), t.queue.submit([r.finish()]), await this.stagingBuffer.mapAsync(GPUMapMode.READ);
1618
+ let o = new Uint8Array(this.stagingBuffer.getMappedRange());
1619
+ for (let e = 0; e < this.previewHeight; e++) {
1620
+ let t = e * a, n = e * this.previewWidth * 4;
1621
+ this.pixelsBuffer.set(o.subarray(t, t + this.previewWidth * 4), n);
1622
+ }
1623
+ this.stagingBuffer.unmap();
1624
+ let s = new ImageData(new Uint8ClampedArray(this.pixelsBuffer), this.previewWidth, this.previewHeight);
1625
+ return createImageBitmap(s);
1626
+ }
1627
+ dispose() {
1628
+ this.previewTexture && this.previewTexture.destroy(), this.stagingBuffer && this.stagingBuffer.destroy(), this.previewTexture = null, this.stagingBuffer = null, this.blitPipeline = null, this.sampler = null, this.bindGroupLayout = null, this.initialized = !1;
1629
+ }
1630
+ };
1631
+ function q(e, t) {
1632
+ return e.isWebGLRenderTarget && e.__webglFramebuffer ? {
1633
+ framebuffer: e.__webglFramebuffer,
1634
+ width: e.width || 1,
1635
+ height: e.height || 1
1636
+ } : null;
1637
+ }
1638
+ function J(e, t) {
1639
+ if (e.isRenderTarget && e.texture && t.get) {
1640
+ let n = t.get(e.texture);
1641
+ return (n == null ? void 0 : n.texture) || null;
1642
+ }
1643
+ return null;
1644
+ }
1645
+ //#endregion
1646
+ //#region ../../node_modules/.pnpm/stats-gl@4.2.3_three@0.185.1/node_modules/stats-gl/dist/main.js
1647
+ var Y = class e extends V {
1648
+ constructor({ trackGPU: t = !1, trackCPT: n = !1, trackHz: r = !1, trackFPS: i = !0, logsPerSecond: a = 4, graphsPerSecond: o = 30, samplesLog: s = 40, samplesGraph: c = 10, precision: l = 2, minimal: u = !1, horizontal: d = !0, mode: f = 0 } = {}) {
1649
+ super({
1650
+ trackGPU: t,
1651
+ trackCPT: n,
1652
+ trackHz: r,
1653
+ trackFPS: i,
1654
+ logsPerSecond: a,
1655
+ graphsPerSecond: o,
1656
+ samplesLog: s,
1657
+ samplesGraph: c,
1658
+ precision: l
1659
+ }), this.fpsPanel = null, this.msPanel = null, this.gpuPanel = null, this.gpuPanelCompute = null, this.vsyncPanel = null, this.workerCpuPanel = null, this.texturePanels = /* @__PURE__ */ new Map(), this.texturePanelRow = null, this.textureCaptureWebGL = null, this.textureCaptureWebGPU = null, this.textureSourcesWebGL = /* @__PURE__ */ new Map(), this.textureSourcesWebGPU = /* @__PURE__ */ new Map(), this.texturePreviewWidth = 90, this.texturePreviewHeight = 48, this.lastRendererWidth = 0, this.lastRendererHeight = 0, this.textureUpdatePending = !1, this.updateCounter = 0, this.lastMin = {}, this.lastMax = {}, this.lastValue = {}, this.VSYNC_RATES = [
1660
+ {
1661
+ refreshRate: 60,
1662
+ frameTime: 16.67
1663
+ },
1664
+ {
1665
+ refreshRate: 75,
1666
+ frameTime: 13.33
1667
+ },
1668
+ {
1669
+ refreshRate: 90,
1670
+ frameTime: 11.11
1671
+ },
1672
+ {
1673
+ refreshRate: 120,
1674
+ frameTime: 8.33
1675
+ },
1676
+ {
1677
+ refreshRate: 144,
1678
+ frameTime: 6.94
1679
+ },
1680
+ {
1681
+ refreshRate: 165,
1682
+ frameTime: 6.06
1683
+ },
1684
+ {
1685
+ refreshRate: 240,
1686
+ frameTime: 4.17
1687
+ }
1688
+ ], this.detectedVSync = null, this.frameTimeHistory = [], this.HISTORY_SIZE = 120, this.VSYNC_THRESHOLD = .05, this.lastFrameTime = 0, this.externalData = null, this.hasNewExternalData = !1, this.isWorker = !1, this.averageWorkerCpu = {
1689
+ logs: [],
1690
+ graph: []
1691
+ }, this.handleClick = (e) => {
1692
+ e.preventDefault(), this.showPanel(++this.mode % this.dom.children.length);
1693
+ }, this.handleResize = () => {
1694
+ this.fpsPanel && this.resizePanel(this.fpsPanel), this.msPanel && this.resizePanel(this.msPanel), this.workerCpuPanel && this.resizePanel(this.workerCpuPanel), this.gpuPanel && this.resizePanel(this.gpuPanel), this.gpuPanelCompute && this.resizePanel(this.gpuPanelCompute);
1695
+ }, this.mode = f, this.horizontal = d, this.minimal = u, this.dom = document.createElement("div"), this.initializeDOM(), this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new e.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new e.Panel("CPU", "#0f0", "#020"))), this.trackGPU && (this.gpuPanel = this.addPanel(new e.Panel("GPU", "#ff0", "#220"))), this.trackCPT && (this.gpuPanelCompute = this.addPanel(new e.Panel("CPT", "#e1e1e1", "#212121"))), this.trackHz === !0 && (this.vsyncPanel = new U("", "#f0f", "#202"), this.dom.appendChild(this.vsyncPanel.canvas), this.vsyncPanel.setOffset(56, 35)), this.setupEventListeners();
1696
+ }
1697
+ initializeDOM() {
1698
+ this.dom.style.cssText = `
1699
+ position: fixed;
1700
+ top: 0;
1701
+ left: 0;
1702
+ opacity: 0.9;
1703
+ z-index: 10000;
1704
+ ${this.minimal ? "cursor: pointer;" : ""}
1705
+ `;
1706
+ }
1707
+ setupEventListeners() {
1708
+ this.minimal ? (this.dom.addEventListener("click", this.handleClick), this.showPanel(this.mode)) : window.addEventListener("resize", this.handleResize);
1709
+ }
1710
+ updateTexturePreviewDimensions() {
1711
+ var e, t;
1712
+ if (!this.renderer) return;
1713
+ let n = ((e = this.renderer.domElement) == null ? void 0 : e.width) || 0, r = ((t = this.renderer.domElement) == null ? void 0 : t.height) || 0;
1714
+ if (n === this.lastRendererWidth && r === this.lastRendererHeight || n === 0 || r === 0) return;
1715
+ this.lastRendererWidth = n, this.lastRendererHeight = r;
1716
+ let i = n / r, a, o;
1717
+ if (i > 1.875 ? (a = 90, o = Math.round(90 / i)) : (o = 48, a = Math.round(48 * i)), a = Math.max(a, 16), o = Math.max(o, 16), a !== this.texturePreviewWidth || o !== this.texturePreviewHeight) {
1718
+ this.texturePreviewWidth = a, this.texturePreviewHeight = o, this.textureCaptureWebGL && this.textureCaptureWebGL.resize(a, o), this.textureCaptureWebGPU && this.textureCaptureWebGPU.resize(a, o);
1719
+ for (let e of this.texturePanels.values()) e.setSourceSize(n, r);
1720
+ }
1721
+ }
1722
+ onWebGPUTimestampSupported() {}
1723
+ onGPUTrackingInitialized() {}
1724
+ setData(t) {
1725
+ if (this.externalData = t, this.hasNewExternalData = !0, !this.isWorker && this.msPanel) {
1726
+ this.isWorker = !0, this.workerCpuPanel = new e.Panel("WRK", "#f90", "#220");
1727
+ let t = this.msPanel.id + 1;
1728
+ this.workerCpuPanel.id = t, this.gpuPanel && this.gpuPanel.id >= t && (this.gpuPanel.id++, this.resizePanel(this.gpuPanel)), this.gpuPanelCompute && this.gpuPanelCompute.id >= t && (this.gpuPanelCompute.id++, this.resizePanel(this.gpuPanelCompute));
1729
+ let n = this.msPanel.canvas;
1730
+ n.nextSibling ? this.dom.insertBefore(this.workerCpuPanel.canvas, n.nextSibling) : this.dom.appendChild(this.workerCpuPanel.canvas), this.resizePanel(this.workerCpuPanel), this._panelId++;
1731
+ }
1732
+ }
1733
+ update() {
1734
+ this.externalData ? this.updateFromExternalData() : this.updateFromInternalData();
1735
+ }
1736
+ updateFromExternalData() {
1737
+ let e = this.externalData;
1738
+ this.endProfiling(), this.addToAverage(this.totalCpuDuration, this.averageCpu), this.totalCpuDuration = 0, this.hasNewExternalData && (this.addToAverage(e.cpu, this.averageWorkerCpu), this.addToAverage(e.fps, this.averageFps), this.addToAverage(e.gpu, this.averageGpu), this.addToAverage(e.gpuCompute, this.averageGpuCompute), this.hasNewExternalData = !1), this.renderPanels();
1739
+ }
1740
+ updateFromInternalData() {
1741
+ this.endProfiling(), this.webgpuNative ? this.resolveTimestampsAsync() : this.info ? this.processWebGPUTimestamps() : this.processGpuQueries(), this.updateAverages(), this.resetCounters(), this.renderPanels();
1742
+ }
1743
+ renderPanels() {
1744
+ var e;
1745
+ let t = performance.now();
1746
+ if (!this.isWorker) {
1747
+ for (this.frameTimes.push(t); this.frameTimes.length > 0 && this.frameTimes[0] <= t - 1e3;) this.frameTimes.shift();
1748
+ let e = Math.round(this.frameTimes.length);
1749
+ this.addToAverage(e, this.averageFps);
1750
+ }
1751
+ let n = t >= this.prevTextTime + 1e3 / this.logsPerSecond, r = t >= this.prevGraphTime + 1e3 / this.graphsPerSecond, i = this.isWorker ? " ⛭" : "";
1752
+ if (this.updatePanelComponents(this.fpsPanel, this.averageFps, 0, n, r, i), this.updatePanelComponents(this.msPanel, this.averageCpu, this.precision, n, r, ""), this.workerCpuPanel && this.isWorker && this.updatePanelComponents(this.workerCpuPanel, this.averageWorkerCpu, this.precision, n, r, " ⛭"), this.gpuPanel && this.updatePanelComponents(this.gpuPanel, this.averageGpu, this.precision, n, r, i), this.trackCPT && this.gpuPanelCompute && this.updatePanelComponents(this.gpuPanelCompute, this.averageGpuCompute, this.precision, n, r, i), n && (this.prevTextTime = t), r && (this.prevGraphTime = t, this.texturePanels.size > 0 && !this.textureUpdatePending && (this.textureUpdatePending = !0, this.updateTexturePanels().finally(() => {
1753
+ this.textureUpdatePending = !1;
1754
+ })), this.captureStatsGLNodes()), this.vsyncPanel !== null) {
1755
+ this.detectVSync(t);
1756
+ let r = ((e = this.detectedVSync) == null ? void 0 : e.refreshRate) || 0;
1757
+ n && r > 0 && this.vsyncPanel.update(r, r);
1758
+ }
1759
+ }
1760
+ resetCounters() {
1761
+ this.renderCount = 0, this.totalCpuDuration = 0, this.beginTime = performance.now();
1762
+ }
1763
+ resizePanel(e) {
1764
+ e.canvas.style.position = "absolute", this.minimal ? e.canvas.style.display = "none" : (e.canvas.style.display = "block", this.horizontal ? (e.canvas.style.top = "0px", e.canvas.style.left = e.id * e.WIDTH / e.PR + "px") : (e.canvas.style.left = "0px", e.canvas.style.top = e.id * e.HEIGHT / e.PR + "px"));
1765
+ }
1766
+ addPanel(e) {
1767
+ return e.canvas && (this.dom.appendChild(e.canvas), e.id = this._panelId, this.resizePanel(e), this._panelId++), e;
1768
+ }
1769
+ showPanel(e) {
1770
+ for (let t = 0; t < this.dom.children.length; t++) {
1771
+ let n = this.dom.children[t];
1772
+ n.style.display = t === e ? "block" : "none";
1773
+ }
1774
+ this.mode = e;
1775
+ }
1776
+ addTexturePanel(e) {
1777
+ this.texturePanelRow || (this.texturePanelRow = document.createElement("div"), this.texturePanelRow.style.cssText = "\n position: absolute;\n top: 48px;\n left: 0;\n display: flex;\n flex-direction: row;\n ", this.dom.appendChild(this.texturePanelRow));
1778
+ let t = new W(e);
1779
+ return t.canvas.style.position = "relative", t.canvas.style.left = "", t.canvas.style.top = "", this.texturePanelRow.appendChild(t.canvas), this.texturePanels.set(e, t), t;
1780
+ }
1781
+ setTexture(e, t) {
1782
+ this.updateTexturePreviewDimensions(), this.gl && !this.textureCaptureWebGL && (this.textureCaptureWebGL = new G(this.gl, this.texturePreviewWidth, this.texturePreviewHeight)), this.gpuDevice && !this.textureCaptureWebGPU && (this.textureCaptureWebGPU = new K(this.gpuDevice, this.texturePreviewWidth, this.texturePreviewHeight));
1783
+ let n = this.texturePanels.get(e);
1784
+ if (t.isWebGLRenderTarget && this.gl) {
1785
+ let r = q(t, this.gl);
1786
+ r && (this.textureSourcesWebGL.set(e, {
1787
+ target: t,
1788
+ ...r
1789
+ }), n && n.setSourceSize(r.width, r.height));
1790
+ return;
1791
+ }
1792
+ if (t.isRenderTarget && this.gpuBackend) {
1793
+ let r = J(t, this.gpuBackend);
1794
+ r && (this.textureSourcesWebGPU.set(e, r), n && t.width && t.height && n.setSourceSize(t.width, t.height));
1795
+ return;
1796
+ }
1797
+ if (t && typeof t.createView == "function") {
1798
+ this.textureSourcesWebGPU.set(e, t);
1799
+ return;
1800
+ }
1801
+ }
1802
+ setTextureWebGL(e, t, n, r) {
1803
+ this.updateTexturePreviewDimensions(), this.gl && !this.textureCaptureWebGL && (this.textureCaptureWebGL = new G(this.gl, this.texturePreviewWidth, this.texturePreviewHeight)), this.textureSourcesWebGL.set(e, {
1804
+ target: { isWebGLRenderTarget: !0 },
1805
+ framebuffer: t,
1806
+ width: n,
1807
+ height: r
1808
+ });
1809
+ let i = this.texturePanels.get(e);
1810
+ i && i.setSourceSize(n, r);
1811
+ }
1812
+ setTextureBitmap(e, t, n, r) {
1813
+ let i = this.texturePanels.get(e);
1814
+ i && (n !== void 0 && r !== void 0 && i.setSourceSize(n, r), i.updateTexture(t));
1815
+ }
1816
+ removeTexturePanel(e) {
1817
+ let t = this.texturePanels.get(e);
1818
+ t && (t.dispose(), t.canvas.remove(), this.texturePanels.delete(e), this.textureSourcesWebGL.delete(e), this.textureSourcesWebGPU.delete(e));
1819
+ }
1820
+ async updateTexturePanels() {
1821
+ if (this.updateTexturePreviewDimensions(), this.textureCaptureWebGL) for (let [e, t] of this.textureSourcesWebGL) {
1822
+ let n = this.texturePanels.get(e);
1823
+ if (n) {
1824
+ let r = t.framebuffer, i = t.width, a = t.height;
1825
+ t.target.isWebGLRenderTarget && t.target.__webglFramebuffer && (r = t.target.__webglFramebuffer, i = t.target.width || i, a = t.target.height || a);
1826
+ let o = await this.textureCaptureWebGL.capture(r, i, a, e);
1827
+ o && n.updateTexture(o);
1828
+ }
1829
+ }
1830
+ if (this.textureCaptureWebGPU) for (let [e, t] of this.textureSourcesWebGPU) {
1831
+ let n = this.texturePanels.get(e);
1832
+ if (n) {
1833
+ let e = await this.textureCaptureWebGPU.capture(t);
1834
+ e && n.updateTexture(e);
1835
+ }
1836
+ }
1837
+ }
1838
+ captureStatsGLNodes() {
1839
+ let e = this._statsGLCaptures;
1840
+ if (!(!e || e.size === 0 || !this.renderer)) for (let t of e.values()) t.capture && t.capture(this.renderer);
1841
+ }
1842
+ detectVSync(e) {
1843
+ if (this.lastFrameTime === 0) {
1844
+ this.lastFrameTime = e;
1845
+ return;
1846
+ }
1847
+ let t = e - this.lastFrameTime;
1848
+ if (this.lastFrameTime = e, this.frameTimeHistory.push(t), this.frameTimeHistory.length > this.HISTORY_SIZE && this.frameTimeHistory.shift(), this.frameTimeHistory.length < 60) return;
1849
+ let n = this.frameTimeHistory.reduce((e, t) => e + t) / this.frameTimeHistory.length, r = this.frameTimeHistory.reduce((e, t) => e + (t - n) ** 2, 0) / this.frameTimeHistory.length;
1850
+ if (Math.sqrt(r) > 2) {
1851
+ this.detectedVSync = null;
1852
+ return;
1853
+ }
1854
+ let i = null, a = Infinity;
1855
+ for (let e of this.VSYNC_RATES) {
1856
+ let t = Math.abs(n - e.frameTime);
1857
+ t < a && (a = t, i = e);
1858
+ }
1859
+ i && a / i.frameTime <= this.VSYNC_THRESHOLD ? this.detectedVSync = i : this.detectedVSync = null;
1860
+ }
1861
+ updatePanelComponents(e, t, n, r, i, a = "") {
1862
+ if (!e || t.logs.length === 0) return;
1863
+ let o = String(e.id);
1864
+ o in this.lastMin || (this.lastMin[o] = Infinity, this.lastMax[o] = 0, this.lastValue[o] = 0);
1865
+ let s = t.logs[t.logs.length - 1];
1866
+ this.lastMax[o] = Math.max(...t.logs), this.lastMin[o] = Math.min(this.lastMin[o], s), this.lastValue[o] = this.lastValue[o] * .7 + s * .3;
1867
+ let c = Math.max(Math.max(...t.logs), ...t.graph.slice(-this.samplesGraph));
1868
+ this.updateCounter++, r && e.update(this.lastValue[o], this.lastMax[o], n, a), i && e.updateGraph(s, c);
1869
+ }
1870
+ updatePanel(e, t, n = 2) {
1871
+ if (!e || t.logs.length === 0) return;
1872
+ let r = performance.now();
1873
+ e.name in this.lastMin || (this.lastMin[e.name] = Infinity, this.lastMax[e.name] = 0, this.lastValue[e.name] = 0);
1874
+ let i = t.logs[t.logs.length - 1], a = Math.max(...t.logs.slice(-30));
1875
+ this.lastMin[e.name] = Math.min(this.lastMin[e.name], i), this.lastMax[e.name] = Math.max(this.lastMax[e.name], i), this.lastValue[e.name] = this.lastValue[e.name] * .7 + i * .3;
1876
+ let o = Math.max(a, ...t.graph.slice(-this.samplesGraph));
1877
+ this.updateCounter++, this.updateCounter % (this.logsPerSecond * 2) == 0 && (this.lastMax[e.name] = a, this.lastMin[e.name] = i), e.update && (r >= this.prevCpuTime + 1e3 / this.logsPerSecond && e.update(this.lastValue[e.name], i, this.lastMax[e.name], o, n), r >= this.prevGraphTime + 1e3 / this.graphsPerSecond && (e.updateGraph(i, o), this.prevGraphTime = r));
1878
+ }
1879
+ get domElement() {
1880
+ return this.dom;
1881
+ }
1882
+ dispose() {
1883
+ this.minimal ? this.dom.removeEventListener("click", this.handleClick) : window.removeEventListener("resize", this.handleResize), this.textureCaptureWebGL && (this.textureCaptureWebGL.dispose(), this.textureCaptureWebGL = null), this.textureCaptureWebGPU && (this.textureCaptureWebGPU.dispose(), this.textureCaptureWebGPU = null);
1884
+ for (let e of this.texturePanels.values()) e.dispose();
1885
+ this.texturePanels.clear(), this.textureSourcesWebGL.clear(), this.textureSourcesWebGPU.clear();
1886
+ let e = this._statsGLCaptures;
1887
+ if (e) {
1888
+ for (let t of e.values()) t.dispose && t.dispose();
1889
+ e.clear();
1890
+ }
1891
+ this.texturePanelRow && (this.texturePanelRow.remove(), this.texturePanelRow = null), this.dom.remove(), this.fpsPanel = null, this.msPanel = null, this.gpuPanel = null, this.gpuPanelCompute = null, this.vsyncPanel = null, this.workerCpuPanel = null, this.frameTimeHistory.length = 0, this.averageWorkerCpu.logs.length = 0, this.averageWorkerCpu.graph.length = 0, super.dispose();
1892
+ }
1893
+ };
1894
+ Y.Panel = H, Y.PanelTexture = W;
1895
+ var X = Y;
1896
+ //#endregion
1897
+ //#region ../renderer/src/debug/components/Stats.tsx
1898
+ function Z() {
1899
+ let e = (0, l.c)(3), t = a(Q), n, r;
1900
+ return e[0] === t ? (n = e[1], r = e[2]) : (n = () => {
1901
+ let e = new X({
1902
+ trackGPU: !0,
1903
+ trackHz: !0
1904
+ });
1905
+ e.init(t), document.body.appendChild(e.domElement);
1906
+ let n = o(() => e.update());
1907
+ return () => {
1908
+ e.dispose(), n();
1909
+ };
1910
+ }, r = [t], e[0] = t, e[1] = n, e[2] = r), (0, u.useEffect)(n, r), null;
1911
+ }
1912
+ function Q(e) {
1913
+ return e.gl;
1914
+ }
1915
+ //#endregion
1916
+ //#region ../renderer/src/debug/components/DebugTools.tsx
1917
+ function $(e) {
1918
+ let t = (0, l.c)(4), { children: n } = e, r, i;
1919
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, p.jsx)(Z, {}), i = /* @__PURE__ */ (0, p.jsx)(R, {}), t[0] = r, t[1] = i) : (r = t[0], i = t[1]);
1920
+ let a;
1921
+ return t[2] === n ? a = t[3] : (a = /* @__PURE__ */ (0, p.jsx)(F, { children: /* @__PURE__ */ (0, p.jsxs)(v, { children: [
1922
+ n,
1923
+ r,
1924
+ i
1925
+ ] }) }), t[2] = n, t[3] = a), a;
1926
+ }
1927
+ //#endregion
1928
+ export { $ as DebugTools };
1929
+
1930
+ ;/* vite-per-chunk-css */
1931
+ __vite_inject_css__("._info_hhyz2_1{color:#fff;white-space:pre;padding:.5em;font-family:monospace;line-height:1.5}._toggle_hhyz2_9{color:#ebebeb;cursor:pointer;background:#111;border:none;height:25px;padding:0 4px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:11px;font-weight:600;transition:background .2s}._toggle_hhyz2_9:hover{opacity:.85}._container_hhyz2_26{z-index:1;background:#1f1f1fa0;flex-direction:column-reverse;align-items:stretch;width:250px;display:flex;position:absolute;bottom:0}._left_hhyz2_40{left:0}._right_hhyz2_44{width:350px;right:0}\n/*$vite$:1*/", "DebugTools.css", true);