@xenon-device-management/xenon 2.14.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/README.md +44 -29
  2. package/lib/package.json +6 -5
  3. package/lib/public/assets/{AnnotationOverlay-B_VNtKBH.js → AnnotationOverlay-2W4JvEyZ.js} +1 -1
  4. package/lib/public/assets/{ApiKeyGate-BwuaMjkX.js → ApiKeyGate-GmckX_7r.js} +1 -1
  5. package/lib/public/assets/DeviceMosaicView-DqODzkyo.js +2 -0
  6. package/lib/public/assets/{EmptyState-BSjhk_IV.js → EmptyState-7hETKEWb.js} +1 -1
  7. package/lib/public/assets/{FieldGroup-Cb5QZsE1.js → FieldGroup-GOgssFEP.js} +1 -1
  8. package/lib/public/assets/{FilterMenu-BAaSlWbW.js → FilterMenu-Yvf6RGMd.js} +1 -1
  9. package/lib/public/assets/{Menu-JGGYrSQQ.js → Menu-KrPnfdsf.js} +1 -1
  10. package/lib/public/assets/{Modal-CFCp3n9d.js → Modal-C6WjZFeI.js} +1 -1
  11. package/lib/public/assets/{RecordingPage-CbJj_EBT.js → RecordingPage-CSRIhZEh.js} +1 -1
  12. package/lib/public/assets/{RecordingsPage-BJeYnygR.js → RecordingsPage-CB8ST3nE.js} +1 -1
  13. package/lib/public/assets/{SegmentedControl-Bg42Atjy.js → SegmentedControl-C9o90KId.js} +1 -1
  14. package/lib/public/assets/{SettingCard-Njz1pUIJ.js → SettingCard-CPm3w9l2.js} +1 -1
  15. package/lib/public/assets/{Table-BcTm5xV2.js → Table-DwIgERRt.js} +1 -1
  16. package/lib/public/assets/{activity-DOVdsfMQ.js → activity-DrLbHifn.js} +1 -1
  17. package/lib/public/assets/ai-settings-DU_Ls06P.js +16 -0
  18. package/lib/public/assets/{api-keys-BKnNSTw9.js → api-keys-CWYdEzJ_.js} +1 -1
  19. package/lib/public/assets/{apps-D0SC6uw6.js → apps-BqNVdln7.js} +1 -1
  20. package/lib/public/assets/{arrow-left-MMbTmgoE.js → arrow-left-BtB0_Jg_.js} +1 -1
  21. package/lib/public/assets/{arrow-right-BMfnGmxW.js → arrow-right-C8NhdtyN.js} +1 -1
  22. package/lib/public/assets/{arrow-up-right-DuAftMWB.js → arrow-up-right-gMg0ffvv.js} +1 -1
  23. package/lib/public/assets/{auth-shell-nZC2JNDO.js → auth-shell-CiYZ3N4M.js} +2 -2
  24. package/lib/public/assets/{builds-page-hDCgTwkS.js → builds-page-EaaqDmLN.js} +1 -1
  25. package/lib/public/assets/{button-Dda4irn_.js → button-DDau4Axv.js} +1 -1
  26. package/lib/public/assets/{calendar-BMr0Q62v.js → calendar-DQ83B1ed.js} +1 -1
  27. package/lib/public/assets/{check-CZ9iw9-e.js → check-K1ovTQam.js} +1 -1
  28. package/lib/public/assets/{chevron-right-BRYJJVC9.js → chevron-right-Biq00pMt.js} +1 -1
  29. package/lib/public/assets/{circle-check-CqAJjQ5O.js → circle-check-CBv88cH7.js} +1 -1
  30. package/lib/public/assets/{circle-x-DlDJtnVz.js → circle-x-Bmltailn.js} +1 -1
  31. package/lib/public/assets/{clock-CpuDKysU.js → clock-BPrld-3h.js} +1 -1
  32. package/lib/public/assets/{copy-CAQydNFe.js → copy-t0QB14JI.js} +1 -1
  33. package/lib/public/assets/derive-UnLRp4r3.js +1 -0
  34. package/lib/public/assets/device-explorer-BgGZ8AvV.js +282 -0
  35. package/lib/public/assets/{download-C9XG6lLv.js → download-BroHxNOh.js} +1 -1
  36. package/lib/public/assets/forgot-password-Bjmf49i6.js +1 -0
  37. package/lib/public/assets/{h264Stream-VQBphYhg.js → h264Stream-DeD__6wa.js} +6 -6
  38. package/lib/public/assets/{index-DJGc1M2f.js → index-72oF89LJ.js} +1 -1
  39. package/lib/public/assets/index-B0JeuZbg.js +15 -0
  40. package/lib/public/assets/index-B0gQkEg0.js +219 -0
  41. package/lib/public/assets/{input-Cm0tmSoc.js → input-DIc4MSC7.js} +1 -1
  42. package/lib/public/assets/{line-chart-D2DyJCml.js → line-chart-BcWm2vW8.js} +1 -1
  43. package/lib/public/assets/{list-checks-UWf1GY99.js → list-checks-B06IJJad.js} +1 -1
  44. package/lib/public/assets/{lock-CCJv9m_I.js → lock-pVLvnN30.js} +1 -1
  45. package/lib/public/assets/{login-f8vOVW-U.js → login-CN77vy--.js} +1 -1
  46. package/lib/public/assets/{maintenance-settings-C1PrkuAH.js → maintenance-settings-CSdzQSkY.js} +1 -1
  47. package/lib/public/assets/{monitor-B2jDgwm7.js → monitor-BtrN5IkI.js} +1 -1
  48. package/lib/public/assets/{mouse-pointer-2-DLI1RtzU.js → mouse-pointer-2-CNsQfo6w.js} +1 -1
  49. package/lib/public/assets/{network-ebT86qoi.js → network-BSfA8ZxG.js} +1 -1
  50. package/lib/public/assets/{overview-C0aykVrd.js → overview-BfTebCK5.js} +1 -1
  51. package/lib/public/assets/{page-header-BjzgWz-T.js → page-header-D8KUX6Qg.js} +1 -1
  52. package/lib/public/assets/{play-DLG9t8FU.js → play-Cvc8xzic.js} +1 -1
  53. package/lib/public/assets/{plus-nBFSMu_X.js → plus-C9Zj84UF.js} +1 -1
  54. package/lib/public/assets/{profile-page-CSl0UYlv.js → profile-page-Bi27STgs.js} +1 -1
  55. package/lib/public/assets/{reset-password-LeOuHqmB.js → reset-password-CPsOuwSu.js} +1 -1
  56. package/lib/public/assets/runbook-page-DEQ-DBOX.js +304 -0
  57. package/lib/public/assets/{select-88jHcl-Z.js → select-BWpnhWXj.js} +1 -1
  58. package/lib/public/assets/{selector-detail-redirect-BbXKJjZM.js → selector-detail-redirect-BefSCSpe.js} +1 -1
  59. package/lib/public/assets/{selector-health-page-B4rA1Xkv.js → selector-health-page-MSk96Zz7.js} +1 -1
  60. package/lib/public/assets/session-detail-page-DPyBNef_.js +4 -0
  61. package/lib/public/assets/{settings-Dep_3kbA.css → settings-K8UHWMdI.css} +1 -1
  62. package/lib/public/assets/{settings-GF6ZMSQ6.js → settings-V6x-cXwy.js} +1 -1
  63. package/lib/public/assets/{stat-tile-BV98e_Sv.js → stat-tile-Duex-GZD.js} +1 -1
  64. package/lib/public/assets/{tablet-BiAsnFDj.js → tablet-BBcoqBmL.js} +1 -1
  65. package/lib/public/assets/{teams-B4-jrr-1.js → teams-ts8p5rEh.js} +1 -1
  66. package/lib/public/assets/{trash-2-C5RSuX0e.js → trash-2-CZ2ew6AZ.js} +1 -1
  67. package/lib/public/assets/{upload-BG7_rMXK.js → upload-Dv99y_le.js} +1 -1
  68. package/lib/public/assets/{use-builds-data-J-riQYyC.js → use-builds-data-DrYC8JCF.js} +1 -1
  69. package/lib/public/assets/{use-password-reset-mode-C8-eH-UG.js → use-password-reset-mode-C7QkBNkP.js} +1 -1
  70. package/lib/public/assets/{users-CFba5TSy.js → users-D7tKMESH.js} +1 -1
  71. package/lib/public/assets/{users-Cp0beJm3.js → users-gJ5Y01yo.js} +1 -1
  72. package/lib/public/assets/{video-off-DDsEISjV.js → video-off-CqZVuZGs.js} +1 -1
  73. package/lib/public/assets/{webhook-settings-BGu32vSB.js → webhook-settings-DI5DSW99.js} +1 -1
  74. package/lib/public/assets/{zap-l4VaXzq8.js → zap-ClcHFxfo.js} +1 -1
  75. package/lib/public/index.html +1 -1
  76. package/lib/schema.json +16 -12
  77. package/lib/src/InternalHttpClient.js +27 -5
  78. package/lib/src/XenonCapabilityManager.js +10 -3
  79. package/lib/src/app/dashboardPluginLink.js +117 -0
  80. package/lib/src/app/index.js +13 -34
  81. package/lib/src/app/openapi/control.yaml +6 -4
  82. package/lib/src/app/openapi/grid.yaml +8 -2
  83. package/lib/src/app/openapi/identity.yaml +103 -31
  84. package/lib/src/app/openapi/platform.yaml +33 -15
  85. package/lib/src/app/openapi/sessions.yaml +12 -3
  86. package/lib/src/app/routers/apikeys.js +14 -2
  87. package/lib/src/app/routers/auth.js +31 -6
  88. package/lib/src/app/routers/control.js +13 -5
  89. package/lib/src/app/routers/dashboard.js +42 -27
  90. package/lib/src/app/routers/grid.js +5 -3
  91. package/lib/src/app/routers/profile.js +21 -0
  92. package/lib/src/app/routers/users.js +12 -6
  93. package/lib/src/app/swagger.js +2 -0
  94. package/lib/src/app/ws/h264StreamWs.js +10 -1
  95. package/lib/src/app/ws/nodeSocketRelay.js +77 -11
  96. package/lib/src/config.js +1 -0
  97. package/lib/src/dashboard/commandLogFields.js +42 -0
  98. package/lib/src/dashboard/commands.js +5 -5
  99. package/lib/src/dashboard/event-manager.js +64 -204
  100. package/lib/src/dashboard/services/failure-analysis-service.js +118 -105
  101. package/lib/src/dashboard/services/failureCategories.js +264 -0
  102. package/lib/src/dashboard/sessionCommandSummary.js +39 -0
  103. package/lib/src/data-service/device-store.js +14 -1
  104. package/lib/src/data-service/prisma-store.js +19 -7
  105. package/lib/src/data-service/web-config-service.js +7 -0
  106. package/lib/src/device-managers/AndroidDeviceManager.js +61 -23
  107. package/lib/src/device-managers/IOSDeviceManager.js +10 -0
  108. package/lib/src/device-managers/android/AndroidH264StreamService.js +69 -20
  109. package/lib/src/device-managers/android/H264Multiplexer.js +38 -4
  110. package/lib/src/device-utils.js +29 -3
  111. package/lib/src/gateway/defaultGateway.js +1 -1
  112. package/lib/src/gateway/forwardToNode.js +6 -11
  113. package/lib/src/gateway/healReport.js +87 -0
  114. package/lib/src/gateway/hubSessionToken.js +27 -4
  115. package/lib/src/gateway/nodeWebDriverUrl.js +3 -5
  116. package/lib/src/gateway/sessionGateway.js +12 -2
  117. package/lib/src/generated/client/edge.js +4 -3
  118. package/lib/src/generated/client/index-browser.js +1 -0
  119. package/lib/src/generated/client/index.d.ts +32 -0
  120. package/lib/src/generated/client/index.js +4 -3
  121. package/lib/src/generated/client/package.json +1 -1
  122. package/lib/src/generated/client/schema.prisma +3 -0
  123. package/lib/src/generated/client/wasm.js +1 -0
  124. package/lib/src/helpers/outboundProxy.js +219 -0
  125. package/lib/src/index.js +21 -0
  126. package/lib/src/interceptors/CommandInterceptor.js +256 -196
  127. package/lib/src/interceptors/xenonScripts.js +28 -7
  128. package/lib/src/logger.js +3 -1
  129. package/lib/src/middleware/authMiddleware.js +15 -3
  130. package/lib/src/middleware/commandCaller.js +3 -3
  131. package/lib/src/middleware/verifyCredential.js +58 -1
  132. package/lib/src/plugin.js +16 -6
  133. package/lib/src/scripts/database-check.js +3 -3
  134. package/lib/src/scripts/initialize-database.js +35 -33
  135. package/lib/src/scripts/run-migrations.js +1079 -27
  136. package/lib/src/services/AICommandService.js +9 -2
  137. package/lib/src/services/AIService.js +192 -42
  138. package/lib/src/services/ApiKeyService.js +16 -5
  139. package/lib/src/services/EmailService.js +29 -0
  140. package/lib/src/services/InterceptorService.js +6 -2
  141. package/lib/src/services/OrphanSweeper.js +8 -0
  142. package/lib/src/services/SelectorStateService.js +11 -7
  143. package/lib/src/services/SelectorVerificationJob.js +21 -6
  144. package/lib/src/services/ServerManager.js +11 -1
  145. package/lib/src/services/SessionLifecycleService.js +118 -44
  146. package/lib/src/services/SocketClient.js +11 -0
  147. package/lib/src/services/SocketServer.js +380 -45
  148. package/lib/src/services/TeamService.js +5 -1
  149. package/lib/src/services/TracingService.js +171 -60
  150. package/lib/src/services/UserService.js +14 -3
  151. package/lib/src/services/UserSessionService.js +16 -4
  152. package/lib/src/services/bug-report/video-slice.js +4 -1
  153. package/lib/src/services/device-access/leaseOverride.js +7 -5
  154. package/lib/src/services/healing/FuzzyXmlHealingProvider.js +51 -0
  155. package/lib/src/services/healing/HealEtalonService.js +3 -2
  156. package/lib/src/services/healing/HealingOrchestrator.js +57 -72
  157. package/lib/src/services/healing/OcrHealingProvider.js +41 -64
  158. package/lib/src/services/healing/ResilioTreeHealingProvider.js +41 -50
  159. package/lib/src/services/healing/VisualAiHealingProvider.js +1 -1
  160. package/lib/src/services/healing/fingerprintIdentity.js +126 -0
  161. package/lib/src/services/healing/resilioPath.js +274 -0
  162. package/lib/src/services/identity/identityChanges.js +41 -0
  163. package/lib/src/services/logcat/SessionDeviceLogs.js +358 -0
  164. package/lib/src/services/logcat/deviceLogBook.js +164 -0
  165. package/lib/src/services/logcat/iosDriverLog.js +178 -0
  166. package/lib/src/services/ocr/ocrData.js +118 -0
  167. package/lib/src/services/ocr/vendor/LICENSE-tessdata.txt +202 -0
  168. package/lib/src/services/ocr/vendor/eng.traineddata.gz +0 -0
  169. package/lib/src/services/omni-vision/OmniVisionService.js +83 -56
  170. package/lib/src/services/passwordResetLink.js +50 -9
  171. package/lib/src/services/passwordResetMode.js +3 -1
  172. package/lib/src/services/publicUrl.js +45 -0
  173. package/lib/src/services/selector-health/SelectorVisibilityResolver.js +121 -0
  174. package/lib/src/services/session/sessionIdentity.js +5 -3
  175. package/lib/src/services/session/shutdownReason.js +26 -0
  176. package/lib/src/services/settings/aiEngineSettings.js +219 -0
  177. package/lib/src/services/token/JwtKeyService.js +8 -2
  178. package/lib/src/services/token/mcpTokenTtl.js +27 -0
  179. package/lib/src/services/token/mintedLifetime.js +51 -0
  180. package/lib/src/sessions/LocalSession.js +29 -1
  181. package/lib/src/sessions/RemoteSession.js +12 -2
  182. package/lib/src/sessions/SessionManager.js +4 -1
  183. package/lib/src/sessions/sessionMemory.js +25 -0
  184. package/lib/test/helpers/driver-log.js +38 -0
  185. package/lib/test/helpers/fake-ai-provider.js +188 -0
  186. package/lib/test/helpers/fake-http-proxy.js +106 -0
  187. package/lib/test/helpers/loki-stores.js +33 -0
  188. package/lib/test/helpers/otlp-probe.js +107 -0
  189. package/lib/test/helpers/page-sources.js +164 -0
  190. package/lib/test/helpers/scratch-database.js +57 -13
  191. package/lib/test/integration/androidDevices.spec.js +1 -1
  192. package/lib/test/integration/audit-ingest.spec.js +10 -10
  193. package/lib/test/integration/auth-flow.spec.js +9 -14
  194. package/lib/test/integration/auth-rate-limit.spec.js +6 -3
  195. package/lib/test/integration/bug-report-route.spec.js +22 -2
  196. package/lib/test/integration/forgot-password-rate-limit.spec.js +6 -3
  197. package/lib/test/integration/forgot-password.spec.js +17 -18
  198. package/lib/test/integration/ios/01iOSSimulator.spec.js +1 -1
  199. package/lib/test/integration/ios/02iOSDevices.spec.js +1 -1
  200. package/lib/test/integration/legacy-deprecation-headers.spec.js +5 -2
  201. package/lib/test/integration/migration.spec.js +6 -1
  202. package/lib/test/integration/node-pair-auth-rest.spec.js +5 -9
  203. package/lib/test/integration/ports-router.spec.js +4 -4
  204. package/lib/test/integration/prisma-device-store-add-devices.spec.js +2 -3
  205. package/lib/test/integration/prisma-device-store-team-filter.spec.js +2 -5
  206. package/lib/test/integration/profile-tokens.spec.js +10 -16
  207. package/lib/test/integration/recordings-router.spec.js +16 -16
  208. package/lib/test/integration/reset-revokes-sessions.spec.js +4 -9
  209. package/lib/test/integration/role-matrix.spec.js +4 -9
  210. package/lib/test/integration/sdk-leases-router.spec.js +9 -9
  211. package/lib/test/integration/sdk-version.spec.js +2 -2
  212. package/lib/test/integration/selector-health-endpoint.spec.js +5 -5
  213. package/lib/test/integration/selector-state-flow.spec.js +5 -5
  214. package/lib/test/integration/team-membership-migration.spec.js +73 -12
  215. package/lib/test/integration/team-visibility-apps.spec.js +15 -22
  216. package/lib/test/integration/team-visibility-control.spec.js +96 -69
  217. package/lib/test/integration/team-visibility-dashboard.spec.js +7 -23
  218. package/lib/test/integration/team-visibility-grid.spec.js +16 -15
  219. package/lib/test/integration/team-visibility-leases.spec.js +8 -11
  220. package/lib/test/integration/team-visibility-recordings.spec.js +6 -19
  221. package/lib/test/integration/team-visibility-sessions.spec.js +6 -19
  222. package/lib/test/integration/users-flow.spec.js +7 -12
  223. package/lib/test/integration/users-lockout.spec.js +5 -3
  224. package/lib/test/unit/EmailService.test.js +66 -0
  225. package/lib/test/unit/ResilioTreeHealingProvider.test.js +46 -19
  226. package/lib/test/unit/XenonCapabilityManager.spec.js +23 -0
  227. package/lib/test/unit/ai-call-time-limit.spec.js +130 -0
  228. package/lib/test/unit/ai-engine-settings.spec.js +338 -0
  229. package/lib/test/unit/ai-provider-switch.spec.js +130 -0
  230. package/lib/test/unit/ai-rate-limit.spec.js +126 -0
  231. package/lib/test/unit/android-adb-retry.spec.js +112 -0
  232. package/lib/test/unit/android-h264-viewers.spec.js +272 -0
  233. package/lib/test/unit/android-preview-hold.spec.js +3 -2
  234. package/lib/test/unit/apikeys-router.spec.js +84 -0
  235. package/lib/test/unit/authMiddleware.bearer.spec.js +9 -0
  236. package/lib/test/unit/authMiddleware.credentialLifetime.spec.js +149 -0
  237. package/lib/test/unit/bug-report/video-slice.spec.js +19 -0
  238. package/lib/test/unit/command-log-network-capture.spec.js +191 -0
  239. package/lib/test/unit/dashboard-events-device-logs.spec.js +255 -0
  240. package/lib/test/unit/dashboard-events-team-scope.spec.js +6 -3
  241. package/lib/test/unit/dashboard-plugin-link.spec.js +213 -0
  242. package/lib/test/unit/database-check.spec.js +1 -0
  243. package/lib/test/unit/device-log-book.spec.js +180 -0
  244. package/lib/test/unit/device-utils.spec.js +13 -4
  245. package/lib/test/unit/enable-dashboard-option.spec.js +57 -0
  246. package/lib/test/unit/event-log-session-data.spec.js +251 -0
  247. package/lib/test/unit/failure-analysis.spec.js +196 -0
  248. package/lib/test/unit/failure-categories.spec.js +130 -0
  249. package/lib/test/unit/failure-categorization.spec.js +393 -0
  250. package/lib/test/unit/fingerprint-identity.spec.js +433 -0
  251. package/lib/test/unit/h264-multiplexer.spec.js +46 -0
  252. package/lib/test/unit/heal-report.spec.js +71 -0
  253. package/lib/test/unit/healing-instrumentation.spec.js +6 -1
  254. package/lib/test/unit/healing-tier-gate.spec.js +74 -29
  255. package/lib/test/unit/healing-tiers-every-session.spec.js +219 -0
  256. package/lib/test/unit/hub-node-gateway-appium-server.spec.js +243 -1
  257. package/lib/test/unit/interceptor-visual-elements.spec.js +192 -0
  258. package/lib/test/unit/ios-driver-log.spec.js +168 -0
  259. package/lib/test/unit/ios-simulator-session-readiness.spec.js +187 -0
  260. package/lib/test/unit/ios-simulator-session-teardown.spec.js +158 -0
  261. package/lib/test/unit/lease/lease-override.spec.js +23 -6
  262. package/lib/test/unit/lease/session-lease-proof.spec.js +16 -4
  263. package/lib/test/unit/logcat-ws.spec.js +78 -37
  264. package/lib/test/unit/logger-json-levels.spec.js +44 -0
  265. package/lib/test/unit/mcp-token-ttl.spec.js +38 -0
  266. package/lib/test/unit/observability-example-loki.spec.js +25 -0
  267. package/lib/test/unit/ocr-healing-tier-real-ocr.spec.js +113 -0
  268. package/lib/test/unit/ocr-healing-tier.spec.js +122 -0
  269. package/lib/test/unit/ocr-offline.spec.js +213 -0
  270. package/lib/test/unit/omni-virtual-element-store.spec.js +301 -0
  271. package/lib/test/unit/omni-vision-ios-points.spec.js +0 -2
  272. package/lib/test/unit/omni-vision.spec.js +5 -7
  273. package/lib/test/unit/openapi-for-site.spec.js +80 -0
  274. package/lib/test/unit/outbound-proxy.spec.js +320 -0
  275. package/lib/test/unit/package-engines.spec.js +27 -0
  276. package/lib/test/unit/passwordResetMode.test.js +10 -2
  277. package/lib/test/unit/port-exhaustion.spec.js +2 -1
  278. package/lib/test/unit/profile-router.test.js +122 -1
  279. package/lib/test/unit/proxy-option.spec.js +358 -0
  280. package/lib/test/unit/queue-requester.spec.js +1 -1
  281. package/lib/test/unit/reset-link-address.spec.js +266 -0
  282. package/lib/test/unit/reset-link.test.js +10 -4
  283. package/lib/test/unit/resilio-path-healing.spec.js +270 -0
  284. package/lib/test/unit/run-migrations-database.spec.js +807 -0
  285. package/lib/test/unit/run-migrations-fail-fast.test.js +41 -27
  286. package/lib/test/unit/run-migrations.test.js +864 -0
  287. package/lib/test/unit/selector-health-actions.spec.js +3 -1
  288. package/lib/test/unit/selector-learning-every-session.spec.js +179 -0
  289. package/lib/test/unit/selector-state-service.spec.js +72 -23
  290. package/lib/test/unit/selector-verification-clean-build.spec.js +130 -0
  291. package/lib/test/unit/selector-verification-job.spec.js +28 -19
  292. package/lib/test/unit/selector-verification-missed-regression.spec.js +2 -2
  293. package/lib/test/unit/selector-visibility-resolver.spec.js +209 -0
  294. package/lib/test/unit/self-healing-boot.spec.js +10 -5
  295. package/lib/test/unit/self-healing-setting.spec.js +7 -6
  296. package/lib/test/unit/session-app-resolution.spec.js +5 -1
  297. package/lib/test/unit/session-attribution-wiring.spec.js +41 -13
  298. package/lib/test/unit/session-create-credential-owner.spec.js +242 -0
  299. package/lib/test/unit/session-credential-strip.spec.js +1 -1
  300. package/lib/test/unit/session-device-logs-ios.spec.js +180 -0
  301. package/lib/test/unit/session-device-logs.spec.js +356 -0
  302. package/lib/test/unit/session-end-failure-analysis.spec.js +133 -0
  303. package/lib/test/unit/session-log-indexes.spec.js +64 -3
  304. package/lib/test/unit/socket-team-scope.integration.spec.js +749 -0
  305. package/lib/test/unit/socketServer.scopedEmit.spec.js +237 -5
  306. package/lib/test/unit/socketServer.sessionCookie.spec.js +2 -1
  307. package/lib/test/unit/stream-start-pipelines.spec.js +72 -18
  308. package/lib/test/unit/token-mint-limits.spec.js +165 -0
  309. package/lib/test/unit/tracing-export-routing.spec.js +137 -0
  310. package/lib/test/unit/tracing-session-spans.spec.js +337 -0
  311. package/lib/test/unit/unexpected-shutdown-reason.spec.js +163 -0
  312. package/lib/test/unit/verify-credential.spec.js +33 -0
  313. package/lib/test/unit/vision-assertion.spec.js +3 -2
  314. package/lib/test/unit/web-config-service.spec.js +19 -0
  315. package/lib/tsconfig.tsbuildinfo +1 -1
  316. package/package.json +6 -5
  317. package/prisma/migrations/20261004174413_locator_etalon_path/migration.sql +2 -0
  318. package/prisma/schema.prisma +3 -0
  319. package/schema.json +16 -12
  320. package/scripts/dev/readme-screenshots.js +276 -23
  321. package/scripts/dev/screenshot-fixtures/logcat.js +157 -0
  322. package/scripts/dev/screenshot-fixtures/phone-screen.html +469 -0
  323. package/scripts/dev/screenshot-fixtures/session.js +242 -0
  324. package/scripts/export-openapi.js +32 -0
  325. package/scripts/lib/openapi-for-site.js +79 -0
  326. package/lib/public/assets/BugReportButton-BAt0_pzq.js +0 -15
  327. package/lib/public/assets/DeviceMosaicView-BYaQHhTf.js +0 -2
  328. package/lib/public/assets/ai-settings-CsuJroRf.js +0 -21
  329. package/lib/public/assets/device-explorer-CdO6_nrn.js +0 -282
  330. package/lib/public/assets/forgot-password-CGnkRgE9.js +0 -1
  331. package/lib/public/assets/index-BbKEXUFH.js +0 -219
  332. package/lib/public/assets/runbook-page-CMMeQml9.js +0 -124
  333. package/lib/public/assets/session-detail-page-COL_RZxw.js +0 -4
  334. package/lib/src/scripts/prepare-prisma.js +0 -89
  335. /package/lib/public/assets/{BugReportButton-CPBjfiv4.css → index-CPBjfiv4.css} +0 -0
