@expofp/floorplan 0.0.0-experimental.2d6c681

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 (1011) hide show
  1. package/README.md +8 -0
  2. package/dist/browser/Button-DT-Jfwrb.js +64 -0
  3. package/dist/browser/CookieConsent-BIsWzAiP.js +38 -0
  4. package/dist/browser/Debug-B5mmo0ZX.js +53 -0
  5. package/dist/browser/DebugTools-Y0aycjKM.js +1931 -0
  6. package/dist/browser/Demo-B2klxORi.js +71 -0
  7. package/dist/browser/Free-suULW-LU.js +69 -0
  8. package/dist/browser/GalleryContainer-BGBNGRKU.js +3355 -0
  9. package/dist/browser/GpsLoader-Idv0kq5D.js +154 -0
  10. package/dist/browser/KioskStore-Dg9jaX5d.js +250 -0
  11. package/dist/browser/LayerStore-CK6wLW56.js +24105 -0
  12. package/dist/browser/MaplibreAdapter-uZUhZfFW.js +36770 -0
  13. package/dist/browser/ModalContainer-DWm8vEaI.js +148 -0
  14. package/dist/browser/PermissionNotice-DaqnuHln.js +54 -0
  15. package/dist/browser/RouteStore-NE2I9tiF.js +3715 -0
  16. package/dist/browser/SetKioskMode-Dwlf5w7q.js +49 -0
  17. package/dist/browser/ShowKiosk-Cr-QmIUT.js +82 -0
  18. package/dist/browser/ViewerMenuPanel-CTAjGsq2.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-BjEhhgf2.js +7393 -0
  29. package/dist/browser/create-live-plan-BaEGBhGA.js +4046 -0
  30. package/dist/browser/debounce-raMZ2DqK.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-CGzIMplb.js +3282 -0
  49. package/dist/browser/floorplan.ready-r96zV9bP.js +1448 -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-BgFBhYOU.js +7205 -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-D45vYRsm.js +35 -0
  86. package/dist/browser/is-debug-BRHdrnKr.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-DtL28HMP.js +1865 -0
  90. package/dist/browser/jsx-runtime-DQgnuS-I.js +30 -0
  91. package/dist/browser/kiosk-mode-DfkGlDkT.js +28 -0
  92. package/dist/browser/kiosk-record-JAEq8SV6.js +18 -0
  93. package/dist/browser/kioskUrlParam-CnYhnC_7.js +141 -0
  94. package/dist/browser/lib--J2yQXt6.js +1910 -0
  95. package/dist/browser/loadImage-DzSnRAxX.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-BTqyv9Xe.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-BA3x-n4N.js +296 -0
  139. package/dist/browser/venues-DKpIy-87.js +447 -0
  140. package/dist/browser/viewport-B7plho3P.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 +1083 -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 +692 -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/sentry.d.ts +7 -0
  806. package/dist/esm/tools/sentry.js +166 -0
  807. package/dist/esm/tools/settings.d.ts +36 -0
  808. package/dist/esm/tools/settings.js +110 -0
  809. package/dist/esm/tools/slug.d.ts +2 -0
  810. package/dist/esm/tools/slug.js +27 -0
  811. package/dist/esm/tools/strip-html.d.ts +2 -0
  812. package/dist/esm/tools/strip-html.js +7 -0
  813. package/dist/esm/tools/style-registry.d.ts +28 -0
  814. package/dist/esm/tools/style-registry.js +46 -0
  815. package/dist/esm/tools/telemetry.d.ts +37 -0
  816. package/dist/esm/tools/telemetry.js +266 -0
  817. package/dist/esm/tools/track-event.d.ts +28 -0
  818. package/dist/esm/tools/track-event.js +196 -0
  819. package/dist/esm/tools/webgl-logger.d.ts +2 -0
  820. package/dist/esm/tools/webgl-logger.js +31 -0
  821. package/dist/esm/types/drawing.types.d.ts +18 -0
  822. package/dist/esm/types/drawing.types.js +1 -0
  823. package/dist/esm/types/sdk.types.d.ts +49 -0
  824. package/dist/esm/types/sdk.types.js +6 -0
  825. package/dist/esm/types.d.ts +593 -0
  826. package/dist/esm/types.js +1 -0
  827. package/dist/esm/utils/_OLD_gpu-info.d.ts +6 -0
  828. package/dist/esm/utils/_OLD_gpu-info.js +23 -0
  829. package/dist/esm/utils/_OLD_should-use-backdrop.d.ts +3 -0
  830. package/dist/esm/utils/_OLD_should-use-backdrop.js +4 -0
  831. package/dist/esm/utils/areLayersEnabled.d.ts +2 -0
  832. package/dist/esm/utils/areLayersEnabled.js +4 -0
  833. package/dist/esm/utils/blob-image-size.d.ts +27 -0
  834. package/dist/esm/utils/blob-image-size.js +37 -0
  835. package/dist/esm/utils/brand.d.ts +18 -0
  836. package/dist/esm/utils/brand.js +19 -0
  837. package/dist/esm/utils/browser.d.ts +4 -0
  838. package/dist/esm/utils/browser.js +4 -0
  839. package/dist/esm/utils/calcSpeed.d.ts +2 -0
  840. package/dist/esm/utils/calcSpeed.js +5 -0
  841. package/dist/esm/utils/calcTravelTime.d.ts +2 -0
  842. package/dist/esm/utils/calcTravelTime.js +3 -0
  843. package/dist/esm/utils/camera-map-settings.d.ts +26 -0
  844. package/dist/esm/utils/camera-map-settings.js +86 -0
  845. package/dist/esm/utils/color-gradient.d.ts +2 -0
  846. package/dist/esm/utils/color-gradient.js +14 -0
  847. package/dist/esm/utils/customCommands.d.ts +2 -0
  848. package/dist/esm/utils/customCommands.js +33 -0
  849. package/dist/esm/utils/detectLimitedModeViaImage.d.ts +2 -0
  850. package/dist/esm/utils/detectLimitedModeViaImage.js +33 -0
  851. package/dist/esm/utils/dimming.d.ts +27 -0
  852. package/dist/esm/utils/dimming.js +88 -0
  853. package/dist/esm/utils/entity-storage.d.ts +14 -0
  854. package/dist/esm/utils/entity-storage.js +122 -0
  855. package/dist/esm/utils/event-head.d.ts +38 -0
  856. package/dist/esm/utils/event-head.js +90 -0
  857. package/dist/esm/utils/event-now.d.ts +11 -0
  858. package/dist/esm/utils/event-now.js +40 -0
  859. package/dist/esm/utils/event-title.d.ts +19 -0
  860. package/dist/esm/utils/event-title.js +20 -0
  861. package/dist/esm/utils/eventFullBadge.d.ts +3 -0
  862. package/dist/esm/utils/eventFullBadge.js +7 -0
  863. package/dist/esm/utils/eventTime.d.ts +15 -0
  864. package/dist/esm/utils/eventTime.js +82 -0
  865. package/dist/esm/utils/extractMetaFromString.d.ts +5 -0
  866. package/dist/esm/utils/extractMetaFromString.js +16 -0
  867. package/dist/esm/utils/geo-anchors.d.ts +10 -0
  868. package/dist/esm/utils/geo-anchors.js +12 -0
  869. package/dist/esm/utils/geometry.d.ts +2 -0
  870. package/dist/esm/utils/geometry.js +12 -0
  871. package/dist/esm/utils/getContrastTextColor.d.ts +2 -0
  872. package/dist/esm/utils/getContrastTextColor.js +26 -0
  873. package/dist/esm/utils/getLogoUrl.d.ts +9 -0
  874. package/dist/esm/utils/getLogoUrl.js +26 -0
  875. package/dist/esm/utils/getMostFrequent.d.ts +2 -0
  876. package/dist/esm/utils/getMostFrequent.js +14 -0
  877. package/dist/esm/utils/getRenderTargetFromRoot.d.ts +2 -0
  878. package/dist/esm/utils/getRenderTargetFromRoot.js +19 -0
  879. package/dist/esm/utils/gps.d.ts +40 -0
  880. package/dist/esm/utils/gps.js +66 -0
  881. package/dist/esm/utils/heatmap-enabled.d.ts +13 -0
  882. package/dist/esm/utils/heatmap-enabled.js +13 -0
  883. package/dist/esm/utils/i18n.d.ts +18 -0
  884. package/dist/esm/utils/i18n.js +117 -0
  885. package/dist/esm/utils/index.d.ts +10 -0
  886. package/dist/esm/utils/index.js +60 -0
  887. package/dist/esm/utils/is-debug.d.ts +3 -0
  888. package/dist/esm/utils/is-debug.js +9 -0
  889. package/dist/esm/utils/is-from-designer.d.ts +3 -0
  890. package/dist/esm/utils/is-from-designer.js +4 -0
  891. package/dist/esm/utils/is-iframe.d.ts +3 -0
  892. package/dist/esm/utils/is-iframe.js +13 -0
  893. package/dist/esm/utils/is-localhost.d.ts +3 -0
  894. package/dist/esm/utils/is-localhost.js +11 -0
  895. package/dist/esm/utils/is-mac.d.ts +3 -0
  896. package/dist/esm/utils/is-mac.js +2 -0
  897. package/dist/esm/utils/is-mobile.d.ts +3 -0
  898. package/dist/esm/utils/is-mobile.js +2 -0
  899. package/dist/esm/utils/is-own-domain.d.ts +12 -0
  900. package/dist/esm/utils/is-own-domain.js +23 -0
  901. package/dist/esm/utils/is-pathway-layer.d.ts +2 -0
  902. package/dist/esm/utils/is-pathway-layer.js +4 -0
  903. package/dist/esm/utils/is-phone.d.ts +9 -0
  904. package/dist/esm/utils/is-phone.js +17 -0
  905. package/dist/esm/utils/is-scroll-ugly.d.ts +3 -0
  906. package/dist/esm/utils/is-scroll-ugly.js +13 -0
  907. package/dist/esm/utils/is-webview.d.ts +3 -0
  908. package/dist/esm/utils/is-webview.js +2 -0
  909. package/dist/esm/utils/isNumericLevel.d.ts +2 -0
  910. package/dist/esm/utils/isNumericLevel.js +3 -0
  911. package/dist/esm/utils/lazy-qr-code.d.ts +5 -0
  912. package/dist/esm/utils/lazy-qr-code.js +6 -0
  913. package/dist/esm/utils/legacy-storage-keys.d.ts +16 -0
  914. package/dist/esm/utils/legacy-storage-keys.js +38 -0
  915. package/dist/esm/utils/loadBlob.d.ts +16 -0
  916. package/dist/esm/utils/loadBlob.js +40 -0
  917. package/dist/esm/utils/loadCustomCss.d.ts +3 -0
  918. package/dist/esm/utils/loadCustomCss.js +19 -0
  919. package/dist/esm/utils/loadIcons.d.ts +3 -0
  920. package/dist/esm/utils/loadIcons.js +24 -0
  921. package/dist/esm/utils/loadImage.d.ts +2 -0
  922. package/dist/esm/utils/loadImage.js +11 -0
  923. package/dist/esm/utils/loadImagesInBatches.d.ts +22 -0
  924. package/dist/esm/utils/loadImagesInBatches.js +82 -0
  925. package/dist/esm/utils/loadLayerImages.d.ts +41 -0
  926. package/dist/esm/utils/loadLayerImages.js +107 -0
  927. package/dist/esm/utils/localStorage.d.ts +2 -0
  928. package/dist/esm/utils/localStorage.js +11 -0
  929. package/dist/esm/utils/lz-utils.d.ts +8 -0
  930. package/dist/esm/utils/lz-utils.js +16 -0
  931. package/dist/esm/utils/mapEntity.d.ts +3 -0
  932. package/dist/esm/utils/mapEntity.js +82 -0
  933. package/dist/esm/utils/math.d.ts +6 -0
  934. package/dist/esm/utils/math.js +7 -0
  935. package/dist/esm/utils/mobx.d.ts +35 -0
  936. package/dist/esm/utils/mobx.js +74 -0
  937. package/dist/esm/utils/outdoor-poi.d.ts +32 -0
  938. package/dist/esm/utils/outdoor-poi.js +28 -0
  939. package/dist/esm/utils/plan-reactions.d.ts +20 -0
  940. package/dist/esm/utils/plan-reactions.js +26 -0
  941. package/dist/esm/utils/planBearing.d.ts +14 -0
  942. package/dist/esm/utils/planBearing.js +15 -0
  943. package/dist/esm/utils/preview-exhibitor.d.ts +11 -0
  944. package/dist/esm/utils/preview-exhibitor.js +19 -0
  945. package/dist/esm/utils/rasterize-svg.d.ts +32 -0
  946. package/dist/esm/utils/rasterize-svg.js +78 -0
  947. package/dist/esm/utils/responsiveClass.d.ts +2 -0
  948. package/dist/esm/utils/responsiveClass.js +25 -0
  949. package/dist/esm/utils/rtl.d.ts +2 -0
  950. package/dist/esm/utils/rtl.js +4 -0
  951. package/dist/esm/utils/sanitizeHtml.d.ts +3 -0
  952. package/dist/esm/utils/sanitizeHtml.js +21 -0
  953. package/dist/esm/utils/sanitizeText.d.ts +9 -0
  954. package/dist/esm/utils/sanitizeText.js +19 -0
  955. package/dist/esm/utils/scene-bounds.d.ts +64 -0
  956. package/dist/esm/utils/scene-bounds.js +127 -0
  957. package/dist/esm/utils/shortenName.d.ts +2 -0
  958. package/dist/esm/utils/shortenName.js +19 -0
  959. package/dist/esm/utils/silence-mobx-react-lite-warning.d.ts +2 -0
  960. package/dist/esm/utils/silence-mobx-react-lite-warning.js +24 -0
  961. package/dist/esm/utils/strEqual.d.ts +2 -0
  962. package/dist/esm/utils/strEqual.js +3 -0
  963. package/dist/esm/utils/swappable-proxy.d.ts +28 -0
  964. package/dist/esm/utils/swappable-proxy.js +71 -0
  965. package/dist/esm/utils/trackingParams.d.ts +3 -0
  966. package/dist/esm/utils/trackingParams.js +24 -0
  967. package/dist/esm/utils/urlEncoding.d.ts +7 -0
  968. package/dist/esm/utils/urlEncoding.js +62 -0
  969. package/dist/esm/utils/use-shadow.d.ts +3 -0
  970. package/dist/esm/utils/use-shadow.js +10 -0
  971. package/dist/esm/utils/useHeatmapData.d.ts +10 -0
  972. package/dist/esm/utils/useHeatmapData.js +8 -0
  973. package/dist/esm/utils/useHeatmapOverlay.d.ts +9 -0
  974. package/dist/esm/utils/useHeatmapOverlay.js +56 -0
  975. package/dist/esm/utils/useRenderTarget.d.ts +2 -0
  976. package/dist/esm/utils/useRenderTarget.js +35 -0
  977. package/dist/esm/utils/yah_icon.d.ts +6 -0
  978. package/dist/esm/utils/yah_icon.js +457 -0
  979. package/dist/esm/wayfinding/adapters/arbitraryPoint.d.ts +32 -0
  980. package/dist/esm/wayfinding/adapters/arbitraryPoint.js +25 -0
  981. package/dist/esm/wayfinding/adapters/boothToEndpoint.d.ts +19 -0
  982. package/dist/esm/wayfinding/adapters/boothToEndpoint.js +32 -0
  983. package/dist/esm/wayfinding/adapters/campusEndpoints.d.ts +13 -0
  984. package/dist/esm/wayfinding/adapters/campusEndpoints.js +25 -0
  985. package/dist/esm/wayfinding/adapters/canvasIconProvider.d.ts +20 -0
  986. package/dist/esm/wayfinding/adapters/canvasIconProvider.js +73 -0
  987. package/dist/esm/wayfinding/adapters/floorContext.d.ts +20 -0
  988. package/dist/esm/wayfinding/adapters/floorContext.js +43 -0
  989. package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +49 -0
  990. package/dist/esm/wayfinding/adapters/graphDataSource.js +87 -0
  991. package/dist/esm/wayfinding/adapters/index.d.ts +10 -0
  992. package/dist/esm/wayfinding/adapters/index.js +8 -0
  993. package/dist/esm/wayfinding/adapters/kioskCanvas.d.ts +7 -0
  994. package/dist/esm/wayfinding/adapters/kioskCanvas.js +22 -0
  995. package/dist/esm/wayfinding/adapters/positionInput.d.ts +12 -0
  996. package/dist/esm/wayfinding/adapters/positionInput.js +16 -0
  997. package/dist/esm/wayfinding/bindMobxReactions.d.ts +28 -0
  998. package/dist/esm/wayfinding/bindMobxReactions.js +171 -0
  999. package/dist/esm/wayfinding/createWayfinding.d.ts +34 -0
  1000. package/dist/esm/wayfinding/createWayfinding.js +184 -0
  1001. package/dist/esm/wayfinding/handlers/kioskHandler.d.ts +26 -0
  1002. package/dist/esm/wayfinding/handlers/kioskHandler.js +52 -0
  1003. package/dist/esm/wayfinding/handlers/yahHandler.d.ts +21 -0
  1004. package/dist/esm/wayfinding/handlers/yahHandler.js +42 -0
  1005. package/dist/esm/wayfinding/index.d.ts +12 -0
  1006. package/dist/esm/wayfinding/index.js +9 -0
  1007. package/dist/esm/wayfinding/routeSteps.d.ts +15 -0
  1008. package/dist/esm/wayfinding/routeSteps.js +29 -0
  1009. package/dist/esm/wayfinding/storePorts.d.ts +67 -0
  1010. package/dist/esm/wayfinding/storePorts.js +1 -0
  1011. package/package.json +146 -0