@@ -0,0 +1,219 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-BfTebCK5.js","assets/labels-C21SA4JG.js","assets/arrow-right-C8NhdtyN.js","assets/tablet-BBcoqBmL.js","assets/monitor-BtrN5IkI.js","assets/activity-DrLbHifn.js","assets/page-header-D8KUX6Qg.js","assets/page-header-TkpFo69t.css","assets/device-explorer-BgGZ8AvV.js","assets/index-B0JeuZbg.js","assets/index-CPBjfiv4.css","assets/h264Stream-DeD__6wa.js","assets/button-DDau4Axv.js","assets/utils-CDN07tui.js","assets/button-yDi2prIR.css","assets/select-BWpnhWXj.js","assets/select-_gbV-uJG.css","assets/Menu-KrPnfdsf.js","assets/index-72oF89LJ.js","assets/check-K1ovTQam.js","assets/Menu-BJJGF7ek.css","assets/Modal-C6WjZFeI.js","assets/Modal-CkhpaXeX.css","assets/FieldGroup-GOgssFEP.js","assets/FieldGroup-trY-2qmW.css","assets/clock-BPrld-3h.js","assets/plus-C9Zj84UF.js","assets/copy-t0QB14JI.js","assets/SegmentedControl-C9o90KId.js","assets/SegmentedControl-lDNf6HQr.css","assets/Table-DwIgERRt.js","assets/Table-BIjXN_-_.css","assets/list-checks-B06IJJad.js","assets/chevron-right-Biq00pMt.js","assets/mouse-pointer-2-CNsQfo6w.js","assets/zap-ClcHFxfo.js","assets/circle-check-CBv88cH7.js","assets/circle-x-Bmltailn.js","assets/EmptyState-7hETKEWb.js","assets/EmptyState-BSDHFxd1.css","assets/input-DIc4MSC7.js","assets/input-B5edaXfx.css","assets/play-Cvc8xzic.js","assets/download-BroHxNOh.js","assets/upload-Dv99y_le.js","assets/arrow-left-BtB0_Jg_.js","assets/AnnotationOverlay-2W4JvEyZ.js","assets/trash-2-CZ2ew6AZ.js","assets/lock-pVLvnN30.js","assets/FilterMenu-Yvf6RGMd.js","assets/FilterMenu-D1i9jhjZ.css","assets/device-explorer-CHv1miyr.css","assets/builds-page-EaaqDmLN.js","assets/use-builds-data-DrYC8JCF.js","assets/time-D-gjmE1o.js","assets/stat-tile-Duex-GZD.js","assets/session-detail-page-DPyBNef_.js","assets/derive-UnLRp4r3.js","assets/arrow-up-right-gMg0ffvv.js","assets/line-chart-BcWm2vW8.js","assets/line-chart-Bzzc3bMl.css","assets/video-off-CqZVuZGs.js","assets/network-BSfA8ZxG.js","assets/runbook-page-DEQ-DBOX.js","assets/runbook-page-BFqSC-Ta.css","assets/apps-BqNVdln7.js","assets/apps-BQKfuN3J.css","assets/webhook-settings-DI5DSW99.js","assets/webhook-settings-CAfLaykw.css","assets/settings-K8UHWMdI.css","assets/settings-V6x-cXwy.js","assets/SettingCard-CPm3w9l2.js","assets/SettingCard-CiKM8yKg.css","assets/calendar-DQ83B1ed.js","assets/ai-settings-DU_Ls06P.js","assets/maintenance-settings-CSdzQSkY.js","assets/api-keys-CWYdEzJ_.js","assets/teams-ts8p5rEh.js","assets/users-D7tKMESH.js","assets/selector-health-page-MSk96Zz7.js","assets/view-state-83Z1gFME.js","assets/selector-detail-redirect-BefSCSpe.js","assets/DeviceMosaicView-DqODzkyo.js","assets/recordings-BWe1ydXm.js","assets/profile-page-Bi27STgs.js","assets/users-gJ5Y01yo.js","assets/RecordingsPage-CB8ST3nE.js","assets/recordings-n-GTW3aT.js","assets/recordings-B2Am-bZy.css","assets/RecordingPage-CSRIhZEh.js","assets/login-CN77vy--.js","assets/use-password-reset-mode-C7QkBNkP.js","assets/auth-shell-CiYZ3N4M.js","assets/forgot-password-Bjmf49i6.js","assets/reset-password-CPsOuwSu.js"])))=>i.map(i=>d[i]);
2
+ function ld(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Ru(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pu={exports:{}},gr={};/*
3
+ object-assign
4
+ (c) Sindre Sorhus
5
+ @license MIT
6
+ */var Ol=Object.getOwnPropertySymbols,ad=Object.prototype.hasOwnProperty,ud=Object.prototype.propertyIsEnumerable;function cd(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function fd(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Nu=fd()?Object.assign:function(e,t){for(var n,r=cd(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)ad.call(n,s)&&(r[s]=n[s]);if(Ol){i=Ol(n);for(var l=0;l<i.length;l++)ud.call(n,i[l])&&(r[i[l]]=n[i[l]])}}return r},Ou={exports:{}},M={};/** @license React v17.0.2
7
+ * react.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */var xs=Nu,an=60103,Lu=60106;M.Fragment=60107;M.StrictMode=60108;M.Profiler=60114;var ju=60109,Au=60110,Iu=60112;M.Suspense=60113;var Du=60115,Mu=60116;if(typeof Symbol=="function"&&Symbol.for){var Ce=Symbol.for;an=Ce("react.element"),Lu=Ce("react.portal"),M.Fragment=Ce("react.fragment"),M.StrictMode=Ce("react.strict_mode"),M.Profiler=Ce("react.profiler"),ju=Ce("react.provider"),Au=Ce("react.context"),Iu=Ce("react.forward_ref"),M.Suspense=Ce("react.suspense"),Du=Ce("react.memo"),Mu=Ce("react.lazy")}var Ll=typeof Symbol=="function"&&Symbol.iterator;function dd(e){return e===null||typeof e!="object"?null:(e=Ll&&e[Ll]||e["@@iterator"],typeof e=="function"?e:null)}function vr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $u={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uu={};function un(e,t,n){this.props=e,this.context=t,this.refs=Uu,this.updater=n||$u}un.prototype.isReactComponent={};un.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(vr(85));this.updater.enqueueSetState(this,e,t,"setState")};un.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bu(){}Bu.prototype=un.prototype;function Es(e,t,n){this.props=e,this.context=t,this.refs=Uu,this.updater=n||$u}var _s=Es.prototype=new Bu;_s.constructor=Es;xs(_s,un.prototype);_s.isPureReactComponent=!0;var Ss={current:null},zu=Object.prototype.hasOwnProperty,bu={key:!0,ref:!0,__self:!0,__source:!0};function Fu(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)zu.call(t,r)&&!bu.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:an,type:e,key:o,ref:s,props:i,_owner:Ss.current}}function pd(e,t){return{$$typeof:an,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Cs(e){return typeof e=="object"&&e!==null&&e.$$typeof===an}function hd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jl=/\/+/g;function Ki(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hd(""+e.key):t.toString(36)}function Br(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case an:case Lu:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Ki(s,0):r,Array.isArray(i)?(n="",e!=null&&(n=e.replace(jl,"$&/")+"/"),Br(i,t,n,"",function(u){return u})):i!=null&&(Cs(i)&&(i=pd(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(jl,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Ki(o,l);s+=Br(o,t,n,a,i)}else if(a=dd(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Ki(o,l++),s+=Br(o,t,n,a,i);else if(o==="object")throw t=""+e,Error(vr(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function Cr(e,t,n){if(e==null)return e;var r=[],i=0;return Br(e,r,"","",function(o){return t.call(n,o,i++)}),r}function md(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var Vu={current:null};function Ve(){var e=Vu.current;if(e===null)throw Error(vr(321));return e}var yd={ReactCurrentDispatcher:Vu,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Ss,IsSomeRendererActing:{current:!1},assign:xs};M.Children={map:Cr,forEach:function(e,t,n){Cr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cr(e,function(){t++}),t},toArray:function(e){return Cr(e,function(t){return t})||[]},only:function(e){if(!Cs(e))throw Error(vr(143));return e}};M.Component=un;M.PureComponent=Es;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yd;M.cloneElement=function(e,t,n){if(e==null)throw Error(vr(267,e));var r=xs({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Ss.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)zu.call(t,a)&&!bu.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:an,type:e.type,key:i,ref:o,props:r,_owner:s}};M.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Au,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:ju,_context:e},e.Consumer=e};M.createElement=Fu;M.createFactory=function(e){var t=Fu.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:Iu,render:e}};M.isValidElement=Cs;M.lazy=function(e){return{$$typeof:Mu,_payload:{_status:-1,_result:e},_init:md}};M.memo=function(e,t){return{$$typeof:Du,type:e,compare:t===void 0?null:t}};M.useCallback=function(e,t){return Ve().useCallback(e,t)};M.useContext=function(e,t){return Ve().useContext(e,t)};M.useDebugValue=function(){};M.useEffect=function(e,t){return Ve().useEffect(e,t)};M.useImperativeHandle=function(e,t,n){return Ve().useImperativeHandle(e,t,n)};M.useLayoutEffect=function(e,t){return Ve().useLayoutEffect(e,t)};M.useMemo=function(e,t){return Ve().useMemo(e,t)};M.useReducer=function(e,t,n){return Ve().useReducer(e,t,n)};M.useRef=function(e){return Ve().useRef(e)};M.useState=function(e){return Ve().useState(e)};M.version="17.0.2";Ou.exports=M;var y=Ou.exports;const gd=Ru(y),vd=ld({__proto__:null,default:gd},[y]);/** @license React v17.0.2
14
+ * react-jsx-runtime.production.min.js
15
+ *
16
+ * Copyright (c) Facebook, Inc. and its affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ */var wd=y,qu=60103;gr.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Al=Symbol.for;qu=Al("react.element"),gr.Fragment=Al("react.fragment")}var kd=wd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xd=Object.prototype.hasOwnProperty,Ed={key:!0,ref:!0,__self:!0,__source:!0};function Wu(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)xd.call(t,r)&&!Ed.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:qu,type:e,key:o,ref:s,props:i,_owner:kd.current}}gr.jsx=Wu;gr.jsxs=Wu;Pu.exports=gr;var p=Pu.exports,Hu={exports:{}},Se={},Ku={exports:{}},Qu={};/** @license React v0.20.2
21
+ * scheduler.production.min.js
22
+ *
23
+ * Copyright (c) Facebook, Inc. and its affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var a=null,u=null,m=function(){if(a!==null)try{var C=e.unstable_now();a(!0,C),a=null}catch(j){throw setTimeout(m,0),j}};t=function(C){a!==null?setTimeout(t,0,C):(a=C,setTimeout(m,0))},n=function(C,j){u=setTimeout(C,j)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var v=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var E=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof E!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var x=!1,k=null,c=-1,f=5,d=0;e.unstable_shouldYield=function(){return e.unstable_now()>=d},i=function(){},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):f=0<C?Math.floor(1e3/C):5};var g=new MessageChannel,w=g.port2;g.port1.onmessage=function(){if(k!==null){var C=e.unstable_now();d=C+f;try{k(!0,C)?w.postMessage(null):(x=!1,k=null)}catch(j){throw w.postMessage(null),j}}else x=!1},t=function(C){k=C,x||(x=!0,w.postMessage(null))},n=function(C,j){c=v(function(){C(e.unstable_now())},j)},r=function(){h(c),c=-1}}function P(C,j){var I=C.length;C.push(j);e:for(;;){var H=I-1>>>1,ee=C[H];if(ee!==void 0&&0<A(ee,j))C[H]=j,C[I]=ee,I=H;else break e}}function S(C){return C=C[0],C===void 0?null:C}function O(C){var j=C[0];if(j!==void 0){var I=C.pop();if(I!==j){C[0]=I;e:for(var H=0,ee=C.length;H<ee;){var wt=2*(H+1)-1,kt=C[wt],kn=wt+1,Dt=C[kn];if(kt!==void 0&&0>A(kt,I))Dt!==void 0&&0>A(Dt,kt)?(C[H]=Dt,C[kn]=I,H=kn):(C[H]=kt,C[wt]=I,H=wt);else if(Dt!==void 0&&0>A(Dt,I))C[H]=Dt,C[kn]=I,H=kn;else break e}}return j}return null}function A(C,j){var I=C.sortIndex-j.sortIndex;return I!==0?I:C.id-j.id}var N=[],Z=[],Vi=1,ge=null,ie=3,Sr=!1,vt=!1,wn=!1;function qi(C){for(var j=S(Z);j!==null;){if(j.callback===null)O(Z);else if(j.startTime<=C)O(Z),j.sortIndex=j.expirationTime,P(N,j);else break;j=S(Z)}}function Wi(C){if(wn=!1,qi(C),!vt)if(S(N)!==null)vt=!0,t(Hi);else{var j=S(Z);j!==null&&n(Wi,j.startTime-C)}}function Hi(C,j){vt=!1,wn&&(wn=!1,r()),Sr=!0;var I=ie;try{for(qi(j),ge=S(N);ge!==null&&(!(ge.expirationTime>j)||C&&!e.unstable_shouldYield());){var H=ge.callback;if(typeof H=="function"){ge.callback=null,ie=ge.priorityLevel;var ee=H(ge.expirationTime<=j);j=e.unstable_now(),typeof ee=="function"?ge.callback=ee:ge===S(N)&&O(N),qi(j)}else O(N);ge=S(N)}if(ge!==null)var wt=!0;else{var kt=S(Z);kt!==null&&n(Wi,kt.startTime-j),wt=!1}return wt}finally{ge=null,ie=I,Sr=!1}}var sd=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){vt||Sr||(vt=!0,t(Hi))},e.unstable_getCurrentPriorityLevel=function(){return ie},e.unstable_getFirstCallbackNode=function(){return S(N)},e.unstable_next=function(C){switch(ie){case 1:case 2:case 3:var j=3;break;default:j=ie}var I=ie;ie=j;try{return C()}finally{ie=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=sd,e.unstable_runWithPriority=function(C,j){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var I=ie;ie=C;try{return j()}finally{ie=I}},e.unstable_scheduleCallback=function(C,j,I){var H=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?H+I:H):I=H,C){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=I+ee,C={id:Vi++,callback:j,priorityLevel:C,startTime:I,expirationTime:ee,sortIndex:-1},I>H?(C.sortIndex=I,P(Z,C),S(N)===null&&C===S(Z)&&(wn?r():wn=!0,n(Wi,I-H))):(C.sortIndex=ee,P(N,C),vt||Sr||(vt=!0,t(Hi))),C},e.unstable_wrapCallback=function(C){var j=ie;return function(){var I=ie;ie=j;try{return C.apply(this,arguments)}finally{ie=I}}}})(Qu);Ku.exports=Qu;var _d=Ku.exports;/** @license React v17.0.2
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var Ci=y,F=Nu,J=_d;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Ci)throw Error(_(227));var Gu=new Set,er={};function Lt(e,t){rn(e,t),rn(e+"Capture",t)}function rn(e,t){for(er[e]=t,e=0;e<t.length;e++)Gu.add(t[e])}var Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sd=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Il=Object.prototype.hasOwnProperty,Dl={},Ml={};function Cd(e){return Il.call(Ml,e)?!0:Il.call(Dl,e)?!1:Sd.test(e)?Ml[e]=!0:(Dl[e]=!0,!1)}function Td(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rd(e,t,n,r){if(t===null||typeof t>"u"||Td(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ce(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ts=/[\-:]([a-z])/g;function Rs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ts,Rs);re[t]=new ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ts,Rs);re[t]=new ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ts,Rs);re[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ps(e,t,n,r){var i=re.hasOwnProperty(t)?re[t]:null,o=i!==null?i.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(Rd(t,n,i,r)&&(n=null),r||i===null?Cd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var jt=Ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Dn=60103,Et=60106,Qe=60107,Ns=60108,Fn=60114,Os=60109,Ls=60110,Ti=60112,Vn=60113,ti=60120,Ri=60115,js=60116,As=60121,Is=60128,Yu=60129,Ds=60130,_o=60131;if(typeof Symbol=="function"&&Symbol.for){var X=Symbol.for;Dn=X("react.element"),Et=X("react.portal"),Qe=X("react.fragment"),Ns=X("react.strict_mode"),Fn=X("react.profiler"),Os=X("react.provider"),Ls=X("react.context"),Ti=X("react.forward_ref"),Vn=X("react.suspense"),ti=X("react.suspense_list"),Ri=X("react.memo"),js=X("react.lazy"),As=X("react.block"),X("react.scope"),Is=X("react.opaque.id"),Yu=X("react.debug_trace_mode"),Ds=X("react.offscreen"),_o=X("react.legacy_hidden")}var $l=typeof Symbol=="function"&&Symbol.iterator;function xn(e){return e===null||typeof e!="object"?null:(e=$l&&e[$l]||e["@@iterator"],typeof e=="function"?e:null)}var Qi;function Mn(e){if(Qi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qi=t&&t[1]||""}return`
35
+ `+Qi+e}var Gi=!1;function Tr(e,t){if(!e||Gi)return"";Gi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
36
+ `),o=r.stack.split(`
37
+ `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l])return`
38
+ `+i[s].replace(" at new "," at ");while(1<=s&&0<=l);break}}}finally{Gi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function Pd(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=Tr(e.type,!1),e;case 11:return e=Tr(e.type.render,!1),e;case 22:return e=Tr(e.type._render,!1),e;case 1:return e=Tr(e.type,!0),e;default:return""}}function Ht(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qe:return"Fragment";case Et:return"Portal";case Fn:return"Profiler";case Ns:return"StrictMode";case Vn:return"Suspense";case ti:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ls:return(e.displayName||"Context")+".Consumer";case Os:return(e._context.displayName||"Context")+".Provider";case Ti:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ri:return Ht(e.type);case As:return Ht(e._render);case js:t=e._payload,e=e._init;try{return Ht(e(t))}catch{}}return null}function ut(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Xu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nd(e){var t=Xu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rr(e){e._valueTracker||(e._valueTracker=Nd(e))}function Ju(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ni(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function So(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ul(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ut(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zu(e,t){t=t.checked,t!=null&&Ps(e,"checked",t,!1)}function Co(e,t){Zu(e,t);var n=ut(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?To(e,t.type,n):t.hasOwnProperty("defaultValue")&&To(e,t.type,ut(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bl(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function To(e,t,n){(t!=="number"||ni(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Od(e){var t="";return Ci.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Ro(e,t){return e=F({children:void 0},t),(t=Od(t.children))&&(e.children=t),e}function Kt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ut(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Po(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zl(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ut(n)}}function ec(e,t){var n=ut(t.value),r=ut(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function bl(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var No={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function tc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Oo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Pr,nc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==No.svg||"innerHTML"in e)e.innerHTML=t;else{for(Pr=Pr||document.createElement("div"),Pr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ld=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){Ld.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function rc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qn.hasOwnProperty(e)&&qn[e]?(""+t).trim():t+"px"}function ic(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jd=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Lo(e,t){if(t){if(jd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function jo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ao=null,Qt=null,Gt=null;function Fl(e){if(e=kr(e)){if(typeof Ao!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ai(t),Ao(e.stateNode,e.type,t))}}function oc(e){Qt?Gt?Gt.push(e):Gt=[e]:Qt=e}function sc(){if(Qt){var e=Qt,t=Gt;if(Gt=Qt=null,Fl(e),t)for(e=0;e<t.length;e++)Fl(t[e])}}function $s(e,t){return e(t)}function lc(e,t,n,r,i){return e(t,n,r,i)}function Us(){}var ac=$s,_t=!1,Yi=!1;function Bs(){(Qt!==null||Gt!==null)&&(Us(),sc())}function Ad(e,t,n){if(Yi)return e(t,n);Yi=!0;try{return ac(e,t,n)}finally{Yi=!1,Bs()}}function nr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ai(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var Io=!1;if(Fe)try{var En={};Object.defineProperty(En,"passive",{get:function(){Io=!0}}),window.addEventListener("test",En,En),window.removeEventListener("test",En,En)}catch{Io=!1}function Id(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(m){this.onError(m)}}var Wn=!1,ri=null,ii=!1,Do=null,Dd={onError:function(e){Wn=!0,ri=e}};function Md(e,t,n,r,i,o,s,l,a){Wn=!1,ri=null,Id.apply(Dd,arguments)}function $d(e,t,n,r,i,o,s,l,a){if(Md.apply(this,arguments),Wn){if(Wn){var u=ri;Wn=!1,ri=null}else throw Error(_(198));ii||(ii=!0,Do=u)}}function At(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function uc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vl(e){if(At(e)!==e)throw Error(_(188))}function Ud(e){var t=e.alternate;if(!t){if(t=At(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Vl(i),e;if(o===r)return Vl(i),t;o=o.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function cc(e){if(e=Ud(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ql(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var fc,zs,dc,pc,Mo=!1,Ne=[],Ze=null,et=null,tt=null,rr=new Map,ir=new Map,_n=[],Wl="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $o(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Hl(e,t){switch(e){case"focusin":case"focusout":Ze=null;break;case"dragenter":case"dragleave":et=null;break;case"mouseover":case"mouseout":tt=null;break;case"pointerover":case"pointerout":rr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ir.delete(t.pointerId)}}function Sn(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e=$o(t,n,r,i,o),t!==null&&(t=kr(t),t!==null&&zs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Bd(e,t,n,r,i){switch(t){case"focusin":return Ze=Sn(Ze,e,t,n,r,i),!0;case"dragenter":return et=Sn(et,e,t,n,r,i),!0;case"mouseover":return tt=Sn(tt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return rr.set(o,Sn(rr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ir.set(o,Sn(ir.get(o)||null,e,t,n,r,i)),!0}return!1}function zd(e){var t=St(e.target);if(t!==null){var n=At(t);if(n!==null){if(t=n.tag,t===13){if(t=uc(n),t!==null){e.blockedOn=t,pc(e.lanePriority,function(){J.unstable_runWithPriority(e.priority,function(){dc(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=kr(n),t!==null&&zs(t),e.blockedOn=n,!1;t.shift()}return!0}function Kl(e,t,n){zr(e)&&n.delete(t)}function bd(){for(Mo=!1;0<Ne.length;){var e=Ne[0];if(e.blockedOn!==null){e=kr(e.blockedOn),e!==null&&fc(e);break}for(var t=e.targetContainers;0<t.length;){var n=qs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ne.shift()}Ze!==null&&zr(Ze)&&(Ze=null),et!==null&&zr(et)&&(et=null),tt!==null&&zr(tt)&&(tt=null),rr.forEach(Kl),ir.forEach(Kl)}function Cn(e,t){e.blockedOn===t&&(e.blockedOn=null,Mo||(Mo=!0,J.unstable_scheduleCallback(J.unstable_NormalPriority,bd)))}function hc(e){function t(i){return Cn(i,e)}if(0<Ne.length){Cn(Ne[0],e);for(var n=1;n<Ne.length;n++){var r=Ne[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ze!==null&&Cn(Ze,e),et!==null&&Cn(et,e),tt!==null&&Cn(tt,e),rr.forEach(t),ir.forEach(t),n=0;n<_n.length;n++)r=_n[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)zd(n),n.blockedOn===null&&_n.shift()}function Nr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Bt={animationend:Nr("Animation","AnimationEnd"),animationiteration:Nr("Animation","AnimationIteration"),animationstart:Nr("Animation","AnimationStart"),transitionend:Nr("Transition","TransitionEnd")},Xi={},mc={};Fe&&(mc=document.createElement("div").style,"AnimationEvent"in window||(delete Bt.animationend.animation,delete Bt.animationiteration.animation,delete Bt.animationstart.animation),"TransitionEvent"in window||delete Bt.transitionend.transition);function Pi(e){if(Xi[e])return Xi[e];if(!Bt[e])return e;var t=Bt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in mc)return Xi[e]=t[n];return e}var yc=Pi("animationend"),gc=Pi("animationiteration"),vc=Pi("animationstart"),wc=Pi("transitionend"),kc=new Map,bs=new Map,Fd=["abort","abort",yc,"animationEnd",gc,"animationIteration",vc,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",wc,"transitionEnd","waiting","waiting"];function Fs(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),bs.set(r,t),kc.set(r,i),Lt(i,[r])}}var Vd=J.unstable_now;Vd();var U=8;function $t(e){if(1&e)return U=15,1;if(2&e)return U=14,2;if(4&e)return U=13,4;var t=24&e;return t!==0?(U=12,t):e&32?(U=11,32):(t=192&e,t!==0?(U=10,t):e&256?(U=9,256):(t=3584&e,t!==0?(U=8,t):e&4096?(U=7,4096):(t=4186112&e,t!==0?(U=6,t):(t=62914560&e,t!==0?(U=5,t):e&67108864?(U=4,67108864):e&134217728?(U=3,134217728):(t=805306368&e,t!==0?(U=2,t):1073741824&e?(U=1,1073741824):(U=8,e))))))}function qd(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Wd(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(_(358,e))}}function or(e,t){var n=e.pendingLanes;if(n===0)return U=0;var r=0,i=0,o=e.expiredLanes,s=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,i=U=15;else if(o=n&134217727,o!==0){var a=o&~s;a!==0?(r=$t(a),i=U):(l&=o,l!==0&&(r=$t(l),i=U))}else o=n&~s,o!==0?(r=$t(o),i=U):l!==0&&(r=$t(l),i=U);if(r===0)return 0;if(r=31-ct(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&s)){if($t(t),i<=U)return t;U=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ct(t),i=1<<n,r|=e[n],t&=~i;return r}function xc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oi(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Ut(24&~t),e===0?oi(10,t):e;case 10:return e=Ut(192&~t),e===0?oi(8,t):e;case 8:return e=Ut(3584&~t),e===0&&(e=Ut(4186112&~t),e===0&&(e=512)),e;case 2:return t=Ut(805306368&~t),t===0&&(t=268435456),t}throw Error(_(358,e))}function Ut(e){return e&-e}function Ji(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ni(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-ct(t),e[t]=n}var ct=Math.clz32?Math.clz32:Qd,Hd=Math.log,Kd=Math.LN2;function Qd(e){return e===0?32:31-(Hd(e)/Kd|0)|0}var Gd=J.unstable_UserBlockingPriority,Yd=J.unstable_runWithPriority,br=!0;function Xd(e,t,n,r){_t||Us();var i=Vs,o=_t;_t=!0;try{lc(i,e,t,n,r)}finally{(_t=o)||Bs()}}function Jd(e,t,n,r){Yd(Gd,Vs.bind(null,e,t,n,r))}function Vs(e,t,n,r){if(br){var i;if((i=(t&4)===0)&&0<Ne.length&&-1<Wl.indexOf(e))e=$o(null,e,t,n,r),Ne.push(e);else{var o=qs(e,t,n,r);if(o===null)i&&Hl(e,r);else{if(i){if(-1<Wl.indexOf(e)){e=$o(o,e,t,n,r),Ne.push(e);return}if(Bd(o,e,t,n,r))return;Hl(e,r)}Ac(e,t,r,null,n)}}}}function qs(e,t,n,r){var i=Ms(r);if(i=St(i),i!==null){var o=At(i);if(o===null)i=null;else{var s=o.tag;if(s===13){if(i=uc(o),i!==null)return i;i=null}else if(s===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Ac(e,t,r,i,n),null}var Ge=null,Ws=null,Fr=null;function Ec(){if(Fr)return Fr;var e,t=Ws,n=t.length,r,i="value"in Ge?Ge.value:Ge.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Fr=i.slice(e,1<r?1-r:void 0)}function Vr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Or(){return!0}function Ql(){return!1}function ye(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Or:Ql,this.isPropagationStopped=Ql,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Or)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Or)},persist:function(){},isPersistent:Or}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hs=ye(cn),wr=F({},cn,{view:0,detail:0}),Zd=ye(wr),Zi,eo,Tn,Oi=F({},wr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ks,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Tn&&(Tn&&e.type==="mousemove"?(Zi=e.screenX-Tn.screenX,eo=e.screenY-Tn.screenY):eo=Zi=0,Tn=e),Zi)},movementY:function(e){return"movementY"in e?e.movementY:eo}}),Gl=ye(Oi),ep=F({},Oi,{dataTransfer:0}),tp=ye(ep),np=F({},wr,{relatedTarget:0}),to=ye(np),rp=F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0}),ip=ye(rp),op=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sp=ye(op),lp=F({},cn,{data:0}),Yl=ye(lp),ap={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},up={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cp[e])?!!t[e]:!1}function Ks(){return fp}var dp=F({},wr,{key:function(e){if(e.key){var t=ap[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?up[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ks,charCode:function(e){return e.type==="keypress"?Vr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pp=ye(dp),hp=F({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xl=ye(hp),mp=F({},wr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ks}),yp=ye(mp),gp=F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),vp=ye(gp),wp=F({},Oi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kp=ye(wp),xp=[9,13,27,32],Qs=Fe&&"CompositionEvent"in window,Hn=null;Fe&&"documentMode"in document&&(Hn=document.documentMode);var Ep=Fe&&"TextEvent"in window&&!Hn,_c=Fe&&(!Qs||Hn&&8<Hn&&11>=Hn),Jl=" ",Zl=!1;function Sc(e,t){switch(e){case"keyup":return xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zt=!1;function _p(e,t){switch(e){case"compositionend":return Cc(t);case"keypress":return t.which!==32?null:(Zl=!0,Jl);case"textInput":return e=t.data,e===Jl&&Zl?null:e;default:return null}}function Sp(e,t){if(zt)return e==="compositionend"||!Qs&&Sc(e,t)?(e=Ec(),Fr=Ws=Ge=null,zt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _c&&t.locale!=="ko"?null:t.data;default:return null}}var Cp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ea(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cp[e.type]:t==="textarea"}function Tc(e,t,n,r){oc(r),t=si(t,"onChange"),0<t.length&&(n=new Hs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,sr=null;function Tp(e){Oc(e,0)}function Li(e){var t=Ft(e);if(Ju(t))return e}function Rp(e,t){if(e==="change")return t}var Rc=!1;if(Fe){var no;if(Fe){var ro="oninput"in document;if(!ro){var ta=document.createElement("div");ta.setAttribute("oninput","return;"),ro=typeof ta.oninput=="function"}no=ro}else no=!1;Rc=no&&(!document.documentMode||9<document.documentMode)}function na(){Kn&&(Kn.detachEvent("onpropertychange",Pc),sr=Kn=null)}function Pc(e){if(e.propertyName==="value"&&Li(sr)){var t=[];if(Tc(t,sr,e,Ms(e)),e=Tp,_t)e(t);else{_t=!0;try{$s(e,t)}finally{_t=!1,Bs()}}}}function Pp(e,t,n){e==="focusin"?(na(),Kn=t,sr=n,Kn.attachEvent("onpropertychange",Pc)):e==="focusout"&&na()}function Np(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Li(sr)}function Op(e,t){if(e==="click")return Li(t)}function Lp(e,t){if(e==="input"||e==="change")return Li(t)}function jp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var we=typeof Object.is=="function"?Object.is:jp,Ap=Object.prototype.hasOwnProperty;function lr(e,t){if(we(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ap.call(t,n[r])||!we(e[n[r]],t[n[r]]))return!1;return!0}function ra(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ia(e,t){var n=ra(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ra(n)}}function Nc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oa(){for(var e=window,t=ni();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ni(e.document)}return t}function Uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ip=Fe&&"documentMode"in document&&11>=document.documentMode,bt=null,Bo=null,Qn=null,zo=!1;function sa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zo||bt==null||bt!==ni(r)||(r=bt,"selectionStart"in r&&Uo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qn&&lr(Qn,r)||(Qn=r,r=si(Bo,"onSelect"),0<r.length&&(t=new Hs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bt)))}Fs("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Fs("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Fs(Fd,2);for(var la="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),io=0;io<la.length;io++)bs.set(la[io],0);rn("onMouseEnter",["mouseout","mouseover"]);rn("onMouseLeave",["mouseout","mouseover"]);rn("onPointerEnter",["pointerout","pointerover"]);rn("onPointerLeave",["pointerout","pointerover"]);Lt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Lt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Lt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Lt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Lt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Lt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $n="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dp=new Set("cancel close invalid load scroll toggle".split(" ").concat($n));function aa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,$d(r,t,void 0,e),e.currentTarget=null}function Oc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;aa(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;aa(i,l,u),o=a}}}if(ii)throw e=Do,ii=!1,Do=null,e}function z(e,t){var n=Dc(t),r=e+"__bubble";n.has(r)||(jc(t,e,2,!1),n.add(r))}var ua="_reactListening"+Math.random().toString(36).slice(2);function Lc(e){e[ua]||(e[ua]=!0,Gu.forEach(function(t){Dp.has(t)||ca(t,!1,e,null),ca(t,!0,e,null)}))}function ca(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument);var s=Dc(o),l=e+"__"+(t?"capture":"bubble");s.has(l)||(t&&(i|=4),jc(o,e,i,t),s.add(l))}function jc(e,t,n,r){var i=bs.get(t);switch(i===void 0?2:i){case 0:i=Xd;break;case 1:i=Jd;break;default:i=Vs}n=i.bind(null,t,n,e),i=void 0,!Io||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ac(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=St(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}Ad(function(){var u=o,m=Ms(n),v=[];e:{var h=kc.get(e);if(h!==void 0){var E=Hs,x=e;switch(e){case"keypress":if(Vr(n)===0)break e;case"keydown":case"keyup":E=pp;break;case"focusin":x="focus",E=to;break;case"focusout":x="blur",E=to;break;case"beforeblur":case"afterblur":E=to;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":E=Gl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=tp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=yp;break;case yc:case gc:case vc:E=ip;break;case wc:E=vp;break;case"scroll":E=Zd;break;case"wheel":E=kp;break;case"copy":case"cut":case"paste":E=sp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=Xl}var k=(t&4)!==0,c=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var d=u,g;d!==null;){g=d;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,f!==null&&(w=nr(d,f),w!=null&&k.push(ar(d,w,g)))),c)break;d=d.return}0<k.length&&(h=new E(h,x,null,n,m),v.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",h&&!(t&16)&&(x=n.relatedTarget||n.fromElement)&&(St(x)||x[fn]))break e;if((E||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,E?(x=n.relatedTarget||n.toElement,E=u,x=x?St(x):null,x!==null&&(c=At(x),x!==c||x.tag!==5&&x.tag!==6)&&(x=null)):(E=null,x=u),E!==x)){if(k=Gl,w="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(k=Xl,w="onPointerLeave",f="onPointerEnter",d="pointer"),c=E==null?h:Ft(E),g=x==null?h:Ft(x),h=new k(w,d+"leave",E,n,m),h.target=c,h.relatedTarget=g,w=null,St(m)===u&&(k=new k(f,d+"enter",x,n,m),k.target=g,k.relatedTarget=c,w=k),c=w,E&&x)t:{for(k=E,f=x,d=0,g=k;g;g=Mt(g))d++;for(g=0,w=f;w;w=Mt(w))g++;for(;0<d-g;)k=Mt(k),d--;for(;0<g-d;)f=Mt(f),g--;for(;d--;){if(k===f||f!==null&&k===f.alternate)break t;k=Mt(k),f=Mt(f)}k=null}else k=null;E!==null&&fa(v,h,E,k,!1),x!==null&&c!==null&&fa(v,c,x,k,!0)}}e:{if(h=u?Ft(u):window,E=h.nodeName&&h.nodeName.toLowerCase(),E==="select"||E==="input"&&h.type==="file")var P=Rp;else if(ea(h))if(Rc)P=Lp;else{P=Np;var S=Pp}else(E=h.nodeName)&&E.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(P=Op);if(P&&(P=P(e,u))){Tc(v,P,n,m);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&To(h,"number",h.value)}switch(S=u?Ft(u):window,e){case"focusin":(ea(S)||S.contentEditable==="true")&&(bt=S,Bo=u,Qn=null);break;case"focusout":Qn=Bo=bt=null;break;case"mousedown":zo=!0;break;case"contextmenu":case"mouseup":case"dragend":zo=!1,sa(v,n,m);break;case"selectionchange":if(Ip)break;case"keydown":case"keyup":sa(v,n,m)}var O;if(Qs)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else zt?Sc(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(_c&&n.locale!=="ko"&&(zt||A!=="onCompositionStart"?A==="onCompositionEnd"&&zt&&(O=Ec()):(Ge=m,Ws="value"in Ge?Ge.value:Ge.textContent,zt=!0)),S=si(u,A),0<S.length&&(A=new Yl(A,e,null,n,m),v.push({event:A,listeners:S}),O?A.data=O:(O=Cc(n),O!==null&&(A.data=O)))),(O=Ep?_p(e,n):Sp(e,n))&&(u=si(u,"onBeforeInput"),0<u.length&&(m=new Yl("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:u}),m.data=O))}Oc(v,t)})}function ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=nr(e,n),o!=null&&r.unshift(ar(e,o,i)),o=nr(e,t),o!=null&&r.push(ar(e,o,i))),e=e.return}return r}function Mt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fa(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=nr(n,o),a!=null&&s.unshift(ar(n,a,l))):i||(a=nr(n,o),a!=null&&s.push(ar(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}function li(){}var oo=null,so=null;function Ic(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function bo(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var da=typeof setTimeout=="function"?setTimeout:void 0,Mp=typeof clearTimeout=="function"?clearTimeout:void 0;function Gs(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Yt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function pa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var lo=0;function $p(e){return{$$typeof:Is,toString:e,valueOf:e}}var ji=Math.random().toString(36).slice(2),Ye="__reactFiber$"+ji,ai="__reactProps$"+ji,fn="__reactContainer$"+ji,ha="__reactEvents$"+ji;function St(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fn]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pa(e);e!==null;){if(n=e[Ye])return n;e=pa(e)}return t}e=n,n=e.parentNode}return null}function kr(e){return e=e[Ye]||e[fn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ft(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Ai(e){return e[ai]||null}function Dc(e){var t=e[ha];return t===void 0&&(t=e[ha]=new Set),t}var Fo=[],Vt=-1;function ht(e){return{current:e}}function b(e){0>Vt||(e.current=Fo[Vt],Fo[Vt]=null,Vt--)}function W(e,t){Vt++,Fo[Vt]=e.current,e.current=t}var ft={},ae=ht(ft),pe=ht(!1),Pt=ft;function on(e,t){var n=e.type.contextTypes;if(!n)return ft;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function he(e){return e=e.childContextTypes,e!=null}function ui(){b(pe),b(ae)}function ma(e,t,n){if(ae.current!==ft)throw Error(_(168));W(ae,t),W(pe,n)}function Mc(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(_(108,Ht(t)||"Unknown",i));return F({},n,r)}function qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ft,Pt=ae.current,W(ae,e),W(pe,pe.current),!0}function ya(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Mc(e,t,Pt),r.__reactInternalMemoizedMergedChildContext=e,b(pe),b(ae),W(ae,e)):b(pe),W(pe,n)}var Ys=null,Rt=null,Up=J.unstable_runWithPriority,Xs=J.unstable_scheduleCallback,Vo=J.unstable_cancelCallback,Bp=J.unstable_shouldYield,ga=J.unstable_requestPaint,qo=J.unstable_now,zp=J.unstable_getCurrentPriorityLevel,Ii=J.unstable_ImmediatePriority,$c=J.unstable_UserBlockingPriority,Uc=J.unstable_NormalPriority,Bc=J.unstable_LowPriority,zc=J.unstable_IdlePriority,ao={},bp=ga!==void 0?ga:function(){},$e=null,Wr=null,uo=!1,va=qo(),se=1e4>va?qo:function(){return qo()-va};function sn(){switch(zp()){case Ii:return 99;case $c:return 98;case Uc:return 97;case Bc:return 96;case zc:return 95;default:throw Error(_(332))}}function bc(e){switch(e){case 99:return Ii;case 98:return $c;case 97:return Uc;case 96:return Bc;case 95:return zc;default:throw Error(_(332))}}function Nt(e,t){return e=bc(e),Up(e,t)}function ur(e,t,n){return e=bc(e),Xs(e,t,n)}function Me(){if(Wr!==null){var e=Wr;Wr=null,Vo(e)}Fc()}function Fc(){if(!uo&&$e!==null){uo=!0;var e=0;try{var t=$e;Nt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),$e=null}catch(n){throw $e!==null&&($e=$e.slice(e+1)),Xs(Ii,Me),n}finally{uo=!1}}}var Fp=jt.ReactCurrentBatchConfig;function Te(e,t){if(e&&e.defaultProps){t=F({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ci=ht(null),fi=null,qt=null,di=null;function Js(){di=qt=fi=null}function Zs(e){var t=ci.current;b(ci),e.type._context._currentValue=t}function Vc(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Xt(e,t){fi=e,di=qt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Ee(e,t){if(di!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(di=e,t=1073741823),t={context:e,observedBits:t,next:null},qt===null){if(fi===null)throw Error(_(308));qt=t,fi.dependencies={lanes:0,firstContext:t,responders:null}}else qt=qt.next=t;return e._currentValue}var Ke=!1;function el(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function qc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cr(e,t,n,r){var i=e.updateQueue;Ke=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var m=e.alternate;if(m!==null){m=m.updateQueue;var v=m.lastBaseUpdate;v!==s&&(v===null?m.firstBaseUpdate=u:v.next=u,m.lastBaseUpdate=a)}}if(o!==null){v=i.baseState,s=0,m=u=a=null;do{l=o.lane;var h=o.eventTime;if((r&l)===l){m!==null&&(m=m.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var E=e,x=o;switch(l=t,h=n,x.tag){case 1:if(E=x.payload,typeof E=="function"){v=E.call(h,v,l);break e}v=E;break e;case 3:E.flags=E.flags&-4097|64;case 0:if(E=x.payload,l=typeof E=="function"?E.call(h,v,l):E,l==null)break e;v=F({},v,l);break e;case 2:Ke=!0}}o.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[o]:l.push(o))}else h={eventTime:h,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},m===null?(u=m=h,a=v):m=m.next=h,s|=l;if(o=o.next,o===null){if(l=i.shared.pending,l===null)break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(!0);m===null&&(a=v),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=m,Er|=s,e.lanes=s,e.memoizedState=v}}function ka(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var Wc=new Ci.Component().refs;function pi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:F({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Di={isMounted:function(e){return(e=e._reactInternals)?At(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=me(),i=it(e),o=nt(r,i);o.payload=t,n!=null&&(o.callback=n),rt(e,o),ot(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=me(),i=it(e),o=nt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),rt(e,o),ot(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=me(),r=it(e),i=nt(n,r);i.tag=2,t!=null&&(i.callback=t),rt(e,i),ot(e,r,n)}};function xa(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!lr(n,r)||!lr(i,o):!0}function Hc(e,t,n){var r=!1,i=ft,o=t.contextType;return typeof o=="object"&&o!==null?o=Ee(o):(i=he(t)?Pt:ae.current,r=t.contextTypes,o=(r=r!=null)?on(e,i):ft),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Di,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ea(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Di.enqueueReplaceState(t,t.state,null)}function Wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Wc,el(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ee(o):(o=he(t)?Pt:ae.current,i.context=on(e,o)),cr(e,n,i,r),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(pi(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Di.enqueueReplaceState(i,i.state,null),cr(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Lr=Array.isArray;function Rn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var s=r.refs;s===Wc&&(s=r.refs={}),o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function jr(e,t){if(e.type!=="textarea")throw Error(_(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Kc(e){function t(c,f){if(e){var d=c.lastEffect;d!==null?(d.nextEffect=f,c.lastEffect=f):c.firstEffect=c.lastEffect=f,f.nextEffect=null,f.flags=8}}function n(c,f){if(!e)return null;for(;f!==null;)t(c,f),f=f.sibling;return null}function r(c,f){for(c=new Map;f!==null;)f.key!==null?c.set(f.key,f):c.set(f.index,f),f=f.sibling;return c}function i(c,f){return c=pt(c,f),c.index=0,c.sibling=null,c}function o(c,f,d){return c.index=d,e?(d=c.alternate,d!==null?(d=d.index,d<f?(c.flags=2,f):d):(c.flags=2,f)):f}function s(c){return e&&c.alternate===null&&(c.flags=2),c}function l(c,f,d,g){return f===null||f.tag!==6?(f=mo(d,c.mode,g),f.return=c,f):(f=i(f,d),f.return=c,f)}function a(c,f,d,g){return f!==null&&f.elementType===d.type?(g=i(f,d.props),g.ref=Rn(c,f,d),g.return=c,g):(g=Gr(d.type,d.key,d.props,null,c.mode,g),g.ref=Rn(c,f,d),g.return=c,g)}function u(c,f,d,g){return f===null||f.tag!==4||f.stateNode.containerInfo!==d.containerInfo||f.stateNode.implementation!==d.implementation?(f=yo(d,c.mode,g),f.return=c,f):(f=i(f,d.children||[]),f.return=c,f)}function m(c,f,d,g,w){return f===null||f.tag!==7?(f=tn(d,c.mode,g,w),f.return=c,f):(f=i(f,d),f.return=c,f)}function v(c,f,d){if(typeof f=="string"||typeof f=="number")return f=mo(""+f,c.mode,d),f.return=c,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Dn:return d=Gr(f.type,f.key,f.props,null,c.mode,d),d.ref=Rn(c,null,f),d.return=c,d;case Et:return f=yo(f,c.mode,d),f.return=c,f}if(Lr(f)||xn(f))return f=tn(f,c.mode,d,null),f.return=c,f;jr(c,f)}return null}function h(c,f,d,g){var w=f!==null?f.key:null;if(typeof d=="string"||typeof d=="number")return w!==null?null:l(c,f,""+d,g);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Dn:return d.key===w?d.type===Qe?m(c,f,d.props.children,g,w):a(c,f,d,g):null;case Et:return d.key===w?u(c,f,d,g):null}if(Lr(d)||xn(d))return w!==null?null:m(c,f,d,g,null);jr(c,d)}return null}function E(c,f,d,g,w){if(typeof g=="string"||typeof g=="number")return c=c.get(d)||null,l(f,c,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Dn:return c=c.get(g.key===null?d:g.key)||null,g.type===Qe?m(f,c,g.props.children,w,g.key):a(f,c,g,w);case Et:return c=c.get(g.key===null?d:g.key)||null,u(f,c,g,w)}if(Lr(g)||xn(g))return c=c.get(d)||null,m(f,c,g,w,null);jr(f,g)}return null}function x(c,f,d,g){for(var w=null,P=null,S=f,O=f=0,A=null;S!==null&&O<d.length;O++){S.index>O?(A=S,S=null):A=S.sibling;var N=h(c,S,d[O],g);if(N===null){S===null&&(S=A);break}e&&S&&N.alternate===null&&t(c,S),f=o(N,f,O),P===null?w=N:P.sibling=N,P=N,S=A}if(O===d.length)return n(c,S),w;if(S===null){for(;O<d.length;O++)S=v(c,d[O],g),S!==null&&(f=o(S,f,O),P===null?w=S:P.sibling=S,P=S);return w}for(S=r(c,S);O<d.length;O++)A=E(S,c,O,d[O],g),A!==null&&(e&&A.alternate!==null&&S.delete(A.key===null?O:A.key),f=o(A,f,O),P===null?w=A:P.sibling=A,P=A);return e&&S.forEach(function(Z){return t(c,Z)}),w}function k(c,f,d,g){var w=xn(d);if(typeof w!="function")throw Error(_(150));if(d=w.call(d),d==null)throw Error(_(151));for(var P=w=null,S=f,O=f=0,A=null,N=d.next();S!==null&&!N.done;O++,N=d.next()){S.index>O?(A=S,S=null):A=S.sibling;var Z=h(c,S,N.value,g);if(Z===null){S===null&&(S=A);break}e&&S&&Z.alternate===null&&t(c,S),f=o(Z,f,O),P===null?w=Z:P.sibling=Z,P=Z,S=A}if(N.done)return n(c,S),w;if(S===null){for(;!N.done;O++,N=d.next())N=v(c,N.value,g),N!==null&&(f=o(N,f,O),P===null?w=N:P.sibling=N,P=N);return w}for(S=r(c,S);!N.done;O++,N=d.next())N=E(S,c,O,N.value,g),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?O:N.key),f=o(N,f,O),P===null?w=N:P.sibling=N,P=N);return e&&S.forEach(function(Vi){return t(c,Vi)}),w}return function(c,f,d,g){var w=typeof d=="object"&&d!==null&&d.type===Qe&&d.key===null;w&&(d=d.props.children);var P=typeof d=="object"&&d!==null;if(P)switch(d.$$typeof){case Dn:e:{for(P=d.key,w=f;w!==null;){if(w.key===P){switch(w.tag){case 7:if(d.type===Qe){n(c,w.sibling),f=i(w,d.props.children),f.return=c,c=f;break e}break;default:if(w.elementType===d.type){n(c,w.sibling),f=i(w,d.props),f.ref=Rn(c,w,d),f.return=c,c=f;break e}}n(c,w);break}else t(c,w);w=w.sibling}d.type===Qe?(f=tn(d.props.children,c.mode,g,d.key),f.return=c,c=f):(g=Gr(d.type,d.key,d.props,null,c.mode,g),g.ref=Rn(c,f,d),g.return=c,c=g)}return s(c);case Et:e:{for(w=d.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===d.containerInfo&&f.stateNode.implementation===d.implementation){n(c,f.sibling),f=i(f,d.children||[]),f.return=c,c=f;break e}else{n(c,f);break}else t(c,f);f=f.sibling}f=yo(d,c.mode,g),f.return=c,c=f}return s(c)}if(typeof d=="string"||typeof d=="number")return d=""+d,f!==null&&f.tag===6?(n(c,f.sibling),f=i(f,d),f.return=c,c=f):(n(c,f),f=mo(d,c.mode,g),f.return=c,c=f),s(c);if(Lr(d))return x(c,f,d,g);if(xn(d))return k(c,f,d,g);if(P&&jr(c,d),typeof d>"u"&&!w)switch(c.tag){case 1:case 22:case 0:case 11:case 15:throw Error(_(152,Ht(c.type)||"Component"))}return n(c,f)}}var hi=Kc(!0),Qc=Kc(!1),xr={},je=ht(xr),fr=ht(xr),dr=ht(xr);function Ct(e){if(e===xr)throw Error(_(174));return e}function Ho(e,t){switch(W(dr,t),W(fr,e),W(je,xr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oo(t,e)}b(je),W(je,t)}function ln(){b(je),b(fr),b(dr)}function _a(e){Ct(dr.current);var t=Ct(je.current),n=Oo(t,e.type);t!==n&&(W(fr,e),W(je,n))}function tl(e){fr.current===e&&(b(je),b(fr))}var q=ht(0);function mi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Be=null,Xe=null,Ae=!1;function Gc(e,t){var n=ke(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Sa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Ko(e){if(Ae){var t=Xe;if(t){var n=t;if(!Sa(e,t)){if(t=Yt(n.nextSibling),!t||!Sa(e,t)){e.flags=e.flags&-1025|2,Ae=!1,Be=e;return}Gc(Be,n)}Be=e,Xe=Yt(t.firstChild)}else e.flags=e.flags&-1025|2,Ae=!1,Be=e}}function Ca(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Be=e}function Ar(e){if(e!==Be)return!1;if(!Ae)return Ca(e),Ae=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!bo(t,e.memoizedProps))for(t=Xe;t;)Gc(e,t),t=Yt(t.nextSibling);if(Ca(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xe=Yt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xe=null}}else Xe=Be?Yt(e.stateNode.nextSibling):null;return!0}function co(){Xe=Be=null,Ae=!1}var Jt=[];function nl(){for(var e=0;e<Jt.length;e++)Jt[e]._workInProgressVersionPrimary=null;Jt.length=0}var Gn=jt.ReactCurrentDispatcher,xe=jt.ReactCurrentBatchConfig,pr=0,K=null,oe=null,te=null,yi=!1,Yn=!1;function fe(){throw Error(_(321))}function rl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!we(e[n],t[n]))return!1;return!0}function il(e,t,n,r,i,o){if(pr=o,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gn.current=e===null||e.memoizedState===null?qp:Wp,e=n(r,i),Yn){o=0;do{if(Yn=!1,!(25>o))throw Error(_(301));o+=1,te=oe=null,t.updateQueue=null,Gn.current=Hp,e=n(r,i)}while(Yn)}if(Gn.current=ki,t=oe!==null&&oe.next!==null,pr=0,te=oe=K=null,yi=!1,t)throw Error(_(300));return e}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?K.memoizedState=te=e:te=te.next=e,te}function It(){if(oe===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=te===null?K.memoizedState:te.next;if(t!==null)te=t,oe=e;else{if(e===null)throw Error(_(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},te===null?K.memoizedState=te=e:te=te.next=e}return te}function Oe(e,t){return typeof t=="function"?t(e):t}function Pn(e){var t=It(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=oe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var l=s=o=null,a=i;do{var u=a.lane;if((pr&u)===u)l!==null&&(l=l.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),r=a.eagerReducer===e?a.eagerState:e(r,a.action);else{var m={lane:u,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};l===null?(s=l=m,o=r):l=l.next=m,K.lanes|=u,Er|=u}a=a.next}while(a!==null&&a!==i);l===null?o=r:l.next=s,we(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Nn(e){var t=It(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);we(o,t.memoizedState)||(Pe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ta(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(pr&e)===e)&&(t._workInProgressVersionPrimary=r,Jt.push(t))),e)return n(t._source);throw Jt.push(t),Error(_(350))}function Yc(e,t,n,r){var i=ue;if(i===null)throw Error(_(349));var o=t._getVersion,s=o(t._source),l=Gn.current,a=l.useState(function(){return Ta(i,t,n)}),u=a[1],m=a[0];a=te;var v=e.memoizedState,h=v.refs,E=h.getSnapshot,x=v.source;v=v.subscribe;var k=K;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect(function(){h.getSnapshot=n,h.setSnapshot=u;var c=o(t._source);if(!we(s,c)){c=n(t._source),we(m,c)||(u(c),c=it(k),i.mutableReadLanes|=c&i.pendingLanes),c=i.mutableReadLanes,i.entangledLanes|=c;for(var f=i.entanglements,d=c;0<d;){var g=31-ct(d),w=1<<g;f[g]|=c,d&=~w}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var c=h.getSnapshot,f=h.setSnapshot;try{f(c(t._source));var d=it(k);i.mutableReadLanes|=d&i.pendingLanes}catch(g){f(function(){throw g})}})},[t,r]),we(E,n)&&we(x,t)&&we(v,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Oe,lastRenderedState:m},e.dispatch=u=ll.bind(null,K,e),a.queue=e,a.baseQueue=null,m=Ta(i,t,n),a.memoizedState=a.baseState=m),m}function Xc(e,t,n){var r=It();return Yc(r,e,t,n)}function On(e){var t=Tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Oe,lastRenderedState:e},e=e.dispatch=ll.bind(null,K,e),[t.memoizedState,e]}function gi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null},K.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ra(e){var t=Tt();return e={current:e},t.memoizedState=e}function vi(){return It().memoizedState}function Qo(e,t,n,r){var i=Tt();K.flags|=e,i.memoizedState=gi(1|t,n,void 0,r===void 0?null:r)}function ol(e,t,n,r){var i=It();r=r===void 0?null:r;var o=void 0;if(oe!==null){var s=oe.memoizedState;if(o=s.destroy,r!==null&&rl(r,s.deps)){gi(t,n,o,r);return}}K.flags|=e,i.memoizedState=gi(1|t,n,o,r)}function Pa(e,t){return Qo(516,4,e,t)}function wi(e,t){return ol(516,4,e,t)}function Jc(e,t){return ol(4,2,e,t)}function Zc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ef(e,t,n){return n=n!=null?n.concat([e]):null,ol(4,2,Zc.bind(null,t,e),n)}function sl(){}function tf(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function nf(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vp(e,t){var n=sn();Nt(98>n?98:n,function(){e(!0)}),Nt(97<n?97:n,function(){var r=xe.transition;xe.transition=1;try{e(!1),t()}finally{xe.transition=r}})}function ll(e,t,n){var r=me(),i=it(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(s===null?o.next=o:(o.next=s.next,s.next=o),t.pending=o,s=e.alternate,e===K||s!==null&&s===K)Yn=yi=!0;else{if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,a=s(l,n);if(o.eagerReducer=s,o.eagerState=a,we(a,l))return}catch{}finally{}ot(e,i,r)}}var ki={readContext:Ee,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useOpaqueIdentifier:fe,unstable_isNewReconciler:!1},qp={readContext:Ee,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:Ee,useEffect:Pa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qo(4,2,Zc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qo(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=ll.bind(null,K,e),[r.memoizedState,e]},useRef:Ra,useState:On,useDebugValue:sl,useDeferredValue:function(e){var t=On(e),n=t[0],r=t[1];return Pa(function(){var i=xe.transition;xe.transition=1;try{r(e)}finally{xe.transition=i}},[e]),n},useTransition:function(){var e=On(!1),t=e[0];return e=Vp.bind(null,e[1]),Ra(e),[e,t]},useMutableSource:function(e,t,n){var r=Tt();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Yc(r,e,t,n)},useOpaqueIdentifier:function(){if(Ae){var e=!1,t=$p(function(){throw e||(e=!0,n("r:"+(lo++).toString(36))),Error(_(355))}),n=On(t)[1];return!(K.mode&2)&&(K.flags|=516,gi(5,function(){n("r:"+(lo++).toString(36))},void 0,null)),t}return t="r:"+(lo++).toString(36),On(t),t},unstable_isNewReconciler:!1},Wp={readContext:Ee,useCallback:tf,useContext:Ee,useEffect:wi,useImperativeHandle:ef,useLayoutEffect:Jc,useMemo:nf,useReducer:Pn,useRef:vi,useState:function(){return Pn(Oe)},useDebugValue:sl,useDeferredValue:function(e){var t=Pn(Oe),n=t[0],r=t[1];return wi(function(){var i=xe.transition;xe.transition=1;try{r(e)}finally{xe.transition=i}},[e]),n},useTransition:function(){var e=Pn(Oe)[0];return[vi().current,e]},useMutableSource:Xc,useOpaqueIdentifier:function(){return Pn(Oe)[0]},unstable_isNewReconciler:!1},Hp={readContext:Ee,useCallback:tf,useContext:Ee,useEffect:wi,useImperativeHandle:ef,useLayoutEffect:Jc,useMemo:nf,useReducer:Nn,useRef:vi,useState:function(){return Nn(Oe)},useDebugValue:sl,useDeferredValue:function(e){var t=Nn(Oe),n=t[0],r=t[1];return wi(function(){var i=xe.transition;xe.transition=1;try{r(e)}finally{xe.transition=i}},[e]),n},useTransition:function(){var e=Nn(Oe)[0];return[vi().current,e]},useMutableSource:Xc,useOpaqueIdentifier:function(){return Nn(Oe)[0]},unstable_isNewReconciler:!1},Kp=jt.ReactCurrentOwner,Pe=!1;function de(e,t,n,r){t.child=e===null?Qc(t,null,n,r):hi(t,e.child,n,r)}function Na(e,t,n,r,i){n=n.render;var o=t.ref;return Xt(t,i),r=il(e,t,n,r,o,i),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ze(e,t,i)):(t.flags|=1,de(e,t,r,i),t.child)}function Oa(e,t,n,r,i,o){if(e===null){var s=n.type;return typeof s=="function"&&!pl(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,rf(e,t,s,r,i,o)):(e=Gr(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return s=e.child,!(i&o)&&(i=s.memoizedProps,n=n.compare,n=n!==null?n:lr,n(i,r)&&e.ref===t.ref)?ze(e,t,o):(t.flags|=1,e=pt(s,r),e.ref=t.ref,e.return=t,t.child=e)}function rf(e,t,n,r,i,o){if(e!==null&&lr(e.memoizedProps,r)&&e.ref===t.ref)if(Pe=!1,(o&i)!==0)e.flags&16384&&(Pe=!0);else return t.lanes=e.lanes,ze(e,t,o);return Go(e,t,n,r,o)}function fo(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Dr(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Dr(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Dr(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Dr(t,r);return de(e,t,i,n),t.child}function of(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Go(e,t,n,r,i){var o=he(n)?Pt:ae.current;return o=on(t,o),Xt(t,i),n=il(e,t,n,r,o,i),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ze(e,t,i)):(t.flags|=1,de(e,t,n,i),t.child)}function La(e,t,n,r,i){if(he(n)){var o=!0;qr(t)}else o=!1;if(Xt(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Hc(t,n,r),Wo(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ee(u):(u=he(n)?Pt:ae.current,u=on(t,u));var m=n.getDerivedStateFromProps,v=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function";v||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Ea(t,s,r,u),Ke=!1;var h=t.memoizedState;s.state=h,cr(t,r,s,i),a=t.memoizedState,l!==r||h!==a||pe.current||Ke?(typeof m=="function"&&(pi(t,n,m,r),a=t.memoizedState),(l=Ke||xa(t,n,l,r,h,a,u))?(v||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4)):(typeof s.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{s=t.stateNode,qc(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Te(t.type,l),s.props=u,v=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ee(a):(a=he(n)?Pt:ae.current,a=on(t,a));var E=n.getDerivedStateFromProps;(m=typeof E=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==v||h!==a)&&Ea(t,s,r,a),Ke=!1,h=t.memoizedState,s.state=h,cr(t,r,s,i);var x=t.memoizedState;l!==v||h!==x||pe.current||Ke?(typeof E=="function"&&(pi(t,n,E,r),x=t.memoizedState),(u=Ke||xa(t,n,u,r,h,x,a))?(m||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),r=!1)}return Yo(e,t,n,r,o,i)}function Yo(e,t,n,r,i,o){of(e,t);var s=(t.flags&64)!==0;if(!r&&!s)return i&&ya(t,n,!1),ze(e,t,o);r=t.stateNode,Kp.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=hi(t,e.child,null,o),t.child=hi(t,null,l,o)):de(e,t,l,o),t.memoizedState=r.state,i&&ya(t,n,!0),t.child}function ja(e){var t=e.stateNode;t.pendingContext?ma(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(e,t.context,!1),Ho(e,t.containerInfo)}var Ir={dehydrated:null,retryLane:0};function Aa(e,t,n){var r=t.pendingProps,i=q.current,o=!1,s;return(s=(t.flags&64)!==0)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(i|=1),W(q,i&1),e===null?(r.fallback!==void 0&&Ko(t),e=r.children,i=r.fallback,o?(e=Ia(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ir,e):typeof r.unstable_expectedLoadTime=="number"?(e=Ia(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ir,t.lanes=33554432,e):(n=hl({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=Ma(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ir,r):(n=Da(e,t,r.children,n),t.memoizedState=null,n):o?(r=Ma(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ir,r):(n=Da(e,t,r.children,n),t.memoizedState=null,n)}function Ia(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=hl(t,i,0,null),n=tn(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Da(e,t,n,r){var i=e.child;return e=i.sibling,n=pt(i,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ma(e,t,n,r,i){var o=t.mode,s=e.child;e=s.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,s=n.lastEffect,s!==null?(t.firstEffect=n.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):n=pt(s,l),e!==null?r=pt(e,r):(r=tn(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function $a(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Vc(e.return,t)}function po(e,t,n,r,i,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i,s.lastEffect=o)}function Ua(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(de(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$a(e,n);else if(e.tag===19)$a(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(W(q,r),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&mi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),po(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&mi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}po(t,!0,n,null,o,t.lastEffect);break;case"together":po(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Er|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var sf,Xo,lf,af;sf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Xo=function(){};lf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ct(je.current);var o=null;switch(n){case"input":i=So(e,i),r=So(e,r),o=[];break;case"option":i=Ro(e,i),r=Ro(e,r),o=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case"textarea":i=Po(e,i),r=Po(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=li)}Lo(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(er.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(er.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&z("scroll",e),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===Is?a.toString():(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};af=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ln(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qp(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return he(t.type)&&ui(),null;case 3:return ln(),b(pe),b(ae),nl(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ar(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Xo(t),null;case 5:tl(t);var i=Ct(dr.current);if(n=t.type,e!==null&&t.stateNode!=null)lf(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(_(166));return null}if(e=Ct(je.current),Ar(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ye]=t,r[ai]=o,n){case"dialog":z("cancel",r),z("close",r);break;case"iframe":case"object":case"embed":z("load",r);break;case"video":case"audio":for(e=0;e<$n.length;e++)z($n[e],r);break;case"source":z("error",r);break;case"img":case"image":case"link":z("error",r),z("load",r);break;case"details":z("toggle",r);break;case"input":Ul(r,o),z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},z("invalid",r);break;case"textarea":zl(r,o),z("invalid",r)}Lo(n,o),e=null;for(var s in o)o.hasOwnProperty(s)&&(i=o[s],s==="children"?typeof i=="string"?r.textContent!==i&&(e=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(e=["children",""+i]):er.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&z("scroll",r));switch(n){case"input":Rr(r),Bl(r,o,!0);break;case"textarea":Rr(r),bl(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=li)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(s=i.nodeType===9?i:i.ownerDocument,e===No.html&&(e=tc(n)),e===No.html?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ye]=t,e[ai]=r,sf(e,t,!1,!1),t.stateNode=e,s=jo(n,r),n){case"dialog":z("cancel",e),z("close",e),i=r;break;case"iframe":case"object":case"embed":z("load",e),i=r;break;case"video":case"audio":for(i=0;i<$n.length;i++)z($n[i],e);i=r;break;case"source":z("error",e),i=r;break;case"img":case"image":case"link":z("error",e),z("load",e),i=r;break;case"details":z("toggle",e),i=r;break;case"input":Ul(e,r),i=So(e,r),z("invalid",e);break;case"option":i=Ro(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),z("invalid",e);break;case"textarea":zl(e,r),i=Po(e,r),z("invalid",e);break;default:i=r}Lo(n,i);var l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?ic(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&nc(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&tr(e,a):typeof a=="number"&&tr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(er.hasOwnProperty(o)?a!=null&&o==="onScroll"&&z("scroll",e):a!=null&&Ps(e,o,a,s))}switch(n){case"input":Rr(e),Bl(e,r,!1);break;case"textarea":Rr(e),bl(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ut(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Kt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Kt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=li)}Ic(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)af(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));n=Ct(dr.current),Ct(je.current),Ar(t)?(r=t.stateNode,n=t.memoizedProps,r[Ye]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ye]=t,t.stateNode=r)}return null;case 13:return b(q),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ar(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||q.current&1?ne===0&&(ne=3):((ne===0||ne===3)&&(ne=4),ue===null||!(Er&134217727)&&!(pn&134217727)||Zt(ue,le))),(r||n)&&(t.flags|=4),null);case 4:return ln(),Xo(t),e===null&&Lc(t.stateNode.containerInfo),null;case 10:return Zs(t),null;case 17:return he(t.type)&&ui(),null;case 19:if(b(q),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,s=r.rendering,s===null)if(o)Ln(r,!1);else{if(ne!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(s=mi(e),s!==null){for(t.flags|=64,Ln(r,!1),o=s.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return W(q,q.current&1|2),t.child}e=e.sibling}r.tail!==null&&se()>rs&&(t.flags|=64,o=!0,Ln(r,!1),t.lanes=33554432)}else{if(!o)if(e=mi(s),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ln(r,!0),r.tail===null&&r.tailMode==="hidden"&&!s.alternate&&!Ae)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*se()-r.renderingStartTime>rs&&n!==1073741824&&(t.flags|=64,o=!0,Ln(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(n=r.last,n!==null?n.sibling=s:t.child=s,r.last=s)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=se(),n.sibling=null,t=q.current,W(q,o?t&1|2:t&1),n):null;case 23:case 24:return dl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(_(156,t.tag))}function Gp(e){switch(e.tag){case 1:he(e.type)&&ui();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(ln(),b(pe),b(ae),nl(),t=e.flags,t&64)throw Error(_(285));return e.flags=t&-4097|64,e;case 5:return tl(e),null;case 13:return b(q),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return b(q),null;case 4:return ln(),null;case 10:return Zs(e),null;case 23:case 24:return dl(),null;default:return null}}function al(e,t){try{var n="",r=t;do n+=Pd(r),r=r.return;while(r);var i=n}catch(o){i=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:i}}function Jo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Yp=typeof WeakMap=="function"?WeakMap:Map;function uf(e,t,n){n=nt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ei||(Ei=!0,is=r),Jo(e,t)},n}function cf(e,t,n){n=nt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return Jo(e,t),r(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Le===null?Le=new Set([this]):Le.add(this),Jo(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}var Xp=typeof WeakSet=="function"?WeakSet:Set;function Ba(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){st(e,n)}else t.current=null}function Jp(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Te(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Gs(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(_(163))}function Zp(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,i&4&&i&1&&(wf(n,e),lh(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Te(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&ka(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ka(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Ic(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&hc(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(_(163))}function za(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=rc("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ba(e,t){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Ys,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)wf(t,n);else{r=t;try{i()}catch(o){st(r,o)}}n=n.next}while(n!==e)}break;case 1:if(Ba(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){st(t,o)}break;case 5:Ba(t);break;case 4:ff(e,t)}}function Fa(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Va(e){return e.tag===5||e.tag===3||e.tag===4}function qa(e){e:{for(var t=e.return;t!==null;){if(Va(t))break e;t=t.return}throw Error(_(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(_(161))}n.flags&16&&(tr(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Va(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Zo(e,n,t):es(e,n,t)}function Zo(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=li));else if(r!==4&&(e=e.child,e!==null))for(Zo(e,t,n),e=e.sibling;e!==null;)Zo(e,t,n),e=e.sibling}function es(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(es(e,t,n),e=e.sibling;e!==null;)es(e,t,n),e=e.sibling}function ff(e,t){for(var n=t,r=!1,i,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(_(160));switch(i=r.stateNode,r.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var s=e,l=n,a=l;;)if(ba(s,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(s=i,l=n.stateNode,s.nodeType===8?s.parentNode.removeChild(l):s.removeChild(l)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(ba(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function ho(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[ai]=r,e==="input"&&r.type==="radio"&&r.name!=null&&Zu(n,r),jo(e,i),t=jo(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];s==="style"?ic(n,l):s==="dangerouslySetInnerHTML"?nc(n,l):s==="children"?tr(n,l):Ps(n,s,l,t)}switch(e){case"input":Co(n,r);break;case"textarea":ec(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?Kt(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?Kt(n,!!r.multiple,r.defaultValue,!0):Kt(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(_(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,hc(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(fl=se(),za(t.child,!0)),Wa(t);return;case 19:Wa(t);return;case 17:return;case 23:case 24:za(t,t.memoizedState!==null);return}throw Error(_(163))}function Wa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xp),t.forEach(function(r){var i=ch.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function eh(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var th=Math.ceil,xi=jt.ReactCurrentDispatcher,ul=jt.ReactCurrentOwner,L=0,ue=null,Y=null,le=0,Ot=0,ts=ht(0),ne=0,Mi=null,dn=0,Er=0,pn=0,cl=0,ns=null,fl=0,rs=1/0;function hn(){rs=se()+500}var T=null,Ei=!1,is=null,Le=null,dt=!1,Xn=null,Un=90,os=[],ss=[],be=null,Jn=0,ls=null,Hr=-1,Ue=0,Kr=0,Zn=null,Qr=!1;function me(){return L&48?se():Hr!==-1?Hr:Hr=se()}function it(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return sn()===99?1:2;if(Ue===0&&(Ue=dn),Fp.transition!==0){Kr!==0&&(Kr=ns!==null?ns.pendingLanes:0),e=Ue;var t=4186112&~Kr;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=sn(),L&4&&e===98?e=oi(12,Ue):(e=qd(e),e=oi(e,Ue)),e}function ot(e,t,n){if(50<Jn)throw Jn=0,ls=null,Error(_(185));if(e=$i(e,t),e===null)return null;Ni(e,t,n),e===ue&&(pn|=t,ne===4&&Zt(e,le));var r=sn();t===1?L&8&&!(L&48)?as(e):(_e(e,n),L===0&&(hn(),Me())):(!(L&4)||r!==98&&r!==99||(be===null?be=new Set([e]):be.add(e)),_e(e,n)),ns=e}function $i(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function _e(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-ct(s),a=1<<l,u=o[l];if(u===-1){if(!(a&r)||a&i){u=t,$t(a);var m=U;o[l]=10<=m?u+250:6<=m?u+5e3:-1}}else u<=t&&(e.expiredLanes|=a);s&=~a}if(r=or(e,e===ue?le:0),t=U,r===0)n!==null&&(n!==ao&&Vo(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==ao&&Vo(n)}t===15?(n=as.bind(null,e),$e===null?($e=[n],Wr=Xs(Ii,Fc)):$e.push(n),n=ao):t===14?n=ur(99,as.bind(null,e)):(n=Wd(t),n=ur(n,df.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function df(e){if(Hr=-1,Kr=Ue=0,L&48)throw Error(_(327));var t=e.callbackNode;if(mt()&&e.callbackNode!==t)return null;var n=or(e,e===ue?le:0);if(n===0)return null;var r=n,i=L;L|=16;var o=yf();(ue!==e||le!==r)&&(hn(),en(e,r));do try{ih();break}catch(l){mf(e,l)}while(!0);if(Js(),xi.current=o,L=i,Y!==null?r=0:(ue=null,le=0,r=ne),dn&pn)en(e,0);else if(r!==0){if(r===2&&(L|=64,e.hydrate&&(e.hydrate=!1,Gs(e.containerInfo)),n=xc(e),n!==0&&(r=Bn(e,n))),r===1)throw t=Mi,en(e,0),Zt(e,n),_e(e,se()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(_(345));case 2:xt(e);break;case 3:if(Zt(e,n),(n&62914560)===n&&(r=fl+500-se(),10<r)){if(or(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){me(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=da(xt.bind(null,e),r);break}xt(e);break;case 4:if(Zt(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-ct(n);o=1<<s,s=r[s],s>i&&(i=s),n&=~o}if(n=i,n=se()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*th(n/1960))-n,10<n){e.timeoutHandle=da(xt.bind(null,e),n);break}xt(e);break;case 5:xt(e);break;default:throw Error(_(329))}}return _e(e,se()),e.callbackNode===t?df.bind(null,e):null}function Zt(e,t){for(t&=~cl,t&=~pn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ct(t),r=1<<n;e[n]=-1,t&=~r}}function as(e){if(L&48)throw Error(_(327));if(mt(),e===ue&&e.expiredLanes&le){var t=le,n=Bn(e,t);dn&pn&&(t=or(e,t),n=Bn(e,t))}else t=or(e,0),n=Bn(e,t);if(e.tag!==0&&n===2&&(L|=64,e.hydrate&&(e.hydrate=!1,Gs(e.containerInfo)),t=xc(e),t!==0&&(n=Bn(e,t))),n===1)throw n=Mi,en(e,0),Zt(e,t),_e(e,se()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xt(e),_e(e,se()),null}function nh(){if(be!==null){var e=be;be=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,_e(t,se())})}Me()}function pf(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(hn(),Me())}}function hf(e,t){var n=L;L&=-2,L|=8;try{return e(t)}finally{L=n,L===0&&(hn(),Me())}}function Dr(e,t){W(ts,Ot),Ot|=t,dn|=t}function dl(){Ot=ts.current,b(ts)}function en(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Mp(n)),Y!==null)for(n=Y.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&ui();break;case 3:ln(),b(pe),b(ae),nl();break;case 5:tl(r);break;case 4:ln();break;case 13:b(q);break;case 19:b(q);break;case 10:Zs(r);break;case 23:case 24:dl()}n=n.return}ue=e,Y=pt(e.current,null),le=Ot=dn=t,ne=0,Mi=null,cl=pn=Er=0}function mf(e,t){do{var n=Y;try{if(Js(),Gn.current=ki,yi){for(var r=K.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}yi=!1}if(pr=0,te=oe=K=null,Yn=!1,ul.current=null,n===null||n.return===null){ne=1,Mi=t,Y=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=le,l.flags|=2048,l.firstEffect=l.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a;if(!(l.mode&2)){var m=l.alternate;m?(l.updateQueue=m.updateQueue,l.memoizedState=m.memoizedState,l.lanes=m.lanes):(l.updateQueue=null,l.memoizedState=null)}var v=(q.current&1)!==0,h=s;do{var E;if(E=h.tag===13){var x=h.memoizedState;if(x!==null)E=x.dehydrated!==null;else{var k=h.memoizedProps;E=k.fallback===void 0?!1:k.unstable_avoidThisFallback!==!0?!0:!v}}if(E){var c=h.updateQueue;if(c===null){var f=new Set;f.add(u),h.updateQueue=f}else c.add(u);if(!(h.mode&2)){if(h.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var d=nt(-1,1);d.tag=2,rt(l,d)}l.lanes|=1;break e}a=void 0,l=t;var g=o.pingCache;if(g===null?(g=o.pingCache=new Yp,a=new Set,g.set(u,a)):(a=g.get(u),a===void 0&&(a=new Set,g.set(u,a))),!a.has(l)){a.add(l);var w=uh.bind(null,o,u,l);u.then(w,w)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(h!==null);a=Error((Ht(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
41
+
42
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}ne!==5&&(ne=2),a=al(a,l),h=s;do{switch(h.tag){case 3:o=a,h.flags|=4096,t&=-t,h.lanes|=t;var P=uf(h,o,t);wa(h,P);break e;case 1:o=a;var S=h.type,O=h.stateNode;if(!(h.flags&64)&&(typeof S.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Le===null||!Le.has(O)))){h.flags|=4096,t&=-t,h.lanes|=t;var A=cf(h,o,t);wa(h,A);break e}}h=h.return}while(h!==null)}vf(n)}catch(N){t=N,Y===n&&n!==null&&(Y=n=n.return);continue}break}while(!0)}function yf(){var e=xi.current;return xi.current=ki,e===null?ki:e}function Bn(e,t){var n=L;L|=16;var r=yf();ue===e&&le===t||en(e,t);do try{rh();break}catch(i){mf(e,i)}while(!0);if(Js(),L=n,xi.current=r,Y!==null)throw Error(_(261));return ue=null,le=0,ne}function rh(){for(;Y!==null;)gf(Y)}function ih(){for(;Y!==null&&!Bp();)gf(Y)}function gf(e){var t=kf(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,t===null?vf(e):Y=t,ul.current=null}function vf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=Gp(t),n!==null){n.flags&=2047,Y=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Qp(n,t,Ot),n!==null){Y=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Ot&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);ne===0&&(ne=5)}function xt(e){var t=sn();return Nt(99,oh.bind(null,e,t)),null}function oh(e,t){do mt();while(Xn!==null);if(L&48)throw Error(_(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var a=31-ct(o),u=1<<a;i[a]=0,s[a]=-1,l[a]=-1,o&=~u}if(be!==null&&!(r&24)&&be.has(e)&&be.delete(e),e===ue&&(Y=ue=null,le=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(i=L,L|=32,ul.current=null,oo=br,s=oa(),Uo(s)){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,o=u.anchorOffset,a=u.focusNode,u=u.focusOffset;try{l.nodeType,a.nodeType}catch{l=null;break e}var m=0,v=-1,h=-1,E=0,x=0,k=s,c=null;t:for(;;){for(var f;k!==l||o!==0&&k.nodeType!==3||(v=m+o),k!==a||u!==0&&k.nodeType!==3||(h=m+u),k.nodeType===3&&(m+=k.nodeValue.length),(f=k.firstChild)!==null;)c=k,k=f;for(;;){if(k===s)break t;if(c===l&&++E===o&&(v=m),c===a&&++x===u&&(h=m),(f=k.nextSibling)!==null)break;k=c,c=k.parentNode}k=f}l=v===-1||h===-1?null:{start:v,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;so={focusedElem:s,selectionRange:l},br=!1,Zn=null,Qr=!1,T=r;do try{sh()}catch(N){if(T===null)throw Error(_(330));st(T,N),T=T.nextEffect}while(T!==null);Zn=null,T=r;do try{for(s=e;T!==null;){var d=T.flags;if(d&16&&tr(T.stateNode,""),d&128){var g=T.alternate;if(g!==null){var w=g.ref;w!==null&&(typeof w=="function"?w(null):w.current=null)}}switch(d&1038){case 2:qa(T),T.flags&=-3;break;case 6:qa(T),T.flags&=-3,ho(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,ho(T.alternate,T);break;case 4:ho(T.alternate,T);break;case 8:l=T,ff(s,l);var P=l.alternate;Fa(l),P!==null&&Fa(P)}T=T.nextEffect}}catch(N){if(T===null)throw Error(_(330));st(T,N),T=T.nextEffect}while(T!==null);if(w=so,g=oa(),d=w.focusedElem,s=w.selectionRange,g!==d&&d&&d.ownerDocument&&Nc(d.ownerDocument.documentElement,d)){for(s!==null&&Uo(d)&&(g=s.start,w=s.end,w===void 0&&(w=g),"selectionStart"in d?(d.selectionStart=g,d.selectionEnd=Math.min(w,d.value.length)):(w=(g=d.ownerDocument||document)&&g.defaultView||window,w.getSelection&&(w=w.getSelection(),l=d.textContent.length,P=Math.min(s.start,l),s=s.end===void 0?P:Math.min(s.end,l),!w.extend&&P>s&&(l=s,s=P,P=l),l=ia(d,P),o=ia(d,s),l&&o&&(w.rangeCount!==1||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&(g=g.createRange(),g.setStart(l.node,l.offset),w.removeAllRanges(),P>s?(w.addRange(g),w.extend(o.node,o.offset)):(g.setEnd(o.node,o.offset),w.addRange(g)))))),g=[],w=d;w=w.parentNode;)w.nodeType===1&&g.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<g.length;d++)w=g[d],w.element.scrollLeft=w.left,w.element.scrollTop=w.top}br=!!oo,so=oo=null,e.current=n,T=r;do try{for(d=e;T!==null;){var S=T.flags;if(S&36&&Zp(d,T.alternate,T),S&128){g=void 0;var O=T.ref;if(O!==null){var A=T.stateNode;switch(T.tag){case 5:g=A;break;default:g=A}typeof O=="function"?O(g):O.current=g}}T=T.nextEffect}}catch(N){if(T===null)throw Error(_(330));st(T,N),T=T.nextEffect}while(T!==null);T=null,bp(),L=i}else e.current=n;if(dt)dt=!1,Xn=e,Un=t;else for(T=r;T!==null;)t=T.nextEffect,T.nextEffect=null,T.flags&8&&(S=T,S.sibling=null,S.stateNode=null),T=t;if(r=e.pendingLanes,r===0&&(Le=null),r===1?e===ls?Jn++:(Jn=0,ls=e):Jn=0,n=n.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Ys,n,void 0,(n.current.flags&64)===64)}catch{}if(_e(e,se()),Ei)throw Ei=!1,e=is,is=null,e;return L&8||Me(),null}function sh(){for(;T!==null;){var e=T.alternate;Qr||Zn===null||(T.flags&8?ql(T,Zn)&&(Qr=!0):T.tag===13&&eh(e,T)&&ql(T,Zn)&&(Qr=!0));var t=T.flags;t&256&&Jp(e,T),!(t&512)||dt||(dt=!0,ur(97,function(){return mt(),null})),T=T.nextEffect}}function mt(){if(Un!==90){var e=97<Un?97:Un;return Un=90,Nt(e,ah)}return!1}function lh(e,t){os.push(t,e),dt||(dt=!0,ur(97,function(){return mt(),null}))}function wf(e,t){ss.push(t,e),dt||(dt=!0,ur(97,function(){return mt(),null}))}function ah(){if(Xn===null)return!1;var e=Xn;if(Xn=null,L&48)throw Error(_(331));var t=L;L|=32;var n=ss;ss=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,typeof s=="function")try{s()}catch(a){if(o===null)throw Error(_(330));st(o,a)}}for(n=os,os=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(a){if(o===null)throw Error(_(330));st(o,a)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return L=t,Me(),!0}function Ha(e,t,n){t=al(n,t),t=uf(e,t,1),rt(e,t),t=me(),e=$i(e,1),e!==null&&(Ni(e,1,t),_e(e,t))}function st(e,t){if(e.tag===3)Ha(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Ha(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Le===null||!Le.has(r))){e=al(t,e);var i=cf(n,e,1);if(rt(n,i),i=me(),n=$i(n,1),n!==null)Ni(n,1,i),_e(n,i);else if(typeof r.componentDidCatch=="function"&&(Le===null||!Le.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function uh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=me(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(le&n)===n&&(ne===4||ne===3&&(le&62914560)===le&&500>se()-fl?en(e,0):cl|=n),_e(e,t)}function ch(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Ue===0&&(Ue=dn),t=Ut(62914560&~Ue),t===0&&(t=4194304)):t=sn()===99?1:2:t=1),n=me(),e=$i(e,t),e!==null&&(Ni(e,t,n),_e(e,n))}var kf;kf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)Pe=!0;else if(n&r)Pe=!!(e.flags&16384);else{switch(Pe=!1,t.tag){case 3:ja(t),co();break;case 5:_a(t);break;case 1:he(t.type)&&qr(t);break;case 4:Ho(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;W(ci,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?Aa(e,t,n):(W(q,q.current&1),t=ze(e,t,n),t!==null?t.sibling:null);W(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return Ua(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(q,q.current),r)break;return null;case 23:case 24:return t.lanes=0,fo(e,t,n)}return ze(e,t,n)}else Pe=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=on(t,ae.current),Xt(t,n),i=il(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)){var o=!0;qr(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,el(t);var s=r.getDerivedStateFromProps;typeof s=="function"&&pi(t,r,s,e),i.updater=Di,t.stateNode=i,i._reactInternals=t,Wo(t,r,e,n),t=Yo(null,t,r,!0,o,n)}else t.tag=0,de(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=dh(i),e=Te(i,e),o){case 0:t=Go(null,t,i,e,n);break e;case 1:t=La(null,t,i,e,n);break e;case 11:t=Na(null,t,i,e,n);break e;case 14:t=Oa(null,t,i,Te(i.type,e),r,n);break e}throw Error(_(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),Go(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),La(e,t,r,i,n);case 3:if(ja(t),r=t.updateQueue,e===null||r===null)throw Error(_(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,qc(e,t),cr(t,r,null,n),r=t.memoizedState.element,r===i)co(),t=ze(e,t,n);else{if(i=t.stateNode,(o=i.hydrate)&&(Xe=Yt(t.stateNode.containerInfo.firstChild),Be=t,o=Ae=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Jt.push(o);for(n=Qc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else de(e,t,r,n),co();t=t.child}return t;case 5:return _a(t),e===null&&Ko(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,bo(r,i)?s=null:o!==null&&bo(r,o)&&(t.flags|=16),of(e,t),de(e,t,s,n),t.child;case 6:return e===null&&Ko(t),null;case 13:return Aa(e,t,n);case 4:return Ho(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hi(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),Na(e,t,r,i,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(W(ci,l._currentValue),l._currentValue=o,s!==null)if(l=s.value,o=we(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(s.children===i.children&&!pe.current){t=ze(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r&&u.observedBits&o){l.tag===1&&(u=nt(-1,n&-n),u.tag=2,rt(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Vc(l.return,n),a.lanes|=n;break}u=u.next}}else s=l.tag===10&&l.type===t.type?null:l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}de(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,r=o.children,Xt(t,n),i=Ee(i,o.unstable_observedBits),r=r(i),t.flags|=1,de(e,t,r,n),t.child;case 14:return i=t.type,o=Te(i,t.pendingProps),o=Te(i.type,o),Oa(e,t,i,o,r,n);case 15:return rf(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,he(r)?(e=!0,qr(t)):e=!1,Xt(t,n),Hc(t,r,i),Wo(t,r,i,n),Yo(null,t,r,!0,e,n);case 19:return Ua(e,t,n);case 23:return fo(e,t,n);case 24:return fo(e,t,n)}throw Error(_(156,t.tag))};function fh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ke(e,t,n,r){return new fh(e,t,n,r)}function pl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dh(e){if(typeof e=="function")return pl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ti)return 11;if(e===Ri)return 14}return 2}function pt(e,t){var n=e.alternate;return n===null?(n=ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gr(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")pl(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qe:return tn(n.children,i,o,t);case Yu:s=8,i|=16;break;case Ns:s=8,i|=1;break;case Fn:return e=ke(12,n,t,i|8),e.elementType=Fn,e.type=Fn,e.lanes=o,e;case Vn:return e=ke(13,n,t,i),e.type=Vn,e.elementType=Vn,e.lanes=o,e;case ti:return e=ke(19,n,t,i),e.elementType=ti,e.lanes=o,e;case Ds:return hl(n,i,o,t);case _o:return e=ke(24,n,t,i),e.elementType=_o,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Os:s=10;break e;case Ls:s=9;break e;case Ti:s=11;break e;case Ri:s=14;break e;case js:s=16,r=null;break e;case As:s=22;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=ke(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function tn(e,t,n,r){return e=ke(7,e,r,t),e.lanes=n,e}function hl(e,t,n,r){return e=ke(23,e,r,t),e.elementType=Ds,e.lanes=n,e}function mo(e,t,n){return e=ke(6,e,null,t),e.lanes=n,e}function yo(e,t,n){return t=ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ph(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ji(0),this.expirationTimes=Ji(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ji(0),this.mutableSourceEagerHydrationData=null}function hh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Et,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _i(e,t,n,r){var i=t.current,o=me(),s=it(i);e:if(n){n=n._reactInternals;t:{if(At(n)!==n||n.tag!==1)throw Error(_(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(he(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(_(171))}if(n.tag===1){var a=n.type;if(he(a)){n=Mc(n,a,l);break e}}n=l}else n=ft;return t.context===null?t.context=n:t.pendingContext=n,t=nt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),rt(i,t),ot(i,s,o),s}function go(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ka(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ml(e,t){Ka(e,t),(e=e.alternate)&&Ka(e,t)}function mh(){return null}function yl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new ph(e,t,n!=null&&n.hydrate===!0),t=ke(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,el(t),e[fn]=n.current,Lc(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}yl.prototype.render=function(e){_i(e,this._internalRoot,null,null)};yl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;_i(null,e,null,function(){t[fn]=null})};function _r(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yh(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new yl(e,0,t?{hydrate:!0}:void 0)}function Ui(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o._internalRoot;if(typeof i=="function"){var l=i;i=function(){var u=go(s);l.call(u)}}_i(t,s,e,i)}else{if(o=n._reactRootContainer=yh(n,r),s=o._internalRoot,typeof i=="function"){var a=i;i=function(){var u=go(s);a.call(u)}}hf(function(){_i(t,s,e,i)})}return go(s)}fc=function(e){if(e.tag===13){var t=me();ot(e,4,t),ml(e,4)}};zs=function(e){if(e.tag===13){var t=me();ot(e,67108864,t),ml(e,67108864)}};dc=function(e){if(e.tag===13){var t=me(),n=it(e);ot(e,n,t),ml(e,n)}};pc=function(e,t){return t()};Ao=function(e,t,n){switch(t){case"input":if(Co(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ai(r);if(!i)throw Error(_(90));Ju(r),Co(r,i)}}}break;case"textarea":ec(e,n);break;case"select":t=n.value,t!=null&&Kt(e,!!n.multiple,t,!1)}};$s=pf;lc=function(e,t,n,r,i){var o=L;L|=4;try{return Nt(98,e.bind(null,t,n,r,i))}finally{L=o,L===0&&(hn(),Me())}};Us=function(){!(L&49)&&(nh(),mt())};ac=function(e,t){var n=L;L|=2;try{return e(t)}finally{L=n,L===0&&(hn(),Me())}};function xf(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_r(t))throw Error(_(200));return hh(e,t,null,n)}var gh={Events:[kr,Ft,Ai,oc,sc,mt,{current:!1}]},jn={findFiberByHostInstance:St,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},vh={bundleType:jn.bundleType,version:jn.version,rendererPackageName:jn.rendererPackageName,rendererConfig:jn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cc(e),e===null?null:e.stateNode},findFiberByHostInstance:jn.findFiberByHostInstance||mh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mr.isDisabled&&Mr.supportsFiber)try{Ys=Mr.inject(vh),Rt=Mr}catch{}}Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gh;Se.createPortal=xf;Se.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):Error(_(268,Object.keys(e)));return e=cc(t),e=e===null?null:e.stateNode,e};Se.flushSync=function(e,t){var n=L;if(n&48)return e(t);L|=1;try{if(e)return Nt(99,e.bind(null,t))}finally{L=n,Me()}};Se.hydrate=function(e,t,n){if(!_r(t))throw Error(_(200));return Ui(null,e,t,!0,n)};Se.render=function(e,t,n){if(!_r(t))throw Error(_(200));return Ui(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!_r(e))throw Error(_(40));return e._reactRootContainer?(hf(function(){Ui(null,null,e,!1,function(){e._reactRootContainer=null,e[fn]=null})}),!0):!1};Se.unstable_batchedUpdates=pf;Se.unstable_createPortal=function(e,t){return xf(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!_r(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Ui(e,t,n,!1,r)};Se.version="17.0.2";function Ef(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ef)}catch(e){console.error(e)}}Ef(),Hu.exports=Se;var _f=Hu.exports;const Iv=Ru(_f),wh="modulepreload",kh=function(e){return"/xenon/"+e},Qa={},V=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(a=>{if(a=kh(a),a in Qa)return;Qa[a]=!0;const u=a.endsWith(".css"),m=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${m}`))return;const v=document.createElement("link");if(v.rel=u?"stylesheet":wh,u||(v.as="script"),v.crossOrigin="",v.href=a,l&&v.setAttribute("nonce",l),document.head.appendChild(v),u)return new Promise((h,E)=>{v.addEventListener("load",h),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};/**
43
+ * @remix-run/router v1.23.1
44
+ *
45
+ * Copyright (c) Remix Software Inc.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE.md file in the root directory of this source tree.
49
+ *
50
+ * @license MIT
51
+ */function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}var Je;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Je||(Je={}));const Ga="popstate";function xh(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:l}=r.location;return us("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Si(i)}return _h(t,n,null,e)}function Q(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Eh(){return Math.random().toString(36).substr(2,8)}function Ya(e,t){return{usr:e.state,key:e.key,idx:t}}function us(e,t,n,r){return n===void 0&&(n=null),hr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mn(t):t,{state:n,key:t&&t.key||r||Eh()})}function Si(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _h(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=Je.Pop,a=null,u=m();u==null&&(u=0,s.replaceState(hr({},s.state,{idx:u}),""));function m(){return(s.state||{idx:null}).idx}function v(){l=Je.Pop;let c=m(),f=c==null?null:c-u;u=c,a&&a({action:l,location:k.location,delta:f})}function h(c,f){l=Je.Push;let d=us(k.location,c,f);u=m()+1;let g=Ya(d,u),w=k.createHref(d);try{s.pushState(g,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(w)}o&&a&&a({action:l,location:k.location,delta:1})}function E(c,f){l=Je.Replace;let d=us(k.location,c,f);u=m();let g=Ya(d,u),w=k.createHref(d);s.replaceState(g,"",w),o&&a&&a({action:l,location:k.location,delta:0})}function x(c){let f=i.location.origin!=="null"?i.location.origin:i.location.href,d=typeof c=="string"?c:Si(c);return d=d.replace(/ $/,"%20"),Q(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let k={get action(){return l},get location(){return e(i,s)},listen(c){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Ga,v),a=c,()=>{i.removeEventListener(Ga,v),a=null}},createHref(c){return t(i,c)},createURL:x,encodeLocation(c){let f=x(c);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:E,go(c){return s.go(c)}};return k}var Xa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xa||(Xa={}));function Sh(e,t,n){return n===void 0&&(n="/"),Ch(e,t,n)}function Ch(e,t,n,r){let i=typeof t=="string"?mn(t):t,o=vl(i.pathname||"/",n);if(o==null)return null;let s=Sf(e);Th(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=Uh(o);l=Dh(s[a],u)}return l}function Sf(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,l)=>{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};a.relativePath.startsWith("/")&&(Q(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=lt([r,a.relativePath]),m=n.concat(a);o.children&&o.children.length>0&&(Q(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Sf(o.children,t,m,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Ah(u,o.index),routesMeta:m})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let a of Cf(o.path))i(o,s,a)}),t}function Cf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Cf(r.join("/")),l=[];return l.push(...s.map(a=>a===""?o:[o,a].join("/"))),i&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Th(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ih(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Rh=/^:[\w-]+$/,Ph=3,Nh=2,Oh=1,Lh=10,jh=-2,Ja=e=>e==="*";function Ah(e,t){let n=e.split("/"),r=n.length;return n.some(Ja)&&(r+=jh),t&&(r+=Nh),n.filter(i=>!Ja(i)).reduce((i,o)=>i+(Rh.test(o)?Ph:o===""?Oh:Lh),r)}function Ih(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Dh(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",v=Mh({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},m),h=a.route;if(!v)return null;Object.assign(i,v.params),s.push({params:i,pathname:lt([o,v.pathname]),pathnameBase:Vh(lt([o,v.pathnameBase])),route:h}),v.pathnameBase!=="/"&&(o=lt([o,v.pathnameBase]))}return s}function Mh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$h(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,m,v)=>{let{paramName:h,isOptional:E}=m;if(h==="*"){let k=l[v]||"";s=o.slice(0,o.length-k.length).replace(/(.)\/+$/,"$1")}const x=l[v];return E&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function $h(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Uh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function vl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Bh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zh=e=>Bh.test(e);function bh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?mn(e):e,o;if(n)if(zh(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),gl(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Za(n.substring(1),"/"):o=Za(n,t)}else o=t;return{pathname:o,search:qh(r),hash:Wh(i)}}function Za(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function vo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Fh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wl(e,t){let n=Fh(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function kl(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=mn(e):(i=hr({},e),Q(!i.pathname||!i.pathname.includes("?"),vo("?","pathname","search",i)),Q(!i.pathname||!i.pathname.includes("#"),vo("#","pathname","hash",i)),Q(!i.search||!i.search.includes("#"),vo("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let v=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),v-=1;i.pathname=h.join("/")}l=v>=0?t[v]:"/"}let a=bh(i,l),u=s&&s!=="/"&&s.endsWith("/"),m=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||m)&&(a.pathname+="/"),a}const lt=e=>e.join("/").replace(/\/\/+/g,"/"),Vh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Hh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Tf=["post","put","patch","delete"];new Set(Tf);const Kh=["get",...Tf];new Set(Kh);/**
52
+ * React Router v6.30.2
53
+ *
54
+ * Copyright (c) Remix Software Inc.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE.md file in the root directory of this source tree.
58
+ *
59
+ * @license MIT
60
+ */function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}const xl=y.createContext(null),Qh=y.createContext(null),yt=y.createContext(null),Bi=y.createContext(null),qe=y.createContext({outlet:null,matches:[],isDataRoute:!1}),Rf=y.createContext(null);function Gh(e,t){let{relative:n}=t===void 0?{}:t;yn()||Q(!1);let{basename:r,navigator:i}=y.useContext(yt),{hash:o,pathname:s,search:l}=Nf(e,{relative:n}),a=s;return r!=="/"&&(a=s==="/"?r:lt([r,s])),i.createHref({pathname:a,search:l,hash:o})}function yn(){return y.useContext(Bi)!=null}function We(){return yn()||Q(!1),y.useContext(Bi).location}function Pf(e){y.useContext(yt).static||y.useLayoutEffect(e)}function gn(){let{isDataRoute:e}=y.useContext(qe);return e?am():Yh()}function Yh(){yn()||Q(!1);let e=y.useContext(xl),{basename:t,future:n,navigator:r}=y.useContext(yt),{matches:i}=y.useContext(qe),{pathname:o}=We(),s=JSON.stringify(wl(i,n.v7_relativeSplatPath)),l=y.useRef(!1);return Pf(()=>{l.current=!0}),y.useCallback(function(u,m){if(m===void 0&&(m={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let v=kl(u,JSON.parse(s),o,m.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:lt([t,v.pathname])),(m.replace?r.replace:r.push)(v,m.state,m)},[t,r,s,o,e])}function Dv(){let{matches:e}=y.useContext(qe),t=e[e.length-1];return t?t.params:{}}function Nf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(yt),{matches:i}=y.useContext(qe),{pathname:o}=We(),s=JSON.stringify(wl(i,r.v7_relativeSplatPath));return y.useMemo(()=>kl(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function Xh(e,t){return Jh(e,t)}function Jh(e,t,n,r){yn()||Q(!1);let{navigator:i}=y.useContext(yt),{matches:o}=y.useContext(qe),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=We(),m;if(t){var v;let c=typeof t=="string"?mn(t):t;a==="/"||(v=c.pathname)!=null&&v.startsWith(a)||Q(!1),m=c}else m=u;let h=m.pathname||"/",E=h;if(a!=="/"){let c=a.replace(/^\//,"").split("/");E="/"+h.replace(/^\//,"").split("/").slice(c.length).join("/")}let x=Sh(e,{pathname:E}),k=rm(x&&x.map(c=>Object.assign({},c,{params:Object.assign({},l,c.params),pathname:lt([a,i.encodeLocation?i.encodeLocation(c.pathname).pathname:c.pathname]),pathnameBase:c.pathnameBase==="/"?a:lt([a,i.encodeLocation?i.encodeLocation(c.pathnameBase).pathname:c.pathnameBase])})),o,n,r);return t&&k?y.createElement(Bi.Provider,{value:{location:mr({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:Je.Pop}},k):k}function Zh(){let e=lm(),t=Hh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,null)}const em=y.createElement(Zh,null);class tm extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(qe.Provider,{value:this.props.routeContext},y.createElement(Rf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nm(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(xl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(qe.Provider,{value:t},r)}function rm(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let m=s.findIndex(v=>v.route.id&&(l==null?void 0:l[v.route.id])!==void 0);m>=0||Q(!1),s=s.slice(0,Math.min(s.length,m+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<s.length;m++){let v=s[m];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(u=m),v.route.id){let{loaderData:h,errors:E}=n,x=v.route.loader&&h[v.route.id]===void 0&&(!E||E[v.route.id]===void 0);if(v.route.lazy||x){a=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((m,v,h)=>{let E,x=!1,k=null,c=null;n&&(E=l&&v.route.id?l[v.route.id]:void 0,k=v.route.errorElement||em,a&&(u<0&&h===0?(um("route-fallback"),x=!0,c=null):u===h&&(x=!0,c=v.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,h+1)),d=()=>{let g;return E?g=k:x?g=c:v.route.Component?g=y.createElement(v.route.Component,null):v.route.element?g=v.route.element:g=m,y.createElement(nm,{match:v,routeContext:{outlet:m,matches:f,isDataRoute:n!=null},children:g})};return n&&(v.route.ErrorBoundary||v.route.errorElement||h===0)?y.createElement(tm,{location:n.location,revalidation:n.revalidation,component:k,error:E,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var Of=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Of||{}),Lf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Lf||{});function im(e){let t=y.useContext(xl);return t||Q(!1),t}function om(e){let t=y.useContext(Qh);return t||Q(!1),t}function sm(e){let t=y.useContext(qe);return t||Q(!1),t}function jf(e){let t=sm(),n=t.matches[t.matches.length-1];return n.route.id||Q(!1),n.route.id}function lm(){var e;let t=y.useContext(Rf),n=om(),r=jf();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function am(){let{router:e}=im(Of.UseNavigateStable),t=jf(Lf.UseNavigateStable),n=y.useRef(!1);return Pf(()=>{n.current=!0}),y.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mr({fromRouteId:t},o)))},[e,t])}const eu={};function um(e,t,n){eu[e]||(eu[e]=!0)}function cm(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Wt(e){let{to:t,replace:n,state:r,relative:i}=e;yn()||Q(!1);let{future:o,static:s}=y.useContext(yt),{matches:l}=y.useContext(qe),{pathname:a}=We(),u=gn(),m=kl(t,wl(l,o.v7_relativeSplatPath),a,i==="path"),v=JSON.stringify(m);return y.useEffect(()=>u(JSON.parse(v),{replace:n,state:r,relative:i}),[u,v,i,n,r]),null}function $(e){Q(!1)}function fm(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Je.Pop,navigator:o,static:s=!1,future:l}=e;yn()&&Q(!1);let a=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:a,navigator:o,static:s,future:mr({v7_relativeSplatPath:!1},l)}),[a,l,o,s]);typeof r=="string"&&(r=mn(r));let{pathname:m="/",search:v="",hash:h="",state:E=null,key:x="default"}=r,k=y.useMemo(()=>{let c=vl(m,a);return c==null?null:{location:{pathname:c,search:v,hash:h,state:E,key:x},navigationType:i}},[a,m,v,h,E,x,i]);return k==null?null:y.createElement(yt.Provider,{value:u},y.createElement(Bi.Provider,{children:n,value:k}))}function Af(e){let{children:t,location:n}=e;return Xh(cs(t),n)}new Promise(()=>{});function cs(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,i)=>{if(!y.isValidElement(r))return;let o=[...t,i];if(r.type===y.Fragment){n.push.apply(n,cs(r.props.children,o));return}r.type!==$&&Q(!1),!r.props.index||!r.props.children||Q(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=cs(r.props.children,o)),n.push(s)}),n}/**
61
+ * React Router DOM v6.30.2
62
+ *
63
+ * Copyright (c) Remix Software Inc.
64
+ *
65
+ * This source code is licensed under the MIT license found in the
66
+ * LICENSE.md file in the root directory of this source tree.
67
+ *
68
+ * @license MIT
69
+ */function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(this,arguments)}function dm(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function pm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hm(e,t){return e.button===0&&(!t||t==="_self")&&!pm(e)}function ds(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function mm(e,t){let n=ds(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const ym=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gm="6";try{window.__reactRouterVersion=gm}catch{}const vm="startTransition",tu=vd[vm];function wm(e){let{basename:t,children:n,future:r,window:i}=e,o=y.useRef();o.current==null&&(o.current=xh({window:i,v5Compat:!0}));let s=o.current,[l,a]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},m=y.useCallback(v=>{u&&tu?tu(()=>a(v)):a(v)},[a,u]);return y.useLayoutEffect(()=>s.listen(m),[s,m]),y.useEffect(()=>cm(r),[r]),y.createElement(fm,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const km=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mv=y.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:a,to:u,preventScrollReset:m,viewTransition:v}=t,h=dm(t,ym),{basename:E}=y.useContext(yt),x,k=!1;if(typeof u=="string"&&xm.test(u)&&(x=u,km))try{let g=new URL(window.location.href),w=u.startsWith("//")?new URL(g.protocol+u):new URL(u),P=vl(w.pathname,E);w.origin===g.origin&&P!=null?u=P+w.search+w.hash:k=!0}catch{}let c=Gh(u,{relative:i}),f=Em(u,{replace:s,state:l,target:a,preventScrollReset:m,relative:i,viewTransition:v});function d(g){r&&r(g),g.defaultPrevented||f(g)}return y.createElement("a",fs({},h,{href:x||c,onClick:k||o?r:d,ref:n,target:a}))});var nu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(nu||(nu={}));var ru;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ru||(ru={}));function Em(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:l}=t===void 0?{}:t,a=gn(),u=We(),m=Nf(e,{relative:s});return y.useCallback(v=>{if(hm(v,n)){v.preventDefault();let h=r!==void 0?r:Si(u)===Si(m);a(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:l})}},[u,a,m,r,i,n,e,o,s,l])}function $v(e){let t=y.useRef(ds(e)),n=y.useRef(!1),r=We(),i=y.useMemo(()=>mm(r.search,n.current?null:t.current),[r.search]),o=gn(),s=y.useCallback((l,a)=>{const u=ds(typeof l=="function"?l(i):l);n.current=!0,o("?"+u,a)},[o,i]);return[i,s]}/**
70
+ * @license lucide-react v0.555.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const _m=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),iu=e=>{const t=Sm(e);return t.charAt(0).toUpperCase()+t.slice(1)},If=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Cm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
75
+ * @license lucide-react v0.555.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */var Tm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
80
+ * @license lucide-react v0.555.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Rm=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},a)=>y.createElement("svg",{ref:a,...Tm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:If("lucide",i),...!o&&!Cm(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,m])=>y.createElement(u,m)),...Array.isArray(o)?o:[o]]));/**
85
+ * @license lucide-react v0.555.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const B=(e,t)=>{const n=y.forwardRef(({className:r,...i},o)=>y.createElement(Rm,{ref:o,iconNode:t,className:If(`lucide-${_m(iu(e))}`,`lucide-${e}`,r),...i}));return n.displayName=iu(e),n};/**
90
+ * @license lucide-react v0.555.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Pm=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],Nm=B("app-window",Pm);/**
95
+ * @license lucide-react v0.555.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const Om=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Lm=B("bell",Om);/**
100
+ * @license lucide-react v0.555.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const jm=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Am=B("book-open",jm);/**
105
+ * @license lucide-react v0.555.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const Im=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Dm=B("brain",Im);/**
110
+ * @license lucide-react v0.555.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const Mm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$m=B("chevron-down",Mm);/**
115
+ * @license lucide-react v0.555.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const Um=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Bm=B("circle-alert",Um);/**
120
+ * @license lucide-react v0.555.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const zm=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],bm=B("circle-check-big",zm);/**
125
+ * @license lucide-react v0.555.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const Fm=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],Vm=B("film",Fm);/**
130
+ * @license lucide-react v0.555.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const qm=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],Wm=B("heart-pulse",qm);/**
135
+ * @license lucide-react v0.555.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const Hm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Km=B("info",Hm);/**
140
+ * @license lucide-react v0.555.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const Qm=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Gm=B("key",Qm);/**
145
+ * @license lucide-react v0.555.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const Ym=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Xm=B("layout-grid",Ym);/**
150
+ * @license lucide-react v0.555.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const Jm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Zm=B("loader-circle",Jm);/**
155
+ * @license lucide-react v0.555.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const ey=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],ty=B("log-out",ey);/**
160
+ * @license lucide-react v0.555.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const ny=[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]],ry=B("monitor-play",ny);/**
165
+ * @license lucide-react v0.555.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const iy=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Df=B("refresh-cw",iy);/**
170
+ * @license lucide-react v0.555.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const oy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Mf=B("search",oy);/**
175
+ * @license lucide-react v0.555.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const sy=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ly=B("settings",sy);/**
180
+ * @license lucide-react v0.555.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const ay=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],uy=B("shield-check",ay);/**
185
+ * @license lucide-react v0.555.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const cy=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],fy=B("smartphone",cy);/**
190
+ * @license lucide-react v0.555.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const dy=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],py=B("triangle-alert",dy);/**
195
+ * @license lucide-react v0.555.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const hy=[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]],my=B("tv",hy);/**
200
+ * @license lucide-react v0.555.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const yy=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],gy=B("user-cog",yy);/**
205
+ * @license lucide-react v0.555.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const vy=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],wy=B("user",vy);/**
210
+ * @license lucide-react v0.555.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const ky=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],xy=B("users",ky);/**
215
+ * @license lucide-react v0.555.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const Ey=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_y=B("x",Ey),zi={"X-Appium-Is-Sensitive":"true"},gt="/xenon/api/auth";class ou extends Error{constructor(t,n,r=null){super(t),this.status=n,this.retryAfterSec=r,this.name="LoginError"}}async function Uv(e,t){let n;try{n=await fetch(`${gt}/login`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...zi},body:JSON.stringify({email:e,password:t})})}catch(r){throw new ou(r.message||"Network error",0)}if(!n.ok){const r=await n.json().catch(()=>({})),i=Number(n.headers.get("Retry-After"));throw new ou(r.error||`Login failed (${n.status})`,n.status,Number.isFinite(i)&&i>0?i:null)}}async function Bv(){try{const e=await fetch(`${gt}/options`,{credentials:"include"});return e.ok?{passwordReset:(await e.json()).passwordReset==="email"?"email":"admin"}:{passwordReset:"admin"}}catch{return{passwordReset:"admin"}}}async function Sy(){await fetch(`${gt}/logout`,{method:"POST",credentials:"include"})}async function su(){const e=await fetch(`${gt}/me`,{credentials:"include"});if(e.status===401)return null;if(!e.ok)throw new Error(`Failed to fetch /me (${e.status})`);return e.json()}async function zv(e,t){const n=await fetch(`${gt}/change-password`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...zi},body:JSON.stringify({oldPassword:e,newPassword:t})});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error||`Change password failed (${n.status})`)}}async function bv(e){const t=await fetch(`${gt}/forgot-password`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});if(!t.ok&&t.status!==204)throw t.status===429?new Error("Too many attempts — try again later."):new Error(`Request failed (${t.status})`)}async function Fv(e){return(await fetch(`${gt}/reset-password/check`,{method:"POST",headers:{"Content-Type":"application/json",...zi},body:JSON.stringify({token:e})})).ok}async function Vv(e,t){const n=await fetch(`${gt}/reset-password`,{method:"POST",headers:{"Content-Type":"application/json",...zi},body:JSON.stringify({token:e,newPassword:t})});if(!n.ok&&n.status!==204){const r=await n.json().catch(()=>({}));throw new Error(r.error||`Reset failed (${n.status})`)}}const $f="xenon-screenshots",He="captures",ps="udid";function Uf(e,t){return t.takenAt-e.takenAt||t.n-e.n}function lu(){const e=new Map;return{persistent:!1,async list(t){return Array.from(e.values()).filter(n=>n.udid===t).sort(Uf)},async put(t){e.set(t.id,t)},async delete(t){t.forEach(n=>e.delete(n))},async clear(t){Array.from(e.values()).filter(n=>n.udid===t).forEach(n=>e.delete(n.id))}}}function au(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}function uu(e){return new Promise((t,n)=>{e.oncomplete=()=>t(),e.onerror=()=>n(e.error),e.onabort=()=>n(e.error??new Error("transaction aborted"))})}function Cy(e){return new Promise((t,n)=>{const r=e.open($f,1);r.onupgradeneeded=()=>{r.result.createObjectStore(He,{keyPath:"id"}).createIndex(ps,"udid")},r.onsuccess=()=>{const i=r.result;i.onversionchange=()=>i.close(),t(i)},r.onerror=()=>n(r.error),r.onblocked=()=>n(new Error("blocked"))})}function Ty(e){const t=async n=>{const r=e.transaction(He,"readwrite");n(r.objectStore(He)),await uu(r)};return{persistent:!0,async list(n){const r=e.transaction(He,"readonly");return(await au(r.objectStore(He).index(ps).getAll(n))).sort(Uf)},put:n=>t(r=>r.put(n)),delete:n=>t(r=>n.forEach(i=>r.delete(i))),async clear(n){const r=e.transaction(He,"readwrite"),i=r.objectStore(He).index(ps);(await au(i.getAllKeys(n))).forEach(s=>r.objectStore(He).delete(s)),await uu(r)}}}function Bf(){try{return typeof indexedDB>"u"?void 0:indexedDB}catch{return}}async function Ry(e=Bf()){if(!e)return lu();try{return Ty(await Cy(e))}catch{return lu()}}let Yr=null;function qv(){return Yr||(Yr=Ry()),Yr}async function Py(e=Bf(),t=1e3){if(Yr=null,!e)return;const n=new Promise(r=>{try{const i=e.deleteDatabase($f);i.onsuccess=()=>r(),i.onerror=()=>r(),i.onblocked=()=>r()}catch{r()}});await Promise.race([n,new Promise(r=>setTimeout(r,t))])}const El="xenon.hadSession";function Ny(){try{localStorage.setItem(El,"1")}catch{}}function Oy(){try{localStorage.removeItem(El)}catch{}}function Ly(){try{return localStorage.getItem(El)==="1"}catch{return!1}}const De=Object.create(null);De.open="0";De.close="1";De.ping="2";De.pong="3";De.message="4";De.upgrade="5";De.noop="6";const Xr=Object.create(null);Object.keys(De).forEach(e=>{Xr[De[e]]=e});const hs={type:"error",data:"parser error"},zf=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",bf=typeof ArrayBuffer=="function",Ff=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,_l=({type:e,data:t},n,r)=>zf&&t instanceof Blob?n?r(t):cu(t,r):bf&&(t instanceof ArrayBuffer||Ff(t))?n?r(t):cu(new Blob([t]),r):r(De[e]+(t||"")),cu=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function fu(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let wo;function jy(e,t){if(zf&&e.data instanceof Blob)return e.data.arrayBuffer().then(fu).then(t);if(bf&&(e.data instanceof ArrayBuffer||Ff(e.data)))return t(fu(e.data));_l(e,!1,n=>{wo||(wo=new TextEncoder),t(wo.encode(n))})}const du="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<du.length;e++)zn[du.charCodeAt(e)]=e;const Ay=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,l,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),m=new Uint8Array(u);for(r=0;r<n;r+=4)o=zn[e.charCodeAt(r)],s=zn[e.charCodeAt(r+1)],l=zn[e.charCodeAt(r+2)],a=zn[e.charCodeAt(r+3)],m[i++]=o<<2|s>>4,m[i++]=(s&15)<<4|l>>2,m[i++]=(l&3)<<6|a&63;return u},Iy=typeof ArrayBuffer=="function",Sl=(e,t)=>{if(typeof e!="string")return{type:"message",data:Vf(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Dy(e.substring(1),t)}:Xr[n]?e.length>1?{type:Xr[n],data:e.substring(1)}:{type:Xr[n]}:hs},Dy=(e,t)=>{if(Iy){const n=Ay(e);return Vf(n,t)}else return{base64:!0,data:e}},Vf=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},qf="",My=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{_l(o,!1,l=>{r[s]=l,++i===n&&t(r.join(qf))})})},$y=(e,t)=>{const n=e.split(qf),r=[];for(let i=0;i<n.length;i++){const o=Sl(n[i],t);if(r.push(o),o.type==="error")break}return r};function Uy(){return new TransformStream({transform(e,t){jy(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let ko;function $r(e){return e.reduce((t,n)=>t+n.length,0)}function Ur(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function By(e,t){ko||(ko=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,l){for(n.push(s);;){if(r===0){if($r(n)<1)break;const a=Ur(n,1);o=(a[0]&128)===128,i=a[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if($r(n)<2)break;const a=Ur(n,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),r=3}else if(r===2){if($r(n)<8)break;const a=Ur(n,8),u=new DataView(a.buffer,a.byteOffset,a.length),m=u.getUint32(0);if(m>Math.pow(2,21)-1){l.enqueue(hs);break}i=m*Math.pow(2,32)+u.getUint32(4),r=3}else{if($r(n)<i)break;const a=Ur(n,i);l.enqueue(Sl(o?a:ko.decode(a),t)),r=0}if(i===0||i>e){l.enqueue(hs);break}}}})}const Wf=4;function G(e){if(e)return zy(e)}function zy(e){for(var t in G.prototype)e[t]=G.prototype[t];return e}G.prototype.on=G.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};G.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};G.prototype.off=G.prototype.removeListener=G.prototype.removeAllListeners=G.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};G.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};G.prototype.emitReserved=G.prototype.emit;G.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};G.prototype.hasListeners=function(e){return!!this.listeners(e).length};const bi=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),ve=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),by="arraybuffer";function Hf(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Fy=ve.setTimeout,Vy=ve.clearTimeout;function Fi(e,t){t.useNativeTimers?(e.setTimeoutFn=Fy.bind(ve),e.clearTimeoutFn=Vy.bind(ve)):(e.setTimeoutFn=ve.setTimeout.bind(ve),e.clearTimeoutFn=ve.clearTimeout.bind(ve))}const qy=1.33;function Wy(e){return typeof e=="string"?Hy(e):Math.ceil((e.byteLength||e.size)*qy)}function Hy(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Kf(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ky(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Qy(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class Gy extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Cl extends G{constructor(t){super(),this.writable=!1,Fi(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new Gy(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Sl(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=Ky(t);return n.length?"?"+n:""}}class Yy extends Cl{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};$y(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,My(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Kf()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Qf=!1;try{Qf=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Xy=Qf;function Jy(){}class Zy extends Yy{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Ie extends G{constructor(t,n,r){super(),this.createRequest=t,Fi(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=Hf(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Ie.requestsCount++,Ie.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Jy,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ie.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ie.requestsCount=0;Ie.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",pu);else if(typeof addEventListener=="function"){const e="onpagehide"in ve?"pagehide":"unload";addEventListener(e,pu,!1)}}function pu(){for(let e in Ie.requests)Ie.requests.hasOwnProperty(e)&&Ie.requests[e].abort()}const eg=function(){const e=Gf({xdomain:!1});return e&&e.responseType!==null}();class tg extends Zy{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=eg&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ie(Gf,this.uri(),t)}}function Gf(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Xy))return new XMLHttpRequest}catch{}if(!t)try{return new ve[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Yf=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ng extends Cl{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Yf?{}:Hf(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;_l(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&bi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Kf()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const xo=ve.WebSocket||ve.MozWebSocket;class rg extends ng{createSocket(t,n,r){return Yf?new xo(t,n,r):n?new xo(t,n):new xo(t)}doWrite(t,n){this.ws.send(n)}}class ig extends Cl{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=By(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=Uy();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:a})=>{l||(this.onPacket(a),o())}).catch(l=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&bi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const og={websocket:rg,webtransport:ig,polling:tg},sg=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,lg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ms(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=sg.exec(e||""),o={},s=14;for(;s--;)o[lg[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ag(o,o.path),o.queryKey=ug(o,o.query),o}function ag(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function ug(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const ys=typeof addEventListener=="function"&&typeof removeEventListener=="function",Jr=[];ys&&addEventListener("offline",()=>{Jr.forEach(e=>e())},!1);class at extends G{constructor(t,n){if(super(),this.binaryType=by,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ms(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ms(n.host).host);Fi(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Qy(this.opts.query)),ys&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Jr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Wf,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&at.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",at.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=Wy(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,bi(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(at.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ys&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Jr.indexOf(this._offlineEventListener);r!==-1&&Jr.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}at.protocol=Wf;class cg extends at{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;at.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",v=>{if(!r)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;at.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function o(){r||(r=!0,m(),n.close(),n=null)}const s=v=>{const h=new Error("probe error: "+v);h.transport=n.name,o(),this.emitReserved("upgradeError",h)};function l(){s("transport closed")}function a(){s("socket closed")}function u(v){n&&v.name!==n.name&&o()}const m=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",l),this.off("close",a),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",l),this.once("close",a),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let fg=class extends cg{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>og[i]).filter(i=>!!i)),super(t,r)}};function dg(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=ms(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const pg=typeof ArrayBuffer=="function",hg=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Xf=Object.prototype.toString,mg=typeof Blob=="function"||typeof Blob<"u"&&Xf.call(Blob)==="[object BlobConstructor]",yg=typeof File=="function"||typeof File<"u"&&Xf.call(File)==="[object FileConstructor]";function Tl(e){return pg&&(e instanceof ArrayBuffer||hg(e))||mg&&e instanceof Blob||yg&&e instanceof File}function Zr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Zr(e[n]))return!0;return!1}if(Tl(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Zr(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Zr(e[n]))return!0;return!1}function gg(e){const t=[],n=e.data,r=e;return r.data=gs(n,t),r.attachments=t.length,{packet:r,buffers:t}}function gs(e,t){if(!e)return e;if(Tl(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=gs(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=gs(e[r],t));return n}return e}function vg(e,t){return e.data=vs(e.data,t),delete e.attachments,e}function vs(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=vs(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=vs(e[n],t));return e}const wg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var D;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(D||(D={}));class kg{constructor(t){this.replacer=t}encode(t){return(t.type===D.EVENT||t.type===D.ACK)&&Zr(t)?this.encodeAsBinary({type:t.type===D.EVENT?D.BINARY_EVENT:D.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===D.BINARY_EVENT||t.type===D.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=gg(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class Rl extends G{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===D.BINARY_EVENT;r||n.type===D.BINARY_ACK?(n.type=r?D.EVENT:D.ACK,this.reconstructor=new xg(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Tl(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(D[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===D.BINARY_EVENT||r.type===D.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(Rl.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case D.CONNECT:return hu(n);case D.DISCONNECT:return n===void 0;case D.CONNECT_ERROR:return typeof n=="string"||hu(n);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&wg.indexOf(n[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class xg{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=vg(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function hu(e){return Object.prototype.toString.call(e)==="[object Object]"}const Eg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Rl,Encoder:kg,get PacketType(){return D}},Symbol.toStringTag,{value:"Module"}));function Re(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const _g=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Jf extends G{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Re(t,"open",this.onopen.bind(this)),Re(t,"packet",this.onpacket.bind(this)),Re(t,"error",this.onerror.bind(this)),Re(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(_g.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:D.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,v=n.pop();this._registerAckCallback(m,v),s.id=m}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),s=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,l)=>s?i(s):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:D.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case D.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case D.EVENT:case D.BINARY_EVENT:this.onevent(t);break;case D.ACK:case D.BINARY_ACK:this.onack(t);break;case D.DISCONNECT:this.ondisconnect();break;case D.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:D.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:D.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function vn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}vn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};vn.prototype.reset=function(){this.attempts=0};vn.prototype.setMin=function(e){this.ms=e};vn.prototype.setMax=function(e){this.max=e};vn.prototype.setJitter=function(e){this.jitter=e};class ws extends G{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Fi(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new vn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||Eg;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new fg(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Re(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},s=Re(n,"error",o);if(this._timeout!==!1){const l=this._timeout,a=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Re(t,"ping",this.onping.bind(this)),Re(t,"data",this.ondata.bind(this)),Re(t,"error",this.onerror.bind(this)),Re(t,"close",this.onclose.bind(this)),Re(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){bi(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Jf(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const An={};function ei(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=dg(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=An[i]&&o in An[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let a;return l?a=new ws(r,t):(An[i]||(An[i]=new ws(r,t)),a=An[i]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(ei,{Manager:ws,Socket:Jf,io:ei,connect:ei});let nn=null;const bn=new Map,ks=new Set;function Sg(e,t){const n=bn.get(e);n&&Array.from(n).forEach(r=>r(t))}function Cg(){if(nn)return nn;const e=ei(window.location.origin,{path:"/socket.io",reconnection:!0,withCredentials:!0});return e.on("connect",()=>{console.log("[Socket] Connected to Hub"),e.emit("register_dashboard")}),e.on("disconnect",()=>{console.log("[Socket] Disconnected from Hub")}),e.on("connect_error",()=>{e.active||Array.from(ks).forEach(t=>t())}),e.onAny((t,n)=>Sg(t,n)),nn=e,e}function Tg(e,t){let n=bn.get(e);return n||(n=new Set,bn.set(e,n)),n.add(t),()=>{const r=bn.get(e);r&&(r.delete(t),r.size===0&&bn.delete(e))}}function Rg(e){return ks.add(e),()=>{ks.delete(e)}}function Pg(){nn&&!nn.active&&nn.connect()}const Zf=y.createContext(null);function Ng({children:e}){const[t,n]=y.useState(!0),[r,i]=y.useState(null);async function o(){try{const l=await su();l&&(Ny(),Pg()),i(l)}finally{n(!1)}}async function s(){Oy(),await Promise.all([Sy(),Py()]),i(null),window.location.href="/xenon/login"}return y.useEffect(()=>(o(),Rg(()=>{su().then(l=>{l||i(null)}).catch(()=>{})})),[]),p.jsx(Zf.Provider,{value:{loading:t,me:r,refresh:o,signOut:s},children:e})}function Pl(){const e=y.useContext(Zf);if(!e)throw new Error("useAuth must be used inside AuthProvider");return e}const Og=()=>{const[e]=y.useState(Cg),[t,n]=y.useState(e.connected);y.useEffect(()=>{const i=()=>n(!0),o=()=>n(!1);return e.on("connect",i),e.on("disconnect",o),n(e.connected),()=>{e.off("connect",i),e.off("disconnect",o)}},[e]);const r=y.useCallback((i,o)=>Tg(i,o),[]);return{socket:e,isConnected:t,on:r}},Lg=6e4;function jg(e,t,n,r=!0){if(e)return{tone:"live",label:"Live",title:"Connected to the Xenon server. Updates stream in as they happen."};const i=t??n;if(n-i<Lg)return r?{tone:"reconnecting",label:"Reconnecting…",title:"Lost the connection to the Xenon server. Retrying automatically."}:{tone:"reconnecting",label:"Connecting…",title:"Connecting to the Xenon server."};const o=new Date(i).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return{tone:"down",label:`Disconnected · since ${o}`,title:`No connection to the Xenon server since ${o}. What's on screen may be out of date.`}}function Ag(){const{isConnected:e}=Og(),[t,n]=y.useState(null),[r,i]=y.useState(()=>Date.now()),[o,s]=y.useState(e);return y.useEffect(()=>{n(e?null:Date.now()),e&&s(!0)},[e]),y.useEffect(()=>{if(e)return;const l=window.setInterval(()=>i(Date.now()),5e3);return()=>window.clearInterval(l)},[e]),jg(e,t,r,o)}const ed="xenon.theme",mu="dark",td="(prefers-color-scheme: light)";function Ig(){try{const e=localStorage.getItem(ed);return e==="light"||e==="system"||e==="dark"?e:mu}catch{return mu}}function nd(e,t){return e==="system"?t?"light":"dark":e}function Dg(){return typeof window.matchMedia=="function"&&window.matchMedia(td).matches}function rd(e){document.documentElement.setAttribute("data-theme",e)}function Mg(e){try{localStorage.setItem(ed,e)}catch{}rd(nd(e,Dg()))}function $g(){const[e,t]=y.useState(Ig);return y.useEffect(()=>{var o;if(e!=="system"||typeof window.matchMedia!="function")return;const r=window.matchMedia(td),i=()=>rd(nd("system",r.matches));return(o=r.addEventListener)==null||o.call(r,"change",i),()=>{var s;return(s=r.removeEventListener)==null?void 0:s.call(r,"change",i)}},[e]),[e,r=>{Mg(r),t(r)}]}function Ug({className:e,alt:t="Xenon"}){const n="/xenon/";return p.jsxs(p.Fragment,{children:[p.jsx("img",{src:`${n}logo.svg`,alt:t,className:`logo-for-dark ${e??""}`}),p.jsx("img",{src:`${n}logo-light.svg`,alt:t,className:`logo-for-light ${e??""}`})]})}const Bg=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"system",label:"System"}],zg=()=>{const e=gn(),{me:t,signOut:n}=Pl(),r=Ag(),[i,o]=$g(),[s,l]=y.useState(!1),a=y.useRef(null),u=((t==null?void 0:t.name)??"A").split(" ").map(h=>h[0]).slice(0,2).join("").toUpperCase(),m=(t==null?void 0:t.role)==="SUPER_ADMIN"?"Super admin":(t==null?void 0:t.role)==="ADMIN"?"Admin":"Member";y.useEffect(()=>{const h=E=>{a.current&&!a.current.contains(E.target)&&l(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);const v=()=>window.dispatchEvent(new CustomEvent("xenon.open-command-palette"));return p.jsx("header",{className:"fixed top-0 left-14 right-0 z-20 h-14 border-b border-[var(--border)] bg-[var(--bg)]/80 backdrop-blur-md",children:p.jsxs("div",{className:"flex items-center h-full px-4 gap-4",children:[p.jsx("button",{type:"button",onClick:()=>e("/overview"),className:"flex items-center gap-3 min-w-0 cursor-pointer","aria-label":"Xenon home",children:p.jsx("div",{className:"flex items-center gap-2",children:p.jsx(Ug,{alt:"Xenon Logo",className:"h-8 w-auto object-contain"})})}),p.jsx("div",{className:"flex-1 max-w-xl mx-auto",children:p.jsxs("button",{type:"button",onClick:v,className:"relative w-full h-9 flex items-center text-left","aria-label":"Open command palette",children:[p.jsx("div",{className:"w-full h-9 pl-9 pr-14 rounded-md bg-[var(--surface)] border border-[var(--border)] text-sm text-[var(--text-dim)] hover:border-[var(--border-strong)] hover:text-[var(--text)] transition-colors flex items-center",children:"Search devices, sessions, settings…"}),p.jsx(Mf,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-[var(--text-dim)]"}),p.jsx("kbd",{className:"absolute right-3 top-1/2 -translate-y-1/2 font-mono text-[10px] text-[var(--text-dim)] border border-[var(--border)] rounded px-1.5 py-0.5",children:"⌘K"})]})}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("div",{role:"status",title:r.title,className:`flex items-center gap-1.5 px-2.5 py-1 rounded-full border ${r.tone==="live"?"bg-[var(--color-success)]/10 border-[var(--color-success)]/20 text-[var(--color-success)]":r.tone==="reconnecting"?"bg-[var(--amber)]/10 border-[var(--amber)]/25 text-[var(--amber)]":"bg-[var(--red)]/10 border-[var(--red)]/25 text-[var(--red)]"}`,children:[p.jsx("span",{className:`h-1.5 w-1.5 rounded-full bg-current ${r.tone==="live"?"pulse-dot":""}`,"aria-hidden":"true"}),p.jsx("span",{className:"text-[11px] font-medium",children:r.label})]}),p.jsxs("div",{className:"relative",ref:a,children:[p.jsxs("button",{type:"button",className:"flex items-center gap-2 h-9 pl-1.5 pr-2.5 rounded-md border border-[var(--border)] hover:border-[var(--border-strong)] hover:bg-[var(--surface)] transition-colors",onClick:()=>l(h=>!h),"aria-haspopup":"true","aria-expanded":s,children:[p.jsx("span",{className:"h-6 w-6 rounded-full bg-[var(--color-accent)]/15 text-[var(--color-accent)] text-[11px] font-semibold flex items-center justify-center",children:u}),p.jsxs("span",{className:"flex flex-col items-start leading-tight",children:[p.jsx("span",{className:"text-xs text-[var(--text)]",children:(t==null?void 0:t.name)??"Account"}),p.jsx("span",{className:"text-[10px] text-[var(--text-dim)]",children:m})]}),p.jsx($m,{className:"h-3.5 w-3.5 text-[var(--text-dim)]"})]}),s&&p.jsxs("div",{className:"absolute top-full right-0 mt-2 w-64 rounded-md border border-[var(--border)] bg-[var(--surface)] shadow-lg overflow-hidden",children:[p.jsxs("div",{className:"px-3 py-2",children:[p.jsx("div",{className:"text-[11px] text-[var(--text-dim)] mb-1",children:"System"}),p.jsxs("div",{className:"flex items-center justify-between text-xs text-[var(--text)]",children:[p.jsx("span",{className:"text-[var(--text-muted)]",children:"Version"}),p.jsxs("span",{className:"font-mono text-[var(--text-muted)]",children:["v","2.16.0"]})]})]}),p.jsx("div",{className:"h-px bg-[var(--border)]"}),p.jsxs("div",{className:"px-3 py-2 flex items-center justify-between gap-2",children:[p.jsx("span",{id:"theme-label",className:"text-xs text-[var(--text-muted)]",children:"Theme"}),p.jsx("div",{className:"seg seg-sm",role:"radiogroup","aria-labelledby":"theme-label",children:Bg.map(h=>p.jsx("button",{type:"button",role:"radio","aria-checked":i===h.value,className:`seg-btn${i===h.value?" seg-btn-active":""}`,onClick:()=>o(h.value),children:h.label},h.value))})]}),p.jsx("div",{className:"h-px bg-[var(--border)]"}),p.jsxs("button",{type:"button",onClick:()=>{l(!1),e("/profile")},className:"w-full flex items-center gap-2 px-3 py-2 text-xs text-[var(--text)] hover:bg-[var(--bg)] text-left",children:[p.jsx(wy,{className:"h-3.5 w-3.5 text-[var(--text-dim)]"}),"Profile"]}),t!=null&&t.authDisabled?p.jsx("p",{className:"px-3 py-2 text-xs text-[var(--text-muted)]",children:"Sign-in is off on this server."}):p.jsxs("button",{type:"button",onClick:()=>{l(!1),n()},className:"w-full flex items-center gap-2 px-3 py-2 text-xs text-[var(--red)] hover:bg-[var(--bg)] text-left",children:[p.jsx(ty,{className:"h-3.5 w-3.5"}),"Logout"]})]})]})]})]})})};class bg extends y.Component{constructor(){super(...arguments),this.state={hasError:!1},this.handleReset=()=>{this.setState({hasError:!1}),window.location.reload()}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n)}render(){return this.state.hasError?this.props.fallback||p.jsxs("div",{className:"error-boundary-container",style:{padding:"4rem 2rem",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:"1.5rem",color:"var(--text)",background:"var(--bg-main)",minHeight:"100vh"},children:[p.jsx("div",{style:{color:"var(--accent-red)"},children:p.jsx(py,{size:64})}),p.jsx("h2",{style:{fontSize:"2rem",fontWeight:700,margin:0},children:"Component exception detected"}),p.jsx("p",{style:{color:"var(--text-muted)",maxWidth:"500px",lineHeight:1.6},children:"An unexpected error occurred while rendering this section. Xenon's isolation engine has contained the fault to prevent a total system crash."}),this.state.error&&p.jsx("pre",{style:{background:"rgb(var(--rgb-black) / 0.3)",padding:"1rem",borderRadius:"8px",fontSize:"0.8rem",color:"var(--accent-red)",maxWidth:"80%",overflowX:"auto"},children:this.state.error.message}),p.jsxs("button",{onClick:this.handleReset,style:{background:"var(--color-accent)",color:"var(--secondary)",border:"none",padding:"0.75rem 2rem",borderRadius:"8px",fontWeight:700,cursor:"pointer",display:"flex",alignItems:"center",gap:"0.5rem",transition:"all 0.2s"},onMouseOver:t=>t.currentTarget.style.transform="translateY(-2px)",onMouseOut:t=>t.currentTarget.style.transform="translateY(0)",children:[p.jsx(Df,{size:18}),"Reload application"]})]}):this.props.children}}const Fg=y.lazy(()=>V(()=>import("./overview-BfTebCK5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),yu=y.lazy(()=>V(()=>import("./device-explorer-BgGZ8AvV.js"),__vite__mapDeps([8,6,7,9,10,5,11,1,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,2,46,47,48,49,50,51]))),gu=y.lazy(()=>V(()=>import("./builds-page-EaaqDmLN.js"),__vite__mapDeps([52,53,54,40,13,41,32,12,14,43,1,37,36,33,3,4,55,6,7,15,16,38,39]))),Vg=y.lazy(()=>V(()=>import("./session-detail-page-DPyBNef_.js"),__vite__mapDeps([56,53,54,45,33,1,9,10,37,36,55,57,27,58,2,59,60,38,39,5,61,43,30,31,21,18,22,62]))),qg=y.lazy(()=>V(()=>import("./runbook-page-DEQ-DBOX.js"),__vite__mapDeps([63,57,45,64]))),Wg=y.lazy(()=>V(()=>import("./apps-BqNVdln7.js"),__vite__mapDeps([65,54,12,13,14,6,7,15,16,21,18,22,23,24,44,19,27,35,43,47,66]))),Hg=y.lazy(()=>V(()=>import("./webhook-settings-DI5DSW99.js"),__vite__mapDeps([67,23,24,15,13,16,6,7,47,26,37,36,35,5,68,69])).then(e=>({default:e.WebhookSettings}))),Kg=y.lazy(()=>V(()=>import("./settings-V6x-cXwy.js"),__vite__mapDeps([70,71,12,13,14,72,21,18,22,6,7,36,25,34,19,5,73,58,69])).then(e=>({default:e.Settings}))),Qg=y.lazy(()=>V(()=>import("./ai-settings-DU_Ls06P.js"),__vite__mapDeps([74,71,12,13,14,72,6,7,48,36,5,69])).then(e=>({default:e.AISettings}))),Gg=y.lazy(()=>V(()=>import("./maintenance-settings-CSdzQSkY.js"),__vite__mapDeps([75,71,12,13,14,72,6,7,47,19,73,69])).then(e=>({default:e.MaintenanceSettings}))),Yg=y.lazy(()=>V(()=>import("./api-keys-CWYdEzJ_.js"),__vite__mapDeps([76,54,30,31,23,24,6,7,21,18,22,12,13,14,40,41,15,16,26,47,19,27,69])).then(e=>({default:e.ApiKeys}))),Xg=y.lazy(()=>V(()=>import("./teams-ts8p5rEh.js"),__vite__mapDeps([77,54,30,31,23,24,6,7,21,18,22,12,13,14,40,41,15,16,78,26,45,47,69])).then(e=>({default:e.Teams}))),Jg=y.lazy(()=>V(()=>import("./selector-health-page-MSk96Zz7.js"),__vite__mapDeps([79,6,7,28,29,12,13,14,55,59,60,38,39,40,41,15,16,80,1,21,18,22,19,27]))),Zg=y.lazy(()=>V(()=>import("./selector-detail-redirect-BefSCSpe.js"),__vite__mapDeps([81,80]))),ev=y.lazy(()=>V(()=>import("./DeviceMosaicView-DqODzkyo.js"),__vite__mapDeps([82,11,1,36,46,61,26,28,29,83,43,12,13,14,25,6,7]))),tv=y.lazy(()=>V(()=>import("./profile-page-Bi27STgs.js"),__vite__mapDeps([84,6,7,54,15,13,16,27,47]))),nv=y.lazy(()=>V(()=>import("./users-gJ5Y01yo.js"),__vite__mapDeps([85,78,54,6,7,12,13,14,40,41,15,16,26,47]))),rv=y.lazy(()=>V(()=>import("./RecordingsPage-CB8ST3nE.js"),__vite__mapDeps([86,6,7,30,31,12,13,14,38,39,40,41,49,17,18,19,20,26,50,83,87,88]))),iv=y.lazy(()=>V(()=>import("./RecordingPage-CSRIhZEh.js"),__vite__mapDeps([89,83,6,7,12,13,14,38,39,21,18,22,17,19,20,46,87,88,45,47,42,43]))),ov=()=>p.jsxs("div",{className:"flex items-center justify-center gap-2 h-full text-xs text-[var(--text-dim)]",children:[p.jsx(Df,{className:"animate-spin",size:14}),p.jsx("span",{children:"Hydrating view…"})]}),sv=()=>p.jsx(bg,{children:p.jsx(y.Suspense,{fallback:p.jsx(ov,{}),children:p.jsxs(Af,{children:[p.jsx($,{path:"/",element:p.jsx(Wt,{to:"/overview",replace:!0})}),p.jsx($,{path:"/overview",element:p.jsx(Fg,{})}),p.jsx($,{path:"/devices",element:p.jsx(yu,{})}),p.jsx($,{path:"/devices/:udid/control/:tab?",element:p.jsx(yu,{})}),p.jsx($,{path:"/apps",element:p.jsx(Wg,{})}),p.jsx($,{path:"/sessions",element:p.jsx(Wt,{to:"/builds",replace:!0})}),p.jsx($,{path:"/sessions/*",element:p.jsx(Wt,{to:"/builds",replace:!0})}),p.jsx($,{path:"/builds",element:p.jsx(gu,{})}),p.jsx($,{path:"/builds/:buildId",element:p.jsx(gu,{})}),p.jsx($,{path:"/builds/:buildId/sessions/:sessionId",element:p.jsx(Vg,{})}),p.jsx($,{path:"/notifications",element:p.jsx(Hg,{})}),p.jsx($,{path:"/settings",element:p.jsx(Kg,{})}),p.jsx($,{path:"/ai-settings",element:p.jsx(Qg,{})}),p.jsx($,{path:"/maintenance",element:p.jsx(Gg,{})}),p.jsx($,{path:"/api-keys",element:p.jsx(Yg,{})}),p.jsx($,{path:"/teams",element:p.jsx(Xg,{})}),p.jsx($,{path:"/users",element:p.jsx(nv,{})}),p.jsx($,{path:"/selector-health",element:p.jsx(Jg,{})}),p.jsx($,{path:"/selector-health/detail",element:p.jsx(Zg,{})}),p.jsx($,{path:"/devices/live",element:p.jsx(ev,{})}),p.jsx($,{path:"/recordings",element:p.jsx(rv,{})}),p.jsx($,{path:"/recordings/:groupId",element:p.jsx(iv,{})}),p.jsx($,{path:"/runbooks/:category",element:p.jsx(qg,{})}),p.jsx($,{path:"/profile",element:p.jsx(tv,{})}),p.jsx($,{path:"*",element:p.jsx(Wt,{to:"/overview",replace:!0})})]})})});let yr=null;function vu(e){yr=e}const lv=new Set(["device_held_by_another_user","device_in_use_by_session"]),av=new Set(["not_available_through_hub","not_available_for_cloud_phone"]);function uv(e){return!e||typeof e!="object"?!1:lv.has(e.error??"")}const cv=5e3,wu=new Map;function ku(e){if(!yr)return!1;const t=Date.now(),n=wu.get(e)??0;return t-n<cv||(wu.set(e,t),yr(e,"error")),!0}class Nl extends Error{constructor(t,n,r,i=!1){super(t),this.status=n,this.body=r,this.shown=i,this.name="ApiError"}}function fv(e){return e instanceof Nl&&e.shown}function xu(e){if(!e||typeof e!="object")return;const{error:t,message:n}=e;return(typeof t!="string"||/^[a-z][a-z0-9_]*$/.test(t))&&typeof n=="string"&&n?n:typeof t=="string"&&t?t:typeof n=="string"&&n?n:void 0}async function Eo(e,t){let n=!1;if(e.status===403){const r=await e.clone().json().catch(()=>({})),i=xu(r)||"You do not have permission for this action.";yr&&(yr(i,"error"),n=!0)}if(e.status===409){const r=await e.clone().json().catch(()=>({}));uv(r)&&(n=ku(r.message||"This device is in use by another user."))}if(e.status===501){const r=await e.clone().json().catch(()=>({}));av.has(r==null?void 0:r.error)&&r.message&&(n=ku(r.message))}if(e.status===204||e.status===205)return null;if(t&&(e.status<200||e.status>=300)){const r=await e.json().catch(()=>null),i=xu(r)||`Request failed (${e.status})`;throw new Nl(i,e.status,r,n)}return e.json()}class dv{makeGETRequest(t){return fetch(this.formatUrl(t)).then(n=>Eo(n,!1))}makePOSTRequest(t,n,r,i={},o={}){return fetch(this.formatUrl(t),{method:"POST",body:JSON.stringify(r||{}),headers:{"Content-Type":"application/json"},...i}).then(s=>Eo(s,!o.resolveErrors))}makeDELETERequest(t,n={}){return fetch(this.formatUrl(t),{method:"DELETE"}).then(r=>Eo(r,!n.resolveErrors))}formatUrl(t){return`/xenon/api${t}`}}const R=new dv;function pv(e){return e instanceof Nl?`The server rejected the change: ${e.message}`:"Couldn't reach the Xenon server. Check your connection and try again."}function Hv(e,t){fv(t)||e(pv(t),"error")}const id=y.createContext(void 0),Kv=()=>{const e=y.useContext(id);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},hv=({children:e})=>{const[t,n]=y.useState([]),r=y.useCallback(o=>{n(s=>s.filter(l=>l.id!==o))},[]),i=y.useCallback((o,s="info",l=4e3,a)=>{const u=Math.random().toString(36).substring(2,9);return n(m=>[...m,{id:u,message:o,type:s,duration:l,action:a}]),s!=="loading"&&l>0&&setTimeout(()=>{r(u)},l),u},[r]);return y.useEffect(()=>(vu((o,s="info")=>i(o,s)),()=>vu(null)),[i]),p.jsxs(id.Provider,{value:{toast:i,removeToast:r},children:[e,p.jsx("div",{className:"toast-container","aria-live":"polite","aria-atomic":"true",role:"status",children:t.map(o=>p.jsxs("div",{className:`toast-item toast-${o.type} animate-slide-in`,children:[p.jsxs("div",{className:"toast-icon",children:[o.type==="success"&&p.jsx(bm,{size:18}),o.type==="error"&&p.jsx(Bm,{size:18}),o.type==="info"&&p.jsx(Km,{size:18}),o.type==="loading"&&p.jsx(Zm,{size:18,className:"animate-spin"})]}),p.jsx("div",{className:"toast-message",children:o.message}),o.action&&p.jsx("button",{className:"toast-action",onClick:()=>{var s;r(o.id),(s=o.action)==null||s.onClick()},children:o.action.label}),p.jsx("button",{className:"toast-close",onClick:()=>r(o.id),"aria-label":`Close ${o.type} notification`,children:p.jsx(_y,{size:14})})]},o.id))})]})},mv=[{id:"overview",label:"Overview",icon:Xm,path:"/overview"},{id:"devices",label:"Devices",icon:fy,path:"/devices"},{id:"live-devices",label:"Live devices",icon:my,path:"/devices/live"},{id:"recordings",label:"Recordings",icon:Vm,path:"/recordings"},{id:"apps",label:"Apps",icon:Nm,path:"/apps"},{id:"sessions",label:"Sessions",icon:ry,path:"/builds"},{id:"selector-health",label:"Selector health",icon:Wm,path:"/selector-health"},{id:"notifications",label:"Notifications",icon:Lm,path:"/notifications"},{id:"settings",label:"Settings",icon:ly,path:"/settings",minRole:"ADMIN"},{id:"ai",label:"AI engine",icon:Dm,path:"/ai-settings",minRole:"ADMIN"},{id:"maintenance",label:"Maintenance",icon:uy,path:"/maintenance",minRole:"ADMIN"},{id:"teams",label:"Teams",icon:xy,path:"/teams",minRole:"ADMIN"},{id:"users",label:"Users",icon:gy,path:"/users",minRole:"ADMIN"},{id:"apikeys",label:"API keys",icon:Gm,path:"/api-keys",minRole:"ADMIN"}],Eu={SUPER_ADMIN:3,ADMIN:2,MEMBER:1};function yv(e,t){return t?(e?Eu[e]??0:0)>=Eu[t]:!0}const gv=()=>{const e=gn(),t=We(),{me:n}=Pl(),r=mv.filter(l=>yv(n==null?void 0:n.role,l.minRole)),i=t.pathname.replace(/\/$/,"")||"/",o=r.filter(l=>i===l.path||i.startsWith(l.path+"/")).sort((l,a)=>a.path.length-l.path.length)[0],s=l=>(o==null?void 0:o.path)===l;return p.jsxs("aside",{className:"fixed inset-y-0 left-0 z-30 w-14 border-r border-[var(--border)] bg-[var(--surface)] flex flex-col items-center py-3",children:[p.jsx("nav",{className:"flex-1 flex flex-col gap-1 w-full items-center",children:r.map(l=>{const a=l.icon,u=s(l.path);return p.jsxs("button",{type:"button",onClick:()=>e(l.path),className:`group relative w-full flex justify-center py-2.5 mx-1 rounded-md transition-colors ${u?"bg-[var(--surface-2)]":"hover:bg-[var(--surface-2)]/60"}`,"aria-label":l.label,"aria-current":u?"page":void 0,children:[p.jsx("span",{className:`absolute left-0 top-1 bottom-1 w-[3px] rounded-r transition-all ${u?"bg-[var(--color-accent)]":"bg-transparent"}`}),p.jsx(a,{className:`h-[18px] w-[18px] transition-colors ${u?"text-[var(--color-accent)]":"text-[var(--text-dim)] group-hover:text-[var(--text)]"}`,strokeWidth:u?2.25:2}),p.jsx("span",{className:"pointer-events-none absolute left-full ml-2 top-1/2 -translate-y-1/2 whitespace-nowrap rounded-md bg-[var(--surface-2)] border border-[var(--border-strong)] px-2 py-1 text-xs text-[var(--text)] opacity-0 group-hover:opacity-100 transition-opacity z-50 shadow-lg",children:l.label})]},l.id)})}),p.jsxs("button",{type:"button",className:"group relative w-full flex justify-center py-2.5 mt-2","aria-label":"API docs",onClick:()=>window.open(window.location.origin+"/xenon/api-docs","_blank"),children:[p.jsx(Am,{className:"h-[18px] w-[18px] text-[var(--text-dim)] group-hover:text-[var(--text)] transition-colors"}),p.jsx("span",{className:"pointer-events-none absolute left-full ml-2 top-1/2 -translate-y-1/2 whitespace-nowrap rounded-md bg-[var(--surface-2)] border border-[var(--border-strong)] px-2 py-1 text-xs text-[var(--text)] opacity-0 group-hover:opacity-100 transition-opacity z-50 shadow-lg",children:"API docs"})]})]})};function vv(){return typeof window<"u"&&typeof window.VideoDecoder<"u"}class In{static getDevices(){return R.makeGETRequest(`/device?t=${Date.now()}`)}static getPendingSessionsCount(){return R.makeGETRequest("/queue/length")}static getPendingSessions(){return R.makeGETRequest("/queue")}static getQueueSummary(){return R.makeGETRequest("/queue/summary")}static getQueueStatus(t){return R.makeGETRequest(`/queue/status/${t}`)}static getBuilds(){return R.makeGETRequest("/build")}static getSessions(t={}){var i;let r=`/session?t=${Date.now()}`;return t.buildId&&(r+=`&buildId=${encodeURIComponent(t.buildId)}`),t.since&&(r+=`&since=${encodeURIComponent(t.since)}`),t.limit&&(r+=`&limit=${t.limit}`),t.before&&(r+=`&before=${encodeURIComponent(t.before)}`),t.beforeId&&(r+=`&beforeId=${encodeURIComponent(t.beforeId)}`),t.query&&(r+=`&query=${encodeURIComponent(t.query)}`),t.status&&(r+=`&status=${encodeURIComponent(t.status)}`),t.platform&&(r+=`&platform=${encodeURIComponent(t.platform)}`),(i=t.ids)!=null&&i.length&&(r+=`&ids=${t.ids.map(encodeURIComponent).join(",")}`),R.makeGETRequest(r)}static getSessionSummary(t={}){let n=`/session-summary?t=${Date.now()}`;return t.since&&(n+=`&since=${encodeURIComponent(t.since)}`),t.buildId&&(n+=`&buildId=${encodeURIComponent(t.buildId)}`),R.makeGETRequest(n)}static getSession(t){return R.makeGETRequest(`/session/${t}`)}static getSessionLogs(t){return R.makeGETRequest(`/session/${t}/session_log`)}static getDeviceLogs(t){return R.makeGETRequest(`/session/${t}/logs/device`)}static getDebugLogs(t){return R.makeGETRequest(`/session/${t}/logs/debug`)}static getProfilingData(t){return R.makeGETRequest(`/session/${t}/profiling`)}static getSessionMetrics(t){return R.makeGETRequest(`/session/${t}/metrics`)}static omniScan(t){return R.makeGETRequest(`/session/${t}/xenon/omni-scan`)}static omniScanControl(t){return R.makeGETRequest(`/control/${t}/omni-scan`)}static testAiLocator(t,n,r){return R.makePOSTRequest(`/session/${t}/xenon/test-locator`,{},{strategy:n,selector:r})}static getDisplayState(t){return R.makeGETRequest(`/control/${t}/display`)}static getAppiumSession(t){return R.makeGETRequest(`/control/${t}/appium-session`)}static async verifyLocator(t,n,r){const i=t.startsWith("/")?t:`/${t}`,s=await(await fetch(`${i}/session/${n}/xenon/verify-locator`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json().catch(()=>({}));return(s==null?void 0:s.value)??s}static testAiLocatorControl(t,n,r){return R.makePOSTRequest(`/control/${t}/test-locator`,{},{strategy:n,selector:r})}static blockDevice(t,n){return R.makePOSTRequest("/block",{},{udid:t,host:n})}static unblockDevice(t,n){return R.makePOSTRequest("/unblock",{},{udid:t,host:n})}static updateDeviceTags(t,n,r){return R.makePOSTRequest("/device/tags",{},{udid:t,host:n,tags:r})}static async listTeams(){const t=await fetch("/xenon/api/teams",{credentials:"include"});if(!t.ok)throw new Error(`listTeams failed (${t.status})`);return(await t.json()).map(r=>({id:r.id,name:r.name}))}static async setDeviceTeam(t,n){const r=await fetch(`/xenon/api/device/${encodeURIComponent(t)}/team`,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({teamId:n})});if(!r.ok&&r.status!==204){const i=await r.json().catch(()=>({}));throw new Error(i.error||`setDeviceTeam failed (${r.status})`)}}static getSessionLiveVideoUrl(t){return R.formatUrl(`/session/${t}/live_video`)}static getReservations(){return R.makeGETRequest("/reservation")}static reserveDevice(t,n,r,i,o){return R.makePOSTRequest("/reservation",{},{udid:t,host:n,reservedBy:r,duration:i,reason:o},{},{resolveErrors:!0})}static releaseReservation(t,n){return R.makeDELETERequest(`/reservation/${t}/${encodeURIComponent(n)}`)}static extendReservation(t,n,r){return R.makePOSTRequest(`/reservation/${t}/${encodeURIComponent(n)}/extend`,{},{duration:r})}static getAssetUrl(t){const n=(t??"").replace(/^[\\/]+/,"").split(/[\\/]/);if(n.length!==3||n.some(s=>!s))return"";const[r,i,o]=n;return["screenshots","video","performance"].includes(i)?`/xenon/api/session/${encodeURIComponent(r)}/asset/${i}/${encodeURIComponent(o)}`:""}static tap(t,n,r){return R.makePOSTRequest(`/control/${t}/tap`,{},{x:n,y:r})}static swipe(t,n,r,i,o){return R.makePOSTRequest(`/control/${t}/swipe`,{},{x:n,y:r,endX:i,endY:o})}static typeText(t,n){return R.makePOSTRequest(`/control/${t}/text`,{},{text:n})}static pressKey(t,n){return R.makePOSTRequest(`/control/${t}/keyevent`,{},{keyCode:n})}static getClipboard(t){return R.makeGETRequest(`/control/${t}/clipboard`)}static setClipboard(t,n){return R.makePOSTRequest(`/control/${t}/clipboard`,{},{content:n})}static getScreenshot(t){return R.makeGETRequest(`/control/${t}/screenshot`)}static touchAndHold(t,n,r,i){return R.makePOSTRequest(`/control/${t}/touchAndHold`,{},{x:n,y:r,duration:i})}static lock(t){return R.makePOSTRequest(`/control/${t}/lock`,{},{})}static unlock(t){return R.makePOSTRequest(`/control/${t}/unlock`,{},{})}static installApp(t,n){return R.makePOSTRequest(`/control/${t}/install`,{},{appPath:n})}static startStream(t,n={}){const r=n.player??(vv()?void 0:"mjpeg");return R.makePOSTRequest(`/control/${t}/stream/start`,{},r?{player:r}:{},{},{resolveErrors:!0})}static stopStream(t){return R.makePOSTRequest(`/control/${t}/stream/stop`,{},{},{keepalive:!0})}static leaveStream(t){return R.makePOSTRequest(`/control/${t}/stream/leave`,{},{},{keepalive:!0})}static uninstallApp(t,n){return R.makePOSTRequest(`/control/${t}/uninstall`,{},{bundleId:n})}static uploadAndInstallApp(t,n){const r=new FormData;return r.append("app",n),fetch(`/xenon/api/control/${t}/upload-install`,{method:"POST",body:r}).then(i=>i.json())}static listApps(t){return R.makeGETRequest(`/control/${t}/apps`)}static getLogs(t){return R.makeGETRequest(`/control/${t}/logs`)}static getApps(){return R.makeGETRequest("/apps")}static uploadApp(t,n=null){const r=new FormData;return r.append("app",t),n&&r.append("teamId",n),fetch("/xenon/api/apps/upload",{method:"POST",body:r}).then(i=>i.json())}static async setAppTeam(t,n){const r=await fetch(`/xenon/api/apps/${encodeURIComponent(t)}/team`,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({teamId:n})});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error||`setAppTeam failed (${r.status})`)}}static deleteApp(t){return R.makeDELETERequest(`/apps/${t}`)}static installRepositoryApp(t,n){return R.makePOSTRequest(`/control/${t}/install-repository-app`,{},{appId:n},{},{resolveErrors:!0})}static executeShell(t,n){return R.makePOSTRequest(`/control/${t}/shell`,{},{command:n},{},{resolveErrors:!0})}static getInspectorSnapshot(t){return R.makeGETRequest(`/control/${t}/inspector/snapshot`)}static getWebhookConfigs(){return R.makeGETRequest("/webhook")}static addWebhookConfig(t,n,r,i){return R.makePOSTRequest("/webhook",{},{url:t,events:n,type:r,payloadTemplate:i})}static deleteWebhookConfig(t){return R.makeDELETERequest(`/webhook/${t}`)}static testWebhook(t,n,r,i){return R.makePOSTRequest("/webhook/test",{},{url:t,type:n,payloadTemplate:r,event:i})}static getGlobalConfig(){return R.makeGETRequest("/config")}static updateGlobalConfig(t){return R.makePOSTRequest("/config",{},t)}static testAIConfig(t){return R.makePOSTRequest("/config/test-ai",{},t,{},{resolveErrors:!0})}static resetMetrics(){return R.makePOSTRequest("/config/reset-metrics",{},{})}static getRecentHealingEvents(t=50){return R.makeGETRequest(`/healing/events?limit=${t}&t=${Date.now()}`)}static getHealingSummary(t=30,n=0){return R.makeGETRequest(`/healing/summary?windowDays=${t}&tz=${n}&t=${Date.now()}`)}static getHealingSelectors(t){const n=new URLSearchParams({tab:t.tab,days:String(t.days),sort:t.sort??"heals",page:String(t.page??1),pageSize:String(t.pageSize??50),t:String(Date.now())});return t.q&&n.set("q",t.q),t.platform&&n.set("platform",t.platform),t.method&&n.set("method",t.method),R.makeGETRequest(`/healing/selectors?${n.toString()}`)}static async getSelectorPanel(t,n,r,i){const o=new URLSearchParams({strategy:t,selector:n,days:String(r),tz:String(i),t:String(Date.now())}),s=await fetch(`/xenon/api/healing/selectors/detail?${o.toString()}`,{credentials:"include"}),l=await s.json().catch(()=>null);return{status:s.status,body:l}}static async postSelectorStateAction(t){const n=await fetch("/xenon/api/healing/selector/state",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const r=await n.json().catch(()=>({})),i=new Error(r.error??`Selector state action failed (${n.status})`);throw i.status=n.status,i.currentStatus=r.currentStatus??null,i}return n.json()}static sendHealingDigest(t={}){return R.makePOSTRequest("/healing/digest/send",{},t)}static async exportBuild(t,n,r){const i=await fetch(`/xenon/api/build/${encodeURIComponent(t)}/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({format:n,...r?{sessionIds:r}:{}})});if(!i.ok){const u=await i.text().catch(()=>i.statusText);throw new Error(`Export failed (${i.status}): ${u||i.statusText}`)}const o=i.headers.get("Content-Disposition")||"",s=/filename="?([^";]+)"?/.exec(o),l=s?s[1]:`build-${t}-sessions.${n}`;return{blob:await i.blob(),filename:l}}}function wv(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function kv(){const[e,t]=y.useState(!1);return y.useEffect(()=>{const n=i=>{(i.metaKey||i.ctrlKey)&&i.key.toLowerCase()==="k"&&!wv(i.target)&&(i.preventDefault(),t(o=>!o)),i.key==="Escape"&&t(!1)},r=()=>t(!0);return window.addEventListener("keydown",n),window.addEventListener("xenon.open-command-palette",r),()=>{window.removeEventListener("keydown",n),window.removeEventListener("xenon.open-command-palette",r)}},[]),{open:e,setOpen:t}}function _u(e,t){if(!e)return 0;const n=e.toLowerCase(),r=t.toLowerCase();if(r===n)return 1e4;if(r.startsWith(n))return 5e3-(r.length-n.length);let i=0,o=0,s=0;for(let l=0;l<n.length;l++){const a=n[l],u=r.indexOf(a,i);if(u===-1)return 0;u===i?(s+=1,o+=20+s*5):(s=0,o+=10-Math.min(u-i,10)),i=u+1}return Math.max(o,1)}const Su=[{id:"nav:overview",kind:"nav",label:"Overview",path:"/overview"},{id:"nav:devices",kind:"nav",label:"Devices",path:"/devices"},{id:"nav:live",kind:"nav",label:"Live devices",path:"/devices/live"},{id:"nav:builds",kind:"nav",label:"Sessions",path:"/builds"},{id:"nav:apps",kind:"nav",label:"Apps",path:"/apps"},{id:"nav:selector-health",kind:"nav",label:"Selector health",path:"/selector-health"},{id:"nav:notifications",kind:"nav",label:"Notifications",path:"/notifications"},{id:"nav:settings",kind:"nav",label:"Settings",path:"/settings"},{id:"nav:ai-settings",kind:"nav",label:"AI engine",path:"/ai-settings"},{id:"nav:maintenance",kind:"nav",label:"Maintenance",path:"/maintenance"},{id:"nav:teams",kind:"nav",label:"Teams",path:"/teams"},{id:"nav:api-keys",kind:"nav",label:"API keys",path:"/api-keys"},{id:"nav:users",kind:"nav",label:"Users",path:"/users"},{id:"nav:profile",kind:"nav",label:"Profile",path:"/profile"}];class xv{constructor(){this.devices=[],this.builds=[],this.sessions=[],this.teams=[],this.keys=[],this.apps=[]}setDevices(t){this.devices=t.map(n=>({id:`device:${n.udid}`,kind:"device",label:n.name||n.udid,sub:n.udid,path:`/devices/${n.udid}/control`}))}setBuilds(t){this.builds=t.map(n=>({id:`build:${n.id}`,kind:"build",label:n.name||n.id,sub:typeof n.sessionCount=="number"?`${n.sessionCount} session${n.sessionCount===1?"":"s"}${n.failedCount?` · ${n.failedCount} failed`:""}`:n.id,path:`/builds/${encodeURIComponent(n.id)}`}))}setSessions(t){this.sessions=t.map(n=>({id:`session:${n.id}`,kind:"session",label:n.name||n.id,sub:n.id,path:`/builds?session=${encodeURIComponent(n.id)}`}))}setTeams(t){this.teams=t.map(n=>({id:`team:${n.id}`,kind:"team",label:n.name||n.id,sub:n.id,path:`/teams?team=${encodeURIComponent(n.id)}`}))}setKeys(t){this.keys=t.map(n=>({id:`key:${n.id}`,kind:"key",label:n.name||n.id,sub:n.id,path:`/api-keys?key=${encodeURIComponent(n.id)}`}))}setApps(t){this.apps=t.map(n=>({id:`app:${n.id}`,kind:"app",label:n.name||n.id,sub:n.id,path:`/apps?app=${encodeURIComponent(n.id)}`}))}search(t,n=8){return t.trim()?[...Su,...this.devices,...this.builds,...this.sessions,...this.teams,...this.keys,...this.apps].map(i=>{const o=_u(t,i.label),s=i.sub?_u(t,i.sub):0;return{it:i,score:Math.max(o,s)}}).filter(i=>i.score>0).sort((i,o)=>o.score-i.score).slice(0,n).map(i=>i.it):Su.slice(0,n)}}const Ev={nav:"Navigation",device:"Devices",build:"Builds",session:"Running sessions",team:"Teams",key:"API keys",app:"Apps"},_v=["nav","device","build","session","team","key","app"],Sv=()=>{const{open:e,setOpen:t}=kv(),[n,r]=y.useState(""),[i,o]=y.useState(0),s=gn(),l=y.useRef(new xv),a=y.useRef(null);y.useEffect(()=>{if(!e)return;Promise.all([In.getDevices().catch(()=>[]),In.getSessions().catch(()=>[]),In.getApps().catch(()=>[]),In.listTeams().catch(()=>[]),In.getBuilds().catch(()=>[])]).then(([k,c,f,d,g])=>{Array.isArray(k)&&l.current.setDevices(k),Array.isArray(g)&&l.current.setBuilds(g),Array.isArray(c)&&l.current.setSessions(c),Array.isArray(f)&&l.current.setApps(f),Array.isArray(d)&&l.current.setTeams(d)});const x=setTimeout(()=>{var k;return(k=a.current)==null?void 0:k.focus()},0);return()=>clearTimeout(x)},[e]),y.useEffect(()=>{e||(r(""),o(0))},[e]);const u=y.useMemo(()=>l.current.search(n,8),[n,e]),m=y.useMemo(()=>{const x=new Map;return u.forEach(k=>{const c=x.get(k.kind)||[];c.push(k),x.set(k.kind,c)}),x},[u]),v=y.useCallback(x=>{s(x.path),t(!1)},[s,t]),h=x=>{x.key==="ArrowDown"?(x.preventDefault(),o(k=>Math.min(k+1,Math.max(u.length-1,0)))):x.key==="ArrowUp"?(x.preventDefault(),o(k=>Math.max(k-1,0))):x.key==="Enter"&&(x.preventDefault(),u[i]&&v(u[i]))};if(!e)return null;let E=-1;return p.jsx("div",{className:"cp-overlay",onClick:()=>t(!1),children:p.jsxs("div",{className:"cp",role:"dialog","aria-modal":!0,"aria-label":"Command palette",onClick:x=>x.stopPropagation(),children:[p.jsxs("div",{className:"cp-input-row",children:[p.jsx(Mf,{size:14}),p.jsx("input",{ref:a,className:"cp-input",placeholder:"Search devices, sessions, settings…",value:n,onChange:x=>{r(x.target.value),o(0)},onKeyDown:h}),p.jsx("span",{className:"cp-esc",children:"ESC"})]}),p.jsxs("div",{className:"cp-results",children:[u.length===0&&p.jsx("div",{className:"cp-empty",children:"No results."}),_v.filter(x=>m.has(x)).map(x=>p.jsxs("div",{className:"cp-group",children:[p.jsx("div",{className:"cp-group-head",children:Ev[x]}),m.get(x).map(k=>{E+=1;const c=E===i;return p.jsxs("button",{type:"button",className:`cp-item${c?" cp-item-active":""}`,onMouseEnter:()=>{o(E)},onClick:()=>v(k),children:[p.jsx("span",{className:"cp-item-label",children:k.label}),k.sub&&p.jsx("span",{className:"cp-item-sub",children:k.sub})]},k.id)})]},x))]})]})})};function Cv({children:e}){const{loading:t,me:n}=Pl(),r=We();if(t)return p.jsx("div",{style:{padding:40,textAlign:"center",color:"var(--text-dim)"},children:"Loading…"});if(!n){const i=encodeURIComponent(r.pathname+r.search),o=Ly()?"&reason=expired":"";return p.jsx(Wt,{to:`/login?next=${i}${o}`,replace:!0})}return p.jsx(p.Fragment,{children:e})}const Cu="Xenon",Tv={"/overview":"Overview","/devices":"Devices","/devices/live":"Live devices","/recordings":"Recordings","/apps":"Apps","/builds":"Sessions","/selector-health":"Selector health","/selector-health/detail":"Selector health","/notifications":"Notifications","/settings":"Settings","/ai-settings":"AI engine","/maintenance":"Maintenance","/teams":"Teams","/users":"Users","/api-keys":"API keys","/profile":"Profile","/login":"Sign in","/forgot-password":"Forgot password","/reset-password":"Reset password"},od=new Map;function Qv(e,t){t&&od.set(e,t)}function Rv(e){const t=e.replace(/\/+$/,"")||"/";let n=Tv[t];if(!n){let r;if(r=t.match(/^\/devices\/([^/]+)\/control/)){const i=decodeURIComponent(r[1]);n=`${od.get(i)||i} · Device`}else/^\/builds\/[^/]+\/sessions\//.test(t)?n="Session":/^\/builds\/[^/]+$/.test(t)?n="Sessions":/^\/recordings\/[^/]+$/.test(t)?n="Recording":(r=t.match(/^\/runbooks\/([^/]+)/))?n=`Runbook · ${decodeURIComponent(r[1])}`:t.startsWith("/reset-password/")&&(n="Reset password")}return n?`${n} · ${Cu}`:Cu}function Pv(){const{pathname:e}=We();return y.useEffect(()=>{document.title=Rv(e)},[e]),null}const Nv=y.lazy(()=>V(()=>import("./login-CN77vy--.js"),__vite__mapDeps([90,13,91,92,62,48,25,2]))),Ov=y.lazy(()=>V(()=>import("./forgot-password-Bjmf49i6.js"),__vite__mapDeps([93,91,92,62]))),Tu=y.lazy(()=>V(()=>import("./reset-password-CPsOuwSu.js"),__vite__mapDeps([94,92,62]))),Lv=y.lazy(()=>V(()=>import("./ApiKeyGate-GmckX_7r.js"),[]).then(e=>({default:e.ApiKeyGate})));function jv(){return p.jsx(hv,{children:p.jsxs("div",{className:"min-h-screen w-full bg-[var(--bg)] text-[var(--text)]",children:[p.jsx(gv,{}),p.jsx(zg,{}),p.jsx("main",{className:"pl-14 pt-14 h-screen overflow-y-auto",children:p.jsx(sv,{})}),p.jsx(Sv,{})]})})}function Av(){return p.jsxs(wm,{basename:"/xenon",children:[p.jsx(Pv,{}),p.jsx(Ng,{children:p.jsx(y.Suspense,{fallback:p.jsx("div",{style:{padding:40},children:"Loading…"}),children:p.jsxs(Af,{children:[p.jsx($,{path:"/login",element:p.jsx(Nv,{})}),p.jsx($,{path:"/forgot-password",element:p.jsx(Ov,{})}),p.jsx($,{path:"/reset-password",element:p.jsx(Tu,{})}),p.jsx($,{path:"/reset-password/:token",element:p.jsx(Tu,{})}),p.jsx($,{path:"/api-key-gate",element:p.jsx(Lv,{children:p.jsx(Wt,{to:"/overview",replace:!0})})}),p.jsx($,{path:"*",element:p.jsx(Cv,{children:p.jsx(jv,{})})})]})})})]})}_f.render(p.jsx(y.StrictMode,{children:p.jsx(Av,{})}),document.getElementById("root"));export{Vm as $,Df as A,qv as B,Bm as C,Qv as D,Rv as E,vv as F,fv as G,$v as H,Km as I,Ru as J,Am as K,ou as L,ry as M,Wt as N,Nm as O,Lm as P,Wm as Q,gd as R,uy as S,my as T,wy as U,ly as V,Dm as W,In as X,Hv as Y,Gm as Z,xy as _,We as a,uv as a0,zv as a1,gy as a2,Iv as a3,vd as a4,Pl as b,B as c,Oy as d,Mv as e,Zm as f,bv as g,Bv as h,Dv as i,p as j,Fv as k,Uv as l,Vv as m,Ug as n,zi as o,Og as p,fy as q,y as r,Xm as s,Kv as t,gn as u,_y as v,$m as w,_f as x,py as y,Mf as z};