@@ -0,0 +1,3715 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "3.45.6" };
5
+ var t = new e.Error().stack;
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "d7018609-2a9c-40a7-be0b-4fda0c1d25bb", e._sentryDebugIdIdentifier = "sentry-dbid-d7018609-2a9c-40a7-be0b-4fda0c1d25bb");
7
+ } catch {}
8
+ })();
9
+ import { r as e, t } from "./rolldown-runtime-DUb2xvRc.js";
10
+ import { At as n, Z as r, jt as i } from "./i18n-BgFBhYOU.js";
11
+ import { a, f as o, m as s, p as c, t as l } from "./is-debug-BRHdrnKr.js";
12
+ import { r as u } from "./loadImage-DzSnRAxX.js";
13
+ import { a as d, c as f, h as p, i as m, l as h, n as g } from "./mobx.module-BOCLFB5I.js";
14
+ import { $ as _, Bt as v, Cn as y, Dt as b, Kt as x, Ot as S, Qt as C, Sn as w, St as T, Tn as E, Tt as D, Ut as O, Vt as k, Xt as A, an as j, bn as ee, bt as te, dn as M, en as ne, kt as re, pn as N, pt as ie, qt as ae, r as oe, rn as se, rt as ce, un as le, vn as ue, vt as de, wn as fe, wt as pe, yn as P, yt as me, zt as he } from "./LayerStore-CK6wLW56.js";
15
+ import { a as ge, l as F, u as I } from "./store-q_CTsixH.js";
16
+ //#region ../geometry/src/lib/geo.ts
17
+ var _e = 6371e3;
18
+ function L(e, t) {
19
+ let n = w(e.lat), r = w(t.lat), i = w(t.lat - e.lat), a = w(t.lng - e.lng), o = Math.sin(i / 2) * Math.sin(i / 2) + Math.cos(n) * Math.cos(r) * Math.sin(a / 2) * Math.sin(a / 2);
20
+ return _e * (2 * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o)));
21
+ }
22
+ function ve(e, t) {
23
+ let n = w(e.lat), r = w(t.lat), i = w(t.lng - e.lng), a = Math.sin(i) * Math.cos(r), o = Math.cos(n) * Math.sin(r) - Math.sin(n) * Math.cos(r) * Math.cos(i);
24
+ return (E(Math.atan2(a, o)) + 360) % 360;
25
+ }
26
+ function ye(e, t, n) {
27
+ let r = t / _e, i = w(n), a = w(e.lat), o = w(e.lng), s = Math.asin(Math.sin(a) * Math.cos(r) + Math.cos(a) * Math.sin(r) * Math.cos(i)), c = o + Math.atan2(Math.sin(i) * Math.sin(r) * Math.cos(a), Math.cos(r) - Math.sin(a) * Math.sin(s));
28
+ return {
29
+ lat: E(s),
30
+ lng: E(fe(c))
31
+ };
32
+ }
33
+ function be(e, t, n) {
34
+ let r = Math.max(1, Math.floor(n)), i = w(e.lat), a = w(e.lng), o = w(t.lat), s = w(t.lng), c = L(e, t) / _e, l = Math.sin(c), u = [e];
35
+ for (let t = 1; t < r; t++) {
36
+ let n = t / r;
37
+ if (l === 0) {
38
+ u.push(e);
39
+ continue;
40
+ }
41
+ let d = Math.sin((1 - n) * c) / l, f = Math.sin(n * c) / l, p = d * Math.cos(i) * Math.cos(a) + f * Math.cos(o) * Math.cos(s), m = d * Math.cos(i) * Math.sin(a) + f * Math.cos(o) * Math.sin(s), h = d * Math.sin(i) + f * Math.sin(o);
42
+ u.push({
43
+ lat: E(Math.atan2(h, Math.sqrt(p * p + m * m))),
44
+ lng: E(Math.atan2(m, p))
45
+ });
46
+ }
47
+ return u.push(t), u;
48
+ }
49
+ function xe(e, t, n) {
50
+ let r = n.local.x - t.local.x, i = n.local.y - t.local.y, a = Math.sqrt(r * r + i * i), o = e.x - t.local.x, s = e.y - t.local.y, c = Math.sqrt(o * o + s * s), l = E(Math.atan2(i, r)), u = E(Math.atan2(s, o)) - l, d = (a === 0 ? 0 : c / a) * L(t.geo, n.geo), f = ve(t.geo, n.geo);
51
+ return ye(t.geo, d, f + u);
52
+ }
53
+ function Se(e, t, n) {
54
+ let r = L(t.geo, n.geo), i = ve(t.geo, n.geo), a = L(t.geo, e), o = ve(t.geo, e) - i, s = r === 0 ? 0 : a / r, c = n.local.x - t.local.x, l = n.local.y - t.local.y, u = Math.sqrt(c * c + l * l), d = Math.atan2(l, c), f = y(u * s, d + w(o));
55
+ return {
56
+ x: t.local.x + f.x,
57
+ y: t.local.y + f.y
58
+ };
59
+ }
60
+ //#endregion
61
+ //#region ../geometry/src/lib/line.ts
62
+ function Ce(e) {
63
+ return P(e.p0, e.p1);
64
+ }
65
+ function we(e, t) {
66
+ return ee(e.p0, e.p1, .5, t);
67
+ }
68
+ function Te(e, t) {
69
+ return Math.atan2(t.y - e.y, t.x - e.x);
70
+ }
71
+ function Ee(e, t, n) {
72
+ var r;
73
+ let i = e.p0.x, a = e.p0.y, o = e.p1.x, s = e.p1.y, c = t.x, l = t.y, u = o - i, d = s - a, f = u * u + d * d, p;
74
+ f === 0 ? p = 0 : (p = ((c - i) * u + (l - a) * d) / f, p = p < 0 ? 0 : p > 1 ? 1 : p);
75
+ let m = (n == null ? new ue() : n).set(i + u * p, a + d * p, (r = e.elevation) == null ? 0 : r), h = P({
76
+ x: c,
77
+ y: l
78
+ }, m);
79
+ return {
80
+ projected: m,
81
+ t: p,
82
+ distance: h
83
+ };
84
+ }
85
+ //#endregion
86
+ //#region src/components/Kiosk/SetKiosk/getName.ts
87
+ var De = () => se;
88
+ //#endregion
89
+ //#region src/data/fpGeo.ts
90
+ function Oe() {
91
+ return o().__fpGeo;
92
+ }
93
+ //#endregion
94
+ //#region ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
95
+ function ke() {
96
+ return ke = Object.assign ? Object.assign.bind() : function(e) {
97
+ for (var t = 1; t < arguments.length; t++) {
98
+ var n = arguments[t];
99
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
100
+ }
101
+ return e;
102
+ }, ke.apply(null, arguments);
103
+ }
104
+ //#endregion
105
+ //#region ../../node_modules/.pnpm/resolve-pathname@3.0.0/node_modules/resolve-pathname/esm/resolve-pathname.js
106
+ function Ae(e) {
107
+ return e.charAt(0) === "/";
108
+ }
109
+ function je(e, t) {
110
+ for (var n = t, r = n + 1, i = e.length; r < i; n += 1, r += 1) e[n] = e[r];
111
+ e.pop();
112
+ }
113
+ function Me(e, t) {
114
+ t === void 0 && (t = "");
115
+ var n = e && e.split("/") || [], r = t && t.split("/") || [], i = e && Ae(e), a = t && Ae(t), o = i || a;
116
+ if (e && Ae(e) ? r = n : n.length && (r.pop(), r = r.concat(n)), !r.length) return "/";
117
+ var s;
118
+ if (r.length) {
119
+ var c = r[r.length - 1];
120
+ s = c === "." || c === ".." || c === "";
121
+ } else s = !1;
122
+ for (var l = 0, u = r.length; u >= 0; u--) {
123
+ var d = r[u];
124
+ d === "." ? je(r, u) : d === ".." ? (je(r, u), l++) : l && (je(r, u), l--);
125
+ }
126
+ if (!o) for (; l--;) r.unshift("..");
127
+ o && r[0] !== "" && (!r[0] || !Ae(r[0])) && r.unshift("");
128
+ var f = r.join("/");
129
+ return s && f.substr(-1) !== "/" && (f += "/"), f;
130
+ }
131
+ //#endregion
132
+ //#region ../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js
133
+ var Ne = "Invariant failed";
134
+ function Pe(e, t) {
135
+ if (!e) throw Error(Ne);
136
+ }
137
+ //#endregion
138
+ //#region ../../node_modules/.pnpm/history@4.10.1/node_modules/history/esm/history.js
139
+ function Fe(e) {
140
+ return e.charAt(0) === "/" ? e : "/" + e;
141
+ }
142
+ function Ie(e, t) {
143
+ return e.toLowerCase().indexOf(t.toLowerCase()) === 0 && "/?#".indexOf(e.charAt(t.length)) !== -1;
144
+ }
145
+ function Le(e, t) {
146
+ return Ie(e, t) ? e.substr(t.length) : e;
147
+ }
148
+ function Re(e) {
149
+ return e.charAt(e.length - 1) === "/" ? e.slice(0, -1) : e;
150
+ }
151
+ function ze(e) {
152
+ var t = e || "/", n = "", r = "", i = t.indexOf("#");
153
+ i !== -1 && (r = t.substr(i), t = t.substr(0, i));
154
+ var a = t.indexOf("?");
155
+ return a !== -1 && (n = t.substr(a), t = t.substr(0, a)), {
156
+ pathname: t,
157
+ search: n === "?" ? "" : n,
158
+ hash: r === "#" ? "" : r
159
+ };
160
+ }
161
+ function Be(e) {
162
+ var t = e.pathname, n = e.search, r = e.hash, i = t || "/";
163
+ return n && n !== "?" && (i += n.charAt(0) === "?" ? n : "?" + n), r && r !== "#" && (i += r.charAt(0) === "#" ? r : "#" + r), i;
164
+ }
165
+ function Ve(e, t, n, r) {
166
+ var i;
167
+ typeof e == "string" ? (i = ze(e), i.state = t) : (i = ke({}, e), i.pathname === void 0 && (i.pathname = ""), i.search ? i.search.charAt(0) !== "?" && (i.search = "?" + i.search) : i.search = "", i.hash ? i.hash.charAt(0) !== "#" && (i.hash = "#" + i.hash) : i.hash = "", t !== void 0 && i.state === void 0 && (i.state = t));
168
+ try {
169
+ i.pathname = decodeURI(i.pathname);
170
+ } catch (e) {
171
+ throw e instanceof URIError ? URIError("Pathname \"" + i.pathname + "\" could not be decoded. This is likely caused by an invalid percent-encoding.") : e;
172
+ }
173
+ return n && (i.key = n), r ? i.pathname ? i.pathname.charAt(0) !== "/" && (i.pathname = Me(i.pathname, r.pathname)) : i.pathname = r.pathname : i.pathname || (i.pathname = "/"), i;
174
+ }
175
+ function He() {
176
+ var e = null;
177
+ function t(t) {
178
+ return e = t, function() {
179
+ e === t && (e = null);
180
+ };
181
+ }
182
+ function n(t, n, r, i) {
183
+ if (e != null) {
184
+ var a = typeof e == "function" ? e(t, n) : e;
185
+ typeof a == "string" ? typeof r == "function" ? r(a, i) : i(!0) : i(a !== !1);
186
+ } else i(!0);
187
+ }
188
+ var r = [];
189
+ function i(e) {
190
+ var t = !0;
191
+ function n() {
192
+ t && e.apply(void 0, arguments);
193
+ }
194
+ return r.push(n), function() {
195
+ t = !1, r = r.filter(function(e) {
196
+ return e !== n;
197
+ });
198
+ };
199
+ }
200
+ function a() {
201
+ var e = [...arguments];
202
+ r.forEach(function(t) {
203
+ return t.apply(void 0, e);
204
+ });
205
+ }
206
+ return {
207
+ setPrompt: t,
208
+ confirmTransitionTo: n,
209
+ appendListener: i,
210
+ notifyListeners: a
211
+ };
212
+ }
213
+ var Ue = !!(typeof window < "u" && window.document && window.document.createElement);
214
+ function We(e, t) {
215
+ t(window.confirm(e));
216
+ }
217
+ function Ge() {
218
+ var e = window.navigator.userAgent;
219
+ return (e.indexOf("Android 2.") !== -1 || e.indexOf("Android 4.0") !== -1) && e.indexOf("Mobile Safari") !== -1 && e.indexOf("Chrome") === -1 && e.indexOf("Windows Phone") === -1 ? !1 : window.history && "pushState" in window.history;
220
+ }
221
+ function Ke() {
222
+ return window.navigator.userAgent.indexOf("Trident") === -1;
223
+ }
224
+ function qe(e) {
225
+ return e.state === void 0 && navigator.userAgent.indexOf("CriOS") === -1;
226
+ }
227
+ var Je = "popstate", Ye = "hashchange";
228
+ function Xe() {
229
+ try {
230
+ return window.history.state || {};
231
+ } catch {
232
+ return {};
233
+ }
234
+ }
235
+ function Ze(e) {
236
+ e === void 0 && (e = {}), !Ue && Pe(!1);
237
+ var t = window.history, n = Ge(), r = !Ke(), i = e, a = i.forceRefresh, o = a !== void 0 && a, s = i.getUserConfirmation, c = s === void 0 ? We : s, l = i.keyLength, u = l === void 0 ? 6 : l, d = e.basename ? Re(Fe(e.basename)) : "";
238
+ function f(e) {
239
+ var t = e || {}, n = t.key, r = t.state, i = window.location, a = i.pathname, o = i.search, s = i.hash, c = a + o + s;
240
+ return d && (c = Le(c, d)), Ve(c, r, n);
241
+ }
242
+ function p() {
243
+ return Math.random().toString(36).substr(2, u);
244
+ }
245
+ var m = He();
246
+ function h(e) {
247
+ ke(M, e), M.length = t.length, m.notifyListeners(M.location, M.action);
248
+ }
249
+ function g(e) {
250
+ qe(e) || y(f(e.state));
251
+ }
252
+ function _() {
253
+ y(f(Xe()));
254
+ }
255
+ var v = !1;
256
+ function y(e) {
257
+ if (v) v = !1, h();
258
+ else {
259
+ var t = "POP";
260
+ m.confirmTransitionTo(e, t, c, function(n) {
261
+ n ? h({
262
+ action: t,
263
+ location: e
264
+ }) : b(e);
265
+ });
266
+ }
267
+ }
268
+ function b(e) {
269
+ var t = M.location, n = S.indexOf(t.key);
270
+ n === -1 && (n = 0);
271
+ var r = S.indexOf(e.key);
272
+ r === -1 && (r = 0);
273
+ var i = n - r;
274
+ i && (v = !0, E(i));
275
+ }
276
+ var x = f(Xe()), S = [x.key];
277
+ function C(e) {
278
+ return d + Be(e);
279
+ }
280
+ function w(e, r) {
281
+ var i = "PUSH", a = Ve(e, r, p(), M.location);
282
+ m.confirmTransitionTo(a, i, c, function(e) {
283
+ if (e) {
284
+ var r = C(a), s = a.key, c = a.state;
285
+ if (n) if (t.pushState({
286
+ key: s,
287
+ state: c
288
+ }, null, r), o) window.location.href = r;
289
+ else {
290
+ var l = S.indexOf(M.location.key), u = S.slice(0, l + 1);
291
+ u.push(a.key), S = u, h({
292
+ action: i,
293
+ location: a
294
+ });
295
+ }
296
+ else window.location.href = r;
297
+ }
298
+ });
299
+ }
300
+ function T(e, r) {
301
+ var i = "REPLACE", a = Ve(e, r, p(), M.location);
302
+ m.confirmTransitionTo(a, i, c, function(e) {
303
+ if (e) {
304
+ var r = C(a), s = a.key, c = a.state;
305
+ if (n) if (t.replaceState({
306
+ key: s,
307
+ state: c
308
+ }, null, r), o) window.location.replace(r);
309
+ else {
310
+ var l = S.indexOf(M.location.key);
311
+ l !== -1 && (S[l] = a.key), h({
312
+ action: i,
313
+ location: a
314
+ });
315
+ }
316
+ else window.location.replace(r);
317
+ }
318
+ });
319
+ }
320
+ function E(e) {
321
+ t.go(e);
322
+ }
323
+ function D() {
324
+ E(-1);
325
+ }
326
+ function O() {
327
+ E(1);
328
+ }
329
+ var k = 0;
330
+ function A(e) {
331
+ k += e, k === 1 && e === 1 ? (window.addEventListener(Je, g), r && window.addEventListener(Ye, _)) : k === 0 && (window.removeEventListener(Je, g), r && window.removeEventListener(Ye, _));
332
+ }
333
+ var j = !1;
334
+ function ee(e) {
335
+ e === void 0 && (e = !1);
336
+ var t = m.setPrompt(e);
337
+ return j || (A(1), j = !0), function() {
338
+ return j && (j = !1, A(-1)), t();
339
+ };
340
+ }
341
+ function te(e) {
342
+ var t = m.appendListener(e);
343
+ return A(1), function() {
344
+ A(-1), t();
345
+ };
346
+ }
347
+ var M = {
348
+ length: t.length,
349
+ action: "POP",
350
+ location: x,
351
+ createHref: C,
352
+ push: w,
353
+ replace: T,
354
+ go: E,
355
+ goBack: D,
356
+ goForward: O,
357
+ block: ee,
358
+ listen: te
359
+ };
360
+ return M;
361
+ }
362
+ //#endregion
363
+ //#region src/services/url-sync.ts
364
+ var R = Ze();
365
+ function Qe() {
366
+ return window.location.pathname;
367
+ }
368
+ var $e = u(() => []), et = "", z = !1, tt = !1, nt = 0, rt = () => void 0, it;
369
+ function at() {
370
+ return $e();
371
+ }
372
+ function ot(e) {
373
+ if (!et) return Qe() + e;
374
+ let t = r(e).search, n = t === "?" ? "" : t;
375
+ return Qe() + (n ? `${n}&${et}` : `?${et}`);
376
+ }
377
+ function st() {
378
+ return r(R.location.search).search;
379
+ }
380
+ function ct(e) {
381
+ !z && !tt && R.push(ot(e));
382
+ }
383
+ function lt(e) {
384
+ return z || tt ? !1 : (R.replace(ot(e)), !0);
385
+ }
386
+ function ut() {
387
+ a(ft), z = !0;
388
+ }
389
+ function dt(e) {
390
+ a(ft), z || (z = e.offHistory), rt = e.onNavigate, et = r(R.location.search).platform, z || $e().push(Qe() + R.location.search), it = R.listen((e, t) => {
391
+ if (pt(), z) return;
392
+ let n = $e(), r = Qe() + e.search;
393
+ n[n.length - 1] !== r && n.push(r), s.log("history", t, e), t === "POP" && rt();
394
+ });
395
+ }
396
+ function ft() {
397
+ z = !1, et = "", rt = () => void 0, $e().length = 0, pt(), it == null || it(), it = void 0;
398
+ }
399
+ function pt() {
400
+ tt = !1, window.clearTimeout(nt);
401
+ }
402
+ function mt() {
403
+ tt = !0, window.clearTimeout(nt), nt = window.setTimeout(pt, 1e3), R.goBack();
404
+ }
405
+ //#endregion
406
+ //#region src/tools/telemetry.ts
407
+ var ht = "efp-telemetry", gt = 300 * 1e3, _t = 1e3, vt = 63e3;
408
+ function yt(e) {
409
+ return e ? `${ht}:${e}` : ht;
410
+ }
411
+ function bt(e = ht) {
412
+ return {
413
+ get() {
414
+ try {
415
+ let t = localStorage.getItem(e);
416
+ return t ? JSON.parse(t) : null;
417
+ } catch {
418
+ return null;
419
+ }
420
+ },
421
+ set(t) {
422
+ try {
423
+ localStorage.setItem(e, JSON.stringify(t));
424
+ } catch (e) {
425
+ console.error("Failed to persist telemetry data", e);
426
+ }
427
+ },
428
+ clear() {
429
+ try {
430
+ localStorage.removeItem(e);
431
+ } catch (e) {
432
+ console.error("Failed to clear telemetry data", e);
433
+ }
434
+ }
435
+ };
436
+ }
437
+ function xt(e, t) {
438
+ if (!t) return e;
439
+ let n = e.indexOf("#"), r = n === -1 ? e : e.slice(0, n), i = n === -1 ? "" : e.slice(n), a = "?";
440
+ return r.includes("?") && (a = r.endsWith("?") || r.endsWith("&") ? "" : "&"), `${r}${a}expo=${encodeURIComponent(t)}${i}`;
441
+ }
442
+ function St(e) {
443
+ let t = new TextEncoder(), n = [], r = t.encode(JSON.stringify({
444
+ ...e,
445
+ items: []
446
+ })).byteLength;
447
+ for (let i of e.items) {
448
+ let e = t.encode(JSON.stringify(i)).byteLength, a = n.length > 0 ? e + 1 : e;
449
+ if (n.length > 0 && r + a > vt) break;
450
+ r += a, n.push(i);
451
+ }
452
+ let i = n.length === e.items.length ? e : {
453
+ ...e,
454
+ items: n
455
+ };
456
+ return {
457
+ payload: i,
458
+ body: JSON.stringify(i),
459
+ bytes: r
460
+ };
461
+ }
462
+ function Ct(e) {
463
+ return e >= 400 && e < 500 && e !== 408 && e !== 429;
464
+ }
465
+ function wt(e) {
466
+ return e.length <= _t ? e : (console.warn(`Telemetry queue full: dropping ${e.length - _t} oldest events`), e.slice(-1e3));
467
+ }
468
+ function Tt(e) {
469
+ let t = e.headers.get("Retry-After");
470
+ if (!t) return 0;
471
+ let n = 0, r = Number(t);
472
+ if (Number.isFinite(r)) n = r * 1e3;
473
+ else {
474
+ let e = Date.parse(t);
475
+ isNaN(e) || (n = Math.max(0, e - Date.now()));
476
+ }
477
+ return Math.min(n, gt);
478
+ }
479
+ function Et(e) {
480
+ var t;
481
+ let { url: n, expo: r, expoId: i, storage: a = bt(yt(r)) } = e, o = xt(n, r), s = (t = e.kioskId) == null ? "" : t;
482
+ function c() {
483
+ let e = a.get();
484
+ return e ? (e.expo = r, e.expoId = i, e.kioskId = s, e) : {
485
+ expo: r,
486
+ expoId: i,
487
+ kioskId: s,
488
+ items: []
489
+ };
490
+ }
491
+ function l(e) {
492
+ s = e;
493
+ }
494
+ let u = !1, d = !1, f = 0;
495
+ async function p() {
496
+ if (u) {
497
+ d = !0;
498
+ return;
499
+ }
500
+ u = !0;
501
+ try {
502
+ do {
503
+ if (d = !1, performance.now() < f) break;
504
+ let e = null;
505
+ try {
506
+ let t = c().items.length;
507
+ for (; t > 0;) {
508
+ let n = c();
509
+ if (n.items.length === 0) break;
510
+ let { payload: r, body: i, bytes: a } = St(n), s = r.items.length;
511
+ m(n, n.items.slice(s)), e = r.items, t -= s;
512
+ let l = await fetch(o, {
513
+ method: "POST",
514
+ body: i,
515
+ headers: { "Content-Type": "application/json" },
516
+ credentials: "omit",
517
+ keepalive: a <= vt
518
+ });
519
+ if (await l.text().catch(() => void 0), e = null, !l.ok) {
520
+ if (Ct(l.status)) {
521
+ console.error(`Telemetry batch refused by the endpoint: HTTP ${l.status} (dropped: ${s})`);
522
+ continue;
523
+ }
524
+ if (l.status === 429 || l.status === 503) {
525
+ let e = Tt(l);
526
+ e > 0 && (f = performance.now() + e);
527
+ }
528
+ h(r.items), console.error(`Failed to send telemetry: HTTP ${l.status} (requeued: ${s})`);
529
+ break;
530
+ }
531
+ }
532
+ } catch (t) {
533
+ e && h(e), console.error("Failed to send telemetry", t);
534
+ }
535
+ } while (d);
536
+ } finally {
537
+ u = !1;
538
+ }
539
+ }
540
+ function m(e, t) {
541
+ t.length === 0 ? a.clear() : a.set({
542
+ ...e,
543
+ items: t
544
+ });
545
+ }
546
+ function h(e) {
547
+ if (e.length === 0) return;
548
+ let t = c();
549
+ m(t, wt([...e, ...t.items]));
550
+ }
551
+ function g(e) {
552
+ let t = c();
553
+ t.items.push(e), m(t, wt(t.items));
554
+ }
555
+ async function _(e) {
556
+ g(e), await p();
557
+ }
558
+ return {
559
+ enqueue: g,
560
+ send: _,
561
+ flush: p,
562
+ setKioskId: l
563
+ };
564
+ }
565
+ //#endregion
566
+ //#region src/tools/track-event.ts
567
+ var B, Dt;
568
+ function Ot() {
569
+ let e = window.__efpEvent;
570
+ if (B && Dt === e) return B;
571
+ B == null || B.flush();
572
+ let t;
573
+ try {
574
+ var n, r;
575
+ let e = new URL((n = (r = i()) == null ? void 0 : r.trackerUrl) == null ? "" : n).searchParams.get("expoId");
576
+ t = e ? Number(e) : void 0;
577
+ } catch (e) {
578
+ s.error(e);
579
+ }
580
+ return B = Et({
581
+ url: "https://app.expofp.com/api/telemetry",
582
+ expo: e,
583
+ expoId: t
584
+ }), Dt = e, a(Pt), B;
585
+ }
586
+ function kt(e, t, n) {
587
+ let r = at(), i = r[r.length - 2];
588
+ return {
589
+ type: e,
590
+ subtype: n,
591
+ value: t == null ? "" : String(t),
592
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
593
+ url: window.location.href,
594
+ referrer: i ? window.location.origin + i : ""
595
+ };
596
+ }
597
+ function At() {
598
+ var e;
599
+ return !!window.__efpEvent && !!((e = i()) != null && e.trackerUrl) && !I.heatmap;
600
+ }
601
+ async function V(e, t, n) {
602
+ if (s.log("trackEvent", e, t, n), At()) try {
603
+ var r;
604
+ let i = kt(e, t, n), a = ne(), o = null;
605
+ if (a ? o = await Mt(a) : localStorage.removeItem(j), !At()) return;
606
+ let s = Ot();
607
+ if (a && !o) {
608
+ s.enqueue(i);
609
+ return;
610
+ }
611
+ s.setKioskId((r = o) == null ? "" : r), Ft(s), await s.send(i);
612
+ } catch (e) {
613
+ s.error("trackEvent", String(e));
614
+ }
615
+ }
616
+ var jt;
617
+ async function Mt(e) {
618
+ if (!e) return null;
619
+ let t = localStorage.getItem(j);
620
+ if (t) return t;
621
+ if (!jt) {
622
+ let t = window.__efpEvent;
623
+ jt = k(e, "https://app.expofp.com/").then((e) => !e || window.__efpEvent !== t ? null : (localStorage.setItem(j, e), e)).finally(() => {
624
+ jt = void 0;
625
+ });
626
+ }
627
+ return jt;
628
+ }
629
+ var Nt = !1;
630
+ function Pt() {
631
+ B == null || B.flush(), B = void 0, Dt = void 0, Nt = !1;
632
+ }
633
+ function Ft(e) {
634
+ if (Nt) return;
635
+ Nt = !0;
636
+ let t = "efp-track-events";
637
+ try {
638
+ let r = localStorage.getItem(t);
639
+ if (!r) return;
640
+ let i = JSON.parse(r);
641
+ if (!Array.isArray(i)) {
642
+ localStorage.removeItem(t);
643
+ return;
644
+ }
645
+ for (let t of i) {
646
+ var n;
647
+ !t || typeof t != "object" || !t.headers || e.enqueue({
648
+ type: t.type,
649
+ value: t.value == null ? "" : String(t.value),
650
+ timestamp: t.timeStamp,
651
+ url: t.headers["X-href"],
652
+ referrer: (n = t.headers["X-ref"]) == null ? "" : n
653
+ });
654
+ }
655
+ localStorage.removeItem(t);
656
+ } catch (e) {
657
+ localStorage.removeItem(t), s.error("Failed to migrate old events.", String(e));
658
+ }
659
+ }
660
+ //#endregion
661
+ //#region src/tools/gtag.ts
662
+ var It = "G-78CKLYWFJK";
663
+ window.dataLayer = window.dataLayer || [];
664
+ function H(...e) {
665
+ var t, n;
666
+ ((n = (t = window).dataLayer) == null ? t.dataLayer = [] : n).push(arguments);
667
+ }
668
+ var U = /*#__PURE__*/ function(e) {
669
+ return e.Load = "Load floor plan", e.ViewBooth = "View booth", e.ViewExhibitor = "View exhibitor", e.ViewCategory = "View category", e.Search = "Search", e.ClickCustomButton = "Click custom button", e.ViewVideo = "View video", e.ViewGallery = "View gallery", e.ClickPhone = "Click phone", e.ClickEmail = "Click email", e.ClickWebsite = "Click website", e.ClickFacebook = "Click Facebook", e.ClickInstagaram = "Click Instagram", e.ClickLinkedin = "Click Linkedin", e.ClickTwitter = "Click Twitter", e.ClickGooglePlus = "Click Google Plus", e.ClickXing = "Click Xing", e.ClickYoutube = "Click Youtube", e.ClickBookmark = "Click bookmark", e.ClickDirections = "Click Directions", e.Rendered = "Floor plan rendered", e.WsExhibitorClick = "ws_exhibitor_click", e;
670
+ }({});
671
+ async function Lt() {
672
+ try {
673
+ let e = fetch("https://consent.expofp.com/api/verify-ip/is-in-gdpr"), t = new Promise((e) => {
674
+ setTimeout(() => {
675
+ e(null);
676
+ }, 5e3);
677
+ }), n = await Promise.race([e, t]);
678
+ return n instanceof Response && n.ok ? (await n.json()).result : null;
679
+ } catch (e) {
680
+ return console.error(e), null;
681
+ }
682
+ }
683
+ function Rt(e) {
684
+ if (e === "granted" || e === "denied") return e;
685
+ let t = document.cookie.split("; ").find((e) => e.startsWith("cookie_consent="));
686
+ if (t) return t === "cookie_consent=true" ? "granted" : "denied";
687
+ }
688
+ function zt(e) {
689
+ let t = 2592e3, n = l ? "localhost" : ".expofp.com";
690
+ document.cookie = `cookie_consent=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${n}`, document.cookie = "cookie_consent=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/", document.cookie = e ? `cookie_consent=${e}; max-age=${t}; domain=${n}; path=/` : `cookie_consent=${e}; max-age=${t}; path=/`;
691
+ }
692
+ function Bt() {
693
+ let e = document.cookie.split(";"), t = l ? "localhost" : ".expofp.com";
694
+ for (let n = 0; n < e.length; n++) {
695
+ let r = e[n], i = r.indexOf("="), a = i > -1 ? r.substr(0, i).trim() : r.trim();
696
+ a.startsWith("_ga") && (document.cookie = `${a}=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${t}`);
697
+ }
698
+ }
699
+ function Vt(e) {
700
+ let t = Rt(e);
701
+ t && (t === "denied" ? (Bt(), A.gtag && (window[`ga-disable-${A.gtag}`] = !0), window[`ga-disable-${It}`] = !0) : (A.gtag && (window[`ga-disable-${A.gtag}`] = !1), window[`ga-disable-${It}`] = !1), H("consent", "update", {
702
+ analytics_storage: t,
703
+ ad_personalization: t
704
+ }));
705
+ }
706
+ function Ht(e, t, n) {
707
+ switch (e) {
708
+ case U.ViewBooth:
709
+ H("event", "select_content", {
710
+ content_type: e,
711
+ content_id: t
712
+ }), V("booview", t);
713
+ break;
714
+ case U.ViewCategory:
715
+ H("event", "select_content", {
716
+ content_type: e,
717
+ content_id: t
718
+ }), V("catview", t);
719
+ break;
720
+ case U.ViewExhibitor:
721
+ case U.ViewGallery:
722
+ case U.ViewVideo:
723
+ H("event", "select_content", {
724
+ content_type: e,
725
+ content_id: t
726
+ });
727
+ break;
728
+ case U.Search:
729
+ H("event", "search", { search_term: t }), V("search", t);
730
+ break;
731
+ case U.ClickCustomButton:
732
+ case U.ClickPhone:
733
+ case U.ClickEmail:
734
+ case U.ClickWebsite:
735
+ case U.ClickFacebook:
736
+ case U.ClickInstagaram:
737
+ case U.ClickLinkedin:
738
+ case U.ClickTwitter:
739
+ case U.ClickGooglePlus:
740
+ case U.ClickXing:
741
+ case U.ClickYoutube:
742
+ H("event", "share", {
743
+ content_type: e,
744
+ content_id: t
745
+ }), V("share", t);
746
+ break;
747
+ case U.ClickBookmark:
748
+ H("event", "share", {
749
+ content_type: U.ClickCustomButton,
750
+ content_id: t
751
+ });
752
+ break;
753
+ case U.ClickDirections:
754
+ H("event", "route", {
755
+ content_type: e,
756
+ content_id: t
757
+ }), V("route", t);
758
+ break;
759
+ default: H("event", e, {
760
+ content_type: n,
761
+ content_id: t
762
+ });
763
+ }
764
+ }
765
+ function Ut(e, t) {
766
+ H("event", e, {
767
+ ...t,
768
+ fp_key: O.EXPO
769
+ });
770
+ }
771
+ function Wt(e) {
772
+ Ut(U.WsExhibitorClick, {
773
+ exhibitor_id: e.id,
774
+ exhibitor_name: e.name,
775
+ exhibitor_external_id: e.externalId,
776
+ creative_slot: "ws_slider"
777
+ }), V("ws_exhibitor_click", e.id);
778
+ }
779
+ window.gtag = H;
780
+ function Gt(e) {
781
+ let t = document.createElement("script");
782
+ t.type = "text/javascript", t.async = !0, t.src = `https://www.googletagmanager.com/gtag/js?id=${e}`;
783
+ let n = document.getElementsByTagName("script")[0];
784
+ return n != null && n.parentNode ? n.parentNode.insertBefore(t, n) : document.head.appendChild(t), t;
785
+ }
786
+ var Kt;
787
+ function qt() {
788
+ if (Kt || (Kt = Gt(It), H("js", /* @__PURE__ */ new Date())), A.gtag) {
789
+ let e = Gt(A.gtag);
790
+ H("config", A.gtag, { fp_key: O.EXPO }), a(() => e.remove());
791
+ }
792
+ H("config", It, { fp_key: O.EXPO });
793
+ }
794
+ H("consent", "default", {
795
+ ad_storage: "denied",
796
+ analytics_storage: "denied",
797
+ region: /* @__PURE__ */ "BE.BG.CZ.DK.DE.EE.IE.EL.ES.FR.HR.IT.CY.LV.LT.LU.HU.MT.NL.AT.PL.PT.RO.SI.SK.FI.SE.UK.IS.NO.LI.CH.MK.AL.RS.TR".split("."),
798
+ functionality_storage: "denied",
799
+ personalization_storage: "denied",
800
+ security_storage: "denied",
801
+ ad_personalization: "denied"
802
+ });
803
+ //#endregion
804
+ //#region src/utils/calcSpeed.ts
805
+ var Jt = 1.4, Yt = 4.2;
806
+ function Xt(e) {
807
+ var t;
808
+ return (e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e).trim()) === "m" ? Jt : Yt;
809
+ }
810
+ //#endregion
811
+ //#region src/utils/calcTravelTime.ts
812
+ function Zt(e, t) {
813
+ return Math.round(e / t);
814
+ }
815
+ //#endregion
816
+ //#region src/utils/geo-anchors.ts
817
+ function Qt(e) {
818
+ return [{
819
+ local: {
820
+ x: e.p0.x,
821
+ y: e.p0.y
822
+ },
823
+ geo: {
824
+ lat: e.p0.lat,
825
+ lng: e.p0.lng
826
+ }
827
+ }, {
828
+ local: {
829
+ x: e.p2.x,
830
+ y: e.p2.y
831
+ },
832
+ geo: {
833
+ lat: e.p2.lat,
834
+ lng: e.p2.lng
835
+ }
836
+ }];
837
+ }
838
+ //#endregion
839
+ //#region src/utils/planBearing.ts
840
+ function $t(e) {
841
+ return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + e * Math.PI / 360))) / 360;
842
+ }
843
+ function en(e, t) {
844
+ let n = (Math.atan2($t(t.lat) - $t(e.lat), (t.lng - e.lng) / 360) - Math.atan2(t.y - e.y, t.x - e.x)) * 180 / Math.PI % 360;
845
+ return Number.isFinite(n) ? (n + 360) % 360 : NaN;
846
+ }
847
+ //#endregion
848
+ //#region src/utils/gps.ts
849
+ function W(e) {
850
+ return typeof e == "number" && Number.isFinite(e);
851
+ }
852
+ function tn({ lat: e, lng: t, angle: n }, r) {
853
+ if (!(W(e) && W(t))) return null;
854
+ let [i, a] = Qt(r), o = Se({
855
+ lat: e,
856
+ lng: t
857
+ }, i, a);
858
+ return W(o.x) && W(o.y) ? {
859
+ ...o,
860
+ angle: n
861
+ } : null;
862
+ }
863
+ function nn({ lat: e, lng: t, angle: n }, r) {
864
+ if (!(W(e) && W(t))) return null;
865
+ let { p0: i, p2: a } = r, o = L(i, a);
866
+ if (!W(o) || o <= 0) return s.warn("Invalid GPS config: zero or negative distance", {
867
+ fullGpsDistance: o,
868
+ p0: i,
869
+ p2: a
870
+ }), null;
871
+ let c = tn({
872
+ lat: e,
873
+ lng: t,
874
+ angle: n
875
+ }, r);
876
+ return c ? Ce({
877
+ p0: c,
878
+ p1: we({
879
+ p0: i,
880
+ p1: a
881
+ })
882
+ }) > 5 * P(i, a) ? (s.warn("Current position too far"), null) : c : null;
883
+ }
884
+ function rn(e, t, n) {
885
+ let [r, i] = Qt(n), { lat: a, lng: o } = xe({
886
+ x: e,
887
+ y: t
888
+ }, r, i);
889
+ return [o, a];
890
+ }
891
+ function an(e) {
892
+ var t, n;
893
+ let r = (t = Oe()) == null || (t = t.properties) == null ? void 0 : t.config, i = r ? en(r.p0, r.p2) : NaN, a = Number.isFinite(i) ? i : (n = r == null ? void 0 : r.bearing) == null ? 0 : n;
894
+ return (e == null ? void 0 : e.angle) === null ? 0 : (((e.angle - a) % 360 + 360) % 360 - 90 + 360) % 360;
895
+ }
896
+ //#endregion
897
+ //#region ../wayfinding/src/core/graph/buildGraph.ts
898
+ function on(e, t, n) {
899
+ var r, i;
900
+ return t.build(e.getLines(), {
901
+ oriented: (r = n.oriented) == null || r,
902
+ onlyAccessible: (i = n.onlyAccessible) != null && i
903
+ }), {
904
+ finder: t,
905
+ dataSource: e,
906
+ options: n
907
+ };
908
+ }
909
+ //#endregion
910
+ //#region ../../node_modules/.pnpm/ngraph.events@1.4.0/node_modules/ngraph.events/dist/ngraph.events.cjs
911
+ var sn = /* @__PURE__ */ t(((e, t) => {
912
+ function n(e) {
913
+ i(e);
914
+ let t = r(e);
915
+ return e.on = t.on, e.off = t.off, e.fire = t.fire, e;
916
+ }
917
+ function r(e) {
918
+ let t = Object.create(null);
919
+ return {
920
+ on: function(n, r, i) {
921
+ if (typeof r != "function") throw Error("callback is expected to be a function");
922
+ let a = t[n];
923
+ return a || (a = t[n] = []), a.push({
924
+ callback: r,
925
+ ctx: i
926
+ }), e;
927
+ },
928
+ off: function(n, r) {
929
+ if (typeof n > "u") return t = Object.create(null), e;
930
+ if (t[n]) if (typeof r != "function") delete t[n];
931
+ else {
932
+ let e = t[n];
933
+ for (let t = 0; t < e.length; ++t) e[t].callback === r && e.splice(t, 1);
934
+ }
935
+ return e;
936
+ },
937
+ fire: function(n) {
938
+ let r = t[n];
939
+ if (!r) return e;
940
+ let i;
941
+ arguments.length > 1 && (i = Array.prototype.slice.call(arguments, 1));
942
+ for (let e = 0; e < r.length; ++e) {
943
+ let t = r[e];
944
+ t.callback.apply(t.ctx, i);
945
+ }
946
+ return e;
947
+ }
948
+ };
949
+ }
950
+ function i(e) {
951
+ if (!e) throw Error("Eventify cannot use falsy object as events subject");
952
+ let t = [
953
+ "on",
954
+ "fire",
955
+ "off"
956
+ ];
957
+ for (let n = 0; n < t.length; ++n) if (e.hasOwnProperty(t[n])) throw Error("Subject cannot be eventified, since it already has property '" + t[n] + "'");
958
+ }
959
+ t.exports = n;
960
+ })), cn = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
961
+ t.exports = r;
962
+ var n = sn();
963
+ function r(e) {
964
+ if (e = e || {}, "uniqueLinkId" in e && (console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n", "\n", "Note: there is also change in default behavior: From now on each graph\nis considered to be not a multigraph by default (each edge is unique)."), e.multigraph = e.uniqueLinkId), e.multigraph === void 0 && (e.multigraph = !1), typeof Map != "function") throw Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph");
965
+ var t = /* @__PURE__ */ new Map(), r = [], l = {}, u = 0, d = e.multigraph ? E : T, f = [], p = N, m = N, h = N, g = N, _ = {
966
+ addNode: x,
967
+ addLink: w,
968
+ removeLink: A,
969
+ removeNode: C,
970
+ getNode: S,
971
+ getNodeCount: D,
972
+ getLinkCount: O,
973
+ getLinksCount: O,
974
+ getNodesCount: D,
975
+ getLinks: k,
976
+ forEachNode: oe,
977
+ forEachLinkedNode: M,
978
+ forEachLink: te,
979
+ beginUpdate: h,
980
+ endUpdate: g,
981
+ clear: ee,
982
+ hasLink: j,
983
+ hasNode: S,
984
+ getLink: j
985
+ };
986
+ return n(_), v(), _;
987
+ function v() {
988
+ var e = _.on;
989
+ _.on = t;
990
+ function t() {
991
+ return _.beginUpdate = h = ie, _.endUpdate = g = ae, p = y, m = b, _.on = e, e.apply(_, arguments);
992
+ }
993
+ }
994
+ function y(e, t) {
995
+ f.push({
996
+ link: e,
997
+ changeType: t
998
+ });
999
+ }
1000
+ function b(e, t) {
1001
+ f.push({
1002
+ node: e,
1003
+ changeType: t
1004
+ });
1005
+ }
1006
+ function x(e, n) {
1007
+ if (e === void 0) throw Error("Invalid node identifier");
1008
+ h();
1009
+ var r = S(e);
1010
+ return r ? (r.data = n, m(r, "update")) : (r = new a(e, n), m(r, "add")), t.set(e, r), g(), r;
1011
+ }
1012
+ function S(e) {
1013
+ return t.get(e);
1014
+ }
1015
+ function C(e) {
1016
+ var n = S(e);
1017
+ if (!n) return !1;
1018
+ h();
1019
+ var r = n.links;
1020
+ if (r) {
1021
+ n.links = null;
1022
+ for (var i = 0; i < r.length; ++i) A(r[i]);
1023
+ }
1024
+ return t.delete(e), m(n, "remove"), g(), !0;
1025
+ }
1026
+ function w(e, t, n) {
1027
+ h();
1028
+ var i = S(e) || x(e), a = S(t) || x(t), s = d(e, t, n);
1029
+ return r.push(s), o(i, s), e !== t && o(a, s), p(s, "add"), g(), s;
1030
+ }
1031
+ function T(e, t, n) {
1032
+ return new s(e, t, n, c(e, t));
1033
+ }
1034
+ function E(e, t, n) {
1035
+ var r = c(e, t), i = l.hasOwnProperty(r);
1036
+ if (i || j(e, t)) {
1037
+ i || (l[r] = 0);
1038
+ var a = "@" + ++l[r];
1039
+ r = c(e + a, t + a);
1040
+ }
1041
+ return new s(e, t, n, r);
1042
+ }
1043
+ function D() {
1044
+ return t.size;
1045
+ }
1046
+ function O() {
1047
+ return r.length;
1048
+ }
1049
+ function k(e) {
1050
+ var t = S(e);
1051
+ return t ? t.links : null;
1052
+ }
1053
+ function A(e) {
1054
+ if (!e) return !1;
1055
+ var t = i(e, r);
1056
+ if (t < 0) return !1;
1057
+ h(), r.splice(t, 1);
1058
+ var n = S(e.fromId), a = S(e.toId);
1059
+ return n && (t = i(e, n.links), t >= 0 && n.links.splice(t, 1)), a && (t = i(e, a.links), t >= 0 && a.links.splice(t, 1)), p(e, "remove"), g(), !0;
1060
+ }
1061
+ function j(e, t) {
1062
+ var n = S(e), r;
1063
+ if (!n || !n.links) return null;
1064
+ for (r = 0; r < n.links.length; ++r) {
1065
+ var i = n.links[r];
1066
+ if (i.fromId === e && i.toId === t) return i;
1067
+ }
1068
+ return null;
1069
+ }
1070
+ function ee() {
1071
+ h(), oe(function(e) {
1072
+ C(e.id);
1073
+ }), g();
1074
+ }
1075
+ function te(e) {
1076
+ var t, n;
1077
+ if (typeof e == "function") for (t = 0, n = r.length; t < n; ++t) e(r[t]);
1078
+ }
1079
+ function M(e, t, n) {
1080
+ var r = S(e);
1081
+ if (r && r.links && typeof t == "function") return n ? re(r.links, e, t) : ne(r.links, e, t);
1082
+ }
1083
+ function ne(e, n, r) {
1084
+ for (var i, a = 0; a < e.length; ++a) {
1085
+ var o = e[a], s = o.fromId === n ? o.toId : o.fromId;
1086
+ if (i = r(t.get(s), o), i) return !0;
1087
+ }
1088
+ }
1089
+ function re(e, n, r) {
1090
+ for (var i, a = 0; a < e.length; ++a) {
1091
+ var o = e[a];
1092
+ if (o.fromId === n && (i = r(t.get(o.toId), o), i)) return !0;
1093
+ }
1094
+ }
1095
+ function N() {}
1096
+ function ie() {
1097
+ u += 1;
1098
+ }
1099
+ function ae() {
1100
+ --u, u === 0 && f.length > 0 && (_.fire("changed", f), f.length = 0);
1101
+ }
1102
+ function oe(e) {
1103
+ if (typeof e != "function") throw Error("Function is expected to iterate over graph nodes. You passed " + e);
1104
+ for (var n = t.values(), r = n.next(); !r.done;) {
1105
+ if (e(r.value)) return !0;
1106
+ r = n.next();
1107
+ }
1108
+ }
1109
+ }
1110
+ function i(e, t) {
1111
+ if (!t) return -1;
1112
+ if (t.indexOf) return t.indexOf(e);
1113
+ var n = t.length, r;
1114
+ for (r = 0; r < n; r += 1) if (t[r] === e) return r;
1115
+ return -1;
1116
+ }
1117
+ function a(e, t) {
1118
+ this.id = e, this.links = null, this.data = t;
1119
+ }
1120
+ function o(e, t) {
1121
+ e.links ? e.links.push(t) : e.links = [t];
1122
+ }
1123
+ function s(e, t, n, r) {
1124
+ this.fromId = e, this.toId = t, this.data = n, this.id = r;
1125
+ }
1126
+ function c(e, t) {
1127
+ return e.toString() + "👉 " + t.toString();
1128
+ }
1129
+ })))(), 1), G = (e) => {
1130
+ var t;
1131
+ return `${(t = e.layer) == null ? "" : t}_${e.x}_${e.y}`;
1132
+ }, ln = 1, un = (e, t) => {
1133
+ var n, r;
1134
+ return ((n = e.layer) == null ? "" : n) === ((r = t.layer) == null ? "" : r) && P(e, t) <= ln;
1135
+ }, dn = (e, t, n) => un(e.p0, t) && un(e.p1, n) || un(e.p0, n) && un(e.p1, t);
1136
+ function fn(e, t, n) {
1137
+ return e.find((e) => dn(e, t, n));
1138
+ }
1139
+ var pn = w(5);
1140
+ function mn(e, t) {
1141
+ var n, r, i, a, o, s;
1142
+ if (e.virtual !== t.virtual || ((n = e.p0.layer) == null ? "" : n) !== ((r = e.p1.layer) == null ? "" : r) || ((i = t.p0.layer) == null ? "" : i) !== ((a = t.p1.layer) == null ? "" : a) || ((o = e.p1.layer) == null ? "" : o) !== ((s = t.p0.layer) == null ? "" : s)) return !1;
1143
+ let c = Te(e.p0, e.p1), l = Te(t.p0, t.p1), u = Math.abs(l - c);
1144
+ return u > Math.PI && (u = 2 * Math.PI - u), u <= pn;
1145
+ }
1146
+ function hn(e, t) {
1147
+ let n = [];
1148
+ for (let r = 1; r < e.length; r++) {
1149
+ let i = e[r - 1], a = e[r], o = fn(t, i, a);
1150
+ if (!o) {
1151
+ console.warn(`WF: buildRouteSegments — no line found between ${G(i)} and ${G(a)}`);
1152
+ continue;
1153
+ }
1154
+ let s = {
1155
+ p0: i,
1156
+ p1: a,
1157
+ virtual: o.virtual
1158
+ }, c = n[n.length - 1];
1159
+ c && mn(c, s) ? n[n.length - 1] = {
1160
+ ...c,
1161
+ p1: s.p1
1162
+ } : n.push(s);
1163
+ }
1164
+ return n;
1165
+ }
1166
+ //#endregion
1167
+ //#region ../wayfinding/src/core/graph/constants.ts
1168
+ var gn = 1e4, _n = 1.01;
1169
+ //#endregion
1170
+ //#region ../wayfinding/src/core/graph/linkCost.ts
1171
+ function vn(e) {
1172
+ return P(e.p0, e.p1) / (e.weight || 4);
1173
+ }
1174
+ function yn(e) {
1175
+ var t, n;
1176
+ return ((t = e.p0.layer) == null ? "" : t) !== ((n = e.p1.layer) == null ? "" : n);
1177
+ }
1178
+ function bn(e) {
1179
+ return e.virtual ? e.virtualLength == null ? yn(e) ? gn : 0 : e.virtualLength : vn(e);
1180
+ }
1181
+ //#endregion
1182
+ //#region ../wayfinding/src/core/graph/buildNGraph.ts
1183
+ function xn(e, t) {
1184
+ let { oriented: n, onlyAccessible: r } = t, i = (0, cn.default)();
1185
+ for (let t of e) {
1186
+ if (r && t.unaccessible) continue;
1187
+ let e = G(t.p0), a = G(t.p1), o = bn(t);
1188
+ i.addLink(e, a, { distance: o }), n && !t.unidirection && i.addLink(a, e, { distance: o });
1189
+ }
1190
+ return i;
1191
+ }
1192
+ //#endregion
1193
+ //#region ../wayfinding/src/core/graph/utils/a-star/defaultSettings.js
1194
+ var Sn = [];
1195
+ typeof Object.freeze == "function" && Object.freeze(Sn);
1196
+ var Cn = {
1197
+ heuristic: wn,
1198
+ distance: Tn,
1199
+ blocked: En,
1200
+ compareFScore: Dn,
1201
+ NO_PATH: Sn,
1202
+ setHeapIndex: On,
1203
+ setH1: jn,
1204
+ setH2: Mn,
1205
+ compareF1Score: kn,
1206
+ compareF2Score: An
1207
+ };
1208
+ function wn() {
1209
+ return 0;
1210
+ }
1211
+ function Tn() {
1212
+ return 1;
1213
+ }
1214
+ function En() {
1215
+ return !1;
1216
+ }
1217
+ function Dn(e, t) {
1218
+ return e.fScore - t.fScore;
1219
+ }
1220
+ function On(e, t) {
1221
+ e.heapIndex = t;
1222
+ }
1223
+ function kn(e, t) {
1224
+ return e.f1 - t.f1;
1225
+ }
1226
+ function An(e, t) {
1227
+ return e.f2 - t.f2;
1228
+ }
1229
+ function jn(e, t) {
1230
+ e.h1 = t;
1231
+ }
1232
+ function Mn(e, t) {
1233
+ e.h2 = t;
1234
+ }
1235
+ //#endregion
1236
+ //#region ../wayfinding/src/core/graph/utils/a-star/makeSearchStatePool.js
1237
+ function Nn(e) {
1238
+ this.node = e, this.parent = null, this.closed = !1, this.open = 0, this.distanceToSource = Infinity, this.fScore = Infinity, this.heapIndex = -1;
1239
+ }
1240
+ function Pn() {
1241
+ let e = 0, t = [];
1242
+ return {
1243
+ createNewState: r,
1244
+ reset: n
1245
+ };
1246
+ function n() {
1247
+ e = 0;
1248
+ }
1249
+ function r(n) {
1250
+ let r = t[e];
1251
+ return r ? (r.node = n, r.parent = null, r.closed = !1, r.open = 0, r.distanceToSource = Infinity, r.fScore = Infinity, r.heapIndex = -1) : (r = new Nn(n), t[e] = r), e++, r;
1252
+ }
1253
+ }
1254
+ //#endregion
1255
+ //#region ../wayfinding/src/core/graph/utils/a-star/NodeHeap.js
1256
+ function Fn(e, t) {
1257
+ if (!(this instanceof Fn)) return new Fn(e, t);
1258
+ if (Array.isArray(e) || (t = e, e = []), t = t || {}, this.data = e || [], this.length = this.data.length, this.compare = t.compare || Ln, this.setNodeId = t.setNodeId || In, this.length > 0) for (let e = this.length >> 1; e >= 0; e--) this._down(e);
1259
+ if (t.setNodeId) for (let e = 0; e < this.length; ++e) this.setNodeId(this.data[e], e);
1260
+ }
1261
+ function In() {}
1262
+ function Ln(e, t) {
1263
+ return e - t;
1264
+ }
1265
+ Fn.prototype = {
1266
+ push: function(e) {
1267
+ this.data.push(e), this.setNodeId(e, this.length), this.length++, this._up(this.length - 1);
1268
+ },
1269
+ pop: function() {
1270
+ if (this.length === 0) return;
1271
+ let e = this.data[0];
1272
+ return this.length--, this.length > 0 && (this.data[0] = this.data[this.length], this.setNodeId(this.data[0], 0), this._down(0)), this.data.pop(), e;
1273
+ },
1274
+ peek: function() {
1275
+ return this.data[0];
1276
+ },
1277
+ updateItem: function(e) {
1278
+ this._down(e), this._up(e);
1279
+ },
1280
+ _up: function(e) {
1281
+ let t = this.data, n = this.compare, r = this.setNodeId, i = t[e];
1282
+ for (; e > 0;) {
1283
+ let a = e - 1 >> 1, o = t[a];
1284
+ if (n(i, o) >= 0) break;
1285
+ t[e] = o, r(o, e), e = a;
1286
+ }
1287
+ t[e] = i, r(i, e);
1288
+ },
1289
+ _down: function(e) {
1290
+ let t = this.data, n = this.compare, r = this.length >> 1, i = t[e], a = this.setNodeId;
1291
+ for (; e < r;) {
1292
+ let r = (e << 1) + 1, o = r + 1, s = t[r];
1293
+ if (o < this.length && n(t[o], s) < 0 && (r = o, s = t[o]), n(s, i) >= 0) break;
1294
+ t[e] = s, a(s, e), e = r;
1295
+ }
1296
+ t[e] = i, a(i, e);
1297
+ }
1298
+ };
1299
+ //#endregion
1300
+ //#region ../wayfinding/src/core/graph/utils/a-star/a-star.js
1301
+ var Rn = Cn.NO_PATH;
1302
+ function zn(e, t) {
1303
+ t = t || {};
1304
+ let n = t.oriented, r = t.blocked;
1305
+ r || (r = Cn.blocked);
1306
+ let i = t.heuristic;
1307
+ i || (i = Cn.heuristic);
1308
+ let a = t.distance;
1309
+ a || (a = Cn.distance);
1310
+ let o = Pn();
1311
+ return { find: s };
1312
+ function s(t, s) {
1313
+ let c = e.getNode(t);
1314
+ if (!c) throw Error("fromId is not defined in this graph: " + t);
1315
+ let l = e.getNode(s);
1316
+ if (!l) throw Error("toId is not defined in this graph: " + s);
1317
+ o.reset();
1318
+ let u = /* @__PURE__ */ new Map(), d = new Fn({
1319
+ compare: Cn.compareFScore,
1320
+ setNodeId: Cn.setHeapIndex
1321
+ }), f = o.createNewState(c);
1322
+ u.set(t, f), f.fScore = i(c, l), f.distanceToSource = 0, d.push(f), f.open = 1;
1323
+ let p;
1324
+ for (; d.length > 0;) {
1325
+ if (p = d.pop(), Bn(p, l)) return Vn(p);
1326
+ p.closed = !0, e.forEachLinkedNode(p.node.id, m, n);
1327
+ }
1328
+ return Rn;
1329
+ function m(e, t) {
1330
+ let n = u.get(e.id);
1331
+ if (n || (n = o.createNewState(e), u.set(e.id, n)), n.closed || (n.open === 0 && (d.push(n), n.open = 1), r(e, p.node, t))) return;
1332
+ let s = p.distanceToSource + a(e, p, t);
1333
+ s >= n.distanceToSource || (n.parent = p, n.distanceToSource = s, n.fScore = s + i(n.node, l), d.updateItem(n.heapIndex));
1334
+ }
1335
+ }
1336
+ }
1337
+ function Bn(e, t) {
1338
+ return e.node === t;
1339
+ }
1340
+ function Vn(e) {
1341
+ let t = [e.node], n = e.parent;
1342
+ for (; n;) t.push(n.node), n = n.parent;
1343
+ return t;
1344
+ }
1345
+ //#endregion
1346
+ //#region ../wayfinding/src/core/graph/pathfinder/parseNodeId.ts
1347
+ function Hn(e) {
1348
+ let t = e.lastIndexOf("_"), n = e.lastIndexOf("_", t - 1);
1349
+ if (n === -1) throw Error(`WF: invalid node ID format "${e}", expected "{layer}_{x}_{y}"`);
1350
+ return [
1351
+ e.substring(0, n),
1352
+ parseFloat(e.substring(n + 1, t)),
1353
+ parseFloat(e.substring(t + 1))
1354
+ ];
1355
+ }
1356
+ //#endregion
1357
+ //#region ../wayfinding/src/core/graph/pathfinder/aStarPathFinder.ts
1358
+ function Un() {
1359
+ return function(e, t, n) {
1360
+ let r = 1;
1361
+ if (t.parent) {
1362
+ let [, n, i] = Hn(t.parent.node.id), [, a, o] = Hn(t.node.id), [, s, c] = Hn(e.id);
1363
+ Te({
1364
+ x: n,
1365
+ y: i
1366
+ }, {
1367
+ x: a,
1368
+ y: o
1369
+ }) !== Te({
1370
+ x: a,
1371
+ y: o
1372
+ }, {
1373
+ x: s,
1374
+ y: c
1375
+ }) && (r = _n);
1376
+ }
1377
+ return r * n.data.distance;
1378
+ };
1379
+ }
1380
+ function Wn() {
1381
+ let e = null, t = null;
1382
+ return {
1383
+ build(n, r) {
1384
+ t = xn(n, r), e = zn(t, {
1385
+ oriented: r.oriented,
1386
+ distance: Un()
1387
+ });
1388
+ },
1389
+ hasNode(e) {
1390
+ return t ? !!t.hasNode(e) : !1;
1391
+ },
1392
+ find(t, n) {
1393
+ if (!e) return [];
1394
+ let r = e.find(t, n);
1395
+ return r.length ? r.map((e) => {
1396
+ let [t, n, r] = Hn(e.id);
1397
+ return {
1398
+ id: e.id,
1399
+ layer: t,
1400
+ x: n,
1401
+ y: r
1402
+ };
1403
+ }).reverse() : [];
1404
+ }
1405
+ };
1406
+ }
1407
+ //#endregion
1408
+ //#region ../wayfinding/src/core/graph/graphCache.ts
1409
+ function Gn() {
1410
+ let e = null, t = !1, n = null;
1411
+ return { getOrBuild(r, i) {
1412
+ let a = r.getLines();
1413
+ return e && t === i && n === a ? e : (e = on(r, Wn(), {
1414
+ oriented: !0,
1415
+ onlyAccessible: i
1416
+ }), t = i, n = a, e);
1417
+ } };
1418
+ }
1419
+ //#endregion
1420
+ //#region ../wayfinding/src/core/routing/getRouteLength.ts
1421
+ function Kn(e) {
1422
+ return e.reduce((e, t) => e + P(t.p0, t.p1), 0);
1423
+ }
1424
+ //#endregion
1425
+ //#region ../wayfinding/src/core/graph/findShortestPath.ts
1426
+ function qn(e, t, n) {
1427
+ return {
1428
+ layer: e,
1429
+ x: t,
1430
+ y: n
1431
+ };
1432
+ }
1433
+ function Jn(e, t) {
1434
+ let n = 0;
1435
+ for (let r = 1; r < e.length; r++) {
1436
+ let i = fn(t, e[r - 1], e[r]);
1437
+ i && (n += bn(i));
1438
+ }
1439
+ return n;
1440
+ }
1441
+ function Yn(e, t, n) {
1442
+ let r = e.dataSource.getLines(), i = null, a = Infinity;
1443
+ for (let o of t) for (let t of n) {
1444
+ let n = G(o), s = G(t);
1445
+ if (!e.finder.hasNode(n) || !e.finder.hasNode(s)) {
1446
+ console.debug(`WF. findShortestPath: node not in graph, skipping pair ${n} → ${s}`);
1447
+ continue;
1448
+ }
1449
+ let c = e.finder.find(n, s);
1450
+ if (!c.length) continue;
1451
+ let l = c.map((e) => qn(e.layer, e.x, e.y)), u = hn(l, r);
1452
+ if (!u.length) continue;
1453
+ let d = Jn(l, r);
1454
+ d < a && (a = d, i = {
1455
+ lines: u,
1456
+ distance: Kn(u)
1457
+ });
1458
+ }
1459
+ return i;
1460
+ }
1461
+ //#endregion
1462
+ //#region ../wayfinding/src/core/routing/routeResult.ts
1463
+ var Xn = () => ({
1464
+ lines: [],
1465
+ totalDistance: 0
1466
+ });
1467
+ //#endregion
1468
+ //#region ../wayfinding/src/core/routing/buildRoute.ts
1469
+ function Zn(e, t, n) {
1470
+ if (!t.length || !n.length) return Xn();
1471
+ let r = Yn(e, t, n);
1472
+ return r ? {
1473
+ lines: r.lines,
1474
+ totalDistance: r.distance
1475
+ } : Xn();
1476
+ }
1477
+ //#endregion
1478
+ //#region ../wayfinding/src/core/routing/buildMultiPointRoute.ts
1479
+ function Qn(e, t) {
1480
+ if (t.length < 2) return Xn();
1481
+ let n = t.filter((e, n) => n === 0 || n === t.length - 1 || e.length > 0);
1482
+ if (n.length < 2) return Xn();
1483
+ if (n.length === 2) return Zn(e, n[0], n[1]);
1484
+ let r = [];
1485
+ for (let t = 0; t < n.length - 1; t++) r.push(Zn(e, n[t], n[t + 1]));
1486
+ return {
1487
+ lines: r.flatMap((e) => e.lines),
1488
+ totalDistance: r.reduce((e, t) => e + t.totalDistance, 0)
1489
+ };
1490
+ }
1491
+ //#endregion
1492
+ //#region ../wayfinding/src/core/routing/optimizeWaypointOrder.ts
1493
+ var $n = 100, er = -.01;
1494
+ function tr(e) {
1495
+ let t = new Map(e), n = Array.from(t.keys());
1496
+ if (n.length <= 2) return n;
1497
+ let r = rr(n, t);
1498
+ return r.length < 4 ? r : ir(r, t);
1499
+ }
1500
+ function nr(e) {
1501
+ if (e.length <= 3) return e;
1502
+ let t = e[0], n = e[e.length - 1], r = e.slice(1, -1);
1503
+ return [
1504
+ t,
1505
+ ...tr(r.map((e, t) => [String(t), {
1506
+ x: e.x,
1507
+ y: e.y
1508
+ }])).map((e) => r[Number(e)]),
1509
+ n
1510
+ ];
1511
+ }
1512
+ function rr(e, t) {
1513
+ let n = [e[0]], r = new Set(e), i = e[0];
1514
+ for (r.delete(e[0]); r.size > 0;) {
1515
+ let e = t.get(i), a = "", o = Infinity;
1516
+ for (let n of r) {
1517
+ let r = t.get(n), i = Math.abs(e.x - r.x) + Math.abs(e.y - r.y);
1518
+ i < o && (o = i, a = n);
1519
+ }
1520
+ if (!a) break;
1521
+ n.push(a), r.delete(a), i = a;
1522
+ }
1523
+ return n;
1524
+ }
1525
+ function ir(e, t) {
1526
+ let n = [...e], r = !0;
1527
+ for (let e = 0; r && e < $n; e++) {
1528
+ r = !1;
1529
+ scan: for (let e = 1; e < n.length - 2; e++) for (let i = e + 1; i < n.length - 1; i++) {
1530
+ let a = t.get(n[e - 1]), o = t.get(n[e]), s = t.get(n[i]), c = t.get(n[i + 1]);
1531
+ if (Math.abs(a.x - s.x) + Math.abs(a.y - s.y) + Math.abs(o.x - c.x) + Math.abs(o.y - c.y) - (Math.abs(a.x - o.x) + Math.abs(a.y - o.y)) - (Math.abs(s.x - c.x) + Math.abs(s.y - c.y)) < er) {
1532
+ for (let t = e, r = i; t < r; t++, r--) [n[t], n[r]] = [n[r], n[t]];
1533
+ r = !0;
1534
+ break scan;
1535
+ }
1536
+ }
1537
+ }
1538
+ return n;
1539
+ }
1540
+ //#endregion
1541
+ //#region ../wayfinding/src/core/geometry/projectPointOnSegment.ts
1542
+ function ar(e, t, n) {
1543
+ let { projected: r, distance: i, t: a } = Ee({
1544
+ p0: t,
1545
+ p1: n
1546
+ }, e);
1547
+ return {
1548
+ projected: {
1549
+ x: r.x,
1550
+ y: r.y
1551
+ },
1552
+ distance: i,
1553
+ t: a
1554
+ };
1555
+ }
1556
+ //#endregion
1557
+ //#region ../wayfinding/src/core/geometry/pointInPolygon.ts
1558
+ var or = .01;
1559
+ function sr(e, t, n) {
1560
+ return Math.abs(.5 * (e.x * (t.y - n.y) + t.x * (n.y - e.y) + n.x * (e.y - t.y)));
1561
+ }
1562
+ function cr(e) {
1563
+ if (e.length < 3) return 0;
1564
+ let t = 0;
1565
+ for (let n = 1; n < e.length - 1; n++) t += sr(e[0], e[n], e[n + 1]);
1566
+ return t;
1567
+ }
1568
+ function lr(e, t, n = cr(t)) {
1569
+ if (n === 0) return !1;
1570
+ let r = 0;
1571
+ for (let n = 0, i = t.length - 1; n < t.length; i = n++) r += sr(e, t[i], t[n]);
1572
+ return Math.abs(n - r) < n * or;
1573
+ }
1574
+ //#endregion
1575
+ //#region ../wayfinding/src/core/routing/graphPointResolvers.ts
1576
+ function ur(e, t, n) {
1577
+ let r = cr(t);
1578
+ return e.getLineEnds().filter((e) => (!n || e.layer === n) && lr(e, t, r));
1579
+ }
1580
+ //#endregion
1581
+ //#region ../wayfinding/src/core/routing/resolveWaypointCandidates.ts
1582
+ function dr(e, t) {
1583
+ var n;
1584
+ if ((n = t.bounds) != null && n.length) return {
1585
+ candidates: ur(e.dataSource, t.bounds, t.layer),
1586
+ offGraphEntry: null
1587
+ };
1588
+ let r = null, i = Infinity;
1589
+ for (let n of e.dataSource.getLines()) {
1590
+ if (n.virtual || t.layer && n.p0.layer !== t.layer || n.p0.x === n.p1.x && n.p0.y === n.p1.y) continue;
1591
+ let e = ar(t, n.p0, n.p1);
1592
+ e.distance < i && (i = e.distance, r = {
1593
+ segment: n,
1594
+ proj: e
1595
+ });
1596
+ }
1597
+ if (!r) return {
1598
+ candidates: [],
1599
+ offGraphEntry: null
1600
+ };
1601
+ let { segment: a, proj: o } = r;
1602
+ return o.t === 0 ? {
1603
+ candidates: [a.p0],
1604
+ offGraphEntry: null
1605
+ } : o.t === 1 ? {
1606
+ candidates: [a.p1],
1607
+ offGraphEntry: null
1608
+ } : {
1609
+ candidates: [a.p0, a.p1],
1610
+ offGraphEntry: {
1611
+ segment: a,
1612
+ projection: {
1613
+ layer: a.p0.layer,
1614
+ x: o.projected.x,
1615
+ y: o.projected.y
1616
+ }
1617
+ }
1618
+ };
1619
+ }
1620
+ //#endregion
1621
+ //#region ../wayfinding/src/core/createWayfindingEngine.ts
1622
+ var fr = 1e-6, pr = (e, t) => e.layer === t.layer && Math.abs(e.x - t.x) < fr && Math.abs(e.y - t.y) < fr;
1623
+ function mr(e, t) {
1624
+ if (!e.length) return e;
1625
+ let n = e[0], r = n.p0, i = pr(t.segment.p0, r) ? t.segment.p1 : t.segment.p0;
1626
+ return pr(n.p1, i) ? [{
1627
+ ...n,
1628
+ p0: t.projection
1629
+ }, ...e.slice(1)] : [{
1630
+ ...t.segment,
1631
+ p0: t.projection,
1632
+ p1: r
1633
+ }, ...e];
1634
+ }
1635
+ function hr(e, t) {
1636
+ if (!e.length) return e;
1637
+ let n = e[e.length - 1], r = n.p1, i = pr(t.segment.p0, r) ? t.segment.p1 : t.segment.p0;
1638
+ return pr(n.p0, i) ? [...e.slice(0, -1), {
1639
+ ...n,
1640
+ p1: t.projection
1641
+ }] : [...e, {
1642
+ ...t.segment,
1643
+ p0: r,
1644
+ p1: t.projection
1645
+ }];
1646
+ }
1647
+ function gr(e, t, n) {
1648
+ let r = e;
1649
+ return t && (r = mr(r, t)), n && (r = hr(r, n)), r;
1650
+ }
1651
+ function _r(e) {
1652
+ let t = Gn();
1653
+ return {
1654
+ buildRoute(n, r, i) {
1655
+ var a;
1656
+ let o = t.getOrBuild(e, (a = i == null ? void 0 : i.accessible) != null && a), s = dr(o, n), c = dr(o, r), l = Zn(o, s.candidates, c.candidates), u = !!s.offGraphEntry || !!c.offGraphEntry, d = gr(l.lines, s.offGraphEntry, c.offGraphEntry);
1657
+ return {
1658
+ lines: d,
1659
+ distance: u ? Kn(d) : l.totalDistance
1660
+ };
1661
+ },
1662
+ buildWaypointsRoute(n, r) {
1663
+ var i;
1664
+ if (n.length < 2) return {
1665
+ lines: [],
1666
+ distance: 0
1667
+ };
1668
+ let a = t.getOrBuild(e, (i = r == null ? void 0 : r.accessible) != null && i), o = (r != null && r.fastest ? nr(n) : n).map((e) => dr(a, e)), s = Qn(a, o.map((e) => e.candidates)), c = o[0].offGraphEntry, l = o[o.length - 1].offGraphEntry, u = !!c || !!l, d = gr(s.lines, c, l);
1669
+ return {
1670
+ lines: d,
1671
+ distance: u ? Kn(d) : s.totalDistance
1672
+ };
1673
+ }
1674
+ };
1675
+ }
1676
+ //#endregion
1677
+ //#region ../wayfinding/src/core/rendering/computeTrailPoints.ts
1678
+ var vr = .4, yr = 8;
1679
+ function br(e, t, n = yr, r = vr) {
1680
+ let i = P(t, e);
1681
+ if (i === 0 || n <= 0) return [];
1682
+ let a = Math.max(Math.ceil(i / n) + 1, 2), o = {
1683
+ x: (e.x + t.x) / 2,
1684
+ y: (e.y + t.y) / 2 - i * r
1685
+ }, s = [];
1686
+ for (let n = 0; n < a; n++) {
1687
+ let r = n / (a - 1);
1688
+ s.push(xr(e, o, t, r));
1689
+ }
1690
+ return s;
1691
+ }
1692
+ function xr(e, t, n, r) {
1693
+ let i = 1 - r;
1694
+ return {
1695
+ x: i * i * e.x + 2 * i * r * t.x + r * r * n.x,
1696
+ y: i * i * e.y + 2 * i * r * t.y + r * r * n.y
1697
+ };
1698
+ }
1699
+ //#endregion
1700
+ //#region ../wayfinding/src/core/rendering/computeTransitionPoints.ts
1701
+ function Sr(e, t) {
1702
+ return e.toLowerCase() === t.toLowerCase();
1703
+ }
1704
+ function Cr(e, t) {
1705
+ return e.findIndex((e) => Sr(e, t));
1706
+ }
1707
+ function wr(e, t, n) {
1708
+ let r = Cr(e, t), i = Cr(e, n);
1709
+ return r === -1 || i === -1 ? "neutral" : i > r ? "up" : "down";
1710
+ }
1711
+ function Tr(e, t, n) {
1712
+ return e.find((e) => Sr(e.p0.layer, t) ? !n.has(e.p1.layer.toLowerCase()) : Sr(e.p1.layer, t) ? !n.has(e.p0.layer.toLowerCase()) : !1);
1713
+ }
1714
+ function Er(e, t, n, r) {
1715
+ if (t.has(r.toLowerCase())) return r;
1716
+ let i = r, a = /* @__PURE__ */ new Set([n.toLowerCase(), i.toLowerCase()]), o = Tr(e, i, a);
1717
+ for (; o && (i = Sr(o.p0.layer, i) ? o.p1.layer : o.p0.layer, !t.has(i.toLowerCase()));) a.add(i.toLowerCase()), o = Tr(e, i, a);
1718
+ return i;
1719
+ }
1720
+ function Dr(e) {
1721
+ let { routeLines: t, currentLayerNames: n, floorOrder: r } = e, i = (e) => n === null || n.some((t) => Sr(e, t)), a = t.filter((e) => e.virtual && !Sr(e.p0.layer, e.p1.layer)), o = /* @__PURE__ */ new Set();
1722
+ for (let e of t) e.virtual || (o.add(e.p0.layer.toLowerCase()), o.add(e.p1.layer.toLowerCase()));
1723
+ let s = a.filter((e) => i(e.p0.layer) || i(e.p1.layer)).map((e) => {
1724
+ let t = i(e.p0.layer), n = t ? e.p0 : e.p1, s = t ? e.p1 : e.p0, c = Er(a, o, n.layer, s.layer);
1725
+ return {
1726
+ x: n.x,
1727
+ y: n.y,
1728
+ layer: n.layer,
1729
+ targetLayer: c,
1730
+ direction: wr(r, n.layer, c),
1731
+ role: t ? "exit" : "entry"
1732
+ };
1733
+ }), c = new Set(s.filter((e) => e.role === "exit").map((e) => `${e.x}:${e.y}`)), l = /* @__PURE__ */ new Set();
1734
+ return s.filter((e) => {
1735
+ let t = `${e.x}:${e.y}`;
1736
+ return e.role === "entry" && c.has(t) || l.has(t) ? !1 : (l.add(t), !0);
1737
+ });
1738
+ }
1739
+ //#endregion
1740
+ //#region ../wayfinding/src/core/rendering/routeGeometry.ts
1741
+ function Or(e) {
1742
+ return le.fromPoints(e);
1743
+ }
1744
+ //#endregion
1745
+ //#region ../wayfinding/src/core/position/gpsThreshold.ts
1746
+ var kr = 7.5, Ar = 15, jr = 20;
1747
+ function Mr(e, t) {
1748
+ let { p0: n, p2: r } = t, i = L(n, r), a = P(n, r);
1749
+ return !i || !a ? 0 : a / i * e;
1750
+ }
1751
+ var Nr = (e) => {
1752
+ if (typeof e == "number" && Number.isFinite(e)) return e;
1753
+ }, Pr = (e, t) => {
1754
+ let n = Nr(e);
1755
+ return n === void 0 || n === 0 ? t : n;
1756
+ };
1757
+ function Fr({ thresholdInMeters: e, gpsConfig: t }) {
1758
+ let n = 0;
1759
+ return e && t && (n = Mr(e, t)), n || (n = jr), n;
1760
+ }
1761
+ function Ir(e) {
1762
+ return Fr({
1763
+ thresholdInMeters: Pr(e == null ? void 0 : e.rerouteThreshold, Ar),
1764
+ gpsConfig: e
1765
+ });
1766
+ }
1767
+ //#endregion
1768
+ //#region ../wayfinding/src/core/position/distanceToRoute.ts
1769
+ function Lr(e, t, n, r, i, a) {
1770
+ let o = i - n, s = a - r, c = e - n, l = t - r, u = o * o + s * s;
1771
+ if (u === 0) return P({
1772
+ x: e,
1773
+ y: t
1774
+ }, {
1775
+ x: n,
1776
+ y: r
1777
+ });
1778
+ let d = (c * o + l * s) / u;
1779
+ d < 0 ? d = 0 : d > 1 && (d = 1);
1780
+ let f = n + d * o, p = r + d * s;
1781
+ return P({
1782
+ x: e,
1783
+ y: t
1784
+ }, {
1785
+ x: f,
1786
+ y: p
1787
+ });
1788
+ }
1789
+ function Rr(e, t) {
1790
+ let n = Infinity;
1791
+ for (let r of t) {
1792
+ if (e.layer && (r.p0.layer !== e.layer || r.p1.layer !== e.layer)) continue;
1793
+ let t = Lr(e.x, e.y, r.p0.x, r.p0.y, r.p1.x, r.p1.y);
1794
+ t < n && (n = t);
1795
+ }
1796
+ return n;
1797
+ }
1798
+ //#endregion
1799
+ //#region ../wayfinding/src/core/position/rerouteController.ts
1800
+ function zr(e) {
1801
+ return { shouldReroute(t, n) {
1802
+ if (!n.length) return !1;
1803
+ let r = t.layer;
1804
+ return r && !n.some((e) => e.p0.layer === r && e.p1.layer === r) ? !0 : Rr(t, n) > e;
1805
+ } };
1806
+ }
1807
+ //#endregion
1808
+ //#region ../wayfinding/src/core/position/snapToRoute.ts
1809
+ function Br(e, t, { snapThreshold: n }) {
1810
+ let r = t.length;
1811
+ if (!r) return { snapped: !1 };
1812
+ let i = e.layer || null, a = Infinity, o = null, s = 0, c = i == null;
1813
+ for (let n = 0; n < r; n++) {
1814
+ let r = t[n], { p0: l, p1: u } = r, d = P(l, u);
1815
+ if (d === 0) continue;
1816
+ if (i != null && String(l.layer) !== i) {
1817
+ s += d;
1818
+ continue;
1819
+ }
1820
+ c = !0;
1821
+ let f = ar({
1822
+ x: e.x,
1823
+ y: e.y
1824
+ }, l, u);
1825
+ f.distance < a && (a = f.distance, o = {
1826
+ point: {
1827
+ layer: l.layer,
1828
+ x: f.projected.x,
1829
+ y: f.projected.y
1830
+ },
1831
+ line: r,
1832
+ fromStart: s + d * f.t
1833
+ }), s += d;
1834
+ }
1835
+ return i != null && !c || !o || a > n ? { snapped: !1 } : {
1836
+ snapped: !0,
1837
+ snappedPoint: o.point,
1838
+ snappedLine: o.line,
1839
+ distance: s - o.fromStart
1840
+ };
1841
+ }
1842
+ //#endregion
1843
+ //#region ../wayfinding/src/core/position/splitRouteByPoint.ts
1844
+ function Vr(e, t) {
1845
+ let n = 1e-6, r = -1, i = 0, a = Infinity;
1846
+ for (let n = 0; n < e.length; n++) {
1847
+ let o = e[n];
1848
+ if (o.p0.layer !== t.layer) continue;
1849
+ let s = o.p1.x - o.p0.x, c = o.p1.y - o.p0.y, l = s * s + c * c;
1850
+ if (l === 0) continue;
1851
+ let u = ((t.x - o.p0.x) * s + (t.y - o.p0.y) * c) / l;
1852
+ if (u < -1e-6 || u > 1.000001) continue;
1853
+ let d = Math.min(1, Math.max(0, u)), f = o.p0.x + d * s, p = o.p0.y + d * c, m = (t.x - f) ** 2 + (t.y - p) ** 2;
1854
+ m < a && (a = m, r = n, i = d);
1855
+ }
1856
+ if (r === -1) return {
1857
+ passed: [],
1858
+ remaining: e
1859
+ };
1860
+ if (i < n) return {
1861
+ passed: e.slice(0, r),
1862
+ remaining: e.slice(r)
1863
+ };
1864
+ if (i > 1 - n) return {
1865
+ passed: e.slice(0, r + 1),
1866
+ remaining: e.slice(r + 1)
1867
+ };
1868
+ let o = e[r], s = {
1869
+ layer: o.p0.layer,
1870
+ x: o.p0.x + i * (o.p1.x - o.p0.x),
1871
+ y: o.p0.y + i * (o.p1.y - o.p0.y)
1872
+ };
1873
+ return {
1874
+ passed: [...e.slice(0, r), {
1875
+ ...o,
1876
+ p1: s
1877
+ }],
1878
+ remaining: [{
1879
+ ...o,
1880
+ p0: s
1881
+ }, ...e.slice(r + 1)]
1882
+ };
1883
+ }
1884
+ //#endregion
1885
+ //#region ../wayfinding/src/renderer/iconManager.ts
1886
+ function Hr(e, t, n) {
1887
+ var r, i, a, o;
1888
+ let s = t == null ? parseFloat((r = (i = e.style) == null ? void 0 : i.width) == null ? "" : r) : t, c = n == null ? parseFloat((a = (o = e.style) == null ? void 0 : o.height) == null ? "" : a) : n;
1889
+ if (!(s > 0) || !(c > 0)) throw Error(`renderer: canvas "${e.id}" has no CSS size: pass width and height, or draw it on a canvas whose style records one`);
1890
+ return {
1891
+ width: s,
1892
+ height: c
1893
+ };
1894
+ }
1895
+ function Ur(e, t, n) {
1896
+ let r = e.bounds, i = t.width * n, a = t.height * n;
1897
+ if (!(r.size.x === i && r.size.y === a)) return r.set(r.center.x, r.center.y, i, a, r.rotation, r.elevation), [e];
1898
+ }
1899
+ function Wr(e, t, n, r = !1) {
1900
+ let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
1901
+ function c(e) {
1902
+ return e.onTop ? n.currentPosition : n.icons;
1903
+ }
1904
+ function l(e, t) {
1905
+ return t === void 0 ? e : `${e}#${t}`;
1906
+ }
1907
+ function u(e, t) {
1908
+ let n = a.get(e);
1909
+ n || (n = /* @__PURE__ */ new Set(), a.set(e, n)), n.add(t), o.set(t, e);
1910
+ }
1911
+ function d(e) {
1912
+ let t = o.get(e);
1913
+ if (!t) return;
1914
+ let n = a.get(t);
1915
+ n && n.delete(e), o.delete(e);
1916
+ }
1917
+ function f(n, a, o, l = o.rotation) {
1918
+ var d, f, p;
1919
+ let m = c(o), h = Hr(o.canvas, o.width, o.height), g = (d = o.screenSpace) == null ? r : d;
1920
+ e.touchLayer(m);
1921
+ let _ = {
1922
+ source: o.canvas,
1923
+ bounds: new N({
1924
+ x: o.x,
1925
+ y: o.y
1926
+ }, Gr, l),
1927
+ hidden: (f = o.hidden) != null && f,
1928
+ dim: +!!o.dimmed,
1929
+ origin: o.origin,
1930
+ screenSpace: g
1931
+ };
1932
+ o.cardinalSnap && !g && t.attachCardinalSnap(_), _.onScale = ({ pixelSize: e }) => Ur(_, h, e), m.children.push(_);
1933
+ let v = {
1934
+ imageDef: _,
1935
+ layer: m,
1936
+ callback: (p = o.onClick) == null ? null : p
1937
+ };
1938
+ return i.set(n, v), s.set(_, v), u(a, n), v;
1939
+ }
1940
+ function p(t, n, r, a) {
1941
+ var o;
1942
+ let c = r.layer.children, l = c.indexOf(r.imageDef), u = (o = a.rotation) == null ? r.imageDef.bounds.rotation : o;
1943
+ r.imageDef.hidden = !0, e.touchDef(r.imageDef), l >= 0 && c.splice(l, 1), e.touchLayer(r.layer), i.delete(t), s.delete(r.imageDef), d(t), f(t, n, a, u);
1944
+ }
1945
+ function m(t, r, i, a) {
1946
+ var o, s, l;
1947
+ if (i.layer !== c(a)) throw Error(`renderer: icon "${t}" cannot move between layers (was onTop=${i.layer === n.currentPosition}, got onTop=${!!a.onTop})`);
1948
+ if (i.imageDef.source !== a.canvas) {
1949
+ p(t, r, i, a);
1950
+ return;
1951
+ }
1952
+ let u = i.imageDef.bounds, d = (o = a.rotation) == null ? u.rotation : o;
1953
+ u.set(a.x, a.y, u.size.x, u.size.y, d, u.elevation), i.imageDef.hidden = (s = a.hidden) != null && s, i.imageDef.dim = +!!a.dimmed, i.callback = (l = a.onClick) == null ? null : l, e.touchDef(i.imageDef);
1954
+ }
1955
+ function h(t) {
1956
+ t.imageDef.hidden = !0, t.callback = null, e.touchDef(t.imageDef);
1957
+ }
1958
+ return {
1959
+ setIcon(e, t, n) {
1960
+ let r = l(e, n);
1961
+ if (t === null) {
1962
+ let e = i.get(r);
1963
+ e && h(e);
1964
+ return;
1965
+ }
1966
+ let a = i.get(r);
1967
+ a ? m(r, e, a, t) : f(r, e, t);
1968
+ },
1969
+ clearIcons(e) {
1970
+ let t = typeof e == "string" ? [e] : e;
1971
+ for (let e of t) {
1972
+ let t = a.get(e);
1973
+ if (t) for (let e of t) {
1974
+ let t = i.get(e);
1975
+ t && h(t);
1976
+ }
1977
+ }
1978
+ },
1979
+ hideAll() {
1980
+ for (let e of i.values()) h(e);
1981
+ },
1982
+ destroy() {
1983
+ for (let t of i.values()) {
1984
+ let n = t.layer.children, r = n.indexOf(t.imageDef);
1985
+ r >= 0 && n.splice(r, 1), e.touchLayer(t.layer);
1986
+ }
1987
+ i.clear(), s.clear(), a.clear(), o.clear();
1988
+ },
1989
+ handleClick(e) {
1990
+ let t = s.get(e);
1991
+ return !(t != null && t.callback) || t.imageDef.hidden ? !1 : (t.callback(), !0);
1992
+ },
1993
+ handleHover(e) {
1994
+ let t = s.get(e);
1995
+ return !!(t != null && t.callback) && !(t != null && t.imageDef.hidden);
1996
+ }
1997
+ };
1998
+ }
1999
+ var Gr = {
2000
+ x: 0,
2001
+ y: 0
2002
+ };
2003
+ //#endregion
2004
+ //#region ../wayfinding/src/renderer/layerManager.ts
2005
+ function Kr(e) {
2006
+ let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
2007
+ return {
2008
+ touchLayer(e) {
2009
+ t.add(e);
2010
+ },
2011
+ touchDef(e) {
2012
+ n.add(e);
2013
+ },
2014
+ flush() {
2015
+ if (!(t.size === 0 && n.size === 0)) {
2016
+ for (let e of t) e.children = [...e.children];
2017
+ e.update(...t, ...n), t.clear(), n.clear();
2018
+ }
2019
+ },
2020
+ destroy() {
2021
+ t.clear(), n.clear();
2022
+ }
2023
+ };
2024
+ }
2025
+ //#endregion
2026
+ //#region ../wayfinding/src/renderer/lineAnimation.ts
2027
+ var qr = 1, Jr = 0;
2028
+ function Yr(e, t, n, r = 0) {
2029
+ let i = 0, a = 0, o = null, s = null;
2030
+ if (!e.length) return;
2031
+ let c = e.map((e) => ({
2032
+ p0: {
2033
+ x: e.points.p0.x,
2034
+ y: e.points.p0.y
2035
+ },
2036
+ p1: {
2037
+ x: e.points.p1.x,
2038
+ y: e.points.p1.y
2039
+ },
2040
+ elevation: e.points.elevation
2041
+ })), l = c.map((e) => {
2042
+ let t = e.p1.x - e.p0.x, n = e.p1.y - e.p0.y;
2043
+ return Math.sqrt(t * t + n * n);
2044
+ }), u = e.map((e) => e.hidden ? Jr : -1), d = [], f = l.reduce((e, t) => e + t, 0);
2045
+ if (!f) return;
2046
+ let p = Math.max(20, Math.min(f / 2, 300));
2047
+ function m(e) {
2048
+ let t = e % 1 * f, n = 0;
2049
+ i = 0, a = 0;
2050
+ for (let e = 0; e < l.length; e++) {
2051
+ if (n + l[e] > t) {
2052
+ i = e, a = t - n;
2053
+ break;
2054
+ }
2055
+ n += l[e], e === l.length - 1 && (i = 0, a = 0);
2056
+ }
2057
+ }
2058
+ function h(t, n) {
2059
+ if (u[t] === n) return;
2060
+ u[t] = n;
2061
+ let r = e[t], i = c[t];
2062
+ if (r.hidden = n <= Jr, !r.hidden) {
2063
+ let { p0: e, p1: t } = i;
2064
+ r.points = n >= qr ? i : {
2065
+ p0: e,
2066
+ p1: {
2067
+ x: e.x + (t.x - e.x) * n,
2068
+ y: e.y + (t.y - e.y) * n
2069
+ },
2070
+ elevation: i.elevation
2071
+ };
2072
+ }
2073
+ d.push(r);
2074
+ }
2075
+ function g() {
2076
+ d.length = 0;
2077
+ let n = i;
2078
+ for (let e = 0; e < n; e++) h(e, qr);
2079
+ let r = l[n];
2080
+ h(n, r ? Math.min(a / r, qr) : qr);
2081
+ for (let t = n + 1; t < e.length; t++) h(t, Jr);
2082
+ d.length && t(d);
2083
+ }
2084
+ function _(t) {
2085
+ o != null || (o = t);
2086
+ let r = (t - o) / 1e3;
2087
+ o = t;
2088
+ let c = n();
2089
+ if (!(Number.isFinite(c) && c > 0)) {
2090
+ s = requestAnimationFrame(_);
2091
+ return;
2092
+ }
2093
+ let u = p * Math.sqrt(c);
2094
+ for (a += u * r, a %= f; a >= l[i];) a -= l[i], i++, i >= e.length && (i = 0);
2095
+ g(), s = requestAnimationFrame(_);
2096
+ }
2097
+ function v() {
2098
+ y(), r <= 0 && (i = 0, a = 0), o = null, g(), s = requestAnimationFrame(_);
2099
+ }
2100
+ function y() {
2101
+ s && (cancelAnimationFrame(s), s = null, o = null);
2102
+ }
2103
+ function b() {
2104
+ if (f <= 0) return 0;
2105
+ let e = 0;
2106
+ for (let t = 0; t < i; t++) e += l[t];
2107
+ return e += a, e / f;
2108
+ }
2109
+ function x() {
2110
+ document.visibilityState === "visible" ? v() : y();
2111
+ }
2112
+ return r > 0 && m(r), document.addEventListener("visibilitychange", x), v(), {
2113
+ stop: () => {
2114
+ y(), document.removeEventListener("visibilitychange", x);
2115
+ },
2116
+ getProgress: b
2117
+ };
2118
+ }
2119
+ //#endregion
2120
+ //#region ../wayfinding/src/renderer/routeLineManager.ts
2121
+ function Xr({ p0: e, p1: t }, n) {
2122
+ return {
2123
+ points: {
2124
+ p0: {
2125
+ x: e.x,
2126
+ y: e.y
2127
+ },
2128
+ p1: {
2129
+ x: t.x,
2130
+ y: t.y
2131
+ }
2132
+ },
2133
+ color: n,
2134
+ width: 10
2135
+ };
2136
+ }
2137
+ function Zr(e, t) {
2138
+ return e.points.p0.x === t.p0.x && e.points.p0.y === t.p0.y && e.points.p1.x === t.p1.x && e.points.p1.y === t.p1.y;
2139
+ }
2140
+ function Qr(e, t, n, r) {
2141
+ let i = r.lines, a = r.linesAnimated, o = null, s = 1;
2142
+ function c(e) {
2143
+ s = e;
2144
+ }
2145
+ function l(t) {
2146
+ u(t), t.children = [], e.touchLayer(t);
2147
+ }
2148
+ function u(t) {
2149
+ for (let n of t.children) n.hidden = !0, e.touchDef(n);
2150
+ }
2151
+ function d(e, t) {
2152
+ let n = i.children;
2153
+ return n.length !== e.length + t.length || a.children.length !== t.length ? !1 : e.every((e, t) => Zr(n[t], e)) && t.every((t, r) => Zr(n[e.length + r], t));
2154
+ }
2155
+ return {
2156
+ setRouteLines(r, l, f) {
2157
+ var p, m;
2158
+ let h = (p = f == null ? void 0 : f.resetAnimation) == null || p;
2159
+ if (!h && d(r, l)) return;
2160
+ e.touchLayer(i), e.touchLayer(a), a.onScale = ({ pixelSize: e }) => c(e);
2161
+ let g = 0;
2162
+ o && (h || (g = o.getProgress()), o.stop(), o = null), u(i), u(a);
2163
+ let _ = r.map((e) => Xr(e, t.passed)), v = l.map((e) => Xr(e, t.remaining));
2164
+ if (i.children = [..._, ...v], !v.length) {
2165
+ a.children = [];
2166
+ return;
2167
+ }
2168
+ let y = l.map((e) => ({
2169
+ ...Xr(e, t.active),
2170
+ hidden: !0
2171
+ }));
2172
+ a.children = y, o = (m = Yr(y, (e) => n.update(...e), () => s, g)) == null ? null : m;
2173
+ },
2174
+ clearLines() {
2175
+ o && (o.stop(), o = null), l(i), l(a);
2176
+ },
2177
+ destroy() {
2178
+ this.clearLines(), a.onScale = void 0;
2179
+ }
2180
+ };
2181
+ }
2182
+ //#endregion
2183
+ //#region ../wayfinding/src/renderer/trailManager.ts
2184
+ var $r = 40;
2185
+ function ei(e, t) {
2186
+ let n = /* @__PURE__ */ new Map(), r = 1, i = !1;
2187
+ function a(e) {
2188
+ r = e;
2189
+ let i = [], a = !1;
2190
+ for (let e of n.values()) {
2191
+ let t = c(e);
2192
+ i.push(...t.changed), a || (a = t.membershipChanged);
2193
+ }
2194
+ return a && i.push(t), i.length ? i : void 0;
2195
+ }
2196
+ function o(n, r) {
2197
+ if (!r.length) return;
2198
+ let i = new Set(r);
2199
+ for (let e of i) e.hidden = !0;
2200
+ t.children = t.children.filter((e) => !i.has(e)), e.touchLayer(t);
2201
+ }
2202
+ function s() {
2203
+ i || (t.onScale = ({ pixelSize: e }) => a(e), i = !0, e.touchLayer(t));
2204
+ }
2205
+ function c(n) {
2206
+ s();
2207
+ let i = $r * r, a = br(n.from, n.to, i), c = n.canvas, l = {
2208
+ x: n.width * r,
2209
+ y: n.height * r
2210
+ }, u = n.dotDefs, d = Math.min(u.length, a.length), f = [];
2211
+ for (let e = 0; e < d; e++) {
2212
+ let t = u[e].bounds;
2213
+ t.set(a[e].x, a[e].y, l.x, l.y, t.rotation, t.elevation), f.push(u[e]);
2214
+ }
2215
+ if (a.length > d) {
2216
+ let n = a.slice(d).map((e) => ({
2217
+ source: c,
2218
+ bounds: new N({
2219
+ x: e.x,
2220
+ y: e.y
2221
+ }, l)
2222
+ }));
2223
+ return t.children.push(...n), u.push(...n), e.touchLayer(t), {
2224
+ changed: f,
2225
+ membershipChanged: !0
2226
+ };
2227
+ }
2228
+ if (u.length > d) {
2229
+ let e = u.splice(d);
2230
+ return o(n, e), f.push(...e), {
2231
+ changed: f,
2232
+ membershipChanged: !0
2233
+ };
2234
+ }
2235
+ return {
2236
+ changed: f,
2237
+ membershipChanged: !1
2238
+ };
2239
+ }
2240
+ function l(t) {
2241
+ let r = n.get(t);
2242
+ if (r) {
2243
+ o(r, r.dotDefs);
2244
+ for (let t of r.dotDefs) e.touchDef(t);
2245
+ r.dotDefs = [], n.delete(t);
2246
+ }
2247
+ }
2248
+ function u(t) {
2249
+ for (let n of t.changed) e.touchDef(n);
2250
+ }
2251
+ return {
2252
+ setTrail(e, t, r, i) {
2253
+ if (t === null || r === null) {
2254
+ l(e);
2255
+ return;
2256
+ }
2257
+ if (!i) throw Error(`renderer: setTrail("${e}") requires options when from/to are non-null`);
2258
+ let a = n.get(e);
2259
+ if (a) {
2260
+ if (a.canvas !== i.canvas) throw Error(`renderer: trail "${e}" cannot change canvas after first call`);
2261
+ a.from = t, a.to = r, u(c(a));
2262
+ return;
2263
+ }
2264
+ let { width: o, height: s } = Hr(i.canvas, i.width, i.height), d = {
2265
+ from: t,
2266
+ to: r,
2267
+ canvas: i.canvas,
2268
+ width: o,
2269
+ height: s,
2270
+ dotDefs: []
2271
+ };
2272
+ n.set(e, d), u(c(d));
2273
+ },
2274
+ destroy() {
2275
+ for (let e of [...n.keys()]) l(e);
2276
+ t.onScale = void 0, i = !1;
2277
+ }
2278
+ };
2279
+ }
2280
+ //#endregion
2281
+ //#region ../wayfinding/src/renderer/createWayfindingRenderer.ts
2282
+ var ti = {
2283
+ passed: "#B5B7BC",
2284
+ remaining: "#A4CCE2",
2285
+ active: "#0794EA"
2286
+ };
2287
+ function ni(e, t, n = {}) {
2288
+ let r = {
2289
+ ...ti,
2290
+ ...n.colors
2291
+ }, i = Kr(e), a = Wr(i, e, t, n.screenSpaceIcons), o = ei(i, t.trail), s = Qr(i, r, e, t), c = {
2292
+ setIcon: (...e) => a.setIcon(...e),
2293
+ clearIcons: (...e) => a.clearIcons(...e),
2294
+ setTrail: (...e) => o.setTrail(...e),
2295
+ setRouteLines: (...e) => s.setRouteLines(...e),
2296
+ handleClick: (e) => a.handleClick(e),
2297
+ handleHover: (e) => a.handleHover(e),
2298
+ clearRoute() {
2299
+ s.clearLines(), o.destroy(), a.hideAll();
2300
+ },
2301
+ flush: () => i.flush(),
2302
+ destroy() {
2303
+ c.clearRoute(), a.destroy(), o.destroy(), s.destroy(), i.flush(), i.destroy();
2304
+ }
2305
+ };
2306
+ return c;
2307
+ }
2308
+ //#endregion
2309
+ //#region ../wayfinding/src/renderer/layers.ts
2310
+ var ri = "wayfinding", ii = "wf-trail-points", ai = "wf-lines", oi = "wf-lines-animated", si = "wf-points", ci = "wf-current-position";
2311
+ function li(e = {}) {
2312
+ return {
2313
+ name: ri,
2314
+ children: [
2315
+ {
2316
+ name: ii,
2317
+ children: []
2318
+ },
2319
+ {
2320
+ name: ai,
2321
+ children: []
2322
+ },
2323
+ {
2324
+ name: oi,
2325
+ children: []
2326
+ },
2327
+ {
2328
+ name: si,
2329
+ children: []
2330
+ },
2331
+ {
2332
+ name: ci,
2333
+ children: []
2334
+ }
2335
+ ],
2336
+ dim: 0,
2337
+ overlay: e.overlay
2338
+ };
2339
+ }
2340
+ function ui(e) {
2341
+ let t = e.children.find((e) => "name" in e && e.name === ri && "children" in e);
2342
+ if (!t) throw Error("The scene holds no wayfinding block — mount `root` first.");
2343
+ let n = new Map(t.children.map((e) => [e.name, e]));
2344
+ function r(e) {
2345
+ let t = n.get(e);
2346
+ if (!t) throw Error(`The wayfinding block is missing its \`${e}\` layer.`);
2347
+ return t;
2348
+ }
2349
+ return {
2350
+ trail: r(ii),
2351
+ lines: r(ai),
2352
+ linesAnimated: r(oi),
2353
+ icons: r(si),
2354
+ currentPosition: r(ci)
2355
+ };
2356
+ }
2357
+ //#endregion
2358
+ //#region ../wayfinding/src/runtime/positionView.ts
2359
+ var di = "current-position", fi = "position";
2360
+ function pi({ renderer: e, iconProvider: t }) {
2361
+ return {
2362
+ place(n, r) {
2363
+ let i = Number.isFinite(n.heading), a = i ? "current_arrow" : "current", o = i ? w(n.heading) : void 0, s = t.getIcon(a);
2364
+ e.setIcon(fi, {
2365
+ canvas: s.canvas,
2366
+ width: s.width,
2367
+ height: s.height,
2368
+ onTop: !0,
2369
+ x: n.x,
2370
+ y: n.y,
2371
+ rotation: o,
2372
+ screenSpace: !i && void 0,
2373
+ hidden: r,
2374
+ dimmed: r,
2375
+ origin: [.5, .5]
2376
+ });
2377
+ },
2378
+ hide() {
2379
+ e.setIcon(fi, null);
2380
+ }
2381
+ };
2382
+ }
2383
+ //#endregion
2384
+ //#region ../wayfinding/src/runtime/endpointView.ts
2385
+ function mi(e, t) {
2386
+ return !t || !e.bounds && e.id !== "current-position";
2387
+ }
2388
+ function hi({ renderer: e, iconProvider: t, floorContext: n }) {
2389
+ return {
2390
+ place(r, i, a, o) {
2391
+ if (!a.length) return;
2392
+ let s = n.isLayerVisible(r.layer), c = n.isLayerVisible(i.layer), l = a[0], u = a[a.length - 1], d = r.id === "current-position" && o, f = t.getIcon(d ? "source_inactive" : "source"), p = t.getIcon("destination");
2393
+ e.setIcon("source", {
2394
+ canvas: f.canvas,
2395
+ width: f.width,
2396
+ height: f.height,
2397
+ x: l.x,
2398
+ y: l.y,
2399
+ hidden: mi(r, s),
2400
+ dimmed: !s,
2401
+ cardinalSnap: !0
2402
+ }), e.setIcon("destination", {
2403
+ canvas: p.canvas,
2404
+ width: p.width,
2405
+ height: p.height,
2406
+ x: u.x,
2407
+ y: u.y,
2408
+ hidden: !c || !i.bounds,
2409
+ dimmed: !c,
2410
+ cardinalSnap: !0
2411
+ });
2412
+ },
2413
+ hide() {
2414
+ e.setIcon("source", null), e.setIcon("destination", null);
2415
+ }
2416
+ };
2417
+ }
2418
+ //#endregion
2419
+ //#region ../wayfinding/src/runtime/getRouteLines.ts
2420
+ function gi({ engine: e, from: t, to: n, waypoints: r, accessible: i }) {
2421
+ return r != null && r.length ? e.buildWaypointsRoute([
2422
+ t,
2423
+ ...r,
2424
+ n
2425
+ ], { accessible: i }).lines : e.buildRoute(t, n, { accessible: i }).lines;
2426
+ }
2427
+ //#endregion
2428
+ //#region ../wayfinding/src/runtime/snapPositionToRoute.ts
2429
+ function _i(e, t, n) {
2430
+ if (!(t != null && t.bounds)) return !1;
2431
+ let r = n == null || !t.layer || t.layer === n, i = lr({
2432
+ x: e.x,
2433
+ y: e.y
2434
+ }, t.bounds);
2435
+ return r && i;
2436
+ }
2437
+ function vi(e, t, n, r, i) {
2438
+ if (!t.length) return { snapped: !1 };
2439
+ let a = e.layer || null;
2440
+ if (_i(e, n, a)) {
2441
+ let e = t[0];
2442
+ return {
2443
+ snapped: !0,
2444
+ snappedPoint: e.p0,
2445
+ snappedLine: e,
2446
+ distance: Kn(t)
2447
+ };
2448
+ }
2449
+ if (_i(e, r, a)) {
2450
+ let e = t[t.length - 1];
2451
+ return {
2452
+ snapped: !0,
2453
+ snappedPoint: e.p1,
2454
+ snappedLine: e,
2455
+ distance: 0
2456
+ };
2457
+ }
2458
+ return Br(e, t, { snapThreshold: i });
2459
+ }
2460
+ //#endregion
2461
+ //#region ../wayfinding/src/runtime/positionTrailView.ts
2462
+ var yi = "trail";
2463
+ function bi({ renderer: e, iconProvider: t, floorContext: n, trails: r, snapThreshold: i }) {
2464
+ let a = pi({
2465
+ renderer: e,
2466
+ iconProvider: t
2467
+ });
2468
+ return {
2469
+ placeIcon(e) {
2470
+ let t = !n.isLayerVisible(e.layer);
2471
+ a.place(e, t);
2472
+ },
2473
+ hideIcon() {
2474
+ a.hide();
2475
+ },
2476
+ applyToRoute(e, t, r) {
2477
+ let o = vi(e, r, t.from, t.to, i), s = !n.isLayerVisible(e.layer);
2478
+ return o.snapped ? a.place({
2479
+ ...e,
2480
+ x: o.snappedPoint.x,
2481
+ y: o.snappedPoint.y
2482
+ }, s) : a.place(e, s), o;
2483
+ },
2484
+ setTrail(e, t) {
2485
+ e && t ? r.place(yi, e, t) : r.clear(yi);
2486
+ },
2487
+ clearTrail() {
2488
+ r.clear(yi);
2489
+ }
2490
+ };
2491
+ }
2492
+ //#endregion
2493
+ //#region ../wayfinding/src/runtime/routeLinesView.ts
2494
+ function xi({ renderer: e }) {
2495
+ return {
2496
+ draw({ passed: t, remaining: n }, r = !1) {
2497
+ e.setRouteLines(t, n, { resetAnimation: !r });
2498
+ },
2499
+ clear() {
2500
+ e.setRouteLines([], [], { resetAnimation: !0 });
2501
+ }
2502
+ };
2503
+ }
2504
+ //#endregion
2505
+ //#region ../wayfinding/src/runtime/routeRenderData.ts
2506
+ function Si({ routeLines: e, activeFloors: t, snap: n }) {
2507
+ let r = e.filter((e) => !e.virtual), i = (e) => t === null ? e : e.filter((e) => t.includes(e.p0.layer));
2508
+ if (!(n != null && n.snapped)) return {
2509
+ passed: [],
2510
+ remaining: i(r),
2511
+ distance: Kn(r)
2512
+ };
2513
+ let { passed: a, remaining: o } = Vr(r, n.snappedPoint), s = o !== r && o.length > 0 && o[0].p0.layer === n.snappedPoint.layer ? [{
2514
+ ...o[0],
2515
+ p0: n.snappedPoint
2516
+ }, ...o.slice(1)] : o;
2517
+ return {
2518
+ passed: i(a),
2519
+ remaining: i(s),
2520
+ distance: n.distance
2521
+ };
2522
+ }
2523
+ //#endregion
2524
+ //#region ../wayfinding/src/runtime/routeUpdate.ts
2525
+ function Ci(e, t) {
2526
+ return {
2527
+ lines: e.filter((e) => !e.virtual),
2528
+ bounds: Or(t.flatMap((e) => [e.p0, e.p1]))
2529
+ };
2530
+ }
2531
+ //#endregion
2532
+ //#region ../wayfinding/src/runtime/trailView.ts
2533
+ function wi({ renderer: e, iconProvider: t, floorContext: n }) {
2534
+ let r = /* @__PURE__ */ new Set();
2535
+ function i(e, t) {
2536
+ if (n.showAllFloors()) return !0;
2537
+ let r = n.getActiveFloors();
2538
+ return r.includes(e) && r.includes(t);
2539
+ }
2540
+ function a(t) {
2541
+ e.setTrail(t, null, null), r.delete(t);
2542
+ }
2543
+ return {
2544
+ place(n, o, s) {
2545
+ if (!i(o.layer, s.layer)) {
2546
+ a(n);
2547
+ return;
2548
+ }
2549
+ let c = t.getIcon("trail");
2550
+ e.setTrail(n, o, s, {
2551
+ canvas: c.canvas,
2552
+ width: c.width,
2553
+ height: c.height
2554
+ }), r.add(n);
2555
+ },
2556
+ clear(e) {
2557
+ a(e);
2558
+ },
2559
+ clearAll() {
2560
+ for (let t of r) e.setTrail(t, null, null);
2561
+ r.clear();
2562
+ }
2563
+ };
2564
+ }
2565
+ //#endregion
2566
+ //#region ../wayfinding/src/runtime/transitionView.ts
2567
+ var Ti = "transition";
2568
+ function Ei({ renderer: e, iconProvider: t, floorContext: n, onTransitionClick: r }) {
2569
+ return {
2570
+ place(i) {
2571
+ e.clearIcons(Ti);
2572
+ let a;
2573
+ if (n.showAllFloors()) a = null;
2574
+ else if (a = n.getActiveFloors(), !a.length) return;
2575
+ let o = Dr({
2576
+ routeLines: i,
2577
+ currentLayerNames: a,
2578
+ floorOrder: n.getFloorOrder()
2579
+ });
2580
+ for (let [n, i] of o.entries()) {
2581
+ let a = t.getIcon(Di(i.role, i.direction));
2582
+ e.setIcon(Ti, {
2583
+ canvas: a.canvas,
2584
+ width: a.width,
2585
+ height: a.height,
2586
+ x: i.x,
2587
+ y: i.y,
2588
+ cardinalSnap: !0,
2589
+ onClick: i.role === "exit" ? () => r(i) : void 0
2590
+ }, n);
2591
+ }
2592
+ },
2593
+ clear() {
2594
+ e.clearIcons(Ti);
2595
+ }
2596
+ };
2597
+ }
2598
+ function Di(e, t) {
2599
+ return e === "entry" ? "transition_entry" : t === "up" ? "transition_up" : t === "down" ? "transition_down" : "transition";
2600
+ }
2601
+ //#endregion
2602
+ //#region ../wayfinding/src/runtime/createWayfindingRuntime.ts
2603
+ var Oi = (e) => e.flatMap((e) => [e.p0, e.p1]);
2604
+ function ki({ engine: e, renderer: t, iconProvider: n, floorContext: r, snapThreshold: i, rerouteThreshold: a, onTransitionClick: o, onRouteUpdate: s, onRouteDistance: c }) {
2605
+ let l = zr(a), u = hi({
2606
+ renderer: t,
2607
+ iconProvider: n,
2608
+ floorContext: r
2609
+ }), d = Ei({
2610
+ renderer: t,
2611
+ iconProvider: n,
2612
+ floorContext: r,
2613
+ onTransitionClick: o
2614
+ }), f = bi({
2615
+ renderer: t,
2616
+ iconProvider: n,
2617
+ floorContext: r,
2618
+ trails: wi({
2619
+ renderer: t,
2620
+ iconProvider: n,
2621
+ floorContext: r
2622
+ }),
2623
+ snapThreshold: i
2624
+ }), p = xi({ renderer: t }), m = [], h = null, g = null, _ = null, v = 0, y = !1, b = !1;
2625
+ function x() {
2626
+ return r.showAllFloors() ? null : r.getActiveFloors();
2627
+ }
2628
+ function S() {
2629
+ let e = x();
2630
+ return e === null ? m.filter((e) => !e.virtual) : m.filter((t) => e.includes(t.p0.layer) && !t.virtual);
2631
+ }
2632
+ function C(e) {
2633
+ return l.shouldReroute(e, m.filter((e) => !e.virtual));
2634
+ }
2635
+ function w() {
2636
+ if (!h || !g) return null;
2637
+ let e = S();
2638
+ return e.length ? {
2639
+ from: h,
2640
+ to: g,
2641
+ routePoints: Oi(e),
2642
+ visibleLines: e
2643
+ } : null;
2644
+ }
2645
+ function T(e = null, t = !1) {
2646
+ if (!h || !g) return;
2647
+ let n = Si({
2648
+ routeLines: m,
2649
+ activeFloors: x(),
2650
+ snap: e
2651
+ });
2652
+ p.draw(n, t), v = n.distance;
2653
+ }
2654
+ function E(e) {
2655
+ let t = w();
2656
+ if (!t) {
2657
+ f.setTrail(null, null);
2658
+ return;
2659
+ }
2660
+ let n = _ && e && !e.snapped ? _ : null, r = (e) => {
2661
+ var t;
2662
+ return (t = e.bounds) != null && t.length ? null : e.id === "current-position" ? n : e;
2663
+ }, i = y ? null : r(t.from);
2664
+ if (i) {
2665
+ f.setTrail(t.routePoints[0], i);
2666
+ return;
2667
+ }
2668
+ let a = r(t.to);
2669
+ f.setTrail(a ? t.routePoints[t.routePoints.length - 1] : null, a);
2670
+ }
2671
+ function D() {
2672
+ if (!h || !g) return;
2673
+ let e = w();
2674
+ if (!e) {
2675
+ u.hide(), d.clear(), f.clearTrail(), T();
2676
+ return;
2677
+ }
2678
+ u.place(h, g, e.routePoints, b), d.place(m), T(), E(null);
2679
+ }
2680
+ function O() {
2681
+ if (!h || !g) return;
2682
+ let e = w();
2683
+ e && u.place(h, g, e.routePoints, b);
2684
+ }
2685
+ function k() {
2686
+ if (b = !1, !_ || !h || !g) return null;
2687
+ let e = m.filter((e) => !e.virtual);
2688
+ if (!e.length) return null;
2689
+ let t = w(), n = t ? f.applyToRoute(_, t, e) : vi(_, e, h, g, i);
2690
+ return n.snapped && (y = !0), b = n.snapped, n;
2691
+ }
2692
+ function A() {
2693
+ let e = Ci(m, S());
2694
+ return s(e.lines, e.bounds), e;
2695
+ }
2696
+ function j({ from: n, to: r, waypoints: i, accessible: a }) {
2697
+ let o = gi({
2698
+ engine: e,
2699
+ from: n,
2700
+ to: r,
2701
+ waypoints: i,
2702
+ accessible: a
2703
+ });
2704
+ if (!o.length) return M(), !1;
2705
+ y = !1, h = n, g = r, m = o, D();
2706
+ let { lines: s } = A(), l = k();
2707
+ return O(), E(l), l && T(l, !0), c(l ? v : Kn(s)), t.flush(), !0;
2708
+ }
2709
+ function ee(e) {
2710
+ let n = _ !== null;
2711
+ if (_ = e, !e) {
2712
+ b = !1, f.hideIcon(), E(null), n && O(), T(), c(v), t.flush();
2713
+ return;
2714
+ }
2715
+ f.placeIcon(e);
2716
+ let r = k();
2717
+ O(), E(r), r && T(r, !0), c(v), t.flush();
2718
+ }
2719
+ function te() {
2720
+ D();
2721
+ let e = k();
2722
+ O(), E(e), e && T(e, !0), m.length && A(), c(v), t.flush();
2723
+ }
2724
+ function M() {
2725
+ y = !1, m = [], h = null, g = null, v = 0, u.hide(), d.clear(), f.clearTrail(), p.clear(), s([], new le()), c(0), t.flush();
2726
+ }
2727
+ function ne() {
2728
+ M(), _ = null, t.destroy();
2729
+ }
2730
+ return {
2731
+ setRoute: j,
2732
+ onPositionChanged: ee,
2733
+ onFloorChanged: te,
2734
+ shouldReroute: C,
2735
+ clearRoute: M,
2736
+ destroy: ne
2737
+ };
2738
+ }
2739
+ //#endregion
2740
+ //#region ../wayfinding/src/createWayfinding.ts
2741
+ function Ai(e) {
2742
+ let { dataSource: t, renderer: n, iconProvider: r, floorContext: i, layers: a, gpsConfig: o } = e, s = _r(t), c = ni(n, a, {
2743
+ ...e.rendererConfig,
2744
+ screenSpaceIcons: e.screenSpaceIcons
2745
+ }), l = ki({
2746
+ engine: s,
2747
+ renderer: c,
2748
+ iconProvider: r,
2749
+ floorContext: i,
2750
+ snapThreshold: Fr({
2751
+ thresholdInMeters: Pr(o == null ? void 0 : o.snapThreshold, kr),
2752
+ gpsConfig: o
2753
+ }),
2754
+ rerouteThreshold: Ir(o),
2755
+ onTransitionClick: (t) => {
2756
+ var n;
2757
+ return (n = e.onTransitionClick) == null ? void 0 : n.call(e, t);
2758
+ },
2759
+ onRouteUpdate: (t, n) => {
2760
+ var r;
2761
+ return (r = e.onRouteUpdate) == null ? void 0 : r.call(e, t, n);
2762
+ },
2763
+ onRouteDistance: (t) => {
2764
+ var n;
2765
+ return (n = e.onRouteDistance) == null ? void 0 : n.call(e, t);
2766
+ }
2767
+ });
2768
+ return {
2769
+ setRoute: (e) => l.setRoute(e),
2770
+ buildRoute: (e, t, n) => s.buildRoute(e, t, n),
2771
+ clearRoute: () => l.clearRoute(),
2772
+ setPosition: (e) => l.onPositionChanged(e),
2773
+ notifyFloorChanged: () => l.onFloorChanged(),
2774
+ shouldReroute: (e) => l.shouldReroute(e),
2775
+ handleClick: (e) => {
2776
+ for (let t of e) if (c.handleClick(t)) return !0;
2777
+ return !1;
2778
+ },
2779
+ handleHover: (e) => e.some((e) => c.handleHover(e)),
2780
+ setIcon: (e, t, n) => c.setIcon(e, t, n),
2781
+ flush: () => c.flush(),
2782
+ destroy: () => l.destroy()
2783
+ };
2784
+ }
2785
+ //#endregion
2786
+ //#region src/wayfinding/adapters/arbitraryPoint.ts
2787
+ var ji = "Your Location", Mi = "kiosk-anchor", Ni = "journey-entrance";
2788
+ function Pi(e, t, n) {
2789
+ return {
2790
+ id: n,
2791
+ x: e.x,
2792
+ y: e.y,
2793
+ layer: e.z == null ? "" : String(e.z),
2794
+ name: t
2795
+ };
2796
+ }
2797
+ //#endregion
2798
+ //#region src/wayfinding/adapters/boothToEndpoint.ts
2799
+ function Fi(e) {
2800
+ var t, n;
2801
+ let r = e.rect;
2802
+ if (he(e)) return {
2803
+ x: r.center.x,
2804
+ y: r.center.y,
2805
+ layer: ""
2806
+ };
2807
+ let i = N.fromMinMax(r.min, r.max, e.rotate).corners();
2808
+ return {
2809
+ x: r.center.x,
2810
+ y: r.center.y,
2811
+ layer: (t = (n = e.layer) == null ? void 0 : n.name) == null ? "" : t,
2812
+ bounds: i
2813
+ };
2814
+ }
2815
+ //#endregion
2816
+ //#region src/wayfinding/adapters/campusEndpoints.ts
2817
+ function Ii(e, t) {
2818
+ let n = (e) => {
2819
+ let n = t.getEndpointLayer(e);
2820
+ return n === e.layer ? e : {
2821
+ ...e,
2822
+ layer: n
2823
+ };
2824
+ };
2825
+ return {
2826
+ ...e,
2827
+ setRoute: (t) => {
2828
+ var r;
2829
+ return e.setRoute({
2830
+ ...t,
2831
+ from: n(t.from),
2832
+ to: n(t.to),
2833
+ waypoints: (r = t.waypoints) == null ? void 0 : r.map(n)
2834
+ });
2835
+ },
2836
+ buildRoute: (t, r, i) => e.buildRoute(n(t), n(r), i)
2837
+ };
2838
+ }
2839
+ //#endregion
2840
+ //#region src/wayfinding/adapters/canvasIconProvider.ts
2841
+ var Li = "#00A2FF", Ri = "#FF9F06", K = 34, zi = 4, Bi = 56;
2842
+ function q(e, t, n, r, i, a) {
2843
+ let o = e.get(t);
2844
+ return o ? (o.id = t, D(o, n, r, i)) : a();
2845
+ }
2846
+ function J(e, t = re(e)) {
2847
+ return {
2848
+ canvas: e,
2849
+ width: t.width,
2850
+ height: t.height
2851
+ };
2852
+ }
2853
+ function Vi(e) {
2854
+ var t, n;
2855
+ let { iconMap: r, pixelRatio: i } = e, a = (t = e.sourceColor) == null ? Li : t, o = (n = e.destinationColor) == null ? Ri : n, s = e.sourceColor ? /* @__PURE__ */ new Map() : r, c = e.destinationColor ? /* @__PURE__ */ new Map() : r, l = /* @__PURE__ */ new Map();
2856
+ l.set("destination", J(q(c, "destination", K, K, i, () => b(i, o)))), l.set("source", J(q(s, "departure", K, K, i, () => pe(i, a)))), l.set("source_inactive", J(q(r, "departure_inactive", K, K, i, () => pe(i, a))));
2857
+ let u = pe(i, a);
2858
+ u.id = "current-location", l.set("current", J(u));
2859
+ let d = q(r, "transition", K, K, i, () => pe(i, a));
2860
+ return l.set("transition", J(d)), l.set("transition_up", J(q(r, "transition_up", Bi, K, i, () => d))), l.set("transition_down", J(q(r, "transition_down", Bi, K, i, () => d))), l.set("transition_entry", J(q(s, "departure", K, K, i, () => pe(i, a)))), l.set("current_arrow", J(q(r, "direction", K, K, i, () => te(i, a)))), l.set("trail", J(T(zi, "#b5b7bc"), {
2861
+ width: me(zi),
2862
+ height: me(zi)
2863
+ })), { getIcon(e) {
2864
+ let t = l.get(e);
2865
+ if (!t) throw Error(`Unknown icon: ${e}`);
2866
+ return t;
2867
+ } };
2868
+ }
2869
+ //#endregion
2870
+ //#region src/wayfinding/adapters/floorContext.ts
2871
+ var Hi = 0;
2872
+ function Ui(e, t, n, r) {
2873
+ return {
2874
+ showAllFloors() {
2875
+ return e.mode === Hi;
2876
+ },
2877
+ getActiveFloors() {
2878
+ var i;
2879
+ if (n != null && n.isCampusMode) {
2880
+ var a;
2881
+ return [...e.layers.filter((e) => e.visible).map((e) => e.name), ...(a = r == null ? void 0 : r.getOutdoorLayers()) == null ? [] : a];
2882
+ }
2883
+ let o = (i = t.currentRouteLayer) == null ? void 0 : i.name;
2884
+ return o && e.layers.some((e) => e.name === o && e.visible) ? [o] : [];
2885
+ },
2886
+ isLayerVisible(t) {
2887
+ var n, r;
2888
+ return t ? e.findLayer ? (n = (r = e.findLayer(t)) == null ? void 0 : r.visible) == null || n : e.layers.some((e) => e.name === t && e.visible) : !0;
2889
+ },
2890
+ getFloorOrder() {
2891
+ return e.floors.map((e) => e.name).reverse();
2892
+ }
2893
+ };
2894
+ }
2895
+ //#endregion
2896
+ //#region src/wayfinding/adapters/graphDataSource.ts
2897
+ var Wi = (e) => !!(e != null && e.startsWith("WF")), Gi = {
2898
+ venues: [],
2899
+ venueAt: () => null,
2900
+ venueOfLayer: () => null
2901
+ };
2902
+ function Ki(e = Gi) {
2903
+ let t = (t) => {
2904
+ var n;
2905
+ return (n = e.venueAt(t)) == null || (n = n.levels.find((e) => e.ordinal === 0)) == null ? void 0 : n.layer.name;
2906
+ }, n = null, r = () => {
2907
+ var r, i;
2908
+ let a = c(), { venues: o } = e;
2909
+ if ((n == null ? void 0 : n.wfData) === a && n.venues === o) return n;
2910
+ let s = (r = a == null ? void 0 : a.lines) == null ? [] : r, l = (i = a == null ? void 0 : a.lineEnds) == null ? [] : i;
2911
+ if (!o.length) n = {
2912
+ wfData: a,
2913
+ venues: o,
2914
+ lines: s,
2915
+ lineEnds: l,
2916
+ outdoorLayers: [],
2917
+ campusLayers: []
2918
+ };
2919
+ else {
2920
+ let e = /* @__PURE__ */ new Set(), r = (n) => {
2921
+ if (!Wi(n.layer)) return n;
2922
+ let r = t(n);
2923
+ return r ? (e.add(r), {
2924
+ ...n,
2925
+ layer: r
2926
+ }) : n;
2927
+ }, i = s.map((e) => ({
2928
+ ...e,
2929
+ p0: r(e.p0),
2930
+ p1: r(e.p1)
2931
+ })), c = new Set(i.flatMap(({ p0: e, p1: t }) => [e.layer, t.layer]).filter((e) => Wi(e)));
2932
+ n = {
2933
+ wfData: a,
2934
+ venues: o,
2935
+ lines: i,
2936
+ lineEnds: l.map(r),
2937
+ outdoorLayers: [...c],
2938
+ campusLayers: [...e, ...c]
2939
+ };
2940
+ }
2941
+ return n;
2942
+ };
2943
+ return {
2944
+ getLines: () => r().lines,
2945
+ getLineEnds: () => r().lineEnds,
2946
+ getOutdoorLayers: () => r().outdoorLayers,
2947
+ getCampusLayers: () => r().campusLayers,
2948
+ getEndpointLayer: (n) => {
2949
+ var i, a;
2950
+ let { campusLayers: o, outdoorLayers: s } = r();
2951
+ return !n.layer || e.venueOfLayer(n.layer) || !o.length || (i = (a = t(n)) == null ? s[0] : a) == null ? n.layer : i;
2952
+ }
2953
+ };
2954
+ }
2955
+ //#endregion
2956
+ //#region src/utils/math.ts
2957
+ var qi = /* @__PURE__ */ e(de(), 1);
2958
+ function Ji(e, t) {
2959
+ return e * (1 - t / 100);
2960
+ }
2961
+ //#endregion
2962
+ //#region src/wayfinding/adapters/kioskCanvas.ts
2963
+ var Yi = 199, Xi = 152, Zi = 55, Qi = "#ee4422";
2964
+ function $i(e, t) {
2965
+ let n = devicePixelRatio, r = e == null ? void 0 : e.get("kiosk");
2966
+ if (r) {
2967
+ r.id = "kiosk";
2968
+ let e = t ? t / 100 : 1;
2969
+ return D(r, Ji(Yi * e, Zi), Ji(Xi * e, Zi), n);
2970
+ }
2971
+ return te(n, (0, qi.default)(Qi).hex());
2972
+ }
2973
+ //#endregion
2974
+ //#region src/wayfinding/adapters/positionInput.ts
2975
+ function ea(e) {
2976
+ return {
2977
+ x: e.x,
2978
+ y: e.y,
2979
+ layer: e.z == null ? "" : String(e.z),
2980
+ heading: Number.isFinite(e.angle) ? e.angle : void 0
2981
+ };
2982
+ }
2983
+ //#endregion
2984
+ //#region src/wayfinding/bindMobxReactions.ts
2985
+ var ta = (e) => "rect" in e ? Fi(e) : e;
2986
+ function na({ wayfinding: e, kioskHandler: t, yahHandler: n, stores: { routeStore: r, uiState: i, layerStore: a } }) {
2987
+ let o = [];
2988
+ function s() {
2989
+ var t;
2990
+ let n = i.selectedRoute, a = n != null && n.from ? ta(n.from) : null, o = n != null && n.to ? ta(n.to) : null;
2991
+ if (!a || !o) {
2992
+ e.clearRoute(), r.markRouted(n);
2993
+ return;
2994
+ }
2995
+ let s = e.setRoute({
2996
+ from: a,
2997
+ to: o,
2998
+ waypoints: n == null || (t = n.waypoints) == null ? void 0 : t.map(Fi),
2999
+ accessible: r.onlyAccessible
3000
+ });
3001
+ r.markRouted(n), s === !1 && console.error(/* @__PURE__ */ Error(`Route not found: (${a.x},${a.y}) → (${o.x},${o.y})`));
3002
+ }
3003
+ function c() {
3004
+ let t = r.currentPosition, a = r.iconType !== 0, o = i.selectedRoute, s = !!(o != null && o.from && o != null && o.to), c = a && !s;
3005
+ if (!t) {
3006
+ e.setPosition(null), n(null);
3007
+ return;
3008
+ }
3009
+ let l = ea(t);
3010
+ c ? (e.setPosition(null), n({
3011
+ x: l.x,
3012
+ y: l.y,
3013
+ layer: l.layer
3014
+ })) : (n(null), e.setPosition(l));
3015
+ }
3016
+ function l() {
3017
+ var t;
3018
+ let n = r.currentPosition, a = i.selectedRoute;
3019
+ if (!n || !(a != null && a.to)) return;
3020
+ let o = !a.from, s = ((t = a.from) == null ? void 0 : t.id) === "current-position" && e.shouldReroute(ea(n));
3021
+ !o && !s || r.rebuildRouteFromPosition(Pi(n, ji, di));
3022
+ }
3023
+ function u() {
3024
+ var e;
3025
+ t((e = i.kioskData) == null ? null : e);
3026
+ }
3027
+ function d() {
3028
+ return a.layers.filter((e) => e.visible).map((e) => e.name);
3029
+ }
3030
+ function f() {
3031
+ var e;
3032
+ let t = i.selectedRoute, n = r.currentPosition;
3033
+ if (!(t != null && t.to) || !n || ((e = t.from) == null ? void 0 : e.id) !== "current-position" || r.routeLines.length > 0) return;
3034
+ let a = n.z == null ? "" : String(n.z);
3035
+ t.from.x === n.x && t.from.y === n.y && t.from.layer === a || r.rebuildRouteFromPosition(Pi(n, ji, di));
3036
+ }
3037
+ o.push(h(() => a.layersLoaded, () => {
3038
+ s(), c();
3039
+ }), h(() => [i.selectedRoute, r.onlyAccessible], () => {
3040
+ s(), c();
3041
+ }), h(() => {
3042
+ let e = r.currentPosition;
3043
+ return e ? {
3044
+ x: e.x,
3045
+ y: e.y,
3046
+ z: e.z,
3047
+ angle: e.angle,
3048
+ iconType: r.iconType
3049
+ } : null;
3050
+ }, () => {
3051
+ c();
3052
+ }, { equals: m.structural }), h(() => {
3053
+ let e = r.currentPosition;
3054
+ return e ? {
3055
+ x: e.x,
3056
+ y: e.y,
3057
+ z: e.z
3058
+ } : null;
3059
+ }, () => {
3060
+ l(), f();
3061
+ }, { equals: m.structural }), h(() => [
3062
+ i.kioskData,
3063
+ a.mode,
3064
+ d()
3065
+ ], () => u(), { equals: m.structural }));
3066
+ let p = null, g = h(() => [
3067
+ r.currentRouteLayer,
3068
+ i.getRouteNextFloor,
3069
+ d().join("\n")
3070
+ ], () => {
3071
+ a.layersLoaded && (p !== null && clearTimeout(p), p = setTimeout(() => {
3072
+ e.notifyFloorChanged(), c(), p = null;
3073
+ }, 0));
3074
+ });
3075
+ return o.push(() => {
3076
+ p !== null && clearTimeout(p), g();
3077
+ }), s(), c(), u(), () => {
3078
+ for (let e of o) e();
3079
+ o.length = 0;
3080
+ };
3081
+ }
3082
+ //#endregion
3083
+ //#region src/wayfinding/handlers/kioskHandler.ts
3084
+ var ra = "kiosk";
3085
+ function ia({ wayfinding: e, kioskIconMap: t, floorContext: n }) {
3086
+ let r = /* @__PURE__ */ new Map(), i = (e) => {
3087
+ let n = e == null ? 100 : e, i = r.get(n);
3088
+ if (i) return i;
3089
+ let a = $i(t, e);
3090
+ return r.set(n, a), a;
3091
+ };
3092
+ return (t) => {
3093
+ var r;
3094
+ let a = n.showAllFloors() || !(t != null && t.z) || n.isLayerVisible(t.z);
3095
+ if (!t || !a) {
3096
+ e.setIcon(ra, null), e.flush();
3097
+ return;
3098
+ }
3099
+ let o = i(t.iconSizePercent);
3100
+ e.setIcon(ra, {
3101
+ canvas: o,
3102
+ ...re(o),
3103
+ x: t.x,
3104
+ y: t.y,
3105
+ rotation: w((r = t.heading) == null ? 0 : r),
3106
+ screenSpace: !1
3107
+ }), e.flush();
3108
+ };
3109
+ }
3110
+ //#endregion
3111
+ //#region src/wayfinding/handlers/yahHandler.ts
3112
+ var aa = "yah", oa = "#ff4343", sa = 64, ca = 90, la = 32;
3113
+ function ua(e, t) {
3114
+ let n = e.get(aa);
3115
+ return n ? (n.id = aa, D(n, Ji(sa, la), Ji(ca, la), t)) : S(t, oa);
3116
+ }
3117
+ function da({ wayfinding: e, iconMap: t, pixelRatio: n, floorContext: r }) {
3118
+ let i = ua(t, n);
3119
+ return i.id = "current-location-2", (t) => {
3120
+ if (!t) {
3121
+ e.setIcon(aa, null), e.flush();
3122
+ return;
3123
+ }
3124
+ let n = r.isLayerVisible(t.layer);
3125
+ e.setIcon(aa, {
3126
+ canvas: i,
3127
+ ...re(i),
3128
+ x: t.x,
3129
+ y: t.y,
3130
+ hidden: !n,
3131
+ dimmed: !n,
3132
+ origin: [.5, 1]
3133
+ }), e.flush();
3134
+ };
3135
+ }
3136
+ //#endregion
3137
+ //#region src/wayfinding/createWayfinding.ts
3138
+ var fa = null;
3139
+ function pa() {
3140
+ return fa !== null;
3141
+ }
3142
+ function ma() {
3143
+ if (!fa) throw Error("Wayfinding is not initialized — call createWayfinding() first.");
3144
+ return fa;
3145
+ }
3146
+ function ha(e, t, n) {
3147
+ return ma().wayfinding.buildRoute(e, t, n);
3148
+ }
3149
+ function ga(e) {
3150
+ let { scene: t, store: n, canvas: r } = e, i = ui(t.rootLayer), { wayfinding: a, dispose: o } = _a(n, i, {
3151
+ attachCardinalSnap: ce,
3152
+ update: ie
3153
+ }), s = i.icons;
3154
+ return s.onClick = (e) => ya(a, e), s.onPointerMove = (e) => ba(a, r, e), s.onPointerOut = () => ba(a, r), ie(s), () => {
3155
+ s.onClick = void 0, s.onPointerMove = void 0, s.onPointerOut = void 0, r.current && (r.current.style.cursor = ""), ie(s), o();
3156
+ };
3157
+ }
3158
+ function _a(e, t, r) {
3159
+ var i, a;
3160
+ let o = Ki(e.venueStore), s = (i = n().wayfindingColors) == null ? {} : i, c = Vi({
3161
+ iconMap: e.fp.icons,
3162
+ pixelRatio: devicePixelRatio,
3163
+ sourceColor: s.source,
3164
+ destinationColor: s.destination
3165
+ }), l = Ui(e.layerStore, e.routeStore, e.venueStore, o), u = Ii(Ai({
3166
+ dataSource: o,
3167
+ renderer: r,
3168
+ rendererConfig: { colors: {
3169
+ ...s.route && { remaining: s.route },
3170
+ ...s.routeActive && { active: s.routeActive },
3171
+ ...s.routePassed && { passed: s.routePassed }
3172
+ } },
3173
+ iconProvider: c,
3174
+ floorContext: l,
3175
+ layers: t,
3176
+ gpsConfig: (a = Oe()) == null || (a = a.properties) == null ? void 0 : a.config,
3177
+ screenSpaceIcons: e.uiState.is3DView,
3178
+ onTransitionClick: (t) => {
3179
+ t.role === "exit" && e.layerStore.updateVisibility(t.targetLayer, !0);
3180
+ },
3181
+ onRouteUpdate: (t, n) => {
3182
+ e.routeStore.updateRoute([...t], o.getCampusLayers()), n.isEmpty() || (e.uiState.moveToRect = n);
3183
+ },
3184
+ onRouteDistance: (t) => e.routeStore.updateRouteDistance(t)
3185
+ }), o), d = na({
3186
+ wayfinding: u,
3187
+ kioskHandler: ia({
3188
+ wayfinding: u,
3189
+ kioskIconMap: e.fp.icons,
3190
+ floorContext: l
3191
+ }),
3192
+ yahHandler: da({
3193
+ wayfinding: u,
3194
+ iconMap: e.fp.icons,
3195
+ pixelRatio: devicePixelRatio,
3196
+ floorContext: l
3197
+ }),
3198
+ stores: {
3199
+ routeStore: e.routeStore,
3200
+ uiState: e.uiState,
3201
+ layerStore: e.layerStore
3202
+ }
3203
+ });
3204
+ e.routeStore.showAccessible = o.getLines().some((e) => e.unaccessible);
3205
+ let f = { wayfinding: u };
3206
+ return fa = f, u.flush(), {
3207
+ wayfinding: u,
3208
+ dispose() {
3209
+ va(f) && (fa = null, e.routeStore.showAccessible = !1, e.routeStore.markRouted(null)), d(), u.destroy();
3210
+ }
3211
+ };
3212
+ }
3213
+ function va(e) {
3214
+ return fa === e;
3215
+ }
3216
+ function ya(e, t) {
3217
+ e.handleClick([t.def]) && t.stopPropagation();
3218
+ }
3219
+ function ba(e, t, n) {
3220
+ let r = t.current;
3221
+ if (!r) return;
3222
+ let i = n ? e.handleHover([n.def]) : !1;
3223
+ r.style.cursor = i ? "pointer" : "";
3224
+ }
3225
+ //#endregion
3226
+ //#region src/wayfinding/routeSteps.ts
3227
+ function xa(e, t, n) {
3228
+ let r = [], i = null;
3229
+ for (let a of e) {
3230
+ if (!t.has(a)) {
3231
+ i = null, r.push(a);
3232
+ continue;
3233
+ }
3234
+ i === null && n(a) && (i = a, r.push(a));
3235
+ }
3236
+ return r;
3237
+ }
3238
+ //#endregion
3239
+ //#region src/store/reveal-layer.ts
3240
+ var Sa = () => void 0;
3241
+ function Ca({ layer: e, show: t, then: n }) {
3242
+ return !e || e.visible ? (n(), Sa) : (t(e), p(() => e.visible, n));
3243
+ }
3244
+ //#endregion
3245
+ //#region src/store/RouteStore.ts
3246
+ var wa, Ta, Ea, Da, Y, Oa, ka, Aa, ja, Ma, Na, Pa, Fa, Ia, La, Ra, za, Ba, Va, Ha, Ua;
3247
+ function X(e, t, n, r) {
3248
+ n && Object.defineProperty(e, t, {
3249
+ enumerable: n.enumerable,
3250
+ configurable: n.configurable,
3251
+ writable: n.writable,
3252
+ value: n.initializer ? n.initializer.call(r) : void 0
3253
+ });
3254
+ }
3255
+ function Z(e, t, n, r, i) {
3256
+ var a = {};
3257
+ return Object.keys(r).forEach(function(e) {
3258
+ a[e] = r[e];
3259
+ }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
3260
+ return r(e, t, n) || n;
3261
+ }, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
3262
+ }
3263
+ function Q(e) {
3264
+ return typeof e == "string" ? Number(e.replace(",", ".")) : e;
3265
+ }
3266
+ var Wa = (wa = d({ keepAlive: !0 }), Ta = d({ keepAlive: !0 }), Ea = d({ keepAlive: !0 }), Da = d({ keepAlive: !0 }), Y = class {
3267
+ constructor(e) {
3268
+ this.rootStore = void 0, this.cpTimeout = void 0, X(this, "routeLines", Oa, this), this.routedRouteBox = f.box(null, { deep: !1 }), this.campusLayersBox = f.box(/* @__PURE__ */ new Set(), { deep: !1 }), X(this, "routeDistance", ka, this), X(this, "currentPosition", Aa, this), X(this, "requestCompass", ja, this), X(this, "iconType", Ma, this), X(this, "tempToBooth", Na, this), X(this, "focusEnabled", Pa, this), X(this, "prevZ", Fa, this), X(this, "markersData", Ia, this), X(this, "prevMarkers", La, this), this.pendingReveal = null, X(this, "showAccessible", Ra, this), X(this, "onlyAccessible", za, this), X(this, "currentRouteLayer", Ba, this), X(this, "currentRouteExhibitor", Va, this), this.selectRouteRequest = 0, X(this, "routeUnits", Ha, this), X(this, "isGpsTrackingEnabled", Ua, this), this.rootStore = e, this.focusEnabled = !window.location.search;
3269
+ }
3270
+ get canFindLocation() {
3271
+ return !!I.kioskData || !!this.currentPosition;
3272
+ }
3273
+ selectRoute(e, t = !0, n = !1) {
3274
+ let r = ++this.selectRouteRequest;
3275
+ if (t && (I.list = {
3276
+ type: "search",
3277
+ text: "",
3278
+ focused: !1
3279
+ }), e && !e.from && e.to) {
3280
+ let t = this.resolveFallbackFrom();
3281
+ t && (e = new $(t, e.to, e.waypoints));
3282
+ }
3283
+ e != null && e.from && e != null && e.to && e.from === e.to && (e = null);
3284
+ let i = Ka(this.rootStore.layerStore, e == null ? void 0 : e.to), a = this.rootStore.venueStore.hasVenueModel && i ? this.rootStore.venueStore.venueOfLayer(i) : null, o = a ? this.rootStore.venueStore.enterVenue(a, {
3285
+ level: i == null ? void 0 : i,
3286
+ fly: !1
3287
+ }) : null, s = [];
3288
+ e != null && e.from && e != null && e.to && window.setTimeout(() => {
3289
+ this.rootStore.showMap();
3290
+ }, navigator.userAgent.toLowerCase().indexOf("android") > -1 ? 400 : 50), (e == null ? void 0 : e.from) instanceof _ && s.push(e.from), (e == null ? void 0 : e.to) instanceof _ && (this.tempToBooth = null, s.push(e.to)), !e && F.fp.onDirection && F.fp.onDirection(null);
3291
+ let c = g(() => {
3292
+ if (r === this.selectRouteRequest) {
3293
+ if (o ? o.then(() => {
3294
+ r === this.selectRouteRequest && this.rootStore.moveToList(s, !0);
3295
+ }) : this.rootStore.moveToList(s), I.details = e, e && (!e.from || !e.to) && I.overlayBottom && (I.desiredOverlaySize = "medium"), e != null && e.to && e != null && e.from && !a) {
3296
+ let t = Ga(e.from);
3297
+ t && this.rootStore.layerStore.updateVisibility(t, !0);
3298
+ }
3299
+ if (!this.currentRouteLayer) {
3300
+ let t = Ka(this.rootStore.layerStore, e == null ? void 0 : e.from);
3301
+ t ? this.currentRouteLayer = t : i && (this.currentRouteLayer = i);
3302
+ }
3303
+ t && e != null && e.from && e != null && e.to && Ht(U.ClickDirections, `${e != null && e.from ? "From " + e.from.name : ""} ${e != null && e.to ? "To " + e.to.name : ""}`);
3304
+ }
3305
+ });
3306
+ n ? c() : setTimeout(c, 200);
3307
+ }
3308
+ rebuildRouteFromPosition(e) {
3309
+ let t = I.selectedRoute;
3310
+ t != null && t.to && this.selectRoute(new $(e, t.to, t.waypoints), !1, !0);
3311
+ }
3312
+ resolveFallbackFrom() {
3313
+ var e;
3314
+ if (this.currentPosition) return Pi(this.currentPosition, ji, di);
3315
+ let t = I.kioskData;
3316
+ return t ? Pi({
3317
+ x: t.x,
3318
+ y: t.y,
3319
+ z: (e = t.z) == null ? void 0 : e
3320
+ }, De(), Mi) : null;
3321
+ }
3322
+ setStartPoint(e) {
3323
+ let t = I.selectedRoute;
3324
+ if (t != null && t.to && !(t != null && t.from) && e) {
3325
+ let n = new $(e, t.to, t.waypoints);
3326
+ this.selectRoute(n);
3327
+ }
3328
+ }
3329
+ get pathLayers() {
3330
+ var e;
3331
+ let t = (e = F.routeStore.routeLines) == null || (e = e.map((e) => e.p0.layer)) == null ? void 0 : e.filter((e, t, n) => n.indexOf(e) === t);
3332
+ return xa(t == null ? [] : t, this.campusLayersBox.get(), (e) => !!F.layerStore.findLayer(e)).map((e, t) => ({
3333
+ id: t + 1,
3334
+ layer: F.layerStore.findLayer(e)
3335
+ }));
3336
+ }
3337
+ getNearestBooth(e) {
3338
+ var t;
3339
+ if (!e) return null;
3340
+ let n = this.rootStore.layerStore.findLayer(e.z), r = (t = Oe()) == null ? void 0 : t.properties.config, i = !!(e.lat && e.lng), a = r && i ? nn(e, r) : e;
3341
+ return !a || !W(a.x) || !W(a.y) ? null : this.rootStore.boothStore.booths.filter((t) => {
3342
+ if (ge.mode === oe.Default || !n) return t.visible && t.rect;
3343
+ var r;
3344
+ return t.rect && (typeof e.z != "number" && !e.z && t.visible || n.name === ((r = t.layer) == null ? void 0 : r.name));
3345
+ }).sort((e, t) => P(a, e.rect.center) - P(a, t.rect.center))[0] || null;
3346
+ }
3347
+ setMarkers(e) {
3348
+ var t, n;
3349
+ this.markersData.markers = ((t = e == null ? void 0 : e.markers) == null ? [] : t).map(qa), this.markersData.icons = (n = e == null ? void 0 : e.icons) == null ? [] : n;
3350
+ }
3351
+ selectMarker(e, t) {
3352
+ let n = this.markersData.markers.find((t) => t.id === e);
3353
+ this.markersData.markers.forEach((e) => e.active = !1), n && (n.active = !0);
3354
+ let r = F.layerStore.findLayer(n == null ? void 0 : n.z);
3355
+ if (t && n) {
3356
+ r && !(r != null && r.visible) && ge.updateVisibility(r, !0);
3357
+ let e = C();
3358
+ return e ? e.api.panTo({
3359
+ x: n.x,
3360
+ y: n.y
3361
+ }) : (s.warn("Map camera is not mounted. Cannot pan to marker."), Promise.resolve());
3362
+ }
3363
+ return Promise.resolve();
3364
+ }
3365
+ get selectedMarkers() {
3366
+ return this.markersData.markers.filter((e) => e.active);
3367
+ }
3368
+ get layers() {
3369
+ var e;
3370
+ let t = [];
3371
+ return (e = F.routeStore.routeLines) == null || e.map((e) => e.p0.layer).forEach((e) => {
3372
+ t.indexOf(e) === -1 && t.push(e);
3373
+ }), t.map((e) => F.layerStore.layers.find((t) => t.name === e)).filter((e) => !!e);
3374
+ }
3375
+ clickRoute(e, t) {
3376
+ window.__resett && window.__resett(), this.rootStore.uiState.menu = !1, I.list.type === "route-planner" && (I.list = {
3377
+ type: "search",
3378
+ text: "",
3379
+ focused: !1
3380
+ }), this.selectRoute(new $(e, t));
3381
+ }
3382
+ selectCurrentPosition(e, t = !0, n) {
3383
+ var r, i, a, o, s;
3384
+ clearTimeout(this.cpTimeout), e && (e.x = Q(e.x), e.y = Q(e.y), e.lat !== void 0 && (e.lat = Q(e.lat)), e.lng !== void 0 && (e.lng = Q(e.lng)), v() || (e.z = void 0));
3385
+ let c = t && this.rootStore.uiState.details && !(this.rootStore.uiState.details instanceof $), l = t && !c && (this.focusEnabled || this.prevZ != (e == null ? void 0 : e.z));
3386
+ this.focusEnabled && (this.focusEnabled = !1), this.prevZ = (r = e == null || (i = e.z) == null ? void 0 : i.toString()) == null ? null : r, this.iconType = +!!n;
3387
+ let u = e ? Ja(e) : null;
3388
+ if (!e || !u) {
3389
+ this.currentPosition = null;
3390
+ return;
3391
+ }
3392
+ let d = this.rootStore.venueStore, f = !!(d != null && d.hasVenueModel) && !d.venueAt(u), p = f ? null : F.layerStore.findLayer(e.z), m = new eo(u.x, u.y, f ? void 0 : (p == null ? void 0 : p.name) || ((a = this.currentRouteLayer) == null ? void 0 : a.name), an(u), e.lat, e.lng), h = !((o = this.routeLines) != null && o.length);
3393
+ p && (s = this.routeLines) != null && s.length && (h = !!this.routeLines.find((e) => e.p0.layer === p.name || e.p1.layer === p.name));
3394
+ let g = l && h;
3395
+ this.currentPosition = m, g && this.focusOnPosition(m, p), this.gpsEnabled || (this.cpTimeout = setTimeout(() => {
3396
+ this.currentPosition && this.selectCurrentPosition(null, !1);
3397
+ }, 30 * 1e3));
3398
+ }
3399
+ findLocation() {
3400
+ var e, t;
3401
+ if (!this.canFindLocation) return;
3402
+ let n = (e = this.currentPosition) == null ? I.kioskData : e;
3403
+ n && (this.currentPosition && localStorage.getItem("efp-compass-permission-granted") === "false" && (F.routeStore.requestCompass = !0), (t = this.pendingReveal) == null || t.call(this), this.pendingReveal = Ca({
3404
+ layer: F.layerStore.findLayer(n.z),
3405
+ show: (e) => ge.updateVisibility(e, !0),
3406
+ then: () => {
3407
+ I.moveToRect = this.findLocationRect(n);
3408
+ }
3409
+ }));
3410
+ }
3411
+ findLocationRect(e) {
3412
+ let t = le.fromCenter(e, {
3413
+ x: 100,
3414
+ y: 100
3415
+ }), n = ae();
3416
+ if (t.intersects(n)) return t;
3417
+ let r = Math.max(n.min.x, Math.min(e.x, n.max.x)), i = Math.max(n.min.y, Math.min(e.y, n.max.y)), a = Math.min(n.size.width, n.size.height) * .3, o = le.fromCenter({
3418
+ x: r,
3419
+ y: i
3420
+ }, {
3421
+ x: a,
3422
+ y: a
3423
+ }).intersection(n);
3424
+ return o ? le.fromUnion(t, o) : t;
3425
+ }
3426
+ focusOnPosition(e, t) {
3427
+ var n;
3428
+ (n = this.pendingReveal) == null || n.call(this), this.pendingReveal = Ca({
3429
+ layer: t,
3430
+ show: (e) => ge.updateVisibility(e, !0),
3431
+ then: () => {
3432
+ if (F.maplibreStore.showMaplibre) {
3433
+ I.moveToLocation = !0;
3434
+ return;
3435
+ }
3436
+ let t = C();
3437
+ if (t) {
3438
+ t.api.panTo({
3439
+ x: e.x,
3440
+ y: e.y
3441
+ });
3442
+ return;
3443
+ }
3444
+ s.warn("Map camera is not mounted. Cannot pan to current position.");
3445
+ }
3446
+ });
3447
+ }
3448
+ get routeInfo() {
3449
+ let e = this.routeDistance, t = this.routeUnits;
3450
+ return e ? {
3451
+ distance: `${e}${t}`,
3452
+ units: t,
3453
+ time: Zt(e, Xt(t))
3454
+ } : null;
3455
+ }
3456
+ get routedRoute() {
3457
+ return this.routedRouteBox.get();
3458
+ }
3459
+ markRouted(e) {
3460
+ this.routedRouteBox.set(e);
3461
+ }
3462
+ updateRoute(e, t = []) {
3463
+ !(e != null && e.length) && !this.routeLines.length || (this.campusLayersBox.set(new Set(t)), this.routeLines = e, this.updateRoutePoints());
3464
+ }
3465
+ updateRouteDistance(e) {
3466
+ var t, n, r, i;
3467
+ if (e == null) return;
3468
+ let a = x(), o = (t = (n = a.getAttribute("units") || "ft").toLowerCase) == null ? void 0 : t.call(n).trim(), s = (r = (i = a.getAttribute("fp-ver")) == null ? void 0 : i.startsWith("5")) != null && r;
3469
+ this.routeDistance = Math.round(e / (s ? 1 : 10)), this.routeUnits = o, this.updateRoutePoints();
3470
+ }
3471
+ updateRoutePoints() {
3472
+ let e = I.selectedRoute, t = this.routeDistance, n = this.routeUnits;
3473
+ F.fp.onDirection && setTimeout(() => {
3474
+ var r, i;
3475
+ F.fp.onDirection({
3476
+ from: $a((r = e == null ? void 0 : e.from) == null ? null : r),
3477
+ to: $a((i = e == null ? void 0 : e.to) == null ? null : i),
3478
+ lines: this.routeLines,
3479
+ distance: t == null ? "" : `${t}${n}`,
3480
+ units: n,
3481
+ time: Zt(t == null ? 0 : t, Xt(n))
3482
+ });
3483
+ }, 200);
3484
+ }
3485
+ checkRoutes() {
3486
+ if (!pa()) {
3487
+ console.warn("checkRoutes: wayfinding is not initialized — call createWayfinding() first. Skipping route check.");
3488
+ return;
3489
+ }
3490
+ let e = F.boothStore.booths;
3491
+ console.info(`Route check started ${e.length}.... `);
3492
+ for (let t = 0; t < e.length; t++) {
3493
+ let n = e[t];
3494
+ for (let r = t + 1; r < e.length; r++) {
3495
+ let t = e[r];
3496
+ ha(Fi(n), Fi(t)).lines.length || console.warn(`No route found from ${n.name} to ${t.name}`);
3497
+ }
3498
+ }
3499
+ console.info("Route check done....");
3500
+ }
3501
+ setGpsTrackingEnabled(e) {
3502
+ this.isGpsTrackingEnabled = e;
3503
+ }
3504
+ get gpsEnabled() {
3505
+ return A.autoTrackingGps && this.isGpsTrackingEnabled && !A.enableIPS;
3506
+ }
3507
+ setOnlyAccessible(e) {
3508
+ this.onlyAccessible = e;
3509
+ }
3510
+ }, Oa = Z(Y.prototype, "routeLines", [f], {
3511
+ configurable: !0,
3512
+ enumerable: !0,
3513
+ writable: !0,
3514
+ initializer: function() {
3515
+ return [];
3516
+ }
3517
+ }), ka = Z(Y.prototype, "routeDistance", [f], {
3518
+ configurable: !0,
3519
+ enumerable: !0,
3520
+ writable: !0,
3521
+ initializer: function() {
3522
+ return null;
3523
+ }
3524
+ }), Aa = Z(Y.prototype, "currentPosition", [f], {
3525
+ configurable: !0,
3526
+ enumerable: !0,
3527
+ writable: !0,
3528
+ initializer: function() {
3529
+ return null;
3530
+ }
3531
+ }), ja = Z(Y.prototype, "requestCompass", [f], {
3532
+ configurable: !0,
3533
+ enumerable: !0,
3534
+ writable: !0,
3535
+ initializer: function() {
3536
+ return !1;
3537
+ }
3538
+ }), Ma = Z(Y.prototype, "iconType", [f], {
3539
+ configurable: !0,
3540
+ enumerable: !0,
3541
+ writable: !0,
3542
+ initializer: function() {
3543
+ return 0;
3544
+ }
3545
+ }), Na = Z(Y.prototype, "tempToBooth", [f], {
3546
+ configurable: !0,
3547
+ enumerable: !0,
3548
+ writable: !0,
3549
+ initializer: function() {
3550
+ return null;
3551
+ }
3552
+ }), Pa = Z(Y.prototype, "focusEnabled", [f], {
3553
+ configurable: !0,
3554
+ enumerable: !0,
3555
+ writable: !0,
3556
+ initializer: function() {
3557
+ return !0;
3558
+ }
3559
+ }), Fa = Z(Y.prototype, "prevZ", [f], {
3560
+ configurable: !0,
3561
+ enumerable: !0,
3562
+ writable: !0,
3563
+ initializer: function() {
3564
+ return null;
3565
+ }
3566
+ }), Ia = Z(Y.prototype, "markersData", [f], {
3567
+ configurable: !0,
3568
+ enumerable: !0,
3569
+ writable: !0,
3570
+ initializer: function() {
3571
+ return {
3572
+ icons: [],
3573
+ markers: []
3574
+ };
3575
+ }
3576
+ }), La = Z(Y.prototype, "prevMarkers", [f], {
3577
+ configurable: !0,
3578
+ enumerable: !0,
3579
+ writable: !0,
3580
+ initializer: function() {
3581
+ return [];
3582
+ }
3583
+ }), Ra = Z(Y.prototype, "showAccessible", [f], {
3584
+ configurable: !0,
3585
+ enumerable: !0,
3586
+ writable: !0,
3587
+ initializer: function() {
3588
+ return !1;
3589
+ }
3590
+ }), za = Z(Y.prototype, "onlyAccessible", [f], {
3591
+ configurable: !0,
3592
+ enumerable: !0,
3593
+ writable: !0,
3594
+ initializer: function() {
3595
+ return !1;
3596
+ }
3597
+ }), Ba = Z(Y.prototype, "currentRouteLayer", [f], {
3598
+ configurable: !0,
3599
+ enumerable: !0,
3600
+ writable: !0,
3601
+ initializer: function() {
3602
+ return null;
3603
+ }
3604
+ }), Va = Z(Y.prototype, "currentRouteExhibitor", [f], {
3605
+ configurable: !0,
3606
+ enumerable: !0,
3607
+ writable: !0,
3608
+ initializer: function() {
3609
+ return null;
3610
+ }
3611
+ }), Z(Y.prototype, "canFindLocation", [d], Object.getOwnPropertyDescriptor(Y.prototype, "canFindLocation"), Y.prototype), Z(Y.prototype, "selectRoute", [g], Object.getOwnPropertyDescriptor(Y.prototype, "selectRoute"), Y.prototype), Z(Y.prototype, "rebuildRouteFromPosition", [g], Object.getOwnPropertyDescriptor(Y.prototype, "rebuildRouteFromPosition"), Y.prototype), Z(Y.prototype, "setStartPoint", [g], Object.getOwnPropertyDescriptor(Y.prototype, "setStartPoint"), Y.prototype), Z(Y.prototype, "pathLayers", [wa], Object.getOwnPropertyDescriptor(Y.prototype, "pathLayers"), Y.prototype), Z(Y.prototype, "setMarkers", [g], Object.getOwnPropertyDescriptor(Y.prototype, "setMarkers"), Y.prototype), Z(Y.prototype, "selectMarker", [g], Object.getOwnPropertyDescriptor(Y.prototype, "selectMarker"), Y.prototype), Z(Y.prototype, "selectedMarkers", [Ta], Object.getOwnPropertyDescriptor(Y.prototype, "selectedMarkers"), Y.prototype), Z(Y.prototype, "layers", [Ea], Object.getOwnPropertyDescriptor(Y.prototype, "layers"), Y.prototype), Z(Y.prototype, "clickRoute", [g], Object.getOwnPropertyDescriptor(Y.prototype, "clickRoute"), Y.prototype), Z(Y.prototype, "selectCurrentPosition", [g], Object.getOwnPropertyDescriptor(Y.prototype, "selectCurrentPosition"), Y.prototype), Z(Y.prototype, "findLocation", [g], Object.getOwnPropertyDescriptor(Y.prototype, "findLocation"), Y.prototype), Ha = Z(Y.prototype, "routeUnits", [f], {
3612
+ configurable: !0,
3613
+ enumerable: !0,
3614
+ writable: !0,
3615
+ initializer: function() {
3616
+ return "ft";
3617
+ }
3618
+ }), Z(Y.prototype, "routeInfo", [d], Object.getOwnPropertyDescriptor(Y.prototype, "routeInfo"), Y.prototype), Z(Y.prototype, "markRouted", [g], Object.getOwnPropertyDescriptor(Y.prototype, "markRouted"), Y.prototype), Z(Y.prototype, "updateRoute", [g], Object.getOwnPropertyDescriptor(Y.prototype, "updateRoute"), Y.prototype), Z(Y.prototype, "updateRouteDistance", [g], Object.getOwnPropertyDescriptor(Y.prototype, "updateRouteDistance"), Y.prototype), Z(Y.prototype, "updateRoutePoints", [g], Object.getOwnPropertyDescriptor(Y.prototype, "updateRoutePoints"), Y.prototype), Z(Y.prototype, "checkRoutes", [g], Object.getOwnPropertyDescriptor(Y.prototype, "checkRoutes"), Y.prototype), Ua = Z(Y.prototype, "isGpsTrackingEnabled", [f], {
3619
+ configurable: !0,
3620
+ enumerable: !0,
3621
+ writable: !0,
3622
+ initializer: function() {
3623
+ return !0;
3624
+ }
3625
+ }), Z(Y.prototype, "setGpsTrackingEnabled", [g], Object.getOwnPropertyDescriptor(Y.prototype, "setGpsTrackingEnabled"), Y.prototype), Z(Y.prototype, "gpsEnabled", [Da], Object.getOwnPropertyDescriptor(Y.prototype, "gpsEnabled"), Y.prototype), Z(Y.prototype, "setOnlyAccessible", [g], Object.getOwnPropertyDescriptor(Y.prototype, "setOnlyAccessible"), Y.prototype), Y);
3626
+ function Ga(e) {
3627
+ var t;
3628
+ if (e) return e instanceof _ ? (t = e.layer) == null ? void 0 : t.name : e.layer;
3629
+ }
3630
+ function Ka(e, t) {
3631
+ var n;
3632
+ return t ? t instanceof _ ? (n = t.layer) == null ? null : n : e.findLayer(t.layer) : null;
3633
+ }
3634
+ function qa(e) {
3635
+ return {
3636
+ ...e,
3637
+ x: Q(e.x),
3638
+ y: Q(e.y),
3639
+ lat: e.lat === void 0 ? void 0 : Q(e.lat),
3640
+ lng: e.lng === void 0 ? void 0 : Q(e.lng)
3641
+ };
3642
+ }
3643
+ function Ja(e) {
3644
+ var t, n;
3645
+ let r = (t = (n = Oe()) == null ? void 0 : n.properties.config) == null ? null : t, i = null;
3646
+ return r && M({
3647
+ min: r.p0,
3648
+ max: r.p2
3649
+ }, e) ? i = { ...e } : r && W(e.lat) && W(e.lng) ? i = nn(e, r) : r || (i = e), i || null;
3650
+ }
3651
+ function Ya(e) {
3652
+ var t;
3653
+ return F.boothStore.findBooth(e) || ((t = F.exhibitorStore.findExhibitor(e)) == null ? void 0 : t.booths[0]);
3654
+ }
3655
+ function Xa(e) {
3656
+ let t = F.boothStore.boothByExternalId.get(e);
3657
+ if (t) return {
3658
+ type: "booth",
3659
+ entity: t
3660
+ };
3661
+ let n = F.exhibitorStore.exhibitorByExternalId.get(e);
3662
+ if (n) return {
3663
+ type: "exhibitor",
3664
+ entity: n
3665
+ };
3666
+ }
3667
+ function Za(e) {
3668
+ let t = [], n = [];
3669
+ for (let r of e) {
3670
+ let e = Xa(r);
3671
+ e && (e.type === "booth" ? t.push(r) : n.push(r));
3672
+ }
3673
+ return {
3674
+ boothExternalIds: t,
3675
+ exhibitorExternalIds: n
3676
+ };
3677
+ }
3678
+ function Qa(e, t, n) {
3679
+ var r, i;
3680
+ return new $((r = Ya(e)) == null ? null : r, (i = Ya(t)) == null ? null : i, n == null ? void 0 : n.map((e) => Ya(e)).filter((e) => !!e));
3681
+ }
3682
+ var $ = class {
3683
+ constructor(e, t, n) {
3684
+ this.from = e, this.to = t, this.waypoints = n;
3685
+ let r = e instanceof _ ? e.id : void 0, i = t instanceof _ ? t.id : void 0;
3686
+ this.waypoints = n == null ? void 0 : n.filter((e) => e && e.id !== r && e.id !== i);
3687
+ }
3688
+ };
3689
+ function $a(e) {
3690
+ var t, n;
3691
+ return e ? e instanceof _ ? {
3692
+ id: e.id,
3693
+ name: e.name,
3694
+ externalId: e.externalId,
3695
+ layer: {
3696
+ name: (t = e.layer) == null ? void 0 : t.name,
3697
+ description: (n = e.layer) == null ? void 0 : n.description
3698
+ }
3699
+ } : {
3700
+ id: 2 ** 53 - 1,
3701
+ name: e.name,
3702
+ externalId: void 0,
3703
+ layer: {
3704
+ name: e.layer,
3705
+ description: void 0
3706
+ }
3707
+ } : null;
3708
+ }
3709
+ var eo = class {
3710
+ constructor(e, t, n, r, i, a) {
3711
+ this.x = e, this.y = t, this.z = n, this.angle = r, this.lat = i, this.lng = a;
3712
+ }
3713
+ };
3714
+ //#endregion
3715
+ export { zt as A, Oe as B, Xt as C, qt as D, Rt as E, mt as F, be as H, dt as I, ct as L, V as M, st as N, Ht as O, ut as P, lt as R, Zt as S, Lt as T, L as U, Te as V, xe as W, rn as _, Ya as a, en as b, Za as c, Mi as d, Pi as f, nn as g, tr as h, Qa as i, Wt as j, Vt as k, ga as l, li as m, $ as n, Xa as o, di as p, Wa as r, Ga as s, eo as t, Ni as u, W as v, U as w, Qt as x, tn as y, ke as z };